billboard.js 3.4.0-next.1 → 3.4.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +121 -41
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +121 -41
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist-esm/billboard.js +105 -36
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +6 -6
- package/src/Chart/api/axis.ts +90 -25
- package/src/ChartInternal/ChartInternal.ts +6 -3
- package/src/ChartInternal/interactions/flow.ts +1 -1
- package/src/config/Options/common/main.ts +19 -2
- package/src/module/generator.ts +12 -4
- package/types/chart.d.ts +8 -8
- package/types/options.d.ts +7 -2
- package/types/types.d.ts +2 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.4.0-next.
|
|
8
|
+
* @version 3.4.0-next.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - d3-axis ^3.0.0
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
* - d3-transition ^3.0.1
|
|
22
22
|
* - d3-zoom ^3.0.0
|
|
23
23
|
*/
|
|
24
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(){var t=[function(t,e,n){n(1),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(109),n(111),n(120),n(121),n(123),n(125),n(127),n(129),n(131),n(132),n(133),n(134),n(136),n(137),n(139),n(143),n(144),n(145),n(146),n(150),n(151),n(153),n(154),n(155),n(158),n(159),n(160),n(161),n(162),n(167),n(169),n(170),n(171),n(172),n(179),n(181),n(184),n(185),n(186),n(187),n(188),n(189),n(193),n(194),n(196),n(197),n(198),n(200),n(201),n(202),n(203),n(204),n(205),n(212),n(214),n(215),n(216),n(218),n(219),n(221),n(222),n(224),n(225),n(226),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(239),n(240),n(242),n(244),n(245),n(246),n(247),n(248),n(250),n(252),n(253),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(263),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(285),n(286),n(287),n(288),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(326),n(327),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(337),n(340),n(341),n(342),n(343),n(347),n(348),n(350),n(351),n(352),n(353),n(355),n(356),n(357),n(358),n(359),n(360),n(362),n(363),n(364),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(425),n(426),n(428),n(429),n(432),n(433),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(446),n(445),n(79)},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(21),o=n(64),s=n(7),u=n(13),c=n(33),l=n(5),f=n(24),h=n(6),d=n(36),g=n(65),p=n(19),v=n(18),y=n(22),x=n(20),_=n(44),m=n(37),b=n(11),w=n(16),T=n(66),A=n(10),E=n(69),S=n(71),k=n(54),M=n(73),O=n(62),R=n(4),C=n(42),I=n(70),L=n(9),P=n(76),D=n(45),N=n(32),z=n(49),F=n(50),j=n(38),B=n(31),X=n(77),$=n(78),U=n(80),Y=n(47),V=n(81).forEach,G=z("hidden"),H="Symbol",W=B("toPrimitive"),q=Y.set,Z=Y.getterFor(H),K=Object.prototype,J=i.Symbol,Q=J&&J.prototype,tt=i.TypeError,et=i.QObject,nt=a("JSON","stringify"),rt=R.f,it=C.f,at=M.f,ot=L.f,st=u([].push),ut=N("symbols"),ct=N("op-symbols"),lt=N("string-to-symbol-registry"),ft=N("symbol-to-string-registry"),ht=N("wks"),dt=!et||!et.prototype||!et.prototype.findChild,gt=l&&h((function(){return 7!=E(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=rt(K,e);r&&delete K[e],it(t,e,n),r&&t!==K&&it(K,e,r)}:it,pt=function(t,e){var n=ut[t]=E(Q);return q(n,{type:H,tag:t,description:e}),l||(n.description=e),n},vt=function(t,e,n){t===K&&vt(ct,e,n),_(t);var r=w(e);return _(n),d(ut,r)?(n.enumerable?(d(t,G)&&t[G][r]&&(t[G][r]=!1),n=E(n,{enumerable:A(0,!1)})):(d(t,G)||it(t,G,A(1,{})),t[G][r]=!0),gt(t,r,n)):it(t,r,n)},yt=function(t,e){_(t);var n=b(e),r=S(n).concat(bt(n));return V(r,(function(e){l&&!s(xt,n,e)||vt(t,e,n[e])})),t},xt=function(t){var e=w(t),n=s(ot,this,e);return!(this===K&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,G)&&this[G][e])||n)},_t=function(t,e){var n=b(t),r=w(e);if(n!==K||!d(ut,r)||d(ct,r)){var i=rt(n,r);return!i||!d(ut,r)||d(n,G)&&n[G][r]||(i.enumerable=!0),i}},mt=function(t){var e=at(b(t)),n=[];return V(e,(function(t){d(ut,t)||d(F,t)||st(n,t)})),n},bt=function(t){var e=t===K,n=at(e?ct:b(t)),r=[];return V(n,(function(t){!d(ut,t)||e&&!d(K,t)||st(r,ut[t])})),r};(f||(J=function(){if(y(Q,this))throw tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?T(arguments[0]):void 0,e=j(t),n=function(t){this===K&&s(n,ct,t),d(this,G)&&d(this[G],e)&&(this[G][e]=!1),gt(this,e,A(1,t))};return l&&dt&>(K,e,{configurable:!0,set:n}),pt(e,t)},D(Q=J.prototype,"toString",(function(){return Z(this).tag})),D(J,"withoutSetter",(function(t){return pt(j(t),t)})),L.f=xt,C.f=vt,I.f=yt,R.f=_t,k.f=M.f=mt,O.f=bt,X.f=function(t){return pt(B(t),t)},l&&(it(Q,"description",{configurable:!0,get:function(){return Z(this).description}}),c||D(K,"propertyIsEnumerable",xt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),V(S(ht),(function(t){$(t)})),r({target:H,stat:!0,forced:!f},{for:function(t){var e=T(t);if(d(lt,e))return lt[e];var n=J(e);return lt[e]=n,ft[n]=e,n},keyFor:function(t){if(!x(t))throw tt(t+" is not a symbol");if(d(ft,t))return ft[t]},useSetter:function(){dt=!0},useSimple:function(){dt=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!l},{create:function(t,e){return void 0===e?E(t):yt(E(t),e)},defineProperty:vt,defineProperties:yt,getOwnPropertyDescriptor:_t}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:mt,getOwnPropertySymbols:bt}),r({target:"Object",stat:!0,forced:h((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(m(t))}}),nt)&&r({target:"JSON",stat:!0,forced:!f||h((function(){var t=J();return"[null]"!=nt([t])||"{}"!=nt({a:t})||"{}"!=nt(Object(t))}))},{stringify:function(t,e,n){var r=P(arguments),i=e;if((v(e)||void 0!==t)&&!x(t))return g(e)||(e=function(t,e){if(p(i)&&(e=s(i,this,t,e)),!x(e))return e}),r[1]=e,o(nt,null,r)}});if(!Q[W]){var wt=Q.valueOf;D(Q,W,(function(t){return s(wt,this)}))}U(J,H),F[G]=!0},function(t,e,n){var r=n(3),i=n(4).f,a=n(41),o=n(45),s=n(35),u=n(52),c=n(63);t.exports=function(t,e){var n,l,f,h,d,g=t.target,p=t.global,v=t.stat;if(n=p?r:v?r[g]||s(g,{}):(r[g]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(n,l,h,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var r=n(5),i=n(7),a=n(9),o=n(10),s=n(11),u=n(16),c=n(36),l=n(39),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},function(t,e,n){var r=n(6);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(8),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(6);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(12),i=n(15);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(3),i=n(13),a=n(6),o=n(14),s=r.Object,u=i("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t,e,n){var r=n(8),i=Function.prototype,a=i.bind,o=i.call,s=r&&a.bind(o,o);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e,n){var r=n(13),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e,n){var r=n(3).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(17),i=n(20);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(3),i=n(7),a=n(18),o=n(20),s=n(27),u=n(30),c=n(31),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!a(t)||o(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!a(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(19);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(3),i=n(21),a=n(19),o=n(22),s=n(23),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return a(e)&&o(e.prototype,u(t))}},function(t,e,n){var r=n(3),i=n(19),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(13);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(24);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(25),i=n(6);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,a=n(3),o=n(26),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(21);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(28);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(3),i=n(19),a=n(29),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a function")}},function(t,e,n){var r=n(3).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(3),i=n(7),a=n(19),o=n(18),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&a(n=t.toString)&&!o(r=i(n,t)))return r;if(a(n=t.valueOf)&&!o(r=i(n,t)))return r;if("string"!==e&&a(n=t.toString)&&!o(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),i=n(32),a=n(36),o=n(38),s=n(24),u=n(23),c=i("wks"),l=r.Symbol,f=l&&l.for,h=u?l:l&&l.withoutSetter||o;t.exports=function(t){if(!a(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&a(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):h(e)}return c[t]}},function(t,e,n){var r=n(33),i=n(34);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){t.exports=!1},function(t,e,n){var r=n(3),i=n(35),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},function(t,e,n){var r=n(3),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(13),i=n(37),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},function(t,e,n){var r=n(3),i=n(15),a=r.Object;t.exports=function(t){return a(i(t))}},function(t,e,n){var r=n(13),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},function(t,e,n){var r=n(5),i=n(6),a=n(40);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),i=n(18),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var r=n(5),i=n(42),a=n(10);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(5),a=n(39),o=n(43),s=n(44),u=n(16),c=r.TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",g="writable";e.f=i?o?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&g in n&&!n.writable){var r=f(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:d in n?n.configurable:r.configurable,enumerable:h in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),a)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(5),i=n(6);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var r=n(3),i=n(18),a=r.String,o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not an object")}},function(t,e,n){var r=n(3),i=n(19),a=n(36),o=n(41),s=n(35),u=n(46),c=n(47),l=n(51).CONFIGURABLE,f=c.get,h=c.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var c,f=!!u&&!!u.unsafe,g=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:e;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||l&&n.name!==v)&&o(n,"name",v),(c=h(n)).source||(c.source=d.join("string"==typeof v?v:""))),t!==r?(f?!p&&t[e]&&(g=!0):delete t[e],g?t[e]=n:o(t,e,n)):g?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&f(this).source||u(this)}))},function(t,e,n){var r=n(13),i=n(19),a=n(34),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var r,i,a,o=n(48),s=n(3),u=n(13),c=n(18),l=n(41),f=n(36),h=n(34),d=n(49),g=n(50),p="Object already initialized",v=s.TypeError,y=s.WeakMap;if(o||h.state){var x=h.state||(h.state=new y),_=u(x.get),m=u(x.has),b=u(x.set);r=function(t,e){if(m(x,t))throw new v(p);return e.facade=t,b(x,t,e),e},i=function(t){return _(x,t)||{}},a=function(t){return m(x,t)}}else{var w=d("state");g[w]=!0,r=function(t,e){if(f(t,w))throw new v(p);return e.facade=t,l(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},a=function(t){return f(t,w)}}t.exports={set:r,get:i,has:a,enforce:function(t){return a(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(3),i=n(19),a=n(46),o=r.WeakMap;t.exports=i(o)&&/native code/.test(a(o))},function(t,e,n){var r=n(32),i=n(38),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},function(t){t.exports={}},function(t,e,n){var r=n(5),i=n(36),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(36),i=n(53),a=n(4),o=n(42);t.exports=function(t,e,n){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},function(t,e,n){var r=n(21),i=n(13),a=n(54),o=n(62),s=n(44),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(55),i=n(61).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(13),i=n(36),a=n(11),o=n(56).indexOf,s=n(50),u=r([].push);t.exports=function(t,e){var n,r=a(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var r=n(11),i=n(57),a=n(59),o=function(t){return function(e,n,o){var s,u=r(e),c=a(u),l=i(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var r=n(58),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},function(t,e,n){var r=n(60);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(58),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),i=n(19),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var r=n(8),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},function(t,e,n){var r=n(14);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(3),i=n(67),a=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},function(t,e,n){var r=n(3),i=n(68),a=n(19),o=n(14),s=n(31)("toStringTag"),u=r.Object,c="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?o(e):"Object"==(r=o(e))&&a(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(31)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,i=n(44),a=n(70),o=n(61),s=n(50),u=n(72),c=n(40),l=n(49),f=l("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?g(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(r);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[f]=t):n=p(),void 0===e?n:a.f(n,e)}},function(t,e,n){var r=n(5),i=n(43),a=n(42),o=n(44),s=n(11),u=n(71);e.f=r&&!i?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,n=i[l++],r[n]);return t}},function(t,e,n){var r=n(55),i=n(61);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(21);t.exports=r("document","documentElement")},function(t,e,n){var r=n(14),i=n(11),a=n(54).f,o=n(74),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},function(t,e,n){var r=n(3),i=n(57),a=n(59),o=n(75),s=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=a(t),c=i(e,r),l=i(void 0===n?r:n,r),f=s(u(l-c,0)),h=0;c<l;c++,h++)o(f,h,t[c]);return f.length=h,f}},function(t,e,n){"use strict";var r=n(16),i=n(42),a=n(10);t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var r=n(13);t.exports=r([].slice)},function(t,e,n){var r=n(31);e.f=r},function(t,e,n){var r=n(79),i=n(36),a=n(77),o=n(42).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(3);t.exports=r},function(t,e,n){var r=n(42).f,i=n(36),a=n(31)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(82),i=n(13),a=n(12),o=n(37),s=n(59),u=n(83),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(g,p,v,y){for(var x,_,m=o(g),b=a(m),w=r(p,v),T=s(b),A=0,E=y||u,S=e?E(g,T):n||h?E(g,0):void 0;T>A;A++)if((d||A in b)&&(_=w(x=b[A],A,m),t))if(e)S[A]=_;else if(_)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(S,x)}else switch(t){case 4:return!1;case 7:c(S,x)}return f?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(13),i=n(28),a=n(8),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(84);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(3),i=n(65),a=n(85),o=n(18),s=n(31)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(a(e)&&(e===u||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){var r=n(13),i=n(6),a=n(19),o=n(67),s=n(21),u=n(46),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),g=!h.exec(c),p=function(t){if(!a(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(h,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(3),o=n(13),s=n(36),u=n(19),c=n(22),l=n(66),f=n(42).f,h=n(52),d=a.Symbol,g=d&&d.prototype;if(i&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};h(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.toString),_=o(g.valueOf),m=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),w=o("".slice);f(g,"description",{configurable:!0,get:function(){var t=_(this),e=x(t);if(s(p,t))return"";var n=y?w(e,7,-1):b(e,m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(78)("asyncIterator")},function(t,e,n){n(78)("hasInstance")},function(t,e,n){n(78)("isConcatSpreadable")},function(t,e,n){n(78)("iterator")},function(t,e,n){n(78)("match")},function(t,e,n){n(78)("matchAll")},function(t,e,n){n(78)("replace")},function(t,e,n){n(78)("search")},function(t,e,n){n(78)("species")},function(t,e,n){n(78)("split")},function(t,e,n){n(78)("toPrimitive")},function(t,e,n){n(78)("toStringTag")},function(t,e,n){n(78)("unscopables")},function(t,e,n){var r=n(2),i=n(3),a=n(64),o=n(101),s="WebAssembly",u=i.WebAssembly,c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,c),r({global:!0,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=o("WebAssembly."+t,e,c),r({target:s,stat:!0,forced:c},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},function(t,e,n){"use strict";var r=n(21),i=n(36),a=n(41),o=n(22),s=n(102),u=n(52),c=n(104),l=n(105),f=n(106),h=n(107),d=n(108),g=n(33);t.exports=function(t,e,n,p){var v=p?2:1,y=t.split("."),x=y[y.length-1],_=r.apply(null,y);if(_){var m=_.prototype;if(!g&&i(m,"cause")&&delete m.cause,!n)return _;var b=r("Error"),w=e((function(t,e){var n=l(p?e:t,void 0),r=p?new _(t):new _;return void 0!==n&&a(r,"message",n),d&&a(r,"stack",h(r.stack,2)),this&&o(m,this)&&c(r,this,w),arguments.length>v&&f(r,arguments[v]),r}));if(w.prototype=m,"Error"!==x&&(s?s(w,b):u(w,b,{name:!0})),u(w,_),!g)try{m.name!==x&&a(m,"name",x),m.constructor=w}catch(t){}return w}}},function(t,e,n){var r=n(13),i=n(44),a=n(103);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(3),i=n(19),a=r.String,o=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+a(t)+" as a prototype")}},function(t,e,n){var r=n(19),i=n(18),a=n(102);t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){var r=n(66);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(18),i=n(41);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},function(t,e,n){var r=n(13)("".replace),i=String(Error("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,o=a.test(i);t.exports=function(t,e){if(o&&"string"==typeof t)for(;e--;)t=r(t,a,"");return t}},function(t,e,n){var r=n(6),i=n(10);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},function(t,e,n){var r=n(45),i=n(110),a=Error.prototype;a.toString!==i&&r(a,"toString",i)},function(t,e,n){"use strict";var r=n(5),i=n(6),a=n(44),o=n(69),s=n(105),u=Error.prototype.toString,c=i((function(){if(r){var t=o(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==u.call(t))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));t.exports=c?function(){var t=a(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:u},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(22),o=n(112),s=n(102),u=n(52),c=n(69),l=n(41),f=n(10),h=n(107),d=n(106),g=n(114),p=n(105),v=n(31),y=n(108),x=v("toStringTag"),_=i.Error,m=[].push,b=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=a(w,this);s?n=s(new _,i?o(this):w):(n=i?this:c(w),l(n,x,"Error")),void 0!==e&&l(n,"message",p(e)),y&&l(n,"stack",h(n.stack,1)),d(n,r);var u=[];return g(t,m,{that:u}),l(n,"errors",u),n};s?s(b,_):u(b,_,{name:!0});var w=b.prototype=c(_.prototype,{constructor:f(1,b),message:f(1,""),name:f(1,"AggregateError")});r({global:!0},{AggregateError:b})},function(t,e,n){var r=n(3),i=n(36),a=n(19),o=n(37),s=n(49),u=n(113),c=s("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return a(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},function(t,e,n){var r=n(6);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(3),i=n(82),a=n(7),o=n(44),s=n(29),u=n(115),c=n(59),l=n(22),f=n(117),h=n(118),d=n(119),g=r.TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var r,y,x,_,m,b,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),k=i(e,T),M=function(t){return r&&d(r,"normal",t),new p(!0,t)},O=function(t){return A?(o(t),S?k(t[0],t[1],M):k(t[0],t[1])):S?k(t,M):k(t)};if(E)r=t;else{if(!(y=h(t)))throw g(s(t)+" is not iterable");if(u(y)){for(x=0,_=c(t);_>x;x++)if((m=O(t[x]))&&l(v,m))return m;return new p(!1)}r=f(t,y)}for(b=r.next;!(w=a(b,r)).done;){try{m=O(w.value)}catch(t){d(r,"throw",t)}if("object"==typeof m&&m&&l(v,m))return m}return new p(!1)}},function(t,e,n){var r=n(31),i=n(116),a=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var r=n(3),i=n(7),a=n(28),o=n(44),s=n(29),u=n(118),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(a(n))return o(i(n,t));throw c(s(t)+" is not iterable")}},function(t,e,n){var r=n(67),i=n(27),a=n(116),o=n(31)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[r(t)]}},function(t,e,n){var r=n(7),i=n(44),a=n(27);t.exports=function(t,e,n){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return i(o),n}},function(t,e,n){var r=n(2),i=n(21),a=n(64),o=n(6),s=n(101),u="AggregateError",c=i(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return a(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var r=n(2),i=n(37),a=n(59),o=n(58),s=n(122);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=a(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var r=n(31),i=n(69),a=n(42),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(65),s=n(18),u=n(37),c=n(59),l=n(75),f=n(83),h=n(124),d=n(31),g=n(25),p=d("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",x=i.TypeError,_=g>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=h("concat"),b=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!_||!m},{concat:function(t){var e,n,r,i,a,o=u(this),s=f(o,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(a=-1===e?o:arguments[e])){if(h+(i=c(a))>v)throw x(y);for(n=0;n<i;n++,h++)n in a&&l(s,h,a[n])}else{if(h>=v)throw x(y);l(s,h++,a)}return s.length=h,s}})},function(t,e,n){var r=n(6),i=n(31),a=n(25),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(2),i=n(126),a=n(122);r({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(t,e,n){"use strict";var r=n(37),i=n(57),a=n(59),o=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=a(n),u=i(t,s),c=i(e,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-c,s-u),h=1;for(c<u&&u<c+f&&(h=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},function(t,e,n){"use strict";var r=n(2),i=n(81).every;r({target:"Array",proto:!0,forced:!n(128)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var r=n(2),i=n(130),a=n(122);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(t,e,n){"use strict";var r=n(37),i=n(57),a=n(59);t.exports=function(t){for(var e=r(this),n=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(2),i=n(81).filter;r({target:"Array",proto:!0,forced:!n(124)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(81).find,a=n(122),o="find",s=!0;o in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(81).findIndex,a=n(122),o="findIndex",s=!0;o in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(135),a=n(37),o=n(59),s=n(58),u=n(83);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},function(t,e,n){"use strict";var r=n(3),i=n(65),a=n(59),o=n(82),s=r.TypeError,u=function(t,e,n,r,c,l,f,h){for(var d,g,p=c,v=0,y=!!f&&o(f,h);v<r;){if(v in n){if(d=y?y(n[v],v,e):n[v],l>0&&i(d))g=a(d),p=u(t,e,d,g,p,l-1)-1;else{if(p>=9007199254740991)throw s("Exceed the acceptable array length");t[p]=d}p++}v++}return p};t.exports=u},function(t,e,n){"use strict";var r=n(2),i=n(135),a=n(28),o=n(37),s=n(59),u=n(83);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n);return a(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(2),i=n(138);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(81).forEach,i=n(128)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),i=n(140);r({target:"Array",stat:!0,forced:!n(142)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(3),i=n(82),a=n(7),o=n(37),s=n(141),u=n(115),c=n(85),l=n(59),f=n(75),h=n(117),d=n(118),g=r.Array;t.exports=function(t){var e=o(t),n=c(this),r=arguments.length,p=r>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,r>2?arguments[2]:void 0));var y,x,_,m,b,w,T=d(e),A=0;if(!T||this==g&&u(T))for(y=l(e),x=n?new this(y):g(y);y>A;A++)w=v?p(e[A],A):e[A],f(x,A,w);else for(b=(m=h(e,T)).next,x=n?new this:[];!(_=a(b,m)).done;A++)w=v?s(m,p,[_.value,A],!0):_.value,f(x,A,w);return x.length=A,x}},function(t,e,n){var r=n(44),i=n(119);t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(31)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(2),i=n(56).includes,a=n(122);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(56).indexOf,o=n(128),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(2)({target:"Array",stat:!0},{isArray:n(65)})},function(t,e,n){"use strict";var r=n(11),i=n(122),a=n(116),o=n(47),s=n(42).f,u=n(147),c=n(33),l=n(5),f="Array Iterator",h=o.set,d=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var g=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(33),o=n(51),s=n(19),u=n(148),c=n(112),l=n(102),f=n(80),h=n(41),d=n(45),g=n(31),p=n(116),v=n(149),y=o.PROPER,x=o.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,b=g("iterator"),w="keys",T="values",A="entries",E=function(){return this};t.exports=function(t,e,n,o,g,v,S){u(n,e,o);var k,M,O,R=function(t){if(t===g&&D)return D;if(!m&&t in L)return L[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,L=t.prototype,P=L[b]||L["@@iterator"]||g&&L[g],D=!m&&P||R(g),N="Array"==e&&L.entries||P;if(N&&(k=c(N.call(new t)))!==Object.prototype&&k.next&&(a||c(k)===_||(l?l(k,_):s(k[b])||d(k,b,E)),f(k,C,!0,!0),a&&(p[C]=E)),y&&g==T&&P&&P.name!==T&&(!a&&x?h(L,"name",T):(I=!0,D=function(){return i(P,this)})),g)if(M={values:R(T),keys:v?D:R(w),entries:R(A)},S)for(O in M)(m||I||!(O in L))&&d(L,O,M[O]);else r({target:e,proto:!0,forced:m||I},M);return a&&!S||L[b]===D||d(L,b,D,{name:g}),p[e]=D,M}},function(t,e,n){"use strict";var r=n(149).IteratorPrototype,i=n(69),a=n(10),o=n(80),s=n(116),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:a(+!c,n)}),o(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,a,o=n(6),s=n(19),u=n(69),c=n(112),l=n(45),f=n(31),h=n(33),d=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):g=!0),null==r||o((function(){var t={};return r[d].call(t)!==t}))?r={}:h&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(12),o=n(11),s=n(128),u=i([].join),c=a!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(2),i=n(152);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(64),i=n(11),a=n(58),o=n(59),s=n(128),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r=n(2),i=n(81).map;r({target:"Array",proto:!0,forced:!n(124)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(85),s=n(75),u=i.Array;r({target:"Array",stat:!0,forced:a((function(){function t(){}return!(u.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:u)(e);e>t;)s(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(2),i=n(156).left,a=n(128),o=n(25),s=n(157);r({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),i=n(28),a=n(37),o=n(12),s=n(59),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=a(e),f=o(l),h=s(l),d=t?h-1:0,g=t?-1:1;if(r<2)for(;;){if(d in f){c=f[d],d+=g;break}if(d+=g,t?d<0:h<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=g)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){var r=n(14),i=n(3);t.exports="process"==r(i.process)},function(t,e,n){"use strict";var r=n(2),i=n(156).right,a=n(128),o=n(25),s=n(157);r({target:"Array",proto:!0,forced:!a("reduceRight")||!s&&o>79&&o<83},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(65),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(65),o=n(85),s=n(18),u=n(57),c=n(59),l=n(11),f=n(75),h=n(31),d=n(124),g=n(76),p=d("slice"),v=h("species"),y=i.Array,x=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,i,h=l(this),d=c(h),p=u(t,d),_=u(void 0===e?d:e,d);if(a(h)&&(n=h.constructor,(o(n)&&(n===y||a(n.prototype))||s(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return g(h,p,_);for(r=new(void 0===n?y:n)(x(_-p,0)),i=0;p<_;p++,i++)p in h&&f(r,i,h[p]);return r.length=i,r}})},function(t,e,n){"use strict";var r=n(2),i=n(81).some;r({target:"Array",proto:!0,forced:!n(128)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(28),o=n(37),s=n(59),u=n(66),c=n(6),l=n(163),f=n(128),h=n(164),d=n(165),g=n(25),p=n(166),v=[],y=i(v.sort),x=i(v.push),_=c((function(){v.sort(void 0)})),m=c((function(){v.sort(null)})),b=f("sort"),w=!c((function(){if(g)return g<70;if(!(h&&h>3)){if(d)return!0;if(p)return p<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!m||!b||!w},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&x(i,e[r]);for(l(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},function(t,e,n){var r=n(74),i=Math.floor,a=function(t,e){var n=t.length,u=i(n/2);return n<8?o(t,e):s(t,a(r(t,0,u),e),a(r(t,u),e),e)},o=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var r=n(26).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(26);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(26).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){n(168)("Array")},function(t,e,n){"use strict";var r=n(21),i=n(42),a=n(31),o=n(5),s=a("species");t.exports=function(t){var e=r(t),n=i.f;o&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(57),o=n(58),s=n(59),u=n(37),c=n(83),l=n(75),f=n(124)("splice"),h=i.TypeError,d=Math.max,g=Math.min,p=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,r,i,f,y,x,_=u(this),m=s(_),b=a(t,m),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=m-b):(n=w-2,r=g(d(o(e),0),m-b)),m+n-r>p)throw h(v);for(i=c(_,r),f=0;f<r;f++)(y=b+f)in _&&l(i,f,_[y]);if(i.length=r,n<r){for(f=b;f<m-r;f++)x=f+n,(y=f+r)in _?_[x]=_[y]:delete _[x];for(f=m;f>m-r+n;f--)delete _[f-1]}else if(n>r)for(f=m-r;f>b;f--)x=f+n-1,(y=f+r-1)in _?_[x]=_[y]:delete _[x];for(f=0;f<n;f++)_[f+b]=arguments[f+2];return _.length=m-r+n,i}})},function(t,e,n){n(122)("flat")},function(t,e,n){n(122)("flatMap")},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(173),o=n(168),s="ArrayBuffer",u=a.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(5),o=n(174),s=n(51),u=n(41),c=n(175),l=n(6),f=n(176),h=n(58),d=n(60),g=n(177),p=n(178),v=n(112),y=n(102),x=n(54).f,_=n(42).f,m=n(130),b=n(74),w=n(80),T=n(47),A=s.PROPER,E=s.CONFIGURABLE,S=T.get,k=T.set,M="ArrayBuffer",O="DataView",R="Wrong index",C=r.ArrayBuffer,I=C,L=I&&I.prototype,P=r.DataView,D=P&&P.prototype,N=Object.prototype,z=r.Array,F=r.RangeError,j=i(m),B=i([].reverse),X=p.pack,$=p.unpack,U=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return X(t,23,4)},W=function(t){return X(t,52,8)},q=function(t,e){_(t.prototype,e,{get:function(){return S(this)[e]}})},Z=function(t,e,n,r){var i=g(n),a=S(t);if(i+e>a.byteLength)throw F(R);var o=S(a.buffer).bytes,s=i+a.byteOffset,u=b(o,s,s+e);return r?u:B(u)},K=function(t,e,n,r,i,a){var o=g(n),s=S(t);if(o+e>s.byteLength)throw F(R);for(var u=S(s.buffer).bytes,c=o+s.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[a?f:e-f-1]};if(o){var J=A&&C.name!==M;if(l((function(){C(1)}))&&l((function(){new C(-1)}))&&!l((function(){return new C,new C(1.5),new C(NaN),J&&!E})))J&&E&&u(C,"name",M);else{(I=function(t){return f(this,L),new C(g(t))}).prototype=L;for(var Q,tt=x(C),et=0;tt.length>et;)(Q=tt[et++])in I||u(I,Q,C[Q]);L.constructor=I}y&&v(D)!==N&&y(D,N);var nt=new P(new I(2)),rt=i(D.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(D,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else L=(I=function(t){f(this,L);var e=g(t);k(this,{bytes:j(z(e),0),byteLength:e}),a||(this.byteLength=e)}).prototype,D=(P=function(t,e,n){f(this,D),f(t,L);var r=S(t).byteLength,i=h(e);if(i<0||i>r)throw F("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw F("Wrong length");k(this,{buffer:t,byteLength:n,byteOffset:i}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=i)}).prototype,a&&(q(I,"byteLength"),q(P,"buffer"),q(P,"byteLength"),q(P,"byteOffset")),c(D,{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return $(Z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){K(this,1,t,U,e)},setUint8:function(t,e){K(this,1,t,U,e)},setInt16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){K(this,8,t,W,e,arguments.length>2?arguments[2]:void 0)}});w(I,M),w(P,O),t.exports={ArrayBuffer:I,DataView:P}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(45);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(3),i=n(22),a=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw a("Incorrect invocation")}},function(t,e,n){var r=n(3),i=n(58),a=n(60),o=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=a(e);if(e!==n)throw o("Wrong length or index");return n}},function(t,e,n){var r=n(3).Array,i=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,u=Math.LN2;t.exports={pack:function(t,e,n){var c,l,f,h=r(n),d=8*n-e-1,g=(1<<d)-1,p=g>>1,v=23===e?a(2,-24)-a(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=i(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=o(s(t)/u),t*(f=a(2,-c))<1&&(c--,f*=2),(t+=c+p>=1?v/f:v*a(2,1-p))*f>=2&&(c++,f/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*f-1)*a(2,e),c+=p):(l=t*a(2,p-1)*a(2,e),c=0));e>=8;)h[x++]=255&l,l/=256,e-=8;for(c=c<<e|l,d+=e;d>0;)h[x++]=255&c,c/=256,d-=8;return h[--x]|=128*y,h},unpack:function(t,e){var n,r=t.length,i=8*r-e-1,o=(1<<i)-1,s=o>>1,u=i-7,c=r-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=a(2,e),f-=s}return(l?-1:1)*n*a(2,f-e)}}},function(t,e,n){var r=n(2),i=n(180);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r,i,a,o=n(174),s=n(5),u=n(3),c=n(19),l=n(18),f=n(36),h=n(67),d=n(29),g=n(41),p=n(45),v=n(42).f,y=n(22),x=n(112),_=n(102),m=n(31),b=n(38),w=u.Int8Array,T=w&&w.prototype,A=u.Uint8ClampedArray,E=A&&A.prototype,S=w&&x(w),k=T&&x(T),M=Object.prototype,O=u.TypeError,R=m("toStringTag"),C=b("TYPED_ARRAY_TAG"),I=b("TYPED_ARRAY_CONSTRUCTOR"),L=o&&!!_&&"Opera"!==h(u.opera),P=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},z=function(t){if(!l(t))return!1;var e=h(t);return f(D,e)||f(N,e)};for(r in D)(a=(i=u[r])&&i.prototype)?g(a,I,i):L=!1;for(r in N)(a=(i=u[r])&&i.prototype)&&g(a,I,i);if((!L||!c(S)||S===Function.prototype)&&(S=function(){throw O("Incorrect invocation")},L))for(r in D)u[r]&&_(u[r],S);if((!L||!k||k===M)&&(k=S.prototype,L))for(r in D)u[r]&&_(u[r].prototype,k);if(L&&x(E)!==k&&_(E,k),s&&!f(k,R))for(r in P=!0,v(k,R,{get:function(){return l(this)?this[C]:void 0}}),D)u[r]&&g(u[r],C,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_CONSTRUCTOR:I,TYPED_ARRAY_TAG:P&&C,aTypedArray:function(t){if(z(t))return t;throw O("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!_||y(S,t)))return t;throw O(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in D){var a=u[i];if(a&&f(a.prototype,t))try{delete a.prototype[t]}catch(n){try{a.prototype[t]=e}catch(t){}}}k[t]&&!n||p(k,t,n?e:L&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(_){if(n)for(r in D)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(S[t]&&!n)return;try{return p(S,t,n?e:L&&S[t]||e)}catch(t){}}for(r in D)!(i=u[r])||i[t]&&!n||p(i,t,e)}},isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(D,e)||f(N,e)},isTypedArray:z,TypedArray:S,TypedArrayPrototype:k}},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6),o=n(173),s=n(44),u=n(57),c=n(60),l=n(182),f=o.ArrayBuffer,h=o.DataView,d=h.prototype,g=i(f.prototype.slice),p=i(d.getUint8),v=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),a=new(l(this,f))(c(i-r)),o=new h(this),d=new h(a),y=0;r<i;)v(d,y++,p(o,r++));return a}})},function(t,e,n){var r=n(44),i=n(183),a=n(31)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||null==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r=n(3),i=n(85),a=n(29),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a constructor")}},function(t,e,n){var r=n(2),i=n(173);r({global:!0,forced:!n(174)},{DataView:i.DataView})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var r=n(2),i=n(3),a=n(13),o=i.Date,s=a(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(58),o=Date.prototype,s=i(o.getTime),u=i(o.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(2)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(2),i=n(190);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(6),o=n(191).start,s=r.RangeError,u=Math.abs,c=Date.prototype,l=c.toISOString,f=i(c.getTime),h=i(c.getUTCDate),d=i(c.getUTCFullYear),g=i(c.getUTCHours),p=i(c.getUTCMilliseconds),v=i(c.getUTCMinutes),y=i(c.getUTCMonth),x=i(c.getUTCSeconds);t.exports=a((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!a((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(f(this)))throw s("Invalid time value");var t=this,e=d(t),n=p(t),r=e<0?"-":e>9999?"+":"";return r+o(u(e),r?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(h(t),2,0)+"T"+o(g(t),2,0)+":"+o(v(t),2,0)+":"+o(x(t),2,0)+"."+o(n,3,0)+"Z"}:l},function(t,e,n){var r=n(13),i=n(60),a=n(66),o=n(192),s=n(15),u=r(o),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var o,f,h=a(s(e)),d=i(n),g=h.length,p=void 0===r?" ":a(r);return d<=g||""==p?h:((f=u(p,l((o=d-g)/p.length))).length>o&&(f=c(f,0,o)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},function(t,e,n){"use strict";var r=n(3),i=n(58),a=n(66),o=n(15),s=r.RangeError;t.exports=function(t){var e=a(o(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(2),i=n(6),a=n(37),o=n(17);r({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(36),i=n(45),a=n(195),o=n(31)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},function(t,e,n){"use strict";var r=n(3),i=n(44),a=n(30),o=r.TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return a(this,t)}},function(t,e,n){var r=n(13),i=n(45),a=Date.prototype,o="Invalid Date",s="toString",u=r(a.toString),c=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(66),o=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=a(t),i="",c=r.length,d=0;d<c;)e=o(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},function(t,e,n){var r=n(2),i=n(199);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(28),o=n(18),s=n(36),u=n(76),c=n(8),l=r.Function,f=i([].concat),h=i([].join),d={},g=function(t,e,n){if(!s(d,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";d[e]=l("C,a","return new C("+h(r,",")+")")}return d[e](t,n)};t.exports=c?l.bind:function(t){var e=a(this),n=e.prototype,r=u(arguments,1),i=function(){var n=f(r,u(arguments));return this instanceof i?g(e,n.length,n):e.apply(t,n)};return o(n)&&(i.prototype=n),i}},function(t,e,n){"use strict";var r=n(19),i=n(18),a=n(42),o=n(112),s=n(31)("hasInstance"),u=Function.prototype;s in u||a.f(u,s,{value:function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;if(!i(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}})},function(t,e,n){var r=n(5),i=n(51).EXISTS,a=n(13),o=n(42).f,s=Function.prototype,u=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){n(2)({global:!0},{globalThis:n(3)})},function(t,e,n){var r=n(2),i=n(3),a=n(21),o=n(64),s=n(13),u=n(6),c=i.Array,l=a("JSON","stringify"),f=s(/./.exec),h=s("".charAt),d=s("".charCodeAt),g=s("".replace),p=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,_=function(t,e,n){var r=h(n,e-1),i=h(n,e+1);return f(y,t)&&!f(x,i)||f(x,t)&&!f(y,r)?"\\u"+p(d(t,0),16):t},m=u((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:m},{stringify:function(t,e,n){for(var r=0,i=arguments.length,a=c(i);r<i;r++)a[r]=arguments[r];var s=o(l,null,a);return"string"==typeof s?g(s,v,_):s}})},function(t,e,n){var r=n(3);n(80)(r.JSON,"JSON",!0)},function(t,e,n){"use strict";n(206)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(211))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(63),s=n(45),u=n(207),c=n(114),l=n(176),f=n(19),h=n(18),d=n(6),g=n(142),p=n(80),v=n(104);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),_=y?"set":"add",m=i[t],b=m&&m.prototype,w=m,T={},A=function(t){var e=a(b[t]);s(b,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return x&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!f(m)||!(x||b.forEach&&!d((function(){(new m).entries().next()})))))w=n.getConstructor(e,t,y,_),u.enable();else if(o(t,!0)){var E=new w,S=E[_](x?{}:-0,1)!=E,k=d((function(){E.has(1)})),M=g((function(t){new m(t)})),O=!x&&d((function(){for(var t=new m,e=5;e--;)t[_](e,e);return!t.has(-0)}));M||((w=e((function(t,e){l(t,b);var n=v(new m,t,w);return null!=e&&c(e,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=b,b.constructor=w),(k||O)&&(A("delete"),A("has"),y&&A("get")),(O||S)&&A(_),x&&b.clear&&delete b.clear}return T[t]=w,r({global:!0,forced:w!=m},T),p(w,t),x||n.setStrong(w,t,y),w}},function(t,e,n){var r=n(2),i=n(13),a=n(50),o=n(18),s=n(36),u=n(42).f,c=n(54),l=n(73),f=n(208),h=n(38),d=n(210),g=!1,p=h("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=i([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,a=r.length;i<a;i++)if(r[i]===p){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&f(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var r=n(6),i=n(18),a=n(14),o=n(209),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(6);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(6);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var r=n(42).f,i=n(69),a=n(175),o=n(82),s=n(176),u=n(114),c=n(147),l=n(168),f=n(5),h=n(207).fastKey,d=n(47),g=d.set,p=d.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,d),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=l.prototype,v=p(e),y=function(t,e,n){var r,i,a=v(t),o=x(t,e);return o?o.value=n:(a.last=o={index:i=h(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},x=function(t,e){var n,r=v(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return a(d,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=x(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!x(this,t)}}),a(d,n?{get:function(t){var e=x(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&r(d,"size",{get:function(){return v(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=p(e),a=p(r);c(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){var r=n(2),i=n(213),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?o(t)+u:i(t-1+s(t-1)*s(t+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},function(t,e,n){var r=n(2),i=Math.asinh,a=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):a(e+o(e*e+1)):e}})},function(t,e,n){var r=n(2),i=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:a((1+t)/(1-t))/2}})},function(t,e,n){var r=n(2),i=n(217),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*o(a(t),1/3)}})},function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(a(t+.5)*o):32}})},function(t,e,n){var r=n(2),i=n(220),a=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=i(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},function(t,e,n){var r=n(2),i=n(220);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(2)({target:"Math",stat:!0},{fround:n(223)})},function(t,e,n){var r=n(217),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=i(t),l=r(t);return a<c?l*(a/c/s+1/o-1/o)*c*s:(n=(e=(1+s/o)*a)-(e-a))>u||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(2),i=Math.hypot,a=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*o(i)}})},function(t,e,n){var r=n(2),i=n(6),a=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){n(2)({target:"Math",stat:!0},{log10:n(227)})},function(t){var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){n(2)({target:"Math",stat:!0},{log1p:n(213)})},function(t,e,n){var r=n(2),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/a}})},function(t,e,n){n(2)({target:"Math",stat:!0},{sign:n(217)})},function(t,e,n){var r=n(2),i=n(6),a=n(220),o=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return o(t=+t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},function(t,e,n){var r=n(2),i=n(220),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){n(80)(Math,"Math",!0)},function(t,e,n){var r=n(2),i=Math.ceil,a=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?a:i)(t)}})},function(t,e,n){"use strict";var r=n(5),i=n(3),a=n(13),o=n(63),s=n(45),u=n(36),c=n(104),l=n(22),f=n(20),h=n(17),d=n(6),g=n(54).f,p=n(4).f,v=n(42).f,y=n(236),x=n(237).trim,_="Number",m=i.Number,b=m.prototype,w=i.TypeError,T=a("".slice),A=a("".charCodeAt),E=function(t){var e=h(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,r,i,a,o,s,u,c=h(t,"number");if(f(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=A(c,0))||45===e){if(88===(n=A(c,2))||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=(a=T(c,2)).length,s=0;s<o;s++)if((u=A(a,s))<48||u>i)return NaN;return parseInt(a,r)}return+c};if(o(_,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var k,M=function(t){var e=arguments.length<1?0:m(E(t)),n=this;return l(b,n)&&d((function(){y(n)}))?c(Object(e),n,M):e},O=r?g(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;O.length>R;R++)u(m,k=O[R])&&!u(M,k)&&v(M,k,p(m,k));M.prototype=b,b.constructor=M,s(i,_,M)}},function(t,e,n){var r=n(13);t.exports=r(1..valueOf)},function(t,e,n){var r=n(13),i=n(15),a=n(66),o=n(238),s=r("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=a(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(2)({target:"Number",stat:!0},{isFinite:n(241)})},function(t,e,n){var r=n(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(2)({target:"Number",stat:!0},{isInteger:n(243)})},function(t,e,n){var r=n(18),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(2)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(2),i=n(243),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(2),i=n(249);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(3),i=n(6),a=n(13),o=n(66),s=n(237).trim,u=n(238),c=a("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var r=n(2),i=n(251);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(3),i=n(6),a=n(13),o=n(66),s=n(237).trim,u=n(238),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=a(h.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(58),s=n(236),u=n(192),c=n(227),l=n(6),f=i.RangeError,h=i.String,d=i.isFinite,g=Math.abs,p=Math.floor,v=Math.pow,y=Math.round,x=a(1..toExponential),_=a(u),m=a("".slice),b="-6.9000e-11"===x(-69e-12,4)&&"1.25e+0"===x(1.255,2)&&"1.235e+4"===x(12345,3)&&"3e+1"===x(25,0),w=l((function(){x(1,1/0)}))&&l((function(){x(1,-1/0)})),T=!l((function(){x(1/0,1/0)}))&&!l((function(){x(NaN,1/0)}));r({target:"Number",proto:!0,forced:!b||!w||!T},{toExponential:function(t){var e=s(this);if(void 0===t)return x(e);var n=o(t);if(!d(e))return h(e);if(n<0||n>20)throw f("Incorrect fraction digits");if(b)return x(e,n);var r="",i="",a=0,u="",l="";if(e<0&&(r="-",e=-e),0===e)a=0,i=_("0",n+1);else{var w=c(e);a=p(w);var T=0,A=v(10,a-n);2*e>=(2*(T=y(e/A))+1)*A&&(T+=1),T>=v(10,n+1)&&(T/=10,a+=1),i=h(T)}return 0!==n&&(i=m(i,0,1)+"."+m(i,1)),0===a?(u="+",l="0"):(u=a>0?"+":"-",l=h(g(a))),r+(i+="e"+u+l)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(58),s=n(236),u=n(192),c=n(6),l=i.RangeError,f=i.String,h=Math.floor,d=a(u),g=a("".slice),p=a(1..toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},x=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=h(r/e),r=r%e*1e7},_=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=f(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,n,r,i,a=s(this),u=o(t),c=[0,0,0,0,0,0],h="",p="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return f(a);if(a<0&&(h="-",a=-a),a>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(a*v(2,69,1))-69)<0?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(y(c,0,n),r=u;r>=7;)y(c,1e7,0),r-=7;for(y(c,v(10,r,1),0),r=e-1;r>=23;)x(c,1<<23),r-=23;x(c,1<<r),y(c,1,1),x(c,2),p=_(c)}else y(c,0,n),y(c,1<<-e,0),p=_(c)+d("0",u);return p=u>0?h+((i=p.length)<=u?"0."+d("0",u-i)+p:g(p,0,i-u)+"."+g(p,i-u)):h+p}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6),o=n(236),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var r=n(2),i=n(256);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(5),i=n(13),a=n(7),o=n(6),s=n(71),u=n(62),c=n(9),l=n(37),f=n(12),h=Object.assign,d=Object.defineProperty,g=i([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,o=1,h=u.f,d=c.f;i>o;)for(var p,v=f(arguments[o++]),y=h?g(s(v),h(v)):s(v),x=y.length,_=0;x>_;)p=y[_++],r&&!a(d,v,p)||(n[p]=v[p]);return n}:h},function(t,e,n){n(2)({target:"Object",stat:!0,sham:!n(5)},{create:n(69)})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(28),s=n(37),u=n(42);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(33),i=n(3),a=n(6),o=n(166);t.exports=r||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},function(t,e,n){var r=n(2),i=n(5),a=n(70).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},function(t,e,n){var r=n(2),i=n(5),a=n(42).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(28),s=n(37),u=n(42);i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(2),i=n(264).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(5),i=n(13),a=n(71),o=n(11),s=i(n(9).f),u=i([].push),c=function(t){return function(e){for(var n,i=o(e),c=a(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(2),i=n(210),a=n(6),o=n(18),s=n(207).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!i},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var r=n(2),i=n(114),a=n(75);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(2),i=n(6),a=n(11),o=n(4).f,s=n(5),u=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var r=n(2),i=n(5),a=n(53),o=n(11),s=n(4),u=n(75);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),i=s.f,c=a(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(2),i=n(6),a=n(73).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var r=n(2),i=n(6),a=n(37),o=n(112),s=n(113);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(2)({target:"Object",stat:!0},{hasOwn:n(36)})},function(t,e,n){n(2)({target:"Object",stat:!0},{is:n(273)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(2),i=n(208);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(t,e,n){var r=n(2),i=n(6),a=n(18),o=n(14),s=n(209),u=Object.isFrozen;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(6),a=n(18),o=n(14),s=n(209),u=Object.isSealed;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(37),a=n(71);r({target:"Object",stat:!0,forced:n(6)((function(){a(1)}))},{keys:function(t){return a(i(t))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(37),s=n(16),u=n(112),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(37),s=n(16),u=n(112),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},function(t,e,n){var r=n(2),i=n(18),a=n(207).onFreeze,o=n(210),s=n(6),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){var r=n(2),i=n(18),a=n(207).onFreeze,o=n(210),s=n(6),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){n(2)({target:"Object",stat:!0},{setPrototypeOf:n(102)})},function(t,e,n){var r=n(68),i=n(45),a=n(284);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var r=n(68),i=n(67);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(2),i=n(264).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(2),i=n(249);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(2),i=n(251);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){"use strict";var r,i,a,o,s=n(2),u=n(33),c=n(3),l=n(21),f=n(7),h=n(289),d=n(45),g=n(175),p=n(102),v=n(80),y=n(168),x=n(28),_=n(19),m=n(18),b=n(176),w=n(46),T=n(114),A=n(142),E=n(182),S=n(290).set,k=n(293),M=n(296),O=n(298),R=n(297),C=n(299),I=n(300),L=n(47),P=n(63),D=n(31),N=n(301),z=n(157),F=n(25),j=D("species"),B="Promise",X=L.getterFor(B),$=L.set,U=L.getterFor(B),Y=h&&h.prototype,V=h,G=Y,H=c.TypeError,W=c.document,q=c.process,Z=R.f,K=Z,J=!!(W&&W.createEvent&&c.dispatchEvent),Q=_(c.PromiseRejectionEvent),tt="unhandledrejection",et=!1,nt=P(B,(function(){var t=w(V),e=t!==String(V);if(!e&&66===F)return!0;if(u&&!G.finally)return!0;if(F>=51&&/native code/.test(t))return!1;var n=new V((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[j]=r,!(et=n.then((function(){}))instanceof r)||!e&&N&&!Q})),rt=nt||!A((function(t){V.all(t).catch((function(){}))})),it=function(t){var e;return!(!m(t)||!_(e=t.then))&&e},at=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2===e.rejection&<(e),e.rejection=1),!0===s?n=a:(l&&l.enter(),n=s(a),l&&(l.exit(),i=!0)),n===t.promise?c(H("Promise-chain cycle")):(r=it(n))?f(r,n,u,c):u(n)):c(a)}catch(t){l&&!i&&l.exit(),c(t)}},ot=function(t,e){t.notified||(t.notified=!0,k((function(){for(var n,r=t.reactions;n=r.get();)at(n,t);t.notified=!1,e&&!t.rejection&&ut(t)})))},st=function(t,e,n){var r,i;J?((r=W.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(i=c["on"+t])?i(r):t===tt&&O("Unhandled promise rejection",n)},ut=function(t){f(S,c,(function(){var e,n=t.facade,r=t.value;if(ct(t)&&(e=C((function(){z?q.emit("unhandledRejection",r,n):st(tt,n,r)})),t.rejection=z||ct(t)?2:1,e.error))throw e.value}))},ct=function(t){return 1!==t.rejection&&!t.parent},lt=function(t){f(S,c,(function(){var e=t.facade;z?q.emit("rejectionHandled",e):st("rejectionhandled",e,t.value)}))},ft=function(t,e,n){return function(r){t(e,r,n)}},ht=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ot(t,!0))},dt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw H("Promise can't be resolved itself");var r=it(e);r?k((function(){var n={done:!1};try{f(r,e,ft(dt,n,t),ft(ht,n,t))}catch(e){ht(n,e,t)}})):(t.value=e,t.state=1,ot(t,!1))}catch(e){ht({done:!1},e,t)}}};if(nt&&(G=(V=function(t){b(this,G),x(t),f(r,this);var e=X(this);try{t(ft(dt,e),ft(ht,e))}catch(t){ht(e,t)}}).prototype,(r=function(t){$(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:void 0})}).prototype=g(G,{then:function(t,e){var n=U(this),r=Z(E(this,V));return n.parent=!0,r.ok=!_(t)||t,r.fail=_(e)&&e,r.domain=z?q.domain:void 0,0==n.state?n.reactions.add(r):k((function(){at(r,n)})),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=X(t);this.promise=t,this.resolve=ft(dt,e),this.reject=ft(ht,e)},R.f=Z=function(t){return t===V||t===a?new i(t):K(t)},!u&&_(h)&&Y!==Object.prototype)){o=Y.then,et||(d(Y,"then",(function(t,e){var n=this;return new V((function(t,e){f(o,n,t,e)})).then(t,e)}),{unsafe:!0}),d(Y,"catch",G.catch,{unsafe:!0}));try{delete Y.constructor}catch(t){}p&&p(Y,G)}s({global:!0,wrap:!0,forced:nt},{Promise:V}),v(V,B,!1,!0),y(B),a=l(B),s({target:B,stat:!0,forced:nt},{reject:function(t){var e=Z(this);return f(e.reject,void 0,t),e.promise}}),s({target:B,stat:!0,forced:u||nt},{resolve:function(t){return M(u&&this===a?V:this,t)}}),s({target:B,stat:!0,forced:rt},{all:function(t){var e=this,n=Z(e),r=n.resolve,i=n.reject,a=C((function(){var n=x(e.resolve),a=[],o=0,s=1;T(t,(function(t){var u=o++,c=!1;s++,f(n,e,t).then((function(t){c||(c=!0,a[u]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(t){var e=this,n=Z(e),r=n.reject,i=C((function(){var i=x(e.resolve);T(t,(function(t){f(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(3);t.exports=r.Promise},function(t,e,n){var r,i,a,o,s=n(3),u=n(64),c=n(82),l=n(19),f=n(36),h=n(6),d=n(72),g=n(76),p=n(40),v=n(291),y=n(292),x=n(157),_=s.setImmediate,m=s.clearImmediate,b=s.process,w=s.Dispatch,T=s.Function,A=s.MessageChannel,E=s.String,S=0,k={},M="onreadystatechange";try{r=s.location}catch(t){}var O=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){O(t)}},C=function(t){O(t.data)},I=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};_&&m||(_=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return k[++S]=function(){u(e,void 0,n)},i(S),S},m=function(t){delete k[t]},x?i=function(t){b.nextTick(R(t))}:w&&w.now?i=function(t){w.now(R(t))}:A&&!y?(o=(a=new A).port2,a.port1.onmessage=C,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",C,!1)):i=M in p("script")?function(t){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:_,clear:m}},function(t,e,n){var r=n(3).TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},function(t,e,n){var r=n(26);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){var r,i,a,o,s,u,c,l,f=n(3),h=n(82),d=n(4).f,g=n(290).set,p=n(292),v=n(294),y=n(295),x=n(157),_=f.MutationObserver||f.WebKitMutationObserver,m=f.document,b=f.process,w=f.Promise,T=d(f,"queueMicrotask"),A=T&&T.value;A||(r=function(){var t,e;for(x&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},p||x||y||!_||!m?!v&&w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=h(c.then,c),o=function(){l(r)}):x?o=function(){b.nextTick(r)}:(g=h(g,f),o=function(){g(r)}):(s=!0,u=m.createTextNode(""),new _(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},function(t,e,n){var r=n(26),i=n(3);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},function(t,e,n){var r=n(26);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(44),i=n(18),a=n(297);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(28),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(3);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},function(t){t.exports="object"==typeof window},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(28),o=n(297),s=n(299),u=n(114);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||r(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(28),a=n(21),o=n(7),s=n(297),u=n(299),c=n(114),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),f=r.resolve,h=r.reject,d=u((function(){var r=i(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var i=s++,c=!1;u++,o(r,e,t).then((function(t){c||d||(d=!0,f(t))}),(function(t){c||d||(c=!0,a[i]=t,--u||h(new n(a,l)))}))})),--u||h(new n(a,l))}));return d.error&&h(d.value),r.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(33),a=n(289),o=n(6),s=n(21),u=n(19),c=n(182),l=n(296),f=n(45);if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(a)){var h=s("Promise").prototype.finally;a.prototype.finally!==h&&f(a.prototype,"finally",h,{unsafe:!0})}},function(t,e,n){var r=n(2),i=n(64),a=n(28),o=n(44);r({target:"Reflect",stat:!0,forced:!n(6)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(a(t),e,o(n))}})},function(t,e,n){var r=n(2),i=n(21),a=n(64),o=n(199),s=n(183),u=n(44),c=n(18),l=n(69),f=n(6),h=i("Reflect","construct"),d=Object.prototype,g=[].push,p=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!f((function(){h((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return a(g,r,e),new(a(o,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=a(t,f,e);return c(y)?y:f}})},function(t,e,n){var r=n(2),i=n(5),a=n(44),o=n(16),s=n(42);r({target:"Reflect",stat:!0,forced:n(6)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){a(t);var r=o(e);a(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(44),a=n(4).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(2),i=n(7),a=n(18),o=n(44),s=n(310),u=n(4),c=n(112);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return o(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):a(l=c(e))?t(l,n,f):void 0}})},function(t,e,n){var r=n(36);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){var r=n(2),i=n(5),a=n(44),o=n(4);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var r=n(2),i=n(44),a=n(112);r({target:"Reflect",stat:!0,sham:!n(113)},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(2),i=n(44),a=n(208);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),a(t)}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{ownKeys:n(53)})},function(t,e,n){var r=n(2),i=n(21),a=n(44);r({target:"Reflect",stat:!0,sham:!n(210)},{preventExtensions:function(t){a(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(7),a=n(44),o=n(18),s=n(310),u=n(6),c=n(42),l=n(4),f=n(112),h=n(10);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=f(e)))return t(d,n,r,p);v=h(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,h(0,r))}else{if(void 0===(g=v.set))return!1;i(g,p,r)}return!0}})},function(t,e,n){var r=n(2),i=n(44),a=n(103),o=n(102);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(3),a=n(80);r({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(t,e,n){var r=n(5),i=n(3),a=n(13),o=n(63),s=n(104),u=n(41),c=n(42).f,l=n(54).f,f=n(22),h=n(321),d=n(66),g=n(322),p=n(323),v=n(45),y=n(6),x=n(36),_=n(47).enforce,m=n(168),b=n(31),w=n(324),T=n(325),A=b("match"),E=i.RegExp,S=E.prototype,k=i.SyntaxError,M=a(g),O=a(S.exec),R=a("".charAt),C=a("".replace),I=a("".indexOf),L=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,z=new E(D)!==D,F=p.MISSED_STICKY,j=p.UNSUPPORTED_Y,B=r&&(!z||F||w||T||y((function(){return N[A]=!1,E(D)!=D||E(N)==N||"/a/i"!=E(D,"i")})));if(o("RegExp",B)){for(var X=function(t,e){var n,r,i,a,o,c,l=f(S,this),g=h(t),p=void 0===e,v=[],y=t;if(!l&&g&&p&&t.constructor===X)return t;if((g||f(S,t))&&(t=t.source,p&&(e="flags"in y?y.flags:M(y))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),y=t,w&&"dotAll"in D&&(r=!!e&&I(e,"s")>-1)&&(e=C(e,/s/g,"")),n=e,F&&"sticky"in D&&(i=!!e&&I(e,"y")>-1)&&j&&(e=C(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(P,L(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new k("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,a]}(t),t=a[0],v=a[1]),o=s(E(t,e),l?this:S,X),(r||i||v.length)&&(c=_(o),r&&(c.dotAll=!0,c.raw=X(function(t){for(var e,n=t.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(e=R(t,r))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\s\\S]":i+=e+R(t,++r);return i}(t),n)),i&&(c.sticky=!0),v.length&&(c.groups=v)),t!==y)try{u(o,"source",""===y?"(?:)":y)}catch(t){}return o},$=function(t){t in X||c(X,t,{configurable:!0,get:function(){return E[t]},set:function(e){E[t]=e}})},U=l(E),Y=0;U.length>Y;)$(U[Y++]);S.constructor=X,X.prototype=S,v(i,"RegExp",X)}m("RegExp")},function(t,e,n){var r=n(18),i=n(14),a=n(31)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){"use strict";var r=n(44);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(6),i=n(3).RegExp,a=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(3),i=n(5),a=n(324),o=n(14),s=n(42).f,u=n(47).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(2),i=n(328);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";var r,i,a=n(7),o=n(13),s=n(66),u=n(322),c=n(323),l=n(32),f=n(69),h=n(47).get,d=n(324),g=n(325),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),_=o("".indexOf),m=o("".replace),b=o("".slice),w=(i=/b*/g,a(v,r=/a/,"a"),a(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),T=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,r,i,o,c,l,d=this,g=h(d),E=s(t),S=g.raw;if(S)return S.lastIndex=d.lastIndex,e=a(y,S,E),d.lastIndex=S.lastIndex,e;var k=g.groups,M=T&&d.sticky,O=a(u,d),R=d.source,C=0,I=E;if(M&&(O=m(O,"y",""),-1===_(O,"g")&&(O+="g"),I=b(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(E,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",O)),A&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(r=d.lastIndex),i=a(v,M?n:d,I),M?i?(i.input=b(i.input,C),i[0]=b(i[0],C),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),A&&i&&i.length>1&&a(p,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&k)for(i.groups=c=f(null),o=0;o<k.length;o++)c[(l=k[o])[0]]=i[l[1]];return i}),t.exports=y},function(t,e,n){var r=n(5),i=n(42),a=n(322),o=n(6),s=RegExp.prototype;r&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(s,"flags",{configurable:!0,get:a})},function(t,e,n){var r=n(3),i=n(5),a=n(323).MISSED_STICKY,o=n(14),s=n(42).f,u=n(47).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(327);var r,i,a=n(2),o=n(3),s=n(7),u=n(13),c=n(19),l=n(18),f=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=o.Error,d=u(/./.test);a({target:"RegExp",proto:!0,forced:!f},{test:function(t){var e=this.exec;if(!c(e))return d(this,t);var n=s(e,this,t);if(null!==n&&!l(n))throw new h("RegExp exec method returned something other than an Object or null");return!!n}})},function(t,e,n){"use strict";var r=n(13),i=n(51).PROPER,a=n(45),o=n(44),s=n(22),u=n(66),c=n(6),l=n(322),f="toString",h=RegExp.prototype,d=h.toString,g=r(l),p=c((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),v=i&&d.name!=f;(p||v)&&a(RegExp.prototype,f,(function(){var t=o(this),e=u(t.source),n=t.flags;return"/"+e+"/"+u(void 0===n&&s(h,t)&&!("flags"in h)?g(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";n(206)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(211))},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(15),o=n(58),s=n(66),u=n(6),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),n=e.length,r=o(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},function(t,e,n){"use strict";var r=n(2),i=n(336).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(13),i=n(58),a=n(66),o=n(15),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=a(o(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var r,i=n(2),a=n(13),o=n(4).f,s=n(60),u=n(66),c=n(338),l=n(15),f=n(339),h=n(33),d=a("".endsWith),g=a("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),a=u(t);return d?d(e,a,i):g(e,i-a.length,i)===a}})},function(t,e,n){var r=n(3),i=n(321),a=r.TypeError;t.exports=function(t){if(i(t))throw a("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(31)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(2),i=n(3),a=n(13),o=n(57),s=i.RangeError,u=String.fromCharCode,c=String.fromCodePoint,l=a([].join);r({target:"String",stat:!0,forced:!!c&&1!=c.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw s(e+" is not a valid code point");n[i]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return l(n,"")}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(338),o=n(15),s=n(66),u=n(339),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(336).charAt,i=n(66),a=n(47),o=n(147),s="String Iterator",u=a.set,c=a.getterFor(s);o(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(7),i=n(344),a=n(44),o=n(60),s=n(66),u=n(15),c=n(27),l=n(345),f=n(346);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=a(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var h,d=[],g=0;null!==(h=f(r,i));){var p=s(h[0]);d[g]=p,""===p&&(r.lastIndex=l(i,o(r.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(327);var r=n(13),i=n(45),a=n(328),o=n(6),s=n(31),u=n(41),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!g||n){var p=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,o){var s=r(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(336).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(3),i=n(7),a=n(44),o=n(19),s=n(14),u=n(328),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var r=i(n,t,e);return null!==r&&a(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(13),s=n(148),u=n(15),c=n(60),l=n(66),f=n(44),h=n(14),d=n(22),g=n(321),p=n(322),v=n(27),y=n(45),x=n(6),_=n(31),m=n(182),b=n(345),w=n(346),T=n(47),A=n(33),E=_("matchAll"),S="RegExp String",k="RegExp String Iterator",M=T.set,O=T.getterFor(k),R=RegExp.prototype,C=i.TypeError,I=o(p),L=o("".indexOf),P=o("".matchAll),D=!!P&&!x((function(){P("a",/./)})),N=s((function(t,e,n,r){M(this,{type:k,regexp:t,string:e,global:n,unicode:r,done:!1})}),S,(function(){var t=O(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,r=w(e,n);return null===r?{value:void 0,done:t.done=!0}:t.global?(""===l(r[0])&&(e.lastIndex=b(n,c(e.lastIndex),t.unicode)),{value:r,done:!1}):(t.done=!0,{value:r,done:!1})})),z=function(t){var e,n,r,i,a,o,s=f(this),u=l(t);return e=m(s,RegExp),void 0===(n=s.flags)&&d(R,s)&&!("flags"in R)&&(n=I(s)),r=void 0===n?"":l(n),i=new e(e===RegExp?s.source:s,r),a=!!~L(r,"g"),o=!!~L(r,"u"),i.lastIndex=c(s.lastIndex),new N(i,u,a,o)};r({target:"String",proto:!0,forced:D},{matchAll:function(t){var e,n,r,i,o=u(this);if(null!=t){if(g(t)&&(e=l(u("flags"in R?t.flags:I(t))),!~L(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(D)return P(o,t);if(void 0===(r=v(t,E))&&A&&"RegExp"==h(t)&&(r=z),r)return a(r,t,o)}else if(D)return P(o,t);return n=l(o),i=new RegExp(t,"g"),A?a(z,i,n):i[E](n)}}),A||E in R||y(R,E,z)},function(t,e,n){"use strict";var r=n(2),i=n(191).end;r({target:"String",proto:!0,forced:n(349)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(26);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(2),i=n(191).start;r({target:"String",proto:!0,forced:n(349)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(2),i=n(13),a=n(11),o=n(37),s=n(66),u=n(59),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){for(var e=a(o(t).raw),n=u(e),r=arguments.length,i=[],f=0;n>f;){if(c(i,s(e[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(t,e,n){n(2)({target:"String",proto:!0},{repeat:n(192)})},function(t,e,n){"use strict";var r=n(64),i=n(7),a=n(13),o=n(344),s=n(6),u=n(44),c=n(19),l=n(58),f=n(60),h=n(66),d=n(15),g=n(345),p=n(27),v=n(354),y=n(346),x=n(31)("replace"),_=Math.max,m=Math.min,b=a([].concat),w=a([].push),T=a("".indexOf),A=a("".slice),E="$0"==="a".replace(/./,"$0"),S=!!/./[x]&&""===/./[x]("a","$0");o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=d(this),a=null==t?void 0:p(t,x);return a?i(a,t,r,n):i(e,h(r),t,n)},function(t,i){var o=u(this),s=h(t);if("string"==typeof i&&-1===T(i,a)&&-1===T(i,"$<")){var d=n(e,o,s,i);if(d.done)return d.value}var p=c(i);p||(i=h(i));var x=o.global;if(x){var E=o.unicode;o.lastIndex=0}for(var S=[];;){var k=y(o,s);if(null===k)break;if(w(S,k),!x)break;""===h(k[0])&&(o.lastIndex=g(s,f(o.lastIndex),E))}for(var M,O="",R=0,C=0;C<S.length;C++){for(var I=h((k=S[C])[0]),L=_(m(l(k.index),s.length),0),P=[],D=1;D<k.length;D++)w(P,void 0===(M=k[D])?M:String(M));var N=k.groups;if(p){var z=b([I],P,L,s);void 0!==N&&w(z,N);var F=h(r(i,void 0,z))}else F=v(I,s,L,P,N,i);L>=R&&(O+=A(s,R,L)+F,R=L+I.length)}return O+A(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||S)},function(t,e,n){var r=n(13),i=n(37),a=Math.floor,o=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,g=r.length,p=l;return void 0!==f&&(f=i(f),p=c),s(h,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>g){var h=a(l/10);return 0===h?i:h<=g?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(13),s=n(15),u=n(19),c=n(321),l=n(66),f=n(27),h=n(322),d=n(354),g=n(31),p=n(33),v=g("replace"),y=RegExp.prototype,x=i.TypeError,_=o(h),m=o("".indexOf),b=o("".replace),w=o("".slice),T=Math.max,A=function(t,e,n){return n>t.length?-1:""===e?n:m(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,i,o,h,g,E,S,k,M=s(this),O=0,R=0,C="";if(null!=t){if((n=c(t))&&(r=l(s("flags"in y?t.flags:_(t))),!~m(r,"g")))throw x("`.replaceAll` does not allow non-global regexes");if(i=f(t,v))return a(i,t,M,e);if(p&&n)return b(l(M),t,e)}for(o=l(M),h=l(t),(g=u(e))||(e=l(e)),E=h.length,S=T(1,E),O=A(o,h,0);-1!==O;)k=g?l(e(h,O,o)):d(h,o,O,[],void 0,e),C+=w(o,R,O)+k,R=O+E,O=A(o,h,O+S);return R<o.length&&(C+=w(o,R)),C}})},function(t,e,n){"use strict";var r=n(7),i=n(344),a=n(44),o=n(15),s=n(273),u=n(66),c=n(27),l=n(346);i("search",(function(t,e,n){return[function(e){var n=o(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=a(this),i=u(t),o=n(e,r,i);if(o.done)return o.value;var c=r.lastIndex;s(c,0)||(r.lastIndex=0);var f=l(r,i);return s(r.lastIndex,c)||(r.lastIndex=c),null===f?-1:f.index}]}))},function(t,e,n){"use strict";var r=n(64),i=n(7),a=n(13),o=n(344),s=n(321),u=n(44),c=n(15),l=n(182),f=n(345),h=n(60),d=n(66),g=n(27),p=n(74),v=n(346),y=n(328),x=n(323),_=n(6),m=x.UNSUPPORTED_Y,b=4294967295,w=Math.min,T=[].push,A=a(/./.exec),E=a(T),S=a("".slice),k=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=d(c(this)),o=void 0===n?b:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!s(t))return i(e,a,t,o);for(var u,l,f,h=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,x=new RegExp(t.source,g+"g");(u=i(y,x,a))&&!((l=x.lastIndex)>v&&(E(h,S(a,v,u.index)),u.length>1&&u.index<a.length&&r(T,h,p(u,1)),f=u[0].length,v=l,h.length>=o));)x.lastIndex===u.index&&x.lastIndex++;return v===a.length?!f&&A(x,"")||E(h,""):E(h,S(a,v)),h.length>o?p(h,0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),o=null==e?void 0:g(e,t);return o?i(o,e,r,n):i(a,d(r),e,n)},function(t,r){var i=u(this),o=d(t),s=n(a,i,o,r,a!==e);if(s.done)return s.value;var c=l(i,RegExp),g=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m?"g":"y"),y=new c(m?"^(?:"+i.source+")":i,p),x=void 0===r?b:r>>>0;if(0===x)return[];if(0===o.length)return null===v(y,o)?[o]:[];for(var _=0,T=0,A=[];T<o.length;){y.lastIndex=m?0:T;var k,M=v(y,m?S(o,T):o);if(null===M||(k=w(h(y.lastIndex+(m?T:0)),o.length))===_)T=f(o,T,g);else{if(E(A,S(o,_,T)),A.length===x)return A;for(var O=1;O<=M.length-1;O++)if(E(A,M[O]),A.length===x)return A;T=_=k}}return E(A,S(o,_)),A}]}),!k,m)},function(t,e,n){"use strict";var r,i=n(2),a=n(13),o=n(4).f,s=n(60),u=n(66),c=n(338),l=n(15),f=n(339),h=n(33),d=a("".startsWith),g=a("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):g(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(15),o=n(58),s=n(66),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(a(this)),f=i.length,h=o(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:o(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},function(t,e,n){"use strict";var r=n(2),i=n(237).trim;r({target:"String",proto:!0,forced:n(361)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(51).PROPER,i=n(6),a=n(238);t.exports=function(t){return i((function(){return!!a[t]()||"
"!=="
"[t]()||r&&a[t].name!==t}))}},function(t,e,n){"use strict";var r=n(2),i=n(237).end,a=n(361)("trimEnd"),o=a?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,name:"trimEnd",forced:a},{trimEnd:o,trimRight:o})},function(t,e,n){"use strict";var r=n(2),i=n(237).start,a=n(361)("trimStart"),o=a?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,name:"trimStart",forced:a},{trimStart:o,trimLeft:o})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){var r=n(13),i=n(15),a=n(66),o=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=a(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(r),o,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(6);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){n(380)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(5),s=n(381),u=n(180),c=n(173),l=n(176),f=n(10),h=n(41),d=n(243),g=n(60),p=n(177),v=n(382),y=n(16),x=n(36),_=n(67),m=n(18),b=n(20),w=n(69),T=n(22),A=n(102),E=n(54).f,S=n(384),k=n(81).forEach,M=n(168),O=n(42),R=n(4),C=n(47),I=n(104),L=C.get,P=C.set,D=O.f,N=R.f,z=Math.round,F=i.RangeError,j=c.ArrayBuffer,B=j.prototype,X=c.DataView,$=u.NATIVE_ARRAY_BUFFER_VIEWS,U=u.TYPED_ARRAY_CONSTRUCTOR,Y=u.TYPED_ARRAY_TAG,V=u.TypedArray,G=u.TypedArrayPrototype,H=u.aTypedArrayConstructor,W=u.isTypedArray,q="BYTES_PER_ELEMENT",Z="Wrong length",K=function(t,e){H(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},J=function(t,e){D(t,e,{get:function(){return L(this)[e]}})},Q=function(t){var e;return T(B,t)||"ArrayBuffer"==(e=_(t))||"SharedArrayBuffer"==e},tt=function(t,e){return W(t)&&!b(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?f(2,t[e]):N(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&m(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?D(t,e,n):(t[e]=n.value,t)};o?($||(R.f=et,O.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),r({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],y=d,x=y&&y.prototype,_={},b=function(t,e){D(t,e,{get:function(){return function(t,e){var n=L(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=L(t);n&&(r=(r=z(r))<0?0:r>255?255:255&r),i.view[f](e*o+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};$?s&&(y=e((function(t,e,n,r){return l(t,x),I(m(e)?Q(e)?void 0!==r?new d(e,v(n,o),r):void 0!==n?new d(e,v(n,o)):new d(e):W(e)?K(y,e):a(S,y,e):new d(p(e)),t,y)})),A&&A(y,V),k(E(d),(function(t){t in y||h(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,r){l(t,x);var i,s,u,c=0,f=0;if(m(e)){if(!Q(e))return W(e)?K(y,e):a(S,y,e);i=e,f=v(n,o);var h=e.byteLength;if(void 0===r){if(h%o)throw F(Z);if((s=h-f)<0)throw F(Z)}else if((s=g(r)*o)+f>h)throw F(Z);u=s/o}else u=p(e),i=new j(s=u*o);for(P(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new X(i)});c<u;)b(t,c++)})),A&&A(y,V),x=y.prototype=w(G)),x.constructor!==y&&h(x,"constructor",y),h(x,U,y),Y&&h(x,Y,u),_[u]=y,r({global:!0,forced:y!=d,sham:!$},_),q in y||h(y,q,o),q in x||h(x,q,o),M(u)}):t.exports=function(){}},function(t,e,n){var r=n(3),i=n(6),a=n(142),o=n(180).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var r=n(3),i=n(383),a=r.RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw a("Wrong offset");return n}},function(t,e,n){var r=n(3),i=n(58),a=r.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw a("The argument can't be less than 0");return e}},function(t,e,n){var r=n(82),i=n(7),a=n(183),o=n(37),s=n(59),u=n(117),c=n(118),l=n(115),f=n(180).aTypedArrayConstructor;t.exports=function(t){var e,n,h,d,g,p,v=a(this),y=o(t),x=arguments.length,_=x>1?arguments[1]:void 0,m=void 0!==_,b=c(y);if(b&&!l(b))for(p=(g=u(y,b)).next,y=[];!(d=i(p,g)).done;)y.push(d.value);for(m&&x>2&&(_=r(_,arguments[2])),n=s(y),h=new(f(v))(n),e=0;n>e;e++)h[e]=m?_(y[e],e):y[e];return h}},function(t,e,n){n(380)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(380)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(180),i=n(59),a=n(58),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var r=n(13),i=n(180),a=r(n(126)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(7),a=n(130),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){var e=arguments.length;return i(a,o(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).filter,a=n(398),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var r=n(399),i=n(400);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(59);t.exports=function(t,e){for(var n=0,i=r(e),a=new t(i);i>n;)a[n]=e[n++];return a}},function(t,e,n){var r=n(180),i=n(182),a=r.TYPED_ARRAY_CONSTRUCTOR,o=r.aTypedArrayConstructor;t.exports=function(t){return o(i(t,t[a]))}},function(t,e,n){"use strict";var r=n(180),i=n(81).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(381);(0,n(180).exportTypedArrayStaticMethod)("from",n(384),r)},function(t,e,n){"use strict";var r=n(180),i=n(56).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(56).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(13),o=n(180),s=n(146),u=n(31)("iterator"),c=r.Uint8Array,l=a(s.values),f=a(s.keys),h=a(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype,v=!i((function(){p[u].call([1])})),y=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,x=function(){return l(d(this))};g("entries",(function(){return h(d(this))}),v),g("keys",(function(){return f(d(this))}),v),g("values",x,v||!y,{name:"values"}),g(u,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var r=n(180),i=n(13),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var r=n(180),i=n(64),a=n(152),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(180),i=n(81).map,a=n(400),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var r=n(180),i=n(381),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(180),i=n(156).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(156).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=i(e).length,r=o(n/2),a=0;a<r;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(180),o=n(59),s=n(382),u=n(37),c=n(6),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,d=h&&h.set,g=a.aTypedArray,p=a.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){g(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(v)return i(d,this,n,e);var r=this.length,a=o(n),c=0;if(a+e>r)throw l("Wrong length");for(;c<a;)this[e+c]=n[c++]}),!v||y)},function(t,e,n){"use strict";var r=n(180),i=n(400),a=n(6),o=n(76),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),r=i(this),a=0,u=n.length,c=new r(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(180),i=n(81).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(6),o=n(28),s=n(163),u=n(180),c=n(164),l=n(165),f=n(25),h=n(166),d=r.Array,g=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,y=v&&i(v.prototype.sort),x=!(!y||a((function(){y(new v(2),null)}))&&a((function(){y(new v(2),{})}))),_=!!y&&!a((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=d(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(y(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&o(t),_?y(this,t):s(g(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!_||x)},function(t,e,n){"use strict";var r=n(180),i=n(60),a=n(57),o=n(400),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),r=n.length,u=a(t,r);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:a(e,r))-u))}))},function(t,e,n){"use strict";var r=n(3),i=n(64),a=n(180),o=n(6),s=n(76),u=r.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&o((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(180).exportTypedArrayMethod,i=n(6),a=n(3),o=n(13),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(66),o=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=a(t),i="",h=r.length,d=0;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=o(parseInt(n,16)),d+=2;continue}i+=e}return i}})},function(t,e,n){"use strict";var r,i=n(3),a=n(13),o=n(175),s=n(207),u=n(206),c=n(424),l=n(18),f=n(208),h=n(47).enforce,d=n(48),g=!i.ActiveXObject&&"ActiveXObject"in i,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=u("WeakMap",p,c);if(d&&g){r=c.getConstructor(p,"WeakMap",!0),s.enable();var y=v.prototype,x=a(y.delete),_=a(y.has),m=a(y.get),b=a(y.set);o(y,{delete:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),x(this,t)||e.frozen.delete(t)}return x(this,t)},has:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)||e.frozen.has(t)}return _(this,t)},get:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)?m(this,t):e.frozen.get(t)}return m(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=h(this);n.frozen||(n.frozen=new r),_(this,t)?b(this,t,e):n.frozen.set(t,e)}else b(this,t,e);return this}})}},function(t,e,n){"use strict";var r=n(13),i=n(175),a=n(207).getWeakData,o=n(44),s=n(18),u=n(176),c=n(114),l=n(81),f=n(36),h=n(47),d=h.set,g=h.getterFor,p=l.find,v=l.findIndex,y=r([].splice),x=0,_=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,h),d(t,{type:e,id:x++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),h=l.prototype,p=g(e),v=function(t,e,n){var r=p(t),i=a(o(e),!0);return!0===i?_(r).set(e,n):i[r.id]=n,t};return i(h,{delete:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).has(t):n&&f(n,e.id)}}),i(h,n?{get:function(t){var e=p(this);if(s(t)){var n=a(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),l}}},function(t,e,n){"use strict";n(206)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(424))},function(t,e,n){var r=n(2),i=n(21),a=n(13),o=n(6),s=n(66),u=n(36),c=n(291),l=n(427).ctoi,f=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,d=/[=]+$/,g=i("atob"),p=String.fromCharCode,v=a("".charAt),y=a("".replace),x=a(f.exec),_=o((function(){return""!==atob(" ")})),m=!_&&!o((function(){g()}));r({global:!0,enumerable:!0,forced:_||m},{atob:function(t){if(c(arguments.length,1),m)return g(t);var e,n,r=y(s(t),h,""),a="",o=0,_=0;if(r.length%4==0&&(r=y(r,d,"")),r.length%4==1||x(f,r))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=v(r,o++);)u(l,e)&&(n=_%4?64*n+l[e]:l[e],_++%4&&(a+=p(255&n>>(-2*_&6))));return a}})},function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},r=0;r<66;r++)n[e.charAt(r)]=r;t.exports={itoc:e,ctoi:n}},function(t,e,n){var r=n(2),i=n(21),a=n(13),o=n(6),s=n(66),u=n(291),c=n(427).itoc,l=i("btoa"),f=a("".charAt),h=a("".charCodeAt),d=!!l&&!o((function(){l()}));r({global:!0,enumerable:!0,forced:d},{btoa:function(t){if(u(arguments.length,1),d)return l(t);for(var e,n,r=s(t),a="",o=0,g=c;f(r,o)||(g="=",o%1);){if((n=h(r,o+=3/4))>255)throw new(i("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=f(g,63&(e=e<<8|n)>>8-o%1*8)}return a}})},function(t,e,n){var r=n(3),i=n(430),a=n(431),o=n(138),s=n(41),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(40)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(3),i=n(430),a=n(431),o=n(146),s=n(41),u=n(31),c=u("iterator"),l=u("toStringTag"),f=o.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),i[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(a,"DOMTokenList")},function(t,e,n){"use strict";var r=n(2),i=n(434),a=n(21),o=n(6),s=n(69),u=n(10),c=n(42).f,l=n(70).f,f=n(45),h=n(36),d=n(176),g=n(44),p=n(110),v=n(105),y=n(435),x=n(107),_=n(47),m=n(5),b=n(33),w="DOMException",T="DATA_CLONE_ERR",A=a("Error"),E=a(w)||function(){try{(new(a("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==T&&25==t.code)return t.constructor}}(),S=E&&E.prototype,k=A.prototype,M=_.set,O=_.getterFor(w),R="stack"in A(w),C=function(t){return h(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,L);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),r=C(n);if(M(this,{type:w,name:n,message:e,code:r}),m||(this.name=n,this.message=e,this.code=r),R){var i=A(e);i.name=w,c(this,"stack",u(1,x(i.stack,1)))}},L=I.prototype=s(k),P=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return P((function(){return O(this)[t]}))};m&&l(L,{name:D("name"),message:D("message"),code:D("code")}),c(L,"constructor",u(1,I));var N=o((function(){return!(new E instanceof A)})),z=N||o((function(){return k.toString!==p||"2: 1"!==String(new E(1,2))})),F=N||o((function(){return 25!==new E(1,"DataCloneError").code})),j=N||25!==E.DATA_CLONE_ERR||25!==S.DATA_CLONE_ERR,B=b?z||F||j:N;r({global:!0,forced:B},{DOMException:B?I:E});var X=a(w),$=X.prototype;for(var U in z&&(b||E===X)&&f($,"toString",p),F&&m&&E===X&&c($,"code",P((function(){return C(g(this).name)}))),y)if(h(y,U)){var Y=y[U],V=Y.s,G=u(6,Y.c);h(X,V)||c(X,V,G),h($,V)||c($,V,G)}},function(t,e,n){var r=n(157);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(t){}}},function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(t,e,n){"use strict";var r=n(2),i=n(21),a=n(10),o=n(42).f,s=n(36),u=n(176),c=n(104),l=n(105),f=n(435),h=n(107),d=n(33),g="DOMException",p=i("Error"),v=i(g),y=function(){u(this,x);var t=arguments.length,e=l(t<1?void 0:arguments[0]),n=l(t<2?void 0:arguments[1],"Error"),r=new v(e,n),i=p(e);return i.name=g,o(r,"stack",a(1,h(i.stack,1))),c(r,this,y),r},x=y.prototype=v.prototype,_="stack"in p(g),m="stack"in new v(1,2),b=_&&!m;r({global:!0,forced:d||b},{DOMException:b?y:v});var w=i(g),T=w.prototype;if(T.constructor!==w)for(var A in d||o(T,"constructor",a(1,w)),f)if(s(f,A)){var E=f[A],S=E.s;s(w,S)||o(w,S,a(6,E.c))}},function(t,e,n){var r=n(21),i="DOMException";n(80)(r(i),i)},function(t,e,n){var r=n(2),i=n(3),a=n(290);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(t,e,n){var r=n(2),i=n(3),a=n(293),o=n(28),s=n(291),u=n(157),c=i.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){s(arguments.length,1),o(t);var e=u&&c.domain;a(e?e.bind(t):t)}})},function(t,e,n){var r,i=n(33),a=n(2),o=n(3),s=n(21),u=n(13),c=n(6),l=n(38),f=n(19),h=n(85),d=n(18),g=n(20),p=n(114),v=n(44),y=n(67),x=n(36),_=n(75),m=n(41),b=n(59),w=n(291),T=n(322),A=n(108),E=o.Object,S=o.Date,k=o.Error,M=o.EvalError,O=o.RangeError,R=o.ReferenceError,C=o.SyntaxError,I=o.TypeError,L=o.URIError,P=o.PerformanceMark,D=o.WebAssembly,N=D&&D.CompileError||k,z=D&&D.LinkError||k,F=D&&D.RuntimeError||k,j=s("DOMException"),B=s("Set"),X=s("Map"),$=X.prototype,U=u($.has),Y=u($.get),V=u($.set),G=u(B.prototype.add),H=s("Object","keys"),W=u([].push),q=u((!0).valueOf),Z=u(1..valueOf),K=u("".valueOf),J=u(T),Q=u(S.prototype.getTime),tt=l("structuredClone"),et="DataCloneError",nt="Transferring",rt=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),r=t(E(7));return n==e||!n.has(7)||"object"!=typeof r||7!=r}))&&t},it=o.structuredClone,at=i||(r=it,!(!c((function(){var t=r(new o.AggregateError([1],tt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=tt||3!=t.cause}))&&r)),ot=!it&&rt((function(t){return new P(tt,{detail:t}).detail})),st=rt(it)||ot,ut=function(t){throw new j("Uncloneable type: "+t,et)},ct=function(t,e){throw new j((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",et)},lt=function(t,e){if(g(t)&&ut("Symbol"),!d(t))return t;if(e){if(U(e,t))return Y(e,t)}else e=new X;var n,r,i,a,u,c,l,p,v,w,T=y(t),P=!1;switch(T){case"Array":i=[],P=!0;break;case"Object":i={},P=!0;break;case"Map":i=new X,P=!0;break;case"Set":i=new B,P=!0;break;case"RegExp":i=new RegExp(t.source,"flags"in t?t.flags:J(t));break;case"Error":switch(r=t.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=M();break;case"RangeError":i=O();break;case"ReferenceError":i=R();break;case"SyntaxError":i=C();break;case"TypeError":i=I();break;case"URIError":i=L();break;case"CompileError":i=N();break;case"LinkError":i=z();break;case"RuntimeError":i=F();break;default:i=k()}P=!0;break;case"DOMException":i=new j(t.message,t.name),P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=o[T],d(n)||ct(T),i=new n(lt(t.buffer,e),t.byteOffset,"DataView"===T?t.byteLength:t.length);break;case"DOMQuad":try{i=new DOMQuad(lt(t.p1,e),lt(t.p2,e),lt(t.p3,e),lt(t.p4,e))}catch(e){st?i=st(t):ct(T)}break;case"FileList":if(n=o.DataTransfer,h(n)){for(a=new n,u=0,c=b(t);u<c;u++)a.items.add(lt(t[u],e));i=a.files}else st?i=st(t):ct(T);break;case"ImageData":try{i=new ImageData(lt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){st?i=st(t):ct(T)}break;default:if(st)i=st(t);else switch(T){case"BigInt":i=E(t.valueOf());break;case"Boolean":i=E(q(t));break;case"Number":i=E(Z(t));break;case"String":i=E(K(t));break;case"Date":i=new S(Q(t));break;case"ArrayBuffer":(n=o.DataView)||"function"==typeof t.slice||ct(T);try{if("function"==typeof t.slice)i=t.slice(0);else for(c=t.byteLength,i=new ArrayBuffer(c),v=new n(t),w=new n(i),u=0;u<c;u++)w.setUint8(u,v.getUint8(u))}catch(t){throw new j("ArrayBuffer is detached",et)}break;case"SharedArrayBuffer":i=t;break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){ct(T)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[T];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){ct(T)}break;case"DOMRect":case"DOMRectReadOnly":n=o[T];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){ct(T)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[T];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){ct(T)}break;case"AudioData":case"VideoFrame":f(t.clone)||ct(T);try{i=t.clone()}catch(t){ut(T)}break;case"File":try{i=new File([t],t.name,t)}catch(t){ct(T)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ct(T);default:ut(T)}}if(V(e,t,i),P)switch(T){case"Array":case"Object":for(l=H(t),u=0,c=b(l);u<c;u++)p=l[u],_(i,p,lt(t[p],e));break;case"Map":t.forEach((function(t,n){V(i,lt(n,e),lt(t,e))}));break;case"Set":t.forEach((function(t){G(i,lt(t,e))}));break;case"Error":m(i,"message",lt(t.message,e)),x(t,"cause")&&m(i,"cause",lt(t.cause,e)),"AggregateError"==r&&(i.errors=lt(t.errors,e));case"DOMException":A&&m(i,"stack",lt(t.stack,e))}return i},ft=it&&!c((function(){var t=new ArrayBuffer(8),e=it(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),ht=function(t,e){if(!d(t))throw I("Transfer option cannot be converted to a sequence");var n=[];p(t,(function(t){W(n,v(t))}));var r,i,a,s,u,c,l=0,g=b(n);if(ft)for(s=it(n,{transfer:n});l<g;)V(e,n[l],s[l++]);else for(;l<g;){if(r=n[l++],U(e,r))throw new j("Duplicate transferable",et);switch(i=y(r)){case"ImageBitmap":a=o.OffscreenCanvas,h(a)||ct(i,nt);try{(c=new a(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),u=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||ct(i,nt);try{u=r.clone(),r.close()}catch(t){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":ct(i,nt)}if(void 0===u)throw new j("This object cannot be transferred: "+i,et);V(e,r,u)}};a({global:!0,enumerable:!0,sham:!ft,forced:at},{structuredClone:function(t){var e,n=w(arguments.length,1)>1?v(arguments[1]):void 0,r=n?n.transfer:void 0;return void 0!==r&&(e=new X,ht(r,e)),lt(t,e)}})},function(t,e,n){var r=n(2),i=n(3),a=n(64),o=n(19),s=n(26),u=n(76),c=n(291),l=/MSIE .\./.test(s),f=i.Function,h=function(t){return function(e,n){var r=c(arguments.length,1)>2,i=o(e)?e:f(e),s=r?u(arguments,2):void 0;return t(r?function(){a(i,this,s)}:i,n)}};r({global:!0,bind:!0,forced:l},{setTimeout:h(i.setTimeout),setInterval:h(i.setInterval)})},function(t,e,n){"use strict";n(342);var r,i=n(2),a=n(5),o=n(443),s=n(3),u=n(82),c=n(13),l=n(70).f,f=n(45),h=n(176),d=n(36),g=n(256),p=n(140),v=n(74),y=n(336).codeAt,x=n(444),_=n(66),m=n(80),b=n(291),w=n(445),T=n(47),A=T.set,E=T.getterFor("URL"),S=w.URLSearchParams,k=w.getState,M=s.URL,O=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,L=c("".charAt),P=c(/./.exec),D=c([].join),N=c(1..toString),z=c([].pop),F=c([].push),j=c("".replace),B=c([].shift),X=c("".split),$=c("".slice),U=c("".toLowerCase),Y=c([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,it=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=C(t/256);return D(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=N(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},st=g({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=g({},st,{"#":1,"?":1,"{":1,"}":1}),ct=g({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,e){var n;return 2==t.length&&P(W,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},dt=function(t){var e;return t.length>1&&ht($(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===U(t)},pt={},vt={},yt={},xt={},_t={},mt={},bt={},wt={},Tt={},At={},Et={},St={},kt={},Mt={},Ot={},Rt={},Ct={},It={},Lt={},Pt={},Dt={},Nt=function(t,e,n){var r,i,a,o=_(t);if(e){if(i=this.parse(o))throw O(i);this.searchParams=null}else{if(void 0!==n&&(r=new Nt(n,!0)),i=this.parse(o,null,r))throw O(i);(a=k(new S)).bindURL(this),this.searchParams=a}};Nt.prototype={type:"URL",parse:function(t,e,n){var i,a,o,s,u,c=this,l=e||pt,f=0,h="",g=!1,y=!1,x=!1;for(t=_(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=j(t,rt,"")),t=j(t,it,""),i=p(t);f<=i.length;){switch(a=i[f],l){case pt:if(!a||!P(W,a)){if(e)return V;l=yt;continue}h+=U(a),l=vt;break;case vt:if(a&&(P(q,a)||"+"==a||"-"==a||"."==a))h+=U(a);else{if(":"!=a){if(e)return V;h="",l=yt,f=0;continue}if(e&&(c.isSpecial()!=d(ft,h)||"file"==h&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ft[c.scheme]==c.port&&(c.port=null));h="","file"==c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme==c.scheme?l=xt:c.isSpecial()?l=wt:"/"==i[f+1]?(l=_t,f++):(c.cannotBeABaseURL=!0,F(c.path,""),l=Lt)}break;case yt:if(!n||n.cannotBeABaseURL&&"#"!=a)return V;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Dt;break}l="file"==n.scheme?Mt:mt;continue;case xt:if("/"!=a||"/"!=i[f+1]){l=mt;continue}l=Tt,f++;break;case _t:if("/"==a){l=At;break}l=It;continue;case mt:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=bt;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}break;case bt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=At}else l=Tt;break;case wt:if(l=Tt,"/"!=a||"/"!=L(h,f+1))continue;f++;break;case Tt:if("/"!=a&&"\\"!=a){l=At;continue}break;case At:if("@"==a){g&&(h="%40"+h),g=!0,o=p(h);for(var m=0;m<o.length;m++){var b=o[m];if(":"!=b||x){var w=lt(b,ct);x?c.password+=w:c.username+=w}else x=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(g&&""==h)return"Invalid authority";f-=p(h).length+1,h="",l=Et}else h+=a;break;case Et:case St:if(e&&"file"==c.scheme){l=Rt;continue}if(":"!=a||y){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==h)return G;if(e&&""==h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",l=Ct,e)return;continue}"["==a?y=!0:"]"==a&&(y=!1),h+=a}else{if(""==h)return G;if(s=c.parseHost(h))return s;if(h="",l=kt,e==St)return}break;case kt:if(!P(Z,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=h){var T=R(h,10);if(T>65535)return H;c.port=c.isSpecial()&&T===ft[c.scheme]?null:T,h=""}if(e)return;l=Ct;continue}return H}h+=a;break;case Mt:if(c.scheme="file","/"==a||"\\"==a)l=Ot;else{if(!n||"file"!=n.scheme){l=It;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){dt(D(v(i,f),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=It;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}}break;case Ot:if("/"==a||"\\"==a){l=Rt;break}n&&"file"==n.scheme&&!dt(D(v(i,f),""))&&(ht(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),l=It;continue;case Rt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&ht(h))l=It;else if(""==h){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(h))return s;if("localhost"==c.host&&(c.host=""),e)return;h="",l=Ct}continue}h+=a;break;case Ct:if(c.isSpecial()){if(l=It,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=r&&(l=It,"/"!=a))continue}else c.fragment="",l=Dt;else c.query="",l=Pt;break;case It:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(u=U(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||F(c.path,"")):gt(h)?"/"==a||"\\"==a&&c.isSpecial()||F(c.path,""):("file"==c.scheme&&!c.path.length&&ht(h)&&(c.host&&(c.host=""),h=L(h,0)+":"),F(c.path,h)),h="","file"==c.scheme&&(a==r||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==a?(c.query="",l=Pt):"#"==a&&(c.fragment="",l=Dt)}else h+=lt(a,ut);break;case Lt:"?"==a?(c.query="",l=Pt):"#"==a?(c.fragment="",l=Dt):a!=r&&(c.path[0]+=lt(a,ot));break;case Pt:e||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":lt(a,ot)):(c.fragment="",l=Dt);break;case Dt:a!=r&&(c.fragment+=lt(a,st))}f++}},parseHost:function(t){var e,n,r;if("["==L(t,0)){if("]"!=L(t,t.length-1))return G;if(e=function(t){var e,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return L(t,f)};if(":"==h()){if(":"!=L(t,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&P(tt,h());)e=16*e+R(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!P(Z,h()))return;for(;P(Z,h());){if(a=R(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}($(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),P(et,t))return G;if(e=function(t){var e,n,r,i,a,o,s,u=X(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(a=10,i.length>1&&"0"==L(i,0)&&(a=P(K,i)?16:8,i=$(i,8==a?1:2)),""===i)o=0;else{if(!P(10==a?Q:8==a?J:tt,i))return t;o=R(i,a)}F(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=I(256,5-e))return null}else if(o>255)return null;for(s=z(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(t),null===e)return G;this.host=e}else{if(P(nt,t))return G;for(e="",n=p(t),r=0;r<n.length;r++)e+=lt(n[r],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ht(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=at(i),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(_(t)+":",pt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=lt(e[n],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=lt(e[n],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,St)},getPort:function(){var t=this.port;return null===t?"":_(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=_(t))?this.port=null:this.parse(t,kt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+D(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ct))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=_(t))?this.query=null:("?"==L(t,0)&&(t=$(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=_(t))?("#"==L(t,0)&&(t=$(t,1)),this.fragment="",this.parse(t,Dt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=h(this,Ft),n=b(arguments.length,1)>1?arguments[1]:void 0,r=A(e,new Nt(t,!1,n));a||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Ft=zt.prototype,jt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&l(Ft,{href:jt("serialize","setHref"),origin:jt("getOrigin"),protocol:jt("getProtocol","setProtocol"),username:jt("getUsername","setUsername"),password:jt("getPassword","setPassword"),host:jt("getHost","setHost"),hostname:jt("getHostname","setHostname"),port:jt("getPort","setPort"),pathname:jt("getPathname","setPathname"),search:jt("getSearch","setSearch"),searchParams:jt("getSearchParams"),hash:jt("getHash","setHash")}),f(Ft,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),f(Ft,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),M){var Bt=M.createObjectURL,Xt=M.revokeObjectURL;Bt&&f(zt,"createObjectURL",u(Bt,M)),Xt&&f(zt,"revokeObjectURL",u(Xt,M))}m(zt,"URL"),i({global:!0,forced:!o,sham:!a},{URL:zt})},function(t,e,n){var r=n(6),i=n(31),a=n(33),o=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var r=n(3),i=n(13),a=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=r.RangeError,l=i(s.exec),f=Math.floor,h=String.fromCharCode,d=i("".charCodeAt),g=i([].join),p=i([].push),v=i("".replace),y=i("".split),x=i("".toLowerCase),_=function(t){return t+22+75*(t<26)},m=function(t,e,n){var r=0;for(t=n?f(t/700):t>>1,t+=f(t/e);t>455;)t=f(t/35),r+=36;return f(r+36*t/(t+38))},b=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=d(t,n++);if(i>=55296&&i<=56319&&n<r){var a=d(t,n++);56320==(64512&a)?p(e,((1023&i)<<10)+(1023&a)+65536):(p(e,i),n--)}else p(e,i)}return e}(t);var n,r,i=t.length,o=128,s=0,l=72;for(n=0;n<t.length;n++)(r=t[n])<128&&p(e,h(r));var v=e.length,y=v;for(v&&p(e,"-");y<i;){var x=a;for(n=0;n<t.length;n++)(r=t[n])>=o&&r<x&&(x=r);var b=y+1;if(x-o>f((a-s)/b))throw c(u);for(s+=(x-o)*b,o=x,n=0;n<t.length;n++){if((r=t[n])<o&&++s>a)throw c(u);if(r==o){for(var w=s,T=36;;){var A=T<=l?1:T>=l+26?26:T-l;if(w<A)break;var E=w-A,S=36-A;p(e,h(_(A+E%S))),w=f(E/S),T+=36}p(e,h(_(w))),l=m(s,b,y==v),s=0,y++}}s++,o++}return g(e,"")};t.exports=function(t){var e,n,r=[],i=y(v(x(t),s,"."),".");for(e=0;e<i.length;e++)n=i[e],p(r,l(o,n)?"xn--"+b(n):n);return g(r,".")}},function(t,e,n){"use strict";n(146);var r=n(2),i=n(3),a=n(21),o=n(7),s=n(13),u=n(443),c=n(45),l=n(175),f=n(80),h=n(148),d=n(47),g=n(176),p=n(19),v=n(36),y=n(82),x=n(67),_=n(44),m=n(18),b=n(66),w=n(69),T=n(10),A=n(117),E=n(118),S=n(291),k=n(31),M=n(163),O=k("iterator"),R="URLSearchParams",C="URLSearchParamsIterator",I=d.set,L=d.getterFor(R),P=d.getterFor(C),D=a("fetch"),N=a("Request"),z=a("Headers"),F=N&&N.prototype,j=z&&z.prototype,B=i.RegExp,X=i.TypeError,$=i.decodeURIComponent,U=i.encodeURIComponent,Y=s("".charAt),V=s([].join),G=s([].push),H=s("".replace),W=s([].shift),q=s([].splice),Z=s("".split),K=s("".slice),J=/\+/g,Q=Array(4),tt=function(t){return Q[t-1]||(Q[t-1]=B("((?:%[\\da-f]{2}){"+t+"})","gi"))},et=function(t){try{return $(t)}catch(e){return t}},nt=function(t){var e=H(t,J," "),n=4;try{return $(e)}catch(t){for(;n;)e=H(e,tt(n--),et);return e}},rt=/[!'()~]|%20/g,it={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},at=function(t){return it[t]},ot=function(t){return H(U(t),rt,at)},st=h((function(t,e){I(this,{type:C,iterator:A(L(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),ut=function(t){this.entries=[],this.url=null,void 0!==t&&(m(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?K(t,1):t:b(t)))};ut.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=E(t);if(c)for(n=(e=A(t,c)).next;!(r=o(n,e)).done;){if(a=(i=A(_(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw X("Expected sequence with length 2");G(this.entries,{key:b(s.value),value:b(u.value)})}else for(var l in t)v(t,l)&&G(this.entries,{key:l,value:b(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=Z(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=Z(e,"="),G(this.entries,{key:nt(W(n)),value:nt(V(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],G(n,ot(t.key)+"="+ot(t.value));return V(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ct=function(){g(this,lt);var t=arguments.length>0?arguments[0]:void 0;I(this,new ut(t))},lt=ct.prototype;if(l(lt,{append:function(t,e){S(arguments.length,2);var n=L(this);G(n.entries,{key:b(t),value:b(e)}),n.updateURL()},delete:function(t){S(arguments.length,1);for(var e=L(this),n=e.entries,r=b(t),i=0;i<n.length;)n[i].key===r?q(n,i,1):i++;e.updateURL()},get:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=[],i=0;i<e.length;i++)e[i].key===n&&G(r,e[i].value);return r},has:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){S(arguments.length,1);for(var n,r=L(this),i=r.entries,a=!1,o=b(t),s=b(e),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?q(i,u--,1):(a=!0,n.value=s));a||G(i,{key:o,value:s}),r.updateURL()},sort:function(){var t=L(this);M(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=L(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new st(this,"keys")},values:function(){return new st(this,"values")},entries:function(){return new st(this,"entries")}},{enumerable:!0}),c(lt,O,lt.entries,{name:"entries"}),c(lt,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),f(ct,R),r({global:!0,forced:!u},{URLSearchParams:ct}),!u&&p(z)){var ft=s(j.has),ht=s(j.set),dt=function(t){if(m(t)){var e,n=t.body;if(x(n)===R)return e=t.headers?new z(t.headers):new z,ft(e,"content-type")||ht(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:T(0,b(n)),headers:T(0,e)})}return t};if(p(D)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return D(t,arguments.length>1?dt(arguments[1]):{})}}),p(N)){var gt=function(t){return g(this,F),new N(t,arguments.length>1?dt(arguments[1]):{})};F.constructor=gt,gt.prototype=F,r({global:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ct,getState:L}},function(t,e,n){"use strict";var r=n(2),i=n(7);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return og},default:function(){return og}});var r={};n.r(r),n.d(r,{area:function(){return fd},areaLineRange:function(){return hd},areaSpline:function(){return dd},areaSplineRange:function(){return gd},areaStep:function(){return pd},bar:function(){return Ad},bubble:function(){return Ed},candlestick:function(){return Sd},donut:function(){return _d},gauge:function(){return md},line:function(){return vd},pie:function(){return bd},polar:function(){return wd},radar:function(){return Td},scatter:function(){return kd},spline:function(){return yd},step:function(){return xd}});var i={};n.r(i),n.d(i,{selection:function(){return ng},subchart:function(){return rg},zoom:function(){return ig}});var a=new Date,o=new Date;function s(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return s((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var u=1e3,c=6e4,l=36e5,f=864e5,h=6048e5,d=2592e6,g=31536e6;function p(t){return s((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/h}))}var v=p(0),y=p(1),x=p(2),_=p(3),m=p(4),b=p(5),w=p(6),T=(v.range,y.range,x.range,_.range,m.range,b.range,w.range,s((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),A=T;T.range;function E(t){return s((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/h}))}var S=E(0),k=E(1),M=E(2),O=E(3),R=E(4),C=E(5),I=E(6),L=(S.range,k.range,M.range,O.range,R.range,C.range,I.range,s((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f}),(function(t){return t.getDate()-1}))),P=L,D=(L.range,s((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));D.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var N=D,z=(D.range,s((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));z.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var F=z;z.range;function j(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function B(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function X(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $,U,Y,V,G,H={"-":"",_:" ",0:"0"},W=/^\s*\d+/,q=/^%/,Z=/[\\^$*+?|[\]().{}]/g;function K(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function J(t){return t.replace(Z,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(J).join("|")+")","i")}function tt(t){return new Map(t.map((function(t,e){return[t.toLowerCase(),e]})))}function et(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function it(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function at(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ot(t,e,n){var r=W.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function st(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ut(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ct(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function lt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ft(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function vt(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function yt(t,e,n){var r=W.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xt(t,e,n){var r=q.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function _t(t,e,n){var r=W.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function mt(t,e,n){var r=W.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function bt(t,e){return K(t.getDate(),e,2)}function wt(t,e){return K(t.getHours(),e,2)}function Tt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(N(t),t),e,3)}function Et(t,e){return K(t.getMilliseconds(),e,3)}function St(t,e){return Et(t,e)+"000"}function kt(t,e){return K(t.getMonth()+1,e,2)}function Mt(t,e){return K(t.getMinutes(),e,2)}function Ot(t,e){return K(t.getSeconds(),e,2)}function Rt(t){var e=t.getDay();return 0===e?7:e}function Ct(t,e){return K(S.count(N(t)-1,t),e,2)}function It(t){var e=t.getDay();return e>=4||0===e?R(t):R.ceil(t)}function Lt(t,e){return t=It(t),K(R.count(N(t),t)+(4===N(t).getDay()),e,2)}function Pt(t){return t.getDay()}function Dt(t,e){return K(k.count(N(t)-1,t),e,2)}function Nt(t,e){return K(t.getFullYear()%100,e,2)}function zt(t,e){return K((t=It(t)).getFullYear()%100,e,2)}function Ft(t,e){return K(t.getFullYear()%1e4,e,4)}function jt(t,e){var n=t.getDay();return K((t=n>=4||0===n?R(t):R.ceil(t)).getFullYear()%1e4,e,4)}function Bt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+K(e/60|0,"0",2)+K(e%60,"0",2)}function Xt(t,e){return K(t.getUTCDate(),e,2)}function $t(t,e){return K(t.getUTCHours(),e,2)}function Ut(t,e){return K(t.getUTCHours()%12||12,e,2)}function Yt(t,e){return K(1+A.count(F(t),t),e,3)}function Vt(t,e){return K(t.getUTCMilliseconds(),e,3)}function Gt(t,e){return Vt(t,e)+"000"}function Ht(t,e){return K(t.getUTCMonth()+1,e,2)}function Wt(t,e){return K(t.getUTCMinutes(),e,2)}function qt(t,e){return K(t.getUTCSeconds(),e,2)}function Zt(t){var e=t.getUTCDay();return 0===e?7:e}function Kt(t,e){return K(v.count(F(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?m(t):m.ceil(t)}function Qt(t,e){return t=Jt(t),K(m.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function te(t){return t.getUTCDay()}function ee(t,e){return K(y.count(F(t)-1,t),e,2)}function ne(t,e){return K(t.getUTCFullYear()%100,e,2)}function re(t,e){return K((t=Jt(t)).getUTCFullYear()%100,e,2)}function ie(t,e){return K(t.getUTCFullYear()%1e4,e,4)}function ae(t,e){var n=t.getUTCDay();return K((t=n>=4||0===n?m(t):m.ceil(t)).getUTCFullYear()%1e4,e,4)}function oe(){return"+0000"}function se(){return"%"}function ue(t){return+t}function ce(t){return Math.floor(+t/1e3)}function le(){}function fe(t){return null==t?le:function(){return this.querySelector(t)}}function he(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function ge(t){return null==t?de:function(){return this.querySelectorAll(t)}}function pe(t){return function(){return this.matches(t)}}function ve(t){return function(e){return e.matches(t)}}$=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,c=Q(i),l=tt(i),f=Q(a),h=tt(a),d=Q(o),g=tt(o),p=Q(s),v=tt(s),x=Q(u),_=tt(u),m={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:bt,e:bt,f:St,g:zt,G:jt,H:wt,I:Tt,j:At,L:Et,m:kt,M:Mt,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ue,s:ce,S:Ot,u:Rt,U:Ct,V:Lt,w:Pt,W:Dt,x:null,X:null,y:Nt,Y:Ft,Z:Bt,"%":se},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Xt,e:Xt,f:Gt,g:re,G:ae,H:$t,I:Ut,j:Yt,L:Vt,m:Ht,M:Wt,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ue,s:ce,S:qt,u:Zt,U:Kt,V:Qt,w:te,W:ee,x:null,X:null,y:ne,Y:ie,Z:oe,"%":se},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=x.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:ft,e:ft,f:yt,g:st,G:ot,H:dt,I:dt,j:ht,L:vt,m:lt,M:gt,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:ct,Q:_t,s:mt,S:pt,u:nt,U:rt,V:it,w:et,W:at,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:st,Y:ot,Z:ut,"%":xt};function T(t,e){return function(n){var r,i,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(i=H[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=X(1900,void 0,1);if(S(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=B(X(a.y,0,1))).getUTCDay(),r=i>4||0===i?y.ceil(r):y(r),r=A.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=j(X(a.y,0,1))).getDay(),r=i>4||0===i?k.ceil(r):k(r),r=P.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?B(X(a.y,0,1)).getUTCDay():j(X(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,B(a)):j(a)}}function S(t,e,n,r){for(var i,a,o=0,s=e.length,u=n.length;o<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in H?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return m.x=T(n,m),m.X=T(r,m),m.c=T(e,m),b.x=T(n,b),b.X=T(r,b),b.c=T(e,b),{format:function(t){var e=T(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),U=$.format,Y=$.parse,V=$.utcFormat,G=$.utcParse;var ye=Array.prototype.find;function xe(){return this.firstElementChild}var _e=Array.prototype.filter;function me(){return Array.from(this.children)}function be(t){return Array(t.length)}function we(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Te(t){return function(){return t}}function Ae(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new we(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function Ee(t,e,n,r,i,a,o){var s,u,c,l=new Map,f=e.length,h=a.length,d=Array(f);for(s=0;s<f;++s)(u=e[s])&&(d[s]=c=o.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<h;++s)c=o.call(t,a[s],s,a)+"",(u=l.get(c))?(r[s]=u,u.__data__=a[s],l.delete(c)):n[s]=new we(t,a[s]);for(s=0;s<f;++s)(u=e[s])&&l.get(d[s])===u&&(i[s]=u)}function Se(t){return t.__data__}function ke(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Me(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}we.prototype={constructor:we,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ce="http://www.w3.org/1999/xhtml",Ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Le(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ie.hasOwnProperty(e)?{space:Ie[e],local:t}:t}function Pe(t){return function(){this.removeAttribute(t)}}function De(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ne(t,e){return function(){this.setAttribute(t,e)}}function ze(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function je(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Be(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xe(t){return function(){this.style.removeProperty(t)}}function $e(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ue(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ye(t,e){return t.style.getPropertyValue(e)||Be(t).getComputedStyle(t,null).getPropertyValue(e)}function Ve(t){return function(){delete this[t]}}function Ge(t,e){return function(){this[t]=e}}function He(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function We(t){return t.trim().split(/^|\s+/)}function qe(t){return t.classList||new Ze(t)}function Ze(t){this._node=t,this._names=We(t.getAttribute("class")||"")}function Ke(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Je(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Qe(t){return function(){Ke(this,t)}}function tn(t){return function(){Je(this,t)}}function en(t,e){return function(){(e.apply(this,arguments)?Ke:Je)(this,t)}}function nn(){this.textContent=""}function rn(t){return function(){this.textContent=t}}function an(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function on(){this.innerHTML=""}function sn(t){return function(){this.innerHTML=t}}function un(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function cn(){this.nextSibling&&this.parentNode.appendChild(this)}function ln(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ce&&e.documentElement.namespaceURI===Ce?e.createElement(t):e.createElementNS(n,t)}}function hn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dn(t){var e=Le(t);return(e.local?hn:fn)(e)}function gn(){return null}function pn(){var t=this.parentNode;t&&t.removeChild(this)}function vn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xn(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function _n(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function mn(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function bn(t,e,n){var r=Be(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function wn(t,e){return function(){return bn(this,t,e)}}function Tn(t,e){return function(){return bn(this,t,e.apply(this,arguments))}}Ze.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var An,En=n(448),Sn=En.mark(kn);function kn(){var t,e,n,r,i,a,o;return En.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}r=t[e],i=0,a=r.length;case 3:if(!(i<a)){s.next=10;break}if(!(o=r[i])){s.next=7;break}return s.next=7,o;case 7:++i,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),Sn,this)}var Mn=[null];function On(t,e){this._groups=t,this._parents=e}function Rn(){return new On([[document.documentElement]],Mn)}On.prototype=Rn.prototype=(An={constructor:On,select:function(t){"function"!=typeof t&&(t=fe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new On(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return he(t.apply(this,arguments))}}(t):ge(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new On(r,i)},selectChild:function(t){return this.select(null==t?xe:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:ve(t)))},selectChildren:function(t){return this.selectAll(null==t?me:function(t){return function(){return _e.call(this.children,t)}}("function"==typeof t?t:ve(t)))},filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new On(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Se);var n=e?Ee:Ae,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Te(t));for(var a=i.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=r[c],f=i[c],h=f.length,d=ke(t.call(l,l&&l.__data__,c,r)),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g),y=u[c]=Array(h);n(l,f,p,v,y,d,e);for(var x,_,m=0,b=0;m<g;++m)if(x=p[m]){for(m>=b&&(b=m+1);!(_=v[b])&&++b<g;);x._next=_||null}}return(o=new On(o,r))._enter=s,o._exit=u,o},enter:function(){return new On(this._enter||this._groups.map(be),this._parents)},exit:function(){return new On(this._exit||this._groups.map(be),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),u=0;u<o;++u)for(var c,l=n[u],f=r[u],h=l.length,d=s[u]=Array(h),g=0;g<h;++g)(c=l[g]||f[g])&&(d[g]=c);for(;u<i;++u)s[u]=n[u];return new On(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Me);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new On(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)if(r=i[a])return r;return null},size:function(){for(var t,e=0,n=Oe(this);!(t=n()).done;)t.value,++e;return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Le(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?De:Pe:"function"==typeof e?n.local?je:Fe:n.local?ze:Ne)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Xe:"function"==typeof e?Ue:$e)(t,e,null==n?"":n)):Ye(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ve:"function"==typeof e?He:Ge)(t,e)):this.node()[t]},classed:function(t,e){var n=We(t+"");if(arguments.length<2){for(var r=qe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?en:e?Qe:tn)(n,e))},text:function(t){return arguments.length?this.each(null==t?nn:("function"==typeof t?an:rn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?on:("function"==typeof t?un:sn)(t)):this.node().innerHTML},raise:function(){return this.each(cn)},lower:function(){return this.each(ln)},append:function(t){var e="function"==typeof t?t:dn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:dn(t),r=null==e?gn:"function"==typeof e?e:fe(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pn)},clone:function(t){return this.select(t?yn:vn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=xn(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?mn:_n,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Tn:wn)(t,e))}},An[Symbol.iterator]=kn,An);var Cn=Rn;function In(t){return"string"==typeof t?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],Mn)}var Ln="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();Ln.requestIdleCallback=Ln.requestIdleCallback||function(t){return setTimeout(t,1)},Ln.cancelIdleCallback=Ln.cancelIdleCallback||function(t){return clearTimeout(t)};var Pn=null==Ln?void 0:Ln.document,Dn={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},Nn={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine"},zn={Area:[Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.AREA_STEP],AreaRange:[Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE],Arc:[Dn.PIE,Dn.DONUT,Dn.GAUGE,Dn.POLAR,Dn.RADAR],Line:[Dn.LINE,Dn.SPLINE,Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.STEP,Dn.AREA_STEP],Step:[Dn.STEP,Dn.AREA_STEP],Spline:[Dn.SPLINE,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE]};function Fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jn(t,e){if(t=function(t){for(var e;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Bn={value:function(){}};function Xn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new $n(r)}function $n(t){this._=t}function Un(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Yn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Vn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Bn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}$n.prototype=Xn.prototype={constructor:$n,on:function(t,e){var n,r=this._,i=Un(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Vn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Vn(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Yn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new $n(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Gn=Xn,Hn={passive:!1},Wn={capture:!0,passive:!1};function qn(t){t.stopImmediatePropagation()}function Zn(t){t.preventDefault(),t.stopImmediatePropagation()}function Kn(t){var e=t.document.documentElement,n=In(t).on("dragstart.drag",Zn,Wn);"onselectstart"in e?n.on("selectstart.drag",Zn,Wn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Jn(t,e){var n=t.document.documentElement,r=In(t).on("dragstart.drag",null);e&&(r.on("click.drag",Zn,Wn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Qn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function er(){}var nr=.7,rr=1/nr,ir=/^#([0-9a-f]{3,8})$/,ar=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),or=new RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),sr=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ur=new RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),cr=new RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),lr=new RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),fr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function hr(){return this.rgb().formatHex()}function dr(){return this.rgb().formatRgb()}function gr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ir.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?pr(e):3===n?new _r(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?vr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?vr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ar.exec(t))?new _r(e[1],e[2],e[3],1):(e=or.exec(t))?new _r(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sr.exec(t))?vr(e[1],e[2],e[3],e[4]):(e=ur.exec(t))?vr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=lr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):fr.hasOwnProperty(t)?pr(fr[t]):"transparent"===t?new _r(NaN,NaN,NaN,0):null}function pr(t){return new _r(t>>16&255,t>>8&255,255&t,1)}function vr(t,e,n,r){return r<=0&&(t=e=n=NaN),new _r(t,e,n,r)}function yr(t){return t instanceof er||(t=gr(t)),t?new _r((t=t.rgb()).r,t.g,t.b,t.opacity):new _r}function xr(t,e,n,r){return 1===arguments.length?yr(t):new _r(t,e,n,null==r?1:r)}function _r(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function mr(){return"#"+wr(this.r)+wr(this.g)+wr(this.b)}function br(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Er(t,e,n,r)}function Ar(t){if(t instanceof Er)return new Er(t.h,t.s,t.l,t.opacity);if(t instanceof er||(t=gr(t)),!t)return new Er;if(t instanceof Er)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Er(o,s,u,t.opacity)}function Er(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Sr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function kr(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Qn(er,gr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:hr,formatHex:hr,formatHsl:function(){return Ar(this).formatHsl()},formatRgb:dr,toString:dr}),Qn(_r,xr,tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatRgb:br,toString:br})),Qn(Er,(function(t,e,n,r){return 1===arguments.length?Ar(t):new Er(t,e,n,null==r?1:r)}),tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new Er(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new Er(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _r(Sr(t>=240?t-240:t+120,i,r),Sr(t,i,r),Sr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Mr=function(t){return function(){return t}};function Or(t,e){return function(n){return t+n*e}}function Rr(t){return 1==(t=+t)?Cr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Mr(isNaN(e)?n:e)}}function Cr(t,e){var n=e-t;return n?Or(t,n):Mr(isNaN(t)?e:t)}var Ir=function t(e){var n=Rr(e);function r(t,e){var r=n((t=xr(t)).r,(e=xr(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Cr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Lr(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=xr(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}Lr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return kr((n-r/e)*e,o,i,a,s)}})),Lr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return kr((n-r/e)*e,i,a,o,s)}}));function Pr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Dr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Nr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),o=Array(r);for(n=0;n<i;++n)a[n]=Ur(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function zr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Fr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function jr(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ur(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Br=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xr=new RegExp(Br.source,"g");function $r(t,e){var n,r,i,a=Br.lastIndex=Xr.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Br.exec(t))&&(r=Xr.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Fr(n,r)})),a=Xr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Ur(t,e){var n,r=typeof e;return null==e||"boolean"===r?Mr(e):("number"===r?Fr:"string"===r?(n=gr(e))?(e=n,Ir):$r:e instanceof gr?Ir:e instanceof Date?zr:Dr(e)?Pr:Array.isArray(e)?Nr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?jr:Fr)(t,e)}var Yr,Vr,Gr=0,Hr=0,Wr=0,qr=0,Zr=0,Kr=0,Jr="object"==typeof performance&&performance.now?performance:Date,Qr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ti(){return Zr||(Qr(ei),Zr=Jr.now()+Kr)}function ei(){Zr=0}function ni(){this._call=this._time=this._next=null}function ri(t,e,n){var r=new ni;return r.restart(t,e,n),r}function ii(){Zr=(qr=Jr.now())+Kr,Gr=Hr=0;try{!function(){ti(),++Gr;for(var t,e=Yr;e;)(t=Zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gr}()}finally{Gr=0,function(){var t,e,n=Yr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Yr=e);Vr=t,oi(r)}(),Zr=0}}function ai(){var t=Jr.now(),e=t-qr;e>1e3&&(Kr-=e,qr=t)}function oi(t){Gr||(Hr&&(Hr=clearTimeout(Hr)),t-Zr>24?(t<1/0&&(Hr=setTimeout(ii,t-Jr.now()-Kr)),Wr&&(Wr=clearInterval(Wr))):(Wr||(qr=Jr.now(),Wr=setInterval(ai,1e3)),Gr=1,Qr(ii)))}function si(t,e,n){var r=new ni;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}ni.prototype=ri.prototype={constructor:ni,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ti():+n)+(null==e?0:+e),this._next||Vr===this||(Vr?Vr._next=this:Yr=this,Vr=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};var ui=Gn("start","end","cancel","interrupt"),ci=[];function li(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var c,l,f,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return si(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if(si((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=ri((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ui,tween:ci,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function fi(t,e){var n=di(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function hi(t,e){var n=di(t,e);if(n.state>3)throw new Error("too late; already running");return n}function di(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function gi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var pi,vi=180/Math.PI,yi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xi(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*vi,skewX:Math.atan(u)*vi,scaleX:o,scaleY:s}}function _i(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Fr(t,i)},{i:u-2,x:Fr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Fr(t,n)},{i:s-2,x:Fr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var mi=_i((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?yi:xi(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),bi=_i((function(t){return null==t?yi:(pi||(pi=document.createElementNS("http://www.w3.org/2000/svg","g")),pi.setAttribute("transform",t),(t=pi.transform.baseVal.consolidate())?xi((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):yi)}),", ",")",")");function wi(t,e){var n,r;return function(){var i=hi(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function Ti(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=hi(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Ai(t,e,n){var r=t._id;return t.each((function(){var t=hi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return di(t,r).value[e]}}function Ei(t,e){var n;return("number"==typeof e?Fr:e instanceof gr?Ir:(n=gr(e))?(e=n,Ir):$r)(t,e)}function Si(t){return function(){this.removeAttribute(t)}}function ki(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mi(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Oi(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Ri(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttribute(t)}}function Ci(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}function Ii(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Li(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Pi(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Li(t,i)),n}return i._value=e,i}function Di(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(t,i)),n}return i._value=e,i}function Ni(t,e){return function(){fi(this,t).delay=+e.apply(this,arguments)}}function zi(t,e){return e=+e,function(){fi(this,t).delay=e}}function Fi(t,e){return function(){hi(this,t).duration=+e.apply(this,arguments)}}function ji(t,e){return e=+e,function(){hi(this,t).duration=e}}function Bi(t,e){if("function"!=typeof e)throw new Error;return function(){hi(this,t).ease=e}}function Xi(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fi:hi;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var $i,Ui=Cn.prototype.constructor;function Yi(t){return function(){this.style.removeProperty(t)}}function Vi(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Gi(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Vi(t,a,n)),r}return a._value=e,a}function Hi(t){return function(e){this.textContent=t.call(this,e)}}function Wi(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Hi(r)),e}return r._value=t,r}var qi=0;function Zi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ki(t){return Cn().transition(t)}function Ji(){return++qi}var Qi=Cn.prototype;Zi.prototype=Ki.prototype=($i={constructor:Zi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fe(t));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,u,c=r[o],l=c.length,f=a[o]=Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,li(f[h],e,n,h,f,di(s,n)));return new Zi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ge(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=t.call(u,u.__data__,f,c),g=di(u,n),p=0,v=d.length;p<v;++p)(h=d[p])&&li(h,e,n,p,d,g);a.push(d),o.push(u)}return new Zi(a,o,e,n)},selectChild:Qi.selectChild,selectChildren:Qi.selectChildren,filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Zi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new Zi(o,this._parents,this._name,this._id)},selection:function(){return new Ui(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ji(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=di(o,e);li(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Zi(r,this._parents,t,n)},call:Qi.call,nodes:Qi.nodes,node:Qi.node,size:Qi.size,empty:Qi.empty,each:Qi.each,on:function(t,e){var n=this._id;return arguments.length<2?di(this.node(),n).on.on(t):this.each(Xi(n,t,e))},attr:function(t,e){var n=Le(t),r="transform"===n?bi:Ei;return this.attrTween(t,"function"==typeof e?(n.local?Ci:Ri)(n,r,Ai(this,"attr."+t,e)):null==e?(n.local?ki:Si)(n):(n.local?Oi:Mi)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Le(t);return this.tween(n,(r.local?Pi:Di)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?mi:Ei;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ye(this,t),o=(this.style.removeProperty(t),Ye(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Yi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ye(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ye(this,t)),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,s))}}(t,r,Ai(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e;return function(){var s=hi(this,t),u=s.on,c=null==s.value[o]?a||(a=Yi(e)):void 0;u===n&&i===c||(r=(n=u).copy()).on("end."+o,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i;return function(){var a=Ye(this,t);return a===n+""?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Gi(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ai(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Wi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=di(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?wi:Ti)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ni:zi)(e,t)):di(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Fi:ji)(e,t)):di(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Bi(e,t)):di(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;hi(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i&&a()}};n.each((function(){var n=hi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===i&&a()}))}},$i[Symbol.iterator]=Qi[Symbol.iterator],$i);var ta={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ea(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Cn.prototype.interrupt=function(t){return this.each((function(){gi(this,t)}))},Cn.prototype.transition=function(t){var e,n;t instanceof Zi?(e=t._id,t=t._name):(e=Ji(),(n=ta).time=ti(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)(o=s[c])&&li(o,t,e,c,s,n||ea(o,e));return new Zi(r,this._parents,t,e)};var na=function(t){return function(){return t}};function ra(t,e){var n=e.sourceEvent,r=e.target,i=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function ia(t){t.stopImmediatePropagation()}function aa(t){t.preventDefault(),t.stopImmediatePropagation()}function oa(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return sa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sa(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ua={name:"drag"},ca={name:"space"},la={name:"handle"},fa={name:"center"},ha=Math.abs,da=Math.max,ga=Math.min;function pa(t){return[+t[0],+t[1]]}function va(t){return[pa(t[0]),pa(t[1])]}var ya={name:"x",handles:["w","e"].map(Aa),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xa={name:"y",handles:["n","s"].map(Aa),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},_a=(["n","w","e","s","nw","ne","sw","se"].map(Aa),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),ma={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ba={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ta={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Aa(t){return{type:t}}function Ea(t){return!t.ctrlKey&&!t.button}function Sa(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ka(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ma(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Oa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ra(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ca(t){var e,n=Sa,r=Ea,i=ka,a=!0,o=Gn("start","brush","end"),s=6;function u(e){var n=e.property("__brush",p).selectAll(".overlay").data([Aa("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",_a.overlay).merge(n).each((function(){var t=Ma(this).extent;In(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Aa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",_a.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return _a[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=In(this),e=Ma(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,o,s,u,f,h,d,g,p,v,y,x=this,_=n.target.__data__.type,m="selection"===(a&&n.metaKey?_="overlay":_)?ua:a&&n.altKey?fa:la,b=t===xa?null:wa[_],w=t===ya?null:Ta[_],T=Ma(x),A=T.extent,E=T.selection,S=A[0][0],k=A[0][1],M=A[1][0],O=A[1][1],R=0,C=0,I=b&&w&&a&&n.shiftKey,L=Array.from(n.touches||[n],(function(t){var e=t.identifier;return(t=jn(t,x)).point0=t.slice(),t.identifier=e,t}));gi(x);var P=l(x,arguments,!0).beforestart();if("overlay"===_){E&&(p=!0);var D=[L[0],L[1]||L[0]];T.selection=E=[[i=t===xa?S:ga(D[0][0],D[1][0]),s=t===ya?k:ga(D[0][1],D[1][1])],[f=t===xa?M:da(D[0][0],D[1][0]),d=t===ya?O:da(D[0][1],D[1][1])]],L.length>1&&B(n)}else i=E[0][0],s=E[0][1],f=E[1][0],d=E[1][1];o=i,u=s,h=f,g=d;var N=In(x).attr("pointer-events","none"),z=N.selectAll(".overlay").attr("cursor",_a[_]);if(n.touches)P.moved=j,P.ended=X;else{var F=In(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",X,!0);a&&F.on("keydown.brush",$,!0).on("keyup.brush",U,!0),Kn(n.view)}c.call(x),P.start(n,m.name)}function j(t){for(var e,n=oa(t.changedTouches||[t]);!(e=n()).done;)for(var r,i=e.value,a=oa(L);!(r=a()).done;){var o=r.value;o.identifier===i.identifier&&(o.cur=jn(i,x))}if(I&&!v&&!y&&1===L.length){var s=L[0];ha(s.cur[0]-s[0])>ha(s.cur[1]-s[1])?y=!0:v=!0}for(var u,c=oa(L);!(u=c()).done;){var l=u.value;l.cur&&(l[0]=l.cur[0],l[1]=l.cur[1])}p=!0,aa(t),B(t)}function B(t){var e,n=L[0],r=n.point0;switch(R=n[0]-r[0],C=n[1]-r[1],m){case ca:case ua:b&&(R=da(S-i,ga(M-f,R)),o=i+R,h=f+R),w&&(C=da(k-s,ga(O-d,C)),u=s+C,g=d+C);break;case la:L[1]?(b&&(o=da(S,ga(M,L[0][0])),h=da(S,ga(M,L[1][0])),b=1),w&&(u=da(k,ga(O,L[0][1])),g=da(k,ga(O,L[1][1])),w=1)):(b<0?(R=da(S-i,ga(M-i,R)),o=i+R,h=f):b>0&&(R=da(S-f,ga(M-f,R)),o=i,h=f+R),w<0?(C=da(k-s,ga(O-s,C)),u=s+C,g=d):w>0&&(C=da(k-d,ga(O-d,C)),u=s,g=d+C));break;case fa:b&&(o=da(S,ga(M,i-R*b)),h=da(S,ga(M,f+R*b))),w&&(u=da(k,ga(O,s-C*w)),g=da(k,ga(O,d+C*w)))}h<o&&(b*=-1,e=i,i=f,f=e,e=o,o=h,h=e,_ in ma&&z.attr("cursor",_a[_=ma[_]])),g<u&&(w*=-1,e=s,s=d,d=e,e=u,u=g,g=e,_ in ba&&z.attr("cursor",_a[_=ba[_]])),T.selection&&(E=T.selection),v&&(o=E[0][0],h=E[1][0]),y&&(u=E[0][1],g=E[1][1]),E[0][0]===o&&E[0][1]===u&&E[1][0]===h&&E[1][1]===g||(T.selection=[[o,u],[h,g]],c.call(x),P.brush(t,m.name))}function X(t){if(ia(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Jn(t.view,p),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),z.attr("cursor",_a.overlay),T.selection&&(E=T.selection),Oa(E)&&(T.selection=null,c.call(x)),P.end(t,m.name)}function $(t){switch(t.keyCode){case 16:I=b&&w;break;case 18:m===la&&(b&&(f=h-R*b,i=o+R*b),w&&(d=g-C*w,s=u+C*w),m=fa,B(t));break;case 32:m!==la&&m!==fa||(b<0?f=h-R:b>0&&(i=o-R),w<0?d=g-C:w>0&&(s=u-C),m=ca,z.attr("cursor",_a.selection),B(t));break;default:return}aa(t)}function U(t){switch(t.keyCode){case 16:I&&(v=y=I=!1,B(t));break;case 18:m===fa&&(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la,B(t));break;case 32:m===ca&&(t.altKey?(b&&(f=h-R*b,i=o+R*b),w&&(d=g-C*w,s=u+C*w),m=fa):(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la),z.attr("cursor",_a[_]),B(t));break;default:return}aa(t)}}function d(t){l(this,arguments).moved(t)}function g(t){l(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=va(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Ur(a,o);function u(t){r.selection=1===t&&null===o?null:s(t),c.call(e),i.brush()}return null!==a&&null!==o?u:u(1)})):e.each((function(){var e=this,i=arguments,a=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,a.extent),s=l(e,i).beforestart();gi(e),a.selection=null===o?null:o,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=In(this.that).datum();o.call(e,this.that,new ra(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:o}),i)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:na(va(t)),u):n},u.filter=function(t){return arguments.length?(r="function"==typeof t?t:na(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"==typeof t?t:na(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(a=!!t,u):a},u.on=function(){var t=o.on.apply(o,arguments);return t===o?u:t},u}function Ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function La(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ia(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ia(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Pa=function(t){return t||0===t},Da=function(t){return"function"==typeof t},Na=function(t){return"string"==typeof t},za=function(t){return"number"==typeof t},Fa=function(t){return void 0===t},ja=function(t){return void 0!==t},Ba=function(t){return"boolean"==typeof t},Xa=function(t){return 10*Math.ceil(t/10)},$a=function(t){return Math.ceil(t)+.5},Ua=function(t){return t[1]-t[0]},Ya=function(t){return"object"==typeof t},Va=function(t){return Fa(t)||null===t||Na(t)&&0===t.length||Ya(t)&&!(t instanceof Date)&&0===Object.keys(t).length||za(t)&&isNaN(t)},Ga=function(t){return!Va(t)},Ha=function(t){return Array.isArray(t)},Wa=function(t){return t&&!(null!=t&&t.nodeType)&&Ya(t)&&!Ha(t)};function qa(t,e,n){return ja(t[e])?t[e]:n}function Za(t,e){for(var n=Da(t),r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n&&t.call.apply(t,[e].concat(i)),n}function Ka(t,e){var n=0,r=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];--n||e.apply.apply(e,[this].concat(r))};"duration"in t?t.each((function(){return++n})).on("end",r):(++n,t.call(r))}function Ja(t){return Na(t)?t.replace(/</g,"<").replace(/>/g,">"):t}function Qa(t,e,n,r){if(void 0===n&&(n=[-1,1]),void 0===r&&(r=!1),t&&Na(e))if(-1===e.indexOf("\n"))t.text(e);else{var i=[t.text(),e].map((function(t){return t.replace(/[\s\n]/g,"")}));if(i[0]!==i[1]){var a=e.split("\n"),o=r?a.length-1:1;t.html(""),a.forEach((function(e,r){t.append("tspan").attr("x",0).attr("dy",(0===r?n[0]*o:n[1])+"em").text(e)}))}}}function to(t){var e=t.getBBox(),n=e.x,r=e.y,i=e.width,a=e.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function eo(t,e){var n;return jn(t&&(null==(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)?void 0:n[0])||t,e).map((function(t){return isNaN(t)?0:t}))}function no(t){var e,n=t.event,r=t.$el,i=r.subchart.main||r.main;return n&&"brush"===n.type?e=n.selection:i&&(e=i.select(".bb-brush").node())&&(e=Ra(e)),e}function ro(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function io(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);var r=Math.floor(Math.random()*(n-e)+e);return t?r+"":r}function ao(t,e,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return i&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?ao(t,e,n,a-1,i):ao(t,e,a+1,r,i)}function oo(t){var e=no(t);return!e||e[0]===e[1]}function so(t,e){for(var n in void 0===t&&(t={}),Ha(e)&&e.forEach((function(e){return so(t,e)})),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var uo=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};var co=function(t){return[].slice.call(t)};function lo(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function fo(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((function(t,e,n){return n.indexOf(t)===e}));return e?n.map((function(t){return new Date(t)})):n}function ho(t){return t&&t.length?t.reduce((function(t,e){return t.concat(e)})):[]}function go(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length||1===n.length&&!n[0])return t;var i=n.shift();return Wa(t)&&Wa(i)&&Object.keys(i).forEach((function(e){var n=i[e];Wa(n)?(t[e]||(t[e]={}),t[e]=go(t[e],n)):t[e]=Ha(n)?n.concat():n})),go.apply(void 0,[t].concat(n))}function po(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:e||(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function vo(t,e){var n=e.filter((function(t){return Ga(t)}));return n.length?za(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=po(n,"min"===t)[0]):n=void 0,n}var yo=function(t,e,n){void 0===n&&(n=1);for(var r=[],i=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<i;a++)r.push(t+a*n);return r},xo={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=Pn.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,Ln,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}(),touch:function(t,e,n){var r=new Touch(go({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function _o(t,e){var n=t;for(var r in e)n=n.replace(new RegExp("{="+r+"}","g"),e[r]);return n}function mo(t){var e;if(t instanceof Date)e=t;else if(Na(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else za(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function bo(){return!Pn.hidden}function wo(t){var e,n=t,r=n.config,i="";if(Va(r.data_type||r.data_types)&&!n[Nn.LINE])i="line";else for(var a in Nn){var o=Dn[a];if(n.hasType(o)&&!n[Nn[a]]){i=o;break}}i&&function(t,e){var n,r="[billboard.js]";(null==(n=Ln.console)?void 0:n.error)&&(console.error("❌ "+r+" "+t,"background:red;color:white;display:block;font-size:15px",e),console.info("%cℹ️","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"));throw Error(r+" "+t.replace(/\%c([a-z-]+)/i,"'$1' ")+" "+e)}("Please, make sure if %c"+(void 0===e&&(e="-"),i.split(e).map((function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()})).join("")),"module has been imported and specified correctly.")}function To(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ao(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?To(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):To(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Eo={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},So={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"},ko={area:"bb-area",areas:"bb-areas"},Mo={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"},Oo={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Ro={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Co={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Io={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Lo={dragarea:"bb-dragarea",INCLUDED:"_included_"},Po={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Do={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},No={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},zo={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Fo={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},jo={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Bo="bb-level",Xo="bb-levels",$o={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Uo={region:"bb-region",regions:"bb-regions"},Yo={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Vo={shape:"bb-shape",shapes:"bb-shapes"},Go={brush:"bb-brush",subchart:"bb-subchart"},Ho={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},Wo={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},qo={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"},Zo=Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao({},Eo),So),ko),Mo),Oo),Ro),Co),Io),Lo),Po),Do),No),zo),Fo),jo),$o),Uo),Yo),Vo),Go),Ho),Wo),qo),Ko={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}},Jo=function(){function t(){var t=this;Object.keys(Ko).forEach((function(e){t[e]=new Ko[e]}))}return t.prototype.getStore=function(t){return this[t]},t}(),Qo={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},ts={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},es={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},ns={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},rs={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},is={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},as={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null};function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ss(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?os(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):os(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var us=function(){function t(){return function(){for(var t=function(e){if(Wa(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map((function(e){return t(e)})).reduce((function(t,e){return La(La({},t),e)}))}(Qo,ts,es,ns,rs,is,as,t.data)}return t.setOptions=function(t){this.data=t.reduce((function(t,e){return ss(ss({},t),e)}),this.data)},t}();us.data={};var cs="$baseLength",ls="__colorPattern__",fs="$dataMinMax",hs="$dataTotalSum",ds="$totalPerIndex",gs="legendItemTextBox",ps="$radarPoints",vs="setOverOut",ys="callOverOutForTouch",xs="textRect",_s=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;co(t).forEach((function(t){return delete e.cache[t]}))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,r=[],i=0;n=t[i];i++)n in this.cache&&r.push(this.cloneTarget(this.cache[n]));return r}var a=this.cache[t];return Pa(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},t}(),ms=Ln.setTimeout,bs=Ln.clearTimeout;function ws(){var t=[],e=function(e,n){var r;!function e(){for(var i,a=0,o=0;i=t[o];o++)if(!0===i||null!=i.empty&&i.empty())a++;else try{i.transition()}catch(t){a++}r&&bs(r),a===t.length?null==n||n():r=ms(e,50)}()};return e.add=function(e){Ha(e)?t=t.concat(e):t.push(e)},e}var Ts={},As={};function Es(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Ss(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function ks(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function Ms(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+ks(-t,6):t>9999?"+"+ks(t,6):ks(t,4)}(t.getUTCFullYear())+"-"+ks(t.getUTCMonth()+1,2)+"-"+ks(t.getUTCDate(),2)+(i?"T"+ks(e,2)+":"+ks(n,2)+":"+ks(r,2)+"."+ks(i,3)+"Z":r?"T"+ks(e,2)+":"+ks(n,2)+":"+ks(r,2)+"Z":n||e?"T"+ks(e,2)+":"+ks(n,2)+"Z":"")}function Os(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,u=a<=0,c=!1;function l(){if(u)return As;if(c)return c=!1,Ts;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?u=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))c=!0;else if(13===r)c=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return u=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=l())!==As;){for(var f=[];r!==Ts&&r!==As;)f.push(r),r=l();e&&null==(f=e(f,s++))||i.push(f)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?Ms(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Es(t);return function(r,i){return e(n(r),i,t)}}(t,e):Es(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=Ss(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ss(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var Rs=Os(","),Cs=Rs.parse,Is=Rs.parseRows,Ls=(Rs.format,Rs.formatBody,Rs.formatRows,Rs.formatRow,Rs.formatValue,Os("\t")),Ps=Ls.parse,Ds=Ls.parseRows,Ns=(Ls.format,Ls.formatBody,Ls.formatRows,Ls.formatRow,Ls.formatValue,{convertData:function(t,e){var n;if(t.bindto?(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach((function(e){var r="data_"+e;r in t&&(n[e]=t[r])}))):n=t,n.url&&e)this.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,e);else if(n.json)n=this.convertJsonToData(n.json,n.keys);else if(n.rows)n=this.convertRowsToData(n.rows);else if(n.columns)n=this.convertColumnsToData(n.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.");return Ha(n)&&n},convertUrlToData:function(t,e,n,r,i){var a=this;void 0===e&&(e="csv");var o=new XMLHttpRequest;o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");var n=o.responseText;n&&i.call(a,a["convert"+uo(e)+"ToData"]("json"===e?JSON.parse(n):n,r))}},o.send()},convertCsvTsvToData:function(t,e){var n,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach((function(t){n[0][t]=null}))):n=t.parse(e),n},convertCsvToData:function(t){return this.convertCsvTsvToData({rows:Is,parse:Cs},t)},convertTsvToData:function(t){return this.convertCsvTsvToData({rows:Ds,parse:Ps},t)},convertJsonToData:function(t,e){var n,r,i=this,a=this.config,o=[];if(Ha(t)){var s=e||a.data_keys;s.x?(n=s.value.concat(s.x),a.data_x=s.x):n=s.value,o.push(n),t.forEach((function(t){var e=n.map((function(e){var n=i.findValueInJson(t,e);return Fa(n)&&(n=null),n}));o.push(e)})),r=this.convertRowsToData(o)}else Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),o.push(n)})),r=this.convertColumnsToData(o);return r},findValueInJson:function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),r=t;return n.some((function(t){return!(r=r&&t in r?r[t]:void 0)})),r},convertRowsToData:function(t){var e=t[0],n=[];return t.forEach((function(t,r){if(r>0){var i={};t.forEach((function(t,n){if(Fa(t))throw new Error("Source data is missing a component at ("+r+", "+n+")!");i[e[n]]=t})),n.push(i)}})),n},convertColumnsToData:function(t){var e=[];return t.forEach((function(t,n){var r=t[0];t.forEach((function(t,i){if(i>0){if(Fa(e[i-1])&&(e[i-1]={}),Fa(t))throw new Error("Source data is missing a component at ("+n+", "+i+")!");e[i-1][r]=t}}))})),e},convertDataToTargets:function(t,e){var n=this,r=this,i=r.axis,a=r.config,o=r.state,s=!1,u=!1,c=!1;i&&(s=i.isCategorized(),u=i.isTimeSeries(),c=i.isCustomX());var l,f=Object.keys(t[0]||{}),h=f.length?f.filter(r.isNotX,r):[],d=f.length?f.filter(r.isX,r):[];h.forEach((function(i){var o=n.getXKey(i);c||u?d.indexOf(o)>=0?l=(e&&r.data.xs[i]||[]).concat(t.map((function(t){return t[o]})).filter(Pa).map((function(t,e){return r.generateTargetX(t,i,e)}))):a.data_x?l=n.getOtherTargetXs():Ga(a.data_xs)&&(l=r.getXValuesOfXKey(o,r.data.targets)):l=t.map((function(t,e){return e})),l&&(n.data.xs[i]=l)})),h.forEach((function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}));var g=h.map((function(e,n){var i=a.data_idConverter.bind(r.api)(e),u=r.getXKey(e),l=c&&s,f=l&&t.map((function(t){return t.x})).every((function(t){return a.axis_x_categories.indexOf(t)>-1})),h=t.__append__,d=null===u&&h?r.api.data.values(e).length:0;return{id:i,id_org:e,values:t.map((function(t,s){var c,g=t[u],p=t[e];return p=null===p||isNaN(p)||Wa(p)?Ha(p)||Wa(p)?p:null:+p,!l&&!o.hasRadar||0!==n||Fa(g)?c=r.generateTargetX(g,e,d+s):(f||0!==n||0!==s||h||(a.axis_x_categories=[]),-1===(c=a.axis_x_categories.indexOf(g))&&(c=a.axis_x_categories.length,a.axis_x_categories.push(g))),(Fa(p)||r.data.xs[e].length<=s)&&(c=void 0),{x:c,value:p,id:i}})).filter((function(t){return ja(t.x)}))}}));return g.forEach((function(t){a.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),t.values.forEach((function(t,e){return t.index=e})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),o.hasNegativeValue=r.hasNegativeValueInTargets(g),o.hasPositiveValue=r.hasPositiveValueInTargets(g),a.data_type&&r.setTargetType(r.mapToIds(g).filter((function(t){return!(t in a.data_types)})),a.data_type),g.forEach((function(t){return r.cache.add(t.id_org,t,!0)})),g}}),zs={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,r=Ga(e.data_xs)&&function(t,e){var n=!1;return Object.keys(t).forEach((function(r){return t[r]===e&&(n=!0)})),n}(e.data_xs,t);return n||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some((function(e){return e.indexOf(t)>=0&&e.length>1})):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:Ga(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,r=this;return(e&&Ga(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},getIndexByX:function(t,e){return e?e.indexOf(Na(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Pa(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach((function(n){e.data_xs[n]=t[n]}))},isMultipleX:function(){return Ga(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0!==e?e:t.id),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,r=n.filterTargetsToShow(n.data.targets).map((function(e){return n.addName(n.getValueOnIndex(e.values,t))}));return e&&(r=r.filter((function(t){return t&&"value"in t&&Pa(t.value)}))),r},getValueOnIndex:function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},updateTargetXs:function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},generateTargetX:function(t,e,n){var r,i,a,o,s=this,u=s.axis,c=null!=(r=u)&&r.isCategorized()?n:t||n;if(null!=(i=u)&&i.isTimeSeries()){var l=mo.bind(s);c=l(t||s.getXValue(e,n))}else null==(a=u)||!a.isCustomX()||null!=(o=u)&&o.isCategorized()||(c=Pa(t)?+t:s.getXValue(e,n));return c},updateXs:function(t){t.length&&(this.axis.xs=t.map((function(t){return t.x})))},getPrevX:function(t){var e=this.axis.xs[t-1];return ja(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return ja(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,r=t.value;return r&&n&&(e.isAreaRangeType(t)?r=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(r=e.getBubbleZData(r,"y"))),r},getMinMaxValue:function(t){var e,n,r=this.getBaseValue.bind(this);return(t||this.data.targets.map((function(t){return t.values}))).forEach((function(t,i){var a=t.map(r).filter(za);e=Math.min.apply(Math,[i?e:1/0].concat(a)),n=Math.max.apply(Math,[i?n:-1/0].concat(a))})),{min:e,max:n}},getMinMaxData:function(){var t=this,e=fs,n=t.cache.get(e);if(!n){var r=t.data.targets.map((function(t){return t.values})),i=t.getMinMaxValue(r),a=[],o=[];r.forEach((function(e){var n=t.getFilteredDataByValue(e,i.min),r=t.getFilteredDataByValue(e,i.max);n.length&&(a=a.concat(n)),r.length&&(o=o.concat(r))})),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=ds,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach((function(t){t.values.forEach((function(t,e){n[e]||(n[e]=0),n[e]+=za(t.value)?t.value:0}))}))),n},getTotalDataSum:function(t){var e=this,n=hs,r=e.cache.get(n);if(!za(r)){var i=ho(e.data.targets.map((function(t){return t.values}))).map((function(t){return t.value})).reduce((function(t,e){return t+e}));e.cache.add(n,r=i)}return t&&(r-=e.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce((function(t,e){return t+e}))),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter((function(t){return n.getBaseValue(t)===e}))},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map((function(t){return t.values.length})))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=po(fo(t=t.map((function(t){return t.values})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.x})))).map((function(t,e){return{x:t,index:e}})):e&&(t=t[0].values),t},mapToIds:function(t){return t.map((function(t){return t.id}))},mapToTargetIds:function(t){return t?Ha(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,r=this.mapToIds(t),i=0;n=r[i];i++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter((function(t){return e.isTargetToShow(t.id)}))},mapTargetsToUniqueXs:function(t){var e,n=this.axis,r=[];null!=t&&t.length&&(r=fo(ho(t.map((function(t){return t.values.map((function(t){return+t.x}))})))),r=null!=(e=n)&&e.isTimeSeries()?r.map((function(t){return new Date(+t)})):r.map(Number));return po(r)},addTargetIds:function(t,e){var n=this.state;(Ha(e)?e:[e]).forEach((function(e){n[t].indexOf(e)<0&&n[t].push(e)}))},removeTargetIds:function(t,e){var n=this.state;(Ha(e)?e:[e]).forEach((function(e){var r=n[t].indexOf(e);r>=0&&n[t].splice(r,1)}))},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,r={},i=e.isMultipleX(),a=i?e.mapTargetsToUniqueXs(t).map((function(t){return Na(t)?t:+t})):null;return t.forEach((function(t){var o=[];t.values.filter((function(t){var e=t.value;return Pa(e)||null===e})).forEach((function(t){var r=t.value;null!==r&&e.isCandlestickType(t)&&(r=Ha(r)?r.slice(0,4):[r.open,r.high,r.low,r.close]),Ha(r)?o.push.apply(o,r):Wa(r)&&"high"in r?o.push.apply(o,Object.values(r)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(r,"y")):i?o[e.getIndexByX(t.x,a)]=r:o.push(r)})),r[t.id]=o})),r},checkValueInTargets:function(t,e){for(var n,r=Object.keys(t),i=0;i<r.length;i++){n=t[r[i]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t<0}))},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t>0}))},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this.config.data_order,r=/asc/i.test(n),i=/desc/i.test(n);if(r||i){var a=function(t,e){return t+Math.abs(e.value)};e=function(e,n){var i="values"in e?e.values.reduce(a,0):e.value,o="values"in n?n.values.reduce(a,0):n.value;return t?r?i-o:o-i:r?o-i:i-o}}else Da(n)&&(e=n.bind(this.api));return e||null},filterByX:function(t,e){return ho(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},filterRemoveNull:function(t){var e=this;return t.filter((function(t){return Pa(e.getBaseValue(t))}))},filterByXDomain:function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},hasDataLabel:function(){var t=this.config.data_labels;return Ba(t)&&t||Ya(t)&&Ga(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,r=n.inputType,i=n.eventReceiver,a=i.coords,o=i.rect,s=e.axis_rotated,u="touch"===r&&t.changedTouches?t.changedTouches[0]:t;return ao(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var r=this,i=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},findClosestFromTargets:function(t,e){var n=this,r=t.map((function(t){return n.findClosest(t.values,e)}));return n.findClosest(r,e)},findClosest:function(t,e){var n,r=this,i=r.config,a=r.$el.main,o=t.filter((function(t){return t&&Pa(t.value)})),s=i.point_sensitivity;return o.filter((function(t){return r.isBarType(t.id)||r.isCandlestickType(t.id)})).forEach((function(t){var e=r.isBarType(t.id)?"."+Oo.chartBar+"."+Eo.target+r.getTargetSelectorSuffix(t.id)+" ."+Oo.bar+"-"+t.index:"."+Ro.chartCandlestick+"."+Eo.target+r.getTargetSelectorSuffix(t.id)+" ."+Ro.candlestick+"-"+t.index+" path";!n&&r.isWithinBar(a.select(e).node())&&(n=t)})),o.filter((function(t){return!r.isBarType(t.id)&&!r.isCandlestickType(t.id)})).forEach((function(t){var i=r.dist(t,e);i<s&&(s=i,n=t)})),n},dist:function(t,e){var n=this,r=n.config.axis_rotated,i=n.scale,a=r?1:0,o=r?0:1,s=n.circleY(t,t.index),u=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,r=!!e&&e.isCategorized(),i=Ha(t)?t.concat():[t];if(!r&&!/step\-(after|before)/.test(n))return t;var a=i[0],o=i[i.length-1],s=a.id,u=a.x;return i.unshift({x:--u,value:a.value,id:s}),r&&"step-after"===n&&i.unshift({x:--u,value:a.value,id:s}),u=o.x,i.push({x:++u,value:o.value,id:s}),r&&"step-before"===n&&i.push({x:++u,value:o.value,id:s}),i},convertValuesToRange:function(t){var e=Ha(t)?t.concat():[t],n=[];return e.forEach((function(t){var e=t.x,r=t.id;n.push({x:e,id:r,value:t.value[0]}),n.push({x:e,id:r,value:t.value[2]})})),n},updateDataAttributes:function(t,e){var n=this.config["data_"+t];return Fa(e)||(Object.keys(e).forEach((function(t){n[t]=e[t]})),this.redraw({withLegend:!0})),n},getRangedData:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="areaRange");var r=null==t?void 0:t.value;if(Ha(r)){var i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&r?r[i]:void 0}return r?r[e]:r},getRatio:function(t,e,n){void 0===n&&(n=!1);var r=this,i=r.config,a=r.state,o=r.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())s=e.value/r.getTotalDataSum(!0);else{var u=i.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),c=r.hasType("gauge")?u:2*Math.PI;s=(e.endAngle-e.startAngle)/c}else if("index"===t){var l=o.data.values.bind(o),f=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var h=l(a.hiddenTargetIds,!1);h.length&&(h=h.reduce((function(t,e){return t.map((function(t,n){return(za(t)?t:0)+e[n]}))})),f=f.map((function(t,e){return t-h[e]})))}e.ratio=za(e.value)&&f&&f[e.index]>0?e.value/f[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*i.radar_size_ratio;else if("bar"===t){var d=r.getYScaleById.bind(r)(e.id).domain().reduce((function(t,e){return e-t}));s=0===d?0:Math.abs(e.value)/d}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce((function(t,e,n){return t[+e.x]=n,t}),{});this.data.targets.forEach((function(t){t.values.forEach((function(t,n){var r=e[+t.x];void 0===r&&(r=n),t.index=r}))}))},isBubbleZType:function(t){return this.isBubbleType(t)&&(Wa(t.value)&&("z"in t.value||"y"in t.value)||Ha(t.value)&&2===t.value.length)},isBarRangeType:function(t){var e=t.value;return this.isBarType(t)&&Ha(e)&&2===e.length&&e.every((function(t){return za(t)}))},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return null!=(e=null==n?void 0:n[0])?e:n}},Fs={load:function(t,e){var n,r=this,i=e.append,a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach((function(t){var n,i=(null==(n=e.types)?void 0:n[t.id])||e.type;r.setTargetType(t.id,i)})),r.data.targets.forEach((function(t){for(var e=0;e<a.length;e++)if(t.id===a[e].id){t.values=i?t.values.concat(a[e].values):a[e].values,a.splice(e,1);break}})),r.data.targets=r.data.targets.concat(a)),r.updateTargets(r.data.targets),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.updateTypesElements(),null==(n=e.done)||n.call(r.api)},loadFromArgs:function(t){var e=this;if(e.config){e.cache.reset();var n=t.data||e.convertData(t,(function(n){return e.load(e.convertDataToTargets(n),t)}));t.append&&(n.__append__=!0),n&&e.load(e.convertDataToTargets(n),t)}},unload:function(t,e){var n=this,r=n.state,i=n.$el,a=n.$T,o=e,s=t;if(n.cache.reset(),o||(o=function(){}),s=s.filter((function(t){return n.hasTarget(n.data.targets,t)})),s&&0!==s.length){var u=i.svg.selectAll(s.map((function(t){return n.selectorTarget(t)})));a(u).style("opacity","0").remove().call(Ka,o),s.forEach((function(t){r.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+Do.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter((function(e){return e.id!==t}))})),n.updateTypesElements()}else o()}},js=function(t){return function(){return t}};function Bs(t,e){var n=e.sourceEvent,r=e.subject,i=e.target,a=e.identifier,o=e.active,s=e.x,u=e.y,c=e.dx,l=e.dy,f=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:f}})}function Xs(t){return!t.ctrlKey&&!t.button}function $s(){return this.parentNode}function Us(t,e){return null==e?{x:t.x,y:t.y}:e}function Ys(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vs(){var t,e,n,r,i=Xs,a=$s,o=Us,s=Ys,u={},c=Gn("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",v).on("touchmove.drag",y,Hn).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(o,s){if(!r&&i.call(this,o,s)){var u=_(this,a.call(this,o,s),o,s,"mouse");u&&(In(o.view).on("mousemove.drag",g,Wn).on("mouseup.drag",p,Wn),Kn(o.view),qn(o),n=!1,t=o.clientX,e=o.clientY,u("start",o))}}function g(r){if(Zn(r),!n){var i=r.clientX-t,a=r.clientY-e;n=i*i+a*a>f}u.mouse("drag",r)}function p(t){In(t.view).on("mousemove.drag mouseup.drag",null),Jn(t.view,n),Zn(t),u.mouse("end",t)}function v(t,e){if(i.call(this,t,e)){var n,r,o=t.changedTouches,s=a.call(this,t,e),u=o.length;for(n=0;n<u;++n)(r=_(this,s,t,e,o[n].identifier,o[n]))&&(qn(t),r("start",t,o[n]))}}function y(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=u[r[e].identifier])&&(Zn(t),n("drag",t,r[e]))}function x(t){var e,n,i=t.changedTouches,a=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<a;++e)(n=u[i[e].identifier])&&(qn(t),n("end",t,i[e]))}function _(t,e,n,r,i,a){var s,f,d,g=c.copy(),p=jn(a||n,e);if(null!=(d=o.call(t,new Bs("beforestart",{sourceEvent:n,target:h,identifier:i,active:l,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),r)))return s=d.x-p[0]||0,f=d.y-p[1]||0,function n(a,o,c){var v,y=p;switch(a){case"start":u[i]=n,v=l++;break;case"end":delete u[i],--l;case"drag":p=jn(c||o,e),v=l}g.call(a,t,new Bs(a,{sourceEvent:o,subject:d,target:h,identifier:i,active:v,x:p[0]+s,y:p[1]+f,dx:p[0]-y[0],dy:p[1]-y[1],dispatch:g}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:js(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:js(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:js(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:js(!!t),h):s},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h}Bs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Gs={selectRectForSingle:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.data_selection_enabled,s=i.data_selection_grouped,u=i.data_selection_isselectable,c=i.tooltip_grouped,l=r.getAllValuesOnIndex(n);c&&(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),!o||s)||a.selectAll("."+Vo.shape+"-"+n).each((function(){In(this).classed(Eo.EXPANDED,!0),o&&e.style("cursor",s?"pointer":null),c||(null==r.hideGridFocus||r.hideGridFocus(),r.hideTooltip(),s||r.setExpand(n))})).filter((function(t){return r.isWithinShape(this,t)})).call((function(i){var a,l=i.data();o&&(s||null!=(a=u)&&a.bind(r.api)(l))&&e.style("cursor","pointer"),c||(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),null==r.unexpandCircles||r.unexpandCircles(),i.each((function(t){return r.setExpand(n,t.id)})))}))},setExpand:function(t,e,n){var r=this,i=r.config;r.$el.circle&&i.point_focus_expand_enabled&&r.expandCircles(t,e,n),r.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,r){void 0===t&&(t=!0);var i=this;["bar","candlestick"].filter((function(t){return i.$el[t]})).forEach((function(a){r&&i.$el[a].classed(Eo.EXPANDED,!1),i.getShapeByIndex(a,e,n).classed(Eo.EXPANDED,t)}))},setOverOut:function(t,e){var n=this,r=n.config,i=n.state.hasRadar,a=n.$el.main,o=Wa(e);if(o||-1!==e){var s=r[t?"data_onover":"data_onout"].bind(n.api);if(r.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select("."+So.arc+n.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&i?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),n.isMultipleX()||a.selectAll("."+Vo.shape+"-"+e).each((function(t){s(t,this)}));else{var u=n.cache.get(vs)||[],c=a.selectAll("."+Vo.shape+"-"+e).filter((function(t){return n.isWithinShape(this,t)}));c.each((function(t){var e=this;(0===u.length||u.every((function(t){return t!==e})))&&(s(t,this),u.push(this))})),u.length>0&&c.empty()&&(s=r.data_onout.bind(n.api),u.forEach((function(t){return s(In(t).datum(),t)})),u=[]),n.cache.add(vs,u)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(ys);(Wa(t)&&n?t.id!==n.id:t!==n)&&((n||za(n))&&e.setOverOut(!1,n),(t||za(t))&&e.setOverOut(!0,t),e.cache.add(ys,t))},getDraggableSelection:function(){var t=this,e=t.config,n=t.state;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?Vs().on("drag",(function(e){n.event=e,t.drag(eo(e,this))})).on("start",(function(e){n.event=e,t.dragstart(eo(e,this))})).on("end",(function(e){n.event=e,t.dragend()})):function(){}},dispatchEvent:function(t,e,n){var r=this,i=r.config,a=r.state,o=a.eventReceiver,s=a.hasAxis,u=a.hasRadar,c=r.$el,l=c.eventRect,f=c.arcs,h=c.radar,d=r.isMultipleX(),g=(u?h.axes.select("."+Mo.axis+"-"+e+" text"):l||f.selectAll("."+Eo.target+" path").filter((function(t,n){return n===e}))).node(),p=g.getBoundingClientRect(),v=p.width,y=p.left,x=p.top;if(s&&!u&&!d){var _=o.coords[e];v=_.w,y+=_.x,x+=_.y}var m=y+(n?n[0]:0)+(d||i.axis_rotated?0:v/2),b=x+(n?n[1]:0);xo[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,{screenX:m,screenY:b,clientX:m,clientY:b})},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t,e,n=this.$el,r=n.eventRect,i=n.zoomResetBtn;null==(t=r)||t.on(".zoom wheel.zoom .drag",null),null==(e=i)||e.on("click",null).style("display","none")},unbindAllEvents:function(){var t,e,n,r,i=this,a=i.$el,o=a.arcs,s=a.eventRect,u=a.legend,c=a.region,l=a.svg,f=i.brush;[l,s,null==(t=c)?void 0:t.list,null==(e=f)?void 0:e.getSelection(),null==(n=o)?void 0:n.selectAll("path"),null==(r=u)?void 0:r.selectAll("g")].forEach((function(t){return null==t?void 0:t.on("wheel click mouseover mousemove mouseout touchstart touchmove touchend touchstart.eventRect touchmove.eventRect touchend.eventRect .brush .drag .zoom wheel.zoom dblclick.zoom",null)})),null==i.unbindZoomEvent||i.unbindZoomEvent()}},Hs={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,r=/s$/.test(t),i=/^(area|arc|line)s?$/.test(t),a=r?"id":"index";return function(o){var s=o.data||o;return((e?n.generateClass(Zo[r?"shapes":"shape"],s[a]):"")+n.generateClass(Zo[t],s[i?"id":a])).trim()}},getChartClass:function(t){var e=this;return function(n){return Zo["chart"+t]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var r,i=n.id||(null==(r=n.data)?void 0:r.id)||n;return e.indexOf(i)<0&&e.push(i),t[e.indexOf(i)%t.length]}},classRegion:function(t,e){return this.generateClass(Zo.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+Zo.target+"-"+e),this.generateClass(Zo.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?Zo.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?Zo.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-"+t:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e){var n=e||"",r=this.getTargetSelectorSuffix(t);return n+"."+(Zo.target+r)+", "+n+"."+(Zo.circles+r)},selectorTargets:function(t,e){var n=this,r=t||[];return r.length?r.map((function(t){return n.selectorTarget(t,e)})):null},selectorLegend:function(t){return"."+(Zo.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return null!=t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null}};function Ws(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qs(t,e){return qs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qs(t,e)}function Zs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qs(t,e)}function Ks(t){return Ks=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ks(t)}function Js(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Qs(t,e,n){return Qs=Js()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&qs(i,n.prototype),i},Qs.apply(null,arguments)}function tu(t){var e="function"==typeof Map?new Map:void 0;return tu=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Qs(t,arguments,Ks(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qs(r,t)},tu(t)}function eu(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return nu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ru=function(t){function e(e,n){var r;if(void 0===n&&(n=su),r=t.call(this)||this,Object.defineProperties(Ws(r),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var i,a=eu(e);!(i=a()).done;){var o=i.value,s=o[0],u=o[1];r.set(s,u)}return r}Zs(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,iu(this,e))},n.has=function(e){return t.prototype.has.call(this,iu(this,e))},n.set=function(e,n){return t.prototype.set.call(this,au(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,ou(this,e))},e}(tu(Map));Set;function iu(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function au(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function ou(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function su(t){return null!==t&&"object"==typeof t?t.valueOf():t}function uu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function cu(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return lu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var fu=Symbol("implicit");function hu(){var t=new ru,e=[],n=[],r=fu;function i(i){var a=t.get(i);if(void 0===a){if(r!==fu)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ru;for(var r,a=cu(n);!(r=a()).done;){var o=r.value;t.has(o)||t.set(o,e.push(o)-1)}return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return hu(e,n).unknown(r)},uu.apply(i,arguments),i}var du=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],gu={getColorFromCss:function(){var t=ls,e=Pn.body,n=e[t];if(!n){var r=Pn.createElement("span");r.className=Io.colorPattern,r.style.display="none",e.appendChild(r);var i=Ln.getComputedStyle(r).backgroundImage;r.parentNode.removeChild(r),i.indexOf(";")>-1&&(n=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map((function(t){return t.trim().replace(/[\"'\s]/g,"")})).filter(Boolean),e[t]=n)}return n},generateColor:function(){var t=this,e=t.config,n=e.data_colors,r=e.data_color,i=[],a=Ga(e.color_pattern)?e.color_pattern:hu(t.getColorFromCss()||du).range(),o=a;if(Da(e.color_tiles)){var s=e.color_tiles.bind(t.api)(),u=a.map((function(e,n){var r=e.replace(/[#\(\)\s,]/g,""),i=t.state.datetimeId+"-pattern-"+r+"-"+n;return function(t,e,n){var r=In(t.cloneNode(!0));return r.attr("id",n).insert("rect",":first-child").attr("width",r.attr("width")).attr("height",r.attr("height")).style("fill",e),{id:n,node:r.node()}}(s[n%s.length],e,i)}));a=u.map((function(t){return"url(#"+t.id+")"})),t.patterns=u}return function(s){var u,c,l=s.id||(null==(u=s.data)?void 0:u.id)||s,f=t.isTypeOf(l,["line","spline","step"])||!e.data_types[l];return Da(n[l])?c=n[l].bind(t.api)(s):n[l]?c=n[l]:(i.indexOf(l)<0&&i.push(l),c=f?o[i.indexOf(l)%o.length]:a[i.indexOf(l)%a.length],n[l]=c),Da(r)?r.bind(t.api)(c,s):c}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.max||100,a=n.values&&n.values.length?n.values:[];return Ga(n)?function(t){for(var n=r?t:100*t/i,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this,n=e.$el,r=e.config,i=e.state,a=t||r.data_labels_backgroundColors;if(a){var o=[];Na(a)?o.push(""):Wa(a)&&(o=Object.keys(a)),o.forEach((function(r){var o=i.datetimeId+"-labels-bg"+e.getTargetSelectorSuffix(r)+(t?e.getTargetSelectorSuffix(t):"");n.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",o).html('<feFlood flood-color="'+(""===r?a:a[r])+'" /><feComposite in="SourceGraphic"/>')}))}},setOverColor:function(t,e){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=t?a:n.color;Wa(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:Na(o)?o=function(){return a}:Da(a)&&(o=o.bind(n.api)),i.selectAll(Wa(e)?"."+So.arc+n.getTargetSelectorSuffix(e.id):"."+Vo.shape+"-"+e).style("fill",o)}},pu={getYDomainMinMax:function(t,e){var n=this,r=n.axis,i=n.config,a="min"===e,o=i.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0){var c=n["has"+(a?"Negative":"Positive")+"ValueInTargets"](t);o.forEach((function(t){var e=t.filter((function(t){return s.indexOf(t)>=0}));if(e.length){var n=e[0],i=r.getId(n);c&&u[n]&&(u[n]=u[n].map((function(t){return(a?t<0:t>0)?t:0}))),e.filter((function(t,e){return e>0})).forEach((function(t){if(u[t]){var e=r.getId(t);u[t].forEach((function(t,r){var o=+t;e!==i||c&&(a?o>0:o<0)||(u[n][r]+=o)}))}}))}}))}return vo(e,Object.keys(u).map((function(t){return vo(e,u[t])})))},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some((function(n){return e.axis.getId(n)===t}))},getYDomain:function(t,e,n){var r,i=this,a=i.axis,o=i.config,s=i.scale,u="axis_"+e;if(i.isStackNormalized())return[0,100];var c=(null==(r=s)?void 0:r[e])&&"log"===s[e].type,l=t.filter((function(t){return a.getId(t.id)===e})),f=n?i.filterByXDomain(l,n):l;if(0===f.length)return i.isHiddenTargetWithYDomain(e)?s[e].domain():"y2"===e?s.y.domain():i.getYDomain(t,"y2",n);var h=o[u+"_min"],d=o[u+"_max"],g=o[u+"_center"],p=o[u+"_inverted"],v=i.hasDataLabel()&&o.axis_rotated,y=i.hasDataLabel()&&!o.axis_rotated,x=i.getYDomainMinMax(f,"min"),_=i.getYDomainMinMax(f,"max"),m=[Dn.BAR,Dn.BUBBLE,Dn.SCATTER].concat(zn.Line).some((function(t){var e=t.indexOf("area")>-1?"area":t;return i.hasType(t,f,!0)&&o[e+"_zerobased"]}));x=Pa(h)?h:Pa(d)?x<d?x:d-10:x,_=Pa(d)?d:Pa(h)?h<_?_:h+10:_,isNaN(x)&&(x=0),isNaN(_)&&(_=x),x===_&&(x<0?_=0:x=0);var b=x>=0&&_>=0,w=x<=0&&_<=0;(Pa(h)&&b||Pa(d)&&w)&&(m=!1),m&&(b&&(x=0),w&&(_=0));var T=Math.abs(_-x),A={top:.1*T,bottom:.1*T};if(ja(g)){var E=Math.max(Math.abs(x),Math.abs(_));_=g+E,x=g-E}if(v){var S=Ua(s.y.range()),k=i.getDataLabelLength(x,_,"width").map((function(t){return t/S}));["bottom","top"].forEach((function(t,e){A[t]+=T*(k[e]/(1-k[0]-k[1]))}))}else if(y){var M=i.getDataLabelLength(x,_,"height");["bottom","top"].forEach((function(t,e){A[t]+=i.convertPixelToScale("y",M[e],T)}))}A=i.getResettedPadding(A);var O=o[u+"_padding"];Ga(O)&&["bottom","top"].forEach((function(t){A[t]=a.getPadding(O,t,A[t],T)})),m&&(b&&(A.bottom=x),w&&(A.top=-_));var R=c?[x,_].map((function(t){return t<0?0:t})):[x-A.bottom,_+A.top];return p?R.reverse():R},getXDomainMinMax:function(t,e){var n,r=this.config["axis_x_"+e],i=vo(e,t.map((function(t){return vo(e,t.values.map((function(t){return t.x})))}))),a=Wa(r)?r.value:r;return a=ja(a)&&null!=(n=this.axis)&&n.isTimeSeries()?mo.bind(this)(a):a,Wa(r)&&r.fit&&("min"===e&&a<i||"max"===e&&a>i)&&(a=void 0),ja(a)?a:i},getXDomainPadding:function(t,e){var n,r=this,i=r.axis,a=r.config.axis_x_padding,o=i.isTimeSeries()&&e,s=Ua(t);if(i.isCategorized()||o)n=0;else if(r.hasType("bar")){var u=r.getMaxDataCount();n=u>1?s/(u-1)/2:.5}else n=r.getResettedPadding(.01*s);var c=za(a)?{left:a,right:a}:a,l=c.left,f=void 0===l?n:l,h=c.right,d=void 0===h?n:h;if("px"===a.unit){var g=Math.abs(s+.2*s);f=i.getPadding(a,"left",n,g),d=i.getPadding(a,"right",n,g)}else{var p=s+f+d;if(o&&p){var v=s/e/p;f=f/p/v,d=d/p/v}}return{left:f,right:d}},getXDomain:function(t){var e=this,n=e.axis,r=e.scale.x,i=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=i[0],o=void 0===a?0:a,s=i[1],u=void 0===s?0:s;if("log"!==r.type){var c=n.isCategorized(),l=n.isTimeSeries(),f=e.getXDomainPadding(i),h=i[0],d=i[1];h-d!=0||c||(l?(h=new Date(.5*h.getTime()),d=new Date(1.5*d.getTime())):(h=0===h?1:.5*h,d=0===d?-1:1.5*d)),(h||0===h)&&(o=l?new Date(h.getTime()-f.left):h-f.left),(d||0===d)&&(u=l?new Date(d.getTime()+f.right):d+f.right)}return[o,u]},updateXDomain:function(t,e,n,r,i){var a,o=this,s=o.config,u=o.org,c=o.scale,l=c.x,f=c.subX,h=s.zoom_enabled;n&&(l.domain(i||po(o.getXDomain(t))),u.xDomain=l.domain(),h&&o.zoom.updateScaleExtent(),f.domain(l.domain()),null==(a=o.brush)||a.scale(f));if(e){var d=i||!o.brush||oo(o)?u.xDomain:no(o).map(f.invert);l.domain(d),h&&o.zoom.updateScaleExtent()}return r&&l.domain(o.trimXDomain(l.orgDomain())),l.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return ja(t.zoom_x_min)&&(n=vo("min",[n,t.zoom_x_min])),ja(t.zoom_x_max)&&(r=vo("max",[r,t.zoom_x_max])),[n,r]},convertPixelToScale:function(t,e,n){var r=this.config,i=this.state,a=r.axis_rotated;return n*(e/i["x"===t?a?"height":"width":a?"width":"height"])}};function vu(t,e,n){var r=t.config,i="axis_"+e+"_tick_format";return(r[i]?r[i]:t.defaultValueFormat)(n)}var yu={yFormat:function(t){return vu(this,"y",t)},y2Format:function(t){return vu(this,"y2",t)},getDefaultValueFormat:function(){var t=this,e=t.defaultArcValueFormat,n=t.yFormat,r=t.y2Format,i=t.hasArcType(null,["gauge","polar","radar"]);return function(a,o,s){return(i?e:t.axis&&"y2"===t.axis.getId(s)?r:n).call(t,a,o)}},defaultValueFormat:function(t){return Pa(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},defaultPolarValueFormat:function(t){return""+t},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Pa(t)?+t:""},r=n;return Da(e.format)?r=e.format:Ya(e.format)&&(r=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),r.bind(this.api)}},xu={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Do.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.scale,s=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=qa(u,"withTransition",!0),u.withTransitionForTransform=qa(u,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?r.updateLegendTemplate():r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),s.legend.selectAll("."+Do.legendItem).classed(Do.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!o.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,r=In(e.legend_contents_bindto),i=e.legend_contents_template;if(!r.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach((function(e){var n=Da(i)?i.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):_o(i,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)}));var u=r.html(s).selectAll((function(){return this.childNodes})).data(o);t.setLegendItem(u),n.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,r=e.state,i=r.isLegendTop,a=r.isLegendLeft,o=r.isLegendRight,s=r.isLegendInset,u=r.current,c=t.width,l=t.height,f={top:i?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?f.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?f.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend;(0,e.$T)(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+Do.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,r=t.isLegendInset,i=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||r?i*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,r=t.legendItemHeight,i=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,r)*(i+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Do.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,r=n.$el.legend,i=n.$T,a=n.mapToTargetIds(t);r&&i(r.selectAll("."+Do.legendItem).filter((function(t){return a.indexOf(t)>=0})).classed(Fo.legendItemFocused,e)).style("opacity",(function(){return e?null:n.opacityForUnfocusedLegend.call(n,In(this))}))},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+Do.legendItem).classed(Fo.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,r=e.$el,i=e.$T;n.legend_show||(n.legend_show=!0,r.legend?r.legend.style("visibility",null):e.initLegend(),e.state.legendHasRendered||e.updateLegend()),e.removeHiddenLegendIds(t),i(r.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,r=e.$el.legend;n.legend_show&&Va(t)&&(n.legend_show=!1,r.style("visibility","hidden")),e.addHiddenLegendIds(t),r.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,r=this,i=r.cache,a=r.state,o=gs;return t&&((n=!a.redrawing&&i.get(o)||{})[t]||(n[t]=r.getTextRect(e,Do.legendItem),i.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.api,r=e.config,i=e.state,a="touch"===i.inputType,o=e.hasType("gauge");t.attr("class",(function(t){var n=In(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass(Do.legendItem,t)})).style("visibility",(function(t){return e.isLegendToShow(t)?null:"hidden"})),r.interaction_enabled&&(t.style("cursor","pointer").on("click",(function(t,i){Za(r.legend_item_onclick,n,i)||(t.altKey?(n.hide(),n.show(i)):(n.toggle(i),In(this).classed(Fo.legendItemFocused,!1))),a&&e.hideTooltip()})),a||t.on("mouseout",(function(t,i){Za(r.legend_item_onout,n,i)||(In(this).classed(Fo.legendItemFocused,!1),o&&e.undoMarkOverlapped(e,"."+Po.gaugeValue),e.api.revert())})).on("mouseover",(function(t,a){Za(r.legend_item_onover,n,a)||(In(this).classed(Fo.legendItemFocused,!0),o&&e.markOverlapped(a,e,"."+Po.gaugeValue),!i.transiting&&e.isTargetToShow(a)&&n.focus(a))})))},updateLegendElement:function(t,e){var n,r,i,a=this,o=a.config,s=a.state,u=a.$el.legend,c=a.$T,l=o.legend_item_tile_width+5,f=0,h=0,d=0,g={},p={},v={},y=[0],x={},_=0,m=s.isLegendRight||s.isLegendInset,b=t.filter((function(t){return!ja(o.data_names[t])||null!==o.data_names[t]})),w=e.withTransition,T=function(t,e,n){var r,i=n===b.length-1,u=a.getLegendItemTextBox(e,t),c=u.width+l+(i&&!m?0:10)+o.legend_padding,w=u.height+4,T=m?w:c,A=m?a.getLegendHeight():a.getLegendWidth(),E=function(t,e){e||(r=(A-d-T)/2)<10&&(r=(A-T)/2,d=0,_++),x[t]=_,y[_]=s.isLegendInset?10:r,g[t]=d,d+=T};if(0===n&&(d=0,_=0,f=0,h=0),o.legend_show&&!a.isLegendToShow(e))return p[e]=0,v[e]=0,x[e]=0,void(g[e]=0);p[e]=c,v[e]=w,(!f||c>=f)&&(f=c),(!h||w>=h)&&(h=w);var S=m?h:f;o.legend_equally?(Object.keys(p).forEach((function(t){return p[t]=f})),Object.keys(v).forEach((function(t){return v[t]=h})),(r=(A-S*b.length)/2)<10?(d=0,_=0,b.forEach((function(t){return E(t)}))):E(e,!0)):E(e)};s.isLegendInset&&(_=o.legend_inset_step?o.legend_inset_step:b.length,a.updateLegendStep(_)),s.isLegendRight?(n=function(t){return f*x[t]},r=function(t){return y[x[t]]+g[t]}):s.isLegendInset?(n=function(t){return f*x[t]+10},r=function(t){return y[x[t]]+g[t]}):(n=function(t){return y[x[t]]+g[t]},r=function(t){return h*x[t]});var A=function(t,e){return n(t,e)+4+o.legend_item_tile_width},E=function(t,e){return n(t,e)},S=function(t,e){return n(t,e)-2},k=function(t,e){return n(t,e)-2+o.legend_item_tile_width},M=function(t,e){return r(t,e)+9},O=function(t,e){return r(t,e)-5},R=function(t,e){return r(t,e)+4},C=-200,I=u.selectAll("."+Do.legendItem).data(b).enter().append("g");a.setLegendItem(I),I.append("text").text((function(t){return ja(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)})).style("pointer-events","none").attr("x",m?A:C).attr("y",m?C:M),I.append("rect").attr("class",Do.legendItemEvent).style("fill-opacity","0").attr("x",m?E:C).attr("y",m?C:O);var L=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},P=o.legend_usePoint;if(P){var D=[];I.append((function(t){var e=Ga(o.point_pattern)?o.point_pattern:[o.point_type];-1===D.indexOf(t)&&D.push(t);var n=e[D.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Pn.createElementNS(Ie.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")})).attr("class",Do.legendItemPoint).style("fill",L).style("pointer-events","none").attr("href",(function(t,e,n){var r=n[e].nodeName.toLowerCase(),i=a.getTargetSelectorSuffix(t);return"use"===r?"#"+s.datetimeId+"-point"+i:void 0}))}else I.append("line").attr("class",Do.legendItemTile).style("stroke",L).style("pointer-events","none").attr("x1",m?S:C).attr("y1",m?C:R).attr("x2",m?k:C).attr("y2",m?C:R).attr("stroke-width",o.legend_item_tile_height);i=u.select("."+Do.legendBackground+" rect"),s.isLegendInset&&f>0&&0===i.size()&&(i=u.insert("g","."+Do.legendItem).attr("class",Do.legendBackground).append("rect"));var N=u.selectAll("text").data(b).text((function(t){return ja(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)}));(c(N,w).attr("x",A).attr("y",M),c(u.selectAll("rect."+Do.legendItemEvent).data(b),w).attr("width",(function(t){return p[t]})).attr("height",(function(t){return v[t]})).attr("x",E).attr("y",O),P)?c(u.selectAll("."+Do.legendItemPoint).data(b),w).each((function(){var t,e,n,r=this.nodeName.toLowerCase(),i=o.point_r,a="x",s="y",u=2,c=2.5;if("circle"===r){var l=.2*i;a="cx",s="cy",t=i+l,u=2*i,c=-l}else if("rect"===r){var f=2.5*i;e=f,n=f,c=3}In(this).attr(a,(function(t){return S(t)+u})).attr(s,(function(t){return R(t)-c})).attr("r",t).attr("width",e).attr("height",n)})):c(u.selectAll("line."+Do.legendItemTile).data(b),w).style("stroke",L).attr("x1",S).attr("y1",R).attr("x2",k).attr("y2",R);i&&c(i,w).attr("height",a.getLegendHeight()-12).attr("width",f*(_+1)+10),a.updateLegendItemWidth(f),a.updateLegendItemHeight(h),a.updateLegendStep(_)}},_u={redraw:function(t){var e;void 0===t&&(t={});var n=this,r=n.config,i=n.state,a=n.$el,o=a.main;i.redrawing=!0;var s=n.filterTargetsToShow(n.data.targets),u=t,c=u.flow,l=u.initializing,f=n.getWithOption(t),h=f.Transition?r.transition_duration:0,d=f.TransitionForExit?h:0,g=f.TransitionForAxis?h:0,p=null==(e=n.axis)?void 0:e.generateTransitions(g);n.updateSizes(l),f.Legend&&r.legend_show?(t.withTransition=!!h,n.updateLegend(n.mapToIds(n.data.targets),t,p)):f.Dimension&&n.updateDimension(!0),n.hasArcType()&&!i.hasRadar||n.updateCircleY&&(n.circleY=n.updateCircleY()),i.hasAxis?(n.axis.redrawAxis(s,f,p,c,l),r.data_empty_label_text&&o.select("text."+Ho.text+"."+Eo.empty).attr("x",i.width/2).attr("y",i.height/2).text(r.data_empty_label_text).style("display",s.length?"none":null),n.hasGrid()&&n.updateGrid(),r.regions.length&&n.updateRegion(),["bar","candlestick","line","area"].forEach((function(t){var e=uo(t);(/^(line|area)$/.test(t)&&n.hasTypeOf(e)||n.hasType(t))&&n["update"+e](f.TransitionForExit)})),a.text&&o.selectAll("."+Yo.selectedCircles).filter(n.isBarType.bind(n)).selectAll("circle").remove(),r.interaction_enabled&&!c&&f.EventRect&&(n.redrawEventRect(),null==n.bindZoomEvent||n.bindZoomEvent())):(a.arcs&&n.redrawArc(h,d,f.Transform),a.radar&&n.redrawRadar(),a.polar&&n.redrawPolar()),i.resizing||!n.hasPointType()&&!i.hasRadar||n.updateCircle(),n.hasDataLabel()&&!n.hasArcType(null,["radar"])&&n.updateText(),null==n.redrawTitle||n.redrawTitle(),l&&n.updateTypesElements(),n.generateRedrawList(s,c,h,f.Subchart),n.callPluginHook("$redraw",t,h)},generateRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=i.getDrawShape();o.hasAxis&&a.subchart_show&&i.redrawSubchart(r,n,s);var u=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:i.xv.bind(i)}),c=(n||u)&&bo(),l=i.getRedrawList(s,e,u,c),f=function(){u&&u(),o.redrawing=!1,Za(a.onrendered,i.api)};if(f)if(c&&l.length){var h=ws();Ki().duration(n).each((function(){l.reduce((function(t,e){return t.concat(e)}),[]).forEach((function(t){return h.add(t)}))})).call(h,f)}else o.transiting||f();i.mapToIds(i.data.targets).forEach((function(t){o.withoutFadeIn[t]=!0}))},getRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=o.hasAxis,u=o.hasRadar,c=i.$el.grid,l=t.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=[];return s&&((a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(i.redrawGrid(r)),a.regions.length&&p.push(i.redrawRegion(r)),Object.keys(t.type).forEach((function(e){var n=uo(e),a=t.type[e];(/^(area|line)$/.test(e)&&i.hasTypeOf(n)||i.hasType(e))&&p.push(i["redraw"+n](a,r))})),!e&&c.main&&p.push(i.updateGridFocus())),i.hasArcType()&&!u||Ga(a.data_labels)&&!1!==a.data_labels&&p.push(i.redrawText(d,g,e,r)),!i.hasPointType()&&!u||a.point_focus_only||i.redrawCircle&&p.push(i.redrawCircle(f,h,r,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,r=n.config,i=n.state;t.withTransition=qa(t,"withTransition",!0),t.withTransform=qa(t,"withTransform",!1),t.withLegend=qa(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=qa(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(i.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withDimension:!1,withLegend:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}},mu=Math.sqrt(50),bu=Math.sqrt(10),wu=Math.sqrt(2);function Tu(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Au(t,e,n))||!isFinite(o))return[];if(o>0){var u=Math.round(t/o),c=Math.round(e/o);for(u*o<t&&++u,c*o>e&&--c,a=Array(i=c-u+1);++s<i;)a[s]=(u+s)*o}else{o=-o;var l=Math.round(t*o),f=Math.round(e*o);for(l/o<t&&++l,f/o>e&&--f,a=Array(i=f-l+1);++s<i;)a[s]=(l+s)/o}return r&&a.reverse(),a}function Au(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=mu?10:a>=bu?5:a>=wu?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=mu?10:a>=bu?5:a>=wu?2:1)}function Eu(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=mu?i*=10:a>=bu?i*=5:a>=wu&&(i*=2),e<t?-i:i}function Su(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ku(t){var e=t,n=t,r=t;function i(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<0?i=o+1:a=o}while(i<a)}return i}return 2!==t.length&&(e=function(e,n){return t(e)-n},n=Su,r=function(e,n){return Su(t(e),n)}),{left:i,center:function(t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=t.length);var o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<=0?i=o+1:a=o}while(i<a)}return i}}}var Mu=ku(Su),Ou=Mu.right,Ru=(Mu.left,ku((function(t){return null===t?NaN:+t})).center,Ou);function Cu(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Iu(t){return+t}var Lu=[0,1];function Pu(t){return t}function Du(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Nu(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Du(i,r),a=n(o,a)):(r=Du(r,i),a=n(a,o)),function(t){return a(r(t))}}function zu(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Du(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Ru(t,e,1,r)-1;return a[n](i[n](e))}}function Fu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ju(){var t,e,n,r,i,a,o=Lu,s=Lu,u=Ur,c=Pu;function l(){var t,e,n,u=Math.min(o.length,s.length);return c!==Pu&&(t=o[0],e=o[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?zu:Nu,i=a=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((a||(a=r(s,o.map(t),Fr)))(n)))},f.domain=function(t){return arguments.length?(o=Array.from(t,Iu),l()):o.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=Cu,l()},f.clamp=function(t){return arguments.length?(c=!!t||Pu,l()):c!==Pu},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Bu(){return ju()(Pu,Pu)}var Xu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uu(t){if(!(e=$u.exec(t)))throw new Error("invalid format: "+t);var e;return new Yu({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Yu(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Vu(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Gu(t){return(t=Vu(Math.abs(t)))?t[1]:NaN}function Hu(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}Uu.prototype=Yu.prototype,Yu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Wu={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Hu(100*t,e)},r:Hu,s:function(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+Vu(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function qu(t){return t}var Zu,Ku,Ju,Qu=Array.prototype.map,tc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ec(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?qu:(e=Qu.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?qu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Qu.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Uu(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,g=t.width,p=t.comma,v=t.precision,y=t.trim,x=t.type;"n"===x?(p=!0,x="g"):Wu[x]||(void 0===v&&(v=12),y=!0,x="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",m="$"===h?a:/[%p]/.test(x)?u:"",b=Wu[x],w=/[defgprs%]/.test(x);function T(t){var i,a,u,h=_,T=m;if("c"===x)T=b(t)+T,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:b(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:c:"-"===f||"("===f?"":f)+h,T=("s"===x?tc[8+Xu/3]:"")+T+(A&&"("===f?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(u=t.charCodeAt(i))||u>57){T=(46===u?o+t.slice(i+1):t.slice(i))+T,t=t.slice(0,i);break}}p&&!d&&(t=r(t,1/0));var E=h.length+t.length+T.length,S=E<g?Array(g-E+1).join(e):"";switch(p&&d&&(t=r(S+t,S.length?g-T.length:1/0),S=""),n){case"<":t=h+t+T+S;break;case"=":t=h+S+t+T;break;case"^":t=S.slice(0,E=S.length>>1)+h+t+T+S.slice(E);break;default:t=S+h+t+T}return s(t)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),T.toString=function(){return t+""},T}return{format:f,formatPrefix:function(t,e){var n=f(((t=Uu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Gu(e)/3))),i=Math.pow(10,-r),a=tc[8+r/3];return function(t){return n(i*t)+a}}}}function nc(t,e,n,r){var i,a=Eu(t,e,n);switch((r=Uu(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Gu(e)/3)))-Gu(Math.abs(t)))}(a,o))||(r.precision=i),Ju(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gu(e)-Gu(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Gu(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ku(r)}function rc(t){var e=t.domain;return t.ticks=function(t){var n=e();return Tu(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return nc(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,u=a[o],c=a[s],l=10;for(c<u&&(i=u,u=c,c=i,i=o,o=s,s=i);l-- >0;){if((i=Au(u,c,n))===r)return a[o]=u,a[s]=c,e(a);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ic(){var t=Bu();return t.copy=function(){return Fu(t,ic())},uu.apply(t,arguments),rc(t)}function ac(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function oc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function sc(t){var e=1,n=t(ac(e),oc(e));return n.constant=function(n){return arguments.length?t(ac(e=+n),oc(e)):e},rc(n)}function uc(){var t=sc(ju());return t.copy=function(){return Fu(t,uc()).constant(t.constant())},uu.apply(t,arguments)}function cc(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function lc(t){return Math.log(t)}function fc(t){return Math.exp(t)}function hc(t){return-Math.log(-t)}function dc(t){return-Math.exp(-t)}function gc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function pc(t){return function(e,n){return-t(-e,n)}}function vc(t){var e,n,r=t(lc,fc),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?gc:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=pc(e),n=pc(n),t(hc,dc)):t(lc,fc),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r=i(),o=r[0],s=r[r.length-1],u=s<o;if(u){var c=[s,o];o=c[0],s=c[1]}var l,f,h=e(o),d=e(s),g=null==t?10:+t,p=[];if(!(a%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),o>0){for(;h<=d;++h)for(l=1;l<a;++l)if(!((f=h<0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}}else for(;h<=d;++h)for(l=a-1;l>=1;--l)if(!((f=h>0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}2*p.length<g&&(p=Tu(o,s,g))}else p=Tu(h,d,Math.min(d-h,g)).map(n);return u?p.reverse():p},r.tickFormat=function(t,i){if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=Uu(i)).precision||(i.trim=!0),i=Ku(i)),t===1/0)return i;var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(cc(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function yc(){var t=vc(ju()).domain([1,10]);return t.copy=function(){return Fu(t,yc()).base(t.base())},uu.apply(t,arguments),t}!function(t){Zu=ec(t),Ku=Zu.format,Ju=Zu.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var xc=s((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));xc.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):xc:null};var _c=xc,mc=(xc.range,s((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*u)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCSeconds()}))),bc=mc,wc=(mc.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getMinutes()}))),Tc=wc,Ac=(wc.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()}))),Ec=Ac,Sc=(Ac.range,s((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),kc=Sc,Mc=(Sc.range,s((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCMinutes()}))),Oc=Mc,Rc=(Mc.range,s((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()}))),Cc=Rc,Ic=(Rc.range,s((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Lc=Ic;Ic.range;function Pc(t,e,n,r,i,a){var o=[[bc,1,u],[bc,5,5e3],[bc,15,15e3],[bc,30,3e4],[a,1,c],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,l],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,f],[r,2,1728e5],[n,1,h],[e,1,d],[e,3,7776e6],[t,1,g]];function s(e,n,r){var i=Math.abs(n-e)/r,a=ku((function(t){return t[2]})).right(o,i);if(a===o.length)return t.every(Eu(e/g,n/g,r));if(0===a)return _c.every(Math.max(Eu(e,n,r),1));var s=o[i/o[a-1][2]<o[a][2]/i?a-1:a],u=s[0],c=s[1];return u.every(c)}return[function(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0],e=i[1]}var a=n&&"function"==typeof n.range?n:s(t,e,n),o=a?a.range(t,+e+1):[];return r?o.reverse():o},s]}var Dc=Pc(F,Lc,v,A,Cc,Oc),Nc=Dc[0],zc=Dc[1],Fc=Pc(N,kc,S,P,Ec,Tc),jc=Fc[0],Bc=Fc[1];function Xc(t){return new Date(t)}function $c(t){return t instanceof Date?+t:+new Date(+t)}function Uc(t,e,n,r,i,a,o,s,u,c){var l=Bu(),f=l.invert,h=l.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),_=c("%B"),m=c("%Y");function b(t){return(u(t)<t?d:s(t)<t?g:o(t)<t?p:a(t)<t?v:r(t)<t?i(t)<t?y:x:n(t)<t?_:m)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,$c)):h().map(Xc)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?b:c(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(cc(n,t)):l},l.copy=function(){return Fu(l,Uc(t,e,n,r,i,a,o,s,u,c))},l}function Yc(){return uu.apply(Uc(jc,Bc,N,kc,S,P,Ec,Tc,bc,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vc(){return uu.apply(Uc(Nc,zc,F,Lc,v,A,Cc,Oc,bc,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gc(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var r={linear:ic,log:uc,_log:yc,time:Yc,utc:Vc}[t]();return r.type=t,/_?log/.test(t)&&r.clamp(!0),r.range([e,n])}var Hc={getXScale:function(t,e,n,r){var i=this,a=i.scale.zoom||Gc(i.axis.getAxisType("x"),t,e);return i.getCustomizedScale(n?a.domain(n):a,r)},getYScale:function(t,e,n,r){var i=Gc(this.axis.getAxisType(t),e,n);return r&&i.domain(r),i},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),r=e?n?"subY2":"subY":n?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,r=e||function(){return n.axis.x.tickOffset()},i=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var a in t)i[a]=t[a];return i.orgDomain=function(){return t.domain()},i.orgScale=function(){return t},n.axis.isCategorized()&&(i.domain=function(e){var n=e;return arguments.length?(t.domain(n),i):[(n=this.orgDomain())[0],n[1]+1]}),i},updateScales:function(t,e){void 0===e&&(e=!0);var n=this,r=n.axis,i=n.config,a=n.format,o=n.org,s=n.scale,u=n.state,c=u.width,l=u.height,f=u.width2,h=u.height2;if(u.hasAxis){var d,g=i.axis_rotated,p=n.getResettedPadding(1),v={x:g?p:0,y:g?0:l,subX:g?1:0,subY:g?0:h},y={x:g?l:c,y:g?c:p,subX:g?l:c,subY:g?f:1},x=e&&(null==(d=s.x)?void 0:d.orgDomain()),_=e&&o.xDomain;s.x=n.getXScale(v.x,y.x,x,(function(){return r.x.tickOffset()})),s.subX=n.getXScale(v.x,y.x,_,(function(t){return t%1?0:r.subX.tickOffset()})),a.xAxisTick=r.getXAxisTickFormat(),a.subXAxisTick=r.getXAxisTickFormat(!0),r.setAxis("x",s.x,i.axis_x_tick_outer,t),i.subchart_show&&r.setAxis("subX",s.subX,i.axis_x_tick_outer,t),s.y=n.getYScale("y",v.y,y.y,s.y?s.y.domain():i.axis_y_default),s.subY=n.getYScale("y",v.subY,y.subY,s.subY?s.subY.domain():i.axis_y_default),r.setAxis("y",s.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(s.y2=n.getYScale("y2",v.y,y.y,s.y2?s.y2.domain():i.axis_y2_default),s.subY2=n.getYScale("y2",v.subY,y.subY,s.subY2?s.subY2.domain():i.axis_y2_default),r.setAxis("y2",s.y2,i.axis_y2_tick_outer,t))}else null==n.updateArc||n.updateArc()},xx:function(t){var e=this.config,n=this.scale,r=n.x,i=n.zoom,a=e.zoom_enabled&&i?i:r;return t?a(Pa(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,r=e.config,i=e.scale,a=i.x,o=i.zoom,s=r.zoom_enabled&&o?o:a,u=e.getBaseValue(t);return n.isTimeSeries()?u=mo.call(e,u):n.isCategorized()&&Na(u)&&(u=r.axis_x_categories.indexOf(u)),Math.ceil(s(u))},yv:function(t){var e=this.scale,n=e.y,r=e.y2,i=t.axis&&"y2"===t.axis?r:n;return Math.ceil(i(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function Wc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function qc(t){this._context=t}function Zc(t){return new qc(t)}function Kc(){}function Jc(t){this._context=t}function Qc(t){return new Jc(t)}function tl(t){this._context=t}function el(t){return new tl(t)}function nl(t,e){this._basis=new qc(t),this._beta=e}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jc.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var rl=function t(e){function n(t){return 1===e?new qc(t):new nl(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function il(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function al(t,e){this._context=t,this._k=(1-e)/6}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:il(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ol=function t(e){function n(t){return new al(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sl(t,e){this._context=t,this._k=(1-e)/6}sl.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ul=function t(e){function n(t){return new sl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cl(t,e){this._context=t,this._k=(1-e)/6}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ll=function t(e){function n(t){return new cl(t,e)}return n.tension=function(e){return t(+e)},n}(0),fl=Math.abs,hl=Math.atan2,dl=Math.cos,gl=Math.max,pl=Math.min,vl=Math.sin,yl=Math.sqrt,xl=1e-12,_l=Math.PI,ml=_l/2,bl=2*_l;function wl(t){return t>1?0:t<-1?_l:Math.acos(t)}function Tl(t){return t>=1?ml:t<=-1?-ml:Math.asin(t)}function Al(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>xl){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>xl){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function El(t,e){this._context=t,this._alpha=e}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Sl=function t(e){function n(t){return e?new El(t,e):new al(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function kl(t,e){this._context=t,this._alpha=e}kl.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ml=function t(e){function n(t){return e?new kl(t,e):new sl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ol(t,e){this._context=t,this._alpha=e}Ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rl=function t(e){function n(t){return e?new Ol(t,e):new cl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Cl(t){return t<0?-1:1}function Il(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return(Cl(a)+Cl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function Ll(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Pl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Dl(t){this._context=t}function Nl(t){this._context=new zl(t)}function zl(t){this._context=t}function Fl(t){return new Dl(t)}function jl(t){return new Nl(t)}function Bl(t){this._context=t}function Xl(t){var e,n,r=t.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function $l(t){return new Bl(t)}function Ul(t){this._context=t}function Yl(t){return new Ul(t)}function Vl(t){this._context=t}function Gl(t){return new Vl(t)}function Hl(t,e){this._context=t,this._t=e}function Wl(t){return new Hl(t,.5)}function ql(t){return new Hl(t,0)}function Zl(t){return new Hl(t,1)}Dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pl(this,this._t0,Ll(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Pl(this,Ll(this,n=Il(this,t,e)),n);break;default:Pl(this,this._t0,n=Il(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Nl.prototype=Object.create(Dl.prototype)).point=function(t,e){Dl.prototype.point.call(this,e,t)},zl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},Bl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Xl(t),i=Xl(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Ul.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Hl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Kl={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,r={type:{},indices:{},pos:{}};if(["bar","candlestick","line","area"].forEach((function(e){var n=uo(/^(bubble|scatter)$/.test(e)?"line":e);if(t.hasType(e)||t.hasTypeOf(n)||"line"===e&&(t.hasType("bubble")||t.hasType("scatter"))){var i=t.getShapeIndices(t["is"+n+"Type"]),a=t["generateDraw"+n];r.indices[e]=i,r.type[e]=a?a.bind(t)(i,!1):void 0}})),!t.hasArcType()||n){var i=n?t.radarCircleX:e?t.circleY:t.circleX,a=n?t.radarCircleY:e?t.circleX:t.circleY;r.pos={xForText:t.generateXYForText(r.indices,!0),yForText:t.generateXYForText(r.indices,!1),cx:(i||function(){}).bind(t),cy:(a||function(){}).bind(t)}}return r},getShapeIndices:function(t){var e=this,n=e.config,r=n.data_xs,i=Ga(r),a={},o=i?{}:0;return i&&fo(Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){o[t]=0,a[t]={}})),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach((function(t){for(var e,i=(t.id in r?r[t.id]:""),s=i?a[i]:a,u=0;e=n.data_groups[u];u++)if(!(e.indexOf(t.id)<0))for(var c,l=0;c=e[l];l++)if(c in s){s[t.id]=s[c];break}Fa(s[t.id])&&(s[t.id]=i?o[i]++:o++,s.__max__=(i?o[i]:o)-1)})),a},getIndices:function(t,e){var n=this,r=n.config,i=r.data_xs,a=r.bar_indices_removeNull,o=e.id,s=e.index;if(n.isBarType(o)&&a){var u={};return n.getAllValuesOnIndex(s,!0).forEach((function(t,e){u[t.id]=e,u.__max__=e})),u}return Ga(i)?t[i[o]]:t},getIndicesMax:function(t){return Ga(this.config.data_xs)?Object.keys(t).map((function(e){return t[e].__max__||0})).reduce((function(t,e){return t+e})):t.__max__},getShapeX:function(t,e,n){var r=this,i=r.config,a=r.scale,o=n?a.subX:a.zoom||a.x,s=i.bar_padding,u=function(t,e){return t+e},c=Ya(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return function(n){var i=r.getIndices(e,n,"getShapeX"),a=n.id in i?i[n.id]:0,l=(i.__max__||0)+1,f=0;if(Ga(n.x)){var h=o(n.x,!0);f=c?h-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(u)-c:h-(za(t)?t:t._$width)*(l/2-a)}return t&&f&&l>1&&s&&(a&&(f+=s*a),l>2?f-=(l-1)*s/2:2===l&&(f-=s/2)),f}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(r){var i=r.value;return za(r)?i=r:n?i=e.getRatio("index",r,!0):e.isBubbleZType(r)?i=e.getBubbleZData(r.value,"y"):e.isBarRangeType(r)&&(i=i[1]),e.getYScaleById(r.id,t)(i)}},getShapeYMin:function(t){var e=this,n=e.axis.getId(t),r=e.scale[n].domain()[0],i=e.config["axis_"+n+"_inverted"];return!e.isGrouped(t)&&!i&&r>0?r:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),r=e.isStackNormalized(),i=n.map((function(t){var n=t.values,i={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce((function(t,n){var a=+n.x;return t[a]=n,i[a]=r?e.getRatio("index",n,!0):n.value,t}),{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:i}}));return{indexMapByTargetId:n.reduce((function(t,e,n){return t[e.id]=n,t}),{}),shapeOffsetTargets:i}},getShapeOffset:function(t,e,n){var r=this,i=r.getShapeOffsetData(t),a=i.shapeOffsetTargets,o=i.indexMapByTargetId;return function(t,i){var s=t.id,u=t.value,c=t.x,l=r.getIndices(e,t),f=r.getYScaleById(s,n);if(r.isBarRangeType(t))return f(u[0]);var h=f(r.getShapeYMin(s)),d=+c,g=h;return a.filter((function(t){return t.id!==s})).forEach((function(t){var e=t.id,n=t.rowValueMapByXValue,r=t.rowValues,a=t.values;if(l[e]===l[s]&&o[e]<o[s]){var c,p=r[i];p&&+p.x===d||(p=n[d]),(null==(c=p)?void 0:c.value)*u>=0&&za(a[d])&&(g+=f(a[d])-h)}})),g}},getBarW:function(t,e,n){var r=this,i=r.config,a=r.org,o=r.scale,s=r.getMaxDataCount(),u="bar"===t&&i.data_groups.length,c=t+"_width",l=o.zoom&&!r.axis.isCategorized()?a.xDomain.map((function(t){return o.zoom(t)})).reduce((function(t,e){return Math.abs(t)+e}))/s:e.tickInterval(s),f=function(t){var e=t?i[c][t]:i[c],r=t?e.ratio:i[c+"_ratio"],a=t?e.max:i[c+"_max"],o=za(e)?e:n?l*r/n:0;return a&&o>a?a:o},h=f();return!u&&Ya(i[c])&&(h={_$width:h,_$total:[]},r.filterTargetsToShow(r.data.targets).forEach((function(t){i[c][t.id]&&(h[t.id]=f(t.id),h._$total.push(h[t.id]||h._$width))}))),h},getShapeByIndex:function(t,e,n){var r=this.$el,i=Pa(e)?"-"+e:"",a=r[t];return a=a&&!a.empty()?a.filter((function(t){return!n||t.id===n})).filter((function(t){return!Pa(e)||t.index===e})):(n?r.main.selectAll("."+Zo[t+"s"]+this.getTargetSelectorSuffix(n)):r.main).selectAll("."+Zo[t]+i)},isWithinShape:function(t,e){var n,r=this,i=In(t);return r.isTargetToShow(e.id)?null!=r.hasValidPointType&&r.hasValidPointType(t.nodeName)?n=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(n=!i.classed(Zo.bar)||r.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:Zc,"basis-closed":Qc,"basis-open":el,bundle:rl,cardinal:ol,"cardinal-closed":ul,"cardinal-open":ll,"catmull-rom":Sl,"catmull-rom-closed":Ml,"catmull-rom-open":Rl,"monotone-x":Fl,"monotone-y":jl,natural:$l,"linear-closed":Yl,linear:Gl,step:Wl,"step-after":Zl,"step-before":ql}[e]},getInterpolateType:function(t){var e=this,n=e.config,r=n.spline_interpolation_type,i=e.isInterpolationType(r)?r:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar:function(t){var e=eo(this.state.event,t),n=to(t),r=n[0],i=n[1],a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}},Jl={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,r=t.$el,i=n?e.axis_y2_axes.length:0,a=Pa(e.padding_top)?e.padding_top:0;return r.title&&r.title.node()&&(a+=t.getTitlePadding()),i&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*i),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,r=e.axis_rotated?"y":"x",i=n?e["axis_"+r+"_axes"].length:0;return(Pa(e.padding_bottom)?e.padding_bottom:0)+(i?t.getHorizontalAxisHeight(r)*i:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=n.axis_rotated,a=i?"x":"y",o=r?n["axis_"+a+"_axes"].length:0,s=r?e.getAxisWidthByAxisId(a,t):0;return(Pa(n.padding_left)?n.padding_left:r&&i?n.axis_x_show?Math.max(Xa(s),40):1:!r||n.axis_y_show&&!n.axis_y_inner?Xa(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state.hasAxis,i=e.state.isLegendRight?e.getLegendWidth()+20:0,a=r?n.axis_y2_axes.length:0,o=r?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Pa(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+i:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(Xa(o)+i,s):Math.max(2+i+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e="offset"+uo(t),n=this.$el.chart.node(),r=0;r<30&&n&&"BODY"!==n.tagName;){try{r=n.getBoundingClientRect()[t]}catch(t){e in n&&(r=n[e])}n=n.parentNode}var i=Pn.body[e];return r>i&&(r=i),r},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,r=e.$el,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?Mo.axisX:Mo.axisY,o=r.main.select("."+a).node(),s=o&&i?o.getBoundingClientRect():{right:0},u=r.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e,n=this,r=n.config,i=n.state.hasAxis,a=n.$el;i&&!t&&n.axis.x&&r.axis_rotated&&(null==(e=n.axis.subX)||e.create(a.axis.subX));n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,r=e.current,i=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",r.width).attr("height",r.height),i){var u=s.select("."+Go.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},getResettedPadding:function(t){var e=this.config,n=za(t),r=n?0:{};return!1===e.padding?n||Object.keys(t).forEach((function(n){r[n]=Va(e.data_labels)||!1===e.data_labels||"top"!==n?0:t[n]})):r=t,r},updateSizes:function(t){var e=this,n=e.config,r=e.state,i=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:i?e.getLegendWidth():0,height:i?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=r.isLegendRight||r.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,f=n.subchart_show&&!o?n.subchart_size_height+l:0;r.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:f+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+f+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},r.margin=e.getResettedPadding(r.margin),r.margin2=a?{top:r.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:r.current.height-f-u,right:NaN,bottom:l+u,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},null==e.updateSizeForLegend||e.updateSizeForLegend(s),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=a?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=a?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0);var h=e.hasType("gauge"),d=n.legend_show&&r.isLegendRight;r.arcWidth=r.width-(d?s.width+10:0),r.arcHeight=r.height-(d&&!h?0:10),h&&!n.gauge_fullCircle&&(r.arcHeight+=r.height-e.getPaddingBottomForGauge()),null==e.updateRadius||e.updateRadius(),r.isLegendRight&&o&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}};function Ql(t){return"string"==typeof t?new On([document.querySelectorAll(t)],[document.documentElement]):new On([he(t)],Mn)}var tf={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){this.$el.main.select("."+Eo.chart).append("g").attr("class",Ho.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),r=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select("."+Ho.chartTexts).selectAll("."+Ho.chartText).data(t).attr("class",(function(t){return n(t)+i(t)})).enter().append("g").style("opacity","0").attr("class",n).style("pointer-events","none").append("g").attr("class",r)},updateText:function(){var t=this,e=t.$el,n=t.$T,r=t.config,i=t.getClass("text","index"),a=e.main.selectAll("."+Ho.texts).selectAll("."+Ho.text).data(t.labelishData.bind(t));n(a.exit()).style("fill-opacity","0").remove(),e.text=a.enter().append("text").merge(a).attr("class",i).attr("text-anchor",(function(e){var n=e.value<0;if(t.isCandlestickType(e)){var i=t.getCandlestickData(e);n=!(null!=i&&i._isUp)}return r.axis_rotated?n?"end":"start":"middle"})).style("fill",t.updateTextColor.bind(t)).style("fill-opacity","0").each((function(e,n,r){var i=In(this),a=e.value;if(t.isBubbleZType(e))a=t.getBubbleZData(a,"z");else if(t.isCandlestickType(e)){var o=t.getCandlestickData(e);o&&(a=o.close)}a=t.dataLabelFormat(e.id)(a,e.id,n,r),za(a)?this.textContent=a:Qa(i,a)}))},updateTextColor:function(t){var e,n=this,r=n.config,i=r.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(Na(i))e=i;else if(Wa(i)){e=i[(t.data||t).id]}else Da(i)&&(e=i.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!Da(i)){var o=n.getCandlestickData(t);if(null==o||!o._isUp){var s=r.candlestick_color_down;e=Wa(s)?s[t.id]:s}}return e||a},updateTextBacgroundColor:function(t){var e=this,n=e.$el,r=e.config.data_labels_backgroundColors,i="";if(Na(r)||Wa(r)){var a=Na(r)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=n.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(i="url(#"+o.attr("id")+")")}return i||null},redrawText:function(t,e,n,r){var i=this,a=i.$T,o=io(!0);return i.$el.text.style("fill",i.updateTextColor.bind(i)).attr("filter",i.updateTextBacgroundColor.bind(i)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each((function(n,i){var s=a(this,!(!r||!this.getAttribute("x")),o),u=t.bind(this)(n,i),c=e.bind(this)(n,i);this.childElementCount?s.attr("transform","translate("+u+" "+c+")"):s.attr("x",u).attr("y",c)})),!0},getTextRect:function(t,e){var n=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var i=r.textContent,a=xs+"-"+i.replace(/\W/g,"_"),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",In(r).style("font")).classed(e,!0).text(i).call((function(t){o=ro(t.node())})).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,r=Object.keys(t),i={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&r.push("radar"),r.forEach((function(e){i[e]=n["generateGet"+uo(e)+"Points"](t[e],!1)})),function(t,e){var r=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isCandlestickType(t)&&"candlestick"||n.isRadarType(t)&&"radar"||"line";return a.call(n,i[r](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var r=this.config,i=r.axis_rotated;if(r.data_labels.centered&&this.isBarType(t)){var a=ro(n),o=t.value>=0;if(i){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=t[0][0];if(i.isCandlestickType(e))s?u=null!=(r=i.getCandlestickData(e))&&r._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(s){var c=i.isBarType(e)?4:6;u=t[2][1]+c*(e.value<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;if(null===e.value)if(u>o.width){var l=ro(n).width;u=o.width-l}else u<0&&(u=4);return s&&(u+=i.getCenteredTextPos(e,t,n)),u+i.getTextPos(e.id,"x")},getYForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=a.point_r,c=ro(n),l=e.value,f=3;if(i.isCandlestickType(e))l=i.getCandlestickData(e),s?(r=t[0][0],r+=(t[1][0]-r)/2+f):r=l&&l._isUp?t[2][2]-f:t[2][1]+4*f;else if(s)r=(t[0][0]+t[2][0]+.6*c.height)/2;else if(r=t[2][1],za(u)&&u>5&&(i.isLineType(e)||i.isScatterType(e))&&(f+=a.point_r/2.3),l<0||0===l&&!o.hasPositiveValue&&o.hasNegativeValue)r+=c.height+(i.isBarType(e)?-f:f);else{var h=2*-f;i.isBarType(e)?h=-f:i.isBubbleType(e)&&(h=f),r+=h}if(null===e.value&&!s){var d=c.height;r<d?r=d:r>o.height&&(r=o.height-4)}return s||(r+=i.getCenteredTextPos(e,t,n)),r+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var r=e.$el.arcs.selectAll(n),i=r.filter((function(e){return e.data.id!==t})),a=r.filter((function(e){return e.data.id===t})),o=lo(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&i.each((function(){var t=lo(this),e=In(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,r=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),i=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(Ho.TextOverlapping,r&&i)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){Ql([this,this.previousSibling]).classed(Ho.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function ef(t,e){void 0===t&&(t="left");var n=za(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var nf={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),Qa(e.title.append("text").style("text-anchor",ef(t.title_position)).attr("class",Ho.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,r=t.$el.title;if(r){var i=t.yForTitle.call(t);/g/i.test(r.node().tagName)?r.attr("transform","translate("+ef(e.title_position,n.width)+", "+i+")"):r.attr("x",t.xForTitle.call(t)).attr("y",i)}},xForTitle:function(){var t,e=this,n=e.config,r=e.state.current,i=n.title_position||"left",a=e.getTextRect(e.$el.title,Ho.title).width;return/(right|center)/.test(i)?(t=r.width-a,i.indexOf("right")>=0?t=r.width-a-n.title_padding.right:i.indexOf("center")>=0&&(t=(r.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,Ho.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},rf={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=In(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",Wo.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=t.config,n=t.$el,r=t.state,i=r.hasAxis,a=r.hasRadar;if(e.tooltip_init_show){var o,s,u=!(i&&a);if(null!=(o=t.axis)&&o.isTimeSeries()&&Na(e.tooltip_init_x)){var c,l,f=t.data.targets[0];for(e.tooltip_init_x=mo.call(t,e.tooltip_init_x),c=0;(l=f.values[c])&&l.x-e.tooltip_init_x!=0;c++);e.tooltip_init_x=c}var h=t.data.targets.map((function(n){var r=u?0:e.tooltip_init_x;return t.addName(n.values[r])}));u&&(h=[h[e.tooltip_init_x]]),n.tooltip.html(t.getTooltipHTML(h,null==(s=t.axis)?void 0:s.getXAxisTickFormat(),t.getDefaultValueFormat(),t.color)),e.tooltip_contents.bindto||n.tooltip.style("top",e.tooltip_init_position.top).style("left",e.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return Da(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,r){var i=this,a=i.api,o=i.config,s=i.state,u=["title","name","value"].map((function(t){var e=o["tooltip_format_"+t];return Da(e)?e.bind(a):e})),c=u[0],l=u[1],f=u[2];c=c||e,l=l||function(t){return t},f=f||(i.isStackNormalized()?function(t,e){return(100*e).toFixed(2)+"%"}:n);var h=o.tooltip_order,d=function(t){return i.axis&&i.isBubbleZType(t)?i.getBubbleZData(t.value,"z"):i.getBaseValue(t)},g=i.levelColor?function(t){return i.levelColor(t.value)}:function(t){return r(t)},p=o.tooltip_contents,v=p.template,y=i.mapToTargetIds();if(null===h&&o.data_groups.length){var x=i.orderTargets(i.data.targets).map((function(t){return t.id})).reverse();t.sort((function(t,e){var n=t?t.value:null,r=e?e.value:null;return n>0&&r>0&&(n=t.id?x.indexOf(t.id):null,r=e.id?x.indexOf(e.id):null),n-r}))}else/^(asc|desc)$/.test(h)?t.sort((function(t,e){var n=t?d(t):null,r=e?d(e):null;return"asc"===h?n-r:r-n})):Da(h)&&t.sort(h.bind(a));var _,m,b,w,T,A=i.getTooltipContentTemplate(v),E=t.length;for(T=0;T<E;T++)if((m=t[T])&&(d(m)||0===d(m))){if(Fa(_)){var S=(s.hasAxis||s.hasRadar)&&Ja(c?c(m.x):m.x);_=_o(A[0],{CLASS_TOOLTIP:Wo.tooltip,TITLE:Pa(S)?v?S:'<tr><th colspan="2">'+S+"</th></tr>":""})}if(!m.ratio&&i.$el.arcs&&(m.ratio=i.getRatio("arc",i.$el.arcs.select("path."+So.arc+"-"+m.id).data()[0])),b=[m.ratio,m.id,m.index,t],w=Ja(f.apply(void 0,[d(m)].concat(b))),i.isAreaRangeType(m)){var k=["high","low"].map((function(t){return Ja(f.apply(void 0,[i.getRangedData(m,t)].concat(b)))})),M=k[0],O=k[1];w="<b>Mid:</b> "+w+" <b>High:</b> "+M+" <b>Low:</b> "+O}else if(i.isCandlestickType(m)){var R=["open","high","low","close","volume"].map((function(t){return Ja(f.apply(void 0,[i.getRangedData(m,t,"candlestick")].concat(b)))})),C=R[0],I=R[1],L=R[2],P=R[3],D=R[4];w="<b>Open:</b> "+C+" <b>High:</b> "+I+" <b>Low:</b> "+L+" <b>Close:</b> "+P+(D?" <b>Volume:</b> "+D:"")}else if(i.isBarRangeType(m)){var N=m.value,z=N[0],F=N[1];w=f(z)+" ~ "+f(F)}if(void 0!==w){var j=function(){if(null===m.name)return"continue";var t=Ja(l.apply(void 0,[m.name].concat(b))),e=g(m),n={CLASS_TOOLTIP_NAME:Wo.tooltipName+i.getTargetSelectorSuffix(m.id),COLOR:v||!i.patterns?e:'<svg><rect style="fill:'+e+'" width="10" height="10"></rect></svg>',NAME:t,VALUE:w};if(v&&Wa(p.text)){var r=y.indexOf(m.id);Object.keys(p.text).forEach((function(t){n[t]=p.text[t][r]}))}_+=_o(A[1],n)}();if("continue"===j)continue}}return _+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,r){var i=this,a=i.config,o=i.scale,s=i.state,u=s.width,c=s.height,l=s.current,f=s.isLegendRight,h=s.inputType,d=s.event,g=i.hasType("gauge")&&!a.gauge_fullCircle,p=i.getSvgLeft(!0),v=p+l.width-i.getCurrentPaddingRight(),y=i.getCurrentPaddingLeft(!0),x=eo(d,r),_=x[0],m=x[1];if(i.hasArcType()){"touch"===h||i.hasType("radar")||(m+=g?c:c/2,_+=(u-(f?i.getLegendWidth():0))/2)}else{var b=o.x(t[0].x);a.axis_rotated?(m=b+20,_+=p+100,v-=p):(m-=5,_=p+y+20+(i.scale.zoom?_:b))}_+e+15>v&&(_-=e+y),m+n>l.height&&(m-=g?3*n:n+30);var w={top:m,left:_};return Object.keys(w).forEach((function(t){w[t]<0&&(w[t]=0)})),w},showTooltip:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=n.$el.tooltip,s=r.tooltip_contents.bindto,u=t.filter((function(t){return t&&Pa(n.getBaseValue(t))}));if(o&&0!==u.length&&r.tooltip_show){var c=o.datum(),l=c||{},f=l.width,h=void 0===f?0:f,d=l.height,g=void 0===d?0:d,p=JSON.stringify(t);if(!c||c.current!==p){var v=t.concat().sort()[0].index;Za(r.tooltip_onshow,n.api,t),o.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(c={index:v,current:p,width:h=o.property("offsetWidth"),height:g=o.property("offsetHeight")}),Za(r.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,v)}if(!s){var y,x,_=(null==(y=r.tooltip_position)?void 0:y.bind(n.api))||n.tooltipPosition.bind(n),m=eo(a.event,e),b={x:m[0],y:m[1]},w=null==(x=t.filter(Boolean))?void 0:x.shift();i.x&&w&&"x"in w&&(b.xAxis=i.x(w.x));var T=_(u,h,g,e,b);["top","left"].forEach((function(t){var e=T[t];o.style(t,e+"px"),"left"!==t||c.xPosInPercent||(c.xPosInPercent=e/a.current.width*100)}))}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,r=t.$el.tooltip;e.add((function(){if("block"===r.style("display")){var t=n.current,e=r.datum(),i=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+i);s<0&&(o+=s),r.style("left",o+"px")}}))},hideTooltip:function(t){var e=this,n=e.api,r=e.config,i=e.$el.tooltip;if(i&&"none"!==i.style("display")&&(!r.tooltip_doNotHide||t)){var a=JSON.parse(i.datum().current);Za(r.tooltip_onhide,n,a),i.style("display","none").style("visibility","hidden").datum(null),Za(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n,r=this,i=r.charts,a=r.config;if(null!=(n=r.state.event)&&n.isTrusted&&a.tooltip_linked&&i.length>1){var o=a.tooltip_linked_name;i.filter((function(t){return t!==r.api})).forEach((function(n){var r=n.internal,i=r.config,a=r.$el,s=i.tooltip_linked,u=i.tooltip_linked_name,c=Pn.body.contains(a.chart.node());if(s&&o===u&&c){var l=a.tooltip.data()[0],f=e!==(null==l?void 0:l.index);try{n.tooltip[t&&f?"show":"hide"]({index:e})}catch(t){}}}))}}},af={getTranslate:function(t,e){void 0===e&&(e=0);var n,r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=i.getAxisSize(t)*e),"main"===t)n=$a(o.margin.left),r=$a(o.margin.top);else if("context"===t)n=$a(o.margin2.left),r=$a(o.margin2.top);else if("legend"===t)n=o.margin3.left,r=o.margin3.top;else if("x"===t)n=s?-u:0,r=s?0:o.height+u;else if("y"===t)n=s?0:-u,r=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,r=s?1-u:0;else if("subX"===t)n=0,r=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("polar"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("radar"===t){var c=i.getRadarSize()[0];n=o.width/2-c,r=$a(o.margin.top)}return"translate("+n+", "+r+")"},transformMain:function(t,e){var n=this,r=n.$el.main,i=n.$T,a=null!=e&&e.axisX?e.axisX:i(r.select("."+Mo.axisX),t),o=null!=e&&e.axisY?e.axisY:i(r.select("."+Mo.axisY),t),s=null!=e&&e.axisY2?e.axisY2:i(r.select("."+Mo.axisY2),t);i(r,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),r.select("."+So.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,r=n.config,i=n.state.hasAxis,a=n.$el;n.transformMain(t,e),i&&r.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},of={setTargetType:function(t,e){var n=this,r=n.config,i=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach((function(t){i[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys(Dn).forEach((function(n){var r=Dn[n],i=t.hasType(r,null,!0),a=e.types.indexOf(r);-1===a&&i?e.types.push(r):a>-1&&!i&&e.types.splice(a,1)})),t.setChartElements()},hasType:function(t,e,n){var r,i;void 0===n&&(n=!1);var a=this,o=a.config,s=a.state.current,u=o.data_types,c=e||a.data.targets,l=!1;return!n&&(null==(r=s.types)?void 0:r.indexOf(t))>-1?l=!0:null!=(i=c)&&i.length?c.forEach((function(e){var n=u[e.id];(n===t||!n&&"line"===t)&&(l=!0)})):Object.keys(u).length?Object.keys(u).forEach((function(e){u[e]===t&&(l=!0)})):l=o.data_type===t,l},hasTypeOf:function(t,e,n){var r=this;return void 0===n&&(n=[]),t in zn&&!zn[t].filter((function(t){return-1===n.indexOf(t)})).every((function(t){return!r.hasType(t,e)}))},isTypeOf:function(t,e){var n=Na(t)?t:t.id,r=this.config.data_types[n]||this.config.data_type;return Ha(e)?e.indexOf(r)>=0:r===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=Na(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,zn.Line)},isStepType:function(t){return this.isTypeOf(t,zn.Step)},isSplineType:function(t){return this.isTypeOf(t,zn.Spline)},isAreaType:function(t){return this.isTypeOf(t,zn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,zn.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isPolarType:function(t){return this.isTypeOf(t,"polar")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return"circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||Ha(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)?t.values.filter((function(t){return za(t.value)||!!t.value})):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},sf=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new us,e.cache=new _s;var n=new Jo;e.$el=n.getStore("element"),e.state=n.getStore("state"),e.$T=e.$T.bind(e)}var e=t.prototype;return e.$T=function(t,e,n){var r=this.config,i=this.state,a=r.transition_duration,o=r.subchart_show,s=t;s&&("tagName"in s&&(s=In(s)),s=(!1!==e&&a||e)&&(!i.zooming||i.dragging)&&!i.resizing&&i.rendered&&!o?s.transition(n).duration(a):s);return s},e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Za(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Za(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,r=t.$el;wo(t),n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),!1===e.padding&&(e.axis_x_show=!1,e.axis_y_show=!1,e.axis_y2_show=!1,e.subchart_show=!1),t.initParams();var i={element:e.bindto,classname:"bb"};Wa(e.bindto)&&(i.element=e.bindto.element||"#chart",i.classname=e.bindto.classname||i.classname),r.chart=Da(i.element.node)?e.bindto.element:In(i.element||[]),r.chart.empty()&&(r.chart=In(Pn.body.appendChild(Pn.createElement("div")))),r.chart.html("").classed(i.classname,!0).style("position","relative"),t.initToRender()},e.initToRender=function(t){var e=this,n=e.config,r=e.state,i=e.$el.chart,a=function(){return"none"===i.style("display")||"hidden"===i.style("visibility")},o=n.render.lazy||a(),s=Ln.MutationObserver;if(o&&s&&!1!==n.render.observe&&!t&&new s((function(t,n){a()||(n.disconnect(),r.rendered||e.initToRender(!0))})).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),!o||t){var u=e.convertData(n,e.initWithData);u&&e.initWithData(u),e.afterInit()}},e.initParams=function(){var t=this,e=t,n=e.config,r=e.format,i=e.state,a=n.axis_rotated;if(i.datetimeId="bb-"+ +new Date*io(),t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.hasPointType()&&(t.point=t.generatePoint()),i.hasAxis){t.initClip(),r.extraLineClasses=t.generateExtraLineClass(),r.dataTime=n.data_xLocaltime?Y:G,r.axisTime=n.axis_x_localtime?U:V;var o=t.config.zoom_enabled&&"drag"===t.config.zoom_type;r.defaultAxisTime=function(e){var n=t.scale,i=n.x,a=n.zoom,s=o?a:a&&i.orgDomain().toString()!==a.domain().toString(),u=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return r.axisTime(u)(e)}}i.isLegendRight="right"===n.legend_position,i.isLegendInset="inset"===n.legend_position,i.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,i.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,i.rotatedPadding.top=t.getResettedPadding(i.rotatedPadding.top),i.rotatedPadding.right=a&&!n.axis_x_show?0:30,i.inputType=function(t,e){var n=Ln.DocumentTouch,r=Ln.matchMedia,i=Ln.navigator,a=!1;if(e)if(i&&"maxTouchPoints"in i)a=i.maxTouchPoints>0;else if("ontouchmove"in Ln||n&&Pn instanceof n)a=!0;else if(null!=r&&r("(pointer:coarse)").matches)a=!0;else{var o=i.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(o)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(o)}return(t&&["any-hover:hover","any-pointer:fine"].some((function(t){return null==r?void 0:r("("+t+")").matches}))?"mouse":a&&"touch")||null}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=e.org,s=i.hasAxis,u=n.interaction_enabled,c=e.hasType("polar");s&&(e.axis=e.getAxisInstance(),n.zoom_enabled&&e.initZoom()),e.data.xs={},e.data.targets=e.convertDataToTargets(t),n.data_filter&&(e.data.targets=e.data.targets.filter(n.data_filter.bind(e.api))),n.data_hide&&e.addHiddenTargetIds(!0===n.data_hide?e.mapToIds(e.data.targets):n.data_hide),n.legend_hide&&e.addHiddenLegendIds(!0===n.legend_hide?e.mapToIds(e.data.targets):n.legend_hide),e.updateSizes(),e.updateScales(!0);var l=r.x,f=r.y,h=r.y2,d=r.subX,g=r.subY,p=r.subY2;if(l&&(l.domain(po(e.getXDomain(e.data.targets))),d.domain(l.domain()),o.xDomain=l.domain()),f&&(f.domain(e.getYDomain(e.data.targets,"y")),g.domain(f.domain())),h&&(h.domain(e.getYDomain(e.data.targets,"y2")),p&&p.domain(h.domain())),a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),u&&i.inputType){var v="touch"===i.inputType;a.svg.on(v?"touchstart":"mouseenter",(function(){return Za(n.onover,e.api)})).on(v?"touchend":"mouseleave",(function(){return Za(n.onout,e.api)}))}n.svg_classname&&a.svg.attr("class",n.svg_classname);var y=Da(n.color_tiles)&&e.patterns;(s||y||n.data_labels_backgroundColors||c)&&(a.defs=a.svg.append("defs"),s&&["id","idXAxis","idYAxis","idGrid"].forEach((function(t){e.appendClip(a.defs,i.clip[t])})),e.generateDataLabelBackgroundColorFilter(),y&&e.patterns.forEach((function(t){return a.defs.append((function(){return t.node}))}))),e.updateSvgSize(),e.bindResize();var x,_=a.svg.append("g").classed(Eo.main,!0).attr("transform",e.getTranslate("main"));(a.main=_,n.subchart_show&&e.initSubchart(),n.tooltip_show&&e.initTooltip(),n.title_text&&e.initTitle(),n.legend_show&&e.initLegend(),n.data_empty_label_text&&_.append("text").attr("class",Ho.text+" "+Eo.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),s&&(n.regions.length&&e.initRegion(),n.clipPath||e.axis.init()),_.append("g").attr("class",Eo.chart).attr("clip-path",i.clip.path),e.callPluginHook("$init"),s)&&(u&&(null==e.initEventRect||e.initEventRect()),e.initGrid(),n.clipPath&&(null==(x=e.axis)||x.init()));if(e.initChartElements(),e.updateTargets(e.data.targets),e.updateDimension(),Za(n.oninit,e.api),e.setBackground(),e.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),n.data_onmin||n.data_onmax){var m=e.getMinMaxData();Za(n.data_onmin,e.api,m.min),Za(n.data_onmax,e.api,m.max)}n.tooltip_show&&e.initShowTooltip(),i.rendered=!0},e.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,r=e.hasRadar,i=[];if(n)["bar","bubble","candlestick","line"].forEach((function(e){var n=uo(e);("line"===e&&t.hasTypeOf(n)||t.hasType(e))&&i.push(n)}));else{var a=t.hasType("polar");r||i.push("Arc","Pie"),t.hasType("gauge")?i.push("Gauge"):r?i.push("Radar"):a&&i.push("Polar")}i.forEach((function(e){t["init"+e]()})),Ga(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,r=t.defs,i=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,f=t.bar,h=t.candlestick,d=t.line,g=t.area,p=t.text;this.api.$={chart:e,svg:n,defs:r,main:i,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:f},candlestick:h,line:{lines:d,areas:g},text:{texts:p}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,r=t.$el.svg;if(Ga(e)){var i=r.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?i.attr("href",e.imgUrl):e.color&&i.style("fill",e.color).attr("clip-path",n.clip.path),i.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=e.state,r=n.hasAxis,i=n.hasRadar,a=function(n){return e["updateTargetsFor"+n](t.filter(e["is"+n+"Type"].bind(e)))};if(e.updateTargetsForText(t),r)["bar","candlestick","line"].forEach((function(t){var n=uo(t);("line"===t&&e.hasTypeOf(n)||e.hasType(t))&&a(n)})),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t);else if(e.hasArcType(t)){var o="Arc";i?o="Radar":e.hasType("polar")&&(o="Polar"),a(o)}(e.hasType("bubble")||e.hasType("scatter"))&&(null==e.updateTargetForCircle||e.updateTargetForCircle()),e.showTargets()},e.showTargets=function(){var t=this,e=t.$el.svg;(0,t.$T)(e.selectAll("."+Eo.target).filter((function(e){return t.isTargetToShow(e.id)}))).style("opacity",null)},e.getWithOption=function(t){var e={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(e).forEach((function(n){var r=e[n];Na(r)&&(r=e[r]),e[n]=qa(t,"with"+n,r)})),e},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},e.bindResize=function(){var t=this,e=t.config,n=t.state,r=function(){var t,e=[],n=function(){n.clear(),t=ms((function(){e.forEach((function(t){return t()}))}),200)};return n.clear=function(){t&&(bs(t),t=null)},n.add=function(t){return e.push(t)},n.remove=function(t){return e.splice(e.indexOf(t),1)},n}(),i=[];i.push((function(){return Za(e.onresize,t,t.api)})),e.resize_auto&&i.push((function(){n.resizing=!0,t.api.flush(!1)})),i.push((function(){Za(e.onresized,t,t.api),n.resizing=!1})),i.forEach((function(t){return r.add(t)})),t.resizeFunction=r,Ln.addEventListener("resize",t.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.config.plugins.forEach((function(n){"$beforeInit"===t&&(n.$$=e,e.api.plugins.push(n)),n[t].apply(n,r)}))},t}();function uf(t){var e,n,r,i=this.config,a=function(){var t=n.shift();return t&&e&&Ya(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(i).forEach((function(o){e=t,n=o.split("_"),r=a(),ja(r)&&(i[o]=r)}))}so(sf.prototype,[Ns,zs,Fs,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},Hs,gu,pu,Gs,yu,xu,_u,Hc,Kl,Jl,tf,nf,rf,af,of]);var cf={resize:function(t){var e=this.internal,n=e.config,r=e.state;r.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,r.resizing=!0,this.flush(!1),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state,r=e.$el.zoomResetBtn;if(n.rendered){var i,a,o;if(n.resizing)null==(a=e.brush)||a.updateResize();else null==(o=e.axis)||o.setOrient();null==(i=r)||i.style("display","none"),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())}else e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,r=n.chart,i=n.svg;if(Ga(e))for(var a in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),i.select("*").interrupt(),e.resizeFunction.clear(),Ln.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).style("position",null).selectChildren().remove(),Object.keys(this).forEach((function(n){"internal"===n&&Object.keys(e).forEach((function(t){e[t]=null})),t[n]=null,delete t[n]})),this)this[a]=function(){};return null},config:function(t,e,n){var r,i=this.internal.config,a=null==t?void 0:t.replace(/\./g,"_");return a in i&&(ja(e)?(i[a]=e,r=e,n&&this.flush()):r=i[a]),r}};function lf(t){var e=this.internal.data.targets;if(!Fa(t)){var n=Ha(t)?t:[t];return e.filter((function(t){return n.some((function(e){return e===t.id}))}))}return e}so(lf,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var r=this.data(t);Ha(r)&&(n=[],r.forEach((function(t){var r=t.values.map((function(t){return t.value}));e?n=n.concat(r):n.push(r)})))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});function ff(t,e,n){var r,i,a=e||n,o=a.width,s=a.height,u=new XMLSerializer,c=t.cloneNode(!0),l=(r=co(Pn.styleSheets),i=[],r.forEach((function(t){try{t.cssRules&&t.cssRules.length&&(i=i.concat(co(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}})),i).filter((function(t){return t.cssText})).map((function(t){return t.cssText}));c.setAttribute("xmlns",Ie.xhtml);var f=u.serializeToString(c),h=Pn.createElement("style");h.appendChild(Pn.createTextNode(l.join("\n")));var d=u.serializeToString(h),g=('<svg xmlns="'+Ie.svg+'" width="'+o+'" height="'+s+'" \n\t\tviewBox="0 0 '+n.width+" "+n.height+'" \n\t\tpreserveAspectRatio="'+(!1===(null==e?void 0:e.preserveAspectRatio)?"none":"xMinYMid meet")+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+d+"\n\t\t\t\t"+f.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))}var hf={export:function(t,e){var n=this,r=this.internal,i=r.state,a=r.$el.chart,o=i.current,s=o.width,u=o.height,c=go({width:s,height:u,preserveAspectRatio:!0,mimeType:"image/png"},t),l=ff(a.node(),c,{width:s,height:u});if(e&&Da(e)){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){var t=Pn.createElement("canvas"),r=t.getContext("2d");t.width=c.width||s,t.height=c.height||u,r.drawImage(f,0,0),e.bind(n)(t.toDataURL(c.mimeType))},f.src=l}return l}},df={focus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(Fo.focused,!0).classed(Fo.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(r),e.hasType("gauge")&&e.markOverlapped(t,e,"."+Po.gaugeValue)),e.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return r.indexOf(t)<0}))},defocus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e))).classed(Fo.focused,!1).classed(Fo.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(r),e.hasType("gauge")&&e.undoMarkOverlapped(e,"."+Po.gaugeValue)),e.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter((function(t){return r.indexOf(t)<0})),n.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,r=e.state,i=e.$el,a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a)).classed(Fo.focused,!1).classed(Fo.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(a)).filter((function(){return In(this).classed(Fo.legendItemFocused)})).classed(Fo.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},gf={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach((function(e){n.data_classes[e]=t.classes[e]})),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach((function(e){n.data_axes[e]=t.axes[e]})),"colors"in t&&Object.keys(t.colors).forEach((function(e){n.data_colors[e]=t.colors[e]})),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),(function(){Ln.requestIdleCallback((function(){return e.loadFromArgs(t)}))})):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,r=t||{};Ha(r)?r={ids:r}:Na(r)&&(r={ids:[r]});var i=n.mapToTargetIds(r.ids);n.unload(i,(function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(i),r.done&&r.done.call(e)}))}};function pf(t,e,n){var r=this,i=this.internal,a=i.mapToTargetIds(e),o=i.state.hiddenTargetIds.map((function(t){return a.indexOf(t)>-1&&t})).filter(Boolean);i.state.toggling=!0,i[(t?"remove":"add")+"HiddenTargetIds"](a);var s=i.$el.svg.selectAll(i.selectorTargets(a)),u=t?null:"0";t&&o.length&&(s.style("display",null),Za(i.config.data_onshown,this,o)),i.$T(s).style("opacity",u,"important").call(Ka,(function(){t||0!==o.length||(s.style("display","none"),Za(i.config.data_onhidden,r,a)),s.style("opacity",u)})),n.withLegend&&i[(t?"show":"hide")+"Legend"](a),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.state.toggling=!1}var vf={show:function(t,e){void 0===e&&(e={}),pf.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),pf.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var r=this.internal,i={show:[],hide:[]};r.mapToTargetIds(t).forEach((function(t){return i[r.isTargetToShow(t)?"hide":"show"].push(t)})),i.show.length&&this.show(i.show,e),i.hide.length&&setTimeout((function(){return n.hide(i.hide,e)}),0)}},yf={show:function(t){var e,n,r=this.internal,i=r.config,a=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=r.getYScaleById(o.id)(o.value);r.isMultipleX()?n=[r.scale.x(o.x),s]:(i.tooltip_grouped||(n=[0,s]),e=Pa(o.index)?o.index:r.getIndexByX(o.x))}else ja(t.x)?e=r.getIndexByX(t.x):ja(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach((function(t){r.dispatchEvent(t,e,n)}))},hide:function(){var t=this.internal,e=t.state.inputType,n=t.$el.tooltip,r=null==n?void 0:n.datum();if(r){var i=JSON.parse(r.current)[0].index;("mouse"===e?["mouseout"]:["touchend"]).forEach((function(e){t.dispatchEvent(e,i)}))}"touch"===e&&t.callOverOutForTouch(),t.hideTooltip(!0),t.hideGridFocus(),null==t.unexpandCircles||t.unexpandCircles(),t.expandBarTypeShapes(!1)}},xf=function t(e){this.plugins=[],this.internal=void 0;var n=new sf(this);this.internal=n,function t(e,n,r){Object.keys(e).forEach((function(i){var a=Da(e[i]),o=n!==r,s=Ga(e[i]),u=s&&Object.keys(e[i]).length>0;n[i]=a&&(!o&&u||o)?e[i].bind(r):s&&!a?{}:e[i],u&&t(e[i],n[i],r)}))}(t.prototype,this,this),uf.call(n,e),n.beforeInit(),n.init()};function _f(t,e,n){var r=t.config,i="axis_y_"+e,a="axis_y2_"+e;ja(n)&&(Ya(n)?(Pa(n.x)&&(r["axis_x_"+e]=n.x),Pa(n.y)&&(r[i]=n.y),Pa(n.y2)&&(r[a]=n.y2)):(r[i]=n,r[a]=n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function mf(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}so(xf.prototype,[cf,{color:function(t){return this.internal.color(t)}},{data:lf},hf,df,{legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},gf,vf,{tooltip:yf}]);var bf={labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach((function(e){n.axis.setLabelText(e,t[e])})),n.axis.updateLabels()),["x","y","y2"].forEach((function(t){var r=n.axis.getLabelText(t);r&&(e||(e={}),e[t]=r)})),e},min:function(t){var e=this.internal;return Pa(t)?_f(e,"min",t):mf(e,"min")},max:function(t){var e=this.internal;return arguments.length?_f(e,"max",t):mf(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};ja(t.max)&&e.max(t.max),ja(t.min)&&e.min(t.min)}},wf={axis:bf};function Tf(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}so(Tf,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Af={xgrids:Tf};function Ef(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}so(Ef,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var Sf={ygrids:Ef},kf={groups:function(t){var e=this.internal,n=e.config;return Fa(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function Mf(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}so(Mf,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,r=e.$T,i=t||{},a=qa(i,"classes",[Uo.region]),o=e.$el.main.select("."+Uo.regions).selectAll(a.map((function(t){return"."+t})));return r(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter((function(t){var e=!1;return!t.class||(t.class.split(" ").forEach((function(t){a.indexOf(t)>=0&&(e=!0)})),!e)})),n.regions=o):n.regions=[],o}});var Of={regions:Mf},Rf={x:function(t){var e=this.internal,n=e.axis,r=e.data,i=n.isCustomX()&&n.isCategorized();return Ha(t)&&(i?this.categories(t):(e.updateTargetX(r.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():r.xs},xs:function(t){var e=this.internal;return Wa(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},Cf={flow:function(t){var e,n,r,i,a=this.internal,o=0,s=0;if((t.json||t.rows||t.columns)&&(e=a.convertData(t)),!a.state.redrawing&&e&&bo()){var u=[],c=a.getMaxDataCount(),l=a.convertDataToTargets(e,!0),f=a.axis.isTimeSeries();a.data.targets.forEach((function(t){for(var e=!1,n=0;n<l.length;n++)if(t.id===l[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=l[n].values.length;for(var r=0;r<o;r++)l[n].values[r].index=s+r,f||(l[n].values[r].x=s+r);t.values=t.values.concat(l[n].values),l.splice(n,1);break}e||u.push(t.id)})),a.data.targets.forEach((function(t){for(var e=0;e<u.length;e++)if(t.id===u[e]){s=t.values[t.values.length-1].index+1;for(var n=0;n<o;n++)t.values.push({id:t.id,index:s+n,x:f?a.getOtherTargetX(s+n):s+n,value:null})}})),a.data.targets.length&&l.forEach((function(t){for(var e=[],n=a.data.targets[0].values[0].index;n<s;n++)e.push({id:t.id,index:n,x:f?a.getOtherTargetX(n):n,value:null});t.values.forEach((function(t){t.index+=s,f||(t.x+=s)})),t.values=e.concat(t.values)})),a.data.targets=a.data.targets.concat(l);var h=a.data.targets[0],d=h.values[0];ja(t.to)?(o=0,i=f?mo.call(a,t.to):t.to,h.values.forEach((function(t){t.x<i&&o++}))):ja(t.length)&&(o=t.length),c?1===c&&f&&(r=(h.values[h.values.length-1].x-d.x)/2,n=[new Date(+d.x-r),new Date(+d.x+r)]):(r=f?h.values.length>1?h.values[h.values.length-1].x-d.x:d.x-a.getXDomain(a.data.targets)[0]:1,n=[d.x-r,d.x]),n&&a.updateXDomain(null,!0,!0,!1,n),a.updateTargets(a.data.targets),a.redraw({flow:{index:d.index,length:o,duration:Pa(t.duration)?t.duration:a.config.transition_duration,done:t.done,orgDataCount:c},withLegend:!0,withTransition:c>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function If(t){return t}var Lf=1e-6;function Pf(t){return"translate("+t+",0)"}function Df(t){return"translate(0,"+t+")"}function Nf(t){return function(e){return+t(e)}}function zf(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function Ff(){return!this.__axis}function jf(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",f=1===t||3===t?Pf:Df;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):If:i,p=Math.max(a,0)+s,v=e.range(),y=+v[0]+u,x=+v[v.length-1]+u,_=(e.bandwidth?zf:Nf)(e.copy(),u),m=h.selection?h.selection():h,b=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,e).order(),T=w.exit(),A=w.enter().append("g").attr("class","tick"),E=w.select("line"),S=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),E=E.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),S=S.merge(A.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==m&&(b=b.transition(h),w=w.transition(h),E=E.transition(h),S=S.transition(h),T=T.transition(h).attr("opacity",Lf).attr("transform",(function(t){return isFinite(t=_(t))?f(t+u):this.getAttribute("transform")})),A.attr("opacity",Lf).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:_(t))+u)}))),T.remove(),b.attr("d",4===t||2===t?o?"M"+c*o+","+y+"H"+u+"V"+x+"H"+c*o:"M"+u+","+y+"V"+x:o?"M"+y+","+c*o+"V"+u+"H"+x+"V"+c*o:"M"+y+","+u+"H"+x),w.attr("opacity",1).attr("transform",(function(t){return f(_(t)+u)})),E.attr(l+"2",c*a),S.attr(l,c*p).text(g),m.filter(Ff).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),m.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(u=+t,h):u},h}function Bf(t){return jf(1,t)}function Xf(t){return jf(2,t)}function $f(t){return jf(3,t)}function Uf(t){return jf(4,t)}var Yf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=Gc(),n=t.config,r=t.params;this.owner=t,this.config=n,this.scale=e,!n.noTransition&&r.config.transition_duration||(n.withoutTransition=!0),n.range=this.scaleExtent((r.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call((function(t){try{var n=t.node().getBBox(),r=n.width,i=n.height;r&&i&&(e.w=r,e.h=i)}catch(t){}finally{t.text("")}})),this.getSizeFor1Char=function(){return e},e};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate("+(t+e.tickOffset)+",0)"}:function(t){return"translate(0,"+t+")"};return function(t,e){t.attr("transform",(function(t){return n(Math.ceil(e(t)))}))}},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,r=t.domain(),i=r[0],a=r[1],o=[];if(e&&n)for(var s=Math.round(i);s<=a;)o.push(s),s+=n;else if(t.ticks){var u=this.config.tickArguments;if("log"!==t.type||u)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var c=Gc("_log").domain([i>0?i:1,a]).range(t.range());o=c.ticks();for(var l=a.toFixed().length;o.length>15;l--)o=c.ticks(l);o.splice(0,1,i),o.splice(o.length-1,1,a)}o=o.map((function(t){return Na(t)&&za(t)&&!isNaN(t)&&Math.round(10*t)/10||t}))}else{for(var f=Math.ceil(i);f<a;f++)o.push(f);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,r=e?e(n):n;return ja(r)?r:""},e.transitionise=function(t){var e=this.config,n=t;if(e.withoutTransition)n=t.interrupt();else if(e.transition||!this.owner.params.noTransition)try{n=t.transition(e.transition)}catch(t){}return n},t}(),Vf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new Yf(this)}var e=t.prototype;return e.create=function(t){var e=this,n=this.config,r=this.helper,i=this.params,a=r.scale,o=n.orient,s=this.splitTickText.bind(this),u=/^(left|right)$/.test(o),c=/^(top|bottom)$/.test(o),l=r.getTickTransformSetter(c?"x":"y"),f=l===r.axisX?"y":"x",h=/^(top|left)$/.test(o)?-1:1,d=i.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():r.scaleExtent((i.orgXScale||a).range());var g,p=n,v=p.innerTickSize,y=p.tickLength,x=p.range,_=i.id,m=_&&/^(x|y|y2)$/.test(_)?i.config["axis_"+_+"_tick_text_position"]:{x:0,y:0},b="subX"===_?"subchart_axis_x":"axis_"+_,w=i.config[b+"_show"],T=!!w&&i.config[b+"_tick_show"],A=!!w&&i.config[b+"_tick_text_show"];t.each((function(){var t=In(this),p=this.__chart__||a,_=r.copyScale();g=t,this.__chart__=_,n.tickOffset=i.isCategory?Math.ceil((_(1)-_(0))/2):0;var b=t.selectAll(".domain").data([0]);if(b.enter().append("path").attr("class","domain").merge(b).attr("d",(function(){var t=n.outerTickSize*h;return c?"M"+x[0]+","+t+"V0H"+x[1]+"V"+t:"M"+t+","+x[0]+"H0V"+x[1]+"H"+t})),T||A){var w=n.tickValues||r.generateTicks(_,u),E=t.selectAll(".tick").data(w,_),S=E.enter().insert("g",".domain").attr("class","tick"),k=E.exit().remove();E=S.merge(E),T&&S.append("line"),A&&S.append("text");var M=Yf.getSizeFor1Char(E),O=[],R=E.select("text").selectAll("tspan").data((function(t,e){var n=i.tickMultiline?s(t,_,w,u,M.w):Ha(r.textFormatted(t))?r.textFormatted(t).concat():[r.textFormatted(t)];return O[e]=n.length,n.map((function(t){return{index:e,splitted:t}}))}));R.exit().remove(),(R=R.enter().append("tspan").merge(R).text((function(t){return t.splitted}))).attr("x",c?0:y*h).attr("dx",function(){var t=0;return/(top|bottom)/.test(o)&&d&&(t=8*Math.sin(Math.PI*(d/180))*("top"===o?-1:1)),t+(m.x||0)}()).attr("dy",(function(t,e){var n=0;return"top"!==o&&(n=M.h,0===e&&(n=u?-((O[t.index]-1)*(M.h/2)-3):0===m.y?".71em":0)),za(n)&&m.y?n+m.y:n||".71em"}));var C=E.select("line"),I=E.select("text");if(S.select("line").attr(f+"2",v*h),S.select("text").attr(f,y*h),e.setTickLineTextPosition(C,I),i.tickTitle){var L=I.select("title");(L.empty()?I.append("title"):L).text((function(t){return i.tickTitle[t]}))}if(_.bandwidth){var P=_,D=P.bandwidth()/2;_=p=function(t){return P(t)+D}}else p.bandwidth?p=_:l(k,_);E=i.owner.state.flowing?r.transitionise(E):i.owner.$T(E),l(S,p),l(E.style("opacity",null),_)}})),this.g=g},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,r=n,i=r.innerTickSize,a=r.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?i:0},e.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),r=this.config,i=r.innerTickSize,a=r.orient,o=r.tickLength,s=r.tickOffset,u=this.params.tickTextRotate,c=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?e[t>0?0:1]:"middle"},l=function(t){return t?"rotate("+t+")":null},f=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};switch(a){case"bottom":t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"top":t.attr("x2",0).attr("y2",-i),e.attr("x",0).attr("y",2*-f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"left":t.attr("x2",-i).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end");break;case"right":t.attr("x2",i).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start")}},e.splitTickText=function(t,e,n,r,i){var a=this.params,o=this.helper.textFormatted(t),s=Na(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Ha(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=r?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var r,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),r=n.substr(0,s+1),o=i*r.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this,r=this.config,i=r.outerTickSize,a=r.tickOffset,o=r.tickValues;if(this.params.isCategory)e=2*a;else{e=(this.g.select("path.domain").node().getTotalLength()-2*i)/(t||this.g.selectAll("line").size());var s=o?o.map((function(t,e,r){var i=e+1;return i<r.length?n.helper.scale(r[i])-n.helper.scale(t):null})).filter(Boolean):[];e=Math.min.apply(Math,s.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length?(t.tickArguments=co(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(Da(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),Gf={getAxisInstance:function(){return this.axis||new Hf(this)}},Hf=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return Mo.axis+" "+Mo["axis"+uo(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||Ga(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,r=e.$el,i=r.main,a=r.axis,o=e.state.clip,s=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach((function(r){var u=t.getAxisClassName(r),c=Mo["axis"+r.toUpperCase()+"Label"];a[r]=i.append("g").attr("class",u).attr("clip-path",(function(){var t=null;return"x"===r?t=o.pathXAxis:"y"===r&&(t=o.pathYAxis),t})).attr("transform",e.getTranslate(r)).style("visibility",n["axis_"+r+"_show"]?null:"hidden"),a[r].append("text").attr("class",c).attr("transform",["rotate(-90)",null]["x"===r?+!s:+s]).style("text-anchor",(function(){return t.textAnchorForAxisLabel(r)})),t.generateAxes(r)}))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,r=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?r?"bottom":"top":r?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this.owner,r=n.config,i=[],a=r["axis_"+t+"_axes"],o=r.axis_rotated;"x"===t?e=o?Uf:$f:"y"===t?e=o?$f:Uf:"y2"===t&&(e=o?Bf:Xf),a.length&&a.forEach((function(r){var a=r.tick||{},o=n.scale[t].copy();r.domain&&o.domain(r.domain),i.push(e(o).ticks(a.count).tickFormat(Da(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))})),this.axesList[t]=i},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,r=e.$el.main,i=e.$T;Object.keys(this.axesList).forEach((function(a){var o=n["axis_"+a+"_axes"],s=e.scale[a].copy(),u=s.range();t.axesList[a].forEach((function(c,l){var f=c.scale().range();u.every((function(t,e){return t===f[e]}))||c.scale().range(u);var h=t.getAxisClassName(a)+"-"+(l+1),d=r.select("."+h.replace(/\s/,"."));d.empty()?d=r.append("g").attr("class",h).style("visibility",n["axis_"+a+"_show"]?null:"hidden").call(c):(o[l].domain&&s.domain(o[l].domain),i(d).call(c.scale(s))),d.attr("transform",e.getTranslate(a,l+1))}))}))},e.setAxis=function(t,e,n,r){var i=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(i.scale.zoom||i.config.subchart_show||i.state.resizing))||r)},e.getAxis=function(t,e,n,r,i){var a,o=this.owner,s=o.config,u=/^(x|subX)$/.test(t),c=u?"x":t,l=u&&this.isCategorized(),f=this.orient[t],h=i?0:o.getAxisTickRotate(c);if(u)a="subX"===t?o.format.subXAxisTick:o.format.xAxisTick;else{var d=s["axis_"+t+"_tick_format"];Da(d)&&(a=d.bind(o.api))}var g=this.tick[c],p=go({outerTick:n,noTransition:r,config:s,id:t,tickTextRotate:h,owner:o},u&&{isCategory:l,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:l&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(p.tickStepSize=s["axis_"+c+"_tick_stepSize"]);var v=new Vf(p).scale(u&&o.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&g&&!Da(g)){var y=mo.bind(o);g=g.map((function(t){return y(t)}))}else!u&&this.isTimeSeriesY()&&(v.ticks(s.axis_y_tick_time_value),g=null);g&&v.tickValues(g),v.tickFormat(a||!u&&o.isStackNormalized()&&function(t){return t+"%"}),l&&(v.tickCentered(s.axis_x_tick_centered),Va(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_"+c+"_tick_count"];return x&&v.ticks(x),v},e.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config,a=i.axis_x_tick_fit,o=i.axis_x_tick_count;if((a||o&&a)&&(n=r.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e)e.tickValues(n);else if(this.x){var s;this.x.tickValues(n),null==(s=this.subX)||s.tickValues(n)}return n},e.getId=function(t){var e=this.owner,n=e.config,r=e.scale,i=n.data_axes[t];return i&&r[i]||(i="y"),i},e.getXAxisTickFormat=function(t){var e,n=this.owner,r=n.config,i=n.format,a=t&&r.subchart_axis_x_tick_format||r.axis_x_tick_format,o=this.isTimeSeries(),s=this.isCategorized();return a?Da(a)?e=a.bind(n.api):o&&(e=function(t){return t?i.axisTime(a)(t):""}):e=o?i.defaultAxisTime:s?n.categoryName:function(t){return t<0?t.toFixed(0):t},Da(e)?function(t){return e.apply(n,s?[t,n.categoryName(t)]:[t])}:e},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],r=e[t+"Axis"];return(Da(n)?n.call(e.api):n)||(r?r.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return Na(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);Na(r)?n["axis_"+t+"_label"]=e:r&&(r.text=e)},e.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),i=Ya(r)&&r.position?r.position:e[+!n],a=function(t){return!!~i.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,r=n.width,i=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-i/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?r/2:r:a.isBottom&&(o=-i),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(r="-0.5em"),r},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(r="start"),r},e.dyForAxisLabel=function(t){var e,n=this.owner,r=n.config,i=r.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=r["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=r.axis_x_height;e=i?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=i?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(r["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this.owner,r=n.config,i=n.state.current,a=n.$el,o=a.svg,s=a.chart,u=i.maxTickWidths[t],c=0;if(e||!r["axis_"+t+"_show"]||0===n.filterTargetsToShow().length)return u.size;if(o){var l=/^y2?$/.test(t),f=n.filterTargetsToShow(n.data.targets),h=n.scale[t].copy().domain(n["get"+(l?"Y":"X")+"Domain"](f,t)),d=h.domain(),g=d[0]===d[1]&&d.every((function(t){return t>0})),p=Ha(u.domain)&&u.domain[0]===u.domain[1]&&u.domain.every((function(t){return t>0}));if(g||p)return u.size;u.domain=d,l||u.ticks.splice(0);var v=this.getAxis(t,h,!1,!1,!0),y=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&y&&v.tickValues(this.generateTickValues(d,y,l?this.isTimeSeriesY():this.isTimeSeries())),l||this.updateXAxisTickValues(f,v);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");v.create(x),x.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;c=Math.max(c,n),l||(u.ticks[e]=n)})),x.remove()}return c>0&&(u.size=c),u.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,r=e.config,i=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&a>0&&a<90){var o=i.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,r=n.axis,i=n.config,a=n.state,o=r.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,f=c.right,h=0,d=u-(o&&i.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y;h=Math.max(h,v-x/2-((d-p)*x+f*x))}}var _=n.filterTargetsToShow(n.data.targets),m=0;if(!o&&i.axis_x_tick_count<=_.length&&_[0].values.length){var b=Gc(n.axis.getAxisType("x"),0,e-h).domain([-1*l,n.getXDomainMax(n.data.targets)+1+f]);m=Math.ceil((b(1)-b(0))/2)}return h+m},e.updateLabels=function(t){var e=this,n=this.owner,r=n.$el.main,i=n.$T,a={x:r.select("."+Mo.axisX+" ."+Mo.axisXLabel),y:r.select("."+Mo.axisY+" ."+Mo.axisYLabel),y2:r.select("."+Mo.axisY2+" ."+Mo.axisY2Label)};Object.keys(a).filter((function(t){return!a[t].empty()})).forEach((function(n){var r=a[n];i(r,t).attr("x",(function(){return e.xForAxisLabel(n)})).attr("dx",(function(){return e.dxForAxisLabel(n)})).attr("dy",(function(){return e.dyForAxisLabel(n)})).text((function(){return e.getLabelText(n)}))}))},e.getPadding=function(t,e,n,r){var i=za(t)?t:t[e];return Pa(i)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",i,r):n},e.generateTickValues=function(t,e,n){var r=t;if(e){var i=Da(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){var a,o=this.isCategorized(),s=i-2,u=t[0],c=t[t.length-1];r=[u];for(var l=0;l<s;l++)a=+u+(c-u)/(s+1)*(l+1),r.push(n?new Date(a):o?Math.round(a):a);r.push(c)}}return n||(r=r.sort((function(t,e){return t-e}))),r},e.generateTransitions=function(t){var e=this.owner,n=e.$el.axis,r=e.$T,i=["x","y","y2","subX"].map((function(e){return r(n[e],t)}));return{axisX:i[0],axisY:i[1],axisY2:i[2],axisSubX:i[3]}},e.redraw=function(t,e,n){var r=this,i=this.owner,a=i.config,o=i.$el,s=e?"0":null;["x","y","y2","subX"].forEach((function(e){var i=r[e],u=o.axis[e];i&&u&&(n||a.transition_duration||(i.config.withoutTransition=!0),u.style("opacity",s),i.create(t["axis"+uo(e)]))})),this.updateAxes()},e.redrawAxis=function(t,e,n,r,i){var a,o,s,u=this,c=this.owner,l=c.config,f=c.scale,h=c.$el,d=!!f.zoom;if(!d&&this.isCategorized()&&0===t.length&&f.x.domain([0,h.axis.x.selectAll(".tick").size()]),f.x&&t.length)d||c.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),l.axis_x_tick_values||this.updateXAxisTickValues(t);else if(this.x){var g;this.x.tickValues([]),null==(g=this.subX)||g.tickValues([])}(l.zoom_rescale&&!r&&(a=f.x.orgDomain()),["y","y2"].forEach((function(e){var n="axis_"+e+"_",r=f[e];if(r){var i=l[n+"tick_values"],o=l[n+"tick_count"];if(r.domain(c.getYDomain(t,e,a)),!i&&o){var s=c.axis[e],h=r.domain();s.tickValues(u.generateTickValues(h,h.every((function(t){return 0===t}))?1:o,u.isTimeSeriesY()))}}})),this.redraw(n,c.hasArcType(),i),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y)&&(null==(o=f.subY)||o.domain(c.getYDomain(t,"y")),null==(s=f.subY2)||s.domain(c.getYDomain(t,"y2")))},e.setCulling=function(){var t=this.owner,e=t.config,n=t.state,r=n.clip,i=n.current,a=t.$el;["subX","x","y","y2"].forEach((function(t){var n=a.axis[t],o="axis_"+("subX"===t?"x":t)+"_tick_culling",s=e[o];if(n&&s){var u,c=n.selectAll(".tick"),l=po(c.data()),f=l.length,h=e[o+"_max"],d=e[o+"_lines"];if(f){for(var g=1;g<f;g++)if(f/g<h){u=g;break}c.each((function(t){var e=d?this.querySelector("text"):this;e&&(e.style.display=l.indexOf(t)%u?"none":null)}))}else c.style("display",null);if("x"===t){var p=i.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+Mo.axisX+" .tick text").attr("clip-path",p)}}}))},t}(),Wf={initEventRect:function(){this.$el.main.select("."+Eo.chart).append("g").attr("class",zo.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.isMultipleX();if(r.eventRect)t.updateEventRect(r.eventRect,!0);else{var a=t.$el.main.select("."+zo.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(zo.eventRectsMultiple,i).classed(zo.eventRectsSingle,!i).selectAll("."+zo.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),i?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),r.eventRect=a,"touch"!==t.state.inputType||r.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(i)}if(!i){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),null==t.updatePointClass||t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.eventRect,s=a.svg,u=function(){n.unselectRect(),n.callOverOutForTouch()},c=r.interaction_inputType_touch.preventDefault,l=Ba(c)&&c||!1,f=!isNaN(c)&&c||null;o.on("touchstart",(function(t){i.event=t,n.updateEventRect()})).on("touchstart.eventRect touchmove.eventRect",(function(a){if(i.event=a,!o.empty()&&o.classed(zo.eventRect)){if(i.dragging||i.flowing||n.hasArcType()||a.touches.length>1)return;!function(t){var n=t.type,i=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===n?l?t.preventDefault():null!==f&&(e=i):"touchmove"===n&&(l||!0===e||null!==f&&Math.abs(e-i)>=f)&&(e=!0,t.preventDefault())}(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var r=n.getDataIndexFromEvent(i.event);n.callOverOutForTouch(r),-1===r?n.unselectRect():n.selectRectForSingle(e,o,r)}}(o.node())}else u()}),!0).on("touchend.eventRect",(function(t){i.event=t,!o.empty()&&o.classed(zo.eventRect)&&(n.hasArcType()||!n.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}),!0),s.on("touchstart",(function(t){i.event=t;var e=t.target;e&&e!==o.node()&&u()}))},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,r=this.$el,i=n,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,c=i.resizing,l=t||r.eventRect;(!u||c||e)&&(l.attr("x",0).attr("y",0).attr("width",o).attr("height",s),u||l.attr("class",zo.eventRect)),a&&(a.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,r,i=this,a=i.config,o=i.scale,s=i.state,u=o.zoom||o.x,c=a.axis_rotated;if(i.isMultipleX())t=0,e=0,n=s.width,r=s.height;else{var l,f;if(i.axis.isCategorized())l=i.getEventRectWidth(),f=function(t){return u(t.x)-l/2};else{var h=function(t){var e=t.index;return{prev:i.getPrevX(e),next:i.getNextX(e)}};l=function(t){var e=h(t),n=u.domain();return null===e.prev&&null===e.next?c?s.height:s.width:(Object.keys(e).forEach((function(t,r){var i;e[t]=null!=(i=e[t])?i:n[r]})),Math.max(0,(u(e.next)-u(e.prev))/2))},f=function(t){var e=h(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=u.domain()[0]),(u(n)+u(e.prev))/2)}}t=c?0:f,e=c?f:0,n=c?s.width:l,r=c?l:s.height}var d=s.eventReceiver,g=function(t,e){return Da(t)?t(e):t};d.coords.splice(d.data.length),d.data.forEach((function(i,a){d.coords[a]={x:g(t,i),y:g(e,i),w:g(n,i),h:g(r,i)}}))},selectRectForMultipleXs:function(t){var e=this,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!r.dragging&&!e.hasArcType(i)){var a=eo(r.event,t),o=e.findClosestFromTargets(i,a);if(!r.mouseover||o&&o.id===r.mouseover.id||(n.data_onout.call(e.api,r.mouseover),r.mouseover=void 0),o){var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(i,o.x)).map((function(t){return e.addName(t)}));e.showTooltip(s,t),e.setExpand(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select("."+zo.eventRect).style("cursor","pointer"),r.mouseover||(n.data_onover.call(e.api,o),r.mouseover=o))}else e.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,r=n.circle,i=n.tooltip;t.$el.svg.select("."+zo.eventRect).style("cursor",null),t.hideGridFocus(),i&&(t.hideTooltip(),t._handleLinkedCharts(!1)),r&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=e.config,r=e.state,i=r.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",(function(t){r.event=t;var n=i,a=n.currentIdx,o=n.data[-1===a?e.getDataIndexFromEvent(t):a];e.clickHandlerForSingleX.bind(this)(o,e)}));if("mouse"===r.inputType){a.on("mouseover",(function(t){r.event=t,e.updateEventRect()})).on("mousemove",(function(t){var o=function(t){var n=t?e.getDataIndexFromEvent(t):i.currentIdx;return n>-1?i.data[n]:null}(t);if(r.event=t,o){var s=o.index,u=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(u)){var c=e.scale.zoom||e.scale.x,l=e.axis.xs[s],f=c.invert(eo(t,this)[0]);"step-after"===u&&f<l?s-=1:"step-before"===u&&f>l&&(s+=1)}r.dragging||r.flowing||e.hasArcType()||n.tooltip_grouped&&s===i.currentIdx||(s!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=s),-1===s?e.unselectRect():e.selectRectForSingle(this,a,s),e.setOverOut(-1!==s,s))}})).on("mouseout",(function(t){r.event=t,n&&!e.hasArcType()&&-1!==i.currentIdx&&(e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)}))}return a},clickHandlerForSingleX:function(t,e){var n=e,r=n.config,i=n.state,a=n.$el.main;if(!t||n.hasArcType()||i.cancelClick)i.cancelClick&&(i.cancelClick=!1);else{var o=t.index;a.selectAll("."+Vo.shape+"-"+o).each((function(t){(r.data_selection_grouped||n.isWithinShape(this,t))&&(null==n.toggleShape||n.toggleShape(this,t,o),r.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state;t.on("click",(function(t){n.event=t,e.clickHandlerForMultipleXS.bind(this)(e)})),"mouse"===n.inputType&&t.on("mouseover mousemove",(function(t){n.event=t,e.selectRectForMultipleXs(this)})).on("mouseout",(function(t){n.event=t,e.config&&!e.hasArcType()&&e.unselectRect()}))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(i)){var a=eo(r.event,this),o=e.findClosestFromTargets(i,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll("."+Vo.shapes+e.getTargetSelectorSuffix(o.id)).selectAll("."+Vo.shape+"-"+o.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,o))&&(null==e.toggleShape||e.toggleShape(this,o,o.index),n.data_onclick.bind(e.api)(o,this))}))}}},qf=function(t){return+t},Zf={generateFlow:function(t){var e=this,n=e.data,r=e.state,i=e.$el;return function(){var a=t.flow.length;r.flowing=!0,n.targets.forEach((function(t){t.values.splice(0,a)})),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach((function(t){var e,n=t.split("."),r=i[n[0]];r&&n.length>1&&(r=r[n[1]]),null!=(e=r)&&e.size()&&(o[t]=r)})),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n,r=this,i=e.flow,a=e.targets,o=i,s=o.duration,u=void 0===s?e.duration:s,c=o.index,l=o.length,f=o.orgDataCount,h=r.getFlowTransform(a,f,c,l),d=ws();d.add(Object.keys(t).map((function(e){return n=t[e].transition().ease(qf).duration(u),n="axis.x"===e?n.call((function(t){r.axis.x.setTransition(t).create(t)})):"region.list"===e?n.filter(r.isRegionOnX).attr("transform",h):n.attr("transform",h)}))),n.call(d,(function(){r.cleanUpFlow(t,e)}))},cleanUpFlow:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.svg,o=r.axis_rotated,s=e.flow,u=e.shape,c=e.xv,l=u.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=s,v=p.done,y=void 0===v?function(){}:v,x=p.length;x&&(["circle","text","shape","eventRect"].forEach((function(t){for(var e=[],n=0;n<x;n++)e.push("."+Zo[t]+"-"+n);a.selectAll("."+Zo[t+"s"]).selectAll(e).remove()})),a.select("."+Zo.xgrid).remove()),Object.keys(t).forEach((function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(i.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:c).attr("x2",o?i.width:c);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:c).attr("x2",o?i.width:c),a.select("text").attr("x",o?i.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(e))a.attr("d",u.type[e]);else if("text"===e)a.attr("x",d).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"===e)if(n.isCirclePoint())a.attr("cx",f).attr("cy",h);else{a.attr("x",(function(t){return f(t)-r.point_r})).attr("y",(function(t){return h(t)-r.point_r})).attr("cx",f).attr("cy",h)}else"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))})),r.interaction_enabled&&n.redrawEventRect(),y.call(n.api),i.flowing=!1},getFlowTransform:function(t,e,n,r){var i,a,o,s=this,u=s.data,c=s.scale.x,l=u.targets[0].values,f=s.getValueOnIndex(l,n),h=s.getValueOnIndex(l,n+r),d=c.domain(),g=s.updateXDomain(t,!0,!0);return e?o=1===e||(null==(i=f)?void 0:i.x)===(null==(a=h)?void 0:a.x)||s.axis.isTimeSeries()?c(d[0])-c(g[0]):c(f.x)-c(h.x):1!==l.length?o=c(d[0])-c(g[0]):s.axis.isTimeSeries()?(f=s.getValueOnIndex(l,0),h=s.getValueOnIndex(l,l.length-1),o=c(f.x)-c(h.x)):o=Ua(g)/2,"translate("+o+",0) scale("+Ua(d)/Ua(g)+",1)"}},Kf={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!Ln.navigator&&Ln.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":Pn.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,r.top),l=o?r.left+20:i+10+s,f=(o?r.top+a+10:r.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",f)},setYAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:r.top),f=(o?i+15+s:r.left+20)+(u?20:0),h=(o?r.bottom:r.top+a)+10;t.attr("x",c).attr("y",l).attr("width",f).attr("height",h)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!r.idXAxisTickTexts){var s=r.id+"-xaxisticktexts";t.appendClip(a,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==i&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,r=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&r){var i=Math.sin(Math.PI/180*Math.abs(r));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,r=this.$el.svg;r&&r.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},Jf=function(t){return Pa(t.position)||"end"},Qf=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function th(t,e,n){return function(r){var i=t?0:e;return"start"===r.position?i=t?-n:0:"middle"===r.position&&(i=(t?-n:e)/2),i}}function eh(t,e){"grid"===e&&t.each((function(){var t=In(this);["x1","x2","y1","y2"].forEach((function(e){return t.attr(e,Math.ceil(+t.attr(e)))}))}))}var nh={hasGrid:function(){var t=this.config;return["x","y"].some((function(e){return t["grid_"+e+"_show"]||t["grid_"+e+"_lines"].length}))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(r.gridLines.main=r.main.insert("g","."+Eo.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",jo.grid+" "+jo.gridLines),r.gridLines.main.append("g").attr("class",jo.xgridLines),r.gridLines.main.append("g").attr("class",jo.ygridLines),r.gridLines.x=Ql([]))},updateXGrid:function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,c=e.generateGridData(n.grid_x_type,r.x),l=e.axis.isCategorized()?e.axis.x.tickOffset():0,f=function(t){return(r.zoom||r.x)(t)+l*(u?-1:1)};i.xgridAttr=u?{x1:0,x2:i.width,y1:f,y2:f}:{x1:f,x2:f,y1:0,y2:i.height},s.x=o.select("."+jo.xgrids).selectAll("."+jo.xgrid).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",jo.xgrid).merge(s.x),t||s.x.each((function(){var t=In(this);Object.keys(i.xgridAttr).forEach((function(e){t.attr(e,i.xgridAttr[e]).style("opacity",(function(){return t.attr(u?"y1":"x1")===(u?i.height:0)?"0":null}))}))}))},updateYGrid:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.grid,a=r.main,o=e.axis_rotated,s=t.axis.y.tickValues()||t.scale.y.ticks(e.grid_y_ticks),u=function(e){return Math.ceil(t.scale.y(e))};i.y=a.select("."+jo.ygrids).selectAll("."+jo.ygrid).data(s),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",jo.ygrid).merge(i.y),i.y.attr("x1",o?u:0).attr("x2",o?u:n.width).attr("y1",o?0:u).attr("y2",o?n.height:u),eh(i.y,"grid")},updateGrid:function(){var t=this,e=t.$el,n=e.grid;e.gridLines.main||t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=t.config,n=t.$el,r=n.gridLines,i=n.main,a=t.$T,o=e.axis_rotated;e.grid_x_show&&t.updateXGrid();var s=i.select("."+jo.xgridLines).selectAll("."+jo.xgridLine).data(e.grid_x_lines);a(s.exit()).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),a((s=u.merge(s)).attr("class",(function(t){return(jo.xgridLine+" "+(t.class||"")).trim()})).select("text").attr("text-anchor",Jf).attr("dx",Qf)).text((function(t){return t.text})).style("opacity",null),r.x=s},updateYGridLines:function(){var t=this,e=t.config,n=t.state,r=n.width,i=n.height,a=t.$el,o=t.$T,s=e.axis_rotated;e.grid_y_show&&t.updateYGrid();var u=a.main.select("."+jo.ygridLines).selectAll("."+jo.ygridLine).data(e.grid_y_lines);o(u.exit()).style("opacity","0").remove();var c=u.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=c.merge(u);var l=t.yv.bind(t);o(u.attr("class",(function(t){return(jo.ygridLine+" "+(t.class||"")).trim()})).select("line")).attr("x1",s?l:0).attr("x2",s?l:r).attr("y1",s?0:l).attr("y2",s?i:l).style("opacity",null),o(u.select("text").attr("text-anchor",Jf).attr("dx",Qf)).attr("dy",-5).attr("x",th(s,r,i)).attr("y",l).text((function(t){return t.text})).style("opacity",null),a.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,r=e.state,i=r.width,a=r.height,o=e.$el.gridLines,s=e.$T,u=e.xv.bind(e),c=o.x.select("line"),l=o.x.select("text");return c=s(c,t).attr("x1",n?0:u).attr("x2",n?i:u).attr("y1",n?u:0).attr("y2",n?u:a),l=s(l,t).attr("x",th(!n,i,a)).attr("y",u).text((function(t){return t.text})),[c.style("opacity",null),l.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el,i=e.grid_front,a="."+(i&&r.gridLines.main?jo.gridLines:Eo.chart)+(i?" + *":""),o=r.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",jo.grid);r.grid.main=o,e.grid_x_show&&o.append("g").attr("class",jo.xgrids),e.grid_y_show&&o.append("g").attr("class",jo.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Fo.xgridFocus).append("line").attr("class",Fo.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Fo.ygridFocus).append("line").attr("class",Fo.ygridFocus))},showGridFocus:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=n.axis_rotated,s=e.$el.main.selectAll("line."+Fo.xgridFocus+", line."+Fo.ygridFocus),u=(t||[s.datum()]).filter((function(t){return t&&Pa(e.getBaseValue(t))}));if(n.tooltip_show&&0!==u.length&&!e.hasType("bubble")&&!e.hasArcType()){var c=n.grid_focus_edge&&!n.tooltip_grouped,l=e.xx.bind(e);s.style("visibility",null).data(u.concat(u)).each((function(t){var n,r=In(this),s={x:l(t),y:e.getYScaleById(t.id)(t.value)};if(r.classed(Fo.xgridFocus))n=o?[null,s.x,c?s.y:i,s.x]:[s.x,c?s.y:null,s.x,a];else{var u="y2"===e.axis.getId(t.id);n=o?[s.y,c&&!u?s.x:null,s.y,c&&u?s.x:a]:[c&&u?s.x:null,s.y,c&&!u?s.x:i,s.y]}["x1","y1","x2","y2"].forEach((function(t,e){return r.attr(t,n[e])}))})),eh(s,"grid"),null==e.showCircleFocus||e.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.resizing,i=t.$el.main;"mouse"!==n&&r||(i.selectAll("line."+Fo.xgridFocus+", line."+Fo.ygridFocus).style("visibility","hidden"),null==t.hideCircleFocus||t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.width,i=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+Fo.xgridFocus);if("touch"===n)o.empty()?a&&(null==t.showCircleFocus||t.showCircleFocus()):t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?r:-10).attr("y1",s?-10:0).attr("y2",s?-10:i)}return!0},generateGridData:function(t,e){var n=this.$el.main.select("."+Mo.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var i=this.getXDomain().map((function(t){return t.getFullYear()})),a=i[0],o=i[1],s=a;s<=o;s++)r.push(new Date(s+"-01-01 00:00:00"));else(r=e.ticks(10)).length>n&&(r=r.filter((function(t){return(t+"").indexOf(".")<0})));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Ha(t)?t.concat():[t]).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,r=n.config,i=n.$T,a=n.getGridFilterToRemove(t),o=e?jo.xgridLines:jo.ygridLines,s=e?jo.xgridLine:jo.ygridLine;i(n.$el.main.select("."+o).selectAll("."+s).filter(a)).style("opacity","0").remove();var u="grid_"+(e?"x":"y")+"_lines";r[u]=r[u].filter((function(t){return!a(t)}))}},rh={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Uo.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,r=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var i=n.main.selectAll("."+Uo.region).data(e.regions);r(i.exit()).style("opacity","0").remove(),(i=i.enter().append("g").merge(i).attr("class",t.classRegion.bind(t))).append("rect").style("fill-opacity","0"),n.list=i},redrawRegion:function(t){var e=this,n=e.$el.region,r=e.$T,i=n.list.select("rect");return[(i=r(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e))).style("fill-opacity",(function(t){return Pa(t.opacity)?t.opacity:null})).on("end",(function(){In(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,r=n.config,i=n.scale,a=r.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(o||(s="end"),(o?a:!a)&&s in e&&(u=(0,i[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(i.zoom||i.x)(n.axis.isTimeSeries()?mo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=r.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(s||(c="start"),(s?o:!o)&&c in e&&(l=(0,i[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(i.zoom||i.x)(n.axis.isTimeSeries()?mo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},ih={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var r,i=null==(r=n.axis)?void 0:r.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(i.isInner?20:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,r=e.state,i=r.current,a=r.rotatedPadding,o=r.isLegendRight,s=r.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(l))/180),!n.axis_x_tick_multiline&&i.height&&c>i.height/2&&(c=i.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,r=e.config,i=e.state,a=e.$el,o=r["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(r.axis_x_tick_fit&&s){var u=r.axis_x_tick_count,c=i.current.maxTickWidths.x.ticks.length,l=0;if(u?l=u>c?c:u:c&&(l=c),l!==i.axis.x.tickCount){var f=e.data.targets;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(f,"min"),e.getXDomainMinMax(f,"max")],l)}i.axis.x.tickCount=l}a.svg&&r.axis_x_tick_fit&&!r.axis_x_tick_multiline&&!r.axis_x_tick_culling&&r.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?r.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,r=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),i=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(i?r/i:0)}},ah={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},oh={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function sh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uh(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?sh(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var ch=uh(uh(uh({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),ah),oh),lh=[wf,{category:function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Af,Sf,Cf,kf,Of,Rf],fh=[Gf,Kf,Wf,Zf,nh,rh,ih],hh=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},ch,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];Array.prototype.slice;function dh(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function gh(t){return function(){return t}}function ph(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vh(t){return t}var yh=Math.PI,xh=2*yh,_h=1e-6,mh=xh-_h;function bh(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function wh(){return new bh}bh.prototype=wh.prototype={constructor:bh,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,l=o-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>_h)if(Math.abs(l*s-u*c)>_h&&i){var h=n-a,d=r-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((yh-Math.acos((g+f-(h*h+d*d))/(2*p*v)))/2),x=y/v,_=y/p;Math.abs(x-1)>_h&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>_h||Math.abs(this._y1-c)>_h)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%xh+xh),f>mh?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>_h&&(this._+="A"+n+","+n+",0,"+ +(f>=yh)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Th=wh;function Ah(t){return t.innerRadius}function Eh(t){return t.outerRadius}function Sh(t){return t.startAngle}function kh(t){return t.endAngle}function Mh(t){return t&&t.padAngle}function Oh(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,l=o-i,f=s-a,h=f*u-l*c;if(!(h*h<xl))return[t+(h=(l*(e-a)-f*(t-i))/h)*u,e+h*c]}function Rh(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/yl(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,g=n+l,p=r+f,v=(h+g)/2,y=(d+p)/2,x=g-h,_=p-d,m=x*x+_*_,b=i-a,w=h*p-g*d,T=(_<0?-1:1)*yl(gl(0,b*b*m-w*w)),A=(w*_-x*T)/m,E=(-w*x-_*T)/m,S=(w*_+x*T)/m,k=(-w*x+_*T)/m,M=A-v,O=E-y,R=S-v,C=k-y;return M*M+O*O>R*R+C*C&&(A=S,E=k),{cx:A,cy:E,x01:-l,y01:-f,x11:A*(i/b-1),y11:E*(i/b-1)}}function Ch(){var t=Ah,e=Eh,n=gh(0),r=null,i=Sh,a=kh,o=Mh,s=null;function u(){var u,c,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-ml,d=a.apply(this,arguments)-ml,g=fl(d-h),p=d>h;if(s||(s=u=Th()),f<l&&(c=f,f=l,l=c),f>xl)if(g>bl-xl)s.moveTo(f*dl(h),f*vl(h)),s.arc(0,0,f,h,d,!p),l>xl&&(s.moveTo(l*dl(d),l*vl(d)),s.arc(0,0,l,d,h,p));else{var v,y,x=h,_=d,m=h,b=d,w=g,T=g,A=o.apply(this,arguments)/2,E=A>xl&&(r?+r.apply(this,arguments):yl(l*l+f*f)),S=pl(fl(f-l)/2,+n.apply(this,arguments)),k=S,M=S;if(E>xl){var O=Tl(E/l*vl(A)),R=Tl(E/f*vl(A));(w-=2*O)>xl?(m+=O*=p?1:-1,b-=O):(w=0,m=b=(h+d)/2),(T-=2*R)>xl?(x+=R*=p?1:-1,_-=R):(T=0,x=_=(h+d)/2)}var C=f*dl(x),I=f*vl(x),L=l*dl(b),P=l*vl(b);if(S>xl){var D,N=f*dl(_),z=f*vl(_),F=l*dl(m),j=l*vl(m);if(g<_l&&(D=Oh(C,I,F,j,N,z,L,P))){var B=C-D[0],X=I-D[1],$=N-D[0],U=z-D[1],Y=1/vl(wl((B*$+X*U)/(yl(B*B+X*X)*yl($*$+U*U)))/2),V=yl(D[0]*D[0]+D[1]*D[1]);k=pl(S,(l-V)/(Y-1)),M=pl(S,(f-V)/(Y+1))}}T>xl?M>xl?(v=Rh(F,j,C,I,f,M,p),y=Rh(N,z,L,P,f,M,p),s.moveTo(v.cx+v.x01,v.cy+v.y01),M<S?s.arc(v.cx,v.cy,M,hl(v.y01,v.x01),hl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,M,hl(v.y01,v.x01),hl(v.y11,v.x11),!p),s.arc(0,0,f,hl(v.cy+v.y11,v.cx+v.x11),hl(y.cy+y.y11,y.cx+y.x11),!p),s.arc(y.cx,y.cy,M,hl(y.y11,y.x11),hl(y.y01,y.x01),!p))):(s.moveTo(C,I),s.arc(0,0,f,x,_,!p)):s.moveTo(C,I),l>xl&&w>xl?k>xl?(v=Rh(L,P,N,z,l,-k,p),y=Rh(C,I,F,j,l,-k,p),s.lineTo(v.cx+v.x01,v.cy+v.y01),k<S?s.arc(v.cx,v.cy,k,hl(v.y01,v.x01),hl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,k,hl(v.y01,v.x01),hl(v.y11,v.x11),!p),s.arc(0,0,l,hl(v.cy+v.y11,v.cx+v.x11),hl(y.cy+y.y11,y.cx+y.x11),p),s.arc(y.cx,y.cy,k,hl(y.y11,y.x11),hl(y.y01,y.x01),!p))):s.arc(0,0,l,b,m,p):s.lineTo(L,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-_l/2;return[dl(r)*n,vl(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:gh(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gh(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:gh(+t),u):i},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:gh(+t),u):a},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:gh(+t),u):o},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}var Ih={initPie:function(){var t=this,e=t.config,n=e.data_type,r=e[n+"_padding"],i=e[n+"_startingAngle"]||0,a=(r?.01*r:e[n+"_padAngle"])||0;t.pie=function(){var t=vh,e=ph,n=null,r=gh(0),i=gh(bl),a=gh(0);function o(o){var s,u,c,l,f,h=(o=dh(o)).length,d=0,g=Array(h),p=Array(h),v=+r.apply(this,arguments),y=Math.min(bl,Math.max(-bl,i.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=x*(y<0?-1:1);for(s=0;s<h;++s)(f=p[g[s]=s]=+t(o[s],s,o))>0&&(d+=f);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-h*_)/d:0;s<h;++s,v=l)u=g[s],l=v+((f=p[u])>0?f*c:0)+_,p[u]={data:o[u],index:s,value:f,startAngle:v,endAngle:l,padAngle:x};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:gh(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:gh(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:gh(+t),o):a},o}().startAngle(i).endAngle(i+2*Math.PI).padAngle(a).value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,r=e[e.data_type+"_padding"],i=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=i?(n.radius-i)/n.radius:.6,n.gaugeArcWidth=i||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=null==t?void 0:t.data,n=this.state,r=n.innerRadius,i=n.outerRadius;return!za(r)&&e&&(r=r[e.id]||0),Wa(i)&&e&&e.id in i?i=i[e.id]:za(i)||(i=this.state.radius),{innerRadius:r,outerRadius:i}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,r=Math.PI/2,i=t.gauge_startingAngle;return!e&&i<=n?i=n:!e&&i>=r?i=r:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle:function(t){var e=this,n=e.config,r=e.state,i=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():-2*s;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var c=n,l=c.gauge_min,f=c.gauge_max,h=e.getTotalDataSum(r.rendered);i=i.startAngle(s).endAngle(u*((h-l)/(f-l))+s)}if(i(e.filterTargetsToShow()).forEach((function(t,e){o||t.data.id!==a.data.id||(o=!0,(a=t).index=e)})),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var d=n.gauge_min,g=n.gauge_max,p=a.value<d?0:a.value<g?a.value-d:g-d;a.startAngle=s,a.endAngle=s+u/(g-d)*p}return o?a:null},getSvgArc:function(){var t=this,e=t.state,n=e.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,r=t.hasMultiArcGauge(),i=t.hasType("polar"),a=Ch().innerRadius((function(i){var a=t.getRadius(i).innerRadius;return r?e.radius-n*(i.index+1):za(a)?a:0})).outerRadius((function(a){var o=t.getRadius(a).outerRadius,s=o;return r?s=e.radius-n*a.index:i&&(s=t.getPolarOuterRadius(a,o)),s})),o=function(e,n){var r="M 0 0";if(e.value||e.data){var i=!n&&t.updateAngle(e);n?r=a(e):i&&(r=a(i))}return r};return o.centroid=a.centroid,o},getSvgArcExpanded:function(t){var e=this,n=e.state,r=t||1,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,a=e.hasMultiArcGauge(),o=Math.min(n.radiusExpanded*r-n.radius,.8*i-100*(1-r)),s=Ch().innerRadius((function(t){return a?n.radius-i*(t.index+1):e.getRadius(t).innerRadius})).outerRadius((function(t){var s;if(a)s=n.radius-i*t.index+o;else{var u=e.getRadius(t).outerRadius,c=n.radiusExpanded;n.radius!==u&&(c-=Math.abs(n.radius-u)),s=c*r}return s}));return function(t){var n=e.updateAngle(t);return n?s(n):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=e.config,r=e.state.radiusExpanded,i=e.updateAngle(t),a="";if(i)if(e.hasMultiArcGauge()){var o=Math.sin(i.endAngle-Math.PI/2);a="translate("+(l=Math.cos(i.endAngle-Math.PI/2)*(r+25))+","+(f=o*(r+15-Math.abs(10*o))+3)+")"}else if(!e.hasType("gauge")||e.data.targets.length>1){var s,u=e.getRadius(t).outerRadius;e.hasType("polar")&&(u=e.getPolarOuterRadius(t,u));var c=this.svgArc.centroid(i).map((function(t){return isNaN(t)?0:t})),l=c[0],f=c[1],h=Math.sqrt(l*l+f*f),d=null==(s=["donut","pie","polar"].filter(e.hasType.bind(e)).map((function(t){return n[t+"_label_ratio"]})))?void 0:s[0];a="translate("+l*(d=d?Da(d)?d.bind(e.api)(t,u,h):d:u&&(h?(36/u>.375?1.175-36/u:.8)*u/h:0))+","+f*d+")"}return a},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",e.updateTextBacgroundColor.bind(e)).each((function(t){var r,i=In(this),a=e.updateAngle(t),o=e.getRatio("arc",a);if(e.meetsLabelThreshold(o,null==(r=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))?void 0:r[0])){var s=(a||t).value;Qa(i,(e.getArcLabelFormat()||e.defaultArcValueFormat)(s,o,t.data.id).toString(),[-1,1],n)}else i.text("")}))},expandArc:function(t){var e=this,n=e.state.transiting,r=e.$el;if(n)var i=setInterval((function(){n||(clearInterval(i),r.legend.selectAll("."+Fo.legendItemFocused).size()>0&&e.expandArc(t))}),10);else{var a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a,"."+So.chartArc)).each((function(t){if(e.shouldExpand(t.data.id)){var n=e.getExpandConfig(t.data.id,"duration"),r=e.getSvgArcExpanded(e.getExpandConfig(t.data.id,"rate"));In(this).selectAll("path").transition().duration(n).attr("d",e.svgArcExpanded).transition().duration(2*n).attr("d",r)}}))}},unexpandArc:function(t){var e=this,n=e.state.transiting,r=e.$el.svg;if(!n){var i=e.mapToTargetIds(t);r.selectAll(e.selectorTargets(i,"."+So.chartArc)).selectAll("path").transition().duration((function(t){return e.getExpandConfig(t.data.id,"duration")})).attr("d",e.svgArc),r.selectAll(""+So.arc).style("opacity",null)}},getExpandConfig:function(t,e){var n,r=this,i=r.config;return r.isDonutType(t)?n="donut":r.isGaugeType(t)?n="gauge":r.isPieType(t)&&(n="pie"),n?i[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["donut","gauge","pie","polar"].some((function(n){return t.hasType(n)&&e[n+"_label_show"]}))},getArcLabelFormat:function(){var t=this,e=t.config,n=function(t){return t};return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach((function(t){n=e[t+"_label_format"]})),Da(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,r=e.hasType("gauge"),i=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select("."+So.chartArcs),u=s.selectAll("."+So.chartArc).data(e.pie(t)).attr("class",(function(t){return i(t)+o(t.data)})),c=u.enter().append("g").attr("class",i);c.append("g").attr("class",a).merge(u),c.append("text").attr("dy",r&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor","middle").style("pointer-events","none"),n.text=s.selectAll("."+Eo.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+Eo.chart).append("g").attr("class",So.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var r=t.$el.arcs.append("text").attr("class",n?Po.chartArcsGaugeTitle:So.chartArcsTitle).style("text-anchor","middle");n&&r.attr("dy","-0.3em"),Qa(r,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.$el.main,s=i.interaction_enabled,u=s&&i.data_selection_isselectable,c=o.selectAll("."+So.arcs).selectAll("."+So.arc).data(r.arcData.bind(r));c.exit().transition().duration(e).style("opacity","0").remove(),c=c.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",(function(t){return r.color(t.data)})).style("cursor",(function(t){var e;return null!=(e=u)&&null!=e.bind&&e.bind(r.api)(t)?"pointer":null})).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=i.gauge_startingAngle,t.endAngle=i.gauge_startingAngle),this._current=t})).merge(c),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),c.attr("transform",(function(t){return!r.isGaugeType(t.data)&&n?"scale(0)":""})).style("opacity",(function(t){return t===this._current?"0":null})).each((function(){a.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e=r.updateAngle(t);if(!e)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var n=Ur(this._current,e);return this._current=n(0),function(e){var i=n(e);return i.data=t.data,r.getArc(i,!0)}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){var e;return r.levelColor?(e=r.levelColor(t.data.values[0].value),i.data_colors[t.data.id]=e):e=r.color(t.data),e})).style("opacity",null).call(Ka,(function(){if(r.levelColor){var t=In(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,Za(i.onrendered,r.api)})),s&&r.bindArcEvent(c),r.hasType("polar")&&r.redrawPolar(),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge(),i=e.gauge_fullCircle,a=t.getStartAngle(),o=i?a+t.getArcLength():-1*a,s=t.$el.arcs.select((r?"g":"")+"."+So.chartArcsBackground);if(r){var u=0;(s=s.selectAll("path."+So.chartArcsBackground).data(t.data.targets)).enter().append("path").attr("class",(function(t,e){return So.chartArcsBackground+" "+So.chartArcsBackground+"-"+e})).merge(s).style("fill",e.gauge_background||null).attr("d",(function(r){var i=r.id;if(n.hiddenTargetIds.indexOf(i)>=0)return"M 0 0";var s={data:[{value:e.gauge_max}],startAngle:a,endAngle:o,index:u++};return t.getArc(s,!0,!0)})),s.exit().remove()}else s.attr("d",(function(){var n={data:[{value:e.gauge_max}],startAngle:a,endAngle:o};return t.getArc(n,!0,!0)}))},bindArcEvent:function(t){var e=this,n=e.config,r=e.state,i="touch"===r.inputType,a="mouse"===r.inputType;function o(t,n,r){e.expandArc(r),e.api.focus(r),e.toggleFocusLegend(r,!0),e.showTooltip([n],t)}function s(t){var n=(null==t?void 0:t.id)||void 0;e.unexpandArc(n),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",(function(t,r,i){var a,o=e.updateAngle(r);o&&(a=e.convertToArcData(o),null==e.toggleShape||e.toggleShape(this,a,i),n.data_onclick.bind(e.api)(a,this))})),a&&t.on("mouseover",(function(t,n){var i;if(!r.transiting){r.event=t;var a=e.updateAngle(n),s=a?e.convertToArcData(a):null;o(this,s,(null==(i=s)?void 0:i.id)||void 0),e.setOverOut(!0,s)}})).on("mouseout",(function(t,n){if(!r.transiting){r.event=t;var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;s(),e.setOverOut(!1,a)}})).on("mousemove",(function(t,n){var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;r.event=t,e.showTooltip([a],this)})),i&&e.hasArcType()&&!e.radars){e.$el.svg.on("touchstart touchmove",(function(t){var n,i;if(!r.transiting){r.event=t;var a=function(t){var e=t.changedTouches[0];return In(Pn.elementFromPoint(e.clientX,e.clientY))}(t),u=a.datum(),c=null!=(n=u)&&n.data&&u.data.id?e.updateAngle(u):null,l=c?e.convertToArcData(c):null,f=(null==(i=l)?void 0:i.id)||void 0;e.callOverOutForTouch(l),Fa(f)?s():o(this,l,f)}}))}},redrawArcText:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.main,s=a.arcs,u=n.hasType("gauge"),c=n.hasMultiArcGauge();if(u&&1===n.data.targets.length&&r.gauge_title||(e=o.selectAll("."+So.chartArc).select("text").style("opacity","0").attr("class",(function(t){return n.isGaugeType(t.data)?Po.gaugeValue:null})).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",(function(t){return n.isGaugeType(t.data)&&1===n.data.targets.length&&!c?Math.round(i.radius/5)+"px":null})).transition().duration(t).style("opacity",(function(t){return n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?null:"0"})),c&&e.attr("dy","-.1em")),o.select("."+So.chartArcsTitle).style("opacity",n.hasType("donut")||u?null:"0"),u){var l,f=r.gauge_fullCircle;f&&(null==(l=e)||l.attr("dy",""+(c?0:Math.round(i.radius/14)))),r.gauge_label_show&&(s.select("."+Po.chartArcsGaugeUnit).attr("dy",(f?1.5:.75)+"em").text(r.gauge_units),s.select("."+Po.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(f?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_min,!1)),f||s.select("."+Po.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_max,!0)))}}};function Lh(t){return t[0]}function Ph(t){return t[1]}function Dh(t,e){var n=gh(!0),r=null,i=Gl,a=null;function o(o){var s,u,c,l=(o=dh(o)).length,f=!1;for(null==r&&(a=i(c=Th())),s=0;s<=l;++s)!(s<l&&n(u=o[s],s,o))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,s,o),+e(u,s,o));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?Lh:gh(t),e="function"==typeof e?e:void 0===e?Ph:gh(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:gh(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}var Nh={initArea:function(t){var e=this.config;t.insert("g","."+(e.area_front?Co.circles:No.lines)).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,r=t.$el.defs;t.data.targets.forEach((function(i){var a=n+"-areaGradient"+t.getTargetSelectorSuffix(i.id);if(t.isAreaType(i)&&r.select("#"+a).empty()){var o=t.color(i),s=e.area_linearGradient,u=s.x,c=void 0===u?[0,0]:u,l=s.y,f=void 0===l?[0,1]:l,h=s.stops,d=void 0===h?[[0,o,1],[1,o,0]]:h,g=r.append("linearGradient").attr("id",""+a).attr("x1",c[0]).attr("x2",c[1]).attr("y1",f[0]).attr("y2",f[1]);d.forEach((function(e){var n=Da(e[1])?e[1].bind(t.api)(i.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])}))}}))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#"+e.state.datetimeId+"-areaGradient"+e.getTargetSelectorSuffix(t.id)+")":e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;r.area_linearGradient&&n.updateAreaGradient();var u=s.main.selectAll("."+ko.areas).selectAll("."+ko.area).data(n.lineData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.area=u.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(){return i.orgAreaOpacity=In(this).style("opacity"),"0"})).merge(u),u.style("opacity",i.orgAreaOpacity)},redrawArea:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?this.$el.subchart:this.$el).area,a=r.state.orgAreaOpacity;return[r.$T(i,e,io()).attr("d",t).style("fill",r.updateAreaColor.bind(r)).style("opacity",(function(t){return(r.isAreaRangeType(t)?a/1.75:a)+""}))]},generateDrawArea:function(t,e){var n=this,r=n.config,i=r.line_connectNull,a=r.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(t){return(e?n.subxx:n.xx).call(n,t)},c=function(t,r){return n.isGrouped(t.id)?o(t,r)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"high"):n.getShapeYMin(t.id))},l=function(t,r){return n.isGrouped(t.id)?o(t,r)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"low"):t.value)};return function(t){var e,o=i?n.filterRemoveNull(t.values):t.values,s=0,f=0;if(n.isAreaType(t)){var h=function(t,e,n){var r=null,i=gh(!0),a=null,o=Gl,s=null;function u(u){var c,l,f,h,d,g=(u=dh(u)).length,p=!1,v=Array(g),y=Array(g);for(null==a&&(s=o(d=Th())),c=0;c<=g;++c){if(!(c<g&&i(h=u[c],c,u))===p)if(p=!p)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=c-1;f>=l;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}p&&(v[c]=+t(h,c,u),y[c]=+e(h,c,u),s.point(r?+r(h,c,u):v[c],n?+n(h,c,u):y[c]))}if(d)return s=null,d+""||null}function c(){return Dh().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Lh:gh(+t),e="function"==typeof e?e:gh(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Ph:gh(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gh(+t),u):r},u.y=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:gh(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:gh(!!t),u):i},u.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),u):o},u.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),u):a},u}();h=a?h.y(u).x0(c).x1(l):h.x(u).y0(r.area_above?0:c).y1(l),i||(h=h.defined((function(t){return null!==n.getBaseValue(t)}))),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=h.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),f=n.getYScaleById(t.id)(o[0].value)),e=a?"M "+f+" "+s:"M "+s+" "+f;return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);return r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c),[[f,l],[f,h-(c-l)],[f,h-(c-l)],[f,l]]}}},zh={initBar:function(){var t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Eo.chart).insert("g",":first-child").attr("class",Oo.chartBars),!1===e.clipPath&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,"#"+n.id))},updateTargetsForBar:function(t){var e=this,n=e.config,r=e.$el,i=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;r.bar||e.initBar(),e.$el.main.select("."+Oo.chartBars).selectAll("."+Oo.chartBar).data(t.filter((function(t){return t.values.some((function(t){return za(t.value)||e.isBarRangeType(t)}))}))).attr("class",(function(t){return i(t)+o(t)})).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events","none").append("g").attr("class",a).style("cursor",(function(t){var n;return null!=(n=s)&&null!=n.bind&&n.bind(e.api)(t)?"pointer":null}))},updateBar:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("bar",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+Oo.bars).selectAll("."+Oo.bar).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove(),a.bar=u.enter().append("path").attr("class",o).style("fill",n.color).merge(u).style("opacity",s)},redrawBar:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?r.$el.subchart:r.$el).bar;return[r.$T(i,e,io()).attr("d",(function(e){return(za(e.value)||r.isBarRangeType(e))&&t(e)})).style("fill",this.color).style("opacity",null)]},generateDrawBar:function(t,e){var n=this,r=n.config,i=n.generateGetBarPoints(t,e),a=r.axis_rotated,o=r.bar_radius,s=r.bar_radius_ratio,u=za(o)&&o>0?function(){return o}:za(s)?function(t){return t*s}:null;return function(t,e){var r=i(t,e),o=+a,s=+!o,c=t.value<0,l=["",""],f=0,h=n.isGrouped(t.id),d=0!==t.value&&u,g=!(!d||!h)&&n.isStackingRadiusData(t);if(d&&(!h||g)){var p=a?s:o,v=r[2][p]-r[0][p],y="a"+(f=u(v))+","+f+" "+(c?"1 0 0":"0 0 1")+" ";l[+!a]=""+y+f+","+f,l[+a]=""+y+[-f,f][a?"sort":"reverse"](),c&&l.reverse()}var x=a?"H"+(r[1][o]-f)+" "+l[0]+"V"+(r[2][s]-f)+" "+l[1]+"H"+r[3][o]:"V"+(r[1][s]+(c?-f:f))+" "+l[0]+"H"+(r[2][o]-f)+" "+l[1]+"V"+r[3][s];return"M"+r[0][o]+","+r[0][s]+x+"z"}},isStackingRadiusData:function(t){var e=this,n=e.config,r=e.data,i=t.id,a=t.index,o=t.value,s=n.data_groups.find((function(t){return t.indexOf(i)>-1})),u=e.orderTargets(e.filterTargetsToShow(r.targets.filter(e.isBarType,e))).filter((function(t){return s.indexOf(t.id)>-1})).map((function(t){return t.values.filter((function(t){return t.index===a&&(o>0?t.value>0:t.value<0)}))[0]})).filter(Boolean).map((function(t){return t.id}));return 0!==o&&u.indexOf(i)===u.length-1},generateGetBarPoints:function(t,e){var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a=l.call(n,t.id,e)(n.getShapeYMin(t.id)),f=c(t,i)||a,h=za(o)?o:o[t.id]||o._$width,d=s(t),g=u(t);r.axis_rotated&&(t.value>0&&g<a||t.value<0&&a<g)&&(g=a),n.isBarRangeType(t)||(g-=a-f);var p=d+h;return[[d,f],[d,g],[p,g],[p,f]]}}};function Fh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var jh={initCandlestick:function(){var t=this.$el;t.candlestick=t.main.select("."+Eo.chart).append("g").attr("class",Ro.chartCandlesticks)},updateTargetsForCandlestick:function(t){var e=this,n=e.$el,r=e.getChartClass("Candlestick"),i=e.classFocus.bind(e);n.candlestick||e.initCandlestick(),e.$el.main.select("."+Ro.chartCandlesticks).selectAll("."+Ro.chartCandlestick).data(t).attr("class",(function(t){return r(t)+i(t)})).enter().append("g").attr("class",r).style("pointer-events","none")},updateCandlestick:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("candlestick",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+Ro.chartCandlestick).selectAll("."+Ro.candlestick).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove();var c=u.enter().filter((function(t){return t.value})).append("g").attr("class",o);c.append("line"),c.append("path"),a.candlestick||(a.candlestick={}),a.candlestick=u.merge(c).style("opacity",s)},generateDrawCandlestick:function(t,e){var n=this,r=n.config,i=n.generateGetCandlestickPoints(t,e),a=r.axis_rotated,o=r.candlestick_color_down;return function(t,e,r){var s,u=i(t,e),c=null==(s=n.getCandlestickData(t))?void 0:s._isUp,l=+a;r.classed&&r.classed(Ro[c?"valueUp":"valueDown"],!0);var f=a?"H"+u[1][1]+" V"+u[1][0]+" H"+u[0][1]:"V"+u[1][1]+" H"+u[1][0]+" V"+u[0][1];r.select("path").attr("d","M"+u[0][l]+","+u[0][+!l]+f+"z").style("fill",(function(t){return(c?n.color(t):Wa(o)?o[t.id]:o)||n.color(t)}));var h=r.select("line"),d=a?{x1:u[2][1],x2:u[2][2],y1:u[2][0],y2:u[2][0]}:{x1:u[2][0],x2:u[2][0],y1:u[2][1],y2:u[2][2]};for(var g in d)h.attr(g,d[g])}},generateGetCandlestickPoints:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("candlestick",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a,f=l.call(n,t.id,e)(n.getShapeYMin(t.id)),h=c(t,i)||f,d=za(o)?o:o[t.id]||o._$width,g=n.getCandlestickData(t);if(g){var p={start:s(t),end:0};p.end=p.start+d;var v={start:u(g.open),end:u(g.close)},y={x:p.start+d/2,high:u(g.high),low:u(g.low)};r.axis_rotated&&(t.value>0&&v.start<f||t.value<0&&f<v.start)&&(v.start=f),v.start-=f-h,a=[[p.start,v.start],[p.end,v.end],[y.x,y.low,y.high]]}else a=[[0,0],[0,0],[0,0,0]];return a}},redrawCandlestick:function(t,e,n){void 0===n&&(n=!1);var r=this.$el,i=this.$T,a=(n?r.subchart:r).candlestick,o=io(!0);return[a.each((function(n,r){var a=i(In(this),e,o);t(n,r,a)})).style("opacity",null)]},getCandlestickData:function(t){var e,n=t.value;if(Ha(n)){var r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=void 0!==s&&s;e={open:r,high:i,low:a,close:o},!1!==u&&(e.volume=u)}else Wa(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Fh(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}({},n));return e&&(e._isUp=e.close>=e.open),e||null}},Bh={initGauge:function(){var t=this,e=t.config,n=t.$el.arcs,r=function(t){n.append("text").attr("class",t).style("text-anchor","middle").style("pointer-events","none")};if(t.hasType("gauge")){var i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",So.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&r(Po.chartArcsGaugeUnit),e.gauge_label_show&&(r(Po.chartArcsGaugeMin),e.gauge_fullCircle||r(Po.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);r+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=r-e.gauge_min)},redrawMultiArcGauge:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.state.hiddenTargetIds,a=r.main.selectAll("."+So.arcs).selectAll("."+So.arcLabelLine).data(t.arcData.bind(t));a.enter().append("rect").attr("class",(function(t){return So.arcLabelLine+" "+Eo.target+" "+Eo.target+"-"+t.data.id})).merge(a).style("fill",(function(e){return t.levelColor?t.levelColor(e.data.values[0].value):t.color(e.data)})).style("display",e.gauge_label_show?null:"none").each((function(e){var r=0,a=0,o=0,s="";if(i.indexOf(e.data.id)<0){var u=t.updateAngle(e),c=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,f=n.radius-c,h=l-(0===f?0:1/f);r=n.radiusExpanded-n.radius+c,a=Math.cos(h)*f,o=Math.sin(h)*f,s="rotate("+180*l/Math.PI+", "+a+", "+o+")"}In(this).attr("x",a).attr("y",o).attr("width",r).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(r+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return Da(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},Xh={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,r=e.height,i=cs,a=t.cache.get(i);return a||t.cache.add(i,a=vo("min",[n,r])),a},getBubbleR:function(t){var e=this,n=e.config.bubble_maxR;Da(n)?n=n.bind(e.api)(t):za(n)||(n=e.getBaseLength()/(2*e.getMaxDataCount())+12);var r=vo("max",e.getMinMaxData().max.map((function(t){return e.isBubbleZType(t)?e.getBubbleZData(t.value,"y"):Wa(t.value)?t.value.mid:t.value}))),i=n*n*Math.PI,a=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return Wa(t)?t[e]:t["y"===e?0:1]}},$h={initLine:function(){var t=this.$el;t.line=t.main.select("."+Eo.chart).append("g").attr("class",No.chartLines)},updateTargetsForLine:function(t){var e=this,n=e.$el,r=n.area,i=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);i||e.initLine();var c=t.filter((function(t){return!(e.isScatterType(t)||e.isBubbleType(t))})),l=a.select("."+No.chartLines).selectAll("."+No.chartLine).data(c).attr("class",(function(t){return o(t)+u(t)})),f=l.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events","none");f.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!r&&f.empty()?l:f),e.updateTargetForCircle(c,f)},updateLine:function(t,e){void 0===e&&(e=!1);var n=this,r=n.format.extraLineClasses,i=n.$el,a=n.$T,o=e?i.subchart:i,s=o.main.selectAll("."+No.lines).selectAll("."+No.line).data(n.lineData.bind(n));a(s.exit(),t).style("opacity","0").remove(),o.line=s.enter().append("path").attr("class",(function(t){return n.getClass("line",!0)(t)+" "+(r(t)||"")})).style("stroke",n.color).merge(s).style("opacity",n.initialOpacity.bind(n)).style("shape-rendering",(function(t){return n.isStepType(t)?"crispEdges":""})).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);var r=this.$el;return[(0,this.$T)((n?r.subchart:r).line,e,io()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var r=e.getInterpolate(t)(n);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,r=n.config,i=n.scale,a=r.line_connectNull,o=r.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,r){return n.isGrouped(t.id)?s(t,r)[0][1]:u(t.id,e)(n.getBaseValue(t))},f=Dh();f=o?f.x(l).y(c):f.x(c).y(l),a||(f=f.defined((function(t){return null!==n.getBaseValue(t)})));var h=e?i.subX:i.x;return function(t){var s,c=u(t.id,e),l=a?n.filterRemoveNull(t.values):t.values,d=0,g=0;if(n.isLineType(t)){var p=r.data_regions[t.id];p?s=n.lineWithRegions(l,i.zoom||h,c,p):(n.isStepType(t)&&(l=n.convertValuesToStep(l)),s=f.curve(n.getCurve(t))(l))}else l[0]&&(d=h(l[0].x),g=c(l[0].value)),s=o?"M "+g+" "+d:"M "+d+" "+g;return s||"M 0 0"}},lineWithRegions:function(t,e,n,r){var i,a,o,s,u=this,c=u.config.axis_rotated,l=u.axis.isTimeSeries(),f=u.axis.isCategorized()?.5:0,h=[],d=function(t,e){for(var n,r=0;n=e[r];r++)if(n.start<t&&t<=n.end)return n.style;return!1};if(ja(r))for(var g,p=function(t,e){return Fa(t)?e:l?mo.call(u,t):t},v=0;g=r[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),_=g.style||{dasharray:"2 2"};h[v]={start:y,end:x,style:_}}for(var m,b=c?function(t){return n(t.value)}:function(t){return e(t.x)},w=c?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]},A=l?function(t,r,i,s){var u=t.x.getTime(),l=r.x-t.x,f=new Date(u+l*i),h=new Date(u+l*(i+s)),d=c?[[n(a(i)),e(f)],[n(a(i+o)),e(h)]]:[[e(f),n(a(i))],[e(h),n(a(i+o))]];return T(d)}:function(t,r,o,s){var u=c?[[n(a(o),!0),e(i(o))],[n(a(o+s),!0),e(i(o+s))]]:[[e(i(o),!0),n(a(o))],[e(i(o+s),!0),n(a(o+s))]];return T(u)},E={x:u.axis.getAxisType("x"),y:u.axis.getAxisType("y")},S="",k=0;m=t[k];k++){var M=t[k-1],O=M&&Pa(M.value);_=d(m.x,h);if(Pa(m.value))if(!Fa(h)&&_&&O){if(O){try{_=_.dasharray.split(" ")}catch(t){_="2 2".split(" ")}i=Gc(E.x,M.x+f,m.x+f),a=Gc(E.y,M.value,m.value);var R=e(m.x)-e(M.x),C=n(m.value)-n(M.value),I=Math.sqrt(Math.pow(R,2)+Math.pow(C,2));s=(o=_[0]/I)*_[1];for(var L=o;L<=1;L+=s)S+=A(M,m,L,o),L+s>=1&&(S+=A(M,m,1,0))}}else S+=(k&&O?"L":"M")+b(m)+","+w(m)}return S},isWithinStep:function(t,e){return Math.abs(e-eo(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Ha(e)&&-1!==e.indexOf(t.id)}},Uh=function(){return io()},Yh={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Ya(e)&&Da(e.create)&&Da(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,r=e.point_opacity;return Fa(r)&&(r=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Fa(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=Pa(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+Co.chartCircles).empty()&&e.select("."+Eo.chart).append("g").attr("class",Co.chartCircles)},updateTargetForCircle:function(t,e){var n=this,r=this,i=r.config,a=r.data,o=r.$el,s=i.interaction_enabled&&i.data_selection_enabled,u=s&&i.data_selection_isselectable,c=r.getClass("circles",!0);if(i.point_show){o.circle||r.initCircle();var l=t,f=e;if(!l){l=a.targets.filter((function(t){return n.isScatterType(t)||n.isBubbleType(t)}));var h=o.main.select("."+Co.chartCircles).style("pointer-events","none").selectAll("."+Co.circles).data(l).attr("class",c);h.exit().remove(),f=h.enter()}s&&f.append("g").attr("class",(function(t){return r.generateClass(Yo.selectedCircles,t.id)})),f.append("g").attr("class",c).style("cursor",(function(t){return Da(u)&&u(t)?"pointer":null})),s&&l.forEach((function(t){o.main.selectAll("."+Yo.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll(""+Yo.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))}},updateCircle:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state,i=e.$el,a=n.point_focus_only,o=t?i.subchart:i;if(n.point_show&&!r.toggling){var s=o.main.selectAll("."+Co.circles).selectAll("."+Co.circle).data((function(t){return e.isLineType(t)&&e.shouldDrawPointsForLine(t)||e.isBubbleType(t)||e.isRadarType(t)||e.isScatterType(t)?a?[t.values[0]]:t.values:[]}));s.exit().remove(),s.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.color)),o.circle=o.main.selectAll("."+Co.circles+" ."+Co.circle).style("stroke",e.color).style("opacity",e.initialOpacityForCircle.bind(e))}},redrawCircle:function(t,e,n,r,i){void 0===i&&(i=!1);var a=this,o=a.state.rendered,s=a.$el,u=a.$T,c=i?s.subchart:s,l=c.main.selectAll("."+Yo.selectedCircle);if(!a.config.point_show)return[];var f=a.point("update",a,t,e,a.color,n,r,l),h=a.isCirclePoint()?"c":"",d=io(),g=a.opacityForCircle.bind(a),p=[];return c.circle.each((function(t){var e=f.bind(this)(t);e=u(e,n||!o,d).style("opacity",g),p.push(e)})),[p,u(l,n).attr(h+"x",t).attr(h+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,r=e.state,i=r.hasRadar,a=r.resizing,o=r.toggling,s=r.transiting,u=e.$el.circle;if(!1===s&&n.point_focus_only&&u){var c=(i?e.radarCircleX:e.circleX).bind(e),l=(i?e.radarCircleY:e.circleY).bind(e),f=o||Fa(t),h=e.point("update",e,c,l,e.color,!a&&f);t&&(u=u.filter((function(e){var n=t.filter((function(t){return t.id===e.id}));return!!n.length&&In(this).datum(n[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each((function(t){var n=t.id,r=t.index,i=t.value,a="hidden";Pa(i)&&(h.bind(this)(t),e.expandCircles(r,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){void 0===t&&(t=!1);var e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return function(r,i){var a=r.id;return e.isGrouped(a)?n(r,i)[0][1]:e.getYScaleById(a,t)(e.getBaseValue(r))}},expandCircles:function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles();var a=r.getShapeByIndex("circle",t,e).classed(Eo.EXPANDED,!0),o=i(a)/r.config.point_r,s=1-o;r.isCirclePoint()?a.attr("r",i):a.each((function(){var t=In(this);if("circle"===this.tagName)t.attr("r",i);else{var e=this.getBBox(),n=e.width,r=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+r/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),r=e.getShapeByIndex("circle",t).filter((function(){return In(this).classed(Eo.EXPANDED)})).classed(Eo.EXPANDED,!1);r.attr("r",n),e.isCirclePoint()||r.attr("transform","scale("+n(r)/e.config.point_r+")")},pointR:function(t){var e=this,n=e.config.point_r,r=n;return e.isBubbleType(t)?r=e.getBubbleR(t):Da(n)&&(r=n.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,r=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*r:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Da(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=eo(this.state.event,t),r=In(t),i=this.isCirclePoint(t)?"c":"",a=+r.attr(i+"x"),o=+r.attr(i+"y");if(!a&&!o&&1===t.nodeType){var s=ro(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,r=function(t,e){for(var n,r=t.attributes,i=0;n=r[i];i++)n=n.name,e.setAttribute(n,t.getAttribute(n))},i=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,a=Pn.createElementNS(Ie.svg,i.nodeName.toLowerCase());if(a.id=e,a.style.fill="inherit",a.style.stroke="inherit",r(i,a),null!=(n=i.childNodes)&&n.length){var o=In(a);"innerHTML"in a?o.html(i.innerHTML):co(i.childNodes).forEach((function(t){r(t,o.append(t.tagName).node())}))}this.$el.defs.node().appendChild(a)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,r=!1;return(Wa(t)||n)&&(r=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(Eo.EXPANDED)>-1&&(n+=" "+Eo.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),r},generateGetLinePoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c);var d=[f,h-(c-l)];return[d,d,d,d]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,r=[],i=Ga(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u,c=t.getTargetSelectorSuffix(o.id||(null==(u=o.data)?void 0:u.id)||o),l=In(this);r.indexOf(c)<0&&r.push(c);var f=i[r.indexOf(c)%i.length];if(t.hasValidPointType(f))f=t[f];else if(!t.hasValidPointDrawMethods(f)){var h=n+"-point"+c;if(t.pointFromDefs(h).size()<1&&t.insertPointInfoDefs(f,h),"create"===e)return t.custom.create.bind(a).apply(void 0,[l,h].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[l].concat(s))}return f[e].bind(a).apply(void 0,[l].concat(s))}}},custom:{create:function(t,e,n,r){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update:function(t,e,n,r,i,a,o){var s=t.node().getBBox(),u=s.width,c=s.height,l=function(t){return Pa(t.value)?e(t)-u/2:0},f=t;return i&&(a&&f.attr("x",l),f=this.$T(f,i,Uh()),o&&this.$T(o,i,Uh())),f.attr("x",l).attr("y",(function(t){return Pa(t.value)?n(t)-c/2:0})).style("fill",r)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=t;return s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),i&&(a&&u.attr("cx",e),u.attr("cx")&&(u=s.$T(u,i,Uh())),o&&s.$T(u,i,Uh())),u.attr("cx",e).attr("cy",n).style("fill",r)}},rectangle:{create:function(t,e,n){var r=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=s.config.point_r,c=function(t){return e(t)-u},l=t;return i&&(a&&l.attr("x",c),l=s.$T(l,i,Uh()),o&&s.$T(o,i,Uh())),l.attr("x",c).attr("y",(function(t){return n(t)-u})).style("fill",r)}}};function Vh(t){var e=t.config.polar_level_max,n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Gh={initPolar:function(){var t=this,e=t.$el.arcs,n=t.config,r=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Xo),r&&i&&t.generateDataLabelBackgroundColorFilter(i)},getPolarOuterRadius:function(t,e){var n=Vh(this);return(null==t?void 0:t.data.values[0].value)/n*e},updateTargetsForPolar:function(t){this.updateTargetsForArc(t)},redrawPolar:function(){this.config.polar_level_show&&this.updatePolarLevel()},updatePolarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.arcs.levels,i=e.polar_level_depth,a=Vh(t),o=yo(0,i),s=n.radius,u=o.map((function(t){return s*((t+1)/i)})),c=(e.polar_level_text_format||function(){}).bind(t.api),l=r.selectAll("."+Bo).data(o);l.exit().remove();var f=l.enter().append("g").attr("class",(function(t,e){return Bo+" "+Bo+"-"+e}));if(f.append("circle"),f.merge(l).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",(function(t){return u[t]})),e.polar_level_text_show){var h=e.polar_level_text_backgroundColor,d="#"+n.datetimeId+"-labels-bg"+t.getTargetSelectorSuffix(h);f.append("text").style("text-anchor","middle"),f.merge(l).selectAll("text").attr("dy",(function(t){return 5-u[t]})).attr("filter",h?"url("+d+")":null).text((function(t){return c(a/o.length*(t+1))}))}}};var Hh=ps,Wh={initRadar:function(){var t=this,e=t.config,n=t.state.current,r=t.$el;t.hasType("radar")&&(r.radar=r.main.select("."+Eo.chart).append("g").attr("class",$o.chartRadars),r.radar.levels=r.radar.append("g").attr("class",Xo),r.radar.axes=r.radar.append("g").attr("class",Mo.axis),r.radar.shapes=r.radar.append("g").attr("class",Vo.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,r=e.arcHeight,i=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,r)-i)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this.config;Va(e.axis_x_categories)&&(e.axis_x_categories=yo(0,vo("max",t.map((function(t){return t.values.length}))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,r){var i=this.config,a=this.getRadarSize(),o=a[0],s=a[1],u=i.axis_x_categories.length,c=i.radar_direction_clockwise,l=co(t).map((function(a){return function(t,e,n,r,i,a){var o=t&&r>0?n-r:r,s=2*Math.PI;return i*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(c,a,u,e,ja(n)?n:"x"===t?o:s,za(r)?r:i.radar_size_ratio)}));return 1===l.length?l[0]:l},generateRadarPoints:function(){var t=this,e=t.data.targets,n=t.getRadarSize(),r=n[0],i=n[1],a=t.cache.get(Hh)||{},o=a._size;(!o||o.width!==r&&o.height!==i)&&(e.forEach((function(e){a[e.id]=e.values.map((function(e,n){return t.getRadarPosition(["x","y"],n,void 0,t.getRatio("radar",e))}))})),a._size={width:r,height:i},t.cache.add(Hh,a))},redrawRadar:function(){var t=this,e=t.$el,n=e.radar,r=e.main,i=t.getTranslate("radar");i&&(n.attr("transform",i),r.select("."+Ho.chartTexts).attr("transform",i),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this.cache.get(Hh);return function(e,n){var r=t[e.id][n];return[r,r,r,r]}},updateRadarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.radar,i=t.getRadarSize(),a=i[0],o=i[1],s=e.radar_level_depth,u=e.axis_x_categories.length,c=e.radar_level_text_show,l=r.levels,f=yo(0,s),h=e.radar_size_ratio*Math.min(a,o),d=f.map((function(t){return h*((t+1)/s)})),g=(e.radar_level_text_format||function(){}).bind(t.api),p=f.map((function(e){var n=d[e];return yo(0,u).map((function(e){return t.getRadarPosition(["x","y"],e,n,1).join(",")})).join(" ")})),v=l.selectAll("."+Bo).data(f);v.exit().remove();var y=v.enter().append("g").attr("class",(function(t,e){return Bo+" "+Bo+"-"+e}));y.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(l.select("text").empty()&&l.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text((function(){return g(0)})),y.append("text").attr("dx","-.5em").style("text-anchor","end").text((function(t){return g(n.current.dataMax/f.length*(t+1))}))),y.merge(v).attr("transform",(function(t){return"translate("+(a-d[t])+", "+(o-d[t])+")"})).selectAll("polygon").attr("points",(function(t){return p[t]})),c&&l.selectAll("text").attr("x",(function(t){return Fa(t)?a:p[t].split(",")[0]})).attr("y",(function(t){return Fa(t)?o:0}))},updateRadarAxes:function(){var t=this,e=t.config,n=t.$el.radar,r=t.getRadarSize(),i=r[0],a=r[1],o=e.axis_x_categories,s=n.axes.selectAll("g").data(o);s.exit().remove();var u=s.enter().append("g").attr("class",(function(t,e){return Mo.axis+"-"+e}));if(e.radar_axis_line_show&&u.append("line"),e.radar_axis_text_show&&u.append("text"),s=u.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",i).attr("y1",a).attr("x2",(function(e,n){return t.getRadarPosition("x",n)})).attr("y2",(function(e,n){return t.getRadarPosition("y",n)})),e.radar_axis_text_show){var c=e.radar_axis_text_position,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h;s.select("text").style("text-anchor","middle").attr("dy",".5em").call((function(t){t.each((function(t){Qa(In(this),t+"",[-.6,1.2])}))})).datum((function(t,e){return{index:e}})).attr("transform",(function(e){Fa(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=t.getRadarPosition("x",e.index,void 0,1),r=Math.round(t.getRadarPosition("y",e.index,void 0,1));return n>i?n+=this.width+f:Math.round(n)<i&&(n-=this.width+f),r>a?(r/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),r+=d):r<a&&(r-=d),"translate("+n+" "+r+")"}))}t.bindEvent()},bindEvent:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.radar,a=r.svg,o=e.point_focus_only,s=n,u=s.inputType,c=s.transiting;if(e.interaction_enabled){var l="mouse"===u,f=function(t){var e=t.target;/tspan/i.test(e.tagName)&&(e=e.parentNode);var n=In(e).datum();return n&&1===Object.keys(n).length?n.index:void 0},h=function(e){n.event=e;var r=f(e),i=Fa(r);(l||i)&&(t.hideTooltip(),o?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,r):i&&t.callOverOutForTouch())};i.axes.selectAll("text").on(l?"mouseover ":"touchstart",(function(e){if(!c){n.event=e;var r=f(e);t.selectRectForSingle(a.node(),null,r),l?t.setOverOut(!0,r):t.callOverOutForTouch(r)}})).on("mouseout",l?h:null),l||a.on("touchstart",h)}},updateRadarShape:function(){var t=this,e=t.data.targets.filter((function(e){return t.isRadarType(e)})),n=t.cache.get(Hh),r=t.$el.radar.shapes.selectAll("polygon").data(e),i=r.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(r.exit()).remove(),i.append("polygon").merge(r).style("fill",t.color).style("stroke",t.color).attr("points",(function(t){return n[t.id].join(" ")})),t.updateTargetForCircle(e,i)},radarCircleX:function(t){return this.cache.get(Hh)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(Hh)[t.id][t.index][1]}},qh={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},Zh={area_above:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Kh={bar_label_threshold:0,bar_indices_removeNull:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},Jh={bubble_maxR:35,bubble_zerobased:!1},Qh={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},td={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},ed={scatter_zerobased:!1},nd={spline_interpolation_type:"cardinal"},rd={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},id={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},ad={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},od={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},sd={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1};function ud(t,e){so(sf.prototype,fh.concat(t)),so(xf.prototype,lh),us.setOptions(hh.concat(e||[]))}function cd(t,e){ud([Yh,$h].concat(t||[])),us.setOptions([qh,td].concat(e||[]))}function ld(t,e){so(sf.prototype,[Ih].concat(t||[])),us.setOptions(e)}var fd=function(){return cd(Nh,[Zh]),(fd=function(){return Dn.AREA})()},hd=function(){return cd(Nh,[Zh]),(hd=function(){return Dn.AREA_LINE_RANGE})()},dd=function(){return cd(Nh,[Zh,nd]),(dd=function(){return Dn.AREA_SPLINE})()},gd=function(){return cd(Nh,[Zh,nd]),(gd=function(){return Dn.AREA_SPLINE_RANGE})()},pd=function(){return cd(Nh,[Zh]),(pd=function(){return Dn.AREA_STEP})()},vd=function(){return cd(),(vd=function(){return Dn.LINE})()},yd=function(){return cd(void 0,[nd]),(yd=function(){return Dn.SPLINE})()},xd=function(){return cd(),(xd=function(){return Dn.STEP})()},_d=function(){return ld(void 0,[rd]),(_d=function(){return Dn.DONUT})()},md=function(){return ld([Bh],[id]),(md=function(){return Dn.GAUGE})()},bd=function(){return ld(void 0,[ad]),(bd=function(){return Dn.PIE})()},wd=function(){return ld([Gh],[od]),(wd=function(){return Dn.POLAR})()},Td=function(){return ld([Yh,Wh],[qh,sd]),(Td=function(){return Dn.RADAR})()},Ad=function(){return ud([zh],Kh),(Ad=function(){return Dn.BAR})()},Ed=function(){return ud([Yh,Xh],[Jh,qh]),(Ed=function(){return Dn.BUBBLE})()},Sd=function(){return ud([jh],[Qh]),(Sd=function(){return Dn.CANDLESTICK})()},kd=function(){return ud([Yh],[qh,ed]),(kd=function(){return Dn.SCATTER})()},Md={selected:function(t){var e=this.internal,n=[];return e.$el.main.selectAll("."+(Vo.shapes+e.getTargetSelectorSuffix(t))).selectAll("."+Vo.shape).filter((function(){return In(this).classed(Yo.SELECTED)})).each((function(t){return n.push(t)})),n},select:function(t,e,n){var r=this.internal,i=r.config,a=r.$el;i.data_selection_enabled&&a.main.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).each((function(a,o){var s=In(this),u=a.data?a.data.id:a.id,c=r.getToggle(this,a).bind(r),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(Yo.SELECTED);s.classed(No.line)||s.classed(ko.area)||(l&&f?i.data_selection_isselectable.bind(r.api)(a)&&!h&&c(!0,s.classed(Yo.SELECTED,!0),a,o):ja(n)&&n&&h&&c(!1,s.classed(Yo.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,r=n.config,i=n.$el;r.data_selection_enabled&&i.main.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).each((function(i,a){var o=In(this),s=i.data?i.data.id:i.id,u=n.getToggle(this,i).bind(n),c=r.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,f=o.classed(Yo.SELECTED);o.classed(No.line)||o.classed(ko.area)||c&&l&&r.data_selection_isselectable.bind(n.api)(i)&&f&&u(!1,o.classed(Yo.SELECTED,!1),i,a)}))}},Od={subchart:{show:function(){var t=this.internal,e=t.$el.subchart,n=t.config,r=n.subchart_show;if(!r){var i,a;t.unbindZoomEvent(),n.subchart_show=!r,e.main||t.initSubchart();var o,s=e.main.selectAll("."+Eo.target);if(t.data.targets.length!==s.size())t.updateSizes(),t.updateTargetsForSubchart(t.data.targets),s=null==(o=e.main)?void 0:o.selectAll("."+Eo.target);null==(i=s)||i.style("opacity",null),null==(a=e.main)||a.style("display",null),this.resize()}},hide:function(){var t,e=this.internal,n=e.$el.subchart.main,r=e.config;r.subchart_show&&"none"!==(null==(t=n)?void 0:t.style("display"))&&(r.subchart_show=!1,n.style("display","none"),this.resize())},toggle:function(){var t=this.internal.config;this.subchart[t.subchart_show?"hide":"show"]()}}};function Rd(t){return((t=Math.exp(t))+1/t)/2}var Cd=function t(e,n,r){function i(t,i){var a,o,s=t[0],u=t[1],c=t[2],l=i[0],f=i[1],h=i[2],d=l-s,g=f-u,p=d*d+g*g;if(p<1e-12)o=Math.log(h/c)/e,a=function(t){return[s+t*d,u+t*g,c*Math.exp(e*t*o)]};else{var v=Math.sqrt(p),y=(h*h-c*c+r*p)/(2*c*n*v),x=(h*h-c*c-r*p)/(2*h*n*v),_=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(x*x+1)-x);o=(m-_)/e,a=function(t){var r=t*o,i=Rd(_),a=c/(n*v)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+a*d,u+a*g,c*i/Rd(e*r+_)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),Id=function(t){return function(){return t}};function Ld(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Pd(t,e,n){this.k=t,this.x=e,this.y=n}Pd.prototype={constructor:Pd,scale:function(t){return 1===t?this:new Pd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Pd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Dd=new Pd(1,0,0);function Nd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Dd;return t.__zoom}function zd(t){t.stopImmediatePropagation()}function Fd(t){t.preventDefault(),t.stopImmediatePropagation()}function jd(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Bd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Xd(){return this.__zoom||Dd}function $d(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ud(){return navigator.maxTouchPoints||"ontouchstart"in this}function Yd(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}Nd.prototype=Pd.prototype;var Vd=function(t){var e=this.internal,n=e.$el,r=e.axis,i=e.config,a=e.org,o=e.scale,s=i.axis_rotated,u=r.isCategorized(),c=t;if(i.zoom_enabled&&c){if(r.isTimeSeries()&&(c=c.map((function(t){return mo.bind(e)(t)}))),function(t,e,n){var r=n[0],i=n[1];return t.every((function(n,a){return(0===a?n>=r:n<=i)&&!t.every((function(t,n){return t===e[n]}))}))}(c,e.getZoomDomain(!0),e.getZoomDomain())){if(u&&(c=c.map((function(t,e){return+t+(0===e?0:1)}))),e.api.tooltip.hide(),i.subchart_show){var l=o.zoom||o.x;e.brush.getSelection().call(e.brush.move,c.map(l))}else{var f,h=u?o.x.orgScale():a.xScale||o.x,d=[-h(c[0]),0],g=(f=Dd.scale(h.range()[1]/(h(c[1])-h(c[0])))).translate.apply(f,s?d.reverse():d);n.eventRect.call(e.zoom.transform,g)}e.setZoomResetButton()}}else c=o.zoom?o.zoom.domain():o.x.orgDomain();return c};so(Vd,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=vo("max",[r[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=vo("min",[r[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Wa(t)){var n=t.min,r=t.max;ja(n)&&e.min(n),ja(r)&&e.max(r)}return{min:e.min(),max:e.max()}}});var Gd={zoom:Vd,unzoom:function(){var t,e=this.internal,n=e.config,r=e.$el,i=r.eventRect,a=r.zoomResetBtn;e.scale.zoom&&(n.subchart_show?e.brush.getSelection().call(e.brush.move,null):e.zoom.updateTransformScale(Dd),e.updateZoom(!0),null==(t=a)||t.style("display","none"),Nd(i.node())!==Dd&&e.zoom.transform(i,Dd))}},Hd={drag:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=r.dragStart||[0,0],u=s[0],c=s[1],l=t[0],f=t[1],h=Math.min(u,l),d=Math.max(u,l),g=a?r.margin.top:Math.min(c,f),p=a?r.height:Math.max(c,f);i.select("."+Lo.dragarea).attr("x",h).attr("y",g).attr("width",d-h).attr("height",p-g),i.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).filter((function(t){var n;return null==(n=o)?void 0:n.bind(e.api)(t)})).each((function(t,n){var r,i=In(this),a=i.classed(Yo.SELECTED),o=i.classed(Lo.INCLUDED),s=!1;if(i.classed(Co.circle)){var u=1*+i.attr("cx"),c=1*+i.attr("cy");r=e.togglePoint,s=h<u&&u<d&&g<c&&c<p}else{if(!i.classed(Oo.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height,i=to(t);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}(this),f=l.x,v=(c=l.y,l.width),y=l.height;r=e.togglePath,s=!(d<f||f+v<h||p<c||c+y<g)}s^o&&(i.classed(Lo.INCLUDED,!o),i.classed(Yo.SELECTED,!a),r.call(e,!a,i,t,n))}))}},dragstart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(r.dragStart=t,i.select("."+Eo.chart).append("rect").attr("class",Lo.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,r=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(r(n.select("."+Lo.dragarea)).style("opacity","0").remove(),n.selectAll("."+Vo.shape).classed(Lo.INCLUDED,!1),t.setDragStatus(!1))}};function Wd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qd(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Wd(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Wd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Zd=qd(qd({},Hd),{},{selectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T,s=i.axis_rotated,u=(s?r.circleY:r.circleX).bind(r),c=(s?r.circleX:r.circleY).bind(r),l=r.pointSelectR.bind(r);Za(i.data_onselected,r.api,e,t.node()),o(a.select("."+Yo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Yo.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",(function(){return r.generateClass(Yo.selectedCircle,n)})).attr("cx",u).attr("cy",c).attr("stroke",r.color).attr("r",(function(t){return 1.4*r.pointSelectR(t)}))).attr("r",l)},unselectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T;Za(i.data_onunselected,r.api,e,t.node()),o(a.select("."+Yo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Yo.selectedCircle+"-"+n)).attr("r",0).remove()},togglePoint:function(t,e,n,r){this[(t?"":"un")+"selectPoint"](e,n,r)},selectPath:function(t,e){var n=this.config;Za(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this.config;Za(n.data_onunselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,r){this[(t?"":"un")+"selectPath"](e,n,r)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var r=this,i=r.config,a=r.$el.main;if(i.data_selection_enabled&&i.data_selection_isselectable.bind(r.api)(e)){var o,s=In(t),u=s.classed(Yo.SELECTED),c=r.getToggle(t,e).bind(r);if(!i.data_selection_multiple){var l="."+Vo.shapes;i.data_selection_grouped&&(l+=r.getTargetSelectorSuffix(e.id)),a.selectAll(l).selectAll("."+Vo.shape).each((function(t,e){var n=In(this);n.classed(Yo.SELECTED)&&(o=n,c(!1,n.classed(Yo.SELECTED,!1),t,e))}))}o&&o.node()===s.node()||(s.classed(Yo.SELECTED,!u),c(!u,s,e,n))}}}),Kd={initBrush:function(){var t,e,n=this,r=n.config,i=n.scale,a=n.$el.subchart,o=r.axis_rotated;n.brush=Ca(o?xa:ya).handleSize(5);n.brush.on("start brush end",(function(e){var r=e.selection,a=e.target,s=e.type;"start"===s&&"touch"===n.state.inputType&&n.hideTooltip(),/(start|brush)/.test(s)&&n.redrawForBrush(),"end"===s&&(t=i.x.orgDomain()),null!=a&&a.handle&&(null===r?n.brush.handle.attr("display","none"):n.brush.handle.attr("display",null).attr("transform",(function(t,e){return"translate("+(o?[33,r[e]-(0===e?30:24)]:[r[e],3])+")"})))})),n.brush.updateResize=function(){var n=this;e&&clearTimeout(e),e=setTimeout((function(){var e=n.getSelection();t&&Ra(e.node())&&n.move(e,t.map(i.subX.orgScale()))}),0)},n.brush.update=function(){var t;0===this.extent()()[1].filter((function(t){return isNaN(t)})).length&&(null==(t=a.main)||t.select("."+Zo.brush).call(this));return this},n.brush.scale=function(t){var e=r.subchart_size_height||function(){var t=n.$el.svg.select("."+Zo.brush+" .overlay"),e={width:0,height:0};return t.size()&&(e.width=+t.attr("width"),e.height=+t.attr("height")),e[o?"width":"height"]}(),i=n.getExtent();!i&&t.range?i=[[0,0],[t.range()[1],e]]:Ha(i)&&(i=i.map((function(t,n){return[t,n>0?e:n]}))),o&&i[1].reverse(),this.extent(i),this.update()},n.brush.getSelection=function(){return a.main?a.main.select("."+Zo.brush):In([])}},initSubchart:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.hasAxis,a=t.$el,o=a.defs,s=a.svg,u=a.subchart,c=a.axis;if(i){var l=e.subchart_show?null:"hidden",f=r.id+"-subchart",h=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),u.main=s.append("g").classed(Zo.subchart,!0).attr("transform",t.getTranslate("context"));var d=u.main;d.style("visibility",l),d.append("g").attr("clip-path",h).attr("class",Zo.chart),["bar","line","bubble","candlestick","scatter"].forEach((function(e){var n=uo(/^(bubble|scatter)$/.test(e)?"circle":e);if(t.hasType(e)||t.hasTypeOf(n)){var r=d.select("."+Zo.chart),i=Zo["chart"+n+"s"];r.select("."+i).empty()&&r.append("g").attr("class",i)}}));var g=d.append("g").attr("clip-path",h).attr("class",Zo.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(g),c.subX=d.append("g").attr("class",Zo.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?l:"hidden")}},addBrushHandle:function(t){var e=this.config,n=e.axis_rotated,r=e.subchart_init_range,i="handle--custom",a=n?["M 5.2491724,29.749209 a 6,6 0 0 0 -5.50000003,-6.5 H -5.7508276 a 6,6 0 0 0 -6.0000004,6.5 z m -5.00000003,-2 H -6.7508276 m 6.99999997,-2 H -6.7508276Z","M 5.2491724,23.249172 a 6,-6 0 0 1 -5.50000003,6.5 H -5.7508276 a 6,-6 0 0 1 -6.0000004,-6.5 z m -5.00000003,2 H -6.7508276 m 6.99999997,2 H -6.7508276Z"]:["M 0 18 A 6 6 0 0 0 -6.5 23.5 V 29 A 6 6 0 0 0 0 35 Z M -2 23 V 30 M -4 23 V 30Z","M 0 18 A 6 6 0 0 1 6.5 23.5 V 29 A 6 6 0 0 1 0 35 Z M 2 23 V 30 M 4 23 V 30Z"];this.brush.handle=t.selectAll(".handle--custom").data(n?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",i).attr("cursor",(n?"ns":"ew")+"-resize").attr("d",(function(t){return a[+/[se]/.test(t.type)]})).attr("display",r?null:"none")},updateTargetsForSubchart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.subchart.main;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter((function(t){return e.hasType(t)||e.hasTypeOf(uo(t))})).forEach((function(n){var r=/^(bubble|scatter)$/.test(n),a=uo(r?"circle":n),o=e.getChartClass(a,!0),s=e.getClass(r?"circles":n+"s",!0),u=i.select("."+Zo["chart"+a+"s"]);if(r){var c=u.selectAll("."+Zo.circles).data(t.filter(e["is"+uo(n)+"Type"].bind(e))).attr("class",s);c.exit().remove(),c.enter().append("g").attr("class",s)}else{var l=u.selectAll("."+Zo["chart"+a]).attr("class",o).data(t.filter(e["is"+a+"Type"].bind(e))),f=l.enter().append("g").style("opacity","0").attr("class",o).append("g").attr("class",s);l.exit().remove(),"line"===n&&e.hasTypeOf("Area")&&f.append("g").attr("class",e.getClass("areas",!0))}})),i.selectAll("."+Zo.brush+" rect").attr(n.axis_rotated?"width":"height",n.axis_rotated?r.width2:r.height2))},redrawSubchart:function(t,e,n){var r,i=this,a=i.config,o=i.$el.subchart.main,s=i.state,u=!!e;if((o.style("visibility",a.subchart_show?null:"hidden"),a.subchart_show)&&("zoom"===(null==(r=s.event)?void 0:r.type)&&i.brush.update(),t)){var c=a.subchart_init_range;if(oo(i)||i.brush.update(),Object.keys(n.type).forEach((function(t){var e=uo(t),r=i["generateDraw"+e](n.indices[t],!0);i["update"+e](u,!0),i["redraw"+e](r,u,!0)})),i.hasType("bubble")||i.hasType("scatter")){var l=n.pos.cx,f=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(l,f,u,void 0,!0)}!s.rendered&&c&&i.brush.move(i.brush.getSelection(),c.map(i.scale.x))}},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,r=e.zoom_rescale,i=t.scale;t.redraw({withTransition:!1,withY:r,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(i.x.orgDomain())},transformContext:function(t,e){var n=this,r=n.$el.subchart,i=n.$T,a=null!=e&&e.axisSubX?e.axisSubX:i(r.main.select("."+Zo.axisX),t);r.main.attr("transform",n.getTranslate("context")),a.attr("transform",n.getTranslate("subX"))},getExtent:function(){var t=this,e=t.config,n=t.scale,r=e.axis_x_extent;if(r)if(Da(r))r=r.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&r.every(isNaN)){var i=mo.bind(t);r=r.map((function(t){return n.subX(i(t))}))}return r}},Jd={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config;n.zoom_enabled&&t?n.subchart_show||e.bindZoomOnEventRect():!1===t&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom:function(){var t=this,e=t.config,n=t.org,r=t.scale,i=function(){var t,e,n,r=jd,i=Bd,a=Yd,o=$d,s=Ud,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Cd,h=Gn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",Xd).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",E).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Pd(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Pd(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n,r){t.on("start.zoom",(function(){m(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,a=arguments,o=m(t,a).event(r),s=i.apply(t,a),u=null==n?x(s):"function"==typeof n?n.apply(t,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,a):e,d=f(l.invert(u).concat(c/l.k),h.invert(u).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=c/e[2];t=new Pd(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function w(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=m(this,n).event(t),l=this.__zoom,f=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,o.apply(this,arguments)))),h=jn(t);if(s.wheel)s.mouse[0][0]===h[0]&&s.mouse[0][1]===h[1]||(s.mouse[1]=l.invert(s.mouse[0]=h)),clearTimeout(s.wheel);else{if(l.k===f)return;s.mouse=[h,l.invert(h)],gi(this),s.start()}Fd(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",a(y(v(l,f),s.mouse[0],s.mouse[1]),s.extent,c))}}function T(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];if(!n&&r.apply(this,arguments)){var s=t.currentTarget,u=m(this,i,!0).event(t),l=In(t.view).on("mousemove.zoom",p,!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),Jn(t.view,u.moved),Fd(t),u.event(t).end()}),!0),f=jn(t,s),h=t.clientX,g=t.clientY;Kn(t.view),zd(t),u.mouse=[f,this.__zoom.invert(f)],gi(this),u.start()}function p(t){if(Fd(t),!u.moved){var e=t.clientX-h,n=t.clientY-g;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",a(y(u.that.__zoom,u.mouse[0]=jn(t,s),u.mouse[1]),u.extent,c))}}function A(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var s=this.__zoom,u=jn(t.changedTouches?t.changedTouches[0]:t,this),f=s.invert(u),h=s.k*(t.shiftKey?.5:2),d=a(y(v(s,h),u,f),i.apply(this,n),c);Fd(t),l>0?In(this).transition().duration(l).call(_,d,u,t):In(this).call(p.transform,d,u,t)}}function E(n){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(r.apply(this,arguments)){var s,u,c,l,f=n.touches,h=f.length,d=m(this,a,n.changedTouches.length===h).event(n);for(zd(n),u=0;u<h;++u)l=[l=jn(c=f[u],this),this.__zoom.invert(l),c.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,s=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(d.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),gi(this),d.start())}}function S(t){if(this.__zooming){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,o,s,u,l=m(this,n).event(t),f=t.changedTouches,h=f.length;for(Fd(t),i=0;i<h;++i)s=jn(o=f[i],this),l.touch0&&l.touch0[2]===o.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===o.identifier&&(l.touch1[0]=s);if(o=l.that.__zoom,l.touch1){var d=l.touch0[0],g=l.touch0[1],p=l.touch1[0],x=l.touch1[1],_=(_=p[0]-d[0])*_+(_=p[1]-d[1])*_,b=(b=x[0]-g[0])*b+(b=x[1]-g[1])*b;o=v(o,Math.sqrt(_/b)),s=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(g[0]+x[0])/2,(g[1]+x[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",a(y(o,s,u),l.extent,c))}}function k(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(this.__zooming){var o,s,u=m(this,i).event(t),c=t.changedTouches,l=c.length;for(zd(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<l;++o)s=c[o],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=jn(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var f=In(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return p.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",Xd),t!==i?_(t,e,n,r):i.interrupt().each((function(){m(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},p.scaleBy=function(t,e,n,r){p.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},p.scaleTo=function(t,e,n,r){p.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,o=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(o),u="function"==typeof e?e.apply(this,arguments):e;return a(y(v(r,u),o,s),t,c)}),n,r)},p.translateBy=function(t,e,n,r){p.transform(t,(function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},p.translateTo=function(t,e,n,r,o){p.transform(t,(function(){var t=i.apply(this,arguments),o=this.__zoom,s=null==r?x(t):"function"==typeof r?r.apply(this,arguments):r;return a(Dd.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),r,o)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=In(this.that).datum();h.call(t,this.that,new Ld(t,{sourceEvent:this.sourceEvent,target:p,type:t,transform:this.that.__zoom,dispatch:h}),e)}},p.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:Id(+t),p):o},p.filter=function(t){return arguments.length?(r="function"==typeof t?t:Id(!!t),p):r},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:Id(!!t),p):s},p.extent=function(t){return arguments.length?(i="function"==typeof t?t:Id([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):i},p.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],p):[u[0],u[1]]},p.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],p):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},p.constrain=function(t){return arguments.length?(a=t,p):a},p.duration=function(t){return arguments.length?(l=+t,p):l},p.interpolate=function(t){return arguments.length?(f=t,p):f},p.on=function(){var t=h.on.apply(h,arguments);return t===h?p:t},p.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,p):Math.sqrt(d)},p.tapDistance=function(t){return arguments.length?(g=+t,p):g},p}().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=function(){var n=e.zoom_extent||[1,10];return[n[0],Math.max(t.getMaxDataCount()/n[1],n[1])]},i.updateScaleExtent=function(){var e=Ua(t.scale.x.orgDomain())/Ua(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this},i.updateTransformScale=function(i){var a;null==(a=n.xScale)||a.range(r.x.range());var o=i[e.axis_rotated?"rescaleY":"rescaleX"](n.xScale||r.x),s=t.trimXDomain(o.domain()),u=e.zoom_rescale;o.domain(s,n.xDomain),t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),r.zoom=t.getCustomizedScale(o),t.axis.x.scale(r.zoom),u&&(n.xScale||(n.xScale=r.x.copy()),r.x.domain(s))},i.getDomain=function(){var e=r[r.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(e[1]-=2),e},t.zoom=i},onZoomStart:function(t){var e=this,n=t.sourceEvent;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Za(e.config.zoom_onzoomstart,e.api,t))},onZoom:function(t){var e,n,r,i,a=this,o=a.config,s=a.scale,u=a.state,c=a.org,l=t.sourceEvent,f=(null==t?void 0:t.transform)===Dd;if(!(!o.zoom_enabled||0===a.filterTargetsToShow(a.data.targets).length||!s.zoom&&(null==(e=l)?void 0:e.type.indexOf("touch"))>-1&&1===(null==(n=l)?void 0:n.touches.length))){t.sourceEvent&&(u.zooming=!0);var h="mousemove"===(null==(r=l)?void 0:r.type),d=(null==(i=l)?void 0:i.wheelDelta)<0,g=t.transform;!h&&d&&s.x.domain().every((function(t,e){return t!==c.xDomain[e]}))&&s.x.domain(c.xDomain),a.zoom.updateTransformScale(g);var p=o.transition_duration>0&&!o.subchart_show&&(u.dragging||f||!t.sourceEvent);a.redraw({withTransition:p,withY:o.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),a.state.cancelClick=h,f||Za(o.zoom_onzoom,a.api,a.zoom.getDomain())}},onZoomEnd:function(t){var e,n,r,i=this,a=i.config,o=i.state,s=i.zoom.startEvent,u=null==t?void 0:t.sourceEvent,c=(null==t?void 0:t.transform)===Dd;(null==(e=s)?void 0:e.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],u=null==(n=u)||null==(r=n.changedTouches)?void 0:r[0]);"drag"===a.zoom_type&&u&&s.clientX===u.clientX&&s.clientY===u.clientY||(i.redrawEventRect(),i.updateZoom(),o.zooming=!1,!c&&(u||o.dragging)&&Za(a.zoom_onzoomend,i.api,i.zoom.getDomain()))},updateZoom:function(t){var e=this,n=e.scale,r=n.subX,i=n.x,a=n.zoom;if(a){var o=a.domain(),s=r.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(r),i.domain(r.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(){var t=this,e=t.config,n=t.$el.eventRect,r="drag"===e.zoom_type?t.zoomBehaviour:t.zoom;t.$el.svg.on("wheel",(function(){})),n.call(r).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=e.config,r=e.state,i=n.axis_rotated,a=0,o=0,s={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=Vs().clickDistance(4).on("start",(function(n){r.event=n,e.setDragStatus(!0),e.unselectRect(),t||(t=e.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",qo.zoomBrush).attr("width",i?r.width:0).attr("height",i?0:r.height)),a=eo(n,this)[s.index],o=a,t.attr(s.axis,a).attr(s.attr,0),e.onZoomStart(n)})).on("drag",(function(e){o=eo(e,this)[s.index],t.attr(s.axis,Math.min(a,o)).attr(s.attr,Math.abs(o-a))})).on("end",(function(n){var i=e.scale.zoom||e.scale.x;if(r.event=n,t.attr(s.axis,0).attr(s.attr,0),a>o){var u=[o,a];a=u[0],o=u[1]}a<0&&(o+=Math.abs(a),a=0),a!==o&&e.api.zoom([a,o].map((function(t){return i.invert(t)}))),e.setDragStatus(!1)}))},setZoomResetButton:function(){var t=this,e=t.config,n=t.$el,r=e.zoom_resetButton;r&&"drag"===e.zoom_type&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Eo.button,!0).append("span").on("click",(function(){Da(r.onclick)&&r.onclick.bind(t.api)(this),t.api.unzoom()})).classed(qo.buttonZoomReset,!0).text(r.text||"Reset Zoom"))}},Qd={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){},data_onunselected:function(){}},tg={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:function(){}},eg={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0},ng=function(){return so(sf.prototype,Zd),so(xf.prototype,Md),us.setOptions([Qd]),(ng=function(){return!0})()},rg=function(){return so(sf.prototype,Kd),so(xf.prototype,Od),us.setOptions([tg]),(rg=function(){return!0})()},ig=function(){return so(sf.prototype,Jd),so(xf.prototype,Gd),us.setOptions([eg]),(ig=function(){return!0})()},ag={},og={version:"3.4.0-next.1",generate:function(t){var e=go({},ag,t),n=new xf(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Wa(t)&&(ag=t),ag},instance:[],plugin:{}};Object.keys(r).forEach((function(t){return r[t]()})),Object.keys(i).forEach((function(t){return i[t]()}))},function(t,e,n){t.exports=n(449)},function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(t,e,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw a;return R()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?g:h,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",p={};function v(){}function y(){}function x(){}var _={};u(_,a,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==n&&r.call(b,a)&&(_=b);var w=x.prototype=v.prototype=Object.create(_);function T(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,a,o,s){var u=l(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function a(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(a,a):a()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=x,u(w,"constructor",x),u(x,"constructor",y),y.displayName=u(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(A.prototype),u(A.prototype,o,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new A(c(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(447)}()}));
|
|
24
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(){var t=[function(t,e,n){n(1),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(109),n(111),n(120),n(121),n(123),n(125),n(127),n(129),n(131),n(132),n(133),n(134),n(136),n(137),n(139),n(143),n(144),n(145),n(146),n(150),n(151),n(153),n(154),n(155),n(158),n(159),n(160),n(161),n(162),n(167),n(169),n(170),n(171),n(172),n(179),n(181),n(184),n(185),n(186),n(187),n(188),n(189),n(193),n(194),n(196),n(197),n(198),n(200),n(201),n(202),n(203),n(204),n(205),n(212),n(214),n(215),n(216),n(218),n(219),n(221),n(222),n(224),n(225),n(226),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(239),n(240),n(242),n(244),n(245),n(246),n(247),n(248),n(250),n(252),n(253),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(263),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(285),n(286),n(287),n(288),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(326),n(327),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(337),n(340),n(341),n(342),n(343),n(347),n(348),n(350),n(351),n(352),n(353),n(355),n(356),n(357),n(358),n(359),n(360),n(362),n(363),n(364),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(425),n(426),n(428),n(429),n(432),n(433),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(446),n(445),n(79)},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(21),o=n(64),s=n(7),u=n(13),c=n(33),l=n(5),f=n(24),h=n(6),d=n(36),g=n(65),p=n(19),v=n(18),y=n(22),x=n(20),_=n(44),m=n(37),b=n(11),w=n(16),T=n(66),A=n(10),E=n(69),S=n(71),k=n(54),M=n(73),O=n(62),R=n(4),C=n(42),I=n(70),L=n(9),P=n(76),D=n(45),N=n(32),z=n(49),F=n(50),j=n(38),B=n(31),X=n(77),$=n(78),U=n(80),Y=n(47),V=n(81).forEach,G=z("hidden"),H="Symbol",W=B("toPrimitive"),q=Y.set,Z=Y.getterFor(H),K=Object.prototype,J=i.Symbol,Q=J&&J.prototype,tt=i.TypeError,et=i.QObject,nt=a("JSON","stringify"),rt=R.f,it=C.f,at=M.f,ot=L.f,st=u([].push),ut=N("symbols"),ct=N("op-symbols"),lt=N("string-to-symbol-registry"),ft=N("symbol-to-string-registry"),ht=N("wks"),dt=!et||!et.prototype||!et.prototype.findChild,gt=l&&h((function(){return 7!=E(it({},"a",{get:function(){return it(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=rt(K,e);r&&delete K[e],it(t,e,n),r&&t!==K&&it(K,e,r)}:it,pt=function(t,e){var n=ut[t]=E(Q);return q(n,{type:H,tag:t,description:e}),l||(n.description=e),n},vt=function(t,e,n){t===K&&vt(ct,e,n),_(t);var r=w(e);return _(n),d(ut,r)?(n.enumerable?(d(t,G)&&t[G][r]&&(t[G][r]=!1),n=E(n,{enumerable:A(0,!1)})):(d(t,G)||it(t,G,A(1,{})),t[G][r]=!0),gt(t,r,n)):it(t,r,n)},yt=function(t,e){_(t);var n=b(e),r=S(n).concat(bt(n));return V(r,(function(e){l&&!s(xt,n,e)||vt(t,e,n[e])})),t},xt=function(t){var e=w(t),n=s(ot,this,e);return!(this===K&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,G)&&this[G][e])||n)},_t=function(t,e){var n=b(t),r=w(e);if(n!==K||!d(ut,r)||d(ct,r)){var i=rt(n,r);return!i||!d(ut,r)||d(n,G)&&n[G][r]||(i.enumerable=!0),i}},mt=function(t){var e=at(b(t)),n=[];return V(e,(function(t){d(ut,t)||d(F,t)||st(n,t)})),n},bt=function(t){var e=t===K,n=at(e?ct:b(t)),r=[];return V(n,(function(t){!d(ut,t)||e&&!d(K,t)||st(r,ut[t])})),r};(f||(J=function(){if(y(Q,this))throw tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?T(arguments[0]):void 0,e=j(t),n=function(t){this===K&&s(n,ct,t),d(this,G)&&d(this[G],e)&&(this[G][e]=!1),gt(this,e,A(1,t))};return l&&dt&>(K,e,{configurable:!0,set:n}),pt(e,t)},D(Q=J.prototype,"toString",(function(){return Z(this).tag})),D(J,"withoutSetter",(function(t){return pt(j(t),t)})),L.f=xt,C.f=vt,I.f=yt,R.f=_t,k.f=M.f=mt,O.f=bt,X.f=function(t){return pt(B(t),t)},l&&(it(Q,"description",{configurable:!0,get:function(){return Z(this).description}}),c||D(K,"propertyIsEnumerable",xt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),V(S(ht),(function(t){$(t)})),r({target:H,stat:!0,forced:!f},{for:function(t){var e=T(t);if(d(lt,e))return lt[e];var n=J(e);return lt[e]=n,ft[n]=e,n},keyFor:function(t){if(!x(t))throw tt(t+" is not a symbol");if(d(ft,t))return ft[t]},useSetter:function(){dt=!0},useSimple:function(){dt=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!l},{create:function(t,e){return void 0===e?E(t):yt(E(t),e)},defineProperty:vt,defineProperties:yt,getOwnPropertyDescriptor:_t}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:mt,getOwnPropertySymbols:bt}),r({target:"Object",stat:!0,forced:h((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(m(t))}}),nt)&&r({target:"JSON",stat:!0,forced:!f||h((function(){var t=J();return"[null]"!=nt([t])||"{}"!=nt({a:t})||"{}"!=nt(Object(t))}))},{stringify:function(t,e,n){var r=P(arguments),i=e;if((v(e)||void 0!==t)&&!x(t))return g(e)||(e=function(t,e){if(p(i)&&(e=s(i,this,t,e)),!x(e))return e}),r[1]=e,o(nt,null,r)}});if(!Q[W]){var wt=Q.valueOf;D(Q,W,(function(t){return s(wt,this)}))}U(J,H),F[G]=!0},function(t,e,n){var r=n(3),i=n(4).f,a=n(41),o=n(45),s=n(35),u=n(52),c=n(63);t.exports=function(t,e){var n,l,f,h,d,g=t.target,p=t.global,v=t.stat;if(n=p?r:v?r[g]||s(g,{}):(r[g]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(n,l,h,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var r=n(5),i=n(7),a=n(9),o=n(10),s=n(11),u=n(16),c=n(36),l=n(39),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},function(t,e,n){var r=n(6);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(8),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(6);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(12),i=n(15);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(3),i=n(13),a=n(6),o=n(14),s=r.Object,u=i("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t,e,n){var r=n(8),i=Function.prototype,a=i.bind,o=i.call,s=r&&a.bind(o,o);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e,n){var r=n(13),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e,n){var r=n(3).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(17),i=n(20);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(3),i=n(7),a=n(18),o=n(20),s=n(27),u=n(30),c=n(31),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!a(t)||o(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!a(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(19);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(3),i=n(21),a=n(19),o=n(22),s=n(23),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return a(e)&&o(e.prototype,u(t))}},function(t,e,n){var r=n(3),i=n(19),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(13);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(24);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(25),i=n(6);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,a=n(3),o=n(26),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){var r=n(21);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(28);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(3),i=n(19),a=n(29),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a function")}},function(t,e,n){var r=n(3).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(3),i=n(7),a=n(19),o=n(18),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&a(n=t.toString)&&!o(r=i(n,t)))return r;if(a(n=t.valueOf)&&!o(r=i(n,t)))return r;if("string"!==e&&a(n=t.toString)&&!o(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),i=n(32),a=n(36),o=n(38),s=n(24),u=n(23),c=i("wks"),l=r.Symbol,f=l&&l.for,h=u?l:l&&l.withoutSetter||o;t.exports=function(t){if(!a(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&a(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):h(e)}return c[t]}},function(t,e,n){var r=n(33),i=n(34);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){t.exports=!1},function(t,e,n){var r=n(3),i=n(35),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},function(t,e,n){var r=n(3),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(13),i=n(37),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},function(t,e,n){var r=n(3),i=n(15),a=r.Object;t.exports=function(t){return a(i(t))}},function(t,e,n){var r=n(13),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},function(t,e,n){var r=n(5),i=n(6),a=n(40);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),i=n(18),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var r=n(5),i=n(42),a=n(10);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(3),i=n(5),a=n(39),o=n(43),s=n(44),u=n(16),c=r.TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",g="writable";e.f=i?o?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&g in n&&!n.writable){var r=f(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:d in n?n.configurable:r.configurable,enumerable:h in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),a)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(5),i=n(6);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var r=n(3),i=n(18),a=r.String,o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not an object")}},function(t,e,n){var r=n(3),i=n(19),a=n(36),o=n(41),s=n(35),u=n(46),c=n(47),l=n(51).CONFIGURABLE,f=c.get,h=c.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var c,f=!!u&&!!u.unsafe,g=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:e;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||l&&n.name!==v)&&o(n,"name",v),(c=h(n)).source||(c.source=d.join("string"==typeof v?v:""))),t!==r?(f?!p&&t[e]&&(g=!0):delete t[e],g?t[e]=n:o(t,e,n)):g?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&f(this).source||u(this)}))},function(t,e,n){var r=n(13),i=n(19),a=n(34),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var r,i,a,o=n(48),s=n(3),u=n(13),c=n(18),l=n(41),f=n(36),h=n(34),d=n(49),g=n(50),p="Object already initialized",v=s.TypeError,y=s.WeakMap;if(o||h.state){var x=h.state||(h.state=new y),_=u(x.get),m=u(x.has),b=u(x.set);r=function(t,e){if(m(x,t))throw new v(p);return e.facade=t,b(x,t,e),e},i=function(t){return _(x,t)||{}},a=function(t){return m(x,t)}}else{var w=d("state");g[w]=!0,r=function(t,e){if(f(t,w))throw new v(p);return e.facade=t,l(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},a=function(t){return f(t,w)}}t.exports={set:r,get:i,has:a,enforce:function(t){return a(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(3),i=n(19),a=n(46),o=r.WeakMap;t.exports=i(o)&&/native code/.test(a(o))},function(t,e,n){var r=n(32),i=n(38),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},function(t){t.exports={}},function(t,e,n){var r=n(5),i=n(36),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(36),i=n(53),a=n(4),o=n(42);t.exports=function(t,e,n){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},function(t,e,n){var r=n(21),i=n(13),a=n(54),o=n(62),s=n(44),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(55),i=n(61).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(13),i=n(36),a=n(11),o=n(56).indexOf,s=n(50),u=r([].push);t.exports=function(t,e){var n,r=a(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var r=n(11),i=n(57),a=n(59),o=function(t){return function(e,n,o){var s,u=r(e),c=a(u),l=i(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var r=n(58),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},function(t,e,n){var r=n(60);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(58),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(6),i=n(19),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var r=n(8),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},function(t,e,n){var r=n(14);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(3),i=n(67),a=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},function(t,e,n){var r=n(3),i=n(68),a=n(19),o=n(14),s=n(31)("toStringTag"),u=r.Object,c="Arguments"==o(function(){return arguments}());t.exports=i?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?o(e):"Object"==(r=o(e))&&a(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(31)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,i=n(44),a=n(70),o=n(61),s=n(50),u=n(72),c=n(40),l=n(49),f=l("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"</"+"script>"},g=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?g(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):g(r);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[f]=t):n=p(),void 0===e?n:a.f(n,e)}},function(t,e,n){var r=n(5),i=n(43),a=n(42),o=n(44),s=n(11),u=n(71);e.f=r&&!i?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,n=i[l++],r[n]);return t}},function(t,e,n){var r=n(55),i=n(61);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(21);t.exports=r("document","documentElement")},function(t,e,n){var r=n(14),i=n(11),a=n(54).f,o=n(74),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},function(t,e,n){var r=n(3),i=n(57),a=n(59),o=n(75),s=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=a(t),c=i(e,r),l=i(void 0===n?r:n,r),f=s(u(l-c,0)),h=0;c<l;c++,h++)o(f,h,t[c]);return f.length=h,f}},function(t,e,n){"use strict";var r=n(16),i=n(42),a=n(10);t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var r=n(13);t.exports=r([].slice)},function(t,e,n){var r=n(31);e.f=r},function(t,e,n){var r=n(79),i=n(36),a=n(77),o=n(42).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(3);t.exports=r},function(t,e,n){var r=n(42).f,i=n(36),a=n(31)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(82),i=n(13),a=n(12),o=n(37),s=n(59),u=n(83),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(g,p,v,y){for(var x,_,m=o(g),b=a(m),w=r(p,v),T=s(b),A=0,E=y||u,S=e?E(g,T):n||h?E(g,0):void 0;T>A;A++)if((d||A in b)&&(_=w(x=b[A],A,m),t))if(e)S[A]=_;else if(_)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(S,x)}else switch(t){case 4:return!1;case 7:c(S,x)}return f?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(13),i=n(28),a=n(8),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(84);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(3),i=n(65),a=n(85),o=n(18),s=n(31)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(a(e)&&(e===u||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){var r=n(13),i=n(6),a=n(19),o=n(67),s=n(21),u=n(46),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),g=!h.exec(c),p=function(t){if(!a(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(h,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(3),o=n(13),s=n(36),u=n(19),c=n(22),l=n(66),f=n(42).f,h=n(52),d=a.Symbol,g=d&&d.prototype;if(i&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};h(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.toString),_=o(g.valueOf),m=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),w=o("".slice);f(g,"description",{configurable:!0,get:function(){var t=_(this),e=x(t);if(s(p,t))return"";var n=y?w(e,7,-1):b(e,m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(78)("asyncIterator")},function(t,e,n){n(78)("hasInstance")},function(t,e,n){n(78)("isConcatSpreadable")},function(t,e,n){n(78)("iterator")},function(t,e,n){n(78)("match")},function(t,e,n){n(78)("matchAll")},function(t,e,n){n(78)("replace")},function(t,e,n){n(78)("search")},function(t,e,n){n(78)("species")},function(t,e,n){n(78)("split")},function(t,e,n){n(78)("toPrimitive")},function(t,e,n){n(78)("toStringTag")},function(t,e,n){n(78)("unscopables")},function(t,e,n){var r=n(2),i=n(3),a=n(64),o=n(101),s="WebAssembly",u=i.WebAssembly,c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,c),r({global:!0,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=o("WebAssembly."+t,e,c),r({target:s,stat:!0,forced:c},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},function(t,e,n){"use strict";var r=n(21),i=n(36),a=n(41),o=n(22),s=n(102),u=n(52),c=n(104),l=n(105),f=n(106),h=n(107),d=n(108),g=n(33);t.exports=function(t,e,n,p){var v=p?2:1,y=t.split("."),x=y[y.length-1],_=r.apply(null,y);if(_){var m=_.prototype;if(!g&&i(m,"cause")&&delete m.cause,!n)return _;var b=r("Error"),w=e((function(t,e){var n=l(p?e:t,void 0),r=p?new _(t):new _;return void 0!==n&&a(r,"message",n),d&&a(r,"stack",h(r.stack,2)),this&&o(m,this)&&c(r,this,w),arguments.length>v&&f(r,arguments[v]),r}));if(w.prototype=m,"Error"!==x&&(s?s(w,b):u(w,b,{name:!0})),u(w,_),!g)try{m.name!==x&&a(m,"name",x),m.constructor=w}catch(t){}return w}}},function(t,e,n){var r=n(13),i=n(44),a=n(103);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(3),i=n(19),a=r.String,o=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+a(t)+" as a prototype")}},function(t,e,n){var r=n(19),i=n(18),a=n(102);t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){var r=n(66);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(18),i=n(41);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},function(t,e,n){var r=n(13)("".replace),i=String(Error("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,o=a.test(i);t.exports=function(t,e){if(o&&"string"==typeof t)for(;e--;)t=r(t,a,"");return t}},function(t,e,n){var r=n(6),i=n(10);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},function(t,e,n){var r=n(45),i=n(110),a=Error.prototype;a.toString!==i&&r(a,"toString",i)},function(t,e,n){"use strict";var r=n(5),i=n(6),a=n(44),o=n(69),s=n(105),u=Error.prototype.toString,c=i((function(){if(r){var t=o(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==u.call(t))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));t.exports=c?function(){var t=a(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:u},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(22),o=n(112),s=n(102),u=n(52),c=n(69),l=n(41),f=n(10),h=n(107),d=n(106),g=n(114),p=n(105),v=n(31),y=n(108),x=v("toStringTag"),_=i.Error,m=[].push,b=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=a(w,this);s?n=s(new _,i?o(this):w):(n=i?this:c(w),l(n,x,"Error")),void 0!==e&&l(n,"message",p(e)),y&&l(n,"stack",h(n.stack,1)),d(n,r);var u=[];return g(t,m,{that:u}),l(n,"errors",u),n};s?s(b,_):u(b,_,{name:!0});var w=b.prototype=c(_.prototype,{constructor:f(1,b),message:f(1,""),name:f(1,"AggregateError")});r({global:!0},{AggregateError:b})},function(t,e,n){var r=n(3),i=n(36),a=n(19),o=n(37),s=n(49),u=n(113),c=s("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return a(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},function(t,e,n){var r=n(6);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(3),i=n(82),a=n(7),o=n(44),s=n(29),u=n(115),c=n(59),l=n(22),f=n(117),h=n(118),d=n(119),g=r.TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var r,y,x,_,m,b,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),k=i(e,T),M=function(t){return r&&d(r,"normal",t),new p(!0,t)},O=function(t){return A?(o(t),S?k(t[0],t[1],M):k(t[0],t[1])):S?k(t,M):k(t)};if(E)r=t;else{if(!(y=h(t)))throw g(s(t)+" is not iterable");if(u(y)){for(x=0,_=c(t);_>x;x++)if((m=O(t[x]))&&l(v,m))return m;return new p(!1)}r=f(t,y)}for(b=r.next;!(w=a(b,r)).done;){try{m=O(w.value)}catch(t){d(r,"throw",t)}if("object"==typeof m&&m&&l(v,m))return m}return new p(!1)}},function(t,e,n){var r=n(31),i=n(116),a=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var r=n(3),i=n(7),a=n(28),o=n(44),s=n(29),u=n(118),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(a(n))return o(i(n,t));throw c(s(t)+" is not iterable")}},function(t,e,n){var r=n(67),i=n(27),a=n(116),o=n(31)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[r(t)]}},function(t,e,n){var r=n(7),i=n(44),a=n(27);t.exports=function(t,e,n){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return i(o),n}},function(t,e,n){var r=n(2),i=n(21),a=n(64),o=n(6),s=n(101),u="AggregateError",c=i(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return a(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var r=n(2),i=n(37),a=n(59),o=n(58),s=n(122);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=a(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var r=n(31),i=n(69),a=n(42),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(65),s=n(18),u=n(37),c=n(59),l=n(75),f=n(83),h=n(124),d=n(31),g=n(25),p=d("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",x=i.TypeError,_=g>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=h("concat"),b=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!_||!m},{concat:function(t){var e,n,r,i,a,o=u(this),s=f(o,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(a=-1===e?o:arguments[e])){if(h+(i=c(a))>v)throw x(y);for(n=0;n<i;n++,h++)n in a&&l(s,h,a[n])}else{if(h>=v)throw x(y);l(s,h++,a)}return s.length=h,s}})},function(t,e,n){var r=n(6),i=n(31),a=n(25),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(2),i=n(126),a=n(122);r({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(t,e,n){"use strict";var r=n(37),i=n(57),a=n(59),o=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=a(n),u=i(t,s),c=i(e,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-c,s-u),h=1;for(c<u&&u<c+f&&(h=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},function(t,e,n){"use strict";var r=n(2),i=n(81).every;r({target:"Array",proto:!0,forced:!n(128)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var r=n(2),i=n(130),a=n(122);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(t,e,n){"use strict";var r=n(37),i=n(57),a=n(59);t.exports=function(t){for(var e=r(this),n=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(2),i=n(81).filter;r({target:"Array",proto:!0,forced:!n(124)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(81).find,a=n(122),o="find",s=!0;o in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(81).findIndex,a=n(122),o="findIndex",s=!0;o in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(2),i=n(135),a=n(37),o=n(59),s=n(58),u=n(83);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},function(t,e,n){"use strict";var r=n(3),i=n(65),a=n(59),o=n(82),s=r.TypeError,u=function(t,e,n,r,c,l,f,h){for(var d,g,p=c,v=0,y=!!f&&o(f,h);v<r;){if(v in n){if(d=y?y(n[v],v,e):n[v],l>0&&i(d))g=a(d),p=u(t,e,d,g,p,l-1)-1;else{if(p>=9007199254740991)throw s("Exceed the acceptable array length");t[p]=d}p++}v++}return p};t.exports=u},function(t,e,n){"use strict";var r=n(2),i=n(135),a=n(28),o=n(37),s=n(59),u=n(83);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n);return a(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(2),i=n(138);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(81).forEach,i=n(128)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),i=n(140);r({target:"Array",stat:!0,forced:!n(142)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(3),i=n(82),a=n(7),o=n(37),s=n(141),u=n(115),c=n(85),l=n(59),f=n(75),h=n(117),d=n(118),g=r.Array;t.exports=function(t){var e=o(t),n=c(this),r=arguments.length,p=r>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,r>2?arguments[2]:void 0));var y,x,_,m,b,w,T=d(e),A=0;if(!T||this==g&&u(T))for(y=l(e),x=n?new this(y):g(y);y>A;A++)w=v?p(e[A],A):e[A],f(x,A,w);else for(b=(m=h(e,T)).next,x=n?new this:[];!(_=a(b,m)).done;A++)w=v?s(m,p,[_.value,A],!0):_.value,f(x,A,w);return x.length=A,x}},function(t,e,n){var r=n(44),i=n(119);t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(31)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(2),i=n(56).includes,a=n(122);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(56).indexOf,o=n(128),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(2)({target:"Array",stat:!0},{isArray:n(65)})},function(t,e,n){"use strict";var r=n(11),i=n(122),a=n(116),o=n(47),s=n(42).f,u=n(147),c=n(33),l=n(5),f="Array Iterator",h=o.set,d=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var g=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(33),o=n(51),s=n(19),u=n(148),c=n(112),l=n(102),f=n(80),h=n(41),d=n(45),g=n(31),p=n(116),v=n(149),y=o.PROPER,x=o.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,b=g("iterator"),w="keys",T="values",A="entries",E=function(){return this};t.exports=function(t,e,n,o,g,v,S){u(n,e,o);var k,M,O,R=function(t){if(t===g&&D)return D;if(!m&&t in L)return L[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,L=t.prototype,P=L[b]||L["@@iterator"]||g&&L[g],D=!m&&P||R(g),N="Array"==e&&L.entries||P;if(N&&(k=c(N.call(new t)))!==Object.prototype&&k.next&&(a||c(k)===_||(l?l(k,_):s(k[b])||d(k,b,E)),f(k,C,!0,!0),a&&(p[C]=E)),y&&g==T&&P&&P.name!==T&&(!a&&x?h(L,"name",T):(I=!0,D=function(){return i(P,this)})),g)if(M={values:R(T),keys:v?D:R(w),entries:R(A)},S)for(O in M)(m||I||!(O in L))&&d(L,O,M[O]);else r({target:e,proto:!0,forced:m||I},M);return a&&!S||L[b]===D||d(L,b,D,{name:g}),p[e]=D,M}},function(t,e,n){"use strict";var r=n(149).IteratorPrototype,i=n(69),a=n(10),o=n(80),s=n(116),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:a(+!c,n)}),o(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,a,o=n(6),s=n(19),u=n(69),c=n(112),l=n(45),f=n(31),h=n(33),d=f("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):g=!0),null==r||o((function(){var t={};return r[d].call(t)!==t}))?r={}:h&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(12),o=n(11),s=n(128),u=i([].join),c=a!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(2),i=n(152);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(64),i=n(11),a=n(58),o=n(59),s=n(128),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r=n(2),i=n(81).map;r({target:"Array",proto:!0,forced:!n(124)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(6),o=n(85),s=n(75),u=i.Array;r({target:"Array",stat:!0,forced:a((function(){function t(){}return!(u.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:u)(e);e>t;)s(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(2),i=n(156).left,a=n(128),o=n(25),s=n(157);r({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),i=n(28),a=n(37),o=n(12),s=n(59),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=a(e),f=o(l),h=s(l),d=t?h-1:0,g=t?-1:1;if(r<2)for(;;){if(d in f){c=f[d],d+=g;break}if(d+=g,t?d<0:h<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=g)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){var r=n(14),i=n(3);t.exports="process"==r(i.process)},function(t,e,n){"use strict";var r=n(2),i=n(156).right,a=n(128),o=n(25),s=n(157);r({target:"Array",proto:!0,forced:!a("reduceRight")||!s&&o>79&&o<83},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(65),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(65),o=n(85),s=n(18),u=n(57),c=n(59),l=n(11),f=n(75),h=n(31),d=n(124),g=n(76),p=d("slice"),v=h("species"),y=i.Array,x=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,i,h=l(this),d=c(h),p=u(t,d),_=u(void 0===e?d:e,d);if(a(h)&&(n=h.constructor,(o(n)&&(n===y||a(n.prototype))||s(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return g(h,p,_);for(r=new(void 0===n?y:n)(x(_-p,0)),i=0;p<_;p++,i++)p in h&&f(r,i,h[p]);return r.length=i,r}})},function(t,e,n){"use strict";var r=n(2),i=n(81).some;r({target:"Array",proto:!0,forced:!n(128)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(28),o=n(37),s=n(59),u=n(66),c=n(6),l=n(163),f=n(128),h=n(164),d=n(165),g=n(25),p=n(166),v=[],y=i(v.sort),x=i(v.push),_=c((function(){v.sort(void 0)})),m=c((function(){v.sort(null)})),b=f("sort"),w=!c((function(){if(g)return g<70;if(!(h&&h>3)){if(d)return!0;if(p)return p<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!m||!b||!w},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&x(i,e[r]);for(l(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},function(t,e,n){var r=n(74),i=Math.floor,a=function(t,e){var n=t.length,u=i(n/2);return n<8?o(t,e):s(t,a(r(t,0,u),e),a(r(t,u),e),e)},o=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var r=n(26).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(26);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(26).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){n(168)("Array")},function(t,e,n){"use strict";var r=n(21),i=n(42),a=n(31),o=n(5),s=a("species");t.exports=function(t){var e=r(t),n=i.f;o&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(57),o=n(58),s=n(59),u=n(37),c=n(83),l=n(75),f=n(124)("splice"),h=i.TypeError,d=Math.max,g=Math.min,p=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,r,i,f,y,x,_=u(this),m=s(_),b=a(t,m),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=m-b):(n=w-2,r=g(d(o(e),0),m-b)),m+n-r>p)throw h(v);for(i=c(_,r),f=0;f<r;f++)(y=b+f)in _&&l(i,f,_[y]);if(i.length=r,n<r){for(f=b;f<m-r;f++)x=f+n,(y=f+r)in _?_[x]=_[y]:delete _[x];for(f=m;f>m-r+n;f--)delete _[f-1]}else if(n>r)for(f=m-r;f>b;f--)x=f+n-1,(y=f+r-1)in _?_[x]=_[y]:delete _[x];for(f=0;f<n;f++)_[f+b]=arguments[f+2];return _.length=m-r+n,i}})},function(t,e,n){n(122)("flat")},function(t,e,n){n(122)("flatMap")},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(173),o=n(168),s="ArrayBuffer",u=a.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(5),o=n(174),s=n(51),u=n(41),c=n(175),l=n(6),f=n(176),h=n(58),d=n(60),g=n(177),p=n(178),v=n(112),y=n(102),x=n(54).f,_=n(42).f,m=n(130),b=n(74),w=n(80),T=n(47),A=s.PROPER,E=s.CONFIGURABLE,S=T.get,k=T.set,M="ArrayBuffer",O="DataView",R="Wrong index",C=r.ArrayBuffer,I=C,L=I&&I.prototype,P=r.DataView,D=P&&P.prototype,N=Object.prototype,z=r.Array,F=r.RangeError,j=i(m),B=i([].reverse),X=p.pack,$=p.unpack,U=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return X(t,23,4)},W=function(t){return X(t,52,8)},q=function(t,e){_(t.prototype,e,{get:function(){return S(this)[e]}})},Z=function(t,e,n,r){var i=g(n),a=S(t);if(i+e>a.byteLength)throw F(R);var o=S(a.buffer).bytes,s=i+a.byteOffset,u=b(o,s,s+e);return r?u:B(u)},K=function(t,e,n,r,i,a){var o=g(n),s=S(t);if(o+e>s.byteLength)throw F(R);for(var u=S(s.buffer).bytes,c=o+s.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[a?f:e-f-1]};if(o){var J=A&&C.name!==M;if(l((function(){C(1)}))&&l((function(){new C(-1)}))&&!l((function(){return new C,new C(1.5),new C(NaN),J&&!E})))J&&E&&u(C,"name",M);else{(I=function(t){return f(this,L),new C(g(t))}).prototype=L;for(var Q,tt=x(C),et=0;tt.length>et;)(Q=tt[et++])in I||u(I,Q,C[Q]);L.constructor=I}y&&v(D)!==N&&y(D,N);var nt=new P(new I(2)),rt=i(D.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(D,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else L=(I=function(t){f(this,L);var e=g(t);k(this,{bytes:j(z(e),0),byteLength:e}),a||(this.byteLength=e)}).prototype,D=(P=function(t,e,n){f(this,D),f(t,L);var r=S(t).byteLength,i=h(e);if(i<0||i>r)throw F("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw F("Wrong length");k(this,{buffer:t,byteLength:n,byteOffset:i}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=i)}).prototype,a&&(q(I,"byteLength"),q(P,"buffer"),q(P,"byteLength"),q(P,"byteOffset")),c(D,{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(Z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return $(Z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){K(this,1,t,U,e)},setUint8:function(t,e){K(this,1,t,U,e)},setInt16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){K(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){K(this,4,t,V,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){K(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){K(this,8,t,W,e,arguments.length>2?arguments[2]:void 0)}});w(I,M),w(P,O),t.exports={ArrayBuffer:I,DataView:P}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(45);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(3),i=n(22),a=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw a("Incorrect invocation")}},function(t,e,n){var r=n(3),i=n(58),a=n(60),o=r.RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=a(e);if(e!==n)throw o("Wrong length or index");return n}},function(t,e,n){var r=n(3).Array,i=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,u=Math.LN2;t.exports={pack:function(t,e,n){var c,l,f,h=r(n),d=8*n-e-1,g=(1<<d)-1,p=g>>1,v=23===e?a(2,-24)-a(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=i(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=o(s(t)/u),t*(f=a(2,-c))<1&&(c--,f*=2),(t+=c+p>=1?v/f:v*a(2,1-p))*f>=2&&(c++,f/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*f-1)*a(2,e),c+=p):(l=t*a(2,p-1)*a(2,e),c=0));e>=8;)h[x++]=255&l,l/=256,e-=8;for(c=c<<e|l,d+=e;d>0;)h[x++]=255&c,c/=256,d-=8;return h[--x]|=128*y,h},unpack:function(t,e){var n,r=t.length,i=8*r-e-1,o=(1<<i)-1,s=o>>1,u=i-7,c=r-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=a(2,e),f-=s}return(l?-1:1)*n*a(2,f-e)}}},function(t,e,n){var r=n(2),i=n(180);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r,i,a,o=n(174),s=n(5),u=n(3),c=n(19),l=n(18),f=n(36),h=n(67),d=n(29),g=n(41),p=n(45),v=n(42).f,y=n(22),x=n(112),_=n(102),m=n(31),b=n(38),w=u.Int8Array,T=w&&w.prototype,A=u.Uint8ClampedArray,E=A&&A.prototype,S=w&&x(w),k=T&&x(T),M=Object.prototype,O=u.TypeError,R=m("toStringTag"),C=b("TYPED_ARRAY_TAG"),I=b("TYPED_ARRAY_CONSTRUCTOR"),L=o&&!!_&&"Opera"!==h(u.opera),P=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},z=function(t){if(!l(t))return!1;var e=h(t);return f(D,e)||f(N,e)};for(r in D)(a=(i=u[r])&&i.prototype)?g(a,I,i):L=!1;for(r in N)(a=(i=u[r])&&i.prototype)&&g(a,I,i);if((!L||!c(S)||S===Function.prototype)&&(S=function(){throw O("Incorrect invocation")},L))for(r in D)u[r]&&_(u[r],S);if((!L||!k||k===M)&&(k=S.prototype,L))for(r in D)u[r]&&_(u[r].prototype,k);if(L&&x(E)!==k&&_(E,k),s&&!f(k,R))for(r in P=!0,v(k,R,{get:function(){return l(this)?this[C]:void 0}}),D)u[r]&&g(u[r],C,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_CONSTRUCTOR:I,TYPED_ARRAY_TAG:P&&C,aTypedArray:function(t){if(z(t))return t;throw O("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!_||y(S,t)))return t;throw O(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in D){var a=u[i];if(a&&f(a.prototype,t))try{delete a.prototype[t]}catch(n){try{a.prototype[t]=e}catch(t){}}}k[t]&&!n||p(k,t,n?e:L&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(_){if(n)for(r in D)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(S[t]&&!n)return;try{return p(S,t,n?e:L&&S[t]||e)}catch(t){}}for(r in D)!(i=u[r])||i[t]&&!n||p(i,t,e)}},isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(D,e)||f(N,e)},isTypedArray:z,TypedArray:S,TypedArrayPrototype:k}},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6),o=n(173),s=n(44),u=n(57),c=n(60),l=n(182),f=o.ArrayBuffer,h=o.DataView,d=h.prototype,g=i(f.prototype.slice),p=i(d.getUint8),v=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),a=new(l(this,f))(c(i-r)),o=new h(this),d=new h(a),y=0;r<i;)v(d,y++,p(o,r++));return a}})},function(t,e,n){var r=n(44),i=n(183),a=n(31)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||null==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r=n(3),i=n(85),a=n(29),o=r.TypeError;t.exports=function(t){if(i(t))return t;throw o(a(t)+" is not a constructor")}},function(t,e,n){var r=n(2),i=n(173);r({global:!0,forced:!n(174)},{DataView:i.DataView})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var r=n(2),i=n(3),a=n(13),o=i.Date,s=a(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(58),o=Date.prototype,s=i(o.getTime),u=i(o.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(2)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(2),i=n(190);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(6),o=n(191).start,s=r.RangeError,u=Math.abs,c=Date.prototype,l=c.toISOString,f=i(c.getTime),h=i(c.getUTCDate),d=i(c.getUTCFullYear),g=i(c.getUTCHours),p=i(c.getUTCMilliseconds),v=i(c.getUTCMinutes),y=i(c.getUTCMonth),x=i(c.getUTCSeconds);t.exports=a((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!a((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(f(this)))throw s("Invalid time value");var t=this,e=d(t),n=p(t),r=e<0?"-":e>9999?"+":"";return r+o(u(e),r?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(h(t),2,0)+"T"+o(g(t),2,0)+":"+o(v(t),2,0)+":"+o(x(t),2,0)+"."+o(n,3,0)+"Z"}:l},function(t,e,n){var r=n(13),i=n(60),a=n(66),o=n(192),s=n(15),u=r(o),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var o,f,h=a(s(e)),d=i(n),g=h.length,p=void 0===r?" ":a(r);return d<=g||""==p?h:((f=u(p,l((o=d-g)/p.length))).length>o&&(f=c(f,0,o)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},function(t,e,n){"use strict";var r=n(3),i=n(58),a=n(66),o=n(15),s=r.RangeError;t.exports=function(t){var e=a(o(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(2),i=n(6),a=n(37),o=n(17);r({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(36),i=n(45),a=n(195),o=n(31)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},function(t,e,n){"use strict";var r=n(3),i=n(44),a=n(30),o=r.TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return a(this,t)}},function(t,e,n){var r=n(13),i=n(45),a=Date.prototype,o="Invalid Date",s="toString",u=r(a.toString),c=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(66),o=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=a(t),i="",c=r.length,d=0;d<c;)e=o(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},function(t,e,n){var r=n(2),i=n(199);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(28),o=n(18),s=n(36),u=n(76),c=n(8),l=r.Function,f=i([].concat),h=i([].join),d={},g=function(t,e,n){if(!s(d,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";d[e]=l("C,a","return new C("+h(r,",")+")")}return d[e](t,n)};t.exports=c?l.bind:function(t){var e=a(this),n=e.prototype,r=u(arguments,1),i=function(){var n=f(r,u(arguments));return this instanceof i?g(e,n.length,n):e.apply(t,n)};return o(n)&&(i.prototype=n),i}},function(t,e,n){"use strict";var r=n(19),i=n(18),a=n(42),o=n(112),s=n(31)("hasInstance"),u=Function.prototype;s in u||a.f(u,s,{value:function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;if(!i(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}})},function(t,e,n){var r=n(5),i=n(51).EXISTS,a=n(13),o=n(42).f,s=Function.prototype,u=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){n(2)({global:!0},{globalThis:n(3)})},function(t,e,n){var r=n(2),i=n(3),a=n(21),o=n(64),s=n(13),u=n(6),c=i.Array,l=a("JSON","stringify"),f=s(/./.exec),h=s("".charAt),d=s("".charCodeAt),g=s("".replace),p=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,_=function(t,e,n){var r=h(n,e-1),i=h(n,e+1);return f(y,t)&&!f(x,i)||f(x,t)&&!f(y,r)?"\\u"+p(d(t,0),16):t},m=u((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:m},{stringify:function(t,e,n){for(var r=0,i=arguments.length,a=c(i);r<i;r++)a[r]=arguments[r];var s=o(l,null,a);return"string"==typeof s?g(s,v,_):s}})},function(t,e,n){var r=n(3);n(80)(r.JSON,"JSON",!0)},function(t,e,n){"use strict";n(206)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(211))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(63),s=n(45),u=n(207),c=n(114),l=n(176),f=n(19),h=n(18),d=n(6),g=n(142),p=n(80),v=n(104);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),_=y?"set":"add",m=i[t],b=m&&m.prototype,w=m,T={},A=function(t){var e=a(b[t]);s(b,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return x&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(x&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!f(m)||!(x||b.forEach&&!d((function(){(new m).entries().next()})))))w=n.getConstructor(e,t,y,_),u.enable();else if(o(t,!0)){var E=new w,S=E[_](x?{}:-0,1)!=E,k=d((function(){E.has(1)})),M=g((function(t){new m(t)})),O=!x&&d((function(){for(var t=new m,e=5;e--;)t[_](e,e);return!t.has(-0)}));M||((w=e((function(t,e){l(t,b);var n=v(new m,t,w);return null!=e&&c(e,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=b,b.constructor=w),(k||O)&&(A("delete"),A("has"),y&&A("get")),(O||S)&&A(_),x&&b.clear&&delete b.clear}return T[t]=w,r({global:!0,forced:w!=m},T),p(w,t),x||n.setStrong(w,t,y),w}},function(t,e,n){var r=n(2),i=n(13),a=n(50),o=n(18),s=n(36),u=n(42).f,c=n(54),l=n(73),f=n(208),h=n(38),d=n(210),g=!1,p=h("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=i([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,a=r.length;i<a;i++)if(r[i]===p){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&f(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var r=n(6),i=n(18),a=n(14),o=n(209),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(6);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(6);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var r=n(42).f,i=n(69),a=n(175),o=n(82),s=n(176),u=n(114),c=n(147),l=n(168),f=n(5),h=n(207).fastKey,d=n(47),g=d.set,p=d.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,d),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=l.prototype,v=p(e),y=function(t,e,n){var r,i,a=v(t),o=x(t,e);return o?o.value=n:(a.last=o={index:i=h(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},x=function(t,e){var n,r=v(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return a(d,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=x(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!x(this,t)}}),a(d,n?{get:function(t){var e=x(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&r(d,"size",{get:function(){return v(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=p(e),a=p(r);c(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},function(t,e,n){var r=n(2),i=n(213),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?o(t)+u:i(t-1+s(t-1)*s(t+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},function(t,e,n){var r=n(2),i=Math.asinh,a=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):a(e+o(e*e+1)):e}})},function(t,e,n){var r=n(2),i=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:a((1+t)/(1-t))/2}})},function(t,e,n){var r=n(2),i=n(217),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*o(a(t),1/3)}})},function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(a(t+.5)*o):32}})},function(t,e,n){var r=n(2),i=n(220),a=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=i(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},function(t,e,n){var r=n(2),i=n(220);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(2)({target:"Math",stat:!0},{fround:n(223)})},function(t,e,n){var r=n(217),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=i(t),l=r(t);return a<c?l*(a/c/s+1/o-1/o)*c*s:(n=(e=(1+s/o)*a)-(e-a))>u||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(2),i=Math.hypot,a=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*o(i)}})},function(t,e,n){var r=n(2),i=n(6),a=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){n(2)({target:"Math",stat:!0},{log10:n(227)})},function(t){var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){n(2)({target:"Math",stat:!0},{log1p:n(213)})},function(t,e,n){var r=n(2),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/a}})},function(t,e,n){n(2)({target:"Math",stat:!0},{sign:n(217)})},function(t,e,n){var r=n(2),i=n(6),a=n(220),o=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return o(t=+t)<1?(a(t)-a(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},function(t,e,n){var r=n(2),i=n(220),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){n(80)(Math,"Math",!0)},function(t,e,n){var r=n(2),i=Math.ceil,a=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?a:i)(t)}})},function(t,e,n){"use strict";var r=n(5),i=n(3),a=n(13),o=n(63),s=n(45),u=n(36),c=n(104),l=n(22),f=n(20),h=n(17),d=n(6),g=n(54).f,p=n(4).f,v=n(42).f,y=n(236),x=n(237).trim,_="Number",m=i.Number,b=m.prototype,w=i.TypeError,T=a("".slice),A=a("".charCodeAt),E=function(t){var e=h(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,r,i,a,o,s,u,c=h(t,"number");if(f(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=A(c,0))||45===e){if(88===(n=A(c,2))||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=(a=T(c,2)).length,s=0;s<o;s++)if((u=A(a,s))<48||u>i)return NaN;return parseInt(a,r)}return+c};if(o(_,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var k,M=function(t){var e=arguments.length<1?0:m(E(t)),n=this;return l(b,n)&&d((function(){y(n)}))?c(Object(e),n,M):e},O=r?g(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;O.length>R;R++)u(m,k=O[R])&&!u(M,k)&&v(M,k,p(m,k));M.prototype=b,b.constructor=M,s(i,_,M)}},function(t,e,n){var r=n(13);t.exports=r(1..valueOf)},function(t,e,n){var r=n(13),i=n(15),a=n(66),o=n(238),s=r("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=a(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(2)({target:"Number",stat:!0},{isFinite:n(241)})},function(t,e,n){var r=n(3).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(2)({target:"Number",stat:!0},{isInteger:n(243)})},function(t,e,n){var r=n(18),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(2)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(2),i=n(243),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(2),i=n(249);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(3),i=n(6),a=n(13),o=n(66),s=n(237).trim,u=n(238),c=a("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var r=n(2),i=n(251);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(3),i=n(6),a=n(13),o=n(66),s=n(237).trim,u=n(238),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=a(h.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(58),s=n(236),u=n(192),c=n(227),l=n(6),f=i.RangeError,h=i.String,d=i.isFinite,g=Math.abs,p=Math.floor,v=Math.pow,y=Math.round,x=a(1..toExponential),_=a(u),m=a("".slice),b="-6.9000e-11"===x(-69e-12,4)&&"1.25e+0"===x(1.255,2)&&"1.235e+4"===x(12345,3)&&"3e+1"===x(25,0),w=l((function(){x(1,1/0)}))&&l((function(){x(1,-1/0)})),T=!l((function(){x(1/0,1/0)}))&&!l((function(){x(NaN,1/0)}));r({target:"Number",proto:!0,forced:!b||!w||!T},{toExponential:function(t){var e=s(this);if(void 0===t)return x(e);var n=o(t);if(!d(e))return h(e);if(n<0||n>20)throw f("Incorrect fraction digits");if(b)return x(e,n);var r="",i="",a=0,u="",l="";if(e<0&&(r="-",e=-e),0===e)a=0,i=_("0",n+1);else{var w=c(e);a=p(w);var T=0,A=v(10,a-n);2*e>=(2*(T=y(e/A))+1)*A&&(T+=1),T>=v(10,n+1)&&(T/=10,a+=1),i=h(T)}return 0!==n&&(i=m(i,0,1)+"."+m(i,1)),0===a?(u="+",l="0"):(u=a>0?"+":"-",l=h(g(a))),r+(i+="e"+u+l)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(13),o=n(58),s=n(236),u=n(192),c=n(6),l=i.RangeError,f=i.String,h=Math.floor,d=a(u),g=a("".slice),p=a(1..toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},x=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=h(r/e),r=r%e*1e7},_=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=f(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}))},{toFixed:function(t){var e,n,r,i,a=s(this),u=o(t),c=[0,0,0,0,0,0],h="",p="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return f(a);if(a<0&&(h="-",a=-a),a>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(a*v(2,69,1))-69)<0?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(y(c,0,n),r=u;r>=7;)y(c,1e7,0),r-=7;for(y(c,v(10,r,1),0),r=e-1;r>=23;)x(c,1<<23),r-=23;x(c,1<<r),y(c,1,1),x(c,2),p=_(c)}else y(c,0,n),y(c,1<<-e,0),p=_(c)+d("0",u);return p=u>0?h+((i=p.length)<=u?"0."+d("0",u-i)+p:g(p,0,i-u)+"."+g(p,i-u)):h+p}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(6),o=n(236),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var r=n(2),i=n(256);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(5),i=n(13),a=n(7),o=n(6),s=n(71),u=n(62),c=n(9),l=n(37),f=n(12),h=Object.assign,d=Object.defineProperty,g=i([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,o=1,h=u.f,d=c.f;i>o;)for(var p,v=f(arguments[o++]),y=h?g(s(v),h(v)):s(v),x=y.length,_=0;x>_;)p=y[_++],r&&!a(d,v,p)||(n[p]=v[p]);return n}:h},function(t,e,n){n(2)({target:"Object",stat:!0,sham:!n(5)},{create:n(69)})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(28),s=n(37),u=n(42);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(33),i=n(3),a=n(6),o=n(166);t.exports=r||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},function(t,e,n){var r=n(2),i=n(5),a=n(70).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},function(t,e,n){var r=n(2),i=n(5),a=n(42).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(28),s=n(37),u=n(42);i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(2),i=n(264).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(5),i=n(13),a=n(71),o=n(11),s=i(n(9).f),u=i([].push),c=function(t){return function(e){for(var n,i=o(e),c=a(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(2),i=n(210),a=n(6),o=n(18),s=n(207).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!i},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var r=n(2),i=n(114),a=n(75);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(2),i=n(6),a=n(11),o=n(4).f,s=n(5),u=i((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var r=n(2),i=n(5),a=n(53),o=n(11),s=n(4),u=n(75);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),i=s.f,c=a(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(2),i=n(6),a=n(73).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var r=n(2),i=n(6),a=n(37),o=n(112),s=n(113);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(2)({target:"Object",stat:!0},{hasOwn:n(36)})},function(t,e,n){n(2)({target:"Object",stat:!0},{is:n(273)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(2),i=n(208);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(t,e,n){var r=n(2),i=n(6),a=n(18),o=n(14),s=n(209),u=Object.isFrozen;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(6),a=n(18),o=n(14),s=n(209),u=Object.isSealed;r({target:"Object",stat:!0,forced:i((function(){u(1)}))||s},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(2),i=n(37),a=n(71);r({target:"Object",stat:!0,forced:n(6)((function(){a(1)}))},{keys:function(t){return a(i(t))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(37),s=n(16),u=n(112),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var r=n(2),i=n(5),a=n(259),o=n(37),s=n(16),u=n(112),c=n(4).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},function(t,e,n){var r=n(2),i=n(18),a=n(207).onFreeze,o=n(210),s=n(6),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){var r=n(2),i=n(18),a=n(207).onFreeze,o=n(210),s=n(6),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){n(2)({target:"Object",stat:!0},{setPrototypeOf:n(102)})},function(t,e,n){var r=n(68),i=n(45),a=n(284);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var r=n(68),i=n(67);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(2),i=n(264).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(2),i=n(249);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(2),i=n(251);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){"use strict";var r,i,a,o,s=n(2),u=n(33),c=n(3),l=n(21),f=n(7),h=n(289),d=n(45),g=n(175),p=n(102),v=n(80),y=n(168),x=n(28),_=n(19),m=n(18),b=n(176),w=n(46),T=n(114),A=n(142),E=n(182),S=n(290).set,k=n(293),M=n(296),O=n(298),R=n(297),C=n(299),I=n(300),L=n(47),P=n(63),D=n(31),N=n(301),z=n(157),F=n(25),j=D("species"),B="Promise",X=L.getterFor(B),$=L.set,U=L.getterFor(B),Y=h&&h.prototype,V=h,G=Y,H=c.TypeError,W=c.document,q=c.process,Z=R.f,K=Z,J=!!(W&&W.createEvent&&c.dispatchEvent),Q=_(c.PromiseRejectionEvent),tt="unhandledrejection",et=!1,nt=P(B,(function(){var t=w(V),e=t!==String(V);if(!e&&66===F)return!0;if(u&&!G.finally)return!0;if(F>=51&&/native code/.test(t))return!1;var n=new V((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[j]=r,!(et=n.then((function(){}))instanceof r)||!e&&N&&!Q})),rt=nt||!A((function(t){V.all(t).catch((function(){}))})),it=function(t){var e;return!(!m(t)||!_(e=t.then))&&e},at=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2===e.rejection&<(e),e.rejection=1),!0===s?n=a:(l&&l.enter(),n=s(a),l&&(l.exit(),i=!0)),n===t.promise?c(H("Promise-chain cycle")):(r=it(n))?f(r,n,u,c):u(n)):c(a)}catch(t){l&&!i&&l.exit(),c(t)}},ot=function(t,e){t.notified||(t.notified=!0,k((function(){for(var n,r=t.reactions;n=r.get();)at(n,t);t.notified=!1,e&&!t.rejection&&ut(t)})))},st=function(t,e,n){var r,i;J?((r=W.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(i=c["on"+t])?i(r):t===tt&&O("Unhandled promise rejection",n)},ut=function(t){f(S,c,(function(){var e,n=t.facade,r=t.value;if(ct(t)&&(e=C((function(){z?q.emit("unhandledRejection",r,n):st(tt,n,r)})),t.rejection=z||ct(t)?2:1,e.error))throw e.value}))},ct=function(t){return 1!==t.rejection&&!t.parent},lt=function(t){f(S,c,(function(){var e=t.facade;z?q.emit("rejectionHandled",e):st("rejectionhandled",e,t.value)}))},ft=function(t,e,n){return function(r){t(e,r,n)}},ht=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ot(t,!0))},dt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw H("Promise can't be resolved itself");var r=it(e);r?k((function(){var n={done:!1};try{f(r,e,ft(dt,n,t),ft(ht,n,t))}catch(e){ht(n,e,t)}})):(t.value=e,t.state=1,ot(t,!1))}catch(e){ht({done:!1},e,t)}}};if(nt&&(G=(V=function(t){b(this,G),x(t),f(r,this);var e=X(this);try{t(ft(dt,e),ft(ht,e))}catch(t){ht(e,t)}}).prototype,(r=function(t){$(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:void 0})}).prototype=g(G,{then:function(t,e){var n=U(this),r=Z(E(this,V));return n.parent=!0,r.ok=!_(t)||t,r.fail=_(e)&&e,r.domain=z?q.domain:void 0,0==n.state?n.reactions.add(r):k((function(){at(r,n)})),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=X(t);this.promise=t,this.resolve=ft(dt,e),this.reject=ft(ht,e)},R.f=Z=function(t){return t===V||t===a?new i(t):K(t)},!u&&_(h)&&Y!==Object.prototype)){o=Y.then,et||(d(Y,"then",(function(t,e){var n=this;return new V((function(t,e){f(o,n,t,e)})).then(t,e)}),{unsafe:!0}),d(Y,"catch",G.catch,{unsafe:!0}));try{delete Y.constructor}catch(t){}p&&p(Y,G)}s({global:!0,wrap:!0,forced:nt},{Promise:V}),v(V,B,!1,!0),y(B),a=l(B),s({target:B,stat:!0,forced:nt},{reject:function(t){var e=Z(this);return f(e.reject,void 0,t),e.promise}}),s({target:B,stat:!0,forced:u||nt},{resolve:function(t){return M(u&&this===a?V:this,t)}}),s({target:B,stat:!0,forced:rt},{all:function(t){var e=this,n=Z(e),r=n.resolve,i=n.reject,a=C((function(){var n=x(e.resolve),a=[],o=0,s=1;T(t,(function(t){var u=o++,c=!1;s++,f(n,e,t).then((function(t){c||(c=!0,a[u]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(t){var e=this,n=Z(e),r=n.reject,i=C((function(){var i=x(e.resolve);T(t,(function(t){f(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(3);t.exports=r.Promise},function(t,e,n){var r,i,a,o,s=n(3),u=n(64),c=n(82),l=n(19),f=n(36),h=n(6),d=n(72),g=n(76),p=n(40),v=n(291),y=n(292),x=n(157),_=s.setImmediate,m=s.clearImmediate,b=s.process,w=s.Dispatch,T=s.Function,A=s.MessageChannel,E=s.String,S=0,k={},M="onreadystatechange";try{r=s.location}catch(t){}var O=function(t){if(f(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){O(t)}},C=function(t){O(t.data)},I=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};_&&m||(_=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return k[++S]=function(){u(e,void 0,n)},i(S),S},m=function(t){delete k[t]},x?i=function(t){b.nextTick(R(t))}:w&&w.now?i=function(t){w.now(R(t))}:A&&!y?(o=(a=new A).port2,a.port1.onmessage=C,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",C,!1)):i=M in p("script")?function(t){d.appendChild(p("script")).onreadystatechange=function(){d.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:_,clear:m}},function(t,e,n){var r=n(3).TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},function(t,e,n){var r=n(26);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){var r,i,a,o,s,u,c,l,f=n(3),h=n(82),d=n(4).f,g=n(290).set,p=n(292),v=n(294),y=n(295),x=n(157),_=f.MutationObserver||f.WebKitMutationObserver,m=f.document,b=f.process,w=f.Promise,T=d(f,"queueMicrotask"),A=T&&T.value;A||(r=function(){var t,e;for(x&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},p||x||y||!_||!m?!v&&w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=h(c.then,c),o=function(){l(r)}):x?o=function(){b.nextTick(r)}:(g=h(g,f),o=function(){g(r)}):(s=!0,u=m.createTextNode(""),new _(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},function(t,e,n){var r=n(26),i=n(3);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},function(t,e,n){var r=n(26);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(44),i=n(18),a=n(297);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(28),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(3);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},function(t){t.exports="object"==typeof window},function(t,e,n){"use strict";var r=n(2),i=n(7),a=n(28),o=n(297),s=n(299),u=n(114);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||r(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(28),a=n(21),o=n(7),s=n(297),u=n(299),c=n(114),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),f=r.resolve,h=r.reject,d=u((function(){var r=i(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var i=s++,c=!1;u++,o(r,e,t).then((function(t){c||d||(d=!0,f(t))}),(function(t){c||d||(c=!0,a[i]=t,--u||h(new n(a,l)))}))})),--u||h(new n(a,l))}));return d.error&&h(d.value),r.promise}})},function(t,e,n){"use strict";var r=n(2),i=n(33),a=n(289),o=n(6),s=n(21),u=n(19),c=n(182),l=n(296),f=n(45);if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(a)){var h=s("Promise").prototype.finally;a.prototype.finally!==h&&f(a.prototype,"finally",h,{unsafe:!0})}},function(t,e,n){var r=n(2),i=n(64),a=n(28),o=n(44);r({target:"Reflect",stat:!0,forced:!n(6)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(a(t),e,o(n))}})},function(t,e,n){var r=n(2),i=n(21),a=n(64),o=n(199),s=n(183),u=n(44),c=n(18),l=n(69),f=n(6),h=i("Reflect","construct"),d=Object.prototype,g=[].push,p=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!f((function(){h((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return a(g,r,e),new(a(o,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=a(t,f,e);return c(y)?y:f}})},function(t,e,n){var r=n(2),i=n(5),a=n(44),o=n(16),s=n(42);r({target:"Reflect",stat:!0,forced:n(6)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){a(t);var r=o(e);a(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(44),a=n(4).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(2),i=n(7),a=n(18),o=n(44),s=n(310),u=n(4),c=n(112);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return o(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):a(l=c(e))?t(l,n,f):void 0}})},function(t,e,n){var r=n(36);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){var r=n(2),i=n(5),a=n(44),o=n(4);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var r=n(2),i=n(44),a=n(112);r({target:"Reflect",stat:!0,sham:!n(113)},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(2),i=n(44),a=n(208);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),a(t)}})},function(t,e,n){n(2)({target:"Reflect",stat:!0},{ownKeys:n(53)})},function(t,e,n){var r=n(2),i=n(21),a=n(44);r({target:"Reflect",stat:!0,sham:!n(210)},{preventExtensions:function(t){a(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(7),a=n(44),o=n(18),s=n(310),u=n(6),c=n(42),l=n(4),f=n(112),h=n(10);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=f(e)))return t(d,n,r,p);v=h(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,h(0,r))}else{if(void 0===(g=v.set))return!1;i(g,p,r)}return!0}})},function(t,e,n){var r=n(2),i=n(44),a=n(103),o=n(102);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),i=n(3),a=n(80);r({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(t,e,n){var r=n(5),i=n(3),a=n(13),o=n(63),s=n(104),u=n(41),c=n(42).f,l=n(54).f,f=n(22),h=n(321),d=n(66),g=n(322),p=n(323),v=n(45),y=n(6),x=n(36),_=n(47).enforce,m=n(168),b=n(31),w=n(324),T=n(325),A=b("match"),E=i.RegExp,S=E.prototype,k=i.SyntaxError,M=a(g),O=a(S.exec),R=a("".charAt),C=a("".replace),I=a("".indexOf),L=a("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,z=new E(D)!==D,F=p.MISSED_STICKY,j=p.UNSUPPORTED_Y,B=r&&(!z||F||w||T||y((function(){return N[A]=!1,E(D)!=D||E(N)==N||"/a/i"!=E(D,"i")})));if(o("RegExp",B)){for(var X=function(t,e){var n,r,i,a,o,c,l=f(S,this),g=h(t),p=void 0===e,v=[],y=t;if(!l&&g&&p&&t.constructor===X)return t;if((g||f(S,t))&&(t=t.source,p&&(e="flags"in y?y.flags:M(y))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),y=t,w&&"dotAll"in D&&(r=!!e&&I(e,"s")>-1)&&(e=C(e,/s/g,"")),n=e,F&&"sticky"in D&&(i=!!e&&I(e,"y")>-1)&&j&&(e=C(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(P,L(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new k("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,a]}(t),t=a[0],v=a[1]),o=s(E(t,e),l?this:S,X),(r||i||v.length)&&(c=_(o),r&&(c.dotAll=!0,c.raw=X(function(t){for(var e,n=t.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(e=R(t,r))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\s\\S]":i+=e+R(t,++r);return i}(t),n)),i&&(c.sticky=!0),v.length&&(c.groups=v)),t!==y)try{u(o,"source",""===y?"(?:)":y)}catch(t){}return o},$=function(t){t in X||c(X,t,{configurable:!0,get:function(){return E[t]},set:function(e){E[t]=e}})},U=l(E),Y=0;U.length>Y;)$(U[Y++]);S.constructor=X,X.prototype=S,v(i,"RegExp",X)}m("RegExp")},function(t,e,n){var r=n(18),i=n(14),a=n(31)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){"use strict";var r=n(44);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(6),i=n(3).RegExp,a=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(6),i=n(3).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(3),i=n(5),a=n(324),o=n(14),s=n(42).f,u=n(47).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(2),i=n(328);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";var r,i,a=n(7),o=n(13),s=n(66),u=n(322),c=n(323),l=n(32),f=n(69),h=n(47).get,d=n(324),g=n(325),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),_=o("".indexOf),m=o("".replace),b=o("".slice),w=(i=/b*/g,a(v,r=/a/,"a"),a(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),T=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,r,i,o,c,l,d=this,g=h(d),E=s(t),S=g.raw;if(S)return S.lastIndex=d.lastIndex,e=a(y,S,E),d.lastIndex=S.lastIndex,e;var k=g.groups,M=T&&d.sticky,O=a(u,d),R=d.source,C=0,I=E;if(M&&(O=m(O,"y",""),-1===_(O,"g")&&(O+="g"),I=b(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(E,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",O)),A&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(r=d.lastIndex),i=a(v,M?n:d,I),M?i?(i.input=b(i.input,C),i[0]=b(i[0],C),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),A&&i&&i.length>1&&a(p,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&k)for(i.groups=c=f(null),o=0;o<k.length;o++)c[(l=k[o])[0]]=i[l[1]];return i}),t.exports=y},function(t,e,n){var r=n(5),i=n(42),a=n(322),o=n(6),s=RegExp.prototype;r&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(s,"flags",{configurable:!0,get:a})},function(t,e,n){var r=n(3),i=n(5),a=n(323).MISSED_STICKY,o=n(14),s=n(42).f,u=n(47).get,c=RegExp.prototype,l=r.TypeError;i&&a&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!u(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(327);var r,i,a=n(2),o=n(3),s=n(7),u=n(13),c=n(19),l=n(18),f=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=o.Error,d=u(/./.test);a({target:"RegExp",proto:!0,forced:!f},{test:function(t){var e=this.exec;if(!c(e))return d(this,t);var n=s(e,this,t);if(null!==n&&!l(n))throw new h("RegExp exec method returned something other than an Object or null");return!!n}})},function(t,e,n){"use strict";var r=n(13),i=n(51).PROPER,a=n(45),o=n(44),s=n(22),u=n(66),c=n(6),l=n(322),f="toString",h=RegExp.prototype,d=h.toString,g=r(l),p=c((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),v=i&&d.name!=f;(p||v)&&a(RegExp.prototype,f,(function(){var t=o(this),e=u(t.source),n=t.flags;return"/"+e+"/"+u(void 0===n&&s(h,t)&&!("flags"in h)?g(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";n(206)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(211))},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(15),o=n(58),s=n(66),u=n(6),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),n=e.length,r=o(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},function(t,e,n){"use strict";var r=n(2),i=n(336).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(13),i=n(58),a=n(66),o=n(15),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=a(o(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var r,i=n(2),a=n(13),o=n(4).f,s=n(60),u=n(66),c=n(338),l=n(15),f=n(339),h=n(33),d=a("".endsWith),g=a("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),a=u(t);return d?d(e,a,i):g(e,i-a.length,i)===a}})},function(t,e,n){var r=n(3),i=n(321),a=r.TypeError;t.exports=function(t){if(i(t))throw a("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(31)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(2),i=n(3),a=n(13),o=n(57),s=i.RangeError,u=String.fromCharCode,c=String.fromCodePoint,l=a([].join);r({target:"String",stat:!0,forced:!!c&&1!=c.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw s(e+" is not a valid code point");n[i]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return l(n,"")}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(338),o=n(15),s=n(66),u=n(339),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(336).charAt,i=n(66),a=n(47),o=n(147),s="String Iterator",u=a.set,c=a.getterFor(s);o(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(7),i=n(344),a=n(44),o=n(60),s=n(66),u=n(15),c=n(27),l=n(345),f=n(346);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=a(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var h,d=[],g=0;null!==(h=f(r,i));){var p=s(h[0]);d[g]=p,""===p&&(r.lastIndex=l(i,o(r.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(327);var r=n(13),i=n(45),a=n(328),o=n(6),s=n(31),u=n(41),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!g||n){var p=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,o){var s=r(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(336).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(3),i=n(7),a=n(44),o=n(19),s=n(14),u=n(328),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var r=i(n,t,e);return null!==r&&a(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(13),s=n(148),u=n(15),c=n(60),l=n(66),f=n(44),h=n(14),d=n(22),g=n(321),p=n(322),v=n(27),y=n(45),x=n(6),_=n(31),m=n(182),b=n(345),w=n(346),T=n(47),A=n(33),E=_("matchAll"),S="RegExp String",k="RegExp String Iterator",M=T.set,O=T.getterFor(k),R=RegExp.prototype,C=i.TypeError,I=o(p),L=o("".indexOf),P=o("".matchAll),D=!!P&&!x((function(){P("a",/./)})),N=s((function(t,e,n,r){M(this,{type:k,regexp:t,string:e,global:n,unicode:r,done:!1})}),S,(function(){var t=O(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,r=w(e,n);return null===r?{value:void 0,done:t.done=!0}:t.global?(""===l(r[0])&&(e.lastIndex=b(n,c(e.lastIndex),t.unicode)),{value:r,done:!1}):(t.done=!0,{value:r,done:!1})})),z=function(t){var e,n,r,i,a,o,s=f(this),u=l(t);return e=m(s,RegExp),void 0===(n=s.flags)&&d(R,s)&&!("flags"in R)&&(n=I(s)),r=void 0===n?"":l(n),i=new e(e===RegExp?s.source:s,r),a=!!~L(r,"g"),o=!!~L(r,"u"),i.lastIndex=c(s.lastIndex),new N(i,u,a,o)};r({target:"String",proto:!0,forced:D},{matchAll:function(t){var e,n,r,i,o=u(this);if(null!=t){if(g(t)&&(e=l(u("flags"in R?t.flags:I(t))),!~L(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(D)return P(o,t);if(void 0===(r=v(t,E))&&A&&"RegExp"==h(t)&&(r=z),r)return a(r,t,o)}else if(D)return P(o,t);return n=l(o),i=new RegExp(t,"g"),A?a(z,i,n):i[E](n)}}),A||E in R||y(R,E,z)},function(t,e,n){"use strict";var r=n(2),i=n(191).end;r({target:"String",proto:!0,forced:n(349)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(26);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(2),i=n(191).start;r({target:"String",proto:!0,forced:n(349)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(2),i=n(13),a=n(11),o=n(37),s=n(66),u=n(59),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){for(var e=a(o(t).raw),n=u(e),r=arguments.length,i=[],f=0;n>f;){if(c(i,s(e[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(t,e,n){n(2)({target:"String",proto:!0},{repeat:n(192)})},function(t,e,n){"use strict";var r=n(64),i=n(7),a=n(13),o=n(344),s=n(6),u=n(44),c=n(19),l=n(58),f=n(60),h=n(66),d=n(15),g=n(345),p=n(27),v=n(354),y=n(346),x=n(31)("replace"),_=Math.max,m=Math.min,b=a([].concat),w=a([].push),T=a("".indexOf),A=a("".slice),E="$0"==="a".replace(/./,"$0"),S=!!/./[x]&&""===/./[x]("a","$0");o("replace",(function(t,e,n){var a=S?"$":"$0";return[function(t,n){var r=d(this),a=null==t?void 0:p(t,x);return a?i(a,t,r,n):i(e,h(r),t,n)},function(t,i){var o=u(this),s=h(t);if("string"==typeof i&&-1===T(i,a)&&-1===T(i,"$<")){var d=n(e,o,s,i);if(d.done)return d.value}var p=c(i);p||(i=h(i));var x=o.global;if(x){var E=o.unicode;o.lastIndex=0}for(var S=[];;){var k=y(o,s);if(null===k)break;if(w(S,k),!x)break;""===h(k[0])&&(o.lastIndex=g(s,f(o.lastIndex),E))}for(var M,O="",R=0,C=0;C<S.length;C++){for(var I=h((k=S[C])[0]),L=_(m(l(k.index),s.length),0),P=[],D=1;D<k.length;D++)w(P,void 0===(M=k[D])?M:String(M));var N=k.groups;if(p){var z=b([I],P,L,s);void 0!==N&&w(z,N);var F=h(r(i,void 0,z))}else F=v(I,s,L,P,N,i);L>=R&&(O+=A(s,R,L)+F,R=L+I.length)}return O+A(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||S)},function(t,e,n){var r=n(13),i=n(37),a=Math.floor,o=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,g=r.length,p=l;return void 0!==f&&(f=i(f),p=c),s(h,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>g){var h=a(l/10);return 0===h?i:h<=g?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(13),s=n(15),u=n(19),c=n(321),l=n(66),f=n(27),h=n(322),d=n(354),g=n(31),p=n(33),v=g("replace"),y=RegExp.prototype,x=i.TypeError,_=o(h),m=o("".indexOf),b=o("".replace),w=o("".slice),T=Math.max,A=function(t,e,n){return n>t.length?-1:""===e?n:m(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,i,o,h,g,E,S,k,M=s(this),O=0,R=0,C="";if(null!=t){if((n=c(t))&&(r=l(s("flags"in y?t.flags:_(t))),!~m(r,"g")))throw x("`.replaceAll` does not allow non-global regexes");if(i=f(t,v))return a(i,t,M,e);if(p&&n)return b(l(M),t,e)}for(o=l(M),h=l(t),(g=u(e))||(e=l(e)),E=h.length,S=T(1,E),O=A(o,h,0);-1!==O;)k=g?l(e(h,O,o)):d(h,o,O,[],void 0,e),C+=w(o,R,O)+k,R=O+E,O=A(o,h,O+S);return R<o.length&&(C+=w(o,R)),C}})},function(t,e,n){"use strict";var r=n(7),i=n(344),a=n(44),o=n(15),s=n(273),u=n(66),c=n(27),l=n(346);i("search",(function(t,e,n){return[function(e){var n=o(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=a(this),i=u(t),o=n(e,r,i);if(o.done)return o.value;var c=r.lastIndex;s(c,0)||(r.lastIndex=0);var f=l(r,i);return s(r.lastIndex,c)||(r.lastIndex=c),null===f?-1:f.index}]}))},function(t,e,n){"use strict";var r=n(64),i=n(7),a=n(13),o=n(344),s=n(321),u=n(44),c=n(15),l=n(182),f=n(345),h=n(60),d=n(66),g=n(27),p=n(74),v=n(346),y=n(328),x=n(323),_=n(6),m=x.UNSUPPORTED_Y,b=4294967295,w=Math.min,T=[].push,A=a(/./.exec),E=a(T),S=a("".slice),k=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=d(c(this)),o=void 0===n?b:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!s(t))return i(e,a,t,o);for(var u,l,f,h=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,x=new RegExp(t.source,g+"g");(u=i(y,x,a))&&!((l=x.lastIndex)>v&&(E(h,S(a,v,u.index)),u.length>1&&u.index<a.length&&r(T,h,p(u,1)),f=u[0].length,v=l,h.length>=o));)x.lastIndex===u.index&&x.lastIndex++;return v===a.length?!f&&A(x,"")||E(h,""):E(h,S(a,v)),h.length>o?p(h,0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),o=null==e?void 0:g(e,t);return o?i(o,e,r,n):i(a,d(r),e,n)},function(t,r){var i=u(this),o=d(t),s=n(a,i,o,r,a!==e);if(s.done)return s.value;var c=l(i,RegExp),g=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m?"g":"y"),y=new c(m?"^(?:"+i.source+")":i,p),x=void 0===r?b:r>>>0;if(0===x)return[];if(0===o.length)return null===v(y,o)?[o]:[];for(var _=0,T=0,A=[];T<o.length;){y.lastIndex=m?0:T;var k,M=v(y,m?S(o,T):o);if(null===M||(k=w(h(y.lastIndex+(m?T:0)),o.length))===_)T=f(o,T,g);else{if(E(A,S(o,_,T)),A.length===x)return A;for(var O=1;O<=M.length-1;O++)if(E(A,M[O]),A.length===x)return A;T=_=k}}return E(A,S(o,_)),A}]}),!k,m)},function(t,e,n){"use strict";var r,i=n(2),a=n(13),o=n(4).f,s=n(60),u=n(66),c=n(338),l=n(15),f=n(339),h=n(33),d=a("".startsWith),g=a("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):g(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(15),o=n(58),s=n(66),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(a(this)),f=i.length,h=o(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:o(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},function(t,e,n){"use strict";var r=n(2),i=n(237).trim;r({target:"String",proto:!0,forced:n(361)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(51).PROPER,i=n(6),a=n(238);t.exports=function(t){return i((function(){return!!a[t]()||"
"!=="
"[t]()||r&&a[t].name!==t}))}},function(t,e,n){"use strict";var r=n(2),i=n(237).end,a=n(361)("trimEnd"),o=a?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,name:"trimEnd",forced:a},{trimEnd:o,trimRight:o})},function(t,e,n){"use strict";var r=n(2),i=n(237).start,a=n(361)("trimStart"),o=a?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,name:"trimStart",forced:a},{trimStart:o,trimLeft:o})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){var r=n(13),i=n(15),a=n(66),o=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=a(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(r),o,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(6);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(2),i=n(365);r({target:"String",proto:!0,forced:n(366)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){n(380)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(2),i=n(3),a=n(7),o=n(5),s=n(381),u=n(180),c=n(173),l=n(176),f=n(10),h=n(41),d=n(243),g=n(60),p=n(177),v=n(382),y=n(16),x=n(36),_=n(67),m=n(18),b=n(20),w=n(69),T=n(22),A=n(102),E=n(54).f,S=n(384),k=n(81).forEach,M=n(168),O=n(42),R=n(4),C=n(47),I=n(104),L=C.get,P=C.set,D=O.f,N=R.f,z=Math.round,F=i.RangeError,j=c.ArrayBuffer,B=j.prototype,X=c.DataView,$=u.NATIVE_ARRAY_BUFFER_VIEWS,U=u.TYPED_ARRAY_CONSTRUCTOR,Y=u.TYPED_ARRAY_TAG,V=u.TypedArray,G=u.TypedArrayPrototype,H=u.aTypedArrayConstructor,W=u.isTypedArray,q="BYTES_PER_ELEMENT",Z="Wrong length",K=function(t,e){H(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},J=function(t,e){D(t,e,{get:function(){return L(this)[e]}})},Q=function(t){var e;return T(B,t)||"ArrayBuffer"==(e=_(t))||"SharedArrayBuffer"==e},tt=function(t,e){return W(t)&&!b(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?f(2,t[e]):N(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&m(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?D(t,e,n):(t[e]=n.value,t)};o?($||(R.f=et,O.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),r({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],y=d,x=y&&y.prototype,_={},b=function(t,e){D(t,e,{get:function(){return function(t,e){var n=L(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=L(t);n&&(r=(r=z(r))<0?0:r>255?255:255&r),i.view[f](e*o+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};$?s&&(y=e((function(t,e,n,r){return l(t,x),I(m(e)?Q(e)?void 0!==r?new d(e,v(n,o),r):void 0!==n?new d(e,v(n,o)):new d(e):W(e)?K(y,e):a(S,y,e):new d(p(e)),t,y)})),A&&A(y,V),k(E(d),(function(t){t in y||h(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,r){l(t,x);var i,s,u,c=0,f=0;if(m(e)){if(!Q(e))return W(e)?K(y,e):a(S,y,e);i=e,f=v(n,o);var h=e.byteLength;if(void 0===r){if(h%o)throw F(Z);if((s=h-f)<0)throw F(Z)}else if((s=g(r)*o)+f>h)throw F(Z);u=s/o}else u=p(e),i=new j(s=u*o);for(P(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new X(i)});c<u;)b(t,c++)})),A&&A(y,V),x=y.prototype=w(G)),x.constructor!==y&&h(x,"constructor",y),h(x,U,y),Y&&h(x,Y,u),_[u]=y,r({global:!0,forced:y!=d,sham:!$},_),q in y||h(y,q,o),q in x||h(x,q,o),M(u)}):t.exports=function(){}},function(t,e,n){var r=n(3),i=n(6),a=n(142),o=n(180).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var r=n(3),i=n(383),a=r.RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw a("Wrong offset");return n}},function(t,e,n){var r=n(3),i=n(58),a=r.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw a("The argument can't be less than 0");return e}},function(t,e,n){var r=n(82),i=n(7),a=n(183),o=n(37),s=n(59),u=n(117),c=n(118),l=n(115),f=n(180).aTypedArrayConstructor;t.exports=function(t){var e,n,h,d,g,p,v=a(this),y=o(t),x=arguments.length,_=x>1?arguments[1]:void 0,m=void 0!==_,b=c(y);if(b&&!l(b))for(p=(g=u(y,b)).next,y=[];!(d=i(p,g)).done;)y.push(d.value);for(m&&x>2&&(_=r(_,arguments[2])),n=s(y),h=new(f(v))(n),e=0;n>e;e++)h[e]=m?_(y[e],e):y[e];return h}},function(t,e,n){n(380)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(380)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(380)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(180),i=n(59),a=n(58),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var r=n(13),i=n(180),a=r(n(126)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(7),a=n(130),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(t){var e=arguments.length;return i(a,o(this),t,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).filter,a=n(398),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var r=n(399),i=n(400);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(59);t.exports=function(t,e){for(var n=0,i=r(e),a=new t(i);i>n;)a[n]=e[n++];return a}},function(t,e,n){var r=n(180),i=n(182),a=r.TYPED_ARRAY_CONSTRUCTOR,o=r.aTypedArrayConstructor;t.exports=function(t){return o(i(t,t[a]))}},function(t,e,n){"use strict";var r=n(180),i=n(81).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(81).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(381);(0,n(180).exportTypedArrayStaticMethod)("from",n(384),r)},function(t,e,n){"use strict";var r=n(180),i=n(56).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(56).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(13),o=n(180),s=n(146),u=n(31)("iterator"),c=r.Uint8Array,l=a(s.values),f=a(s.keys),h=a(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype,v=!i((function(){p[u].call([1])})),y=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,x=function(){return l(d(this))};g("entries",(function(){return h(d(this))}),v),g("keys",(function(){return f(d(this))}),v),g("values",x,v||!y,{name:"values"}),g(u,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var r=n(180),i=n(13),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var r=n(180),i=n(64),a=n(152),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(180),i=n(81).map,a=n(400),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var r=n(180),i=n(381),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(180),i=n(156).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=n(156).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(180),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=i(e).length,r=o(n/2),a=0;a<r;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(180),o=n(59),s=n(382),u=n(37),c=n(6),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,d=h&&h.set,g=a.aTypedArray,p=a.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){g(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(v)return i(d,this,n,e);var r=this.length,a=o(n),c=0;if(a+e>r)throw l("Wrong length");for(;c<a;)this[e+c]=n[c++]}),!v||y)},function(t,e,n){"use strict";var r=n(180),i=n(400),a=n(6),o=n(76),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),r=i(this),a=0,u=n.length,c=new r(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(180),i=n(81).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(3),i=n(13),a=n(6),o=n(28),s=n(163),u=n(180),c=n(164),l=n(165),f=n(25),h=n(166),d=r.Array,g=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,y=v&&i(v.prototype.sort),x=!(!y||a((function(){y(new v(2),null)}))&&a((function(){y(new v(2),{})}))),_=!!y&&!a((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=d(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(y(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&o(t),_?y(this,t):s(g(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!_||x)},function(t,e,n){"use strict";var r=n(180),i=n(60),a=n(57),o=n(400),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),r=n.length,u=a(t,r);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:a(e,r))-u))}))},function(t,e,n){"use strict";var r=n(3),i=n(64),a=n(180),o=n(6),s=n(76),u=r.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&o((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(180).exportTypedArrayMethod,i=n(6),a=n(3),o=n(13),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},function(t,e,n){"use strict";var r=n(2),i=n(13),a=n(66),o=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=a(t),i="",h=r.length,d=0;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=o(parseInt(n,16)),d+=2;continue}i+=e}return i}})},function(t,e,n){"use strict";var r,i=n(3),a=n(13),o=n(175),s=n(207),u=n(206),c=n(424),l=n(18),f=n(208),h=n(47).enforce,d=n(48),g=!i.ActiveXObject&&"ActiveXObject"in i,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=u("WeakMap",p,c);if(d&&g){r=c.getConstructor(p,"WeakMap",!0),s.enable();var y=v.prototype,x=a(y.delete),_=a(y.has),m=a(y.get),b=a(y.set);o(y,{delete:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),x(this,t)||e.frozen.delete(t)}return x(this,t)},has:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)||e.frozen.has(t)}return _(this,t)},get:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)?m(this,t):e.frozen.get(t)}return m(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=h(this);n.frozen||(n.frozen=new r),_(this,t)?b(this,t,e):n.frozen.set(t,e)}else b(this,t,e);return this}})}},function(t,e,n){"use strict";var r=n(13),i=n(175),a=n(207).getWeakData,o=n(44),s=n(18),u=n(176),c=n(114),l=n(81),f=n(36),h=n(47),d=h.set,g=h.getterFor,p=l.find,v=l.findIndex,y=r([].splice),x=0,_=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,h),d(t,{type:e,id:x++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),h=l.prototype,p=g(e),v=function(t,e,n){var r=p(t),i=a(o(e),!0);return!0===i?_(r).set(e,n):i[r.id]=n,t};return i(h,{delete:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!s(t))return!1;var n=a(t);return!0===n?_(e).has(t):n&&f(n,e.id)}}),i(h,n?{get:function(t){var e=p(this);if(s(t)){var n=a(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),l}}},function(t,e,n){"use strict";n(206)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(424))},function(t,e,n){var r=n(2),i=n(21),a=n(13),o=n(6),s=n(66),u=n(36),c=n(291),l=n(427).ctoi,f=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,d=/[=]+$/,g=i("atob"),p=String.fromCharCode,v=a("".charAt),y=a("".replace),x=a(f.exec),_=o((function(){return""!==atob(" ")})),m=!_&&!o((function(){g()}));r({global:!0,enumerable:!0,forced:_||m},{atob:function(t){if(c(arguments.length,1),m)return g(t);var e,n,r=y(s(t),h,""),a="",o=0,_=0;if(r.length%4==0&&(r=y(r,d,"")),r.length%4==1||x(f,r))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=v(r,o++);)u(l,e)&&(n=_%4?64*n+l[e]:l[e],_++%4&&(a+=p(255&n>>(-2*_&6))));return a}})},function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},r=0;r<66;r++)n[e.charAt(r)]=r;t.exports={itoc:e,ctoi:n}},function(t,e,n){var r=n(2),i=n(21),a=n(13),o=n(6),s=n(66),u=n(291),c=n(427).itoc,l=i("btoa"),f=a("".charAt),h=a("".charCodeAt),d=!!l&&!o((function(){l()}));r({global:!0,enumerable:!0,forced:d},{btoa:function(t){if(u(arguments.length,1),d)return l(t);for(var e,n,r=s(t),a="",o=0,g=c;f(r,o)||(g="=",o%1);){if((n=h(r,o+=3/4))>255)throw new(i("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=f(g,63&(e=e<<8|n)>>8-o%1*8)}return a}})},function(t,e,n){var r=n(3),i=n(430),a=n(431),o=n(138),s=n(41),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(40)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(3),i=n(430),a=n(431),o=n(146),s=n(41),u=n(31),c=u("iterator"),l=u("toStringTag"),f=o.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),i[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(a,"DOMTokenList")},function(t,e,n){"use strict";var r=n(2),i=n(434),a=n(21),o=n(6),s=n(69),u=n(10),c=n(42).f,l=n(70).f,f=n(45),h=n(36),d=n(176),g=n(44),p=n(110),v=n(105),y=n(435),x=n(107),_=n(47),m=n(5),b=n(33),w="DOMException",T="DATA_CLONE_ERR",A=a("Error"),E=a(w)||function(){try{(new(a("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==T&&25==t.code)return t.constructor}}(),S=E&&E.prototype,k=A.prototype,M=_.set,O=_.getterFor(w),R="stack"in A(w),C=function(t){return h(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,L);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),r=C(n);if(M(this,{type:w,name:n,message:e,code:r}),m||(this.name=n,this.message=e,this.code=r),R){var i=A(e);i.name=w,c(this,"stack",u(1,x(i.stack,1)))}},L=I.prototype=s(k),P=function(t){return{enumerable:!0,configurable:!0,get:t}},D=function(t){return P((function(){return O(this)[t]}))};m&&l(L,{name:D("name"),message:D("message"),code:D("code")}),c(L,"constructor",u(1,I));var N=o((function(){return!(new E instanceof A)})),z=N||o((function(){return k.toString!==p||"2: 1"!==String(new E(1,2))})),F=N||o((function(){return 25!==new E(1,"DataCloneError").code})),j=N||25!==E.DATA_CLONE_ERR||25!==S.DATA_CLONE_ERR,B=b?z||F||j:N;r({global:!0,forced:B},{DOMException:B?I:E});var X=a(w),$=X.prototype;for(var U in z&&(b||E===X)&&f($,"toString",p),F&&m&&E===X&&c($,"code",P((function(){return C(g(this).name)}))),y)if(h(y,U)){var Y=y[U],V=Y.s,G=u(6,Y.c);h(X,V)||c(X,V,G),h($,V)||c($,V,G)}},function(t,e,n){var r=n(157);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(t){}}},function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(t,e,n){"use strict";var r=n(2),i=n(21),a=n(10),o=n(42).f,s=n(36),u=n(176),c=n(104),l=n(105),f=n(435),h=n(107),d=n(33),g="DOMException",p=i("Error"),v=i(g),y=function(){u(this,x);var t=arguments.length,e=l(t<1?void 0:arguments[0]),n=l(t<2?void 0:arguments[1],"Error"),r=new v(e,n),i=p(e);return i.name=g,o(r,"stack",a(1,h(i.stack,1))),c(r,this,y),r},x=y.prototype=v.prototype,_="stack"in p(g),m="stack"in new v(1,2),b=_&&!m;r({global:!0,forced:d||b},{DOMException:b?y:v});var w=i(g),T=w.prototype;if(T.constructor!==w)for(var A in d||o(T,"constructor",a(1,w)),f)if(s(f,A)){var E=f[A],S=E.s;s(w,S)||o(w,S,a(6,E.c))}},function(t,e,n){var r=n(21),i="DOMException";n(80)(r(i),i)},function(t,e,n){var r=n(2),i=n(3),a=n(290);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},function(t,e,n){var r=n(2),i=n(3),a=n(293),o=n(28),s=n(291),u=n(157),c=i.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){s(arguments.length,1),o(t);var e=u&&c.domain;a(e?e.bind(t):t)}})},function(t,e,n){var r,i=n(33),a=n(2),o=n(3),s=n(21),u=n(13),c=n(6),l=n(38),f=n(19),h=n(85),d=n(18),g=n(20),p=n(114),v=n(44),y=n(67),x=n(36),_=n(75),m=n(41),b=n(59),w=n(291),T=n(322),A=n(108),E=o.Object,S=o.Date,k=o.Error,M=o.EvalError,O=o.RangeError,R=o.ReferenceError,C=o.SyntaxError,I=o.TypeError,L=o.URIError,P=o.PerformanceMark,D=o.WebAssembly,N=D&&D.CompileError||k,z=D&&D.LinkError||k,F=D&&D.RuntimeError||k,j=s("DOMException"),B=s("Set"),X=s("Map"),$=X.prototype,U=u($.has),Y=u($.get),V=u($.set),G=u(B.prototype.add),H=s("Object","keys"),W=u([].push),q=u((!0).valueOf),Z=u(1..valueOf),K=u("".valueOf),J=u(T),Q=u(S.prototype.getTime),tt=l("structuredClone"),et="DataCloneError",nt="Transferring",rt=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),r=t(E(7));return n==e||!n.has(7)||"object"!=typeof r||7!=r}))&&t},it=o.structuredClone,at=i||(r=it,!(!c((function(){var t=r(new o.AggregateError([1],tt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=tt||3!=t.cause}))&&r)),ot=!it&&rt((function(t){return new P(tt,{detail:t}).detail})),st=rt(it)||ot,ut=function(t){throw new j("Uncloneable type: "+t,et)},ct=function(t,e){throw new j((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",et)},lt=function(t,e){if(g(t)&&ut("Symbol"),!d(t))return t;if(e){if(U(e,t))return Y(e,t)}else e=new X;var n,r,i,a,u,c,l,p,v,w,T=y(t),P=!1;switch(T){case"Array":i=[],P=!0;break;case"Object":i={},P=!0;break;case"Map":i=new X,P=!0;break;case"Set":i=new B,P=!0;break;case"RegExp":i=new RegExp(t.source,"flags"in t?t.flags:J(t));break;case"Error":switch(r=t.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=M();break;case"RangeError":i=O();break;case"ReferenceError":i=R();break;case"SyntaxError":i=C();break;case"TypeError":i=I();break;case"URIError":i=L();break;case"CompileError":i=N();break;case"LinkError":i=z();break;case"RuntimeError":i=F();break;default:i=k()}P=!0;break;case"DOMException":i=new j(t.message,t.name),P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=o[T],d(n)||ct(T),i=new n(lt(t.buffer,e),t.byteOffset,"DataView"===T?t.byteLength:t.length);break;case"DOMQuad":try{i=new DOMQuad(lt(t.p1,e),lt(t.p2,e),lt(t.p3,e),lt(t.p4,e))}catch(e){st?i=st(t):ct(T)}break;case"FileList":if(n=o.DataTransfer,h(n)){for(a=new n,u=0,c=b(t);u<c;u++)a.items.add(lt(t[u],e));i=a.files}else st?i=st(t):ct(T);break;case"ImageData":try{i=new ImageData(lt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){st?i=st(t):ct(T)}break;default:if(st)i=st(t);else switch(T){case"BigInt":i=E(t.valueOf());break;case"Boolean":i=E(q(t));break;case"Number":i=E(Z(t));break;case"String":i=E(K(t));break;case"Date":i=new S(Q(t));break;case"ArrayBuffer":(n=o.DataView)||"function"==typeof t.slice||ct(T);try{if("function"==typeof t.slice)i=t.slice(0);else for(c=t.byteLength,i=new ArrayBuffer(c),v=new n(t),w=new n(i),u=0;u<c;u++)w.setUint8(u,v.getUint8(u))}catch(t){throw new j("ArrayBuffer is detached",et)}break;case"SharedArrayBuffer":i=t;break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){ct(T)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[T];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){ct(T)}break;case"DOMRect":case"DOMRectReadOnly":n=o[T];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){ct(T)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[T];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){ct(T)}break;case"AudioData":case"VideoFrame":f(t.clone)||ct(T);try{i=t.clone()}catch(t){ut(T)}break;case"File":try{i=new File([t],t.name,t)}catch(t){ct(T)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ct(T);default:ut(T)}}if(V(e,t,i),P)switch(T){case"Array":case"Object":for(l=H(t),u=0,c=b(l);u<c;u++)p=l[u],_(i,p,lt(t[p],e));break;case"Map":t.forEach((function(t,n){V(i,lt(n,e),lt(t,e))}));break;case"Set":t.forEach((function(t){G(i,lt(t,e))}));break;case"Error":m(i,"message",lt(t.message,e)),x(t,"cause")&&m(i,"cause",lt(t.cause,e)),"AggregateError"==r&&(i.errors=lt(t.errors,e));case"DOMException":A&&m(i,"stack",lt(t.stack,e))}return i},ft=it&&!c((function(){var t=new ArrayBuffer(8),e=it(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),ht=function(t,e){if(!d(t))throw I("Transfer option cannot be converted to a sequence");var n=[];p(t,(function(t){W(n,v(t))}));var r,i,a,s,u,c,l=0,g=b(n);if(ft)for(s=it(n,{transfer:n});l<g;)V(e,n[l],s[l++]);else for(;l<g;){if(r=n[l++],U(e,r))throw new j("Duplicate transferable",et);switch(i=y(r)){case"ImageBitmap":a=o.OffscreenCanvas,h(a)||ct(i,nt);try{(c=new a(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),u=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||ct(i,nt);try{u=r.clone(),r.close()}catch(t){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":ct(i,nt)}if(void 0===u)throw new j("This object cannot be transferred: "+i,et);V(e,r,u)}};a({global:!0,enumerable:!0,sham:!ft,forced:at},{structuredClone:function(t){var e,n=w(arguments.length,1)>1?v(arguments[1]):void 0,r=n?n.transfer:void 0;return void 0!==r&&(e=new X,ht(r,e)),lt(t,e)}})},function(t,e,n){var r=n(2),i=n(3),a=n(64),o=n(19),s=n(26),u=n(76),c=n(291),l=/MSIE .\./.test(s),f=i.Function,h=function(t){return function(e,n){var r=c(arguments.length,1)>2,i=o(e)?e:f(e),s=r?u(arguments,2):void 0;return t(r?function(){a(i,this,s)}:i,n)}};r({global:!0,bind:!0,forced:l},{setTimeout:h(i.setTimeout),setInterval:h(i.setInterval)})},function(t,e,n){"use strict";n(342);var r,i=n(2),a=n(5),o=n(443),s=n(3),u=n(82),c=n(13),l=n(70).f,f=n(45),h=n(176),d=n(36),g=n(256),p=n(140),v=n(74),y=n(336).codeAt,x=n(444),_=n(66),m=n(80),b=n(291),w=n(445),T=n(47),A=T.set,E=T.getterFor("URL"),S=w.URLSearchParams,k=w.getState,M=s.URL,O=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,L=c("".charAt),P=c(/./.exec),D=c([].join),N=c(1..toString),z=c([].pop),F=c([].push),j=c("".replace),B=c([].shift),X=c("".split),$=c("".slice),U=c("".toLowerCase),Y=c([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,it=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=C(t/256);return D(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=N(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},st=g({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=g({},st,{"#":1,"?":1,"{":1,"}":1}),ct=g({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,e){var n;return 2==t.length&&P(W,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},dt=function(t){var e;return t.length>1&&ht($(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===U(t)},pt={},vt={},yt={},xt={},_t={},mt={},bt={},wt={},Tt={},At={},Et={},St={},kt={},Mt={},Ot={},Rt={},Ct={},It={},Lt={},Pt={},Dt={},Nt=function(t,e,n){var r,i,a,o=_(t);if(e){if(i=this.parse(o))throw O(i);this.searchParams=null}else{if(void 0!==n&&(r=new Nt(n,!0)),i=this.parse(o,null,r))throw O(i);(a=k(new S)).bindURL(this),this.searchParams=a}};Nt.prototype={type:"URL",parse:function(t,e,n){var i,a,o,s,u,c=this,l=e||pt,f=0,h="",g=!1,y=!1,x=!1;for(t=_(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=j(t,rt,"")),t=j(t,it,""),i=p(t);f<=i.length;){switch(a=i[f],l){case pt:if(!a||!P(W,a)){if(e)return V;l=yt;continue}h+=U(a),l=vt;break;case vt:if(a&&(P(q,a)||"+"==a||"-"==a||"."==a))h+=U(a);else{if(":"!=a){if(e)return V;h="",l=yt,f=0;continue}if(e&&(c.isSpecial()!=d(ft,h)||"file"==h&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ft[c.scheme]==c.port&&(c.port=null));h="","file"==c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme==c.scheme?l=xt:c.isSpecial()?l=wt:"/"==i[f+1]?(l=_t,f++):(c.cannotBeABaseURL=!0,F(c.path,""),l=Lt)}break;case yt:if(!n||n.cannotBeABaseURL&&"#"!=a)return V;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Dt;break}l="file"==n.scheme?Mt:mt;continue;case xt:if("/"!=a||"/"!=i[f+1]){l=mt;continue}l=Tt,f++;break;case _t:if("/"==a){l=At;break}l=It;continue;case mt:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=bt;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}break;case bt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=At}else l=Tt;break;case wt:if(l=Tt,"/"!=a||"/"!=L(h,f+1))continue;f++;break;case Tt:if("/"!=a&&"\\"!=a){l=At;continue}break;case At:if("@"==a){g&&(h="%40"+h),g=!0,o=p(h);for(var m=0;m<o.length;m++){var b=o[m];if(":"!=b||x){var w=lt(b,ct);x?c.password+=w:c.username+=w}else x=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(g&&""==h)return"Invalid authority";f-=p(h).length+1,h="",l=Et}else h+=a;break;case Et:case St:if(e&&"file"==c.scheme){l=Rt;continue}if(":"!=a||y){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==h)return G;if(e&&""==h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",l=Ct,e)return;continue}"["==a?y=!0:"]"==a&&(y=!1),h+=a}else{if(""==h)return G;if(s=c.parseHost(h))return s;if(h="",l=kt,e==St)return}break;case kt:if(!P(Z,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=h){var T=R(h,10);if(T>65535)return H;c.port=c.isSpecial()&&T===ft[c.scheme]?null:T,h=""}if(e)return;l=Ct;continue}return H}h+=a;break;case Mt:if(c.scheme="file","/"==a||"\\"==a)l=Ot;else{if(!n||"file"!=n.scheme){l=It;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){dt(D(v(i,f),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=It;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Dt}}break;case Ot:if("/"==a||"\\"==a){l=Rt;break}n&&"file"==n.scheme&&!dt(D(v(i,f),""))&&(ht(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),l=It;continue;case Rt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&ht(h))l=It;else if(""==h){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(h))return s;if("localhost"==c.host&&(c.host=""),e)return;h="",l=Ct}continue}h+=a;break;case Ct:if(c.isSpecial()){if(l=It,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=r&&(l=It,"/"!=a))continue}else c.fragment="",l=Dt;else c.query="",l=Pt;break;case It:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(u=U(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||F(c.path,"")):gt(h)?"/"==a||"\\"==a&&c.isSpecial()||F(c.path,""):("file"==c.scheme&&!c.path.length&&ht(h)&&(c.host&&(c.host=""),h=L(h,0)+":"),F(c.path,h)),h="","file"==c.scheme&&(a==r||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==a?(c.query="",l=Pt):"#"==a&&(c.fragment="",l=Dt)}else h+=lt(a,ut);break;case Lt:"?"==a?(c.query="",l=Pt):"#"==a?(c.fragment="",l=Dt):a!=r&&(c.path[0]+=lt(a,ot));break;case Pt:e||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":lt(a,ot)):(c.fragment="",l=Dt);break;case Dt:a!=r&&(c.fragment+=lt(a,st))}f++}},parseHost:function(t){var e,n,r;if("["==L(t,0)){if("]"!=L(t,t.length-1))return G;if(e=function(t){var e,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return L(t,f)};if(":"==h()){if(":"!=L(t,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&P(tt,h());)e=16*e+R(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!P(Z,h()))return;for(;P(Z,h());){if(a=R(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}($(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),P(et,t))return G;if(e=function(t){var e,n,r,i,a,o,s,u=X(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(a=10,i.length>1&&"0"==L(i,0)&&(a=P(K,i)?16:8,i=$(i,8==a?1:2)),""===i)o=0;else{if(!P(10==a?Q:8==a?J:tt,i))return t;o=R(i,a)}F(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=I(256,5-e))return null}else if(o>255)return null;for(s=z(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(t),null===e)return G;this.host=e}else{if(P(nt,t))return G;for(e="",n=p(t),r=0;r<n.length;r++)e+=lt(n[r],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ht(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=at(i),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new zt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(_(t)+":",pt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=lt(e[n],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=lt(e[n],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,St)},getPort:function(){var t=this.port;return null===t?"":_(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=_(t))?this.port=null:this.parse(t,kt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+D(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ct))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=_(t))?this.query=null:("?"==L(t,0)&&(t=$(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=_(t))?("#"==L(t,0)&&(t=$(t,1)),this.fragment="",this.parse(t,Dt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zt=function(t){var e=h(this,Ft),n=b(arguments.length,1)>1?arguments[1]:void 0,r=A(e,new Nt(t,!1,n));a||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Ft=zt.prototype,jt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&l(Ft,{href:jt("serialize","setHref"),origin:jt("getOrigin"),protocol:jt("getProtocol","setProtocol"),username:jt("getUsername","setUsername"),password:jt("getPassword","setPassword"),host:jt("getHost","setHost"),hostname:jt("getHostname","setHostname"),port:jt("getPort","setPort"),pathname:jt("getPathname","setPathname"),search:jt("getSearch","setSearch"),searchParams:jt("getSearchParams"),hash:jt("getHash","setHash")}),f(Ft,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),f(Ft,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),M){var Bt=M.createObjectURL,Xt=M.revokeObjectURL;Bt&&f(zt,"createObjectURL",u(Bt,M)),Xt&&f(zt,"revokeObjectURL",u(Xt,M))}m(zt,"URL"),i({global:!0,forced:!o,sham:!a},{URL:zt})},function(t,e,n){var r=n(6),i=n(31),a=n(33),o=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var r=n(3),i=n(13),a=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=r.RangeError,l=i(s.exec),f=Math.floor,h=String.fromCharCode,d=i("".charCodeAt),g=i([].join),p=i([].push),v=i("".replace),y=i("".split),x=i("".toLowerCase),_=function(t){return t+22+75*(t<26)},m=function(t,e,n){var r=0;for(t=n?f(t/700):t>>1,t+=f(t/e);t>455;)t=f(t/35),r+=36;return f(r+36*t/(t+38))},b=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=d(t,n++);if(i>=55296&&i<=56319&&n<r){var a=d(t,n++);56320==(64512&a)?p(e,((1023&i)<<10)+(1023&a)+65536):(p(e,i),n--)}else p(e,i)}return e}(t);var n,r,i=t.length,o=128,s=0,l=72;for(n=0;n<t.length;n++)(r=t[n])<128&&p(e,h(r));var v=e.length,y=v;for(v&&p(e,"-");y<i;){var x=a;for(n=0;n<t.length;n++)(r=t[n])>=o&&r<x&&(x=r);var b=y+1;if(x-o>f((a-s)/b))throw c(u);for(s+=(x-o)*b,o=x,n=0;n<t.length;n++){if((r=t[n])<o&&++s>a)throw c(u);if(r==o){for(var w=s,T=36;;){var A=T<=l?1:T>=l+26?26:T-l;if(w<A)break;var E=w-A,S=36-A;p(e,h(_(A+E%S))),w=f(E/S),T+=36}p(e,h(_(w))),l=m(s,b,y==v),s=0,y++}}s++,o++}return g(e,"")};t.exports=function(t){var e,n,r=[],i=y(v(x(t),s,"."),".");for(e=0;e<i.length;e++)n=i[e],p(r,l(o,n)?"xn--"+b(n):n);return g(r,".")}},function(t,e,n){"use strict";n(146);var r=n(2),i=n(3),a=n(21),o=n(7),s=n(13),u=n(443),c=n(45),l=n(175),f=n(80),h=n(148),d=n(47),g=n(176),p=n(19),v=n(36),y=n(82),x=n(67),_=n(44),m=n(18),b=n(66),w=n(69),T=n(10),A=n(117),E=n(118),S=n(291),k=n(31),M=n(163),O=k("iterator"),R="URLSearchParams",C="URLSearchParamsIterator",I=d.set,L=d.getterFor(R),P=d.getterFor(C),D=a("fetch"),N=a("Request"),z=a("Headers"),F=N&&N.prototype,j=z&&z.prototype,B=i.RegExp,X=i.TypeError,$=i.decodeURIComponent,U=i.encodeURIComponent,Y=s("".charAt),V=s([].join),G=s([].push),H=s("".replace),W=s([].shift),q=s([].splice),Z=s("".split),K=s("".slice),J=/\+/g,Q=Array(4),tt=function(t){return Q[t-1]||(Q[t-1]=B("((?:%[\\da-f]{2}){"+t+"})","gi"))},et=function(t){try{return $(t)}catch(e){return t}},nt=function(t){var e=H(t,J," "),n=4;try{return $(e)}catch(t){for(;n;)e=H(e,tt(n--),et);return e}},rt=/[!'()~]|%20/g,it={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},at=function(t){return it[t]},ot=function(t){return H(U(t),rt,at)},st=h((function(t,e){I(this,{type:C,iterator:A(L(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),ut=function(t){this.entries=[],this.url=null,void 0!==t&&(m(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?K(t,1):t:b(t)))};ut.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=E(t);if(c)for(n=(e=A(t,c)).next;!(r=o(n,e)).done;){if(a=(i=A(_(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw X("Expected sequence with length 2");G(this.entries,{key:b(s.value),value:b(u.value)})}else for(var l in t)v(t,l)&&G(this.entries,{key:l,value:b(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=Z(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=Z(e,"="),G(this.entries,{key:nt(W(n)),value:nt(V(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],G(n,ot(t.key)+"="+ot(t.value));return V(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ct=function(){g(this,lt);var t=arguments.length>0?arguments[0]:void 0;I(this,new ut(t))},lt=ct.prototype;if(l(lt,{append:function(t,e){S(arguments.length,2);var n=L(this);G(n.entries,{key:b(t),value:b(e)}),n.updateURL()},delete:function(t){S(arguments.length,1);for(var e=L(this),n=e.entries,r=b(t),i=0;i<n.length;)n[i].key===r?q(n,i,1):i++;e.updateURL()},get:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=[],i=0;i<e.length;i++)e[i].key===n&&G(r,e[i].value);return r},has:function(t){S(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){S(arguments.length,1);for(var n,r=L(this),i=r.entries,a=!1,o=b(t),s=b(e),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?q(i,u--,1):(a=!0,n.value=s));a||G(i,{key:o,value:s}),r.updateURL()},sort:function(){var t=L(this);M(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=L(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new st(this,"keys")},values:function(){return new st(this,"values")},entries:function(){return new st(this,"entries")}},{enumerable:!0}),c(lt,O,lt.entries,{name:"entries"}),c(lt,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),f(ct,R),r({global:!0,forced:!u},{URLSearchParams:ct}),!u&&p(z)){var ft=s(j.has),ht=s(j.set),dt=function(t){if(m(t)){var e,n=t.body;if(x(n)===R)return e=t.headers?new z(t.headers):new z,ft(e,"content-type")||ht(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:T(0,b(n)),headers:T(0,e)})}return t};if(p(D)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return D(t,arguments.length>1?dt(arguments[1]):{})}}),p(N)){var gt=function(t){return g(this,F),new N(t,arguments.length>1?dt(arguments[1]):{})};F.constructor=gt,gt.prototype=F,r({global:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ct,getState:L}},function(t,e,n){"use strict";var r=n(2),i=n(7);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return og},default:function(){return og}});var r={};n.r(r),n.d(r,{area:function(){return fd},areaLineRange:function(){return hd},areaSpline:function(){return dd},areaSplineRange:function(){return gd},areaStep:function(){return pd},bar:function(){return Ad},bubble:function(){return Ed},candlestick:function(){return Sd},donut:function(){return _d},gauge:function(){return md},line:function(){return vd},pie:function(){return bd},polar:function(){return wd},radar:function(){return Td},scatter:function(){return kd},spline:function(){return yd},step:function(){return xd}});var i={};n.r(i),n.d(i,{selection:function(){return ng},subchart:function(){return rg},zoom:function(){return ig}});var a=new Date,o=new Date;function s(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return s((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var u=1e3,c=6e4,l=36e5,f=864e5,h=6048e5,d=2592e6,g=31536e6;function p(t){return s((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/h}))}var v=p(0),y=p(1),x=p(2),_=p(3),m=p(4),b=p(5),w=p(6),T=(v.range,y.range,x.range,_.range,m.range,b.range,w.range,s((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),A=T;T.range;function E(t){return s((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/h}))}var S=E(0),k=E(1),M=E(2),O=E(3),R=E(4),C=E(5),I=E(6),L=(S.range,k.range,M.range,O.range,R.range,C.range,I.range,s((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f}),(function(t){return t.getDate()-1}))),P=L,D=(L.range,s((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));D.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var N=D,z=(D.range,s((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));z.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var F=z;z.range;function j(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function B(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function X(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $,U,Y,V,G,H={"-":"",_:" ",0:"0"},W=/^\s*\d+/,q=/^%/,Z=/[\\^$*+?|[\]().{}]/g;function K(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function J(t){return t.replace(Z,"\\$&")}function Q(t){return new RegExp("^(?:"+t.map(J).join("|")+")","i")}function tt(t){return new Map(t.map((function(t,e){return[t.toLowerCase(),e]})))}function et(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function it(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function at(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ot(t,e,n){var r=W.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function st(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ut(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ct(t,e,n){var r=W.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function lt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ft(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=W.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function vt(t,e,n){var r=W.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function yt(t,e,n){var r=W.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xt(t,e,n){var r=q.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function _t(t,e,n){var r=W.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function mt(t,e,n){var r=W.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function bt(t,e){return K(t.getDate(),e,2)}function wt(t,e){return K(t.getHours(),e,2)}function Tt(t,e){return K(t.getHours()%12||12,e,2)}function At(t,e){return K(1+P.count(N(t),t),e,3)}function Et(t,e){return K(t.getMilliseconds(),e,3)}function St(t,e){return Et(t,e)+"000"}function kt(t,e){return K(t.getMonth()+1,e,2)}function Mt(t,e){return K(t.getMinutes(),e,2)}function Ot(t,e){return K(t.getSeconds(),e,2)}function Rt(t){var e=t.getDay();return 0===e?7:e}function Ct(t,e){return K(S.count(N(t)-1,t),e,2)}function It(t){var e=t.getDay();return e>=4||0===e?R(t):R.ceil(t)}function Lt(t,e){return t=It(t),K(R.count(N(t),t)+(4===N(t).getDay()),e,2)}function Pt(t){return t.getDay()}function Dt(t,e){return K(k.count(N(t)-1,t),e,2)}function Nt(t,e){return K(t.getFullYear()%100,e,2)}function zt(t,e){return K((t=It(t)).getFullYear()%100,e,2)}function Ft(t,e){return K(t.getFullYear()%1e4,e,4)}function jt(t,e){var n=t.getDay();return K((t=n>=4||0===n?R(t):R.ceil(t)).getFullYear()%1e4,e,4)}function Bt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+K(e/60|0,"0",2)+K(e%60,"0",2)}function Xt(t,e){return K(t.getUTCDate(),e,2)}function $t(t,e){return K(t.getUTCHours(),e,2)}function Ut(t,e){return K(t.getUTCHours()%12||12,e,2)}function Yt(t,e){return K(1+A.count(F(t),t),e,3)}function Vt(t,e){return K(t.getUTCMilliseconds(),e,3)}function Gt(t,e){return Vt(t,e)+"000"}function Ht(t,e){return K(t.getUTCMonth()+1,e,2)}function Wt(t,e){return K(t.getUTCMinutes(),e,2)}function qt(t,e){return K(t.getUTCSeconds(),e,2)}function Zt(t){var e=t.getUTCDay();return 0===e?7:e}function Kt(t,e){return K(v.count(F(t)-1,t),e,2)}function Jt(t){var e=t.getUTCDay();return e>=4||0===e?m(t):m.ceil(t)}function Qt(t,e){return t=Jt(t),K(m.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function te(t){return t.getUTCDay()}function ee(t,e){return K(y.count(F(t)-1,t),e,2)}function ne(t,e){return K(t.getUTCFullYear()%100,e,2)}function re(t,e){return K((t=Jt(t)).getUTCFullYear()%100,e,2)}function ie(t,e){return K(t.getUTCFullYear()%1e4,e,4)}function ae(t,e){var n=t.getUTCDay();return K((t=n>=4||0===n?m(t):m.ceil(t)).getUTCFullYear()%1e4,e,4)}function oe(){return"+0000"}function se(){return"%"}function ue(t){return+t}function ce(t){return Math.floor(+t/1e3)}function le(){}function fe(t){return null==t?le:function(){return this.querySelector(t)}}function he(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function ge(t){return null==t?de:function(){return this.querySelectorAll(t)}}function pe(t){return function(){return this.matches(t)}}function ve(t){return function(e){return e.matches(t)}}$=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,c=Q(i),l=tt(i),f=Q(a),h=tt(a),d=Q(o),g=tt(o),p=Q(s),v=tt(s),x=Q(u),_=tt(u),m={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:bt,e:bt,f:St,g:zt,G:jt,H:wt,I:Tt,j:At,L:Et,m:kt,M:Mt,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ue,s:ce,S:Ot,u:Rt,U:Ct,V:Lt,w:Pt,W:Dt,x:null,X:null,y:Nt,Y:Ft,Z:Bt,"%":se},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Xt,e:Xt,f:Gt,g:re,G:ae,H:$t,I:Ut,j:Yt,L:Vt,m:Ht,M:Wt,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ue,s:ce,S:qt,u:Zt,U:Kt,V:Qt,w:te,W:ee,x:null,X:null,y:ne,Y:ie,Z:oe,"%":se},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=x.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:ft,e:ft,f:yt,g:st,G:ot,H:dt,I:dt,j:ht,L:vt,m:lt,M:gt,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:ct,Q:_t,s:mt,S:pt,u:nt,U:rt,V:it,w:et,W:at,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:st,Y:ot,Z:ut,"%":xt};function T(t,e){return function(n){var r,i,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(i=H[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=X(1900,void 0,1);if(S(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=B(X(a.y,0,1))).getUTCDay(),r=i>4||0===i?y.ceil(r):y(r),r=A.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=j(X(a.y,0,1))).getDay(),r=i>4||0===i?k.ceil(r):k(r),r=P.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?B(X(a.y,0,1)).getUTCDay():j(X(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,B(a)):j(a)}}function S(t,e,n,r){for(var i,a,o=0,s=e.length,u=n.length;o<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in H?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return m.x=T(n,m),m.X=T(r,m),m.c=T(e,m),b.x=T(n,b),b.X=T(r,b),b.c=T(e,b),{format:function(t){var e=T(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),U=$.format,Y=$.parse,V=$.utcFormat,G=$.utcParse;var ye=Array.prototype.find;function xe(){return this.firstElementChild}var _e=Array.prototype.filter;function me(){return Array.from(this.children)}function be(t){return Array(t.length)}function we(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Te(t){return function(){return t}}function Ae(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new we(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function Ee(t,e,n,r,i,a,o){var s,u,c,l=new Map,f=e.length,h=a.length,d=Array(f);for(s=0;s<f;++s)(u=e[s])&&(d[s]=c=o.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<h;++s)c=o.call(t,a[s],s,a)+"",(u=l.get(c))?(r[s]=u,u.__data__=a[s],l.delete(c)):n[s]=new we(t,a[s]);for(s=0;s<f;++s)(u=e[s])&&l.get(d[s])===u&&(i[s]=u)}function Se(t){return t.__data__}function ke(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Me(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}we.prototype={constructor:we,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ce="http://www.w3.org/1999/xhtml",Ie={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Le(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ie.hasOwnProperty(e)?{space:Ie[e],local:t}:t}function Pe(t){return function(){this.removeAttribute(t)}}function De(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ne(t,e){return function(){this.setAttribute(t,e)}}function ze(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fe(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function je(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Be(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xe(t){return function(){this.style.removeProperty(t)}}function $e(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ue(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ye(t,e){return t.style.getPropertyValue(e)||Be(t).getComputedStyle(t,null).getPropertyValue(e)}function Ve(t){return function(){delete this[t]}}function Ge(t,e){return function(){this[t]=e}}function He(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function We(t){return t.trim().split(/^|\s+/)}function qe(t){return t.classList||new Ze(t)}function Ze(t){this._node=t,this._names=We(t.getAttribute("class")||"")}function Ke(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Je(t,e){for(var n=qe(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Qe(t){return function(){Ke(this,t)}}function tn(t){return function(){Je(this,t)}}function en(t,e){return function(){(e.apply(this,arguments)?Ke:Je)(this,t)}}function nn(){this.textContent=""}function rn(t){return function(){this.textContent=t}}function an(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function on(){this.innerHTML=""}function sn(t){return function(){this.innerHTML=t}}function un(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function cn(){this.nextSibling&&this.parentNode.appendChild(this)}function ln(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ce&&e.documentElement.namespaceURI===Ce?e.createElement(t):e.createElementNS(n,t)}}function hn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dn(t){var e=Le(t);return(e.local?hn:fn)(e)}function gn(){return null}function pn(){var t=this.parentNode;t&&t.removeChild(this)}function vn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xn(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function _n(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function mn(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function bn(t,e,n){var r=Be(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function wn(t,e){return function(){return bn(this,t,e)}}function Tn(t,e){return function(){return bn(this,t,e.apply(this,arguments))}}Ze.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var An,En=n(448),Sn=En.mark(kn);function kn(){var t,e,n,r,i,a,o;return En.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}r=t[e],i=0,a=r.length;case 3:if(!(i<a)){s.next=10;break}if(!(o=r[i])){s.next=7;break}return s.next=7,o;case 7:++i,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),Sn,this)}var Mn=[null];function On(t,e){this._groups=t,this._parents=e}function Rn(){return new On([[document.documentElement]],Mn)}On.prototype=Rn.prototype=(An={constructor:On,select:function(t){"function"!=typeof t&&(t=fe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new On(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return he(t.apply(this,arguments))}}(t):ge(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new On(r,i)},selectChild:function(t){return this.select(null==t?xe:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:ve(t)))},selectChildren:function(t){return this.selectAll(null==t?me:function(t){return function(){return _e.call(this.children,t)}}("function"==typeof t?t:ve(t)))},filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new On(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Se);var n=e?Ee:Ae,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Te(t));for(var a=i.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=r[c],f=i[c],h=f.length,d=ke(t.call(l,l&&l.__data__,c,r)),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g),y=u[c]=Array(h);n(l,f,p,v,y,d,e);for(var x,_,m=0,b=0;m<g;++m)if(x=p[m]){for(m>=b&&(b=m+1);!(_=v[b])&&++b<g;);x._next=_||null}}return(o=new On(o,r))._enter=s,o._exit=u,o},enter:function(){return new On(this._enter||this._groups.map(be),this._parents)},exit:function(){return new On(this._exit||this._groups.map(be),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),u=0;u<o;++u)for(var c,l=n[u],f=r[u],h=l.length,d=s[u]=Array(h),g=0;g<h;++g)(c=l[g]||f[g])&&(d[g]=c);for(;u<i;++u)s[u]=n[u];return new On(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Me);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new On(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)if(r=i[a])return r;return null},size:function(){for(var t,e=0,n=Oe(this);!(t=n()).done;)t.value,++e;return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Le(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?De:Pe:"function"==typeof e?n.local?je:Fe:n.local?ze:Ne)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Xe:"function"==typeof e?Ue:$e)(t,e,null==n?"":n)):Ye(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ve:"function"==typeof e?He:Ge)(t,e)):this.node()[t]},classed:function(t,e){var n=We(t+"");if(arguments.length<2){for(var r=qe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?en:e?Qe:tn)(n,e))},text:function(t){return arguments.length?this.each(null==t?nn:("function"==typeof t?an:rn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?on:("function"==typeof t?un:sn)(t)):this.node().innerHTML},raise:function(){return this.each(cn)},lower:function(){return this.each(ln)},append:function(t){var e="function"==typeof t?t:dn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:dn(t),r=null==e?gn:"function"==typeof e?e:fe(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pn)},clone:function(t){return this.select(t?yn:vn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=xn(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?mn:_n,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Tn:wn)(t,e))}},An[Symbol.iterator]=kn,An);var Cn=Rn;function In(t){return"string"==typeof t?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],Mn)}var Ln="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();Ln.requestIdleCallback=Ln.requestIdleCallback||function(t){return setTimeout(t,1)},Ln.cancelIdleCallback=Ln.cancelIdleCallback||function(t){return clearTimeout(t)};var Pn=null==Ln?void 0:Ln.document,Dn={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},Nn={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine"},zn={Area:[Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.AREA_STEP],AreaRange:[Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE],Arc:[Dn.PIE,Dn.DONUT,Dn.GAUGE,Dn.POLAR,Dn.RADAR],Line:[Dn.LINE,Dn.SPLINE,Dn.AREA,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE,Dn.AREA_LINE_RANGE,Dn.STEP,Dn.AREA_STEP],Step:[Dn.STEP,Dn.AREA_STEP],Spline:[Dn.SPLINE,Dn.AREA_SPLINE,Dn.AREA_SPLINE_RANGE]};function Fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jn(t,e){if(t=function(t){for(var e;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Bn={value:function(){}};function Xn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new $n(r)}function $n(t){this._=t}function Un(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Yn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Vn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Bn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}$n.prototype=Xn.prototype={constructor:$n,on:function(t,e){var n,r=this._,i=Un(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=Vn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Vn(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=Yn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new $n(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Gn=Xn,Hn={passive:!1},Wn={capture:!0,passive:!1};function qn(t){t.stopImmediatePropagation()}function Zn(t){t.preventDefault(),t.stopImmediatePropagation()}function Kn(t){var e=t.document.documentElement,n=In(t).on("dragstart.drag",Zn,Wn);"onselectstart"in e?n.on("selectstart.drag",Zn,Wn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Jn(t,e){var n=t.document.documentElement,r=In(t).on("dragstart.drag",null);e&&(r.on("click.drag",Zn,Wn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Qn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function er(){}var nr=.7,rr=1/nr,ir=/^#([0-9a-f]{3,8})$/,ar=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),or=new RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),sr=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ur=new RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),cr=new RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),lr=new RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),fr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function hr(){return this.rgb().formatHex()}function dr(){return this.rgb().formatRgb()}function gr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ir.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?pr(e):3===n?new _r(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?vr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?vr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ar.exec(t))?new _r(e[1],e[2],e[3],1):(e=or.exec(t))?new _r(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sr.exec(t))?vr(e[1],e[2],e[3],e[4]):(e=ur.exec(t))?vr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=lr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):fr.hasOwnProperty(t)?pr(fr[t]):"transparent"===t?new _r(NaN,NaN,NaN,0):null}function pr(t){return new _r(t>>16&255,t>>8&255,255&t,1)}function vr(t,e,n,r){return r<=0&&(t=e=n=NaN),new _r(t,e,n,r)}function yr(t){return t instanceof er||(t=gr(t)),t?new _r((t=t.rgb()).r,t.g,t.b,t.opacity):new _r}function xr(t,e,n,r){return 1===arguments.length?yr(t):new _r(t,e,n,null==r?1:r)}function _r(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function mr(){return"#"+wr(this.r)+wr(this.g)+wr(this.b)}function br(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Er(t,e,n,r)}function Ar(t){if(t instanceof Er)return new Er(t.h,t.s,t.l,t.opacity);if(t instanceof er||(t=gr(t)),!t)return new Er;if(t instanceof Er)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Er(o,s,u,t.opacity)}function Er(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Sr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function kr(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Qn(er,gr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:hr,formatHex:hr,formatHsl:function(){return Ar(this).formatHsl()},formatRgb:dr,toString:dr}),Qn(_r,xr,tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new _r(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatRgb:br,toString:br})),Qn(Er,(function(t,e,n,r){return 1===arguments.length?Ar(t):new Er(t,e,n,null==r?1:r)}),tr(er,{brighter:function(t){return t=null==t?rr:Math.pow(rr,t),new Er(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?nr:Math.pow(nr,t),new Er(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _r(Sr(t>=240?t-240:t+120,i,r),Sr(t,i,r),Sr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Mr=function(t){return function(){return t}};function Or(t,e){return function(n){return t+n*e}}function Rr(t){return 1==(t=+t)?Cr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Mr(isNaN(e)?n:e)}}function Cr(t,e){var n=e-t;return n?Or(t,n):Mr(isNaN(t)?e:t)}var Ir=function t(e){var n=Rr(e);function r(t,e){var r=n((t=xr(t)).r,(e=xr(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Cr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Lr(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=xr(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}Lr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return kr((n-r/e)*e,o,i,a,s)}})),Lr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return kr((n-r/e)*e,i,a,o,s)}}));function Pr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Dr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Nr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),o=Array(r);for(n=0;n<i;++n)a[n]=Ur(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function zr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Fr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function jr(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Ur(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Br=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xr=new RegExp(Br.source,"g");function $r(t,e){var n,r,i,a=Br.lastIndex=Xr.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Br.exec(t))&&(r=Xr.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Fr(n,r)})),a=Xr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Ur(t,e){var n,r=typeof e;return null==e||"boolean"===r?Mr(e):("number"===r?Fr:"string"===r?(n=gr(e))?(e=n,Ir):$r:e instanceof gr?Ir:e instanceof Date?zr:Dr(e)?Pr:Array.isArray(e)?Nr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?jr:Fr)(t,e)}var Yr,Vr,Gr=0,Hr=0,Wr=0,qr=0,Zr=0,Kr=0,Jr="object"==typeof performance&&performance.now?performance:Date,Qr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ti(){return Zr||(Qr(ei),Zr=Jr.now()+Kr)}function ei(){Zr=0}function ni(){this._call=this._time=this._next=null}function ri(t,e,n){var r=new ni;return r.restart(t,e,n),r}function ii(){Zr=(qr=Jr.now())+Kr,Gr=Hr=0;try{!function(){ti(),++Gr;for(var t,e=Yr;e;)(t=Zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gr}()}finally{Gr=0,function(){var t,e,n=Yr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Yr=e);Vr=t,oi(r)}(),Zr=0}}function ai(){var t=Jr.now(),e=t-qr;e>1e3&&(Kr-=e,qr=t)}function oi(t){Gr||(Hr&&(Hr=clearTimeout(Hr)),t-Zr>24?(t<1/0&&(Hr=setTimeout(ii,t-Jr.now()-Kr)),Wr&&(Wr=clearInterval(Wr))):(Wr||(qr=Jr.now(),Wr=setInterval(ai,1e3)),Gr=1,Qr(ii)))}function si(t,e,n){var r=new ni;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}ni.prototype=ri.prototype={constructor:ni,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ti():+n)+(null==e?0:+e),this._next||Vr===this||(Vr?Vr._next=this:Yr=this,Vr=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};var ui=Gn("start","end","cancel","interrupt"),ci=[];function li(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var c,l,f,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return si(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if(si((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=ri((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ui,tween:ci,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function fi(t,e){var n=di(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function hi(t,e){var n=di(t,e);if(n.state>3)throw new Error("too late; already running");return n}function di(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function gi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var pi,vi=180/Math.PI,yi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xi(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*vi,skewX:Math.atan(u)*vi,scaleX:o,scaleY:s}}function _i(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Fr(t,i)},{i:u-2,x:Fr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Fr(t,n)},{i:s-2,x:Fr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var mi=_i((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?yi:xi(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),bi=_i((function(t){return null==t?yi:(pi||(pi=document.createElementNS("http://www.w3.org/2000/svg","g")),pi.setAttribute("transform",t),(t=pi.transform.baseVal.consolidate())?xi((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):yi)}),", ",")",")");function wi(t,e){var n,r;return function(){var i=hi(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function Ti(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=hi(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Ai(t,e,n){var r=t._id;return t.each((function(){var t=hi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return di(t,r).value[e]}}function Ei(t,e){var n;return("number"==typeof e?Fr:e instanceof gr?Ir:(n=gr(e))?(e=n,Ir):$r)(t,e)}function Si(t){return function(){this.removeAttribute(t)}}function ki(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mi(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Oi(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Ri(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttribute(t)}}function Ci(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}function Ii(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Li(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Pi(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Li(t,i)),n}return i._value=e,i}function Di(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(t,i)),n}return i._value=e,i}function Ni(t,e){return function(){fi(this,t).delay=+e.apply(this,arguments)}}function zi(t,e){return e=+e,function(){fi(this,t).delay=e}}function Fi(t,e){return function(){hi(this,t).duration=+e.apply(this,arguments)}}function ji(t,e){return e=+e,function(){hi(this,t).duration=e}}function Bi(t,e){if("function"!=typeof e)throw new Error;return function(){hi(this,t).ease=e}}function Xi(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fi:hi;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var $i,Ui=Cn.prototype.constructor;function Yi(t){return function(){this.style.removeProperty(t)}}function Vi(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Gi(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Vi(t,a,n)),r}return a._value=e,a}function Hi(t){return function(e){this.textContent=t.call(this,e)}}function Wi(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Hi(r)),e}return r._value=t,r}var qi=0;function Zi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ki(t){return Cn().transition(t)}function Ji(){return++qi}var Qi=Cn.prototype;Zi.prototype=Ki.prototype=($i={constructor:Zi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fe(t));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,u,c=r[o],l=c.length,f=a[o]=Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,li(f[h],e,n,h,f,di(s,n)));return new Zi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ge(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=t.call(u,u.__data__,f,c),g=di(u,n),p=0,v=d.length;p<v;++p)(h=d[p])&&li(h,e,n,p,d,g);a.push(d),o.push(u)}return new Zi(a,o,e,n)},selectChild:Qi.selectChild,selectChildren:Qi.selectChildren,filter:function(t){"function"!=typeof t&&(t=pe(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Zi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new Zi(o,this._parents,this._name,this._id)},selection:function(){return new Ui(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ji(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=di(o,e);li(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Zi(r,this._parents,t,n)},call:Qi.call,nodes:Qi.nodes,node:Qi.node,size:Qi.size,empty:Qi.empty,each:Qi.each,on:function(t,e){var n=this._id;return arguments.length<2?di(this.node(),n).on.on(t):this.each(Xi(n,t,e))},attr:function(t,e){var n=Le(t),r="transform"===n?bi:Ei;return this.attrTween(t,"function"==typeof e?(n.local?Ci:Ri)(n,r,Ai(this,"attr."+t,e)):null==e?(n.local?ki:Si)(n):(n.local?Oi:Mi)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Le(t);return this.tween(n,(r.local?Pi:Di)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?mi:Ei;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ye(this,t),o=(this.style.removeProperty(t),Ye(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Yi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ye(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ye(this,t)),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,s))}}(t,r,Ai(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e;return function(){var s=hi(this,t),u=s.on,c=null==s.value[o]?a||(a=Yi(e)):void 0;u===n&&i===c||(r=(n=u).copy()).on("end."+o,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i;return function(){var a=Ye(this,t);return a===n+""?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Gi(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ai(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Wi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=di(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?wi:Ti)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ni:zi)(e,t)):di(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Fi:ji)(e,t)):di(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Bi(e,t)):di(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;hi(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i&&a()}};n.each((function(){var n=hi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===i&&a()}))}},$i[Symbol.iterator]=Qi[Symbol.iterator],$i);var ta={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ea(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition "+e+" not found");return n}Cn.prototype.interrupt=function(t){return this.each((function(){gi(this,t)}))},Cn.prototype.transition=function(t){var e,n;t instanceof Zi?(e=t._id,t=t._name):(e=Ji(),(n=ta).time=ti(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)(o=s[c])&&li(o,t,e,c,s,n||ea(o,e));return new Zi(r,this._parents,t,e)};var na=function(t){return function(){return t}};function ra(t,e){var n=e.sourceEvent,r=e.target,i=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function ia(t){t.stopImmediatePropagation()}function aa(t){t.preventDefault(),t.stopImmediatePropagation()}function oa(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return sa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sa(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ua={name:"drag"},ca={name:"space"},la={name:"handle"},fa={name:"center"},ha=Math.abs,da=Math.max,ga=Math.min;function pa(t){return[+t[0],+t[1]]}function va(t){return[pa(t[0]),pa(t[1])]}var ya={name:"x",handles:["w","e"].map(Aa),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xa={name:"y",handles:["n","s"].map(Aa),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},_a=(["n","w","e","s","nw","ne","sw","se"].map(Aa),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),ma={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ba={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ta={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Aa(t){return{type:t}}function Ea(t){return!t.ctrlKey&&!t.button}function Sa(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ka(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ma(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Oa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ra(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ca(t){var e,n=Sa,r=Ea,i=ka,a=!0,o=Gn("start","brush","end"),s=6;function u(e){var n=e.property("__brush",p).selectAll(".overlay").data([Aa("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",_a.overlay).merge(n).each((function(){var t=Ma(this).extent;In(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Aa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",_a.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return _a[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=In(this),e=Ma(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,o,s,u,f,h,d,g,p,v,y,x=this,_=n.target.__data__.type,m="selection"===(a&&n.metaKey?_="overlay":_)?ua:a&&n.altKey?fa:la,b=t===xa?null:wa[_],w=t===ya?null:Ta[_],T=Ma(x),A=T.extent,E=T.selection,S=A[0][0],k=A[0][1],M=A[1][0],O=A[1][1],R=0,C=0,I=b&&w&&a&&n.shiftKey,L=Array.from(n.touches||[n],(function(t){var e=t.identifier;return(t=jn(t,x)).point0=t.slice(),t.identifier=e,t}));gi(x);var P=l(x,arguments,!0).beforestart();if("overlay"===_){E&&(p=!0);var D=[L[0],L[1]||L[0]];T.selection=E=[[i=t===xa?S:ga(D[0][0],D[1][0]),s=t===ya?k:ga(D[0][1],D[1][1])],[f=t===xa?M:da(D[0][0],D[1][0]),d=t===ya?O:da(D[0][1],D[1][1])]],L.length>1&&B(n)}else i=E[0][0],s=E[0][1],f=E[1][0],d=E[1][1];o=i,u=s,h=f,g=d;var N=In(x).attr("pointer-events","none"),z=N.selectAll(".overlay").attr("cursor",_a[_]);if(n.touches)P.moved=j,P.ended=X;else{var F=In(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",X,!0);a&&F.on("keydown.brush",$,!0).on("keyup.brush",U,!0),Kn(n.view)}c.call(x),P.start(n,m.name)}function j(t){for(var e,n=oa(t.changedTouches||[t]);!(e=n()).done;)for(var r,i=e.value,a=oa(L);!(r=a()).done;){var o=r.value;o.identifier===i.identifier&&(o.cur=jn(i,x))}if(I&&!v&&!y&&1===L.length){var s=L[0];ha(s.cur[0]-s[0])>ha(s.cur[1]-s[1])?y=!0:v=!0}for(var u,c=oa(L);!(u=c()).done;){var l=u.value;l.cur&&(l[0]=l.cur[0],l[1]=l.cur[1])}p=!0,aa(t),B(t)}function B(t){var e,n=L[0],r=n.point0;switch(R=n[0]-r[0],C=n[1]-r[1],m){case ca:case ua:b&&(R=da(S-i,ga(M-f,R)),o=i+R,h=f+R),w&&(C=da(k-s,ga(O-d,C)),u=s+C,g=d+C);break;case la:L[1]?(b&&(o=da(S,ga(M,L[0][0])),h=da(S,ga(M,L[1][0])),b=1),w&&(u=da(k,ga(O,L[0][1])),g=da(k,ga(O,L[1][1])),w=1)):(b<0?(R=da(S-i,ga(M-i,R)),o=i+R,h=f):b>0&&(R=da(S-f,ga(M-f,R)),o=i,h=f+R),w<0?(C=da(k-s,ga(O-s,C)),u=s+C,g=d):w>0&&(C=da(k-d,ga(O-d,C)),u=s,g=d+C));break;case fa:b&&(o=da(S,ga(M,i-R*b)),h=da(S,ga(M,f+R*b))),w&&(u=da(k,ga(O,s-C*w)),g=da(k,ga(O,d+C*w)))}h<o&&(b*=-1,e=i,i=f,f=e,e=o,o=h,h=e,_ in ma&&z.attr("cursor",_a[_=ma[_]])),g<u&&(w*=-1,e=s,s=d,d=e,e=u,u=g,g=e,_ in ba&&z.attr("cursor",_a[_=ba[_]])),T.selection&&(E=T.selection),v&&(o=E[0][0],h=E[1][0]),y&&(u=E[0][1],g=E[1][1]),E[0][0]===o&&E[0][1]===u&&E[1][0]===h&&E[1][1]===g||(T.selection=[[o,u],[h,g]],c.call(x),P.brush(t,m.name))}function X(t){if(ia(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Jn(t.view,p),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),z.attr("cursor",_a.overlay),T.selection&&(E=T.selection),Oa(E)&&(T.selection=null,c.call(x)),P.end(t,m.name)}function $(t){switch(t.keyCode){case 16:I=b&&w;break;case 18:m===la&&(b&&(f=h-R*b,i=o+R*b),w&&(d=g-C*w,s=u+C*w),m=fa,B(t));break;case 32:m!==la&&m!==fa||(b<0?f=h-R:b>0&&(i=o-R),w<0?d=g-C:w>0&&(s=u-C),m=ca,z.attr("cursor",_a.selection),B(t));break;default:return}aa(t)}function U(t){switch(t.keyCode){case 16:I&&(v=y=I=!1,B(t));break;case 18:m===fa&&(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la,B(t));break;case 32:m===ca&&(t.altKey?(b&&(f=h-R*b,i=o+R*b),w&&(d=g-C*w,s=u+C*w),m=fa):(b<0?f=h:b>0&&(i=o),w<0?d=g:w>0&&(s=u),m=la),z.attr("cursor",_a[_]),B(t));break;default:return}aa(t)}}function d(t){l(this,arguments).moved(t)}function g(t){l(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=va(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Ur(a,o);function u(t){r.selection=1===t&&null===o?null:s(t),c.call(e),i.brush()}return null!==a&&null!==o?u:u(1)})):e.each((function(){var e=this,i=arguments,a=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,a.extent),s=l(e,i).beforestart();gi(e),a.selection=null===o?null:o,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=In(this.that).datum();o.call(e,this.that,new ra(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:o}),i)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:na(va(t)),u):n},u.filter=function(t){return arguments.length?(r="function"==typeof t?t:na(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"==typeof t?t:na(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(a=!!t,u):a},u.on=function(){var t=o.on.apply(o,arguments);return t===o?u:t},u}function Ia(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function La(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Ia(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ia(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Pa=function(t){return t||0===t},Da=function(t){return"function"==typeof t},Na=function(t){return"string"==typeof t},za=function(t){return"number"==typeof t},Fa=function(t){return void 0===t},ja=function(t){return void 0!==t},Ba=function(t){return"boolean"==typeof t},Xa=function(t){return 10*Math.ceil(t/10)},$a=function(t){return Math.ceil(t)+.5},Ua=function(t){return t[1]-t[0]},Ya=function(t){return"object"==typeof t},Va=function(t){return Fa(t)||null===t||Na(t)&&0===t.length||Ya(t)&&!(t instanceof Date)&&0===Object.keys(t).length||za(t)&&isNaN(t)},Ga=function(t){return!Va(t)},Ha=function(t){return Array.isArray(t)},Wa=function(t){return t&&!(null!=t&&t.nodeType)&&Ya(t)&&!Ha(t)};function qa(t,e,n){return ja(t[e])?t[e]:n}function Za(t,e){for(var n=Da(t),r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n&&t.call.apply(t,[e].concat(i)),n}function Ka(t,e){var n=0,r=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];--n||e.apply.apply(e,[this].concat(r))};"duration"in t?t.each((function(){return++n})).on("end",r):(++n,t.call(r))}function Ja(t){return Na(t)?t.replace(/</g,"<").replace(/>/g,">"):t}function Qa(t,e,n,r){if(void 0===n&&(n=[-1,1]),void 0===r&&(r=!1),t&&Na(e))if(-1===e.indexOf("\n"))t.text(e);else{var i=[t.text(),e].map((function(t){return t.replace(/[\s\n]/g,"")}));if(i[0]!==i[1]){var a=e.split("\n"),o=r?a.length-1:1;t.html(""),a.forEach((function(e,r){t.append("tspan").attr("x",0).attr("dy",(0===r?n[0]*o:n[1])+"em").text(e)}))}}}function to(t){var e=t.getBBox(),n=e.x,r=e.y,i=e.width,a=e.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function eo(t,e){var n;return jn(t&&(null==(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)?void 0:n[0])||t,e).map((function(t){return isNaN(t)?0:t}))}function no(t){var e,n=t.event,r=t.$el,i=r.subchart.main||r.main;return n&&"brush"===n.type?e=n.selection:i&&(e=i.select(".bb-brush").node())&&(e=Ra(e)),e}function ro(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function io(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);var r=Math.floor(Math.random()*(n-e)+e);return t?r+"":r}function ao(t,e,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return i&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?ao(t,e,n,a-1,i):ao(t,e,a+1,r,i)}function oo(t){var e=no(t);return!e||e[0]===e[1]}function so(t,e){for(var n in void 0===t&&(t={}),Ha(e)&&e.forEach((function(e){return so(t,e)})),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var uo=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};var co=function(t){return[].slice.call(t)};function lo(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function fo(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((function(t,e,n){return n.indexOf(t)===e}));return e?n.map((function(t){return new Date(t)})):n}function ho(t){return t&&t.length?t.reduce((function(t,e){return t.concat(e)})):[]}function go(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length||1===n.length&&!n[0])return t;var i=n.shift();return Wa(t)&&Wa(i)&&Object.keys(i).forEach((function(e){var n=i[e];Wa(n)?(t[e]||(t[e]={}),t[e]=go(t[e],n)):t[e]=Ha(n)?n.concat():n})),go.apply(void 0,[t].concat(n))}function po(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:e||(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function vo(t,e){var n=e.filter((function(t){return Ga(t)}));return n.length?za(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=po(n,"min"===t)[0]):n=void 0,n}var yo=function(t,e,n){void 0===n&&(n=1);for(var r=[],i=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<i;a++)r.push(t+a*n);return r},xo={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=Pn.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,Ln,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}(),touch:function(t,e,n){var r=new Touch(go({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function _o(t,e){var n=t;for(var r in e)n=n.replace(new RegExp("{="+r+"}","g"),e[r]);return n}function mo(t){var e;if(t instanceof Date)e=t;else if(Na(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else za(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function bo(){return!Pn.hidden}function wo(t){var e,n=t,r=n.config,i="";if(Va(r.data_type||r.data_types)&&!n[Nn.LINE])i="line";else for(var a in Nn){var o=Dn[a];if(n.hasType(o)&&!n[Nn[a]]){i=o;break}}i&&function(t,e){var n,r="[billboard.js]";(null==(n=Ln.console)?void 0:n.error)&&(console.error("❌ "+r+" "+t,"background:red;color:white;display:block;font-size:15px",e),console.info("%cℹ️","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"));throw Error(r+" "+t.replace(/\%c([a-z-]+)/i,"'$1' ")+" "+e)}("Please, make sure if %c"+(void 0===e&&(e="-"),i.split(e).map((function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()})).join("")),"module has been imported and specified correctly.")}function To(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ao(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?To(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):To(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Eo={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},So={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"},ko={area:"bb-area",areas:"bb-areas"},Mo={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"},Oo={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Ro={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Co={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Io={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Lo={dragarea:"bb-dragarea",INCLUDED:"_included_"},Po={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Do={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},No={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},zo={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Fo={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},jo={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Bo="bb-level",Xo="bb-levels",$o={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Uo={region:"bb-region",regions:"bb-regions"},Yo={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Vo={shape:"bb-shape",shapes:"bb-shapes"},Go={brush:"bb-brush",subchart:"bb-subchart"},Ho={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},Wo={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},qo={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"},Zo=Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao(Ao({},Eo),So),ko),Mo),Oo),Ro),Co),Io),Lo),Po),Do),No),zo),Fo),jo),$o),Uo),Yo),Vo),Go),Ho),Wo),qo),Ko={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}},Jo=function(){function t(){var t=this;Object.keys(Ko).forEach((function(e){t[e]=new Ko[e]}))}return t.prototype.getStore=function(t){return this[t]},t}(),Qo={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},ts={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},es={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},ns={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},rs={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},is={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},as={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null};function os(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ss(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?os(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):os(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var us=function(){function t(){return function(){for(var t=function(e){if(Wa(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map((function(e){return t(e)})).reduce((function(t,e){return La(La({},t),e)}))}(Qo,ts,es,ns,rs,is,as,t.data)}return t.setOptions=function(t){this.data=t.reduce((function(t,e){return ss(ss({},t),e)}),this.data)},t}();us.data={};var cs="$baseLength",ls="__colorPattern__",fs="$dataMinMax",hs="$dataTotalSum",ds="$totalPerIndex",gs="legendItemTextBox",ps="$radarPoints",vs="setOverOut",ys="callOverOutForTouch",xs="textRect",_s=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;co(t).forEach((function(t){return delete e.cache[t]}))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,r=[],i=0;n=t[i];i++)n in this.cache&&r.push(this.cloneTarget(this.cache[n]));return r}var a=this.cache[t];return Pa(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},t}(),ms=Ln.setTimeout,bs=Ln.clearTimeout;function ws(){var t=[],e=function(e,n){var r;!function e(){for(var i,a=0,o=0;i=t[o];o++)if(!0===i||null!=i.empty&&i.empty())a++;else try{i.transition()}catch(t){a++}r&&bs(r),a===t.length?null==n||n():r=ms(e,50)}()};return e.add=function(e){Ha(e)?t=t.concat(e):t.push(e)},e}var Ts={},As={};function Es(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Ss(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function ks(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function Ms(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+ks(-t,6):t>9999?"+"+ks(t,6):ks(t,4)}(t.getUTCFullYear())+"-"+ks(t.getUTCMonth()+1,2)+"-"+ks(t.getUTCDate(),2)+(i?"T"+ks(e,2)+":"+ks(n,2)+":"+ks(r,2)+"."+ks(i,3)+"Z":r?"T"+ks(e,2)+":"+ks(n,2)+":"+ks(r,2)+"Z":n||e?"T"+ks(e,2)+":"+ks(n,2)+"Z":"")}function Os(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,u=a<=0,c=!1;function l(){if(u)return As;if(c)return c=!1,Ts;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?u=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))c=!0;else if(13===r)c=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return u=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=l())!==As;){for(var f=[];r!==Ts&&r!==As;)f.push(r),r=l();e&&null==(f=e(f,s++))||i.push(f)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?Ms(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Es(t);return function(r,i){return e(n(r),i,t)}}(t,e):Es(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=Ss(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ss(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var Rs=Os(","),Cs=Rs.parse,Is=Rs.parseRows,Ls=(Rs.format,Rs.formatBody,Rs.formatRows,Rs.formatRow,Rs.formatValue,Os("\t")),Ps=Ls.parse,Ds=Ls.parseRows,Ns=(Ls.format,Ls.formatBody,Ls.formatRows,Ls.formatRow,Ls.formatValue,{convertData:function(t,e){var n;if(t.bindto?(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach((function(e){var r="data_"+e;r in t&&(n[e]=t[r])}))):n=t,n.url&&e)this.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,e);else if(n.json)n=this.convertJsonToData(n.json,n.keys);else if(n.rows)n=this.convertRowsToData(n.rows);else if(n.columns)n=this.convertColumnsToData(n.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.");return Ha(n)&&n},convertUrlToData:function(t,e,n,r,i){var a=this;void 0===e&&(e="csv");var o=new XMLHttpRequest;o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");var n=o.responseText;n&&i.call(a,a["convert"+uo(e)+"ToData"]("json"===e?JSON.parse(n):n,r))}},o.send()},convertCsvTsvToData:function(t,e){var n,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach((function(t){n[0][t]=null}))):n=t.parse(e),n},convertCsvToData:function(t){return this.convertCsvTsvToData({rows:Is,parse:Cs},t)},convertTsvToData:function(t){return this.convertCsvTsvToData({rows:Ds,parse:Ps},t)},convertJsonToData:function(t,e){var n,r,i=this,a=this.config,o=[];if(Ha(t)){var s=e||a.data_keys;s.x?(n=s.value.concat(s.x),a.data_x=s.x):n=s.value,o.push(n),t.forEach((function(t){var e=n.map((function(e){var n=i.findValueInJson(t,e);return Fa(n)&&(n=null),n}));o.push(e)})),r=this.convertRowsToData(o)}else Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),o.push(n)})),r=this.convertColumnsToData(o);return r},findValueInJson:function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),r=t;return n.some((function(t){return!(r=r&&t in r?r[t]:void 0)})),r},convertRowsToData:function(t){var e=t[0],n=[];return t.forEach((function(t,r){if(r>0){var i={};t.forEach((function(t,n){if(Fa(t))throw new Error("Source data is missing a component at ("+r+", "+n+")!");i[e[n]]=t})),n.push(i)}})),n},convertColumnsToData:function(t){var e=[];return t.forEach((function(t,n){var r=t[0];t.forEach((function(t,i){if(i>0){if(Fa(e[i-1])&&(e[i-1]={}),Fa(t))throw new Error("Source data is missing a component at ("+n+", "+i+")!");e[i-1][r]=t}}))})),e},convertDataToTargets:function(t,e){var n=this,r=this,i=r.axis,a=r.config,o=r.state,s=!1,u=!1,c=!1;i&&(s=i.isCategorized(),u=i.isTimeSeries(),c=i.isCustomX());var l,f=Object.keys(t[0]||{}),h=f.length?f.filter(r.isNotX,r):[],d=f.length?f.filter(r.isX,r):[];h.forEach((function(i){var o=n.getXKey(i);c||u?d.indexOf(o)>=0?l=(e&&r.data.xs[i]||[]).concat(t.map((function(t){return t[o]})).filter(Pa).map((function(t,e){return r.generateTargetX(t,i,e)}))):a.data_x?l=n.getOtherTargetXs():Ga(a.data_xs)&&(l=r.getXValuesOfXKey(o,r.data.targets)):l=t.map((function(t,e){return e})),l&&(n.data.xs[i]=l)})),h.forEach((function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}));var g=h.map((function(e,n){var i=a.data_idConverter.bind(r.api)(e),u=r.getXKey(e),l=c&&s,f=l&&t.map((function(t){return t.x})).every((function(t){return a.axis_x_categories.indexOf(t)>-1})),h=t.__append__,d=null===u&&h?r.api.data.values(e).length:0;return{id:i,id_org:e,values:t.map((function(t,s){var c,g=t[u],p=t[e];return p=null===p||isNaN(p)||Wa(p)?Ha(p)||Wa(p)?p:null:+p,!l&&!o.hasRadar||0!==n||Fa(g)?c=r.generateTargetX(g,e,d+s):(f||0!==n||0!==s||h||(a.axis_x_categories=[]),-1===(c=a.axis_x_categories.indexOf(g))&&(c=a.axis_x_categories.length,a.axis_x_categories.push(g))),(Fa(p)||r.data.xs[e].length<=s)&&(c=void 0),{x:c,value:p,id:i}})).filter((function(t){return ja(t.x)}))}}));return g.forEach((function(t){a.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),t.values.forEach((function(t,e){return t.index=e})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),o.hasNegativeValue=r.hasNegativeValueInTargets(g),o.hasPositiveValue=r.hasPositiveValueInTargets(g),a.data_type&&r.setTargetType(r.mapToIds(g).filter((function(t){return!(t in a.data_types)})),a.data_type),g.forEach((function(t){return r.cache.add(t.id_org,t,!0)})),g}}),zs={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,r=Ga(e.data_xs)&&function(t,e){var n=!1;return Object.keys(t).forEach((function(r){return t[r]===e&&(n=!0)})),n}(e.data_xs,t);return n||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some((function(e){return e.indexOf(t)>=0&&e.length>1})):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:Ga(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,r=this;return(e&&Ga(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},getIndexByX:function(t,e){return e?e.indexOf(Na(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Pa(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach((function(n){e.data_xs[n]=t[n]}))},isMultipleX:function(){return Ga(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0!==e?e:t.id),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,r=n.filterTargetsToShow(n.data.targets).map((function(e){return n.addName(n.getValueOnIndex(e.values,t))}));return e&&(r=r.filter((function(t){return t&&"value"in t&&Pa(t.value)}))),r},getValueOnIndex:function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},updateTargetXs:function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},generateTargetX:function(t,e,n){var r,i,a,o,s=this,u=s.axis,c=null!=(r=u)&&r.isCategorized()?n:t||n;if(null!=(i=u)&&i.isTimeSeries()){var l=mo.bind(s);c=l(t||s.getXValue(e,n))}else null==(a=u)||!a.isCustomX()||null!=(o=u)&&o.isCategorized()||(c=Pa(t)?+t:s.getXValue(e,n));return c},updateXs:function(t){t.length&&(this.axis.xs=t.map((function(t){return t.x})))},getPrevX:function(t){var e=this.axis.xs[t-1];return ja(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return ja(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,r=t.value;return r&&n&&(e.isAreaRangeType(t)?r=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(r=e.getBubbleZData(r,"y"))),r},getMinMaxValue:function(t){var e,n,r=this.getBaseValue.bind(this);return(t||this.data.targets.map((function(t){return t.values}))).forEach((function(t,i){var a=t.map(r).filter(za);e=Math.min.apply(Math,[i?e:1/0].concat(a)),n=Math.max.apply(Math,[i?n:-1/0].concat(a))})),{min:e,max:n}},getMinMaxData:function(){var t=this,e=fs,n=t.cache.get(e);if(!n){var r=t.data.targets.map((function(t){return t.values})),i=t.getMinMaxValue(r),a=[],o=[];r.forEach((function(e){var n=t.getFilteredDataByValue(e,i.min),r=t.getFilteredDataByValue(e,i.max);n.length&&(a=a.concat(n)),r.length&&(o=o.concat(r))})),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=ds,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach((function(t){t.values.forEach((function(t,e){n[e]||(n[e]=0),n[e]+=za(t.value)?t.value:0}))}))),n},getTotalDataSum:function(t){var e=this,n=hs,r=e.cache.get(n);if(!za(r)){var i=ho(e.data.targets.map((function(t){return t.values}))).map((function(t){return t.value})).reduce((function(t,e){return t+e}));e.cache.add(n,r=i)}return t&&(r-=e.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce((function(t,e){return t+e}))),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter((function(t){return n.getBaseValue(t)===e}))},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map((function(t){return t.values.length})))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=po(fo(t=t.map((function(t){return t.values})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.x})))).map((function(t,e){return{x:t,index:e}})):e&&(t=t[0].values),t},mapToIds:function(t){return t.map((function(t){return t.id}))},mapToTargetIds:function(t){return t?Ha(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,r=this.mapToIds(t),i=0;n=r[i];i++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter((function(t){return e.isTargetToShow(t.id)}))},mapTargetsToUniqueXs:function(t){var e,n=this.axis,r=[];null!=t&&t.length&&(r=fo(ho(t.map((function(t){return t.values.map((function(t){return+t.x}))})))),r=null!=(e=n)&&e.isTimeSeries()?r.map((function(t){return new Date(+t)})):r.map(Number));return po(r)},addTargetIds:function(t,e){var n=this.state;(Ha(e)?e:[e]).forEach((function(e){n[t].indexOf(e)<0&&n[t].push(e)}))},removeTargetIds:function(t,e){var n=this.state;(Ha(e)?e:[e]).forEach((function(e){var r=n[t].indexOf(e);r>=0&&n[t].splice(r,1)}))},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,r={},i=e.isMultipleX(),a=i?e.mapTargetsToUniqueXs(t).map((function(t){return Na(t)?t:+t})):null;return t.forEach((function(t){var o=[];t.values.filter((function(t){var e=t.value;return Pa(e)||null===e})).forEach((function(t){var r=t.value;null!==r&&e.isCandlestickType(t)&&(r=Ha(r)?r.slice(0,4):[r.open,r.high,r.low,r.close]),Ha(r)?o.push.apply(o,r):Wa(r)&&"high"in r?o.push.apply(o,Object.values(r)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(r,"y")):i?o[e.getIndexByX(t.x,a)]=r:o.push(r)})),r[t.id]=o})),r},checkValueInTargets:function(t,e){for(var n,r=Object.keys(t),i=0;i<r.length;i++){n=t[r[i]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t<0}))},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t>0}))},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this.config.data_order,r=/asc/i.test(n),i=/desc/i.test(n);if(r||i){var a=function(t,e){return t+Math.abs(e.value)};e=function(e,n){var i="values"in e?e.values.reduce(a,0):e.value,o="values"in n?n.values.reduce(a,0):n.value;return t?r?i-o:o-i:r?o-i:i-o}}else Da(n)&&(e=n.bind(this.api));return e||null},filterByX:function(t,e){return ho(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},filterRemoveNull:function(t){var e=this;return t.filter((function(t){return Pa(e.getBaseValue(t))}))},filterByXDomain:function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},hasDataLabel:function(){var t=this.config.data_labels;return Ba(t)&&t||Ya(t)&&Ga(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,r=n.inputType,i=n.eventReceiver,a=i.coords,o=i.rect,s=e.axis_rotated,u="touch"===r&&t.changedTouches?t.changedTouches[0]:t;return ao(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var r=this,i=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},findClosestFromTargets:function(t,e){var n=this,r=t.map((function(t){return n.findClosest(t.values,e)}));return n.findClosest(r,e)},findClosest:function(t,e){var n,r=this,i=r.config,a=r.$el.main,o=t.filter((function(t){return t&&Pa(t.value)})),s=i.point_sensitivity;return o.filter((function(t){return r.isBarType(t.id)||r.isCandlestickType(t.id)})).forEach((function(t){var e=r.isBarType(t.id)?"."+Oo.chartBar+"."+Eo.target+r.getTargetSelectorSuffix(t.id)+" ."+Oo.bar+"-"+t.index:"."+Ro.chartCandlestick+"."+Eo.target+r.getTargetSelectorSuffix(t.id)+" ."+Ro.candlestick+"-"+t.index+" path";!n&&r.isWithinBar(a.select(e).node())&&(n=t)})),o.filter((function(t){return!r.isBarType(t.id)&&!r.isCandlestickType(t.id)})).forEach((function(t){var i=r.dist(t,e);i<s&&(s=i,n=t)})),n},dist:function(t,e){var n=this,r=n.config.axis_rotated,i=n.scale,a=r?1:0,o=r?0:1,s=n.circleY(t,t.index),u=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,r=!!e&&e.isCategorized(),i=Ha(t)?t.concat():[t];if(!r&&!/step\-(after|before)/.test(n))return t;var a=i[0],o=i[i.length-1],s=a.id,u=a.x;return i.unshift({x:--u,value:a.value,id:s}),r&&"step-after"===n&&i.unshift({x:--u,value:a.value,id:s}),u=o.x,i.push({x:++u,value:o.value,id:s}),r&&"step-before"===n&&i.push({x:++u,value:o.value,id:s}),i},convertValuesToRange:function(t){var e=Ha(t)?t.concat():[t],n=[];return e.forEach((function(t){var e=t.x,r=t.id;n.push({x:e,id:r,value:t.value[0]}),n.push({x:e,id:r,value:t.value[2]})})),n},updateDataAttributes:function(t,e){var n=this.config["data_"+t];return Fa(e)||(Object.keys(e).forEach((function(t){n[t]=e[t]})),this.redraw({withLegend:!0})),n},getRangedData:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="areaRange");var r=null==t?void 0:t.value;if(Ha(r)){var i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&r?r[i]:void 0}return r?r[e]:r},getRatio:function(t,e,n){void 0===n&&(n=!1);var r=this,i=r.config,a=r.state,o=r.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())s=e.value/r.getTotalDataSum(!0);else{var u=i.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),c=r.hasType("gauge")?u:2*Math.PI;s=(e.endAngle-e.startAngle)/c}else if("index"===t){var l=o.data.values.bind(o),f=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var h=l(a.hiddenTargetIds,!1);h.length&&(h=h.reduce((function(t,e){return t.map((function(t,n){return(za(t)?t:0)+e[n]}))})),f=f.map((function(t,e){return t-h[e]})))}e.ratio=za(e.value)&&f&&f[e.index]>0?e.value/f[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*i.radar_size_ratio;else if("bar"===t){var d=r.getYScaleById.bind(r)(e.id).domain().reduce((function(t,e){return e-t}));s=0===d?0:Math.abs(e.value)/d}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce((function(t,e,n){return t[+e.x]=n,t}),{});this.data.targets.forEach((function(t){t.values.forEach((function(t,n){var r=e[+t.x];void 0===r&&(r=n),t.index=r}))}))},isBubbleZType:function(t){return this.isBubbleType(t)&&(Wa(t.value)&&("z"in t.value||"y"in t.value)||Ha(t.value)&&2===t.value.length)},isBarRangeType:function(t){var e=t.value;return this.isBarType(t)&&Ha(e)&&2===e.length&&e.every((function(t){return za(t)}))},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return null!=(e=null==n?void 0:n[0])?e:n}},Fs={load:function(t,e){var n,r=this,i=e.append,a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach((function(t){var n,i=(null==(n=e.types)?void 0:n[t.id])||e.type;r.setTargetType(t.id,i)})),r.data.targets.forEach((function(t){for(var e=0;e<a.length;e++)if(t.id===a[e].id){t.values=i?t.values.concat(a[e].values):a[e].values,a.splice(e,1);break}})),r.data.targets=r.data.targets.concat(a)),r.updateTargets(r.data.targets),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.updateTypesElements(),null==(n=e.done)||n.call(r.api)},loadFromArgs:function(t){var e=this;if(e.config){e.cache.reset();var n=t.data||e.convertData(t,(function(n){return e.load(e.convertDataToTargets(n),t)}));t.append&&(n.__append__=!0),n&&e.load(e.convertDataToTargets(n),t)}},unload:function(t,e){var n=this,r=n.state,i=n.$el,a=n.$T,o=e,s=t;if(n.cache.reset(),o||(o=function(){}),s=s.filter((function(t){return n.hasTarget(n.data.targets,t)})),s&&0!==s.length){var u=i.svg.selectAll(s.map((function(t){return n.selectorTarget(t)})));a(u).style("opacity","0").remove().call(Ka,o),s.forEach((function(t){r.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+Do.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter((function(e){return e.id!==t}))})),n.updateTypesElements()}else o()}},js=function(t){return function(){return t}};function Bs(t,e){var n=e.sourceEvent,r=e.subject,i=e.target,a=e.identifier,o=e.active,s=e.x,u=e.y,c=e.dx,l=e.dy,f=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:f}})}function Xs(t){return!t.ctrlKey&&!t.button}function $s(){return this.parentNode}function Us(t,e){return null==e?{x:t.x,y:t.y}:e}function Ys(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vs(){var t,e,n,r,i=Xs,a=$s,o=Us,s=Ys,u={},c=Gn("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",v).on("touchmove.drag",y,Hn).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(o,s){if(!r&&i.call(this,o,s)){var u=_(this,a.call(this,o,s),o,s,"mouse");u&&(In(o.view).on("mousemove.drag",g,Wn).on("mouseup.drag",p,Wn),Kn(o.view),qn(o),n=!1,t=o.clientX,e=o.clientY,u("start",o))}}function g(r){if(Zn(r),!n){var i=r.clientX-t,a=r.clientY-e;n=i*i+a*a>f}u.mouse("drag",r)}function p(t){In(t.view).on("mousemove.drag mouseup.drag",null),Jn(t.view,n),Zn(t),u.mouse("end",t)}function v(t,e){if(i.call(this,t,e)){var n,r,o=t.changedTouches,s=a.call(this,t,e),u=o.length;for(n=0;n<u;++n)(r=_(this,s,t,e,o[n].identifier,o[n]))&&(qn(t),r("start",t,o[n]))}}function y(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=u[r[e].identifier])&&(Zn(t),n("drag",t,r[e]))}function x(t){var e,n,i=t.changedTouches,a=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<a;++e)(n=u[i[e].identifier])&&(qn(t),n("end",t,i[e]))}function _(t,e,n,r,i,a){var s,f,d,g=c.copy(),p=jn(a||n,e);if(null!=(d=o.call(t,new Bs("beforestart",{sourceEvent:n,target:h,identifier:i,active:l,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),r)))return s=d.x-p[0]||0,f=d.y-p[1]||0,function n(a,o,c){var v,y=p;switch(a){case"start":u[i]=n,v=l++;break;case"end":delete u[i],--l;case"drag":p=jn(c||o,e),v=l}g.call(a,t,new Bs(a,{sourceEvent:o,subject:d,target:h,identifier:i,active:v,x:p[0]+s,y:p[1]+f,dx:p[0]-y[0],dy:p[1]-y[1],dispatch:g}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:js(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:js(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:js(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:js(!!t),h):s},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h}Bs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Gs={selectRectForSingle:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.data_selection_enabled,s=i.data_selection_grouped,u=i.data_selection_isselectable,c=i.tooltip_grouped,l=r.getAllValuesOnIndex(n);c&&(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),!o||s)||a.selectAll("."+Vo.shape+"-"+n).each((function(){In(this).classed(Eo.EXPANDED,!0),o&&e.style("cursor",s?"pointer":null),c||(null==r.hideGridFocus||r.hideGridFocus(),r.hideTooltip(),s||r.setExpand(n))})).filter((function(t){return r.isWithinShape(this,t)})).call((function(i){var a,l=i.data();o&&(s||null!=(a=u)&&a.bind(r.api)(l))&&e.style("cursor","pointer"),c||(r.showTooltip(l,t),null==r.showGridFocus||r.showGridFocus(l),null==r.unexpandCircles||r.unexpandCircles(),i.each((function(t){return r.setExpand(n,t.id)})))}))},setExpand:function(t,e,n){var r=this,i=r.config;r.$el.circle&&i.point_focus_expand_enabled&&r.expandCircles(t,e,n),r.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,r){void 0===t&&(t=!0);var i=this;["bar","candlestick"].filter((function(t){return i.$el[t]})).forEach((function(a){r&&i.$el[a].classed(Eo.EXPANDED,!1),i.getShapeByIndex(a,e,n).classed(Eo.EXPANDED,t)}))},setOverOut:function(t,e){var n=this,r=n.config,i=n.state.hasRadar,a=n.$el.main,o=Wa(e);if(o||-1!==e){var s=r[t?"data_onover":"data_onout"].bind(n.api);if(r.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select("."+So.arc+n.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&i?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),n.isMultipleX()||a.selectAll("."+Vo.shape+"-"+e).each((function(t){s(t,this)}));else{var u=n.cache.get(vs)||[],c=a.selectAll("."+Vo.shape+"-"+e).filter((function(t){return n.isWithinShape(this,t)}));c.each((function(t){var e=this;(0===u.length||u.every((function(t){return t!==e})))&&(s(t,this),u.push(this))})),u.length>0&&c.empty()&&(s=r.data_onout.bind(n.api),u.forEach((function(t){return s(In(t).datum(),t)})),u=[]),n.cache.add(vs,u)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(ys);(Wa(t)&&n?t.id!==n.id:t!==n)&&((n||za(n))&&e.setOverOut(!1,n),(t||za(t))&&e.setOverOut(!0,t),e.cache.add(ys,t))},getDraggableSelection:function(){var t=this,e=t.config,n=t.state;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?Vs().on("drag",(function(e){n.event=e,t.drag(eo(e,this))})).on("start",(function(e){n.event=e,t.dragstart(eo(e,this))})).on("end",(function(e){n.event=e,t.dragend()})):function(){}},dispatchEvent:function(t,e,n){var r=this,i=r.config,a=r.state,o=a.eventReceiver,s=a.hasAxis,u=a.hasRadar,c=r.$el,l=c.eventRect,f=c.arcs,h=c.radar,d=r.isMultipleX(),g=(u?h.axes.select("."+Mo.axis+"-"+e+" text"):l||f.selectAll("."+Eo.target+" path").filter((function(t,n){return n===e}))).node(),p=g.getBoundingClientRect(),v=p.width,y=p.left,x=p.top;if(s&&!u&&!d){var _=o.coords[e];v=_.w,y+=_.x,x+=_.y}var m=y+(n?n[0]:0)+(d||i.axis_rotated?0:v/2),b=x+(n?n[1]:0);xo[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,{screenX:m,screenY:b,clientX:m,clientY:b})},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t,e,n=this.$el,r=n.eventRect,i=n.zoomResetBtn;null==(t=r)||t.on(".zoom wheel.zoom .drag",null),null==(e=i)||e.on("click",null).style("display","none")},unbindAllEvents:function(){var t,e,n,r,i=this,a=i.$el,o=a.arcs,s=a.eventRect,u=a.legend,c=a.region,l=a.svg,f=i.brush;[l,s,null==(t=c)?void 0:t.list,null==(e=f)?void 0:e.getSelection(),null==(n=o)?void 0:n.selectAll("path"),null==(r=u)?void 0:r.selectAll("g")].forEach((function(t){return null==t?void 0:t.on("wheel click mouseover mousemove mouseout touchstart touchmove touchend touchstart.eventRect touchmove.eventRect touchend.eventRect .brush .drag .zoom wheel.zoom dblclick.zoom",null)})),null==i.unbindZoomEvent||i.unbindZoomEvent()}},Hs={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,r=/s$/.test(t),i=/^(area|arc|line)s?$/.test(t),a=r?"id":"index";return function(o){var s=o.data||o;return((e?n.generateClass(Zo[r?"shapes":"shape"],s[a]):"")+n.generateClass(Zo[t],s[i?"id":a])).trim()}},getChartClass:function(t){var e=this;return function(n){return Zo["chart"+t]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var r,i=n.id||(null==(r=n.data)?void 0:r.id)||n;return e.indexOf(i)<0&&e.push(i),t[e.indexOf(i)%t.length]}},classRegion:function(t,e){return this.generateClass(Zo.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+Zo.target+"-"+e),this.generateClass(Zo.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?Zo.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?Zo.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-"+t:"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e){var n=e||"",r=this.getTargetSelectorSuffix(t);return n+"."+(Zo.target+r)+", "+n+"."+(Zo.circles+r)},selectorTargets:function(t,e){var n=this,r=t||[];return r.length?r.map((function(t){return n.selectorTarget(t,e)})):null},selectorLegend:function(t){return"."+(Zo.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return null!=t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null}};function Ws(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qs(t,e){return qs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qs(t,e)}function Zs(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qs(t,e)}function Ks(t){return Ks=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ks(t)}function Js(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Qs(t,e,n){return Qs=Js()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&qs(i,n.prototype),i},Qs.apply(null,arguments)}function tu(t){var e="function"==typeof Map?new Map:void 0;return tu=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Qs(t,arguments,Ks(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qs(r,t)},tu(t)}function eu(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return nu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ru=function(t){function e(e,n){var r;if(void 0===n&&(n=su),r=t.call(this)||this,Object.defineProperties(Ws(r),{_intern:{value:new Map},_key:{value:n}}),null!=e)for(var i,a=eu(e);!(i=a()).done;){var o=i.value,s=o[0],u=o[1];r.set(s,u)}return r}Zs(e,t);var n=e.prototype;return n.get=function(e){return t.prototype.get.call(this,iu(this,e))},n.has=function(e){return t.prototype.has.call(this,iu(this,e))},n.set=function(e,n){return t.prototype.set.call(this,au(this,e),n)},n.delete=function(e){return t.prototype.delete.call(this,ou(this,e))},e}(tu(Map));Set;function iu(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function au(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function ou(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function su(t){return null!==t&&"object"==typeof t?t.valueOf():t}function uu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function cu(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return lu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lu(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var fu=Symbol("implicit");function hu(){var t=new ru,e=[],n=[],r=fu;function i(i){var a=t.get(i);if(void 0===a){if(r!==fu)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ru;for(var r,a=cu(n);!(r=a()).done;){var o=r.value;t.has(o)||t.set(o,e.push(o)-1)}return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return hu(e,n).unknown(r)},uu.apply(i,arguments),i}var du=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],gu={getColorFromCss:function(){var t=ls,e=Pn.body,n=e[t];if(!n){var r=Pn.createElement("span");r.className=Io.colorPattern,r.style.display="none",e.appendChild(r);var i=Ln.getComputedStyle(r).backgroundImage;r.parentNode.removeChild(r),i.indexOf(";")>-1&&(n=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map((function(t){return t.trim().replace(/[\"'\s]/g,"")})).filter(Boolean),e[t]=n)}return n},generateColor:function(){var t=this,e=t.config,n=e.data_colors,r=e.data_color,i=[],a=Ga(e.color_pattern)?e.color_pattern:hu(t.getColorFromCss()||du).range(),o=a;if(Da(e.color_tiles)){var s=e.color_tiles.bind(t.api)(),u=a.map((function(e,n){var r=e.replace(/[#\(\)\s,]/g,""),i=t.state.datetimeId+"-pattern-"+r+"-"+n;return function(t,e,n){var r=In(t.cloneNode(!0));return r.attr("id",n).insert("rect",":first-child").attr("width",r.attr("width")).attr("height",r.attr("height")).style("fill",e),{id:n,node:r.node()}}(s[n%s.length],e,i)}));a=u.map((function(t){return"url(#"+t.id+")"})),t.patterns=u}return function(s){var u,c,l=s.id||(null==(u=s.data)?void 0:u.id)||s,f=t.isTypeOf(l,["line","spline","step"])||!e.data_types[l];return Da(n[l])?c=n[l].bind(t.api)(s):n[l]?c=n[l]:(i.indexOf(l)<0&&i.push(l),c=f?o[i.indexOf(l)%o.length]:a[i.indexOf(l)%a.length],n[l]=c),Da(r)?r.bind(t.api)(c,s):c}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.max||100,a=n.values&&n.values.length?n.values:[];return Ga(n)?function(t){for(var n=r?t:100*t/i,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this,n=e.$el,r=e.config,i=e.state,a=t||r.data_labels_backgroundColors;if(a){var o=[];Na(a)?o.push(""):Wa(a)&&(o=Object.keys(a)),o.forEach((function(r){var o=i.datetimeId+"-labels-bg"+e.getTargetSelectorSuffix(r)+(t?e.getTargetSelectorSuffix(t):"");n.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",o).html('<feFlood flood-color="'+(""===r?a:a[r])+'" /><feComposite in="SourceGraphic"/>')}))}},setOverColor:function(t,e){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=t?a:n.color;Wa(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:Na(o)?o=function(){return a}:Da(a)&&(o=o.bind(n.api)),i.selectAll(Wa(e)?"."+So.arc+n.getTargetSelectorSuffix(e.id):"."+Vo.shape+"-"+e).style("fill",o)}},pu={getYDomainMinMax:function(t,e){var n=this,r=n.axis,i=n.config,a="min"===e,o=i.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0){var c=n["has"+(a?"Negative":"Positive")+"ValueInTargets"](t);o.forEach((function(t){var e=t.filter((function(t){return s.indexOf(t)>=0}));if(e.length){var n=e[0],i=r.getId(n);c&&u[n]&&(u[n]=u[n].map((function(t){return(a?t<0:t>0)?t:0}))),e.filter((function(t,e){return e>0})).forEach((function(t){if(u[t]){var e=r.getId(t);u[t].forEach((function(t,r){var o=+t;e!==i||c&&(a?o>0:o<0)||(u[n][r]+=o)}))}}))}}))}return vo(e,Object.keys(u).map((function(t){return vo(e,u[t])})))},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some((function(n){return e.axis.getId(n)===t}))},getYDomain:function(t,e,n){var r,i=this,a=i.axis,o=i.config,s=i.scale,u="axis_"+e;if(i.isStackNormalized())return[0,100];var c=(null==(r=s)?void 0:r[e])&&"log"===s[e].type,l=t.filter((function(t){return a.getId(t.id)===e})),f=n?i.filterByXDomain(l,n):l;if(0===f.length)return i.isHiddenTargetWithYDomain(e)?s[e].domain():"y2"===e?s.y.domain():i.getYDomain(t,"y2",n);var h=o[u+"_min"],d=o[u+"_max"],g=o[u+"_center"],p=o[u+"_inverted"],v=i.hasDataLabel()&&o.axis_rotated,y=i.hasDataLabel()&&!o.axis_rotated,x=i.getYDomainMinMax(f,"min"),_=i.getYDomainMinMax(f,"max"),m=[Dn.BAR,Dn.BUBBLE,Dn.SCATTER].concat(zn.Line).some((function(t){var e=t.indexOf("area")>-1?"area":t;return i.hasType(t,f,!0)&&o[e+"_zerobased"]}));x=Pa(h)?h:Pa(d)?x<d?x:d-10:x,_=Pa(d)?d:Pa(h)?h<_?_:h+10:_,isNaN(x)&&(x=0),isNaN(_)&&(_=x),x===_&&(x<0?_=0:x=0);var b=x>=0&&_>=0,w=x<=0&&_<=0;(Pa(h)&&b||Pa(d)&&w)&&(m=!1),m&&(b&&(x=0),w&&(_=0));var T=Math.abs(_-x),A={top:.1*T,bottom:.1*T};if(ja(g)){var E=Math.max(Math.abs(x),Math.abs(_));_=g+E,x=g-E}if(v){var S=Ua(s.y.range()),k=i.getDataLabelLength(x,_,"width").map((function(t){return t/S}));["bottom","top"].forEach((function(t,e){A[t]+=T*(k[e]/(1-k[0]-k[1]))}))}else if(y){var M=i.getDataLabelLength(x,_,"height");["bottom","top"].forEach((function(t,e){A[t]+=i.convertPixelToScale("y",M[e],T)}))}A=i.getResettedPadding(A);var O=o[u+"_padding"];Ga(O)&&["bottom","top"].forEach((function(t){A[t]=a.getPadding(O,t,A[t],T)})),m&&(b&&(A.bottom=x),w&&(A.top=-_));var R=c?[x,_].map((function(t){return t<0?0:t})):[x-A.bottom,_+A.top];return p?R.reverse():R},getXDomainMinMax:function(t,e){var n,r=this.config["axis_x_"+e],i=vo(e,t.map((function(t){return vo(e,t.values.map((function(t){return t.x})))}))),a=Wa(r)?r.value:r;return a=ja(a)&&null!=(n=this.axis)&&n.isTimeSeries()?mo.bind(this)(a):a,Wa(r)&&r.fit&&("min"===e&&a<i||"max"===e&&a>i)&&(a=void 0),ja(a)?a:i},getXDomainPadding:function(t,e){var n,r=this,i=r.axis,a=r.config.axis_x_padding,o=i.isTimeSeries()&&e,s=Ua(t);if(i.isCategorized()||o)n=0;else if(r.hasType("bar")){var u=r.getMaxDataCount();n=u>1?s/(u-1)/2:.5}else n=r.getResettedPadding(.01*s);var c=za(a)?{left:a,right:a}:a,l=c.left,f=void 0===l?n:l,h=c.right,d=void 0===h?n:h;if("px"===a.unit){var g=Math.abs(s+.2*s);f=i.getPadding(a,"left",n,g),d=i.getPadding(a,"right",n,g)}else{var p=s+f+d;if(o&&p){var v=s/e/p;f=f/p/v,d=d/p/v}}return{left:f,right:d}},getXDomain:function(t){var e=this,n=e.axis,r=e.scale.x,i=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=i[0],o=void 0===a?0:a,s=i[1],u=void 0===s?0:s;if("log"!==r.type){var c=n.isCategorized(),l=n.isTimeSeries(),f=e.getXDomainPadding(i),h=i[0],d=i[1];h-d!=0||c||(l?(h=new Date(.5*h.getTime()),d=new Date(1.5*d.getTime())):(h=0===h?1:.5*h,d=0===d?-1:1.5*d)),(h||0===h)&&(o=l?new Date(h.getTime()-f.left):h-f.left),(d||0===d)&&(u=l?new Date(d.getTime()+f.right):d+f.right)}return[o,u]},updateXDomain:function(t,e,n,r,i){var a,o=this,s=o.config,u=o.org,c=o.scale,l=c.x,f=c.subX,h=s.zoom_enabled;n&&(l.domain(i||po(o.getXDomain(t))),u.xDomain=l.domain(),h&&o.zoom.updateScaleExtent(),f.domain(l.domain()),null==(a=o.brush)||a.scale(f));if(e){var d=i||!o.brush||oo(o)?u.xDomain:no(o).map(f.invert);l.domain(d),h&&o.zoom.updateScaleExtent()}return r&&l.domain(o.trimXDomain(l.orgDomain())),l.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return ja(t.zoom_x_min)&&(n=vo("min",[n,t.zoom_x_min])),ja(t.zoom_x_max)&&(r=vo("max",[r,t.zoom_x_max])),[n,r]},convertPixelToScale:function(t,e,n){var r=this.config,i=this.state,a=r.axis_rotated;return n*(e/i["x"===t?a?"height":"width":a?"width":"height"])}};function vu(t,e,n){var r=t.config,i="axis_"+e+"_tick_format";return(r[i]?r[i]:t.defaultValueFormat)(n)}var yu={yFormat:function(t){return vu(this,"y",t)},y2Format:function(t){return vu(this,"y2",t)},getDefaultValueFormat:function(){var t=this,e=t.defaultArcValueFormat,n=t.yFormat,r=t.y2Format,i=t.hasArcType(null,["gauge","polar","radar"]);return function(a,o,s){return(i?e:t.axis&&"y2"===t.axis.getId(s)?r:n).call(t,a,o)}},defaultValueFormat:function(t){return Pa(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},defaultPolarValueFormat:function(t){return""+t},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Pa(t)?+t:""},r=n;return Da(e.format)?r=e.format:Ya(e.format)&&(r=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),r.bind(this.api)}},xu={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Do.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.scale,s=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=qa(u,"withTransition",!0),u.withTransitionForTransform=qa(u,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?r.updateLegendTemplate():r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),s.legend.selectAll("."+Do.legendItem).classed(Do.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!o.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,r=In(e.legend_contents_bindto),i=e.legend_contents_template;if(!r.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach((function(e){var n=Da(i)?i.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):_o(i,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)}));var u=r.html(s).selectAll((function(){return this.childNodes})).data(o);t.setLegendItem(u),n.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,r=e.state,i=r.isLegendTop,a=r.isLegendLeft,o=r.isLegendRight,s=r.isLegendInset,u=r.current,c=t.width,l=t.height,f={top:i?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?f.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?f.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend;(0,e.$T)(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+Do.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,r=t.isLegendInset,i=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||r?i*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,r=t.legendItemHeight,i=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,r)*(i+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Do.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,r=n.$el.legend,i=n.$T,a=n.mapToTargetIds(t);r&&i(r.selectAll("."+Do.legendItem).filter((function(t){return a.indexOf(t)>=0})).classed(Fo.legendItemFocused,e)).style("opacity",(function(){return e?null:n.opacityForUnfocusedLegend.call(n,In(this))}))},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll("."+Do.legendItem).classed(Fo.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,r=e.$el,i=e.$T;n.legend_show||(n.legend_show=!0,r.legend?r.legend.style("visibility",null):e.initLegend(),e.state.legendHasRendered||e.updateLegend()),e.removeHiddenLegendIds(t),i(r.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,r=e.$el.legend;n.legend_show&&Va(t)&&(n.legend_show=!1,r.style("visibility","hidden")),e.addHiddenLegendIds(t),r.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,r=this,i=r.cache,a=r.state,o=gs;return t&&((n=!a.redrawing&&i.get(o)||{})[t]||(n[t]=r.getTextRect(e,Do.legendItem),i.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.api,r=e.config,i=e.state,a="touch"===i.inputType,o=e.hasType("gauge");t.attr("class",(function(t){var n=In(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass(Do.legendItem,t)})).style("visibility",(function(t){return e.isLegendToShow(t)?null:"hidden"})),r.interaction_enabled&&(t.style("cursor","pointer").on("click",(function(t,i){Za(r.legend_item_onclick,n,i)||(t.altKey?(n.hide(),n.show(i)):(n.toggle(i),In(this).classed(Fo.legendItemFocused,!1))),a&&e.hideTooltip()})),a||t.on("mouseout",(function(t,i){Za(r.legend_item_onout,n,i)||(In(this).classed(Fo.legendItemFocused,!1),o&&e.undoMarkOverlapped(e,"."+Po.gaugeValue),e.api.revert())})).on("mouseover",(function(t,a){Za(r.legend_item_onover,n,a)||(In(this).classed(Fo.legendItemFocused,!0),o&&e.markOverlapped(a,e,"."+Po.gaugeValue),!i.transiting&&e.isTargetToShow(a)&&n.focus(a))})))},updateLegendElement:function(t,e){var n,r,i,a=this,o=a.config,s=a.state,u=a.$el.legend,c=a.$T,l=o.legend_item_tile_width+5,f=0,h=0,d=0,g={},p={},v={},y=[0],x={},_=0,m=s.isLegendRight||s.isLegendInset,b=t.filter((function(t){return!ja(o.data_names[t])||null!==o.data_names[t]})),w=e.withTransition,T=function(t,e,n){var r,i=n===b.length-1,u=a.getLegendItemTextBox(e,t),c=u.width+l+(i&&!m?0:10)+o.legend_padding,w=u.height+4,T=m?w:c,A=m?a.getLegendHeight():a.getLegendWidth(),E=function(t,e){e||(r=(A-d-T)/2)<10&&(r=(A-T)/2,d=0,_++),x[t]=_,y[_]=s.isLegendInset?10:r,g[t]=d,d+=T};if(0===n&&(d=0,_=0,f=0,h=0),o.legend_show&&!a.isLegendToShow(e))return p[e]=0,v[e]=0,x[e]=0,void(g[e]=0);p[e]=c,v[e]=w,(!f||c>=f)&&(f=c),(!h||w>=h)&&(h=w);var S=m?h:f;o.legend_equally?(Object.keys(p).forEach((function(t){return p[t]=f})),Object.keys(v).forEach((function(t){return v[t]=h})),(r=(A-S*b.length)/2)<10?(d=0,_=0,b.forEach((function(t){return E(t)}))):E(e,!0)):E(e)};s.isLegendInset&&(_=o.legend_inset_step?o.legend_inset_step:b.length,a.updateLegendStep(_)),s.isLegendRight?(n=function(t){return f*x[t]},r=function(t){return y[x[t]]+g[t]}):s.isLegendInset?(n=function(t){return f*x[t]+10},r=function(t){return y[x[t]]+g[t]}):(n=function(t){return y[x[t]]+g[t]},r=function(t){return h*x[t]});var A=function(t,e){return n(t,e)+4+o.legend_item_tile_width},E=function(t,e){return n(t,e)},S=function(t,e){return n(t,e)-2},k=function(t,e){return n(t,e)-2+o.legend_item_tile_width},M=function(t,e){return r(t,e)+9},O=function(t,e){return r(t,e)-5},R=function(t,e){return r(t,e)+4},C=-200,I=u.selectAll("."+Do.legendItem).data(b).enter().append("g");a.setLegendItem(I),I.append("text").text((function(t){return ja(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)})).style("pointer-events","none").attr("x",m?A:C).attr("y",m?C:M),I.append("rect").attr("class",Do.legendItemEvent).style("fill-opacity","0").attr("x",m?E:C).attr("y",m?C:O);var L=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},P=o.legend_usePoint;if(P){var D=[];I.append((function(t){var e=Ga(o.point_pattern)?o.point_pattern:[o.point_type];-1===D.indexOf(t)&&D.push(t);var n=e[D.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Pn.createElementNS(Ie.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")})).attr("class",Do.legendItemPoint).style("fill",L).style("pointer-events","none").attr("href",(function(t,e,n){var r=n[e].nodeName.toLowerCase(),i=a.getTargetSelectorSuffix(t);return"use"===r?"#"+s.datetimeId+"-point"+i:void 0}))}else I.append("line").attr("class",Do.legendItemTile).style("stroke",L).style("pointer-events","none").attr("x1",m?S:C).attr("y1",m?C:R).attr("x2",m?k:C).attr("y2",m?C:R).attr("stroke-width",o.legend_item_tile_height);i=u.select("."+Do.legendBackground+" rect"),s.isLegendInset&&f>0&&0===i.size()&&(i=u.insert("g","."+Do.legendItem).attr("class",Do.legendBackground).append("rect"));var N=u.selectAll("text").data(b).text((function(t){return ja(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){T(this,t,e)}));(c(N,w).attr("x",A).attr("y",M),c(u.selectAll("rect."+Do.legendItemEvent).data(b),w).attr("width",(function(t){return p[t]})).attr("height",(function(t){return v[t]})).attr("x",E).attr("y",O),P)?c(u.selectAll("."+Do.legendItemPoint).data(b),w).each((function(){var t,e,n,r=this.nodeName.toLowerCase(),i=o.point_r,a="x",s="y",u=2,c=2.5;if("circle"===r){var l=.2*i;a="cx",s="cy",t=i+l,u=2*i,c=-l}else if("rect"===r){var f=2.5*i;e=f,n=f,c=3}In(this).attr(a,(function(t){return S(t)+u})).attr(s,(function(t){return R(t)-c})).attr("r",t).attr("width",e).attr("height",n)})):c(u.selectAll("line."+Do.legendItemTile).data(b),w).style("stroke",L).attr("x1",S).attr("y1",R).attr("x2",k).attr("y2",R);i&&c(i,w).attr("height",a.getLegendHeight()-12).attr("width",f*(_+1)+10),a.updateLegendItemWidth(f),a.updateLegendItemHeight(h),a.updateLegendStep(_)}},_u={redraw:function(t){var e;void 0===t&&(t={});var n=this,r=n.config,i=n.state,a=n.$el,o=a.main;i.redrawing=!0;var s=n.filterTargetsToShow(n.data.targets),u=t,c=u.flow,l=u.initializing,f=n.getWithOption(t),h=f.Transition?r.transition_duration:0,d=f.TransitionForExit?h:0,g=f.TransitionForAxis?h:0,p=null==(e=n.axis)?void 0:e.generateTransitions(g);n.updateSizes(l),f.Legend&&r.legend_show?(t.withTransition=!!h,n.updateLegend(n.mapToIds(n.data.targets),t,p)):f.Dimension&&n.updateDimension(!0),n.hasArcType()&&!i.hasRadar||n.updateCircleY&&(n.circleY=n.updateCircleY()),i.hasAxis?(n.axis.redrawAxis(s,f,p,c,l),r.data_empty_label_text&&o.select("text."+Ho.text+"."+Eo.empty).attr("x",i.width/2).attr("y",i.height/2).text(r.data_empty_label_text).style("display",s.length?"none":null),n.hasGrid()&&n.updateGrid(),r.regions.length&&n.updateRegion(),["bar","candlestick","line","area"].forEach((function(t){var e=uo(t);(/^(line|area)$/.test(t)&&n.hasTypeOf(e)||n.hasType(t))&&n["update"+e](f.TransitionForExit)})),a.text&&o.selectAll("."+Yo.selectedCircles).filter(n.isBarType.bind(n)).selectAll("circle").remove(),r.interaction_enabled&&!c&&f.EventRect&&(n.redrawEventRect(),null==n.bindZoomEvent||n.bindZoomEvent())):(a.arcs&&n.redrawArc(h,d,f.Transform),a.radar&&n.redrawRadar(),a.polar&&n.redrawPolar()),i.resizing||!n.hasPointType()&&!i.hasRadar||n.updateCircle(),n.hasDataLabel()&&!n.hasArcType(null,["radar"])&&n.updateText(),null==n.redrawTitle||n.redrawTitle(),l&&n.updateTypesElements(),n.generateRedrawList(s,c,h,f.Subchart),n.callPluginHook("$redraw",t,h)},generateRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=i.getDrawShape();o.hasAxis&&a.subchart_show&&i.redrawSubchart(r,n,s);var u=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:i.xv.bind(i)}),c=(n||u)&&bo(),l=i.getRedrawList(s,e,u,c),f=function(){u&&u(),o.redrawing=!1,Za(a.onrendered,i.api)};if(f)if(c&&l.length){var h=ws();Ki().duration(n).each((function(){l.reduce((function(t,e){return t.concat(e)}),[]).forEach((function(t){return h.add(t)}))})).call(h,f)}else o.transiting||f();i.mapToIds(i.data.targets).forEach((function(t){o.withoutFadeIn[t]=!0}))},getRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=o.hasAxis,u=o.hasRadar,c=i.$el.grid,l=t.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=[];return s&&((a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(i.redrawGrid(r)),a.regions.length&&p.push(i.redrawRegion(r)),Object.keys(t.type).forEach((function(e){var n=uo(e),a=t.type[e];(/^(area|line)$/.test(e)&&i.hasTypeOf(n)||i.hasType(e))&&p.push(i["redraw"+n](a,r))})),!e&&c.main&&p.push(i.updateGridFocus())),i.hasArcType()&&!u||Ga(a.data_labels)&&!1!==a.data_labels&&p.push(i.redrawText(d,g,e,r)),!i.hasPointType()&&!u||a.point_focus_only||i.redrawCircle&&p.push(i.redrawCircle(f,h,r,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,r=n.config,i=n.state;t.withTransition=qa(t,"withTransition",!0),t.withTransform=qa(t,"withTransform",!1),t.withLegend=qa(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=qa(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(i.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withDimension:!1,withLegend:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}},mu=Math.sqrt(50),bu=Math.sqrt(10),wu=Math.sqrt(2);function Tu(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Au(t,e,n))||!isFinite(o))return[];if(o>0){var u=Math.round(t/o),c=Math.round(e/o);for(u*o<t&&++u,c*o>e&&--c,a=Array(i=c-u+1);++s<i;)a[s]=(u+s)*o}else{o=-o;var l=Math.round(t*o),f=Math.round(e*o);for(l/o<t&&++l,f/o>e&&--f,a=Array(i=f-l+1);++s<i;)a[s]=(l+s)/o}return r&&a.reverse(),a}function Au(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=mu?10:a>=bu?5:a>=wu?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=mu?10:a>=bu?5:a>=wu?2:1)}function Eu(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=mu?i*=10:a>=bu?i*=5:a>=wu&&(i*=2),e<t?-i:i}function Su(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ku(t){var e=t,n=t,r=t;function i(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<0?i=o+1:a=o}while(i<a)}return i}return 2!==t.length&&(e=function(e,n){return t(e)-n},n=Su,r=function(e,n){return Su(t(e),n)}),{left:i,center:function(t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=t.length);var o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,a){if(void 0===i&&(i=0),void 0===a&&(a=t.length),i<a){if(0!==n(e,e))return a;do{var o=i+a>>>1;r(t[o],e)<=0?i=o+1:a=o}while(i<a)}return i}}}var Mu=ku(Su),Ou=Mu.right,Ru=(Mu.left,ku((function(t){return null===t?NaN:+t})).center,Ou);function Cu(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Iu(t){return+t}var Lu=[0,1];function Pu(t){return t}function Du(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Nu(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Du(i,r),a=n(o,a)):(r=Du(r,i),a=n(a,o)),function(t){return a(r(t))}}function zu(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Du(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Ru(t,e,1,r)-1;return a[n](i[n](e))}}function Fu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ju(){var t,e,n,r,i,a,o=Lu,s=Lu,u=Ur,c=Pu;function l(){var t,e,n,u=Math.min(o.length,s.length);return c!==Pu&&(t=o[0],e=o[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?zu:Nu,i=a=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((a||(a=r(s,o.map(t),Fr)))(n)))},f.domain=function(t){return arguments.length?(o=Array.from(t,Iu),l()):o.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=Cu,l()},f.clamp=function(t){return arguments.length?(c=!!t||Pu,l()):c!==Pu},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Bu(){return ju()(Pu,Pu)}var Xu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uu(t){if(!(e=$u.exec(t)))throw new Error("invalid format: "+t);var e;return new Yu({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Yu(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Vu(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Gu(t){return(t=Vu(Math.abs(t)))?t[1]:NaN}function Hu(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}Uu.prototype=Yu.prototype,Yu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Wu={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Hu(100*t,e)},r:Hu,s:function(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+Vu(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function qu(t){return t}var Zu,Ku,Ju,Qu=Array.prototype.map,tc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ec(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?qu:(e=Qu.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?qu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Qu.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Uu(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,g=t.width,p=t.comma,v=t.precision,y=t.trim,x=t.type;"n"===x?(p=!0,x="g"):Wu[x]||(void 0===v&&(v=12),y=!0,x="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",m="$"===h?a:/[%p]/.test(x)?u:"",b=Wu[x],w=/[defgprs%]/.test(x);function T(t){var i,a,u,h=_,T=m;if("c"===x)T=b(t)+T,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:b(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:c:"-"===f||"("===f?"":f)+h,T=("s"===x?tc[8+Xu/3]:"")+T+(A&&"("===f?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(u=t.charCodeAt(i))||u>57){T=(46===u?o+t.slice(i+1):t.slice(i))+T,t=t.slice(0,i);break}}p&&!d&&(t=r(t,1/0));var E=h.length+t.length+T.length,S=E<g?Array(g-E+1).join(e):"";switch(p&&d&&(t=r(S+t,S.length?g-T.length:1/0),S=""),n){case"<":t=h+t+T+S;break;case"=":t=h+S+t+T;break;case"^":t=S.slice(0,E=S.length>>1)+h+t+T+S.slice(E);break;default:t=S+h+t+T}return s(t)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),T.toString=function(){return t+""},T}return{format:f,formatPrefix:function(t,e){var n=f(((t=Uu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Gu(e)/3))),i=Math.pow(10,-r),a=tc[8+r/3];return function(t){return n(i*t)+a}}}}function nc(t,e,n,r){var i,a=Eu(t,e,n);switch((r=Uu(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Gu(e)/3)))-Gu(Math.abs(t)))}(a,o))||(r.precision=i),Ju(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gu(e)-Gu(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Gu(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ku(r)}function rc(t){var e=t.domain;return t.ticks=function(t){var n=e();return Tu(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return nc(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,u=a[o],c=a[s],l=10;for(c<u&&(i=u,u=c,c=i,i=o,o=s,s=i);l-- >0;){if((i=Au(u,c,n))===r)return a[o]=u,a[s]=c,e(a);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ic(){var t=Bu();return t.copy=function(){return Fu(t,ic())},uu.apply(t,arguments),rc(t)}function ac(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function oc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function sc(t){var e=1,n=t(ac(e),oc(e));return n.constant=function(n){return arguments.length?t(ac(e=+n),oc(e)):e},rc(n)}function uc(){var t=sc(ju());return t.copy=function(){return Fu(t,uc()).constant(t.constant())},uu.apply(t,arguments)}function cc(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function lc(t){return Math.log(t)}function fc(t){return Math.exp(t)}function hc(t){return-Math.log(-t)}function dc(t){return-Math.exp(-t)}function gc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function pc(t){return function(e,n){return-t(-e,n)}}function vc(t){var e,n,r=t(lc,fc),i=r.domain,a=10;function o(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?gc:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),i()[0]<0?(e=pc(e),n=pc(n),t(hc,dc)):t(lc,fc),r}return r.base=function(t){return arguments.length?(a=+t,o()):a},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r=i(),o=r[0],s=r[r.length-1],u=s<o;if(u){var c=[s,o];o=c[0],s=c[1]}var l,f,h=e(o),d=e(s),g=null==t?10:+t,p=[];if(!(a%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),o>0){for(;h<=d;++h)for(l=1;l<a;++l)if(!((f=h<0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}}else for(;h<=d;++h)for(l=a-1;l>=1;--l)if(!((f=h>0?l/n(-h):l*n(h))<o)){if(f>s)break;p.push(f)}2*p.length<g&&(p=Tu(o,s,g))}else p=Tu(h,d,Math.min(d-h,g)).map(n);return u?p.reverse():p},r.tickFormat=function(t,i){if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=Uu(i)).precision||(i.trim=!0),i=Ku(i)),t===1/0)return i;var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a<a-.5&&(r*=a),r<=o?i(t):""}},r.nice=function(){return i(cc(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function yc(){var t=vc(ju()).domain([1,10]);return t.copy=function(){return Fu(t,yc()).base(t.base())},uu.apply(t,arguments),t}!function(t){Zu=ec(t),Ku=Zu.format,Ju=Zu.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var xc=s((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));xc.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):xc:null};var _c=xc,mc=(xc.range,s((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*u)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCSeconds()}))),bc=mc,wc=(mc.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getMinutes()}))),Tc=wc,Ac=(wc.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()}))),Ec=Ac,Sc=(Ac.range,s((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),kc=Sc,Mc=(Sc.range,s((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCMinutes()}))),Oc=Mc,Rc=(Mc.range,s((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()}))),Cc=Rc,Ic=(Rc.range,s((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Lc=Ic;Ic.range;function Pc(t,e,n,r,i,a){var o=[[bc,1,u],[bc,5,5e3],[bc,15,15e3],[bc,30,3e4],[a,1,c],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,l],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,f],[r,2,1728e5],[n,1,h],[e,1,d],[e,3,7776e6],[t,1,g]];function s(e,n,r){var i=Math.abs(n-e)/r,a=ku((function(t){return t[2]})).right(o,i);if(a===o.length)return t.every(Eu(e/g,n/g,r));if(0===a)return _c.every(Math.max(Eu(e,n,r),1));var s=o[i/o[a-1][2]<o[a][2]/i?a-1:a],u=s[0],c=s[1];return u.every(c)}return[function(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0],e=i[1]}var a=n&&"function"==typeof n.range?n:s(t,e,n),o=a?a.range(t,+e+1):[];return r?o.reverse():o},s]}var Dc=Pc(F,Lc,v,A,Cc,Oc),Nc=Dc[0],zc=Dc[1],Fc=Pc(N,kc,S,P,Ec,Tc),jc=Fc[0],Bc=Fc[1];function Xc(t){return new Date(t)}function $c(t){return t instanceof Date?+t:+new Date(+t)}function Uc(t,e,n,r,i,a,o,s,u,c){var l=Bu(),f=l.invert,h=l.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),_=c("%B"),m=c("%Y");function b(t){return(u(t)<t?d:s(t)<t?g:o(t)<t?p:a(t)<t?v:r(t)<t?i(t)<t?y:x:n(t)<t?_:m)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,$c)):h().map(Xc)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?b:c(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(cc(n,t)):l},l.copy=function(){return Fu(l,Uc(t,e,n,r,i,a,o,s,u,c))},l}function Yc(){return uu.apply(Uc(jc,Bc,N,kc,S,P,Ec,Tc,bc,U).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vc(){return uu.apply(Uc(Nc,zc,F,Lc,v,A,Cc,Oc,bc,V).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gc(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var r={linear:ic,log:uc,_log:yc,time:Yc,utc:Vc}[t]();return r.type=t,/_?log/.test(t)&&r.clamp(!0),r.range([e,n])}var Hc={getXScale:function(t,e,n,r){var i=this,a=i.scale.zoom||Gc(i.axis.getAxisType("x"),t,e);return i.getCustomizedScale(n?a.domain(n):a,r)},getYScale:function(t,e,n,r){var i=Gc(this.axis.getAxisType(t),e,n);return r&&i.domain(r),i},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),r=e?n?"subY2":"subY":n?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,r=e||function(){return n.axis.x.tickOffset()},i=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var a in t)i[a]=t[a];return i.orgDomain=function(){return t.domain()},i.orgScale=function(){return t},n.axis.isCategorized()&&(i.domain=function(e){var n=e;return arguments.length?(t.domain(n),i):[(n=this.orgDomain())[0],n[1]+1]}),i},updateScales:function(t,e){void 0===e&&(e=!0);var n=this,r=n.axis,i=n.config,a=n.format,o=n.org,s=n.scale,u=n.state,c=u.width,l=u.height,f=u.width2,h=u.height2;if(u.hasAxis){var d,g=i.axis_rotated,p=n.getResettedPadding(1),v={x:g?p:0,y:g?0:l,subX:g?1:0,subY:g?0:h},y={x:g?l:c,y:g?c:p,subX:g?l:c,subY:g?f:1},x=e&&(null==(d=s.x)?void 0:d.orgDomain()),_=e&&o.xDomain;s.x=n.getXScale(v.x,y.x,x,(function(){return r.x.tickOffset()})),s.subX=n.getXScale(v.x,y.x,_,(function(t){return t%1?0:r.subX.tickOffset()})),a.xAxisTick=r.getXAxisTickFormat(),a.subXAxisTick=r.getXAxisTickFormat(!0),r.setAxis("x",s.x,i.axis_x_tick_outer,t),i.subchart_show&&r.setAxis("subX",s.subX,i.axis_x_tick_outer,t),s.y=n.getYScale("y",v.y,y.y,s.y?s.y.domain():i.axis_y_default),s.subY=n.getYScale("y",v.subY,y.subY,s.subY?s.subY.domain():i.axis_y_default),r.setAxis("y",s.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(s.y2=n.getYScale("y2",v.y,y.y,s.y2?s.y2.domain():i.axis_y2_default),s.subY2=n.getYScale("y2",v.subY,y.subY,s.subY2?s.subY2.domain():i.axis_y2_default),r.setAxis("y2",s.y2,i.axis_y2_tick_outer,t))}else null==n.updateArc||n.updateArc()},xx:function(t){var e=this.config,n=this.scale,r=n.x,i=n.zoom,a=e.zoom_enabled&&i?i:r;return t?a(Pa(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,r=e.config,i=e.scale,a=i.x,o=i.zoom,s=r.zoom_enabled&&o?o:a,u=e.getBaseValue(t);return n.isTimeSeries()?u=mo.call(e,u):n.isCategorized()&&Na(u)&&(u=r.axis_x_categories.indexOf(u)),Math.ceil(s(u))},yv:function(t){var e=this.scale,n=e.y,r=e.y2,i=t.axis&&"y2"===t.axis?r:n;return Math.ceil(i(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function Wc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function qc(t){this._context=t}function Zc(t){return new qc(t)}function Kc(){}function Jc(t){this._context=t}function Qc(t){return new Jc(t)}function tl(t){this._context=t}function el(t){return new tl(t)}function nl(t,e){this._basis=new qc(t),this._beta=e}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jc.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Wc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var rl=function t(e){function n(t){return 1===e?new qc(t):new nl(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function il(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function al(t,e){this._context=t,this._k=(1-e)/6}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:il(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ol=function t(e){function n(t){return new al(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sl(t,e){this._context=t,this._k=(1-e)/6}sl.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ul=function t(e){function n(t){return new sl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cl(t,e){this._context=t,this._k=(1-e)/6}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:il(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ll=function t(e){function n(t){return new cl(t,e)}return n.tension=function(e){return t(+e)},n}(0),fl=Math.abs,hl=Math.atan2,dl=Math.cos,gl=Math.max,pl=Math.min,vl=Math.sin,yl=Math.sqrt,xl=1e-12,_l=Math.PI,ml=_l/2,bl=2*_l;function wl(t){return t>1?0:t<-1?_l:Math.acos(t)}function Tl(t){return t>=1?ml:t<=-1?-ml:Math.asin(t)}function Al(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>xl){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>xl){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function El(t,e){this._context=t,this._alpha=e}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Sl=function t(e){function n(t){return e?new El(t,e):new al(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function kl(t,e){this._context=t,this._alpha=e}kl.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ml=function t(e){function n(t){return e?new kl(t,e):new sl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ol(t,e){this._context=t,this._alpha=e}Ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Al(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rl=function t(e){function n(t){return e?new Ol(t,e):new cl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Cl(t){return t<0?-1:1}function Il(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return(Cl(a)+Cl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function Ll(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Pl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Dl(t){this._context=t}function Nl(t){this._context=new zl(t)}function zl(t){this._context=t}function Fl(t){return new Dl(t)}function jl(t){return new Nl(t)}function Bl(t){this._context=t}function Xl(t){var e,n,r=t.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function $l(t){return new Bl(t)}function Ul(t){this._context=t}function Yl(t){return new Ul(t)}function Vl(t){this._context=t}function Gl(t){return new Vl(t)}function Hl(t,e){this._context=t,this._t=e}function Wl(t){return new Hl(t,.5)}function ql(t){return new Hl(t,0)}function Zl(t){return new Hl(t,1)}Dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pl(this,this._t0,Ll(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Pl(this,Ll(this,n=Il(this,t,e)),n);break;default:Pl(this,this._t0,n=Il(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Nl.prototype=Object.create(Dl.prototype)).point=function(t,e){Dl.prototype.point.call(this,e,t)},zl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},Bl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Xl(t),i=Xl(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Ul.prototype={areaStart:Kc,areaEnd:Kc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Hl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Kl={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,r={type:{},indices:{},pos:{}};if(["bar","candlestick","line","area"].forEach((function(e){var n=uo(/^(bubble|scatter)$/.test(e)?"line":e);if(t.hasType(e)||t.hasTypeOf(n)||"line"===e&&(t.hasType("bubble")||t.hasType("scatter"))){var i=t.getShapeIndices(t["is"+n+"Type"]),a=t["generateDraw"+n];r.indices[e]=i,r.type[e]=a?a.bind(t)(i,!1):void 0}})),!t.hasArcType()||n){var i=n?t.radarCircleX:e?t.circleY:t.circleX,a=n?t.radarCircleY:e?t.circleX:t.circleY;r.pos={xForText:t.generateXYForText(r.indices,!0),yForText:t.generateXYForText(r.indices,!1),cx:(i||function(){}).bind(t),cy:(a||function(){}).bind(t)}}return r},getShapeIndices:function(t){var e=this,n=e.config,r=n.data_xs,i=Ga(r),a={},o=i?{}:0;return i&&fo(Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){o[t]=0,a[t]={}})),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach((function(t){for(var e,i=(t.id in r?r[t.id]:""),s=i?a[i]:a,u=0;e=n.data_groups[u];u++)if(!(e.indexOf(t.id)<0))for(var c,l=0;c=e[l];l++)if(c in s){s[t.id]=s[c];break}Fa(s[t.id])&&(s[t.id]=i?o[i]++:o++,s.__max__=(i?o[i]:o)-1)})),a},getIndices:function(t,e){var n=this,r=n.config,i=r.data_xs,a=r.bar_indices_removeNull,o=e.id,s=e.index;if(n.isBarType(o)&&a){var u={};return n.getAllValuesOnIndex(s,!0).forEach((function(t,e){u[t.id]=e,u.__max__=e})),u}return Ga(i)?t[i[o]]:t},getIndicesMax:function(t){return Ga(this.config.data_xs)?Object.keys(t).map((function(e){return t[e].__max__||0})).reduce((function(t,e){return t+e})):t.__max__},getShapeX:function(t,e,n){var r=this,i=r.config,a=r.scale,o=n?a.subX:a.zoom||a.x,s=i.bar_padding,u=function(t,e){return t+e},c=Ya(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return function(n){var i=r.getIndices(e,n,"getShapeX"),a=n.id in i?i[n.id]:0,l=(i.__max__||0)+1,f=0;if(Ga(n.x)){var h=o(n.x,!0);f=c?h-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(u)-c:h-(za(t)?t:t._$width)*(l/2-a)}return t&&f&&l>1&&s&&(a&&(f+=s*a),l>2?f-=(l-1)*s/2:2===l&&(f-=s/2)),f}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(r){var i=r.value;return za(r)?i=r:n?i=e.getRatio("index",r,!0):e.isBubbleZType(r)?i=e.getBubbleZData(r.value,"y"):e.isBarRangeType(r)&&(i=i[1]),e.getYScaleById(r.id,t)(i)}},getShapeYMin:function(t){var e=this,n=e.axis.getId(t),r=e.scale[n].domain()[0],i=e.config["axis_"+n+"_inverted"];return!e.isGrouped(t)&&!i&&r>0?r:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),r=e.isStackNormalized(),i=n.map((function(t){var n=t.values,i={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce((function(t,n){var a=+n.x;return t[a]=n,i[a]=r?e.getRatio("index",n,!0):n.value,t}),{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:i}}));return{indexMapByTargetId:n.reduce((function(t,e,n){return t[e.id]=n,t}),{}),shapeOffsetTargets:i}},getShapeOffset:function(t,e,n){var r=this,i=r.getShapeOffsetData(t),a=i.shapeOffsetTargets,o=i.indexMapByTargetId;return function(t,i){var s=t.id,u=t.value,c=t.x,l=r.getIndices(e,t),f=r.getYScaleById(s,n);if(r.isBarRangeType(t))return f(u[0]);var h=f(r.getShapeYMin(s)),d=+c,g=h;return a.filter((function(t){return t.id!==s})).forEach((function(t){var e=t.id,n=t.rowValueMapByXValue,r=t.rowValues,a=t.values;if(l[e]===l[s]&&o[e]<o[s]){var c,p=r[i];p&&+p.x===d||(p=n[d]),(null==(c=p)?void 0:c.value)*u>=0&&za(a[d])&&(g+=f(a[d])-h)}})),g}},getBarW:function(t,e,n){var r=this,i=r.config,a=r.org,o=r.scale,s=r.getMaxDataCount(),u="bar"===t&&i.data_groups.length,c=t+"_width",l=o.zoom&&!r.axis.isCategorized()?a.xDomain.map((function(t){return o.zoom(t)})).reduce((function(t,e){return Math.abs(t)+e}))/s:e.tickInterval(s),f=function(t){var e=t?i[c][t]:i[c],r=t?e.ratio:i[c+"_ratio"],a=t?e.max:i[c+"_max"],o=za(e)?e:n?l*r/n:0;return a&&o>a?a:o},h=f();return!u&&Ya(i[c])&&(h={_$width:h,_$total:[]},r.filterTargetsToShow(r.data.targets).forEach((function(t){i[c][t.id]&&(h[t.id]=f(t.id),h._$total.push(h[t.id]||h._$width))}))),h},getShapeByIndex:function(t,e,n){var r=this.$el,i=Pa(e)?"-"+e:"",a=r[t];return a=a&&!a.empty()?a.filter((function(t){return!n||t.id===n})).filter((function(t){return!Pa(e)||t.index===e})):(n?r.main.selectAll("."+Zo[t+"s"]+this.getTargetSelectorSuffix(n)):r.main).selectAll("."+Zo[t]+i)},isWithinShape:function(t,e){var n,r=this,i=In(t);return r.isTargetToShow(e.id)?null!=r.hasValidPointType&&r.hasValidPointType(t.nodeName)?n=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(n=!i.classed(Zo.bar)||r.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:Zc,"basis-closed":Qc,"basis-open":el,bundle:rl,cardinal:ol,"cardinal-closed":ul,"cardinal-open":ll,"catmull-rom":Sl,"catmull-rom-closed":Ml,"catmull-rom-open":Rl,"monotone-x":Fl,"monotone-y":jl,natural:$l,"linear-closed":Yl,linear:Gl,step:Wl,"step-after":Zl,"step-before":ql}[e]},getInterpolateType:function(t){var e=this,n=e.config,r=n.spline_interpolation_type,i=e.isInterpolationType(r)?r:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar:function(t){var e=eo(this.state.event,t),n=to(t),r=n[0],i=n[1],a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}},Jl={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,r=t.$el,i=n?e.axis_y2_axes.length:0,a=Pa(e.padding_top)?e.padding_top:0;return r.title&&r.title.node()&&(a+=t.getTitlePadding()),i&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*i),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,r=e.axis_rotated?"y":"x",i=n?e["axis_"+r+"_axes"].length:0;return(Pa(e.padding_bottom)?e.padding_bottom:0)+(i?t.getHorizontalAxisHeight(r)*i:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=n.axis_rotated,a=i?"x":"y",o=r?n["axis_"+a+"_axes"].length:0,s=r?e.getAxisWidthByAxisId(a,t):0;return(Pa(n.padding_left)?n.padding_left:r&&i?n.axis_x_show?Math.max(Xa(s),40):1:!r||n.axis_y_show&&!n.axis_y_inner?Xa(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state.hasAxis,i=e.state.isLegendRight?e.getLegendWidth()+20:0,a=r?n.axis_y2_axes.length:0,o=r?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Pa(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+i:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(Xa(o)+i,s):Math.max(2+i+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e="offset"+uo(t),n=this.$el.chart.node(),r=0;r<30&&n&&"BODY"!==n.tagName;){try{r=n.getBoundingClientRect()[t]}catch(t){e in n&&(r=n[e])}n=n.parentNode}var i=Pn.body[e];return r>i&&(r=i),r},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,r=e.$el,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?Mo.axisX:Mo.axisY,o=r.main.select("."+a).node(),s=o&&i?o.getBoundingClientRect():{right:0},u=r.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e,n=this,r=n.config,i=n.state.hasAxis,a=n.$el;i&&!t&&n.axis.x&&r.axis_rotated&&(null==(e=n.axis.subX)||e.create(a.axis.subX));n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,r=e.current,i=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",r.width).attr("height",r.height),i){var u=s.select("."+Go.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},getResettedPadding:function(t){var e=this.config,n=za(t),r=n?0:{};return!1===e.padding?n||Object.keys(t).forEach((function(n){r[n]=Va(e.data_labels)||!1===e.data_labels||"top"!==n?0:t[n]})):r=t,r},updateSizes:function(t){var e=this,n=e.config,r=e.state,i=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:i?e.getLegendWidth():0,height:i?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=r.isLegendRight||r.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,f=n.subchart_show&&!o?n.subchart_size_height+l:0;r.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:f+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+f+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},r.margin=e.getResettedPadding(r.margin),r.margin2=a?{top:r.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:r.current.height-f-u,right:NaN,bottom:l+u,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},null==e.updateSizeForLegend||e.updateSizeForLegend(s),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=a?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=a?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0);var h=e.hasType("gauge"),d=n.legend_show&&r.isLegendRight;r.arcWidth=r.width-(d?s.width+10:0),r.arcHeight=r.height-(d&&!h?0:10),h&&!n.gauge_fullCircle&&(r.arcHeight+=r.height-e.getPaddingBottomForGauge()),null==e.updateRadius||e.updateRadius(),r.isLegendRight&&o&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}};function Ql(t){return"string"==typeof t?new On([document.querySelectorAll(t)],[document.documentElement]):new On([he(t)],Mn)}var tf={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){this.$el.main.select("."+Eo.chart).append("g").attr("class",Ho.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),r=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select("."+Ho.chartTexts).selectAll("."+Ho.chartText).data(t).attr("class",(function(t){return n(t)+i(t)})).enter().append("g").style("opacity","0").attr("class",n).style("pointer-events","none").append("g").attr("class",r)},updateText:function(){var t=this,e=t.$el,n=t.$T,r=t.config,i=t.getClass("text","index"),a=e.main.selectAll("."+Ho.texts).selectAll("."+Ho.text).data(t.labelishData.bind(t));n(a.exit()).style("fill-opacity","0").remove(),e.text=a.enter().append("text").merge(a).attr("class",i).attr("text-anchor",(function(e){var n=e.value<0;if(t.isCandlestickType(e)){var i=t.getCandlestickData(e);n=!(null!=i&&i._isUp)}return r.axis_rotated?n?"end":"start":"middle"})).style("fill",t.updateTextColor.bind(t)).style("fill-opacity","0").each((function(e,n,r){var i=In(this),a=e.value;if(t.isBubbleZType(e))a=t.getBubbleZData(a,"z");else if(t.isCandlestickType(e)){var o=t.getCandlestickData(e);o&&(a=o.close)}a=t.dataLabelFormat(e.id)(a,e.id,n,r),za(a)?this.textContent=a:Qa(i,a)}))},updateTextColor:function(t){var e,n=this,r=n.config,i=r.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(Na(i))e=i;else if(Wa(i)){e=i[(t.data||t).id]}else Da(i)&&(e=i.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!Da(i)){var o=n.getCandlestickData(t);if(null==o||!o._isUp){var s=r.candlestick_color_down;e=Wa(s)?s[t.id]:s}}return e||a},updateTextBacgroundColor:function(t){var e=this,n=e.$el,r=e.config.data_labels_backgroundColors,i="";if(Na(r)||Wa(r)){var a=Na(r)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=n.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(i="url(#"+o.attr("id")+")")}return i||null},redrawText:function(t,e,n,r){var i=this,a=i.$T,o=io(!0);return i.$el.text.style("fill",i.updateTextColor.bind(i)).attr("filter",i.updateTextBacgroundColor.bind(i)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each((function(n,i){var s=a(this,!(!r||!this.getAttribute("x")),o),u=t.bind(this)(n,i),c=e.bind(this)(n,i);this.childElementCount?s.attr("transform","translate("+u+" "+c+")"):s.attr("x",u).attr("y",c)})),!0},getTextRect:function(t,e){var n=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var i=r.textContent,a=xs+"-"+i.replace(/\W/g,"_"),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",In(r).style("font")).classed(e,!0).text(i).call((function(t){o=ro(t.node())})).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,r=Object.keys(t),i={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&r.push("radar"),r.forEach((function(e){i[e]=n["generateGet"+uo(e)+"Points"](t[e],!1)})),function(t,e){var r=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isCandlestickType(t)&&"candlestick"||n.isRadarType(t)&&"radar"||"line";return a.call(n,i[r](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var r=this.config,i=r.axis_rotated;if(r.data_labels.centered&&this.isBarType(t)){var a=ro(n),o=t.value>=0;if(i){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=t[0][0];if(i.isCandlestickType(e))s?u=null!=(r=i.getCandlestickData(e))&&r._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(s){var c=i.isBarType(e)?4:6;u=t[2][1]+c*(e.value<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;if(null===e.value)if(u>o.width){var l=ro(n).width;u=o.width-l}else u<0&&(u=4);return s&&(u+=i.getCenteredTextPos(e,t,n)),u+i.getTextPos(e.id,"x")},getYForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=a.point_r,c=ro(n),l=e.value,f=3;if(i.isCandlestickType(e))l=i.getCandlestickData(e),s?(r=t[0][0],r+=(t[1][0]-r)/2+f):r=l&&l._isUp?t[2][2]-f:t[2][1]+4*f;else if(s)r=(t[0][0]+t[2][0]+.6*c.height)/2;else if(r=t[2][1],za(u)&&u>5&&(i.isLineType(e)||i.isScatterType(e))&&(f+=a.point_r/2.3),l<0||0===l&&!o.hasPositiveValue&&o.hasNegativeValue)r+=c.height+(i.isBarType(e)?-f:f);else{var h=2*-f;i.isBarType(e)?h=-f:i.isBubbleType(e)&&(h=f),r+=h}if(null===e.value&&!s){var d=c.height;r<d?r=d:r>o.height&&(r=o.height-4)}return s||(r+=i.getCenteredTextPos(e,t,n)),r+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var r=e.$el.arcs.selectAll(n),i=r.filter((function(e){return e.data.id!==t})),a=r.filter((function(e){return e.data.id===t})),o=lo(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&i.each((function(){var t=lo(this),e=In(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,r=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),i=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(Ho.TextOverlapping,r&&i)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){Ql([this,this.previousSibling]).classed(Ho.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function ef(t,e){void 0===t&&(t="left");var n=za(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var nf={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),Qa(e.title.append("text").style("text-anchor",ef(t.title_position)).attr("class",Ho.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,r=t.$el.title;if(r){var i=t.yForTitle.call(t);/g/i.test(r.node().tagName)?r.attr("transform","translate("+ef(e.title_position,n.width)+", "+i+")"):r.attr("x",t.xForTitle.call(t)).attr("y",i)}},xForTitle:function(){var t,e=this,n=e.config,r=e.state.current,i=n.title_position||"left",a=e.getTextRect(e.$el.title,Ho.title).width;return/(right|center)/.test(i)?(t=r.width-a,i.indexOf("right")>=0?t=r.width-a-n.title_padding.right:i.indexOf("center")>=0&&(t=(r.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,Ho.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},rf={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=In(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",Wo.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=t.config,n=t.$el,r=t.state,i=r.hasAxis,a=r.hasRadar;if(e.tooltip_init_show){var o,s,u=!(i&&a);if(null!=(o=t.axis)&&o.isTimeSeries()&&Na(e.tooltip_init_x)){var c,l,f=t.data.targets[0];for(e.tooltip_init_x=mo.call(t,e.tooltip_init_x),c=0;(l=f.values[c])&&l.x-e.tooltip_init_x!=0;c++);e.tooltip_init_x=c}var h=t.data.targets.map((function(n){var r=u?0:e.tooltip_init_x;return t.addName(n.values[r])}));u&&(h=[h[e.tooltip_init_x]]),n.tooltip.html(t.getTooltipHTML(h,null==(s=t.axis)?void 0:s.getXAxisTickFormat(),t.getDefaultValueFormat(),t.color)),e.tooltip_contents.bindto||n.tooltip.style("top",e.tooltip_init_position.top).style("left",e.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return Da(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,r){var i=this,a=i.api,o=i.config,s=i.state,u=["title","name","value"].map((function(t){var e=o["tooltip_format_"+t];return Da(e)?e.bind(a):e})),c=u[0],l=u[1],f=u[2];c=c||e,l=l||function(t){return t},f=f||(i.isStackNormalized()?function(t,e){return(100*e).toFixed(2)+"%"}:n);var h=o.tooltip_order,d=function(t){return i.axis&&i.isBubbleZType(t)?i.getBubbleZData(t.value,"z"):i.getBaseValue(t)},g=i.levelColor?function(t){return i.levelColor(t.value)}:function(t){return r(t)},p=o.tooltip_contents,v=p.template,y=i.mapToTargetIds();if(null===h&&o.data_groups.length){var x=i.orderTargets(i.data.targets).map((function(t){return t.id})).reverse();t.sort((function(t,e){var n=t?t.value:null,r=e?e.value:null;return n>0&&r>0&&(n=t.id?x.indexOf(t.id):null,r=e.id?x.indexOf(e.id):null),n-r}))}else/^(asc|desc)$/.test(h)?t.sort((function(t,e){var n=t?d(t):null,r=e?d(e):null;return"asc"===h?n-r:r-n})):Da(h)&&t.sort(h.bind(a));var _,m,b,w,T,A=i.getTooltipContentTemplate(v),E=t.length;for(T=0;T<E;T++)if((m=t[T])&&(d(m)||0===d(m))){if(Fa(_)){var S=(s.hasAxis||s.hasRadar)&&Ja(c?c(m.x):m.x);_=_o(A[0],{CLASS_TOOLTIP:Wo.tooltip,TITLE:Pa(S)?v?S:'<tr><th colspan="2">'+S+"</th></tr>":""})}if(!m.ratio&&i.$el.arcs&&(m.ratio=i.getRatio("arc",i.$el.arcs.select("path."+So.arc+"-"+m.id).data()[0])),b=[m.ratio,m.id,m.index,t],w=Ja(f.apply(void 0,[d(m)].concat(b))),i.isAreaRangeType(m)){var k=["high","low"].map((function(t){return Ja(f.apply(void 0,[i.getRangedData(m,t)].concat(b)))})),M=k[0],O=k[1];w="<b>Mid:</b> "+w+" <b>High:</b> "+M+" <b>Low:</b> "+O}else if(i.isCandlestickType(m)){var R=["open","high","low","close","volume"].map((function(t){return Ja(f.apply(void 0,[i.getRangedData(m,t,"candlestick")].concat(b)))})),C=R[0],I=R[1],L=R[2],P=R[3],D=R[4];w="<b>Open:</b> "+C+" <b>High:</b> "+I+" <b>Low:</b> "+L+" <b>Close:</b> "+P+(D?" <b>Volume:</b> "+D:"")}else if(i.isBarRangeType(m)){var N=m.value,z=N[0],F=N[1];w=f(z)+" ~ "+f(F)}if(void 0!==w){var j=function(){if(null===m.name)return"continue";var t=Ja(l.apply(void 0,[m.name].concat(b))),e=g(m),n={CLASS_TOOLTIP_NAME:Wo.tooltipName+i.getTargetSelectorSuffix(m.id),COLOR:v||!i.patterns?e:'<svg><rect style="fill:'+e+'" width="10" height="10"></rect></svg>',NAME:t,VALUE:w};if(v&&Wa(p.text)){var r=y.indexOf(m.id);Object.keys(p.text).forEach((function(t){n[t]=p.text[t][r]}))}_+=_o(A[1],n)}();if("continue"===j)continue}}return _+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,r){var i=this,a=i.config,o=i.scale,s=i.state,u=s.width,c=s.height,l=s.current,f=s.isLegendRight,h=s.inputType,d=s.event,g=i.hasType("gauge")&&!a.gauge_fullCircle,p=i.getSvgLeft(!0),v=p+l.width-i.getCurrentPaddingRight(),y=i.getCurrentPaddingLeft(!0),x=eo(d,r),_=x[0],m=x[1];if(i.hasArcType()){"touch"===h||i.hasType("radar")||(m+=g?c:c/2,_+=(u-(f?i.getLegendWidth():0))/2)}else{var b=o.x(t[0].x);a.axis_rotated?(m=b+20,_+=p+100,v-=p):(m-=5,_=p+y+20+(i.scale.zoom?_:b))}_+e+15>v&&(_-=e+y),m+n>l.height&&(m-=g?3*n:n+30);var w={top:m,left:_};return Object.keys(w).forEach((function(t){w[t]<0&&(w[t]=0)})),w},showTooltip:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=n.$el.tooltip,s=r.tooltip_contents.bindto,u=t.filter((function(t){return t&&Pa(n.getBaseValue(t))}));if(o&&0!==u.length&&r.tooltip_show){var c=o.datum(),l=c||{},f=l.width,h=void 0===f?0:f,d=l.height,g=void 0===d?0:d,p=JSON.stringify(t);if(!c||c.current!==p){var v=t.concat().sort()[0].index;Za(r.tooltip_onshow,n.api,t),o.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(c={index:v,current:p,width:h=o.property("offsetWidth"),height:g=o.property("offsetHeight")}),Za(r.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,v)}if(!s){var y,x,_=(null==(y=r.tooltip_position)?void 0:y.bind(n.api))||n.tooltipPosition.bind(n),m=eo(a.event,e),b={x:m[0],y:m[1]},w=null==(x=t.filter(Boolean))?void 0:x.shift();i.x&&w&&"x"in w&&(b.xAxis=i.x(w.x));var T=_(u,h,g,e,b);["top","left"].forEach((function(t){var e=T[t];o.style(t,e+"px"),"left"!==t||c.xPosInPercent||(c.xPosInPercent=e/a.current.width*100)}))}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,r=t.$el.tooltip;e.add((function(){if("block"===r.style("display")){var t=n.current,e=r.datum(),i=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+i);s<0&&(o+=s),r.style("left",o+"px")}}))},hideTooltip:function(t){var e=this,n=e.api,r=e.config,i=e.$el.tooltip;if(i&&"none"!==i.style("display")&&(!r.tooltip_doNotHide||t)){var a=JSON.parse(i.datum().current);Za(r.tooltip_onhide,n,a),i.style("display","none").style("visibility","hidden").datum(null),Za(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n,r=this,i=r.charts,a=r.config;if(null!=(n=r.state.event)&&n.isTrusted&&a.tooltip_linked&&i.length>1){var o=a.tooltip_linked_name;i.filter((function(t){return t!==r.api})).forEach((function(n){var r=n.internal,i=r.config,a=r.$el,s=i.tooltip_linked,u=i.tooltip_linked_name,c=Pn.body.contains(a.chart.node());if(s&&o===u&&c){var l=a.tooltip.data()[0],f=e!==(null==l?void 0:l.index);try{n.tooltip[t&&f?"show":"hide"]({index:e})}catch(t){}}}))}}},af={getTranslate:function(t,e){void 0===e&&(e=0);var n,r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=i.getAxisSize(t)*e),"main"===t)n=$a(o.margin.left),r=$a(o.margin.top);else if("context"===t)n=$a(o.margin2.left),r=$a(o.margin2.top);else if("legend"===t)n=o.margin3.left,r=o.margin3.top;else if("x"===t)n=s?-u:0,r=s?0:o.height+u;else if("y"===t)n=s?0:-u,r=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,r=s?1-u:0;else if("subX"===t)n=0,r=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("polar"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("radar"===t){var c=i.getRadarSize()[0];n=o.width/2-c,r=$a(o.margin.top)}return"translate("+n+", "+r+")"},transformMain:function(t,e){var n=this,r=n.$el.main,i=n.$T,a=null!=e&&e.axisX?e.axisX:i(r.select("."+Mo.axisX),t),o=null!=e&&e.axisY?e.axisY:i(r.select("."+Mo.axisY),t),s=null!=e&&e.axisY2?e.axisY2:i(r.select("."+Mo.axisY2),t);i(r,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),r.select("."+So.chartArcs).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,r=n.config,i=n.state.hasAxis,a=n.$el;n.transformMain(t,e),i&&r.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},of={setTargetType:function(t,e){var n=this,r=n.config,i=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach((function(t){i[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys(Dn).forEach((function(n){var r=Dn[n],i=t.hasType(r,null,!0),a=e.types.indexOf(r);-1===a&&i?e.types.push(r):a>-1&&!i&&e.types.splice(a,1)})),t.setChartElements()},hasType:function(t,e,n){var r,i;void 0===n&&(n=!1);var a=this,o=a.config,s=a.state.current,u=o.data_types,c=e||a.data.targets,l=!1;return!n&&(null==(r=s.types)?void 0:r.indexOf(t))>-1?l=!0:null!=(i=c)&&i.length?c.forEach((function(e){var n=u[e.id];(n===t||!n&&"line"===t)&&(l=!0)})):Object.keys(u).length?Object.keys(u).forEach((function(e){u[e]===t&&(l=!0)})):l=o.data_type===t,l},hasTypeOf:function(t,e,n){var r=this;return void 0===n&&(n=[]),t in zn&&!zn[t].filter((function(t){return-1===n.indexOf(t)})).every((function(t){return!r.hasType(t,e)}))},isTypeOf:function(t,e){var n=Na(t)?t:t.id,r=this.config.data_types[n]||this.config.data_type;return Ha(e)?e.indexOf(r)>=0:r===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=Na(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,zn.Line)},isStepType:function(t){return this.isTypeOf(t,zn.Step)},isSplineType:function(t){return this.isTypeOf(t,zn.Spline)},isAreaType:function(t){return this.isTypeOf(t,zn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,zn.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isPolarType:function(t){return this.isTypeOf(t,"polar")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return"circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||Ha(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)?t.values.filter((function(t){return za(t.value)||!!t.value})):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},sf=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new us,e.cache=new _s;var n=new Jo;e.$el=n.getStore("element"),e.state=n.getStore("state"),e.$T=e.$T.bind(e)}var e=t.prototype;return e.$T=function(t,e,n){var r=this.config,i=this.state,a=r.transition_duration,o=r.subchart_show,s=t;s&&("tagName"in s&&(s=In(s)),s=(!1!==e&&a||e)&&(!i.zooming||i.dragging)&&!i.resizing&&i.rendered&&!o?s.transition(n).duration(a):s);return s},e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Za(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Za(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,r=t.$el;wo(t),n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),!1===e.padding&&(e.axis_x_show=!1,e.axis_y_show=!1,e.axis_y2_show=!1,e.subchart_show=!1),t.initParams();var i={element:e.bindto,classname:"bb"};Wa(e.bindto)&&(i.element=e.bindto.element||"#chart",i.classname=e.bindto.classname||i.classname),r.chart=Da(i.element.node)?e.bindto.element:In(i.element||[]),r.chart.empty()&&(r.chart=In(Pn.body.appendChild(Pn.createElement("div")))),r.chart.html("").classed(i.classname,!0).style("position","relative"),t.initToRender()},e.initToRender=function(t){var e=this,n=e.config,r=e.state,i=e.$el.chart,a=function(){return"none"===i.style("display")||"hidden"===i.style("visibility")},o=n.render.lazy||a(),s=Ln.MutationObserver;if(o&&s&&!1!==n.render.observe&&!t&&new s((function(t,n){a()||(n.disconnect(),r.rendered||e.initToRender(!0))})).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),!o||t){var u=e.convertData(n,e.initWithData);u&&e.initWithData(u),e.afterInit()}},e.initParams=function(){var t=this,e=t.config,n=t.format,r=t.state,i=e.axis_rotated;if(r.datetimeId="bb-"+ +new Date*io(),t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.hasPointType()&&(t.point=t.generatePoint()),r.hasAxis){t.initClip(),n.extraLineClasses=t.generateExtraLineClass(),n.dataTime=e.data_xLocaltime?Y:G,n.axisTime=e.axis_x_localtime?U:V;var a=t.config.zoom_enabled&&"drag"===t.config.zoom_type;n.defaultAxisTime=function(e){var r=t.scale,i=r.x,o=r.zoom,s=a?o:o&&i.orgDomain().toString()!==o.domain().toString(),u=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return n.axisTime(u)(e)}}r.isLegendRight="right"===e.legend_position,r.isLegendInset="inset"===e.legend_position,r.isLegendTop="top-left"===e.legend_inset_anchor||"top-right"===e.legend_inset_anchor,r.isLegendLeft="top-left"===e.legend_inset_anchor||"bottom-left"===e.legend_inset_anchor,r.rotatedPadding.top=t.getResettedPadding(r.rotatedPadding.top),r.rotatedPadding.right=i&&!e.axis_x_show?0:30,r.inputType=function(t,e){var n=Ln.DocumentTouch,r=Ln.matchMedia,i=Ln.navigator,a=!1;if(e)if(i&&"maxTouchPoints"in i)a=i.maxTouchPoints>0;else if("ontouchmove"in Ln||n&&Pn instanceof n)a=!0;else if(null!=r&&r("(pointer:coarse)").matches)a=!0;else{var o=i.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(o)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(o)}return(t&&["any-hover:hover","any-pointer:fine"].some((function(t){return null==r?void 0:r("("+t+")").matches}))?"mouse":a&&"touch")||null}(e.interaction_inputType_mouse,e.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=e.org,s=i.hasAxis,u=n.interaction_enabled,c=e.hasType("polar");s&&(e.axis=e.getAxisInstance(),n.zoom_enabled&&e.initZoom()),e.data.xs={},e.data.targets=e.convertDataToTargets(t),n.data_filter&&(e.data.targets=e.data.targets.filter(n.data_filter.bind(e.api))),n.data_hide&&e.addHiddenTargetIds(!0===n.data_hide?e.mapToIds(e.data.targets):n.data_hide),n.legend_hide&&e.addHiddenLegendIds(!0===n.legend_hide?e.mapToIds(e.data.targets):n.legend_hide),e.updateSizes(),e.updateScales(!0);var l=r.x,f=r.y,h=r.y2,d=r.subX,g=r.subY,p=r.subY2;if(l&&(l.domain(po(e.getXDomain(e.data.targets))),d.domain(l.domain()),o.xDomain=l.domain()),f&&(f.domain(e.getYDomain(e.data.targets,"y")),g.domain(f.domain())),h&&(h.domain(e.getYDomain(e.data.targets,"y2")),p&&p.domain(h.domain())),a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),u&&i.inputType){var v,y,x,_="touch"===i.inputType,m=n,b=m.onclick,w=m.onover,T=m.onout;a.svg.on("click",(null==(v=b)?void 0:v.bind(e.api))||null).on(_?"touchstart":"mouseenter",(null==(y=w)?void 0:y.bind(e.api))||null).on(_?"touchend":"mouseleave",(null==(x=T)?void 0:x.bind(e.api))||null)}n.svg_classname&&a.svg.attr("class",n.svg_classname);var A=Da(n.color_tiles)&&e.patterns;(s||A||n.data_labels_backgroundColors||c)&&(a.defs=a.svg.append("defs"),s&&["id","idXAxis","idYAxis","idGrid"].forEach((function(t){e.appendClip(a.defs,i.clip[t])})),e.generateDataLabelBackgroundColorFilter(),A&&e.patterns.forEach((function(t){return a.defs.append((function(){return t.node}))}))),e.updateSvgSize(),e.bindResize();var E,S=a.svg.append("g").classed(Eo.main,!0).attr("transform",e.getTranslate("main"));(a.main=S,n.subchart_show&&e.initSubchart(),n.tooltip_show&&e.initTooltip(),n.title_text&&e.initTitle(),n.legend_show&&e.initLegend(),n.data_empty_label_text&&S.append("text").attr("class",Ho.text+" "+Eo.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),s&&(n.regions.length&&e.initRegion(),n.clipPath||e.axis.init()),S.append("g").attr("class",Eo.chart).attr("clip-path",i.clip.path),e.callPluginHook("$init"),s)&&(u&&(null==e.initEventRect||e.initEventRect()),e.initGrid(),n.clipPath&&(null==(E=e.axis)||E.init()));if(e.initChartElements(),e.updateTargets(e.data.targets),e.updateDimension(),Za(n.oninit,e.api),e.setBackground(),e.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),n.data_onmin||n.data_onmax){var k=e.getMinMaxData();Za(n.data_onmin,e.api,k.min),Za(n.data_onmax,e.api,k.max)}n.tooltip_show&&e.initShowTooltip(),i.rendered=!0},e.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,r=e.hasRadar,i=[];if(n)["bar","bubble","candlestick","line"].forEach((function(e){var n=uo(e);("line"===e&&t.hasTypeOf(n)||t.hasType(e))&&i.push(n)}));else{var a=t.hasType("polar");r||i.push("Arc","Pie"),t.hasType("gauge")?i.push("Gauge"):r?i.push("Radar"):a&&i.push("Polar")}i.forEach((function(e){t["init"+e]()})),Ga(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,r=t.defs,i=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,f=t.bar,h=t.candlestick,d=t.line,g=t.area,p=t.text;this.api.$={chart:e,svg:n,defs:r,main:i,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:f},candlestick:h,line:{lines:d,areas:g},text:{texts:p}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,r=t.$el.svg;if(Ga(e)){var i=r.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?i.attr("href",e.imgUrl):e.color&&i.style("fill",e.color).attr("clip-path",n.clip.path),i.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=e.state,r=n.hasAxis,i=n.hasRadar,a=function(n){return e["updateTargetsFor"+n](t.filter(e["is"+n+"Type"].bind(e)))};if(e.updateTargetsForText(t),r)["bar","candlestick","line"].forEach((function(t){var n=uo(t);("line"===t&&e.hasTypeOf(n)||e.hasType(t))&&a(n)})),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t);else if(e.hasArcType(t)){var o="Arc";i?o="Radar":e.hasType("polar")&&(o="Polar"),a(o)}(e.hasType("bubble")||e.hasType("scatter"))&&(null==e.updateTargetForCircle||e.updateTargetForCircle()),e.showTargets()},e.showTargets=function(){var t=this,e=t.$el.svg;(0,t.$T)(e.selectAll("."+Eo.target).filter((function(e){return t.isTargetToShow(e.id)}))).style("opacity",null)},e.getWithOption=function(t){var e={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(e).forEach((function(n){var r=e[n];Na(r)&&(r=e[r]),e[n]=qa(t,"with"+n,r)})),e},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},e.bindResize=function(){var t=this,e=t.config,n=t.state,r=function(){var t,e=[],n=function(){n.clear(),t=ms((function(){e.forEach((function(t){return t()}))}),200)};return n.clear=function(){t&&(bs(t),t=null)},n.add=function(t){return e.push(t)},n.remove=function(t){return e.splice(e.indexOf(t),1)},n}(),i=[];i.push((function(){return Za(e.onresize,t,t.api)})),e.resize_auto&&i.push((function(){n.resizing=!0,t.api.flush(!1)})),i.push((function(){Za(e.onresized,t,t.api),n.resizing=!1})),i.forEach((function(t){return r.add(t)})),t.resizeFunction=r,Ln.addEventListener("resize",t.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.config.plugins.forEach((function(n){"$beforeInit"===t&&(n.$$=e,e.api.plugins.push(n)),n[t].apply(n,r)}))},t}();function uf(t){var e,n,r,i=this.config,a=function(){var t=n.shift();return t&&e&&Ya(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(i).forEach((function(o){e=t,n=o.split("_"),r=a(),ja(r)&&(i[o]=r)}))}so(sf.prototype,[Ns,zs,Fs,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},Hs,gu,pu,Gs,yu,xu,_u,Hc,Kl,Jl,tf,nf,rf,af,of]);var cf={resize:function(t){var e=this.internal,n=e.config,r=e.state;r.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,r.resizing=!0,this.flush(!1),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state,r=e.$el.zoomResetBtn;if(n.rendered){var i,a,o;if(n.resizing)null==(a=e.brush)||a.updateResize();else null==(o=e.axis)||o.setOrient();null==(i=r)||i.style("display","none"),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())}else e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,r=n.chart,i=n.svg;if(Ga(e))for(var a in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),i.select("*").interrupt(),e.resizeFunction.clear(),Ln.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).style("position",null).selectChildren().remove(),Object.keys(this).forEach((function(n){"internal"===n&&Object.keys(e).forEach((function(t){e[t]=null})),t[n]=null,delete t[n]})),this)this[a]=function(){};return null},config:function(t,e,n){var r,i=this.internal.config,a=null==t?void 0:t.replace(/\./g,"_");return a in i&&(ja(e)?(i[a]=e,r=e,n&&this.flush()):r=i[a]),r}};function lf(t){var e=this.internal.data.targets;if(!Fa(t)){var n=Ha(t)?t:[t];return e.filter((function(t){return n.some((function(e){return e===t.id}))}))}return e}so(lf,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var r=this.data(t);Ha(r)&&(n=[],r.forEach((function(t){var r=t.values.map((function(t){return t.value}));e?n=n.concat(r):n.push(r)})))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});function ff(t,e,n){var r,i,a=e||n,o=a.width,s=a.height,u=new XMLSerializer,c=t.cloneNode(!0),l=(r=co(Pn.styleSheets),i=[],r.forEach((function(t){try{t.cssRules&&t.cssRules.length&&(i=i.concat(co(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}})),i).filter((function(t){return t.cssText})).map((function(t){return t.cssText}));c.setAttribute("xmlns",Ie.xhtml);var f=u.serializeToString(c),h=Pn.createElement("style");h.appendChild(Pn.createTextNode(l.join("\n")));var d=u.serializeToString(h),g=('<svg xmlns="'+Ie.svg+'" width="'+o+'" height="'+s+'" \n\t\tviewBox="0 0 '+n.width+" "+n.height+'" \n\t\tpreserveAspectRatio="'+(!1===(null==e?void 0:e.preserveAspectRatio)?"none":"xMinYMid meet")+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+d+"\n\t\t\t\t"+f.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))}var hf={export:function(t,e){var n=this,r=this.internal,i=r.state,a=r.$el.chart,o=i.current,s=o.width,u=o.height,c=go({width:s,height:u,preserveAspectRatio:!0,mimeType:"image/png"},t),l=ff(a.node(),c,{width:s,height:u});if(e&&Da(e)){var f=new Image;f.crossOrigin="Anonymous",f.onload=function(){var t=Pn.createElement("canvas"),r=t.getContext("2d");t.width=c.width||s,t.height=c.height||u,r.drawImage(f,0,0),e.bind(n)(t.toDataURL(c.mimeType))},f.src=l}return l}},df={focus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(Fo.focused,!0).classed(Fo.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(r),e.hasType("gauge")&&e.markOverlapped(t,e,"."+Po.gaugeValue)),e.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return r.indexOf(t)<0}))},defocus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e))).classed(Fo.focused,!1).classed(Fo.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(r),e.hasType("gauge")&&e.undoMarkOverlapped(e,"."+Po.gaugeValue)),e.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter((function(t){return r.indexOf(t)<0})),n.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,r=e.state,i=e.$el,a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a)).classed(Fo.focused,!1).classed(Fo.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(a)).filter((function(){return In(this).classed(Fo.legendItemFocused)})).classed(Fo.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},gf={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach((function(e){n.data_classes[e]=t.classes[e]})),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach((function(e){n.data_axes[e]=t.axes[e]})),"colors"in t&&Object.keys(t.colors).forEach((function(e){n.data_colors[e]=t.colors[e]})),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),(function(){Ln.requestIdleCallback((function(){return e.loadFromArgs(t)}))})):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,r=t||{};Ha(r)?r={ids:r}:Na(r)&&(r={ids:[r]});var i=n.mapToTargetIds(r.ids);n.unload(i,(function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(i),r.done&&r.done.call(e)}))}};function pf(t,e,n){var r=this,i=this.internal,a=i.mapToTargetIds(e),o=i.state.hiddenTargetIds.map((function(t){return a.indexOf(t)>-1&&t})).filter(Boolean);i.state.toggling=!0,i[(t?"remove":"add")+"HiddenTargetIds"](a);var s=i.$el.svg.selectAll(i.selectorTargets(a)),u=t?null:"0";t&&o.length&&(s.style("display",null),Za(i.config.data_onshown,this,o)),i.$T(s).style("opacity",u,"important").call(Ka,(function(){t||0!==o.length||(s.style("display","none"),Za(i.config.data_onhidden,r,a)),s.style("opacity",u)})),n.withLegend&&i[(t?"show":"hide")+"Legend"](a),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.state.toggling=!1}var vf={show:function(t,e){void 0===e&&(e={}),pf.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),pf.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var r=this.internal,i={show:[],hide:[]};r.mapToTargetIds(t).forEach((function(t){return i[r.isTargetToShow(t)?"hide":"show"].push(t)})),i.show.length&&this.show(i.show,e),i.hide.length&&setTimeout((function(){return n.hide(i.hide,e)}),0)}},yf={show:function(t){var e,n,r=this.internal,i=r.config,a=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=r.getYScaleById(o.id)(o.value);r.isMultipleX()?n=[r.scale.x(o.x),s]:(i.tooltip_grouped||(n=[0,s]),e=Pa(o.index)?o.index:r.getIndexByX(o.x))}else ja(t.x)?e=r.getIndexByX(t.x):ja(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach((function(t){r.dispatchEvent(t,e,n)}))},hide:function(){var t=this.internal,e=t.state.inputType,n=t.$el.tooltip,r=null==n?void 0:n.datum();if(r){var i=JSON.parse(r.current)[0].index;("mouse"===e?["mouseout"]:["touchend"]).forEach((function(e){t.dispatchEvent(e,i)}))}"touch"===e&&t.callOverOutForTouch(),t.hideTooltip(!0),t.hideGridFocus(),null==t.unexpandCircles||t.unexpandCircles(),t.expandBarTypeShapes(!1)}},xf=function t(e){this.plugins=[],this.internal=void 0;var n=new sf(this);this.internal=n,function t(e,n,r){Object.keys(e).forEach((function(i){var a=Da(e[i]),o=n!==r,s=Ga(e[i]),u=s&&Object.keys(e[i]).length>0;n[i]=a&&(!o&&u||o)?e[i].bind(r):s&&!a?{}:e[i],u&&t(e[i],n[i],r)}))}(t.prototype,this,this),uf.call(n,e),n.beforeInit(),n.init()};function _f(t,e,n){var r=t.config,i=function(t,n){var i=za(n)?n:!1===n?void 0:null;null!==i&&(r["axis_"+t+"_"+e]=i)};ja(n)&&(Ya(n)?Object.keys(n).forEach((function(t){i(t,n[t])})):(za(n)||!1===n)&&["y","y2"].forEach((function(t){i(t,n)})),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function mf(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}so(xf.prototype,[cf,{color:function(t){return this.internal.color(t)}},{data:lf},hf,df,{legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},gf,vf,{tooltip:yf}]);var bf={labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach((function(e){n.axis.setLabelText(e,t[e])})),n.axis.updateLabels()),["x","y","y2"].forEach((function(t){var r=n.axis.getLabelText(t);r&&(e||(e={}),e[t]=r)})),e},min:function(t){var e=this.internal;return Pa(t)||!1===t?_f(e,"min",t):mf(e,"min")},max:function(t){var e=this.internal;return Pa(t)||!1===t?_f(e,"max",t):mf(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};var n=t.min,r=t.max;ja(r)&&e.max(r),ja(n)&&e.min(n)}},wf={axis:bf};function Tf(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}so(Tf,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Af={xgrids:Tf};function Ef(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}so(Ef,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var Sf={ygrids:Ef},kf={groups:function(t){var e=this.internal,n=e.config;return Fa(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function Mf(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}so(Mf,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,r=e.$T,i=t||{},a=qa(i,"classes",[Uo.region]),o=e.$el.main.select("."+Uo.regions).selectAll(a.map((function(t){return"."+t})));return r(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter((function(t){var e=!1;return!t.class||(t.class.split(" ").forEach((function(t){a.indexOf(t)>=0&&(e=!0)})),!e)})),n.regions=o):n.regions=[],o}});var Of={regions:Mf},Rf={x:function(t){var e=this.internal,n=e.axis,r=e.data,i=n.isCustomX()&&n.isCategorized();return Ha(t)&&(i?this.categories(t):(e.updateTargetX(r.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():r.xs},xs:function(t){var e=this.internal;return Wa(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},Cf={flow:function(t){var e,n,r,i,a=this.internal,o=0,s=0;if((t.json||t.rows||t.columns)&&(e=a.convertData(t)),!a.state.redrawing&&e&&bo()){var u=[],c=a.getMaxDataCount(),l=a.convertDataToTargets(e,!0),f=a.axis.isTimeSeries();a.data.targets.forEach((function(t){for(var e=!1,n=0;n<l.length;n++)if(t.id===l[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=l[n].values.length;for(var r=0;r<o;r++)l[n].values[r].index=s+r,f||(l[n].values[r].x=s+r);t.values=t.values.concat(l[n].values),l.splice(n,1);break}e||u.push(t.id)})),a.data.targets.forEach((function(t){for(var e=0;e<u.length;e++)if(t.id===u[e]){s=t.values[t.values.length-1].index+1;for(var n=0;n<o;n++)t.values.push({id:t.id,index:s+n,x:f?a.getOtherTargetX(s+n):s+n,value:null})}})),a.data.targets.length&&l.forEach((function(t){for(var e=[],n=a.data.targets[0].values[0].index;n<s;n++)e.push({id:t.id,index:n,x:f?a.getOtherTargetX(n):n,value:null});t.values.forEach((function(t){t.index+=s,f||(t.x+=s)})),t.values=e.concat(t.values)})),a.data.targets=a.data.targets.concat(l);var h=a.data.targets[0],d=h.values[0];ja(t.to)?(o=0,i=f?mo.call(a,t.to):t.to,h.values.forEach((function(t){t.x<i&&o++}))):ja(t.length)&&(o=t.length),c?1===c&&f&&(r=(h.values[h.values.length-1].x-d.x)/2,n=[new Date(+d.x-r),new Date(+d.x+r)]):(r=f?h.values.length>1?h.values[h.values.length-1].x-d.x:d.x-a.getXDomain(a.data.targets)[0]:1,n=[d.x-r,d.x]),n&&a.updateXDomain(null,!0,!0,!1,n),a.updateTargets(a.data.targets),a.redraw({flow:{index:d.index,length:o,duration:Pa(t.duration)?t.duration:a.config.transition_duration,done:t.done,orgDataCount:c},withLegend:!0,withTransition:c>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function If(t){return t}var Lf=1e-6;function Pf(t){return"translate("+t+",0)"}function Df(t){return"translate(0,"+t+")"}function Nf(t){return function(e){return+t(e)}}function zf(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function Ff(){return!this.__axis}function jf(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",f=1===t||3===t?Pf:Df;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):If:i,p=Math.max(a,0)+s,v=e.range(),y=+v[0]+u,x=+v[v.length-1]+u,_=(e.bandwidth?zf:Nf)(e.copy(),u),m=h.selection?h.selection():h,b=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,e).order(),T=w.exit(),A=w.enter().append("g").attr("class","tick"),E=w.select("line"),S=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(A),E=E.merge(A.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),S=S.merge(A.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==m&&(b=b.transition(h),w=w.transition(h),E=E.transition(h),S=S.transition(h),T=T.transition(h).attr("opacity",Lf).attr("transform",(function(t){return isFinite(t=_(t))?f(t+u):this.getAttribute("transform")})),A.attr("opacity",Lf).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:_(t))+u)}))),T.remove(),b.attr("d",4===t||2===t?o?"M"+c*o+","+y+"H"+u+"V"+x+"H"+c*o:"M"+u+","+y+"V"+x:o?"M"+y+","+c*o+"V"+u+"H"+x+"V"+c*o:"M"+y+","+u+"H"+x),w.attr("opacity",1).attr("transform",(function(t){return f(_(t)+u)})),E.attr(l+"2",c*a),S.attr(l,c*p).text(g),m.filter(Ff).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),m.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(u=+t,h):u},h}function Bf(t){return jf(1,t)}function Xf(t){return jf(2,t)}function $f(t){return jf(3,t)}function Uf(t){return jf(4,t)}var Yf=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=Gc(),n=t.config,r=t.params;this.owner=t,this.config=n,this.scale=e,!n.noTransition&&r.config.transition_duration||(n.withoutTransition=!0),n.range=this.scaleExtent((r.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call((function(t){try{var n=t.node().getBBox(),r=n.width,i=n.height;r&&i&&(e.w=r,e.h=i)}catch(t){}finally{t.text("")}})),this.getSizeFor1Char=function(){return e},e};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate("+(t+e.tickOffset)+",0)"}:function(t){return"translate(0,"+t+")"};return function(t,e){t.attr("transform",(function(t){return n(Math.ceil(e(t)))}))}},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,r=t.domain(),i=r[0],a=r[1],o=[];if(e&&n)for(var s=Math.round(i);s<=a;)o.push(s),s+=n;else if(t.ticks){var u=this.config.tickArguments;if("log"!==t.type||u)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var c=Gc("_log").domain([i>0?i:1,a]).range(t.range());o=c.ticks();for(var l=a.toFixed().length;o.length>15;l--)o=c.ticks(l);o.splice(0,1,i),o.splice(o.length-1,1,a)}o=o.map((function(t){return Na(t)&&za(t)&&!isNaN(t)&&Math.round(10*t)/10||t}))}else{for(var f=Math.ceil(i);f<a;f++)o.push(f);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,r=e?e(n):n;return ja(r)?r:""},e.transitionise=function(t){var e=this.config,n=t;if(e.withoutTransition)n=t.interrupt();else if(e.transition||!this.owner.params.noTransition)try{n=t.transition(e.transition)}catch(t){}return n},t}(),Vf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new Yf(this)}var e=t.prototype;return e.create=function(t){var e=this,n=this.config,r=this.helper,i=this.params,a=r.scale,o=n.orient,s=this.splitTickText.bind(this),u=/^(left|right)$/.test(o),c=/^(top|bottom)$/.test(o),l=r.getTickTransformSetter(c?"x":"y"),f=l===r.axisX?"y":"x",h=/^(top|left)$/.test(o)?-1:1,d=i.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():r.scaleExtent((i.orgXScale||a).range());var g,p=n,v=p.innerTickSize,y=p.tickLength,x=p.range,_=i.id,m=_&&/^(x|y|y2)$/.test(_)?i.config["axis_"+_+"_tick_text_position"]:{x:0,y:0},b="subX"===_?"subchart_axis_x":"axis_"+_,w=i.config[b+"_show"],T=!!w&&i.config[b+"_tick_show"],A=!!w&&i.config[b+"_tick_text_show"];t.each((function(){var t=In(this),p=this.__chart__||a,_=r.copyScale();g=t,this.__chart__=_,n.tickOffset=i.isCategory?Math.ceil((_(1)-_(0))/2):0;var b=t.selectAll(".domain").data([0]);if(b.enter().append("path").attr("class","domain").merge(b).attr("d",(function(){var t=n.outerTickSize*h;return c?"M"+x[0]+","+t+"V0H"+x[1]+"V"+t:"M"+t+","+x[0]+"H0V"+x[1]+"H"+t})),T||A){var w=n.tickValues||r.generateTicks(_,u),E=t.selectAll(".tick").data(w,_),S=E.enter().insert("g",".domain").attr("class","tick"),k=E.exit().remove();E=S.merge(E),T&&S.append("line"),A&&S.append("text");var M=Yf.getSizeFor1Char(E),O=[],R=E.select("text").selectAll("tspan").data((function(t,e){var n=i.tickMultiline?s(t,_,w,u,M.w):Ha(r.textFormatted(t))?r.textFormatted(t).concat():[r.textFormatted(t)];return O[e]=n.length,n.map((function(t){return{index:e,splitted:t}}))}));R.exit().remove(),(R=R.enter().append("tspan").merge(R).text((function(t){return t.splitted}))).attr("x",c?0:y*h).attr("dx",function(){var t=0;return/(top|bottom)/.test(o)&&d&&(t=8*Math.sin(Math.PI*(d/180))*("top"===o?-1:1)),t+(m.x||0)}()).attr("dy",(function(t,e){var n=0;return"top"!==o&&(n=M.h,0===e&&(n=u?-((O[t.index]-1)*(M.h/2)-3):0===m.y?".71em":0)),za(n)&&m.y?n+m.y:n||".71em"}));var C=E.select("line"),I=E.select("text");if(S.select("line").attr(f+"2",v*h),S.select("text").attr(f,y*h),e.setTickLineTextPosition(C,I),i.tickTitle){var L=I.select("title");(L.empty()?I.append("title"):L).text((function(t){return i.tickTitle[t]}))}if(_.bandwidth){var P=_,D=P.bandwidth()/2;_=p=function(t){return P(t)+D}}else p.bandwidth?p=_:l(k,_);E=i.owner.state.flowing?r.transitionise(E):i.owner.$T(E),l(S,p),l(E.style("opacity",null),_)}})),this.g=g},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,r=n,i=r.innerTickSize,a=r.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?i:0},e.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),r=this.config,i=r.innerTickSize,a=r.orient,o=r.tickLength,s=r.tickOffset,u=this.params.tickTextRotate,c=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?e[t>0?0:1]:"middle"},l=function(t){return t?"rotate("+t+")":null},f=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};switch(a){case"bottom":t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"top":t.attr("x2",0).attr("y2",-i),e.attr("x",0).attr("y",2*-f(u)).style("text-anchor",c(u)).attr("transform",l(u));break;case"left":t.attr("x2",-i).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end");break;case"right":t.attr("x2",i).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start")}},e.splitTickText=function(t,e,n,r,i){var a=this.params,o=this.helper.textFormatted(t),s=Na(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Ha(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=r?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var r,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),r=n.substr(0,s+1),o=i*r.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this,r=this.config,i=r.outerTickSize,a=r.tickOffset,o=r.tickValues;if(this.params.isCategory)e=2*a;else{e=(this.g.select("path.domain").node().getTotalLength()-2*i)/(t||this.g.selectAll("line").size());var s=o?o.map((function(t,e,r){var i=e+1;return i<r.length?n.helper.scale(r[i])-n.helper.scale(t):null})).filter(Boolean):[];e=Math.min.apply(Math,s.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length?(t.tickArguments=co(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(Da(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),Gf={getAxisInstance:function(){return this.axis||new Hf(this)}},Hf=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return Mo.axis+" "+Mo["axis"+uo(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||Ga(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,r=e.$el,i=r.main,a=r.axis,o=e.state.clip,s=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach((function(r){var u=t.getAxisClassName(r),c=Mo["axis"+r.toUpperCase()+"Label"];a[r]=i.append("g").attr("class",u).attr("clip-path",(function(){var t=null;return"x"===r?t=o.pathXAxis:"y"===r&&(t=o.pathYAxis),t})).attr("transform",e.getTranslate(r)).style("visibility",n["axis_"+r+"_show"]?null:"hidden"),a[r].append("text").attr("class",c).attr("transform",["rotate(-90)",null]["x"===r?+!s:+s]).style("text-anchor",(function(){return t.textAnchorForAxisLabel(r)})),t.generateAxes(r)}))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,r=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?r?"bottom":"top":r?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this.owner,r=n.config,i=[],a=r["axis_"+t+"_axes"],o=r.axis_rotated;"x"===t?e=o?Uf:$f:"y"===t?e=o?$f:Uf:"y2"===t&&(e=o?Bf:Xf),a.length&&a.forEach((function(r){var a=r.tick||{},o=n.scale[t].copy();r.domain&&o.domain(r.domain),i.push(e(o).ticks(a.count).tickFormat(Da(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))})),this.axesList[t]=i},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,r=e.$el.main,i=e.$T;Object.keys(this.axesList).forEach((function(a){var o=n["axis_"+a+"_axes"],s=e.scale[a].copy(),u=s.range();t.axesList[a].forEach((function(c,l){var f=c.scale().range();u.every((function(t,e){return t===f[e]}))||c.scale().range(u);var h=t.getAxisClassName(a)+"-"+(l+1),d=r.select("."+h.replace(/\s/,"."));d.empty()?d=r.append("g").attr("class",h).style("visibility",n["axis_"+a+"_show"]?null:"hidden").call(c):(o[l].domain&&s.domain(o[l].domain),i(d).call(c.scale(s))),d.attr("transform",e.getTranslate(a,l+1))}))}))},e.setAxis=function(t,e,n,r){var i=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(i.scale.zoom||i.config.subchart_show||i.state.resizing))||r)},e.getAxis=function(t,e,n,r,i){var a,o=this.owner,s=o.config,u=/^(x|subX)$/.test(t),c=u?"x":t,l=u&&this.isCategorized(),f=this.orient[t],h=i?0:o.getAxisTickRotate(c);if(u)a="subX"===t?o.format.subXAxisTick:o.format.xAxisTick;else{var d=s["axis_"+t+"_tick_format"];Da(d)&&(a=d.bind(o.api))}var g=this.tick[c],p=go({outerTick:n,noTransition:r,config:s,id:t,tickTextRotate:h,owner:o},u&&{isCategory:l,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:l&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(p.tickStepSize=s["axis_"+c+"_tick_stepSize"]);var v=new Vf(p).scale(u&&o.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&g&&!Da(g)){var y=mo.bind(o);g=g.map((function(t){return y(t)}))}else!u&&this.isTimeSeriesY()&&(v.ticks(s.axis_y_tick_time_value),g=null);g&&v.tickValues(g),v.tickFormat(a||!u&&o.isStackNormalized()&&function(t){return t+"%"}),l&&(v.tickCentered(s.axis_x_tick_centered),Va(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_"+c+"_tick_count"];return x&&v.ticks(x),v},e.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config,a=i.axis_x_tick_fit,o=i.axis_x_tick_count;if((a||o&&a)&&(n=r.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e)e.tickValues(n);else if(this.x){var s;this.x.tickValues(n),null==(s=this.subX)||s.tickValues(n)}return n},e.getId=function(t){var e=this.owner,n=e.config,r=e.scale,i=n.data_axes[t];return i&&r[i]||(i="y"),i},e.getXAxisTickFormat=function(t){var e,n=this.owner,r=n.config,i=n.format,a=t&&r.subchart_axis_x_tick_format||r.axis_x_tick_format,o=this.isTimeSeries(),s=this.isCategorized();return a?Da(a)?e=a.bind(n.api):o&&(e=function(t){return t?i.axisTime(a)(t):""}):e=o?i.defaultAxisTime:s?n.categoryName:function(t){return t<0?t.toFixed(0):t},Da(e)?function(t){return e.apply(n,s?[t,n.categoryName(t)]:[t])}:e},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],r=e[t+"Axis"];return(Da(n)?n.call(e.api):n)||(r?r.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return Na(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);Na(r)?n["axis_"+t+"_label"]=e:r&&(r.text=e)},e.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),i=Ya(r)&&r.position?r.position:e[+!n],a=function(t){return!!~i.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,r=n.width,i=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-i/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?r/2:r:a.isBottom&&(o=-i),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(r="-0.5em"),r},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(r="start"),r},e.dyForAxisLabel=function(t){var e,n=this.owner,r=n.config,i=r.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=r["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=r.axis_x_height;e=i?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=i?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(r["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this.owner,r=n.config,i=n.state.current,a=n.$el,o=a.svg,s=a.chart,u=i.maxTickWidths[t],c=0;if(e||!r["axis_"+t+"_show"]||0===n.filterTargetsToShow().length)return u.size;if(o){var l=/^y2?$/.test(t),f=n.filterTargetsToShow(n.data.targets),h=n.scale[t].copy().domain(n["get"+(l?"Y":"X")+"Domain"](f,t)),d=h.domain(),g=d[0]===d[1]&&d.every((function(t){return t>0})),p=Ha(u.domain)&&u.domain[0]===u.domain[1]&&u.domain.every((function(t){return t>0}));if(g||p)return u.size;u.domain=d,l||u.ticks.splice(0);var v=this.getAxis(t,h,!1,!1,!0),y=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&y&&v.tickValues(this.generateTickValues(d,y,l?this.isTimeSeriesY():this.isTimeSeries())),l||this.updateXAxisTickValues(f,v);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");v.create(x),x.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;c=Math.max(c,n),l||(u.ticks[e]=n)})),x.remove()}return c>0&&(u.size=c),u.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,r=e.config,i=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&a>0&&a<90){var o=i.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,r=n.axis,i=n.config,a=n.state,o=r.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,f=c.right,h=0,d=u-(o&&i.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y;h=Math.max(h,v-x/2-((d-p)*x+f*x))}}var _=n.filterTargetsToShow(n.data.targets),m=0;if(!o&&i.axis_x_tick_count<=_.length&&_[0].values.length){var b=Gc(n.axis.getAxisType("x"),0,e-h).domain([-1*l,n.getXDomainMax(n.data.targets)+1+f]);m=Math.ceil((b(1)-b(0))/2)}return h+m},e.updateLabels=function(t){var e=this,n=this.owner,r=n.$el.main,i=n.$T,a={x:r.select("."+Mo.axisX+" ."+Mo.axisXLabel),y:r.select("."+Mo.axisY+" ."+Mo.axisYLabel),y2:r.select("."+Mo.axisY2+" ."+Mo.axisY2Label)};Object.keys(a).filter((function(t){return!a[t].empty()})).forEach((function(n){var r=a[n];i(r,t).attr("x",(function(){return e.xForAxisLabel(n)})).attr("dx",(function(){return e.dxForAxisLabel(n)})).attr("dy",(function(){return e.dyForAxisLabel(n)})).text((function(){return e.getLabelText(n)}))}))},e.getPadding=function(t,e,n,r){var i=za(t)?t:t[e];return Pa(i)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",i,r):n},e.generateTickValues=function(t,e,n){var r=t;if(e){var i=Da(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){var a,o=this.isCategorized(),s=i-2,u=t[0],c=t[t.length-1];r=[u];for(var l=0;l<s;l++)a=+u+(c-u)/(s+1)*(l+1),r.push(n?new Date(a):o?Math.round(a):a);r.push(c)}}return n||(r=r.sort((function(t,e){return t-e}))),r},e.generateTransitions=function(t){var e=this.owner,n=e.$el.axis,r=e.$T,i=["x","y","y2","subX"].map((function(e){return r(n[e],t)}));return{axisX:i[0],axisY:i[1],axisY2:i[2],axisSubX:i[3]}},e.redraw=function(t,e,n){var r=this,i=this.owner,a=i.config,o=i.$el,s=e?"0":null;["x","y","y2","subX"].forEach((function(e){var i=r[e],u=o.axis[e];i&&u&&(n||a.transition_duration||(i.config.withoutTransition=!0),u.style("opacity",s),i.create(t["axis"+uo(e)]))})),this.updateAxes()},e.redrawAxis=function(t,e,n,r,i){var a,o,s,u=this,c=this.owner,l=c.config,f=c.scale,h=c.$el,d=!!f.zoom;if(!d&&this.isCategorized()&&0===t.length&&f.x.domain([0,h.axis.x.selectAll(".tick").size()]),f.x&&t.length)d||c.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),l.axis_x_tick_values||this.updateXAxisTickValues(t);else if(this.x){var g;this.x.tickValues([]),null==(g=this.subX)||g.tickValues([])}(l.zoom_rescale&&!r&&(a=f.x.orgDomain()),["y","y2"].forEach((function(e){var n="axis_"+e+"_",r=f[e];if(r){var i=l[n+"tick_values"],o=l[n+"tick_count"];if(r.domain(c.getYDomain(t,e,a)),!i&&o){var s=c.axis[e],h=r.domain();s.tickValues(u.generateTickValues(h,h.every((function(t){return 0===t}))?1:o,u.isTimeSeriesY()))}}})),this.redraw(n,c.hasArcType(),i),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y)&&(null==(o=f.subY)||o.domain(c.getYDomain(t,"y")),null==(s=f.subY2)||s.domain(c.getYDomain(t,"y2")))},e.setCulling=function(){var t=this.owner,e=t.config,n=t.state,r=n.clip,i=n.current,a=t.$el;["subX","x","y","y2"].forEach((function(t){var n=a.axis[t],o="axis_"+("subX"===t?"x":t)+"_tick_culling",s=e[o];if(n&&s){var u,c=n.selectAll(".tick"),l=po(c.data()),f=l.length,h=e[o+"_max"],d=e[o+"_lines"];if(f){for(var g=1;g<f;g++)if(f/g<h){u=g;break}c.each((function(t){var e=d?this.querySelector("text"):this;e&&(e.style.display=l.indexOf(t)%u?"none":null)}))}else c.style("display",null);if("x"===t){var p=i.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+Mo.axisX+" .tick text").attr("clip-path",p)}}}))},t}(),Wf={initEventRect:function(){this.$el.main.select("."+Eo.chart).append("g").attr("class",zo.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.isMultipleX();if(r.eventRect)t.updateEventRect(r.eventRect,!0);else{var a=t.$el.main.select("."+zo.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(zo.eventRectsMultiple,i).classed(zo.eventRectsSingle,!i).selectAll("."+zo.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),i?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),r.eventRect=a,"touch"!==t.state.inputType||r.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(i)}if(!i){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),null==t.updatePointClass||t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.eventRect,s=a.svg,u=function(){n.unselectRect(),n.callOverOutForTouch()},c=r.interaction_inputType_touch.preventDefault,l=Ba(c)&&c||!1,f=!isNaN(c)&&c||null;o.on("touchstart",(function(t){i.event=t,n.updateEventRect()})).on("touchstart.eventRect touchmove.eventRect",(function(a){if(i.event=a,!o.empty()&&o.classed(zo.eventRect)){if(i.dragging||i.flowing||n.hasArcType()||a.touches.length>1)return;!function(t){var n=t.type,i=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===n?l?t.preventDefault():null!==f&&(e=i):"touchmove"===n&&(l||!0===e||null!==f&&Math.abs(e-i)>=f)&&(e=!0,t.preventDefault())}(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var r=n.getDataIndexFromEvent(i.event);n.callOverOutForTouch(r),-1===r?n.unselectRect():n.selectRectForSingle(e,o,r)}}(o.node())}else u()}),!0).on("touchend.eventRect",(function(t){i.event=t,!o.empty()&&o.classed(zo.eventRect)&&(n.hasArcType()||!n.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}),!0),s.on("touchstart",(function(t){i.event=t;var e=t.target;e&&e!==o.node()&&u()}))},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,r=this.$el,i=n,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,c=i.resizing,l=t||r.eventRect;(!u||c||e)&&(l.attr("x",0).attr("y",0).attr("width",o).attr("height",s),u||l.attr("class",zo.eventRect)),a&&(a.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,r,i=this,a=i.config,o=i.scale,s=i.state,u=o.zoom||o.x,c=a.axis_rotated;if(i.isMultipleX())t=0,e=0,n=s.width,r=s.height;else{var l,f;if(i.axis.isCategorized())l=i.getEventRectWidth(),f=function(t){return u(t.x)-l/2};else{var h=function(t){var e=t.index;return{prev:i.getPrevX(e),next:i.getNextX(e)}};l=function(t){var e=h(t),n=u.domain();return null===e.prev&&null===e.next?c?s.height:s.width:(Object.keys(e).forEach((function(t,r){var i;e[t]=null!=(i=e[t])?i:n[r]})),Math.max(0,(u(e.next)-u(e.prev))/2))},f=function(t){var e=h(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=u.domain()[0]),(u(n)+u(e.prev))/2)}}t=c?0:f,e=c?f:0,n=c?s.width:l,r=c?l:s.height}var d=s.eventReceiver,g=function(t,e){return Da(t)?t(e):t};d.coords.splice(d.data.length),d.data.forEach((function(i,a){d.coords[a]={x:g(t,i),y:g(e,i),w:g(n,i),h:g(r,i)}}))},selectRectForMultipleXs:function(t){var e=this,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!r.dragging&&!e.hasArcType(i)){var a=eo(r.event,t),o=e.findClosestFromTargets(i,a);if(!r.mouseover||o&&o.id===r.mouseover.id||(n.data_onout.call(e.api,r.mouseover),r.mouseover=void 0),o){var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(i,o.x)).map((function(t){return e.addName(t)}));e.showTooltip(s,t),e.setExpand(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select("."+zo.eventRect).style("cursor","pointer"),r.mouseover||(n.data_onover.call(e.api,o),r.mouseover=o))}else e.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,r=n.circle,i=n.tooltip;t.$el.svg.select("."+zo.eventRect).style("cursor",null),t.hideGridFocus(),i&&(t.hideTooltip(),t._handleLinkedCharts(!1)),r&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=e.config,r=e.state,i=r.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",(function(t){r.event=t;var n=i,a=n.currentIdx,o=n.data[-1===a?e.getDataIndexFromEvent(t):a];e.clickHandlerForSingleX.bind(this)(o,e)}));if("mouse"===r.inputType){a.on("mouseover",(function(t){r.event=t,e.updateEventRect()})).on("mousemove",(function(t){var o=function(t){var n=t?e.getDataIndexFromEvent(t):i.currentIdx;return n>-1?i.data[n]:null}(t);if(r.event=t,o){var s=o.index,u=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(u)){var c=e.scale.zoom||e.scale.x,l=e.axis.xs[s],f=c.invert(eo(t,this)[0]);"step-after"===u&&f<l?s-=1:"step-before"===u&&f>l&&(s+=1)}r.dragging||r.flowing||e.hasArcType()||n.tooltip_grouped&&s===i.currentIdx||(s!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=s),-1===s?e.unselectRect():e.selectRectForSingle(this,a,s),e.setOverOut(-1!==s,s))}})).on("mouseout",(function(t){r.event=t,n&&!e.hasArcType()&&-1!==i.currentIdx&&(e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)}))}return a},clickHandlerForSingleX:function(t,e){var n=e,r=n.config,i=n.state,a=n.$el.main;if(!t||n.hasArcType()||i.cancelClick)i.cancelClick&&(i.cancelClick=!1);else{var o=t.index;a.selectAll("."+Vo.shape+"-"+o).each((function(t){(r.data_selection_grouped||n.isWithinShape(this,t))&&(null==n.toggleShape||n.toggleShape(this,t,o),r.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state;t.on("click",(function(t){n.event=t,e.clickHandlerForMultipleXS.bind(this)(e)})),"mouse"===n.inputType&&t.on("mouseover mousemove",(function(t){n.event=t,e.selectRectForMultipleXs(this)})).on("mouseout",(function(t){n.event=t,e.config&&!e.hasArcType()&&e.unselectRect()}))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(i)){var a=eo(r.event,this),o=e.findClosestFromTargets(i,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll("."+Vo.shapes+e.getTargetSelectorSuffix(o.id)).selectAll("."+Vo.shape+"-"+o.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,o))&&(null==e.toggleShape||e.toggleShape(this,o,o.index),n.data_onclick.bind(e.api)(o,this))}))}}},qf=function(t){return+t},Zf={generateFlow:function(t){var e=this,n=e.data,r=e.state,i=e.$el;return function(){var a=t.flow.length;r.flowing=!0,n.targets.forEach((function(t){t.values.splice(0,a)})),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach((function(t){var e,n=t.split("."),r=i[n[0]];r&&n.length>1&&(r=r[n[1]]),null!=(e=r)&&e.size()&&(o[t]=r)})),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n,r=this,i=e.flow,a=e.targets,o=i,s=o.duration,u=void 0===s?e.duration:s,c=o.index,l=o.length,f=o.orgDataCount,h=r.getFlowTransform(a,f,c,l),d=ws();d.add(Object.keys(t).map((function(e){return n=t[e].transition().ease(qf).duration(u),n="axis.x"===e?n.call((function(t){r.axis.x.setTransition(t).create(t)})):"region.list"===e?n.filter(r.isRegionOnX).attr("transform",h):n.attr("transform",h)}))),n.call(d,(function(){r.cleanUpFlow(t,e)}))},cleanUpFlow:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.svg,o=r.axis_rotated,s=e.flow,u=e.shape,c=e.xv,l=u.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=s,v=p.done,y=void 0===v?function(){}:v,x=p.length;x&&(["circle","text","shape","eventRect"].forEach((function(t){for(var e=[],n=0;n<x;n++)e.push("."+Zo[t]+"-"+n);a.selectAll("."+Zo[t+"s"]).selectAll(e).remove()})),a.select("."+Zo.xgrid).remove()),Object.keys(t).forEach((function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(i.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:c).attr("x2",o?i.width:c);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:c).attr("x2",o?i.width:c),a.select("text").attr("x",o?i.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(e))a.attr("d",u.type[e]);else if("text"===e)a.attr("x",d).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"===e)if(n.isCirclePoint())a.attr("cx",f).attr("cy",h);else{a.attr("x",(function(t){return f(t)-r.point_r})).attr("y",(function(t){return h(t)-r.point_r})).attr("cx",f).attr("cy",h)}else"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))})),r.interaction_enabled&&n.redrawEventRect(),y.call(n.api),i.flowing=!1},getFlowTransform:function(t,e,n,r){var i,a,o,s=this,u=s.data,c=s.scale.x,l=u.targets[0].values,f=s.getValueOnIndex(l,n),h=s.getValueOnIndex(l,n+r),d=c.domain(),g=s.updateXDomain(t,!0,!0);if(e)if(1===e||(null==(i=f)?void 0:i.x)===(null==(a=h)?void 0:a.x))o=c(d[0])-c(g[0]);else{var p;o=s.axis.isTimeSeries()?c(d[0])-c(g[0]):c((null==(p=f)?void 0:p.x)||0)-c(h.x)}else 1!==l.length?o=c(d[0])-c(g[0]):s.axis.isTimeSeries()?(f=s.getValueOnIndex(l,0),h=s.getValueOnIndex(l,l.length-1),o=c(f.x)-c(h.x)):o=Ua(g)/2;return"translate("+o+",0) scale("+Ua(d)/Ua(g)+",1)"}},Kf={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!Ln.navigator&&Ln.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":Pn.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,r.top),l=o?r.left+20:i+10+s,f=(o?r.top+a+10:r.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",f)},setYAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:r.top),f=(o?i+15+s:r.left+20)+(u?20:0),h=(o?r.bottom:r.top+a)+10;t.attr("x",c).attr("y",l).attr("width",f).attr("height",h)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!r.idXAxisTickTexts){var s=r.id+"-xaxisticktexts";t.appendClip(a,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==i&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,r=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&r){var i=Math.sin(Math.PI/180*Math.abs(r));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,r=this.$el.svg;r&&r.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},Jf=function(t){return Pa(t.position)||"end"},Qf=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function th(t,e,n){return function(r){var i=t?0:e;return"start"===r.position?i=t?-n:0:"middle"===r.position&&(i=(t?-n:e)/2),i}}function eh(t,e){"grid"===e&&t.each((function(){var t=In(this);["x1","x2","y1","y2"].forEach((function(e){return t.attr(e,Math.ceil(+t.attr(e)))}))}))}var nh={hasGrid:function(){var t=this.config;return["x","y"].some((function(e){return t["grid_"+e+"_show"]||t["grid_"+e+"_lines"].length}))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(r.gridLines.main=r.main.insert("g","."+Eo.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",jo.grid+" "+jo.gridLines),r.gridLines.main.append("g").attr("class",jo.xgridLines),r.gridLines.main.append("g").attr("class",jo.ygridLines),r.gridLines.x=Ql([]))},updateXGrid:function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,c=e.generateGridData(n.grid_x_type,r.x),l=e.axis.isCategorized()?e.axis.x.tickOffset():0,f=function(t){return(r.zoom||r.x)(t)+l*(u?-1:1)};i.xgridAttr=u?{x1:0,x2:i.width,y1:f,y2:f}:{x1:f,x2:f,y1:0,y2:i.height},s.x=o.select("."+jo.xgrids).selectAll("."+jo.xgrid).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",jo.xgrid).merge(s.x),t||s.x.each((function(){var t=In(this);Object.keys(i.xgridAttr).forEach((function(e){t.attr(e,i.xgridAttr[e]).style("opacity",(function(){return t.attr(u?"y1":"x1")===(u?i.height:0)?"0":null}))}))}))},updateYGrid:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.grid,a=r.main,o=e.axis_rotated,s=t.axis.y.tickValues()||t.scale.y.ticks(e.grid_y_ticks),u=function(e){return Math.ceil(t.scale.y(e))};i.y=a.select("."+jo.ygrids).selectAll("."+jo.ygrid).data(s),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",jo.ygrid).merge(i.y),i.y.attr("x1",o?u:0).attr("x2",o?u:n.width).attr("y1",o?0:u).attr("y2",o?n.height:u),eh(i.y,"grid")},updateGrid:function(){var t=this,e=t.$el,n=e.grid;e.gridLines.main||t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=t.config,n=t.$el,r=n.gridLines,i=n.main,a=t.$T,o=e.axis_rotated;e.grid_x_show&&t.updateXGrid();var s=i.select("."+jo.xgridLines).selectAll("."+jo.xgridLine).data(e.grid_x_lines);a(s.exit()).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),a((s=u.merge(s)).attr("class",(function(t){return(jo.xgridLine+" "+(t.class||"")).trim()})).select("text").attr("text-anchor",Jf).attr("dx",Qf)).text((function(t){return t.text})).style("opacity",null),r.x=s},updateYGridLines:function(){var t=this,e=t.config,n=t.state,r=n.width,i=n.height,a=t.$el,o=t.$T,s=e.axis_rotated;e.grid_y_show&&t.updateYGrid();var u=a.main.select("."+jo.ygridLines).selectAll("."+jo.ygridLine).data(e.grid_y_lines);o(u.exit()).style("opacity","0").remove();var c=u.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=c.merge(u);var l=t.yv.bind(t);o(u.attr("class",(function(t){return(jo.ygridLine+" "+(t.class||"")).trim()})).select("line")).attr("x1",s?l:0).attr("x2",s?l:r).attr("y1",s?0:l).attr("y2",s?i:l).style("opacity",null),o(u.select("text").attr("text-anchor",Jf).attr("dx",Qf)).attr("dy",-5).attr("x",th(s,r,i)).attr("y",l).text((function(t){return t.text})).style("opacity",null),a.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,r=e.state,i=r.width,a=r.height,o=e.$el.gridLines,s=e.$T,u=e.xv.bind(e),c=o.x.select("line"),l=o.x.select("text");return c=s(c,t).attr("x1",n?0:u).attr("x2",n?i:u).attr("y1",n?u:0).attr("y2",n?u:a),l=s(l,t).attr("x",th(!n,i,a)).attr("y",u).text((function(t){return t.text})),[c.style("opacity",null),l.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el,i=e.grid_front,a="."+(i&&r.gridLines.main?jo.gridLines:Eo.chart)+(i?" + *":""),o=r.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",jo.grid);r.grid.main=o,e.grid_x_show&&o.append("g").attr("class",jo.xgrids),e.grid_y_show&&o.append("g").attr("class",jo.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Fo.xgridFocus).append("line").attr("class",Fo.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Fo.ygridFocus).append("line").attr("class",Fo.ygridFocus))},showGridFocus:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=n.axis_rotated,s=e.$el.main.selectAll("line."+Fo.xgridFocus+", line."+Fo.ygridFocus),u=(t||[s.datum()]).filter((function(t){return t&&Pa(e.getBaseValue(t))}));if(n.tooltip_show&&0!==u.length&&!e.hasType("bubble")&&!e.hasArcType()){var c=n.grid_focus_edge&&!n.tooltip_grouped,l=e.xx.bind(e);s.style("visibility",null).data(u.concat(u)).each((function(t){var n,r=In(this),s={x:l(t),y:e.getYScaleById(t.id)(t.value)};if(r.classed(Fo.xgridFocus))n=o?[null,s.x,c?s.y:i,s.x]:[s.x,c?s.y:null,s.x,a];else{var u="y2"===e.axis.getId(t.id);n=o?[s.y,c&&!u?s.x:null,s.y,c&&u?s.x:a]:[c&&u?s.x:null,s.y,c&&!u?s.x:i,s.y]}["x1","y1","x2","y2"].forEach((function(t,e){return r.attr(t,n[e])}))})),eh(s,"grid"),null==e.showCircleFocus||e.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.resizing,i=t.$el.main;"mouse"!==n&&r||(i.selectAll("line."+Fo.xgridFocus+", line."+Fo.ygridFocus).style("visibility","hidden"),null==t.hideCircleFocus||t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.width,i=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+Fo.xgridFocus);if("touch"===n)o.empty()?a&&(null==t.showCircleFocus||t.showCircleFocus()):t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?r:-10).attr("y1",s?-10:0).attr("y2",s?-10:i)}return!0},generateGridData:function(t,e){var n=this.$el.main.select("."+Mo.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var i=this.getXDomain().map((function(t){return t.getFullYear()})),a=i[0],o=i[1],s=a;s<=o;s++)r.push(new Date(s+"-01-01 00:00:00"));else(r=e.ticks(10)).length>n&&(r=r.filter((function(t){return(t+"").indexOf(".")<0})));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Ha(t)?t.concat():[t]).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,r=n.config,i=n.$T,a=n.getGridFilterToRemove(t),o=e?jo.xgridLines:jo.ygridLines,s=e?jo.xgridLine:jo.ygridLine;i(n.$el.main.select("."+o).selectAll("."+s).filter(a)).style("opacity","0").remove();var u="grid_"+(e?"x":"y")+"_lines";r[u]=r[u].filter((function(t){return!a(t)}))}},rh={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Uo.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,r=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var i=n.main.selectAll("."+Uo.region).data(e.regions);r(i.exit()).style("opacity","0").remove(),(i=i.enter().append("g").merge(i).attr("class",t.classRegion.bind(t))).append("rect").style("fill-opacity","0"),n.list=i},redrawRegion:function(t){var e=this,n=e.$el.region,r=e.$T,i=n.list.select("rect");return[(i=r(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e))).style("fill-opacity",(function(t){return Pa(t.opacity)?t.opacity:null})).on("end",(function(){In(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,r=n.config,i=n.scale,a=r.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(o||(s="end"),(o?a:!a)&&s in e&&(u=(0,i[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(i.zoom||i.x)(n.axis.isTimeSeries()?mo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=r.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(s||(c="start"),(s?o:!o)&&c in e&&(l=(0,i[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(i.zoom||i.x)(n.axis.isTimeSeries()?mo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},ih={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var r,i=null==(r=n.axis)?void 0:r.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(i.isInner?20:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,r=e.state,i=r.current,a=r.rotatedPadding,o=r.isLegendRight,s=r.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(l))/180),!n.axis_x_tick_multiline&&i.height&&c>i.height/2&&(c=i.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,r=e.config,i=e.state,a=e.$el,o=r["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(r.axis_x_tick_fit&&s){var u=r.axis_x_tick_count,c=i.current.maxTickWidths.x.ticks.length,l=0;if(u?l=u>c?c:u:c&&(l=c),l!==i.axis.x.tickCount){var f=e.data.targets;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(f,"min"),e.getXDomainMinMax(f,"max")],l)}i.axis.x.tickCount=l}a.svg&&r.axis_x_tick_fit&&!r.axis_x_tick_multiline&&!r.axis_x_tick_culling&&r.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?r.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,r=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),i=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(i?r/i:0)}},ah={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},oh={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function sh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uh(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?sh(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var ch=uh(uh(uh({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),ah),oh),lh=[wf,{category:function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Af,Sf,Cf,kf,Of,Rf],fh=[Gf,Kf,Wf,Zf,nh,rh,ih],hh=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},ch,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];Array.prototype.slice;function dh(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function gh(t){return function(){return t}}function ph(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vh(t){return t}var yh=Math.PI,xh=2*yh,_h=1e-6,mh=xh-_h;function bh(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function wh(){return new bh}bh.prototype=wh.prototype={constructor:bh,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,l=o-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>_h)if(Math.abs(l*s-u*c)>_h&&i){var h=n-a,d=r-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((yh-Math.acos((g+f-(h*h+d*d))/(2*p*v)))/2),x=y/v,_=y/p;Math.abs(x-1)>_h&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>_h||Math.abs(this._y1-c)>_h)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%xh+xh),f>mh?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>_h&&(this._+="A"+n+","+n+",0,"+ +(f>=yh)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Th=wh;function Ah(t){return t.innerRadius}function Eh(t){return t.outerRadius}function Sh(t){return t.startAngle}function kh(t){return t.endAngle}function Mh(t){return t&&t.padAngle}function Oh(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,l=o-i,f=s-a,h=f*u-l*c;if(!(h*h<xl))return[t+(h=(l*(e-a)-f*(t-i))/h)*u,e+h*c]}function Rh(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/yl(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,g=n+l,p=r+f,v=(h+g)/2,y=(d+p)/2,x=g-h,_=p-d,m=x*x+_*_,b=i-a,w=h*p-g*d,T=(_<0?-1:1)*yl(gl(0,b*b*m-w*w)),A=(w*_-x*T)/m,E=(-w*x-_*T)/m,S=(w*_+x*T)/m,k=(-w*x+_*T)/m,M=A-v,O=E-y,R=S-v,C=k-y;return M*M+O*O>R*R+C*C&&(A=S,E=k),{cx:A,cy:E,x01:-l,y01:-f,x11:A*(i/b-1),y11:E*(i/b-1)}}function Ch(){var t=Ah,e=Eh,n=gh(0),r=null,i=Sh,a=kh,o=Mh,s=null;function u(){var u,c,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-ml,d=a.apply(this,arguments)-ml,g=fl(d-h),p=d>h;if(s||(s=u=Th()),f<l&&(c=f,f=l,l=c),f>xl)if(g>bl-xl)s.moveTo(f*dl(h),f*vl(h)),s.arc(0,0,f,h,d,!p),l>xl&&(s.moveTo(l*dl(d),l*vl(d)),s.arc(0,0,l,d,h,p));else{var v,y,x=h,_=d,m=h,b=d,w=g,T=g,A=o.apply(this,arguments)/2,E=A>xl&&(r?+r.apply(this,arguments):yl(l*l+f*f)),S=pl(fl(f-l)/2,+n.apply(this,arguments)),k=S,M=S;if(E>xl){var O=Tl(E/l*vl(A)),R=Tl(E/f*vl(A));(w-=2*O)>xl?(m+=O*=p?1:-1,b-=O):(w=0,m=b=(h+d)/2),(T-=2*R)>xl?(x+=R*=p?1:-1,_-=R):(T=0,x=_=(h+d)/2)}var C=f*dl(x),I=f*vl(x),L=l*dl(b),P=l*vl(b);if(S>xl){var D,N=f*dl(_),z=f*vl(_),F=l*dl(m),j=l*vl(m);if(g<_l&&(D=Oh(C,I,F,j,N,z,L,P))){var B=C-D[0],X=I-D[1],$=N-D[0],U=z-D[1],Y=1/vl(wl((B*$+X*U)/(yl(B*B+X*X)*yl($*$+U*U)))/2),V=yl(D[0]*D[0]+D[1]*D[1]);k=pl(S,(l-V)/(Y-1)),M=pl(S,(f-V)/(Y+1))}}T>xl?M>xl?(v=Rh(F,j,C,I,f,M,p),y=Rh(N,z,L,P,f,M,p),s.moveTo(v.cx+v.x01,v.cy+v.y01),M<S?s.arc(v.cx,v.cy,M,hl(v.y01,v.x01),hl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,M,hl(v.y01,v.x01),hl(v.y11,v.x11),!p),s.arc(0,0,f,hl(v.cy+v.y11,v.cx+v.x11),hl(y.cy+y.y11,y.cx+y.x11),!p),s.arc(y.cx,y.cy,M,hl(y.y11,y.x11),hl(y.y01,y.x01),!p))):(s.moveTo(C,I),s.arc(0,0,f,x,_,!p)):s.moveTo(C,I),l>xl&&w>xl?k>xl?(v=Rh(L,P,N,z,l,-k,p),y=Rh(C,I,F,j,l,-k,p),s.lineTo(v.cx+v.x01,v.cy+v.y01),k<S?s.arc(v.cx,v.cy,k,hl(v.y01,v.x01),hl(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,k,hl(v.y01,v.x01),hl(v.y11,v.x11),!p),s.arc(0,0,l,hl(v.cy+v.y11,v.cx+v.x11),hl(y.cy+y.y11,y.cx+y.x11),p),s.arc(y.cx,y.cy,k,hl(y.y11,y.x11),hl(y.y01,y.x01),!p))):s.arc(0,0,l,b,m,p):s.lineTo(L,P)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-_l/2;return[dl(r)*n,vl(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:gh(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gh(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:gh(+t),u):i},u.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:gh(+t),u):a},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:gh(+t),u):o},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}var Ih={initPie:function(){var t=this,e=t.config,n=e.data_type,r=e[n+"_padding"],i=e[n+"_startingAngle"]||0,a=(r?.01*r:e[n+"_padAngle"])||0;t.pie=function(){var t=vh,e=ph,n=null,r=gh(0),i=gh(bl),a=gh(0);function o(o){var s,u,c,l,f,h=(o=dh(o)).length,d=0,g=Array(h),p=Array(h),v=+r.apply(this,arguments),y=Math.min(bl,Math.max(-bl,i.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=x*(y<0?-1:1);for(s=0;s<h;++s)(f=p[g[s]=s]=+t(o[s],s,o))>0&&(d+=f);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(o[t],o[e])})),s=0,c=d?(y-h*_)/d:0;s<h;++s,v=l)u=g[s],l=v+((f=p[u])>0?f*c:0)+_,p[u]={data:o[u],index:s,value:f,startAngle:v,endAngle:l,padAngle:x};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:gh(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:gh(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:gh(+t),o):a},o}().startAngle(i).endAngle(i+2*Math.PI).padAngle(a).value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,r=e[e.data_type+"_padding"],i=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=i?(n.radius-i)/n.radius:.6,n.gaugeArcWidth=i||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=null==t?void 0:t.data,n=this.state,r=n.innerRadius,i=n.outerRadius;return!za(r)&&e&&(r=r[e.id]||0),Wa(i)&&e&&e.id in i?i=i[e.id]:za(i)||(i=this.state.radius),{innerRadius:r,outerRadius:i}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,r=Math.PI/2,i=t.gauge_startingAngle;return!e&&i<=n?i=n:!e&&i>=r?i=r:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle:function(t){var e=this,n=e.config,r=e.state,i=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():-2*s;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var c=n,l=c.gauge_min,f=c.gauge_max,h=e.getTotalDataSum(r.rendered);i=i.startAngle(s).endAngle(u*((h-l)/(f-l))+s)}if(i(e.filterTargetsToShow()).forEach((function(t,e){o||t.data.id!==a.data.id||(o=!0,(a=t).index=e)})),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var d=n.gauge_min,g=n.gauge_max,p=a.value<d?0:a.value<g?a.value-d:g-d;a.startAngle=s,a.endAngle=s+u/(g-d)*p}return o?a:null},getSvgArc:function(){var t=this,e=t.state,n=e.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,r=t.hasMultiArcGauge(),i=t.hasType("polar"),a=Ch().innerRadius((function(i){var a=t.getRadius(i).innerRadius;return r?e.radius-n*(i.index+1):za(a)?a:0})).outerRadius((function(a){var o=t.getRadius(a).outerRadius,s=o;return r?s=e.radius-n*a.index:i&&(s=t.getPolarOuterRadius(a,o)),s})),o=function(e,n){var r="M 0 0";if(e.value||e.data){var i=!n&&t.updateAngle(e);n?r=a(e):i&&(r=a(i))}return r};return o.centroid=a.centroid,o},getSvgArcExpanded:function(t){var e=this,n=e.state,r=t||1,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,a=e.hasMultiArcGauge(),o=Math.min(n.radiusExpanded*r-n.radius,.8*i-100*(1-r)),s=Ch().innerRadius((function(t){return a?n.radius-i*(t.index+1):e.getRadius(t).innerRadius})).outerRadius((function(t){var s;if(a)s=n.radius-i*t.index+o;else{var u=e.getRadius(t).outerRadius,c=n.radiusExpanded;n.radius!==u&&(c-=Math.abs(n.radius-u)),s=c*r}return s}));return function(t){var n=e.updateAngle(t);return n?s(n):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=e.config,r=e.state.radiusExpanded,i=e.updateAngle(t),a="";if(i)if(e.hasMultiArcGauge()){var o=Math.sin(i.endAngle-Math.PI/2);a="translate("+(l=Math.cos(i.endAngle-Math.PI/2)*(r+25))+","+(f=o*(r+15-Math.abs(10*o))+3)+")"}else if(!e.hasType("gauge")||e.data.targets.length>1){var s,u=e.getRadius(t).outerRadius;e.hasType("polar")&&(u=e.getPolarOuterRadius(t,u));var c=this.svgArc.centroid(i).map((function(t){return isNaN(t)?0:t})),l=c[0],f=c[1],h=Math.sqrt(l*l+f*f),d=null==(s=["donut","pie","polar"].filter(e.hasType.bind(e)).map((function(t){return n[t+"_label_ratio"]})))?void 0:s[0];a="translate("+l*(d=d?Da(d)?d.bind(e.api)(t,u,h):d:u&&(h?(36/u>.375?1.175-36/u:.8)*u/h:0))+","+f*d+")"}return a},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",e.updateTextBacgroundColor.bind(e)).each((function(t){var r,i=In(this),a=e.updateAngle(t),o=e.getRatio("arc",a);if(e.meetsLabelThreshold(o,null==(r=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))?void 0:r[0])){var s=(a||t).value;Qa(i,(e.getArcLabelFormat()||e.defaultArcValueFormat)(s,o,t.data.id).toString(),[-1,1],n)}else i.text("")}))},expandArc:function(t){var e=this,n=e.state.transiting,r=e.$el;if(n)var i=setInterval((function(){n||(clearInterval(i),r.legend.selectAll("."+Fo.legendItemFocused).size()>0&&e.expandArc(t))}),10);else{var a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a,"."+So.chartArc)).each((function(t){if(e.shouldExpand(t.data.id)){var n=e.getExpandConfig(t.data.id,"duration"),r=e.getSvgArcExpanded(e.getExpandConfig(t.data.id,"rate"));In(this).selectAll("path").transition().duration(n).attr("d",e.svgArcExpanded).transition().duration(2*n).attr("d",r)}}))}},unexpandArc:function(t){var e=this,n=e.state.transiting,r=e.$el.svg;if(!n){var i=e.mapToTargetIds(t);r.selectAll(e.selectorTargets(i,"."+So.chartArc)).selectAll("path").transition().duration((function(t){return e.getExpandConfig(t.data.id,"duration")})).attr("d",e.svgArc),r.selectAll(""+So.arc).style("opacity",null)}},getExpandConfig:function(t,e){var n,r=this,i=r.config;return r.isDonutType(t)?n="donut":r.isGaugeType(t)?n="gauge":r.isPieType(t)&&(n="pie"),n?i[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["donut","gauge","pie","polar"].some((function(n){return t.hasType(n)&&e[n+"_label_show"]}))},getArcLabelFormat:function(){var t=this,e=t.config,n=function(t){return t};return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach((function(t){n=e[t+"_label_format"]})),Da(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,r=e.hasType("gauge"),i=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select("."+So.chartArcs),u=s.selectAll("."+So.chartArc).data(e.pie(t)).attr("class",(function(t){return i(t)+o(t.data)})),c=u.enter().append("g").attr("class",i);c.append("g").attr("class",a).merge(u),c.append("text").attr("dy",r&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor","middle").style("pointer-events","none"),n.text=s.selectAll("."+Eo.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+Eo.chart).append("g").attr("class",So.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var r=t.$el.arcs.append("text").attr("class",n?Po.chartArcsGaugeTitle:So.chartArcsTitle).style("text-anchor","middle");n&&r.attr("dy","-0.3em"),Qa(r,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.$el.main,s=i.interaction_enabled,u=s&&i.data_selection_isselectable,c=o.selectAll("."+So.arcs).selectAll("."+So.arc).data(r.arcData.bind(r));c.exit().transition().duration(e).style("opacity","0").remove(),c=c.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",(function(t){return r.color(t.data)})).style("cursor",(function(t){var e;return null!=(e=u)&&null!=e.bind&&e.bind(r.api)(t)?"pointer":null})).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=i.gauge_startingAngle,t.endAngle=i.gauge_startingAngle),this._current=t})).merge(c),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),c.attr("transform",(function(t){return!r.isGaugeType(t.data)&&n?"scale(0)":""})).style("opacity",(function(t){return t===this._current?"0":null})).each((function(){a.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e=r.updateAngle(t);if(!e)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var n=Ur(this._current,e);return this._current=n(0),function(e){var i=n(e);return i.data=t.data,r.getArc(i,!0)}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){var e;return r.levelColor?(e=r.levelColor(t.data.values[0].value),i.data_colors[t.data.id]=e):e=r.color(t.data),e})).style("opacity",null).call(Ka,(function(){if(r.levelColor){var t=In(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,Za(i.onrendered,r.api)})),s&&r.bindArcEvent(c),r.hasType("polar")&&r.redrawPolar(),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge(),i=e.gauge_fullCircle,a=t.getStartAngle(),o=i?a+t.getArcLength():-1*a,s=t.$el.arcs.select((r?"g":"")+"."+So.chartArcsBackground);if(r){var u=0;(s=s.selectAll("path."+So.chartArcsBackground).data(t.data.targets)).enter().append("path").attr("class",(function(t,e){return So.chartArcsBackground+" "+So.chartArcsBackground+"-"+e})).merge(s).style("fill",e.gauge_background||null).attr("d",(function(r){var i=r.id;if(n.hiddenTargetIds.indexOf(i)>=0)return"M 0 0";var s={data:[{value:e.gauge_max}],startAngle:a,endAngle:o,index:u++};return t.getArc(s,!0,!0)})),s.exit().remove()}else s.attr("d",(function(){var n={data:[{value:e.gauge_max}],startAngle:a,endAngle:o};return t.getArc(n,!0,!0)}))},bindArcEvent:function(t){var e=this,n=e.config,r=e.state,i="touch"===r.inputType,a="mouse"===r.inputType;function o(t,n,r){e.expandArc(r),e.api.focus(r),e.toggleFocusLegend(r,!0),e.showTooltip([n],t)}function s(t){var n=(null==t?void 0:t.id)||void 0;e.unexpandArc(n),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",(function(t,r,i){var a,o=e.updateAngle(r);o&&(a=e.convertToArcData(o),null==e.toggleShape||e.toggleShape(this,a,i),n.data_onclick.bind(e.api)(a,this))})),a&&t.on("mouseover",(function(t,n){var i;if(!r.transiting){r.event=t;var a=e.updateAngle(n),s=a?e.convertToArcData(a):null;o(this,s,(null==(i=s)?void 0:i.id)||void 0),e.setOverOut(!0,s)}})).on("mouseout",(function(t,n){if(!r.transiting){r.event=t;var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;s(),e.setOverOut(!1,a)}})).on("mousemove",(function(t,n){var i=e.updateAngle(n),a=i?e.convertToArcData(i):null;r.event=t,e.showTooltip([a],this)})),i&&e.hasArcType()&&!e.radars){e.$el.svg.on("touchstart touchmove",(function(t){var n,i;if(!r.transiting){r.event=t;var a=function(t){var e=t.changedTouches[0];return In(Pn.elementFromPoint(e.clientX,e.clientY))}(t),u=a.datum(),c=null!=(n=u)&&n.data&&u.data.id?e.updateAngle(u):null,l=c?e.convertToArcData(c):null,f=(null==(i=l)?void 0:i.id)||void 0;e.callOverOutForTouch(l),Fa(f)?s():o(this,l,f)}}))}},redrawArcText:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.main,s=a.arcs,u=n.hasType("gauge"),c=n.hasMultiArcGauge();if(u&&1===n.data.targets.length&&r.gauge_title||(e=o.selectAll("."+So.chartArc).select("text").style("opacity","0").attr("class",(function(t){return n.isGaugeType(t.data)?Po.gaugeValue:null})).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",(function(t){return n.isGaugeType(t.data)&&1===n.data.targets.length&&!c?Math.round(i.radius/5)+"px":null})).transition().duration(t).style("opacity",(function(t){return n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?null:"0"})),c&&e.attr("dy","-.1em")),o.select("."+So.chartArcsTitle).style("opacity",n.hasType("donut")||u?null:"0"),u){var l,f=r.gauge_fullCircle;f&&(null==(l=e)||l.attr("dy",""+(c?0:Math.round(i.radius/14)))),r.gauge_label_show&&(s.select("."+Po.chartArcsGaugeUnit).attr("dy",(f?1.5:.75)+"em").text(r.gauge_units),s.select("."+Po.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(f?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_min,!1)),f||s.select("."+Po.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_max,!0)))}}};function Lh(t){return t[0]}function Ph(t){return t[1]}function Dh(t,e){var n=gh(!0),r=null,i=Gl,a=null;function o(o){var s,u,c,l=(o=dh(o)).length,f=!1;for(null==r&&(a=i(c=Th())),s=0;s<=l;++s)!(s<l&&n(u=o[s],s,o))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,s,o),+e(u,s,o));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?Lh:gh(t),e="function"==typeof e?e:void 0===e?Ph:gh(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:gh(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}var Nh={initArea:function(t){var e=this.config;t.insert("g","."+(e.area_front?Co.circles:No.lines)).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,r=t.$el.defs;t.data.targets.forEach((function(i){var a=n+"-areaGradient"+t.getTargetSelectorSuffix(i.id);if(t.isAreaType(i)&&r.select("#"+a).empty()){var o=t.color(i),s=e.area_linearGradient,u=s.x,c=void 0===u?[0,0]:u,l=s.y,f=void 0===l?[0,1]:l,h=s.stops,d=void 0===h?[[0,o,1],[1,o,0]]:h,g=r.append("linearGradient").attr("id",""+a).attr("x1",c[0]).attr("x2",c[1]).attr("y1",f[0]).attr("y2",f[1]);d.forEach((function(e){var n=Da(e[1])?e[1].bind(t.api)(i.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])}))}}))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#"+e.state.datetimeId+"-areaGradient"+e.getTargetSelectorSuffix(t.id)+")":e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;r.area_linearGradient&&n.updateAreaGradient();var u=s.main.selectAll("."+ko.areas).selectAll("."+ko.area).data(n.lineData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.area=u.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(){return i.orgAreaOpacity=In(this).style("opacity"),"0"})).merge(u),u.style("opacity",i.orgAreaOpacity)},redrawArea:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?this.$el.subchart:this.$el).area,a=r.state.orgAreaOpacity;return[r.$T(i,e,io()).attr("d",t).style("fill",r.updateAreaColor.bind(r)).style("opacity",(function(t){return(r.isAreaRangeType(t)?a/1.75:a)+""}))]},generateDrawArea:function(t,e){var n=this,r=n.config,i=r.line_connectNull,a=r.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(t){return(e?n.subxx:n.xx).call(n,t)},c=function(t,r){return n.isGrouped(t.id)?o(t,r)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"high"):n.getShapeYMin(t.id))},l=function(t,r){return n.isGrouped(t.id)?o(t,r)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"low"):t.value)};return function(t){var e,o=i?n.filterRemoveNull(t.values):t.values,s=0,f=0;if(n.isAreaType(t)){var h=function(t,e,n){var r=null,i=gh(!0),a=null,o=Gl,s=null;function u(u){var c,l,f,h,d,g=(u=dh(u)).length,p=!1,v=Array(g),y=Array(g);for(null==a&&(s=o(d=Th())),c=0;c<=g;++c){if(!(c<g&&i(h=u[c],c,u))===p)if(p=!p)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=c-1;f>=l;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}p&&(v[c]=+t(h,c,u),y[c]=+e(h,c,u),s.point(r?+r(h,c,u):v[c],n?+n(h,c,u):y[c]))}if(d)return s=null,d+""||null}function c(){return Dh().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Lh:gh(+t),e="function"==typeof e?e:gh(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Ph:gh(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:gh(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gh(+t),u):r},u.y=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:gh(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:gh(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:gh(!!t),u):i},u.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),u):o},u.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),u):a},u}();h=a?h.y(u).x0(c).x1(l):h.x(u).y0(r.area_above?0:c).y1(l),i||(h=h.defined((function(t){return null!==n.getBaseValue(t)}))),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=h.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),f=n.getYScaleById(t.id)(o[0].value)),e=a?"M "+f+" "+s:"M "+s+" "+f;return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);return r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c),[[f,l],[f,h-(c-l)],[f,h-(c-l)],[f,l]]}}},zh={initBar:function(){var t=this.$el,e=this.config,n=this.state.clip;t.bar=t.main.select("."+Eo.chart).insert("g",":first-child").attr("class",Oo.chartBars),!1===e.clipPath&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",n.pathXAxis.replace(/#[^)]*/,"#"+n.id))},updateTargetsForBar:function(t){var e=this,n=e.config,r=e.$el,i=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;r.bar||e.initBar(),e.$el.main.select("."+Oo.chartBars).selectAll("."+Oo.chartBar).data(t.filter((function(t){return t.values.some((function(t){return za(t.value)||e.isBarRangeType(t)}))}))).attr("class",(function(t){return i(t)+o(t)})).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events","none").append("g").attr("class",a).style("cursor",(function(t){var n;return null!=(n=s)&&null!=n.bind&&n.bind(e.api)(t)?"pointer":null}))},updateBar:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("bar",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+Oo.bars).selectAll("."+Oo.bar).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove(),a.bar=u.enter().append("path").attr("class",o).style("fill",n.color).merge(u).style("opacity",s)},redrawBar:function(t,e,n){void 0===n&&(n=!1);var r=this,i=(n?r.$el.subchart:r.$el).bar;return[r.$T(i,e,io()).attr("d",(function(e){return(za(e.value)||r.isBarRangeType(e))&&t(e)})).style("fill",this.color).style("opacity",null)]},generateDrawBar:function(t,e){var n=this,r=n.config,i=n.generateGetBarPoints(t,e),a=r.axis_rotated,o=r.bar_radius,s=r.bar_radius_ratio,u=za(o)&&o>0?function(){return o}:za(s)?function(t){return t*s}:null;return function(t,e){var r=i(t,e),o=+a,s=+!o,c=t.value<0,l=["",""],f=0,h=n.isGrouped(t.id),d=0!==t.value&&u,g=!(!d||!h)&&n.isStackingRadiusData(t);if(d&&(!h||g)){var p=a?s:o,v=r[2][p]-r[0][p],y="a"+(f=u(v))+","+f+" "+(c?"1 0 0":"0 0 1")+" ";l[+!a]=""+y+f+","+f,l[+a]=""+y+[-f,f][a?"sort":"reverse"](),c&&l.reverse()}var x=a?"H"+(r[1][o]-f)+" "+l[0]+"V"+(r[2][s]-f)+" "+l[1]+"H"+r[3][o]:"V"+(r[1][s]+(c?-f:f))+" "+l[0]+"H"+(r[2][o]-f)+" "+l[1]+"V"+r[3][s];return"M"+r[0][o]+","+r[0][s]+x+"z"}},isStackingRadiusData:function(t){var e=this,n=e.config,r=e.data,i=t.id,a=t.index,o=t.value,s=n.data_groups.find((function(t){return t.indexOf(i)>-1})),u=e.orderTargets(e.filterTargetsToShow(r.targets.filter(e.isBarType,e))).filter((function(t){return s.indexOf(t.id)>-1})).map((function(t){return t.values.filter((function(t){return t.index===a&&(o>0?t.value>0:t.value<0)}))[0]})).filter(Boolean).map((function(t){return t.id}));return 0!==o&&u.indexOf(i)===u.length-1},generateGetBarPoints:function(t,e){var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a=l.call(n,t.id,e)(n.getShapeYMin(t.id)),f=c(t,i)||a,h=za(o)?o:o[t.id]||o._$width,d=s(t),g=u(t);r.axis_rotated&&(t.value>0&&g<a||t.value<0&&a<g)&&(g=a),n.isBarRangeType(t)||(g-=a-f);var p=d+h;return[[d,f],[d,g],[p,g],[p,f]]}}};function Fh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var jh={initCandlestick:function(){var t=this.$el;t.candlestick=t.main.select("."+Eo.chart).append("g").attr("class",Ro.chartCandlesticks)},updateTargetsForCandlestick:function(t){var e=this,n=e.$el,r=e.getChartClass("Candlestick"),i=e.classFocus.bind(e);n.candlestick||e.initCandlestick(),e.$el.main.select("."+Ro.chartCandlesticks).selectAll("."+Ro.chartCandlestick).data(t).attr("class",(function(t){return r(t)+i(t)})).enter().append("g").attr("class",r).style("pointer-events","none")},updateCandlestick:function(t,e){void 0===e&&(e=!1);var n=this,r=n.$el,i=n.$T,a=e?r.subchart:r,o=n.getClass("candlestick",!0),s=n.initialOpacity.bind(n),u=a.main.selectAll("."+Ro.chartCandlestick).selectAll("."+Ro.candlestick).data(n.labelishData.bind(n));i(u.exit(),t).style("opacity","0").remove();var c=u.enter().filter((function(t){return t.value})).append("g").attr("class",o);c.append("line"),c.append("path"),a.candlestick||(a.candlestick={}),a.candlestick=u.merge(c).style("opacity",s)},generateDrawCandlestick:function(t,e){var n=this,r=n.config,i=n.generateGetCandlestickPoints(t,e),a=r.axis_rotated,o=r.candlestick_color_down;return function(t,e,r){var s,u=i(t,e),c=null==(s=n.getCandlestickData(t))?void 0:s._isUp,l=+a;r.classed&&r.classed(Ro[c?"valueUp":"valueDown"],!0);var f=a?"H"+u[1][1]+" V"+u[1][0]+" H"+u[0][1]:"V"+u[1][1]+" H"+u[1][0]+" V"+u[0][1];r.select("path").attr("d","M"+u[0][l]+","+u[0][+!l]+f+"z").style("fill",(function(t){return(c?n.color(t):Wa(o)?o[t.id]:o)||n.color(t)}));var h=r.select("line"),d=a?{x1:u[2][1],x2:u[2][2],y1:u[2][0],y2:u[2][0]}:{x1:u[2][0],x2:u[2][0],y1:u[2][1],y2:u[2][2]};for(var g in d)h.attr(g,d[g])}},generateGetCandlestickPoints:function(t,e){void 0===e&&(e=!1);var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("candlestick",i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a,f=l.call(n,t.id,e)(n.getShapeYMin(t.id)),h=c(t,i)||f,d=za(o)?o:o[t.id]||o._$width,g=n.getCandlestickData(t);if(g){var p={start:s(t),end:0};p.end=p.start+d;var v={start:u(g.open),end:u(g.close)},y={x:p.start+d/2,high:u(g.high),low:u(g.low)};r.axis_rotated&&(t.value>0&&v.start<f||t.value<0&&f<v.start)&&(v.start=f),v.start-=f-h,a=[[p.start,v.start],[p.end,v.end],[y.x,y.low,y.high]]}else a=[[0,0],[0,0],[0,0,0]];return a}},redrawCandlestick:function(t,e,n){void 0===n&&(n=!1);var r=this.$el,i=this.$T,a=(n?r.subchart:r).candlestick,o=io(!0);return[a.each((function(n,r){var a=i(In(this),e,o);t(n,r,a)})).style("opacity",null)]},getCandlestickData:function(t){var e,n=t.value;if(Ha(n)){var r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=void 0!==s&&s;e={open:r,high:i,low:a,close:o},!1!==u&&(e.volume=u)}else Wa(n)&&(e=function(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Fh(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Fh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}({},n));return e&&(e._isUp=e.close>=e.open),e||null}},Bh={initGauge:function(){var t=this,e=t.config,n=t.$el.arcs,r=function(t){n.append("text").attr("class",t).style("text-anchor","middle").style("pointer-events","none")};if(t.hasType("gauge")){var i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",So.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&r(Po.chartArcsGaugeUnit),e.gauge_label_show&&(r(Po.chartArcsGaugeMin),e.gauge_fullCircle||r(Po.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);r+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=r-e.gauge_min)},redrawMultiArcGauge:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.state.hiddenTargetIds,a=r.main.selectAll("."+So.arcs).selectAll("."+So.arcLabelLine).data(t.arcData.bind(t));a.enter().append("rect").attr("class",(function(t){return So.arcLabelLine+" "+Eo.target+" "+Eo.target+"-"+t.data.id})).merge(a).style("fill",(function(e){return t.levelColor?t.levelColor(e.data.values[0].value):t.color(e.data)})).style("display",e.gauge_label_show?null:"none").each((function(e){var r=0,a=0,o=0,s="";if(i.indexOf(e.data.id)<0){var u=t.updateAngle(e),c=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,f=n.radius-c,h=l-(0===f?0:1/f);r=n.radiusExpanded-n.radius+c,a=Math.cos(h)*f,o=Math.sin(h)*f,s="rotate("+180*l/Math.PI+", "+a+", "+o+")"}In(this).attr("x",a).attr("y",o).attr("width",r).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(r+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return Da(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},Xh={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,r=e.height,i=cs,a=t.cache.get(i);return a||t.cache.add(i,a=vo("min",[n,r])),a},getBubbleR:function(t){var e=this,n=e.config.bubble_maxR;Da(n)?n=n.bind(e.api)(t):za(n)||(n=e.getBaseLength()/(2*e.getMaxDataCount())+12);var r=vo("max",e.getMinMaxData().max.map((function(t){return e.isBubbleZType(t)?e.getBubbleZData(t.value,"y"):Wa(t.value)?t.value.mid:t.value}))),i=n*n*Math.PI,a=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return Wa(t)?t[e]:t["y"===e?0:1]}},$h={initLine:function(){var t=this.$el;t.line=t.main.select("."+Eo.chart).append("g").attr("class",No.chartLines)},updateTargetsForLine:function(t){var e=this,n=e.$el,r=n.area,i=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);i||e.initLine();var c=t.filter((function(t){return!(e.isScatterType(t)||e.isBubbleType(t))})),l=a.select("."+No.chartLines).selectAll("."+No.chartLine).data(c).attr("class",(function(t){return o(t)+u(t)})),f=l.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events","none");f.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!r&&f.empty()?l:f),e.updateTargetForCircle(c,f)},updateLine:function(t,e){void 0===e&&(e=!1);var n=this,r=n.format.extraLineClasses,i=n.$el,a=n.$T,o=e?i.subchart:i,s=o.main.selectAll("."+No.lines).selectAll("."+No.line).data(n.lineData.bind(n));a(s.exit(),t).style("opacity","0").remove(),o.line=s.enter().append("path").attr("class",(function(t){return n.getClass("line",!0)(t)+" "+(r(t)||"")})).style("stroke",n.color).merge(s).style("opacity",n.initialOpacity.bind(n)).style("shape-rendering",(function(t){return n.isStepType(t)?"crispEdges":""})).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);var r=this.$el;return[(0,this.$T)((n?r.subchart:r).line,e,io()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var r=e.getInterpolate(t)(n);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,r=n.config,i=n.scale,a=r.line_connectNull,o=r.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,r){return n.isGrouped(t.id)?s(t,r)[0][1]:u(t.id,e)(n.getBaseValue(t))},f=Dh();f=o?f.x(l).y(c):f.x(c).y(l),a||(f=f.defined((function(t){return null!==n.getBaseValue(t)})));var h=e?i.subX:i.x;return function(t){var s,c=u(t.id,e),l=a?n.filterRemoveNull(t.values):t.values,d=0,g=0;if(n.isLineType(t)){var p=r.data_regions[t.id];p?s=n.lineWithRegions(l,i.zoom||h,c,p):(n.isStepType(t)&&(l=n.convertValuesToStep(l)),s=f.curve(n.getCurve(t))(l))}else l[0]&&(d=h(l[0].x),g=c(l[0].value)),s=o?"M "+g+" "+d:"M "+d+" "+g;return s||"M 0 0"}},lineWithRegions:function(t,e,n,r){var i,a,o,s,u=this,c=u.config.axis_rotated,l=u.axis.isTimeSeries(),f=u.axis.isCategorized()?.5:0,h=[],d=function(t,e){for(var n,r=0;n=e[r];r++)if(n.start<t&&t<=n.end)return n.style;return!1};if(ja(r))for(var g,p=function(t,e){return Fa(t)?e:l?mo.call(u,t):t},v=0;g=r[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),_=g.style||{dasharray:"2 2"};h[v]={start:y,end:x,style:_}}for(var m,b=c?function(t){return n(t.value)}:function(t){return e(t.x)},w=c?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]},A=l?function(t,r,i,s){var u=t.x.getTime(),l=r.x-t.x,f=new Date(u+l*i),h=new Date(u+l*(i+s)),d=c?[[n(a(i)),e(f)],[n(a(i+o)),e(h)]]:[[e(f),n(a(i))],[e(h),n(a(i+o))]];return T(d)}:function(t,r,o,s){var u=c?[[n(a(o),!0),e(i(o))],[n(a(o+s),!0),e(i(o+s))]]:[[e(i(o),!0),n(a(o))],[e(i(o+s),!0),n(a(o+s))]];return T(u)},E={x:u.axis.getAxisType("x"),y:u.axis.getAxisType("y")},S="",k=0;m=t[k];k++){var M=t[k-1],O=M&&Pa(M.value);_=d(m.x,h);if(Pa(m.value))if(!Fa(h)&&_&&O){if(O){try{_=_.dasharray.split(" ")}catch(t){_="2 2".split(" ")}i=Gc(E.x,M.x+f,m.x+f),a=Gc(E.y,M.value,m.value);var R=e(m.x)-e(M.x),C=n(m.value)-n(M.value),I=Math.sqrt(Math.pow(R,2)+Math.pow(C,2));s=(o=_[0]/I)*_[1];for(var L=o;L<=1;L+=s)S+=A(M,m,L,o),L+s>=1&&(S+=A(M,m,1,0))}}else S+=(k&&O?"L":"M")+b(m)+","+w(m)}return S},isWithinStep:function(t,e){return Math.abs(e-eo(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Ha(e)&&-1!==e.indexOf(t.id)}},Uh=function(){return io()},Yh={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Ya(e)&&Da(e.create)&&Da(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,r=e.point_opacity;return Fa(r)&&(r=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Fa(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=Pa(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+Co.chartCircles).empty()&&e.select("."+Eo.chart).append("g").attr("class",Co.chartCircles)},updateTargetForCircle:function(t,e){var n=this,r=this,i=r.config,a=r.data,o=r.$el,s=i.interaction_enabled&&i.data_selection_enabled,u=s&&i.data_selection_isselectable,c=r.getClass("circles",!0);if(i.point_show){o.circle||r.initCircle();var l=t,f=e;if(!l){l=a.targets.filter((function(t){return n.isScatterType(t)||n.isBubbleType(t)}));var h=o.main.select("."+Co.chartCircles).style("pointer-events","none").selectAll("."+Co.circles).data(l).attr("class",c);h.exit().remove(),f=h.enter()}s&&f.append("g").attr("class",(function(t){return r.generateClass(Yo.selectedCircles,t.id)})),f.append("g").attr("class",c).style("cursor",(function(t){return Da(u)&&u(t)?"pointer":null})),s&&l.forEach((function(t){o.main.selectAll("."+Yo.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll(""+Yo.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))}},updateCircle:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state,i=e.$el,a=n.point_focus_only,o=t?i.subchart:i;if(n.point_show&&!r.toggling){var s=o.main.selectAll("."+Co.circles).selectAll("."+Co.circle).data((function(t){return e.isLineType(t)&&e.shouldDrawPointsForLine(t)||e.isBubbleType(t)||e.isRadarType(t)||e.isScatterType(t)?a?[t.values[0]]:t.values:[]}));s.exit().remove(),s.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.color)),o.circle=o.main.selectAll("."+Co.circles+" ."+Co.circle).style("stroke",e.color).style("opacity",e.initialOpacityForCircle.bind(e))}},redrawCircle:function(t,e,n,r,i){void 0===i&&(i=!1);var a=this,o=a.state.rendered,s=a.$el,u=a.$T,c=i?s.subchart:s,l=c.main.selectAll("."+Yo.selectedCircle);if(!a.config.point_show)return[];var f=a.point("update",a,t,e,a.color,n,r,l),h=a.isCirclePoint()?"c":"",d=io(),g=a.opacityForCircle.bind(a),p=[];return c.circle.each((function(t){var e=f.bind(this)(t);e=u(e,n||!o,d).style("opacity",g),p.push(e)})),[p,u(l,n).attr(h+"x",t).attr(h+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,r=e.state,i=r.hasRadar,a=r.resizing,o=r.toggling,s=r.transiting,u=e.$el.circle;if(!1===s&&n.point_focus_only&&u){var c=(i?e.radarCircleX:e.circleX).bind(e),l=(i?e.radarCircleY:e.circleY).bind(e),f=o||Fa(t),h=e.point("update",e,c,l,e.color,!a&&f);t&&(u=u.filter((function(e){var n=t.filter((function(t){return t.id===e.id}));return!!n.length&&In(this).datum(n[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each((function(t){var n=t.id,r=t.index,i=t.value,a="hidden";Pa(i)&&(h.bind(this)(t),e.expandCircles(r,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){void 0===t&&(t=!1);var e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return function(r,i){var a=r.id;return e.isGrouped(a)?n(r,i)[0][1]:e.getYScaleById(a,t)(e.getBaseValue(r))}},expandCircles:function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles();var a=r.getShapeByIndex("circle",t,e).classed(Eo.EXPANDED,!0),o=i(a)/r.config.point_r,s=1-o;r.isCirclePoint()?a.attr("r",i):a.each((function(){var t=In(this);if("circle"===this.tagName)t.attr("r",i);else{var e=this.getBBox(),n=e.width,r=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+r/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),r=e.getShapeByIndex("circle",t).filter((function(){return In(this).classed(Eo.EXPANDED)})).classed(Eo.EXPANDED,!1);r.attr("r",n),e.isCirclePoint()||r.attr("transform","scale("+n(r)/e.config.point_r+")")},pointR:function(t){var e=this,n=e.config.point_r,r=n;return e.isBubbleType(t)?r=e.getBubbleR(t):Da(n)&&(r=n.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,r=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*r:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Da(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=eo(this.state.event,t),r=In(t),i=this.isCirclePoint(t)?"c":"",a=+r.attr(i+"x"),o=+r.attr(i+"y");if(!a&&!o&&1===t.nodeType){var s=ro(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,r=function(t,e){for(var n,r=t.attributes,i=0;n=r[i];i++)n=n.name,e.setAttribute(n,t.getAttribute(n))},i=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,a=Pn.createElementNS(Ie.svg,i.nodeName.toLowerCase());if(a.id=e,a.style.fill="inherit",a.style.stroke="inherit",r(i,a),null!=(n=i.childNodes)&&n.length){var o=In(a);"innerHTML"in a?o.html(i.innerHTML):co(i.childNodes).forEach((function(t){r(t,o.append(t.tagName).node())}))}this.$el.defs.node().appendChild(a)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,r=!1;return(Wa(t)||n)&&(r=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(Eo.EXPANDED)>-1&&(n+=" "+Eo.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),r},generateGetLinePoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c);var d=[f,h-(c-l)];return[d,d,d,d]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,r=[],i=Ga(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u,c=t.getTargetSelectorSuffix(o.id||(null==(u=o.data)?void 0:u.id)||o),l=In(this);r.indexOf(c)<0&&r.push(c);var f=i[r.indexOf(c)%i.length];if(t.hasValidPointType(f))f=t[f];else if(!t.hasValidPointDrawMethods(f)){var h=n+"-point"+c;if(t.pointFromDefs(h).size()<1&&t.insertPointInfoDefs(f,h),"create"===e)return t.custom.create.bind(a).apply(void 0,[l,h].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[l].concat(s))}return f[e].bind(a).apply(void 0,[l].concat(s))}}},custom:{create:function(t,e,n,r){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update:function(t,e,n,r,i,a,o){var s=t.node().getBBox(),u=s.width,c=s.height,l=function(t){return Pa(t.value)?e(t)-u/2:0},f=t;return i&&(a&&f.attr("x",l),f=this.$T(f,i,Uh()),o&&this.$T(o,i,Uh())),f.attr("x",l).attr("y",(function(t){return Pa(t.value)?n(t)-c/2:0})).style("fill",r)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=t;return s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),i&&(a&&u.attr("cx",e),u.attr("cx")&&(u=s.$T(u,i,Uh())),o&&s.$T(u,i,Uh())),u.attr("cx",e).attr("cy",n).style("fill",r)}},rectangle:{create:function(t,e,n){var r=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=s.config.point_r,c=function(t){return e(t)-u},l=t;return i&&(a&&l.attr("x",c),l=s.$T(l,i,Uh()),o&&s.$T(o,i,Uh())),l.attr("x",c).attr("y",(function(t){return n(t)-u})).style("fill",r)}}};function Vh(t){var e=t.config.polar_level_max,n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Gh={initPolar:function(){var t=this,e=t.$el.arcs,n=t.config,r=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Xo),r&&i&&t.generateDataLabelBackgroundColorFilter(i)},getPolarOuterRadius:function(t,e){var n=Vh(this);return(null==t?void 0:t.data.values[0].value)/n*e},updateTargetsForPolar:function(t){this.updateTargetsForArc(t)},redrawPolar:function(){this.config.polar_level_show&&this.updatePolarLevel()},updatePolarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.arcs.levels,i=e.polar_level_depth,a=Vh(t),o=yo(0,i),s=n.radius,u=o.map((function(t){return s*((t+1)/i)})),c=(e.polar_level_text_format||function(){}).bind(t.api),l=r.selectAll("."+Bo).data(o);l.exit().remove();var f=l.enter().append("g").attr("class",(function(t,e){return Bo+" "+Bo+"-"+e}));if(f.append("circle"),f.merge(l).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",(function(t){return u[t]})),e.polar_level_text_show){var h=e.polar_level_text_backgroundColor,d="#"+n.datetimeId+"-labels-bg"+t.getTargetSelectorSuffix(h);f.append("text").style("text-anchor","middle"),f.merge(l).selectAll("text").attr("dy",(function(t){return 5-u[t]})).attr("filter",h?"url("+d+")":null).text((function(t){return c(a/o.length*(t+1))}))}}};var Hh=ps,Wh={initRadar:function(){var t=this,e=t.config,n=t.state.current,r=t.$el;t.hasType("radar")&&(r.radar=r.main.select("."+Eo.chart).append("g").attr("class",$o.chartRadars),r.radar.levels=r.radar.append("g").attr("class",Xo),r.radar.axes=r.radar.append("g").attr("class",Mo.axis),r.radar.shapes=r.radar.append("g").attr("class",Vo.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,r=e.arcHeight,i=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,r)-i)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this.config;Va(e.axis_x_categories)&&(e.axis_x_categories=yo(0,vo("max",t.map((function(t){return t.values.length}))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,r){var i=this.config,a=this.getRadarSize(),o=a[0],s=a[1],u=i.axis_x_categories.length,c=i.radar_direction_clockwise,l=co(t).map((function(a){return function(t,e,n,r,i,a){var o=t&&r>0?n-r:r,s=2*Math.PI;return i*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(c,a,u,e,ja(n)?n:"x"===t?o:s,za(r)?r:i.radar_size_ratio)}));return 1===l.length?l[0]:l},generateRadarPoints:function(){var t=this,e=t.data.targets,n=t.getRadarSize(),r=n[0],i=n[1],a=t.cache.get(Hh)||{},o=a._size;(!o||o.width!==r&&o.height!==i)&&(e.forEach((function(e){a[e.id]=e.values.map((function(e,n){return t.getRadarPosition(["x","y"],n,void 0,t.getRatio("radar",e))}))})),a._size={width:r,height:i},t.cache.add(Hh,a))},redrawRadar:function(){var t=this,e=t.$el,n=e.radar,r=e.main,i=t.getTranslate("radar");i&&(n.attr("transform",i),r.select("."+Ho.chartTexts).attr("transform",i),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints:function(){var t=this.cache.get(Hh);return function(e,n){var r=t[e.id][n];return[r,r,r,r]}},updateRadarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.radar,i=t.getRadarSize(),a=i[0],o=i[1],s=e.radar_level_depth,u=e.axis_x_categories.length,c=e.radar_level_text_show,l=r.levels,f=yo(0,s),h=e.radar_size_ratio*Math.min(a,o),d=f.map((function(t){return h*((t+1)/s)})),g=(e.radar_level_text_format||function(){}).bind(t.api),p=f.map((function(e){var n=d[e];return yo(0,u).map((function(e){return t.getRadarPosition(["x","y"],e,n,1).join(",")})).join(" ")})),v=l.selectAll("."+Bo).data(f);v.exit().remove();var y=v.enter().append("g").attr("class",(function(t,e){return Bo+" "+Bo+"-"+e}));y.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(l.select("text").empty()&&l.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text((function(){return g(0)})),y.append("text").attr("dx","-.5em").style("text-anchor","end").text((function(t){return g(n.current.dataMax/f.length*(t+1))}))),y.merge(v).attr("transform",(function(t){return"translate("+(a-d[t])+", "+(o-d[t])+")"})).selectAll("polygon").attr("points",(function(t){return p[t]})),c&&l.selectAll("text").attr("x",(function(t){return Fa(t)?a:p[t].split(",")[0]})).attr("y",(function(t){return Fa(t)?o:0}))},updateRadarAxes:function(){var t=this,e=t.config,n=t.$el.radar,r=t.getRadarSize(),i=r[0],a=r[1],o=e.axis_x_categories,s=n.axes.selectAll("g").data(o);s.exit().remove();var u=s.enter().append("g").attr("class",(function(t,e){return Mo.axis+"-"+e}));if(e.radar_axis_line_show&&u.append("line"),e.radar_axis_text_show&&u.append("text"),s=u.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",i).attr("y1",a).attr("x2",(function(e,n){return t.getRadarPosition("x",n)})).attr("y2",(function(e,n){return t.getRadarPosition("y",n)})),e.radar_axis_text_show){var c=e.radar_axis_text_position,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h;s.select("text").style("text-anchor","middle").attr("dy",".5em").call((function(t){t.each((function(t){Qa(In(this),t+"",[-.6,1.2])}))})).datum((function(t,e){return{index:e}})).attr("transform",(function(e){Fa(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=t.getRadarPosition("x",e.index,void 0,1),r=Math.round(t.getRadarPosition("y",e.index,void 0,1));return n>i?n+=this.width+f:Math.round(n)<i&&(n-=this.width+f),r>a?(r/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),r+=d):r<a&&(r-=d),"translate("+n+" "+r+")"}))}t.bindEvent()},bindEvent:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.radar,a=r.svg,o=e.point_focus_only,s=n,u=s.inputType,c=s.transiting;if(e.interaction_enabled){var l="mouse"===u,f=function(t){var e=t.target;/tspan/i.test(e.tagName)&&(e=e.parentNode);var n=In(e).datum();return n&&1===Object.keys(n).length?n.index:void 0},h=function(e){n.event=e;var r=f(e),i=Fa(r);(l||i)&&(t.hideTooltip(),o?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,r):i&&t.callOverOutForTouch())};i.axes.selectAll("text").on(l?"mouseover ":"touchstart",(function(e){if(!c){n.event=e;var r=f(e);t.selectRectForSingle(a.node(),null,r),l?t.setOverOut(!0,r):t.callOverOutForTouch(r)}})).on("mouseout",l?h:null),l||a.on("touchstart",h)}},updateRadarShape:function(){var t=this,e=t.data.targets.filter((function(e){return t.isRadarType(e)})),n=t.cache.get(Hh),r=t.$el.radar.shapes.selectAll("polygon").data(e),i=r.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(r.exit()).remove(),i.append("polygon").merge(r).style("fill",t.color).style("stroke",t.color).attr("points",(function(t){return n[t.id].join(" ")})),t.updateTargetForCircle(e,i)},radarCircleX:function(t){return this.cache.get(Hh)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(Hh)[t.id][t.index][1]}},qh={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},Zh={area_above:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Kh={bar_label_threshold:0,bar_indices_removeNull:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},Jh={bubble_maxR:35,bubble_zerobased:!1},Qh={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},td={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},ed={scatter_zerobased:!1},nd={spline_interpolation_type:"cardinal"},rd={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},id={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},ad={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},od={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},sd={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1};function ud(t,e){so(sf.prototype,fh.concat(t)),so(xf.prototype,lh),us.setOptions(hh.concat(e||[]))}function cd(t,e){ud([Yh,$h].concat(t||[])),us.setOptions([qh,td].concat(e||[]))}function ld(t,e){so(sf.prototype,[Ih].concat(t||[])),us.setOptions(e)}var fd=function(){return cd(Nh,[Zh]),(fd=function(){return Dn.AREA})()},hd=function(){return cd(Nh,[Zh]),(hd=function(){return Dn.AREA_LINE_RANGE})()},dd=function(){return cd(Nh,[Zh,nd]),(dd=function(){return Dn.AREA_SPLINE})()},gd=function(){return cd(Nh,[Zh,nd]),(gd=function(){return Dn.AREA_SPLINE_RANGE})()},pd=function(){return cd(Nh,[Zh]),(pd=function(){return Dn.AREA_STEP})()},vd=function(){return cd(),(vd=function(){return Dn.LINE})()},yd=function(){return cd(void 0,[nd]),(yd=function(){return Dn.SPLINE})()},xd=function(){return cd(),(xd=function(){return Dn.STEP})()},_d=function(){return ld(void 0,[rd]),(_d=function(){return Dn.DONUT})()},md=function(){return ld([Bh],[id]),(md=function(){return Dn.GAUGE})()},bd=function(){return ld(void 0,[ad]),(bd=function(){return Dn.PIE})()},wd=function(){return ld([Gh],[od]),(wd=function(){return Dn.POLAR})()},Td=function(){return ld([Yh,Wh],[qh,sd]),(Td=function(){return Dn.RADAR})()},Ad=function(){return ud([zh],Kh),(Ad=function(){return Dn.BAR})()},Ed=function(){return ud([Yh,Xh],[Jh,qh]),(Ed=function(){return Dn.BUBBLE})()},Sd=function(){return ud([jh],[Qh]),(Sd=function(){return Dn.CANDLESTICK})()},kd=function(){return ud([Yh],[qh,ed]),(kd=function(){return Dn.SCATTER})()},Md={selected:function(t){var e=this.internal,n=[];return e.$el.main.selectAll("."+(Vo.shapes+e.getTargetSelectorSuffix(t))).selectAll("."+Vo.shape).filter((function(){return In(this).classed(Yo.SELECTED)})).each((function(t){return n.push(t)})),n},select:function(t,e,n){var r=this.internal,i=r.config,a=r.$el;i.data_selection_enabled&&a.main.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).each((function(a,o){var s=In(this),u=a.data?a.data.id:a.id,c=r.getToggle(this,a).bind(r),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(Yo.SELECTED);s.classed(No.line)||s.classed(ko.area)||(l&&f?i.data_selection_isselectable.bind(r.api)(a)&&!h&&c(!0,s.classed(Yo.SELECTED,!0),a,o):ja(n)&&n&&h&&c(!1,s.classed(Yo.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,r=n.config,i=n.$el;r.data_selection_enabled&&i.main.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).each((function(i,a){var o=In(this),s=i.data?i.data.id:i.id,u=n.getToggle(this,i).bind(n),c=r.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,f=o.classed(Yo.SELECTED);o.classed(No.line)||o.classed(ko.area)||c&&l&&r.data_selection_isselectable.bind(n.api)(i)&&f&&u(!1,o.classed(Yo.SELECTED,!1),i,a)}))}},Od={subchart:{show:function(){var t=this.internal,e=t.$el.subchart,n=t.config,r=n.subchart_show;if(!r){var i,a;t.unbindZoomEvent(),n.subchart_show=!r,e.main||t.initSubchart();var o,s=e.main.selectAll("."+Eo.target);if(t.data.targets.length!==s.size())t.updateSizes(),t.updateTargetsForSubchart(t.data.targets),s=null==(o=e.main)?void 0:o.selectAll("."+Eo.target);null==(i=s)||i.style("opacity",null),null==(a=e.main)||a.style("display",null),this.resize()}},hide:function(){var t,e=this.internal,n=e.$el.subchart.main,r=e.config;r.subchart_show&&"none"!==(null==(t=n)?void 0:t.style("display"))&&(r.subchart_show=!1,n.style("display","none"),this.resize())},toggle:function(){var t=this.internal.config;this.subchart[t.subchart_show?"hide":"show"]()}}};function Rd(t){return((t=Math.exp(t))+1/t)/2}var Cd=function t(e,n,r){function i(t,i){var a,o,s=t[0],u=t[1],c=t[2],l=i[0],f=i[1],h=i[2],d=l-s,g=f-u,p=d*d+g*g;if(p<1e-12)o=Math.log(h/c)/e,a=function(t){return[s+t*d,u+t*g,c*Math.exp(e*t*o)]};else{var v=Math.sqrt(p),y=(h*h-c*c+r*p)/(2*c*n*v),x=(h*h-c*c-r*p)/(2*h*n*v),_=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(x*x+1)-x);o=(m-_)/e,a=function(t){var r=t*o,i=Rd(_),a=c/(n*v)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*r+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+a*d,u+a*g,c*i/Rd(e*r+_)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),Id=function(t){return function(){return t}};function Ld(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Pd(t,e,n){this.k=t,this.x=e,this.y=n}Pd.prototype={constructor:Pd,scale:function(t){return 1===t?this:new Pd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Pd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Dd=new Pd(1,0,0);function Nd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Dd;return t.__zoom}function zd(t){t.stopImmediatePropagation()}function Fd(t){t.preventDefault(),t.stopImmediatePropagation()}function jd(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Bd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Xd(){return this.__zoom||Dd}function $d(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ud(){return navigator.maxTouchPoints||"ontouchstart"in this}function Yd(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}Nd.prototype=Pd.prototype;var Vd=function(t){var e=this.internal,n=e.$el,r=e.axis,i=e.config,a=e.org,o=e.scale,s=i.axis_rotated,u=r.isCategorized(),c=t;if(i.zoom_enabled&&c){if(r.isTimeSeries()&&(c=c.map((function(t){return mo.bind(e)(t)}))),function(t,e,n){var r=n[0],i=n[1];return t.every((function(n,a){return(0===a?n>=r:n<=i)&&!t.every((function(t,n){return t===e[n]}))}))}(c,e.getZoomDomain(!0),e.getZoomDomain())){if(u&&(c=c.map((function(t,e){return+t+(0===e?0:1)}))),e.api.tooltip.hide(),i.subchart_show){var l=o.zoom||o.x;e.brush.getSelection().call(e.brush.move,c.map(l))}else{var f,h=u?o.x.orgScale():a.xScale||o.x,d=[-h(c[0]),0],g=(f=Dd.scale(h.range()[1]/(h(c[1])-h(c[0])))).translate.apply(f,s?d.reverse():d);n.eventRect.call(e.zoom.transform,g)}e.setZoomResetButton()}}else c=o.zoom?o.zoom.domain():o.x.orgDomain();return c};so(Vd,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=vo("max",[r[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=vo("min",[r[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Wa(t)){var n=t.min,r=t.max;ja(n)&&e.min(n),ja(r)&&e.max(r)}return{min:e.min(),max:e.max()}}});var Gd={zoom:Vd,unzoom:function(){var t,e=this.internal,n=e.config,r=e.$el,i=r.eventRect,a=r.zoomResetBtn;e.scale.zoom&&(n.subchart_show?e.brush.getSelection().call(e.brush.move,null):e.zoom.updateTransformScale(Dd),e.updateZoom(!0),null==(t=a)||t.style("display","none"),Nd(i.node())!==Dd&&e.zoom.transform(i,Dd))}},Hd={drag:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=r.dragStart||[0,0],u=s[0],c=s[1],l=t[0],f=t[1],h=Math.min(u,l),d=Math.max(u,l),g=a?r.margin.top:Math.min(c,f),p=a?r.height:Math.max(c,f);i.select("."+Lo.dragarea).attr("x",h).attr("y",g).attr("width",d-h).attr("height",p-g),i.selectAll("."+Vo.shapes).selectAll("."+Vo.shape).filter((function(t){var n;return null==(n=o)?void 0:n.bind(e.api)(t)})).each((function(t,n){var r,i=In(this),a=i.classed(Yo.SELECTED),o=i.classed(Lo.INCLUDED),s=!1;if(i.classed(Co.circle)){var u=1*+i.attr("cx"),c=1*+i.attr("cy");r=e.togglePoint,s=h<u&&u<d&&g<c&&c<p}else{if(!i.classed(Oo.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height,i=to(t);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}(this),f=l.x,v=(c=l.y,l.width),y=l.height;r=e.togglePath,s=!(d<f||f+v<h||p<c||c+y<g)}s^o&&(i.classed(Lo.INCLUDED,!o),i.classed(Yo.SELECTED,!a),r.call(e,!a,i,t,n))}))}},dragstart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(r.dragStart=t,i.select("."+Eo.chart).append("rect").attr("class",Lo.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,r=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(r(n.select("."+Lo.dragarea)).style("opacity","0").remove(),n.selectAll("."+Vo.shape).classed(Lo.INCLUDED,!1),t.setDragStatus(!1))}};function Wd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qd(t){for(var e,n=1;n<arguments.length;n++)e=null!=arguments[n]?arguments[n]:{},n%2?Wd(Object(e),!0).forEach((function(n){Fn(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Wd(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Zd=qd(qd({},Hd),{},{selectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T,s=i.axis_rotated,u=(s?r.circleY:r.circleX).bind(r),c=(s?r.circleX:r.circleY).bind(r),l=r.pointSelectR.bind(r);Za(i.data_onselected,r.api,e,t.node()),o(a.select("."+Yo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Yo.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",(function(){return r.generateClass(Yo.selectedCircle,n)})).attr("cx",u).attr("cy",c).attr("stroke",r.color).attr("r",(function(t){return 1.4*r.pointSelectR(t)}))).attr("r",l)},unselectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=r.$T;Za(i.data_onunselected,r.api,e,t.node()),o(a.select("."+Yo.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+Yo.selectedCircle+"-"+n)).attr("r",0).remove()},togglePoint:function(t,e,n,r){this[(t?"":"un")+"selectPoint"](e,n,r)},selectPath:function(t,e){var n=this.config;Za(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this.config;Za(n.data_onunselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,r){this[(t?"":"un")+"selectPath"](e,n,r)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var r=this,i=r.config,a=r.$el.main;if(i.data_selection_enabled&&i.data_selection_isselectable.bind(r.api)(e)){var o,s=In(t),u=s.classed(Yo.SELECTED),c=r.getToggle(t,e).bind(r);if(!i.data_selection_multiple){var l="."+Vo.shapes;i.data_selection_grouped&&(l+=r.getTargetSelectorSuffix(e.id)),a.selectAll(l).selectAll("."+Vo.shape).each((function(t,e){var n=In(this);n.classed(Yo.SELECTED)&&(o=n,c(!1,n.classed(Yo.SELECTED,!1),t,e))}))}o&&o.node()===s.node()||(s.classed(Yo.SELECTED,!u),c(!u,s,e,n))}}}),Kd={initBrush:function(){var t,e,n=this,r=n.config,i=n.scale,a=n.$el.subchart,o=r.axis_rotated;n.brush=Ca(o?xa:ya).handleSize(5);n.brush.on("start brush end",(function(e){var r=e.selection,a=e.target,s=e.type;"start"===s&&"touch"===n.state.inputType&&n.hideTooltip(),/(start|brush)/.test(s)&&n.redrawForBrush(),"end"===s&&(t=i.x.orgDomain()),null!=a&&a.handle&&(null===r?n.brush.handle.attr("display","none"):n.brush.handle.attr("display",null).attr("transform",(function(t,e){return"translate("+(o?[33,r[e]-(0===e?30:24)]:[r[e],3])+")"})))})),n.brush.updateResize=function(){var n=this;e&&clearTimeout(e),e=setTimeout((function(){var e=n.getSelection();t&&Ra(e.node())&&n.move(e,t.map(i.subX.orgScale()))}),0)},n.brush.update=function(){var t;0===this.extent()()[1].filter((function(t){return isNaN(t)})).length&&(null==(t=a.main)||t.select("."+Zo.brush).call(this));return this},n.brush.scale=function(t){var e=r.subchart_size_height||function(){var t=n.$el.svg.select("."+Zo.brush+" .overlay"),e={width:0,height:0};return t.size()&&(e.width=+t.attr("width"),e.height=+t.attr("height")),e[o?"width":"height"]}(),i=n.getExtent();!i&&t.range?i=[[0,0],[t.range()[1],e]]:Ha(i)&&(i=i.map((function(t,n){return[t,n>0?e:n]}))),o&&i[1].reverse(),this.extent(i),this.update()},n.brush.getSelection=function(){return a.main?a.main.select("."+Zo.brush):In([])}},initSubchart:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.hasAxis,a=t.$el,o=a.defs,s=a.svg,u=a.subchart,c=a.axis;if(i){var l=e.subchart_show?null:"hidden",f=r.id+"-subchart",h=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),u.main=s.append("g").classed(Zo.subchart,!0).attr("transform",t.getTranslate("context"));var d=u.main;d.style("visibility",l),d.append("g").attr("clip-path",h).attr("class",Zo.chart),["bar","line","bubble","candlestick","scatter"].forEach((function(e){var n=uo(/^(bubble|scatter)$/.test(e)?"circle":e);if(t.hasType(e)||t.hasTypeOf(n)){var r=d.select("."+Zo.chart),i=Zo["chart"+n+"s"];r.select("."+i).empty()&&r.append("g").attr("class",i)}}));var g=d.append("g").attr("clip-path",h).attr("class",Zo.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(g),c.subX=d.append("g").attr("class",Zo.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?l:"hidden")}},addBrushHandle:function(t){var e=this.config,n=e.axis_rotated,r=e.subchart_init_range,i="handle--custom",a=n?["M 5.2491724,29.749209 a 6,6 0 0 0 -5.50000003,-6.5 H -5.7508276 a 6,6 0 0 0 -6.0000004,6.5 z m -5.00000003,-2 H -6.7508276 m 6.99999997,-2 H -6.7508276Z","M 5.2491724,23.249172 a 6,-6 0 0 1 -5.50000003,6.5 H -5.7508276 a 6,-6 0 0 1 -6.0000004,-6.5 z m -5.00000003,2 H -6.7508276 m 6.99999997,2 H -6.7508276Z"]:["M 0 18 A 6 6 0 0 0 -6.5 23.5 V 29 A 6 6 0 0 0 0 35 Z M -2 23 V 30 M -4 23 V 30Z","M 0 18 A 6 6 0 0 1 6.5 23.5 V 29 A 6 6 0 0 1 0 35 Z M 2 23 V 30 M 4 23 V 30Z"];this.brush.handle=t.selectAll(".handle--custom").data(n?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",i).attr("cursor",(n?"ns":"ew")+"-resize").attr("d",(function(t){return a[+/[se]/.test(t.type)]})).attr("display",r?null:"none")},updateTargetsForSubchart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.subchart.main;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter((function(t){return e.hasType(t)||e.hasTypeOf(uo(t))})).forEach((function(n){var r=/^(bubble|scatter)$/.test(n),a=uo(r?"circle":n),o=e.getChartClass(a,!0),s=e.getClass(r?"circles":n+"s",!0),u=i.select("."+Zo["chart"+a+"s"]);if(r){var c=u.selectAll("."+Zo.circles).data(t.filter(e["is"+uo(n)+"Type"].bind(e))).attr("class",s);c.exit().remove(),c.enter().append("g").attr("class",s)}else{var l=u.selectAll("."+Zo["chart"+a]).attr("class",o).data(t.filter(e["is"+a+"Type"].bind(e))),f=l.enter().append("g").style("opacity","0").attr("class",o).append("g").attr("class",s);l.exit().remove(),"line"===n&&e.hasTypeOf("Area")&&f.append("g").attr("class",e.getClass("areas",!0))}})),i.selectAll("."+Zo.brush+" rect").attr(n.axis_rotated?"width":"height",n.axis_rotated?r.width2:r.height2))},redrawSubchart:function(t,e,n){var r,i=this,a=i.config,o=i.$el.subchart.main,s=i.state,u=!!e;if((o.style("visibility",a.subchart_show?null:"hidden"),a.subchart_show)&&("zoom"===(null==(r=s.event)?void 0:r.type)&&i.brush.update(),t)){var c=a.subchart_init_range;if(oo(i)||i.brush.update(),Object.keys(n.type).forEach((function(t){var e=uo(t),r=i["generateDraw"+e](n.indices[t],!0);i["update"+e](u,!0),i["redraw"+e](r,u,!0)})),i.hasType("bubble")||i.hasType("scatter")){var l=n.pos.cx,f=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(l,f,u,void 0,!0)}!s.rendered&&c&&i.brush.move(i.brush.getSelection(),c.map(i.scale.x))}},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,r=e.zoom_rescale,i=t.scale;t.redraw({withTransition:!1,withY:r,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(i.x.orgDomain())},transformContext:function(t,e){var n=this,r=n.$el.subchart,i=n.$T,a=null!=e&&e.axisSubX?e.axisSubX:i(r.main.select("."+Zo.axisX),t);r.main.attr("transform",n.getTranslate("context")),a.attr("transform",n.getTranslate("subX"))},getExtent:function(){var t=this,e=t.config,n=t.scale,r=e.axis_x_extent;if(r)if(Da(r))r=r.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&r.every(isNaN)){var i=mo.bind(t);r=r.map((function(t){return n.subX(i(t))}))}return r}},Jd={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config;n.zoom_enabled&&t?n.subchart_show||e.bindZoomOnEventRect():!1===t&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom:function(){var t=this,e=t.config,n=t.org,r=t.scale,i=function(){var t,e,n,r=jd,i=Bd,a=Yd,o=$d,s=Ud,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Cd,h=Gn("start","zoom","end"),d=0,g=10;function p(t){t.property("__zoom",Xd).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",E).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Pd(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Pd(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,e,n,r){t.on("start.zoom",(function(){m(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,a=arguments,o=m(t,a).event(r),s=i.apply(t,a),u=null==n?x(s):"function"==typeof n?n.apply(t,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,a):e,d=f(l.invert(u).concat(c/l.k),h.invert(u).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=c/e[2];t=new Pd(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function w(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=m(this,n).event(t),l=this.__zoom,f=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,o.apply(this,arguments)))),h=jn(t);if(s.wheel)s.mouse[0][0]===h[0]&&s.mouse[0][1]===h[1]||(s.mouse[1]=l.invert(s.mouse[0]=h)),clearTimeout(s.wheel);else{if(l.k===f)return;s.mouse=[h,l.invert(h)],gi(this),s.start()}Fd(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",a(y(v(l,f),s.mouse[0],s.mouse[1]),s.extent,c))}}function T(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];if(!n&&r.apply(this,arguments)){var s=t.currentTarget,u=m(this,i,!0).event(t),l=In(t.view).on("mousemove.zoom",p,!0).on("mouseup.zoom",(function(t){l.on("mousemove.zoom mouseup.zoom",null),Jn(t.view,u.moved),Fd(t),u.event(t).end()}),!0),f=jn(t,s),h=t.clientX,g=t.clientY;Kn(t.view),zd(t),u.mouse=[f,this.__zoom.invert(f)],gi(this),u.start()}function p(t){if(Fd(t),!u.moved){var e=t.clientX-h,n=t.clientY-g;u.moved=e*e+n*n>d}u.event(t).zoom("mouse",a(y(u.that.__zoom,u.mouse[0]=jn(t,s),u.mouse[1]),u.extent,c))}}function A(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var s=this.__zoom,u=jn(t.changedTouches?t.changedTouches[0]:t,this),f=s.invert(u),h=s.k*(t.shiftKey?.5:2),d=a(y(v(s,h),u,f),i.apply(this,n),c);Fd(t),l>0?In(this).transition().duration(l).call(_,d,u,t):In(this).call(p.transform,d,u,t)}}function E(n){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(r.apply(this,arguments)){var s,u,c,l,f=n.touches,h=f.length,d=m(this,a,n.changedTouches.length===h).event(n);for(zd(n),u=0;u<h;++u)l=[l=jn(c=f[u],this),this.__zoom.invert(l),c.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,s=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(d.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),500)),gi(this),d.start())}}function S(t){if(this.__zooming){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,o,s,u,l=m(this,n).event(t),f=t.changedTouches,h=f.length;for(Fd(t),i=0;i<h;++i)s=jn(o=f[i],this),l.touch0&&l.touch0[2]===o.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===o.identifier&&(l.touch1[0]=s);if(o=l.that.__zoom,l.touch1){var d=l.touch0[0],g=l.touch0[1],p=l.touch1[0],x=l.touch1[1],_=(_=p[0]-d[0])*_+(_=p[1]-d[1])*_,b=(b=x[0]-g[0])*b+(b=x[1]-g[1])*b;o=v(o,Math.sqrt(_/b)),s=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(g[0]+x[0])/2,(g[1]+x[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",a(y(o,s,u),l.extent,c))}}function k(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(this.__zooming){var o,s,u=m(this,i).event(t),c=t.changedTouches,l=c.length;for(zd(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<l;++o)s=c[o],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=jn(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var f=In(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return p.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",Xd),t!==i?_(t,e,n,r):i.interrupt().each((function(){m(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},p.scaleBy=function(t,e,n,r){p.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},p.scaleTo=function(t,e,n,r){p.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,o=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(o),u="function"==typeof e?e.apply(this,arguments):e;return a(y(v(r,u),o,s),t,c)}),n,r)},p.translateBy=function(t,e,n,r){p.transform(t,(function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},p.translateTo=function(t,e,n,r,o){p.transform(t,(function(){var t=i.apply(this,arguments),o=this.__zoom,s=null==r?x(t):"function"==typeof r?r.apply(this,arguments):r;return a(Dd.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),r,o)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=In(this.that).datum();h.call(t,this.that,new Ld(t,{sourceEvent:this.sourceEvent,target:p,type:t,transform:this.that.__zoom,dispatch:h}),e)}},p.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:Id(+t),p):o},p.filter=function(t){return arguments.length?(r="function"==typeof t?t:Id(!!t),p):r},p.touchable=function(t){return arguments.length?(s="function"==typeof t?t:Id(!!t),p):s},p.extent=function(t){return arguments.length?(i="function"==typeof t?t:Id([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),p):i},p.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],p):[u[0],u[1]]},p.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],p):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},p.constrain=function(t){return arguments.length?(a=t,p):a},p.duration=function(t){return arguments.length?(l=+t,p):l},p.interpolate=function(t){return arguments.length?(f=t,p):f},p.on=function(){var t=h.on.apply(h,arguments);return t===h?p:t},p.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,p):Math.sqrt(d)},p.tapDistance=function(t){return arguments.length?(g=+t,p):g},p}().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=function(){var n=e.zoom_extent||[1,10];return[n[0],Math.max(t.getMaxDataCount()/n[1],n[1])]},i.updateScaleExtent=function(){var e=Ua(t.scale.x.orgDomain())/Ua(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this},i.updateTransformScale=function(i){var a;null==(a=n.xScale)||a.range(r.x.range());var o=i[e.axis_rotated?"rescaleY":"rescaleX"](n.xScale||r.x),s=t.trimXDomain(o.domain()),u=e.zoom_rescale;o.domain(s,n.xDomain),t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),r.zoom=t.getCustomizedScale(o),t.axis.x.scale(r.zoom),u&&(n.xScale||(n.xScale=r.x.copy()),r.x.domain(s))},i.getDomain=function(){var e=r[r.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(e[1]-=2),e},t.zoom=i},onZoomStart:function(t){var e=this,n=t.sourceEvent;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Za(e.config.zoom_onzoomstart,e.api,t))},onZoom:function(t){var e,n,r,i,a=this,o=a.config,s=a.scale,u=a.state,c=a.org,l=t.sourceEvent,f=(null==t?void 0:t.transform)===Dd;if(!(!o.zoom_enabled||0===a.filterTargetsToShow(a.data.targets).length||!s.zoom&&(null==(e=l)?void 0:e.type.indexOf("touch"))>-1&&1===(null==(n=l)?void 0:n.touches.length))){t.sourceEvent&&(u.zooming=!0);var h="mousemove"===(null==(r=l)?void 0:r.type),d=(null==(i=l)?void 0:i.wheelDelta)<0,g=t.transform;!h&&d&&s.x.domain().every((function(t,e){return t!==c.xDomain[e]}))&&s.x.domain(c.xDomain),a.zoom.updateTransformScale(g);var p=o.transition_duration>0&&!o.subchart_show&&(u.dragging||f||!t.sourceEvent);a.redraw({withTransition:p,withY:o.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),a.state.cancelClick=h,f||Za(o.zoom_onzoom,a.api,a.zoom.getDomain())}},onZoomEnd:function(t){var e,n,r,i=this,a=i.config,o=i.state,s=i.zoom.startEvent,u=null==t?void 0:t.sourceEvent,c=(null==t?void 0:t.transform)===Dd;(null==(e=s)?void 0:e.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],u=null==(n=u)||null==(r=n.changedTouches)?void 0:r[0]);"drag"===a.zoom_type&&u&&s.clientX===u.clientX&&s.clientY===u.clientY||(i.redrawEventRect(),i.updateZoom(),o.zooming=!1,!c&&(u||o.dragging)&&Za(a.zoom_onzoomend,i.api,i.zoom.getDomain()))},updateZoom:function(t){var e=this,n=e.scale,r=n.subX,i=n.x,a=n.zoom;if(a){var o=a.domain(),s=r.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(r),i.domain(r.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(){var t=this,e=t.config,n=t.$el.eventRect,r="drag"===e.zoom_type?t.zoomBehaviour:t.zoom;t.$el.svg.on("wheel",(function(){})),n.call(r).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=e.config,r=e.state,i=n.axis_rotated,a=0,o=0,s={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=Vs().clickDistance(4).on("start",(function(n){r.event=n,e.setDragStatus(!0),e.unselectRect(),t||(t=e.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",qo.zoomBrush).attr("width",i?r.width:0).attr("height",i?0:r.height)),a=eo(n,this)[s.index],o=a,t.attr(s.axis,a).attr(s.attr,0),e.onZoomStart(n)})).on("drag",(function(e){o=eo(e,this)[s.index],t.attr(s.axis,Math.min(a,o)).attr(s.attr,Math.abs(o-a))})).on("end",(function(n){var i=e.scale.zoom||e.scale.x;if(r.event=n,t.attr(s.axis,0).attr(s.attr,0),a>o){var u=[o,a];a=u[0],o=u[1]}a<0&&(o+=Math.abs(a),a=0),a!==o&&e.api.zoom([a,o].map((function(t){return i.invert(t)}))),e.setDragStatus(!1)}))},setZoomResetButton:function(){var t=this,e=t.config,n=t.$el,r=e.zoom_resetButton;r&&"drag"===e.zoom_type&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Eo.button,!0).append("span").on("click",(function(){Da(r.onclick)&&r.onclick.bind(t.api)(this),t.api.unzoom()})).classed(qo.buttonZoomReset,!0).text(r.text||"Reset Zoom"))}},Qd={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){},data_onunselected:function(){}},tg={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:function(){}},eg={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0},ng=function(){return so(sf.prototype,Zd),so(xf.prototype,Md),us.setOptions([Qd]),(ng=function(){return!0})()},rg=function(){return so(sf.prototype,Kd),so(xf.prototype,Od),us.setOptions([tg]),(rg=function(){return!0})()},ig=function(){return so(sf.prototype,Jd),so(xf.prototype,Gd),us.setOptions([eg]),(ig=function(){return!0})()},ag={},og={version:"3.4.0-next.2",generate:function(t){var e=go({},ag,t),n=new xf(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Wa(t)&&(ag=t),ag},instance:[],plugin:{}};Object.keys(r).forEach((function(t){return r[t]()})),Object.keys(i).forEach((function(t){return i[t]()}))},function(t,e,n){t.exports=n(449)},function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(t,e,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw a;return R()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?g:h,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",g="completed",p={};function v(){}function y(){}function x(){}var _={};u(_,a,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==n&&r.call(b,a)&&(_=b);var w=x.prototype=v.prototype=Object.create(_);function T(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,a,o,s){var u=l(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function a(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(a,a):a()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=x,u(w,"constructor",x),u(x,"constructor",y),y.displayName=u(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},T(A.prototype),u(A.prototype,o,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new A(c(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(447)}()}));
|