/**!
* @license FusionCharts JavaScript Library
* Copyright FusionCharts, Inc.
* License Information at <http://www.fusioncharts.com/license>
*
* @version 4.2.0
*
* @attributions (infers respective third-party copyrights)
* Raphael 2.1.0 (modified as 'Red Raphael') <http://raphaeljs.com/license.html>
* JSON v2 <http://www.JSON.org/js.html>
* Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
*/
"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";var t,r,n,a;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(t=Object(e),r=1;r<arguments.length;r++)if(null!=(n=arguments[r]))for(a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t}),Function.prototype.bind||(Function.prototype.bind=function(e){"use strict";var t,r,n,a;if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return t=Array.prototype.slice.call(arguments,1),r=this,n=function(){},a=function(){return r.apply(this instanceof n?this:e,t.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(n.prototype=this.prototype),a.prototype=new n,a}),!document.head&&(document.head=document.getElementsByTagName("head")[0]),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FusionCharts=t():e.FusionCharts=t()}(self,()=>(()=>{var e,t,r,n,a,i=[,(e,t,r)=>{"use strict";r(2);var n=r(70).Object;e.exports=function(e){return n.getOwnPropertyNames(e)}},(e,t,r)=>{"use strict";var n=r(3),a=r(7),i=r(68).f;n({target:"Object",stat:!0,forced:a(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},(e,t,r)=>{"use strict";var n=r(4),a=r(5).f,i=r(43),o=r(47),s=r(37),l=r(55),c=r(67);e.exports=function(e,t){var r,u,d,h,f,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):n[p]&&n[p].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(f=a(r,u))&&f.value:r[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&d!==undefined){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),o(r,u,h,e)}}},function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},(e,t,r)=>{"use strict";var n=r(6),a=r(8),i=r(10),o=r(11),s=r(12),l=r(18),c=r(38),u=r(41),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(r){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},(e,t,r)=>{"use strict";var n=r(7);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},(e,t,r)=>{"use strict";var n=r(9),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},(e,t,r)=>{"use strict";var n=r(7);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{"use strict";var n=r(13),a=r(16);e.exports=function(e){return n(a(e))}},(e,t,r)=>{"use strict";var n=r(14),a=r(7),i=r(15),o=Object,s=n("".split);e.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):o(e)}:o},(e,t,r)=>{"use strict";var n=r(9),a=Function.prototype,i=a.call,o=n&&a.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},(e,t,r)=>{"use strict";var n=r(14),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},(e,t,r)=>{"use strict";var n=r(17),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null===e||e===undefined}},(e,t,r)=>{"use strict";var n=r(19),a=r(22);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},(e,t,r)=>{"use strict";var n=r(8),a=r(20),i=r(22),o=r(29),s=r(32),l=r(33),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,l=o(e,u);if(l){if(t===undefined&&(t="default"),r=n(l,e,t),!a(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return t===undefined&&(t="number"),s(e,t)}},(e,t,r)=>{"use strict";var n=r(21);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&t!==undefined?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,r)=>{"use strict";var n=r(23),a=r(21),i=r(24),o=r(25),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,s(e))}},(e,t,r)=>{"use strict";var n=r(4),a=r(21);e.exports=function(e,t){return arguments.length<2?(r=n[e],a(r)?r:undefined):n[e]&&n[e][t];var r}},(e,t,r)=>{"use strict";var n=r(14);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{"use strict";var n=r(26);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{"use strict";var n=r(27),a=r(7),i=r(4).String;e.exports=!!Object.getOwnPropertySymbols&&!a(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},(e,t,r)=>{"use strict";var n,a,i=r(4),o=r(28),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},(e,t,r)=>{"use strict";var n=r(4).navigator,a=n&&n.userAgent;e.exports=a?String(a):""},(e,t,r)=>{"use strict";var n=r(30),a=r(17);e.exports=function(e,t){var r=e[t];return a(r)?undefined:n(r)}},(e,t,r)=>{"use strict";var n=r(21),a=r(31),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},(e,t,r)=>{"use strict";var n=r(8),a=r(21),i=r(20),o=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!i(s=n(r,e)))return s;if(a(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!i(s=n(r,e)))return s;throw new o("Can't convert object to primitive value")}},(e,t,r)=>{"use strict";var n=r(4),a=r(34),i=r(38),o=r(40),s=r(26),l=r(25),c=n.Symbol,u=a("wks"),d=l?c["for"]||c:c&&c.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},(e,t,r)=>{"use strict";var n=r(35);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},(e,t,r)=>{"use strict";var n=r(36),a=r(4),i=r(37),o="__core-js_shared__",s=e.exports=a[o]||i(o,{});(s.versions||(s.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,r)=>{"use strict";var n=r(4),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{"use strict";var n=r(14),a=r(39),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},(e,t,r)=>{"use strict";var n=r(16),a=Object;e.exports=function(e){return a(n(e))}},(e,t,r)=>{"use strict";var n=r(14),a=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(e===undefined?"":e)+")_"+o(++a+i,36)}},(e,t,r)=>{"use strict";var n=r(6),a=r(7),i=r(42);e.exports=!n&&!a(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{"use strict";var n=r(4),a=r(20),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{"use strict";var n=r(6),a=r(44),i=r(11);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{"use strict";var n=r(6),a=r(41),i=r(45),o=r(46),s=r(18),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=s(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(o(e),t=s(t),o(r),a)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{"use strict";var n=r(6),a=r(7);e.exports=n&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,r)=>{"use strict";var n=r(20),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},(e,t,r)=>{"use strict";var n=r(21),a=r(44),i=r(48),o=r(37);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=s.name!==undefined?s.name:t;if(n(r)&&i(r,c,s),s.global)l?e[t]=r:o(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},(e,t,r)=>{"use strict";var n=r(14),a=r(7),i=r(21),o=r(38),s=r(6),l=r(49).CONFIGURABLE,c=r(50),u=r(51),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),b=s&&!a(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(a){}var n=d(e);return o(n,"source")||(n.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&h(this).source||c(this)},"toString")},(e,t,r)=>{"use strict";var n=r(6),a=r(38),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=a(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},(e,t,r)=>{"use strict";var n=r(14),a=r(21),i=r(35),o=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},(e,t,r)=>{"use strict";var n,a,i,o=r(52),s=r(4),l=r(20),c=r(43),u=r(38),d=r(35),h=r(53),f=r(54),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(o||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(p);return t.facade=e,v.set(e,t),t},a=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=h("state");f[b]=!0,n=function(e,t){if(u(e,b))throw new g(p);return t.facade=e,c(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{"use strict";var n=r(4),a=r(21),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},(e,t,r)=>{"use strict";var n=r(34),a=r(40),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},e=>{"use strict";e.exports={}},(e,t,r)=>{"use strict";var n=r(38),a=r(56),i=r(5),o=r(44);e.exports=function(e,t,r){for(var s=a(t),l=o.f,c=i.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},(e,t,r)=>{"use strict";var n=r(23),a=r(14),i=r(57),o=r(66),s=r(46),l=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?l(t,r(e)):t}},(e,t,r)=>{"use strict";var n=r(58),a=r(65).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},(e,t,r)=>{"use strict";var n=r(14),a=r(38),i=r(12),o=r(59).indexOf,s=r(54),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,u=[];for(r in n)!a(s,r)&&a(n,r)&&l(u,r);for(;t.length>c;)a(n,r=t[c++])&&(~o(u,r)||l(u,r));return u}},(e,t,r)=>{"use strict";var n=r(12),a=r(60),i=r(63),o=function(e){return function(t,r,o){var s=n(t),l=i(s);if(0===l)return!e&&-1;var c,u=a(o,l);if(e&&r!=r){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},(e,t,r)=>{"use strict";var n=r(61),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},(e,t,r)=>{"use strict";var n=r(62);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},(e,t,r)=>{"use strict";var n=r(64);e.exports=function(e){return n(e.length)}},(e,t,r)=>{"use strict";var n=r(61),a=Math.min;e.exports=function(e){var t=n(e);return t>0?a(t,9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,r)=>{"use strict";var n=r(7),a=r(21),i=/#|\.prototype\./,o=function(e,t){var r=l[s(e)];return r===u||r!==c&&(a(t)?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},(e,t,r)=>{"use strict";var n=r(15),a=r(12),i=r(57).f,o=r(69),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(t){return o(s)}}(e):i(a(e))}},(e,t,r)=>{"use strict";var n=r(14);e.exports=n([].slice)},(e,t,r)=>{"use strict";var n=r(4);e.exports=n},(e,t,r)=>{"use strict";r(72);var n=r(70).Object,a=e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)};n.getOwnPropertyDescriptor.sham&&(a.sham=!0)},(e,t,r)=>{"use strict";var n=r(3),a=r(7),i=r(12),o=r(5).f,s=r(6);n({target:"Object",stat:!0,forced:!s||a(function(){o(1)}),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},(e,t,r)=>{"use strict";r(74);var n=r(70).Object,a=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(a.sham=!0)},(e,t,r)=>{"use strict";var n=r(3),a=r(6),i=r(44).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!a},{defineProperty:i})},(e,t,r)=>{"use strict";r(76);var n=r(70).Object;e.exports=function(e,t){return n.create(e,t)}},(e,t,r)=>{"use strict";r(3)({target:"Object",stat:!0,sham:!r(6)},{create:r(77)})},(e,t,r)=>{"use strict";var n,a=r(46),i=r(78),o=r(65),s=r(54),l=r(80),c=r(42),u=r(53),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?m(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(n);for(var a=o.length;a--;)delete v[d][o[a]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[d]=a(e),r=new p,p[d]=null,r[f]=e):r=v(),t===undefined?r:i.f(r,t)}},(e,t,r)=>{"use strict";var n=r(6),a=r(45),i=r(44),o=r(46),s=r(12),l=r(79);t.f=n&&!a?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=l(t),c=a.length,u=0;c>u;)i.f(e,r=a[u++],n[r]);return e}},(e,t,r)=>{"use strict";var n=r(58),a=r(65);e.exports=Object.keys||function(e){return n(e,a)}},(e,t,r)=>{"use strict";var n=r(23);e.exports=n("document","documentElement")},(e,t,r)=>{"use strict";r(82);var n=r(70);e.exports=n.Object.keys},(e,t,r)=>{"use strict";var n=r(3),a=r(39),i=r(79);n({target:"Object",stat:!0,forced:r(7)(function(){i(1)})},{keys:function(e){return i(a(e))}})},(e,t,r)=>{"use strict";r(84);var n=r(87);e.exports=n("Array","indexOf")},(e,t,r)=>{"use strict";var n=r(3),a=r(85),i=r(59).indexOf,o=r(86),s=a([].indexOf),l=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:undefined;return l?s(this,e,t)||0:i(this,e,t)}})},(e,t,r)=>{"use strict";var n=r(15),a=r(14);e.exports=function(e){if("Function"===n(e))return a(e)}},(e,t,r)=>{"use strict";var n=r(7);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}},(e,t,r)=>{"use strict";var n=r(4),a=r(14);e.exports=function(e,t){return a(n[e].prototype[t])}},(e,t,r)=>{"use strict";r(89);var n=r(87);e.exports=n("Array","forEach")},(e,t,r)=>{"use strict";var n=r(3),a=r(90);n({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},(e,t,r)=>{"use strict";var n=r(91).forEach,a=r(86)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:undefined)}},(e,t,r)=>{"use strict";var n=r(92),a=r(14),i=r(13),o=r(39),s=r(63),l=r(93),c=a([].push),u=function(e){var t=1===e,r=2===e,a=3===e,u=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,g,m,v){for(var b,y,w=o(p),x=i(w),_=s(x),S=n(g,m),k=0,C=v||l,A=t?C(p,_):r||h?C(p,0):undefined;_>k;k++)if((f||k in x)&&(y=S(b=x[k],k,w),e))if(t)A[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:c(A,b)}else switch(e){case 4:return!1;case 7:c(A,b)}return d?-1:a||u?u:A}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},(e,t,r)=>{"use strict";var n=r(85),a=r(30),i=r(9),o=n(n.bind);e.exports=function(e,t){return a(e),t===undefined?e:i?o(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{"use strict";var n=r(94);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},(e,t,r)=>{"use strict";var n=r(95),a=r(96),i=r(20),o=r(33)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(a(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=undefined)),t===undefined?s:t}},(e,t,r)=>{"use strict";var n=r(15);e.exports=Array.isArray||function(e){return"Array"===n(e)}},(e,t,r)=>{"use strict";var n=r(14),a=r(7),i=r(21),o=r(97),s=r(23),l=r(50),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=n(d.exec),f=!d.test(c),p=function(e){if(!i(e))return!1;try{return u(c,[],e),!0}catch(t){return!1}},g=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,l(e))}catch(t){return!0}};g.sham=!0,e.exports=!u||a(function(){var e;return p(p.call)||!p(Object)||!p(function(){e=!0})||e})?g:p},(e,t,r)=>{"use strict";var n=r(98),a=r(21),i=r(15),o=r(33)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),o))?r:l?i(t):"Object"===(n=i(t))&&a(t.callee)?"Arguments":n}},(e,t,r)=>{"use strict";var n={};n[r(33)("toStringTag")]="z",e.exports="[object z]"===String(n)},(e,t,r)=>{"use strict";r(100);var n=r(87);e.exports=n("Array","map")},(e,t,r)=>{"use strict";var n=r(3),a=r(91).map;n({target:"Array",proto:!0,forced:!r(101)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},(e,t,r)=>{"use strict";var n=r(7),a=r(33),i=r(27),o=a("species");e.exports=function(e){return i>=51||!n(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},(e,t,r)=>{"use strict";r(103);var n=r(87);e.exports=n("Array","filter")},(e,t,r)=>{"use strict";var n=r(3),a=r(91).filter;n({target:"Array",proto:!0,forced:!r(101)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},(e,t,r)=>{"use strict";r(105);var n=r(87);e.exports=n("Array","reduce")},(e,t,r)=>{"use strict";var n=r(3),a=r(106).left,i=r(86),o=r(27);n({target:"Array",proto:!0,forced:!r(107)&&o>79&&o<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:undefined)}})},(e,t,r)=>{"use strict";var n=r(30),a=r(39),i=r(13),o=r(63),s=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,r,c,u){var d=a(t),h=i(d),f=o(d);if(n(r),0===f&&c<2)throw new s(l);var p=e?f-1:0,g=e?-1:1;if(c<2)for(;;){if(p in h){u=h[p],p+=g;break}if(p+=g,e?p<0:f<=p)throw new s(l)}for(;e?p>=0:f>p;p+=g)p in h&&(u=r(u,h[p],p,d));return u}};e.exports={left:c(!1),right:c(!0)}},(e,t,r)=>{"use strict";var n=r(108);e.exports="NODE"===n},(e,t,r)=>{"use strict";var n=r(4),a=r(28),i=r(15),o=function(e){return a.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},(e,t,r)=>{"use strict";r(110);var n=r(70);e.exports=n.Array.isArray},(e,t,r)=>{"use strict";r(3)({target:"Array",stat:!0},{isArray:r(95)})},(e,t,r)=>{"use strict";r(112);var n=r(87);e.exports=n("Array","some")},(e,t,r)=>{"use strict";var n=r(3),a=r(91).some;n({target:"Array",proto:!0,forced:!r(86)("some")},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}})},(e,t,r)=>{"use strict";r(114);var n=r(87);e.exports=n("String","trim")},(e,t,r)=>{"use strict";var n=r(3),a=r(115).trim;n({target:"String",proto:!0,forced:r(118)("trim")},{trim:function(){return a(this)}})},(e,t,r)=>{"use strict";var n=r(14),a=r(16),i=r(116),o=r(117),s=n("".replace),l=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var r=i(a(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"$1")),r}};e.exports={start:u(1),end:u(2),trim:u(3)}},(e,t,r)=>{"use strict";var n=r(97),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},e=>{"use strict";e.exports="\t\n\x0B\f\r                　\u2028\u2029\ufeff"},(e,t,r)=>{"use strict";var n=r(49).PROPER,a=r(7),i=r(117);e.exports=function(e){return a(function(){return!!i[e]()||"​᠎"!=="​᠎"[e]()||n&&i[e].name!==e})}},(e,t,r)=>{"use strict";r(120),r(123),r(125),r(139),r(140),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157);var n=r(70);e.exports=n.Symbol},(e,t,r)=>{"use strict";var n=r(3),a=r(7),i=r(95),o=r(20),s=r(39),l=r(63),c=r(121),u=r(122),d=r(93),h=r(101),f=r(33),p=r(27),g=f("isConcatSpreadable"),m=p>=51||!a(function(){var e=[];return e[g]=!1,e.concat()[0]!==e}),v=function(e){if(!o(e))return!1;var t=e[g];return t!==undefined?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(e){var t,r,n,a,i,o=s(this),h=d(o,0),f=0;for(t=-1,n=arguments.length;t<n;t++)if(v(i=-1===t?o:arguments[t]))for(a=l(i),c(f+a),r=0;r<a;r++,f++)r in i&&u(h,f,i[r]);else c(f+1),u(h,f++,i);return h.length=f,h}})},e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},(e,t,r)=>{"use strict";var n=r(6),a=r(44),i=r(11);e.exports=function(e,t,r){n?a.f(e,t,i(0,r)):e[t]=r}},(e,t,r)=>{"use strict";var n=r(98),a=r(47),i=r(124);n||a(Object.prototype,"toString",i,{unsafe:!0})},(e,t,r)=>{"use strict";var n=r(98),a=r(97);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},(e,t,r)=>{"use strict";r(126),r(132),r(134),r(135),r(138)},(e,t,r)=>{"use strict";var n=r(3),a=r(4),i=r(8),o=r(14),s=r(36),l=r(6),c=r(26),u=r(7),d=r(38),h=r(24),f=r(46),p=r(12),g=r(18),m=r(116),v=r(11),b=r(77),y=r(79),w=r(57),x=r(68),_=r(66),S=r(5),k=r(44),C=r(78),A=r(10),N=r(47),E=r(127),L=r(34),T=r(53),M=r(54),F=r(40),D=r(33),I=r(128),O=r(129),P=r(130),R=r(131),j=r(51),B=r(91).forEach,z=T("hidden"),V="Symbol",U="prototype",H=j.set,q=j.getterFor(V),G=Object[U],W=a.Symbol,$=W&&W[U],X=a.RangeError,Y=a.TypeError,K=a.QObject,J=S.f,Z=k.f,Q=x.f,ee=A.f,te=o([].push),re=L("symbols"),ne=L("op-symbols"),ae=L("wks"),ie=!K||!K[U]||!K[U].findChild,oe=function(e,t,r){var n=J(G,t);n&&delete G[t],Z(e,t,r),n&&e!==G&&Z(G,t,n)},se=l&&u(function(){return 7!==b(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?oe:Z,le=function(e,t){var r=re[e]=b($);return H(r,{type:V,tag:e,description:t}),l||(r.description=t),r},ce=function(e,t,r){e===G&&ce(ne,t,r),f(e);var n=g(t);return f(r),d(re,n)?(r.enumerable?(d(e,z)&&e[z][n]&&(e[z][n]=!1),r=b(r,{enumerable:v(0,!1)})):(d(e,z)||Z(e,z,v(1,b(null))),e[z][n]=!0),se(e,n,r)):Z(e,n,r)},ue=function(e,t){f(e);var r=p(t),n=y(r).concat(pe(r));return B(n,function(t){l&&!i(de,r,t)||ce(e,t,r[t])}),e},de=function(e){var t=g(e),r=i(ee,this,t);return!(this===G&&d(re,t)&&!d(ne,t))&&(!(r||!d(this,t)||!d(re,t)||d(this,z)&&this[z][t])||r)},he=function(e,t){var r=p(e),n=g(t);if(r!==G||!d(re,n)||d(ne,n)){var a=J(r,n);return!a||!d(re,n)||d(r,z)&&r[z][n]||(a.enumerable=!0),a}},fe=function(e){var t=Q(p(e)),r=[];return B(t,function(e){d(re,e)||d(M,e)||te(r,e)}),r},pe=function(e){var t=e===G,r=Q(t?ne:p(e)),n=[];return B(r,function(e){!d(re,e)||t&&!d(G,e)||te(n,re[e])}),n};c||(N($=(W=function(){if(h($,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?m(arguments[0]):undefined,t=F(e),r=function(e){var n=this===undefined?a:this;n===G&&i(r,ne,e),d(n,z)&&d(n[z],t)&&(n[z][t]=!1);var o=v(1,e);try{se(n,t,o)}catch(s){if(!(s instanceof X))throw s;oe(n,t,o)}};return l&&ie&&se(G,t,{configurable:!0,set:r}),le(t,e)})[U],"toString",function(){return q(this).tag}),N(W,"withoutSetter",function(e){return le(F(e),e)}),A.f=de,k.f=ce,C.f=ue,S.f=he,w.f=x.f=fe,_.f=pe,I.f=function(e){return le(D(e),e)},l&&(E($,"description",{configurable:!0,get:function(){return q(this).description}}),s||N(G,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),B(y(ae),function(e){O(e)}),n({target:V,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return t===undefined?b(e):ue(b(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),P(),R(W,V),M[z]=!0},(e,t,r)=>{"use strict";var n=r(48),a=r(44);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},(e,t,r)=>{"use strict";var n=r(33);t.f=n},(e,t,r)=>{"use strict";var n=r(70),a=r(38),i=r(128),o=r(44).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},(e,t,r)=>{"use strict";var n=r(8),a=r(23),i=r(33),o=r(47);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&o(t,s,function(e){return n(r,this)},{arity:1})}},(e,t,r)=>{"use strict";var n=r(44).f,a=r(38),i=r(33)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a(e,i)&&n(e,i,{configurable:!0,value:t})}},(e,t,r)=>{"use strict";var n=r(3),a=r(23),i=r(38),o=r(116),s=r(34),l=r(133),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{"for":function(e){var t=o(e);if(i(c,t))return c[t];var r=a("Symbol")(t);return c[t]=r,u[r]=t,r}})},(e,t,r)=>{"use strict";var n=r(26);e.exports=n&&!!Symbol["for"]&&!!Symbol.keyFor},(e,t,r)=>{"use strict";var n=r(3),a=r(38),i=r(22),o=r(31),s=r(34),l=r(133),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(o(e)+" is not a symbol");if(a(c,e))return c[e]}})},(e,t,r)=>{"use strict";var n=r(3),a=r(23),i=r(136),o=r(8),s=r(14),l=r(7),c=r(21),u=r(22),d=r(69),h=r(137),f=r(26),p=String,g=a("JSON","stringify"),m=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),y=s("".replace),w=s(1.1.toString),x=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,k=!f||l(function(){var e=a("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))}),C=l(function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")}),A=function(e,t){var r=d(arguments),n=h(t);if(c(n)||e!==undefined&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=o(n,this,p(e),t)),!u(t))return t},i(g,null,r)},N=function(e,t,r){var n=v(r,t-1),a=v(r,t+1);return m(_,e)&&!m(S,a)||m(S,e)&&!m(_,n)?"\\u"+w(b(e,0),16):e};g&&n({target:"JSON",stat:!0,arity:3,forced:k||C},{stringify:function(e,t,r){var n=d(arguments),a=i(k?A:g,null,n);return C&&"string"==typeof a?y(a,x,N):a}})},(e,t,r)=>{"use strict";var n=r(9),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},(e,t,r)=>{"use strict";var n=r(14),a=r(95),i=r(21),o=r(15),s=r(116),l=n([].push);e.exports=function(e){if(i(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==o(c)&&"String"!==o(c)||l(r,s(c))}var u=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(a(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},(e,t,r)=>{"use strict";var n=r(3),a=r(26),i=r(7),o=r(66),s=r(39);n({target:"Object",stat:!0,forced:!a||i(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},(e,t,r)=>{"use strict";var n=r(4),a=r(129),i=r(44).f,o=r(5).f,s=n.Symbol;if(a("asyncDispose"),s){var l=o(s,"asyncDispose");l.enumerable&&l.configurable&&l.writable&&i(s,"asyncDispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},(e,t,r)=>{"use strict";r(129)("asyncIterator")},(e,t,r)=>{"use strict";var n=r(3),a=r(6),i=r(4),o=r(14),s=r(38),l=r(21),c=r(24),u=r(116),d=r(127),h=r(55),f=i.Symbol,p=f&&f.prototype;if(a&&l(f)&&(!("description"in p)||f().description!==undefined)){var g={},m=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:u(arguments[0]),t=c(p,this)?new f(e):e===undefined?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(f("description detection")),b=o(p.valueOf),y=o(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=o("".replace),_=o("".slice);d(p,"description",{configurable:!0,get:function(){var e=b(this);if(s(g,e))return"";var t=y(e),r=v?_(t,7,-1):x(t,w,"$1");return""===r?undefined:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:m})}},(e,t,r)=>{"use strict";var n=r(4),a=r(129),i=r(44).f,o=r(5).f,s=n.Symbol;if(a("dispose"),s){var l=o(s,"dispose");l.enumerable&&l.configurable&&l.writable&&i(s,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},(e,t,r)=>{"use strict";r(129)("hasInstance")},(e,t,r)=>{"use strict";r(129)("isConcatSpreadable")},(e,t,r)=>{"use strict";r(129)("iterator")},(e,t,r)=>{"use strict";r(129)("match")},(e,t,r)=>{"use strict";r(129)("matchAll")},(e,t,r)=>{"use strict";r(129)("replace")},(e,t,r)=>{"use strict";r(129)("search")},(e,t,r)=>{"use strict";r(129)("species")},(e,t,r)=>{"use strict";r(129)("split")},(e,t,r)=>{"use strict";var n=r(129),a=r(130);n("toPrimitive"),a()},(e,t,r)=>{"use strict";var n=r(23),a=r(129),i=r(131);a("toStringTag"),i(n("Symbol"),"Symbol")},(e,t,r)=>{"use strict";r(129)("unscopables")},(e,t,r)=>{"use strict";var n=r(4);r(131)(n.JSON,"JSON",!0)},(e,t,r)=>{"use strict";r(131)(Math,"Math",!0)},(e,t,r)=>{"use strict";var n=r(3),a=r(4),i=r(131);n({global:!0},{Reflect:{}}),i(a.Reflect,"Reflect",!0)},()=>{window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function r(t){var r,n={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(r in t)n[r]!==e&&t[r]!==e&&(n[r]=t[r]);return n}function n(t,n){var s=i(t,n);return function(c){var u=c.length;if(n.a&&3===t.nodeType&&t.nodeValue!==s.a&&c.push(new r({type:"characterData",target:t,oldValue:s.a})),n.b&&s.b&&a(c,t,s.b,n.f),n.c||n.g)var d=function(t,n,i,s){function c(e,n,i,o,l){var c,d,h,f=e.length-1;for(l=-~((f-l)/2);h=e.pop();)c=i[h.j],d=o[h.l],s.c&&l&&Math.abs(h.j-h.l)>=f&&(t.push(r({type:"childList",target:n,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),l--),s.b&&d.b&&a(t,c,d.b,s.f),s.a&&3===c.nodeType&&c.nodeValue!==d.a&&t.push(r({type:"characterData",target:c,oldValue:d.a})),s.g&&u(c,d)}function u(n,i){for(var h,f,p,g,m,v=n.childNodes,b=i.c,y=v.length,w=b?b.length:0,x=0,_=0,S=0;_<y||S<w;)(g=v[_])===(m=(p=b[S])&&p.node)?(s.b&&p.b&&a(t,g,p.b,s.f),s.a&&p.a!==e&&g.nodeValue!==p.a&&t.push(r({type:"characterData",target:g,oldValue:p.a})),f&&c(f,n,v,b,x),s.g&&(g.childNodes.length||p.c&&p.c.length)&&u(g,p),_++,S++):(d=!0,h||(h={},f=[]),g&&(h[p=o(g)]||(h[p]=!0,-1===(p=l(b,g,S,"node"))?s.c&&(t.push(r({type:"childList",target:n,addedNodes:[g],nextSibling:g.nextSibling,previousSibling:g.previousSibling})),x++):f.push({j:_,l:p})),_++),m&&m!==v[_]&&(h[p=o(m)]||(h[p]=!0,-1===(p=l(v,m,_))?s.c&&(t.push(r({type:"childList",target:i.node,removedNodes:[m],nextSibling:b[S+1],previousSibling:b[S-1]})),x--):f.push({j:p,l:S})),S++));f&&c(f,n,v,b,x)}var d;return u(n,i),d}(c,t,s,n);(d||c.length!==u)&&(s=i(t,n))}}function a(t,n,a,i){for(var o,s,l={},c=n.attributes,d=c.length;d--;)s=(o=c[d]).name,i&&i[s]===e||(u(n,o)!==a[s]&&t.push(r({type:"attributes",target:n,attributeName:s,oldValue:a[s],attributeNamespace:o.namespaceURI})),l[s]=!0);for(s in a)l[s]||t.push(r({target:n,type:"attributes",attributeName:s,oldValue:a[s]}))}function i(e,t){var r=!0;return function n(e){var a={node:e};return!t.a||3!==e.nodeType&&8!==e.nodeType?(t.b&&r&&1===e.nodeType&&(a.b=s(e.attributes,function(r,n){return t.f&&!t.f[n.name]||(r[n.name]=u(e,n)),r},{})),r&&(t.c||t.a||t.b&&t.g)&&(a.c=function(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n,e);return r}(e.childNodes,n)),r=t.g):a.a=e.nodeValue,a}(e)}function o(e){try{return e.id||(e.mo_id=e.mo_id||d++)}catch(t){try{return e.nodeValue}catch(r){return d++}}}function s(e,t,r){for(var n=0;n<e.length;n++)r=t(r,e[n],n,e);return r}function l(e,t,r,n){for(;r<e.length;r++)if((n?e[r][n]:e[r])===t)return r;return-1}t._period=30,t.prototype={observe:function(e,r){for(var a={b:!!(r.attributes||r.attributeFilter||r.attributeOldValue),c:!!r.childList,g:!!r.subtree,a:!(!r.characterData&&!r.characterDataOldValue)},i=this.i,o=0;o<i.length;o++)i[o].s===e&&i.splice(o,1);r.attributeFilter&&(a.f=s(r.attributeFilter,function(e,t){return e[t]=!0,e},{})),i.push({s:e,o:n(e,a)}),this.h||function(e){!function r(){var n=e.takeRecords();n.length&&e.m(n,e),e.h=setTimeout(r,t._period)}()}(this)},takeRecords:function(){for(var e=[],t=this.i,r=0;r<t.length;r++)t[r].o(e);return e},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var c=document.createElement("i");c.style.top=0;var u=(c="null"!=c.attributes.style.value)?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText},d=1;return t}(void 0))},,(e,t,r)=>{"use strict";r(161);var n=r(70);e.exports=n.Object.entries},(e,t,r)=>{"use strict";var n=r(3),a=r(162).entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},(e,t,r)=>{"use strict";var n=r(6),a=r(7),i=r(14),o=r(163),s=r(79),l=r(12),c=i(r(10).f),u=i([].push),d=n&&a(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),h=function(e){return function(t){for(var r,a=l(t),i=s(a),h=d&&null===o(a),f=i.length,p=0,g=[];f>p;)r=i[p++],n&&!(h?r in a:c(a,r))||u(g,e?[r,a[r]]:a[r]);return g}};e.exports={entries:h(!0),values:h(!1)}},(e,t,r)=>{"use strict";var n=r(38),a=r(21),i=r(39),o=r(53),s=r(164),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return a(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},(e,t,r)=>{"use strict";var n=r(7);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},(e,t,r)=>{"use strict";r(166),r(177);var n=r(70);e.exports=n.Object.fromEntries},(e,t,r)=>{"use strict";var n=r(12),a=r(167),i=r(168),o=r(51),s=r(44).f,l=r(169),c=r(176),u=r(36),d=r(6),h="Array Iterator",f=o.set,p=o.getterFor(h);e.exports=l(Array,"Array",function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(undefined,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)},"values");var g=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!u&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(m){}},(e,t,r)=>{"use strict";var n=r(33),a=r(77),i=r(44).f,o=n("unscopables"),s=Array.prototype;s[o]===undefined&&i(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},e=>{"use strict";e.exports={}},(e,t,r)=>{"use strict";var n=r(3),a=r(8),i=r(36),o=r(49),s=r(21),l=r(170),c=r(163),u=r(172),d=r(131),h=r(43),f=r(47),p=r(33),g=r(168),m=r(171),v=o.PROPER,b=o.CONFIGURABLE,y=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=p("iterator"),_="keys",S="values",k="entries",C=function(){return this};e.exports=function(e,t,r,o,p,m,A){l(r,t,o);var N,E,L,T=function(e){if(e===p&&O)return O;if(!w&&e&&e in D)return D[e];switch(e){case _:case S:case k:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",F=!1,D=e.prototype,I=D[x]||D["@@iterator"]||p&&D[p],O=!w&&I||T(p),P="Array"===t&&D.entries||I;if(P&&(N=c(P.call(new e)))!==Object.prototype&&N.next&&(i||c(N)===y||(u?u(N,y):s(N[x])||f(N,x,C)),d(N,M,!0,!0),i&&(g[M]=C)),v&&p===S&&I&&I.name!==S&&(!i&&b?h(D,"name",S):(F=!0,O=function(){return a(I,this)})),p)if(E={values:T(S),keys:m?O:T(_),entries:T(k)},A)for(L in E)(w||F||!(L in D))&&f(D,L,E[L]);else n({target:t,proto:!0,forced:w||F},E);return i&&!A||D[x]===O||f(D,x,O,{name:p}),g[t]=O,E}},(e,t,r)=>{"use strict";var n=r(171).IteratorPrototype,a=r(77),i=r(11),o=r(131),s=r(168),l=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=a(n,{next:i(+!c,r)}),o(e,u,!1,!0),s[u]=l,e}},(e,t,r)=>{"use strict";var n,a,i,o=r(7),s=r(21),l=r(20),c=r(77),u=r(163),d=r(47),h=r(33),f=r(36),p=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(a=u(u(i)))!==Object.prototype&&(n=a):g=!0),!l(n)||o(function(){var e={};return n[p].call(e)!==e})?n={}:f&&(n=c(n)),s(n[p])||d(n,p,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},(e,t,r)=>{"use strict";var n=r(173),a=r(20),i=r(16),o=r(174);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return i(r),o(n),a(r)?(t?e(r,n):r.__proto__=n,r):r}}():undefined)},(e,t,r)=>{"use strict";var n=r(14),a=r(30);e.exports=function(e,t,r){try{return n(a(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},(e,t,r)=>{"use strict";var n=r(175),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+a(e)+" as a prototype")}},(e,t,r)=>{"use strict";var n=r(20);e.exports=function(e){return n(e)||null===e}},e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},(e,t,r)=>{"use strict";var n=r(3),a=r(178),i=r(122);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,function(e,r){i(t,e,r)},{AS_ENTRIES:!0}),t}})},(e,t,r)=>{"use strict";var n=r(92),a=r(8),i=r(46),o=r(31),s=r(179),l=r(63),c=r(24),u=r(180),d=r(181),h=r(182),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,r){var m,v,b,y,w,x,_,S=r&&r.that,k=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),N=!(!r||!r.INTERRUPTED),E=n(t,S),L=function(e){return m&&h(m,"normal"),new p(!0,e)},T=function(e){return k?(i(e),N?E(e[0],e[1],L):E(e[0],e[1])):N?E(e,L):E(e)};if(C)m=e.iterator;else if(A)m=e;else{if(!(v=d(e)))throw new f(o(e)+" is not iterable");if(s(v)){for(b=0,y=l(e);y>b;b++)if((w=T(e[b]))&&c(g,w))return w;return new p(!1)}m=u(e,v)}for(x=C?e.next:m.next;!(_=a(x,m)).done;){try{w=T(_.value)}catch(M){h(m,"throw",M)}if("object"==typeof w&&w&&c(g,w))return w}return new p(!1)}},(e,t,r)=>{"use strict";var n=r(33),a=r(168),i=n("iterator"),o=Array.prototype;e.exports=function(e){return e!==undefined&&(a.Array===e||o[i]===e)}},(e,t,r)=>{"use strict";var n=r(8),a=r(30),i=r(46),o=r(31),s=r(181),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(a(r))return i(n(r,e));throw new l(o(e)+" is not iterable")}},(e,t,r)=>{"use strict";var n=r(97),a=r(29),i=r(17),o=r(168),s=r(33)("iterator");e.exports=function(e){if(!i(e))return a(e,s)||a(e,"@@iterator")||o[n(e)]}},(e,t,r)=>{"use strict";var n=r(8),a=r(46),i=r(29);e.exports=function(e,t,r){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw r;if(s)throw o;return a(o),r}},(e,t,r)=>{"use strict";r(184);var n=r(70);e.exports=n.Object.values},(e,t,r)=>{"use strict";var n=r(3),a=r(162).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},(e,t,r)=>{"use strict";r(186);var n=r(70);e.exports=n.Math.sign},(e,t,r)=>{"use strict";r(3)({target:"Math",stat:!0},{sign:r(187)})},e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},(e,t,r)=>{"use strict";r(189);var n=r(87);e.exports=n("Array","findIndex")},(e,t,r)=>{"use strict";var n=r(3),a=r(91).findIndex,i=r(167),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),i(o)},(e,t,r)=>{"use strict";r(191);var n=r(87);e.exports=n("Array","find")},(e,t,r)=>{"use strict";var n=r(3),a=r(91).find,i=r(167),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n({target:"Array",proto:!0,forced:s},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),i(o)},(e,t,r)=>{"use strict";r(193),r(195);var n=r(70);e.exports=n.Array.from},(e,t,r)=>{"use strict";var n=r(194).charAt,a=r(116),i=r(51),o=r(169),s=r(176),l="String Iterator",c=i.set,u=i.getterFor(l);o(String,"String",function(e){c(this,{type:l,string:a(e),index:0})},function(){var e,t=u(this),r=t.string,a=t.index;return a>=r.length?s(undefined,!0):(e=n(r,a),t.index+=e.length,s(e,!1))})},(e,t,r)=>{"use strict";var n=r(14),a=r(61),i=r(116),o=r(16),s=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,r){var n,u,d=i(o(t)),h=a(r),f=d.length;return h<0||h>=f?e?"":undefined:(n=l(d,h))<55296||n>56319||h+1===f||(u=l(d,h+1))<56320||u>57343?e?s(d,h):n:e?c(d,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},(e,t,r)=>{"use strict";var n=r(3),a=r(196);n({target:"Array",stat:!0,forced:!r(198)(function(e){Array.from(e)})},{from:a})},(e,t,r)=>{"use strict";var n=r(92),a=r(8),i=r(39),o=r(197),s=r(179),l=r(96),c=r(63),u=r(122),d=r(180),h=r(181),f=Array;e.exports=function(e){var t=i(e),r=l(this),p=arguments.length,g=p>1?arguments[1]:undefined,m=g!==undefined;m&&(g=n(g,p>2?arguments[2]:undefined));var v,b,y,w,x,_,S=h(t),k=0;if(!S||this===f&&s(S))for(v=c(t),b=r?new this(v):f(v);v>k;k++)_=m?g(t[k],k):t[k],u(b,k,_);else for(b=r?new this:[],x=(w=d(t,S)).next;!(y=a(x,w)).done;k++)_=m?o(w,g,[y.value,k],!0):y.value,u(b,k,_);return b.length=k,b}},(e,t,r)=>{"use strict";var n=r(46),a=r(182);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(o){a(e,"throw",o)}}},(e,t,r)=>{"use strict";var n=r(33)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},"return":function(){a=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(s){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(s){}return r}},(e,t,r)=>{"use strict";r(200);var n=r(87);e.exports=n("Array","fill")},(e,t,r)=>{"use strict";var n=r(3),a=r(201),i=r(167);n({target:"Array",proto:!0},{fill:a}),i("fill")},(e,t,r)=>{"use strict";var n=r(39),a=r(60),i=r(63);e.exports=function(e){for(var t=n(this),r=i(t),o=arguments.length,s=a(o>1?arguments[1]:undefined,r),l=o>2?arguments[2]:undefined,c=l===undefined?r:a(l,r);c>s;)t[s++]=e;return t}},(e,t,r)=>{"use strict";r(203);var n=r(87);e.exports=n("Array","includes")},(e,t,r)=>{"use strict";var n=r(3),a=r(59).includes,i=r(7),o=r(167);n({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:undefined)}}),o("includes")},(e,t,r)=>{"use strict";r(205),e.exports=Math.pow(2,-52)},(e,t,r)=>{"use strict";r(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},(e,t,r)=>{"use strict";r(207);var n=r(70);e.exports=n.Number.parseFloat},(e,t,r)=>{"use strict";var n=r(3),a=r(208);n({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},(e,t,r)=>{"use strict";var n=r(4),a=r(7),i=r(14),o=r(116),s=r(115).trim,l=r(117),c=i("".charAt),u=n.parseFloat,d=n.Symbol,h=d&&d.iterator,f=1/u(l+"-0")!==-Infinity||h&&!a(function(){u(Object(h))});e.exports=f?function(e){var t=s(o(e)),r=u(t);return 0===r&&"-"===c(t,0)?-0:r}:u},(e,t,r)=>{"use strict";r(210);var n=r(70);e.exports=n.Number.parseInt},(e,t,r)=>{"use strict";var n=r(3),a=r(211);n({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},(e,t,r)=>{"use strict";var n=r(4),a=r(7),i=r(14),o=r(116),s=r(115).trim,l=r(117),c=n.parseInt,u=n.Symbol,d=u&&u.iterator,h=/^[+-]?0x/i,f=i(h.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||d&&!a(function(){c(Object(d))});e.exports=p?function(e,t){var r=s(o(e));return c(r,t>>>0||(f(h,r)?16:10))}:c},(e,t,r)=>{"use strict";r(213),e.exports=-9007199254740991},(e,t,r)=>{"use strict";r(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},(e,t,r)=>{"use strict";r(215),e.exports=9007199254740991},(e,t,r)=>{"use strict";r(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},(e,t,r)=>{"use strict";r(217);var n=r(70);e.exports=n.Number.isFinite},(e,t,r)=>{"use strict";r(3)({target:"Number",stat:!0},{isFinite:r(218)})},(e,t,r)=>{"use strict";var n=r(4).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},(e,t,r)=>{"use strict";r(220);var n=r(70);e.exports=n.Number.isNaN},(e,t,r)=>{"use strict";r(3)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},(e,t,r)=>{"use strict";r(166),r(123),r(222),r(234),r(245),r(247),r(249),r(251),r(253),r(256),r(193);var n=r(70);e.exports=n.Set},(e,t,r)=>{"use strict";r(223)},(e,t,r)=>{"use strict";r(224)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},r(231))},(e,t,r)=>{"use strict";var n=r(3),a=r(4),i=r(14),o=r(67),s=r(47),l=r(225),c=r(178),u=r(229),d=r(21),h=r(17),f=r(20),p=r(7),g=r(198),m=r(131),v=r(230);e.exports=function(e,t,r){var b=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=b?"set":"add",x=a[e],_=x&&x.prototype,S=x,k={},C=function(e){var t=i(_[e]);s(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!f(e)?undefined:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(o(e,!d(x)||!(y||_.forEach&&!p(function(){(new x).entries().next()}))))S=r.getConstructor(t,e,b,w),l.enable();else if(o(e,!0)){var A=new S,N=A[w](y?{}:-0,1)!==A,E=p(function(){A.has(1)}),L=g(function(e){new x(e)}),T=!y&&p(function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)});L||((S=t(function(e,t){u(e,_);var r=v(new x,e,S);return h(t)||c(t,r[w],{that:r,AS_ENTRIES:b}),r})).prototype=_,_.constructor=S),(E||T)&&(C("delete"),C("has"),b&&C("get")),(T||N)&&C(w),y&&_.clear&&delete _.clear}return k[e]=S,n({global:!0,constructor:!0,forced:S!==x},k),m(S,e),y||r.setStrong(S,e,b),S}},(e,t,r)=>{"use strict";var n=r(3),a=r(14),i=r(54),o=r(20),s=r(38),l=r(44).f,c=r(57),u=r(68),d=r(226),h=r(40),f=r(228),p=!1,g=h("meta"),m=0,v=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},p=!0;var e=c.f,t=a([].splice),r={};r[g]=1,e(r).length&&(c.f=function(r){for(var n=e(r),a=0,i=n.length;a<i;a++)if(n[a]===g){t(n,a,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return f&&p&&d(e)&&!s(e,g)&&v(e),e}};i[g]=!0},(e,t,r)=>{"use strict";var n=r(7),a=r(20),i=r(15),o=r(227),s=Object.isExtensible,l=n(function(){s(1)});e.exports=l||o?function(e){return!!a(e)&&((!o||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},(e,t,r)=>{"use strict";var n=r(7);e.exports=n(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},(e,t,r)=>{"use strict";var n=r(7);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},(e,t,r)=>{"use strict";var n=r(24),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},(e,t,r)=>{"use strict";var n=r(21),a=r(20),i=r(172);e.exports=function(e,t,r){var o,s;return i&&n(o=t.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},(e,t,r)=>{"use strict";var n=r(77),a=r(127),i=r(232),o=r(92),s=r(229),l=r(17),c=r(178),u=r(169),d=r(176),h=r(233),f=r(6),p=r(225).fastKey,g=r(51),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,r,u){var d=e(function(e,a){s(e,h),m(e,{type:t,index:n(null),first:null,last:null,size:0}),f||(e.size=0),l(a)||c(a,e[u],{that:e,AS_ENTRIES:r})}),h=d.prototype,g=v(t),b=function(e,t,r){var n,a,i=g(e),o=y(e,t);return o?o.value=r:(i.last=o={index:a=p(t,!0),key:t,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=o),n&&(n.next=o),f?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},y=function(e,t){var r,n=g(e),a=p(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(h,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=n(null),f?e.size=0:this.size=0},"delete":function(e){var t=this,r=g(t),n=y(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first===n&&(r.first=a),r.last===n&&(r.last=i),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=g(this),n=o(e,arguments.length>1?arguments[1]:undefined);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(h,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),f&&a(h,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",a=v(t),i=v(n);u(e,t,function(e,t){m(this,{type:n,target:e,state:a(e),kind:t,last:null})},function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=null,d(undefined,!0))},r?"entries":"values",!r,!0),h(t)}}},(e,t,r)=>{"use strict";var n=r(47);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},(e,t,r)=>{"use strict";var n=r(23),a=r(127),i=r(33),o=r(6),s=i("species");e.exports=function(e){var t=n(e);o&&t&&!t[s]&&a(t,s,{configurable:!0,get:function(){return this}})}},(e,t,r)=>{"use strict";var n=r(3),a=r(235),i=r(7);n({target:"Set",proto:!0,real:!0,forced:!r(244)("difference",function(e){return 0===e.size})||i(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(237),i=r(238),o=r(241),s=r(242),l=r(239),c=r(240),u=a.has,d=a.remove;e.exports=function(e){var t=n(this),r=s(e),a=i(t);return o(t)<=r.size?l(t,function(e){r.includes(e)&&d(a,e)}):c(r.getIterator(),function(e){u(a,e)&&d(a,e)}),a}},(e,t,r)=>{"use strict";var n=r(237).has;e.exports=function(e){return n(e),e}},(e,t,r)=>{"use strict";var n=r(14),a=Set.prototype;e.exports={Set:Set,add:n(a.add),has:n(a.has),remove:n(a["delete"]),proto:a}},(e,t,r)=>{"use strict";var n=r(237),a=r(239),i=n.Set,o=n.add;e.exports=function(e){var t=new i;return a(e,function(e){o(t,e)}),t}},(e,t,r)=>{"use strict";var n=r(14),a=r(240),i=r(237),o=i.Set,s=i.proto,l=n(s.forEach),c=n(s.keys),u=c(new o).next;e.exports=function(e,t,r){return r?a({iterator:c(e),next:u},t):l(e,t)}},(e,t,r)=>{"use strict";var n=r(8);e.exports=function(e,t,r){for(var a,i,o=r?e:e.iterator,s=e.next;!(a=n(s,o)).done;)if((i=t(a.value))!==undefined)return i}},(e,t,r)=>{"use strict";var n=r(173),a=r(237);e.exports=n(a.proto,"size","get")||function(e){return e.size}},(e,t,r)=>{"use strict";var n=r(30),a=r(46),i=r(8),o=r(61),s=r(243),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=n(e.has),this.keys=n(e.keys)};h.prototype={getIterator:function(){return s(a(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){a(e);var t=+e.size;if(t!=t)throw new u(l);var r=o(t);if(r<0)throw new c(l);return new h(e,r)}},e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},(e,t,r)=>{"use strict";var n=r(23),a=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var r=n("Set");try{(new r)[e](a(0));try{return(new r)[e](a(-1)),!1}catch(s){if(!t)return!0;try{return(new r)[e](i(-Infinity)),!1}catch(l){var o=new r;return o.add(1),o.add(2),t(o[e](i(Infinity)))}}}catch(l){return!1}}},(e,t,r)=>{"use strict";var n=r(3),a=r(7),i=r(246);n({target:"Set",proto:!0,real:!0,forced:!r(244)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:i})},(e,t,r)=>{"use strict";var n=r(236),a=r(237),i=r(241),o=r(242),s=r(239),l=r(240),c=a.Set,u=a.add,d=a.has;e.exports=function(e){var t=n(this),r=o(e),a=new c;return i(t)>r.size?l(r.getIterator(),function(e){d(t,e)&&u(a,e)}):s(t,function(e){r.includes(e)&&u(a,e)}),a}},(e,t,r)=>{"use strict";var n=r(3),a=r(248);n({target:"Set",proto:!0,real:!0,forced:!r(244)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(237).has,i=r(241),o=r(242),s=r(239),l=r(240),c=r(182);e.exports=function(e){var t=n(this),r=o(e);if(i(t)<=r.size)return!1!==s(t,function(e){if(r.includes(e))return!1},!0);var u=r.getIterator();return!1!==l(u,function(e){if(a(t,e))return c(u,"normal",!1)})}},(e,t,r)=>{"use strict";var n=r(3),a=r(250);n({target:"Set",proto:!0,real:!0,forced:!r(244)("isSubsetOf",function(e){return e})},{isSubsetOf:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(241),i=r(239),o=r(242);e.exports=function(e){var t=n(this),r=o(e);return!(a(t)>r.size)&&!1!==i(t,function(e){if(!r.includes(e))return!1},!0)}},(e,t,r)=>{"use strict";var n=r(3),a=r(252);n({target:"Set",proto:!0,real:!0,forced:!r(244)("isSupersetOf",function(e){return!e})},{isSupersetOf:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(237).has,i=r(241),o=r(242),s=r(240),l=r(182);e.exports=function(e){var t=n(this),r=o(e);if(i(t)<r.size)return!1;var c=r.getIterator();return!1!==s(c,function(e){if(!a(t,e))return l(c,"normal",!1)})}},(e,t,r)=>{"use strict";var n=r(3),a=r(254),i=r(255);n({target:"Set",proto:!0,real:!0,forced:!r(244)("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(237),i=r(238),o=r(242),s=r(240),l=a.add,c=a.has,u=a.remove;e.exports=function(e){var t=n(this),r=o(e).getIterator(),a=i(t);return s(r,function(e){c(t,e)?u(a,e):l(a,e)}),a}},e=>{"use strict";e.exports=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(a){return!1}}},(e,t,r)=>{"use strict";var n=r(3),a=r(257),i=r(255);n({target:"Set",proto:!0,real:!0,forced:!r(244)("union")||!i("union")},{union:a})},(e,t,r)=>{"use strict";var n=r(236),a=r(237).add,i=r(238),o=r(242),s=r(240);e.exports=function(e){var t=n(this),r=o(e).getIterator(),l=i(t);return s(r,function(e){a(l,e)}),l}},(e,t,r)=>{"use strict";r(166),r(259),r(261),r(123),r(193);var n=r(70);e.exports=n.Map},(e,t,r)=>{"use strict";r(260)},(e,t,r)=>{"use strict";r(224)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},r(231))},(e,t,r)=>{"use strict";var n=r(3),a=r(14),i=r(30),o=r(16),s=r(178),l=r(262),c=r(36),u=r(7),d=l.Map,h=l.has,f=l.get,p=l.set,g=a([].push),m=c||u(function(){return 1!==d.groupBy("ab",function(e){return e}).get("a").length});n({target:"Map",stat:!0,forced:c||m},{groupBy:function(e,t){o(e),i(t);var r=new d,n=0;return s(e,function(e){var a=t(e,n++);h(r,a)?g(f(r,a),e):p(r,a,[e])}),r}})},(e,t,r)=>{"use strict";var n=r(14),a=Map.prototype;e.exports={Map:Map,set:n(a.set),get:n(a.get),has:n(a.has),remove:n(a["delete"]),proto:a}},(e,t,r)=>{"use strict";r(264),r(266);var n=r(87);e.exports=n("Array","flat")},(e,t,r)=>{"use strict";var n=r(3),a=r(265),i=r(39),o=r(63),s=r(61),l=r(93);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),r=o(t),n=l(t,0);return n.length=a(n,t,t,r,0,e===undefined?1:s(e)),n}})},(e,t,r)=>{"use strict";var n=r(95),a=r(63),i=r(121),o=r(92),s=function(e,t,r,l,c,u,d,h){for(var f,p,g=c,m=0,v=!!d&&o(d,h);m<l;)m in r&&(f=v?v(r[m],m,t):r[m],u>0&&n(f)?(p=a(f),g=s(e,t,f,p,g,u-1)-1):(i(g+1),e[g]=f),g++),m++;return g};e.exports=s},(e,t,r)=>{"use strict";r(167)("flat")},(e,t,r)=>{"use strict";r(268);var n=r(87);e.exports=n("String","repeat")},(e,t,r)=>{"use strict";r(3)({target:"String",proto:!0},{repeat:r(269)})},(e,t,r)=>{"use strict";var n=r(61),a=r(116),i=r(16),o=RangeError;e.exports=function(e){var t=a(i(this)),r="",s=n(e);if(s<0||s===Infinity)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},,,e=>{e.exports=function(e){return e&&e.__esModule?e:{"default":e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(274)),i=r(288),o=n(r(499)),s=r(511),l=r(537),c=r(538);a["default"].DataStore=o["default"],a["default"].DataStore.Operators={between:s.between,equals:s.equals,less:s.less,lessEquals:s.lessEquals,greater:s.greater,greaterEquals:s.greaterEquals,filter:s.filter,select:s.select,groupBy:s.groupBy,pipe:s.pipe,sort:s.sort,pivot:s.pivot},a["default"].Utils={duration:c.duration,before:c.before,after:c.after,parseDate:c.parseDate,formatDate:c.formatDate,DatetimeUnits:c.DatetimeUnits,Weekdays:c.Weekdays},a["default"].DataStore.Aggregators={aggregatorStore:l.aggregatorStore};var u=["type","id","width","height","debugMode","registerWithJS","backgroundColor","scaleMode","lang","detectFlashVersion","autoInstallRedirect"];function d(e){var t=e;return this instanceof d?(1===arguments.length&&"object"==typeof t||(t=function(e,t){var r,n;for(r=0,n=u.length;r<n;r++)"object"==typeof t[r]?Object.assign(e,t[r]):e[u[r]]=t[r];return e}({},arguments)),new a["default"](t)):1===arguments.length&&t instanceof Array&&"private"===t[0]?a["default"].register("module",t):1===arguments.length&&"string"==typeof t?a["default"].getChartFromId(t):void(0,i.raiseError)(d,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}Object.getOwnPropertyNames(a["default"]).filter(function(e){return!0===Object.getOwnPropertyDescriptor(a["default"],e).writable}).forEach(function(e){d[e]=a["default"][e]});t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(275));r(345);var i=n(r(347));a["default"].addDep(i["default"]);t["default"]=a["default"]},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i=n(r(277)),o=r(281),s=r(288),l=r(289),c=r(290),u=n(r(291)),d=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(292)),h=n(r(306)),f=r(293),p=n(r(309)),g=n(r(310)),m=n(r(311)),v=n(r(312)),b=n(r(315)),y=n(r(317)),w=n(r(318)),x=n(r(333)),_=n(r(338)),S=n(r(301)),k=n(r(339)),C=n(r(343));function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){(0,i["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E,L,T,M,F,D,I,O="json",P="4.2.0",R=new Date("2025-09-04").getTime(),j=new Date("2020-08-20").getTime(),B=new Date("2020-08-20").getTime(),z=void 0===z?"":new Date("2020-08-20").getTime(),V=new Date("2020-08-20").getTime(),U=new Date("2020-08-20").getTime(),H=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/gi,q=/^(FusionCharts|FusionWidgets|FusionMaps)/,G=/[^\%\d]*$/gi,W=/url$/i,$="none",X="relative",Y="left",K="normal",J="inline-block",Z="1",Q="middle",ee="normal",te="normal",re="normal",ne="none",ae="inline",ie="0",oe="0",se="none",le="ltr",ce="none",ue=function(e){return e.toString().toLowerCase()},de=function(){return{state:2}},he=(T={},M=function(){var e,t,r,n,a,i=0,o=parseInt(Be.options.visibilityTrackingInterval,10)||300;for(e in T)if(i+=1,t=T[e].chart,r=T[e].container,n=T[e].insertMode,a=T[e].callback,t.disposed||!fe(r)){if(delete T[e],i-=1,delete t.containerHidden,t.disposed)return;t.renderOpts={containerElement:r,insertMode:n,callback:a},t._addChartDependency("chartContainer",{scopeOf:t,opts:{containerElement:r,insertMode:n,callback:a},resolve:Re}),t._setState()}else T[e]&&T[e].chart&&(T[e].chart.containerHidden=!0,T[e].chart._addChartDependency("chartContainer",{resolve:de}),T[e].chart._setState());L=i?setTimeout(M,o):clearTimeout(L)},function(e,t,r,n){T[e.id]={chart:e,container:t,insertMode:r,callback:n},L||(L=setTimeout(M,parseInt(Be.options.visibilityTrackingInterval,10)||300))}),fe=E=function(e){var t=e.parentNode;return!!t&&9!==t.nodeType&&(function(e,t){var r=t;return window.getComputedStyle?r=window.getComputedStyle(e).getPropertyValue(r):e.currentStyle&&(r=e.currentStyle[r]),r}(e,"display")===$||!!t&&E(t))},pe=0,ge=!1,me=["disposed","error","waiting","ready","initialized"],ve={},be="https://www.fusioncharts.com/dev/migration/deprecated-functionalities?version=3.13.0",ye='You are using incompatible files or deprecated "register" API of FusionCharts, please go through the docs to know more at '+be,we=function(){Be.removeEventListener("initialized",we),I=new h["default"](document.body||document.getElementsByTagName("body")[0]),d.globalStore.addToEnv("smartLabel",I)};function xe(){return this.state}function _e(){return this.msg}function Se(){return this.msgStyle}function ke(){return"chartobject-"+(ke.lastId+=1)}function Ce(e){var t,r={};for(t in e)r[t.toLowerCase()]=e[t];return r}function Ae(e){var t,r=[];for(t in e)r.push(t+"_"+e[t]);return r.sort(),r.join(",")}function Ne(e){var t,r,n,a=e.attributes;if(a)for(t=a.length-1;t>=0;t-=1)"function"==typeof e[n=a[t].name]&&(e[n]=null);if(a=e.childNodes)for(r=a.length,t=0;t<r;t+=1)Ne(e.childNodes[t])}function Ee(e){var t,r,n=e.options,a=e.args;return t={imageHAlign:a.loadMessageImageHAlign||n.baseChartMessageImageHAlign,imageVAlign:a.loadMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:a.loadMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:a.loadMessageImageScale||n.baseChartMessageImageScale},r={color:a.loadMessageColor||n.baseChartMessageColor,fontFamily:a.loadMessageFont||n.baseChartMessageFont,fontSize:a.loadMessageFontSize||n.baseChartMessageFontSize},{msg:e.options.showChartLoadingMessage?n.PBarLoadingText||n.loadMessage:"",msgStyle:{message:r,image:t}}}function Le(e){var t,r,n=e.args,a=e.options;return t={imageHAlign:n.typeNotSupportedMessageImageHAlign||a.baseChartMessageImageHAlign,imageVAlign:n.typeNotSupportedMessageImageVAlign||a.baseChartMessageImageVAlign,imageAlpha:n.typeNotSupportedMessageImageAlpha||a.baseChartMessageImageAlpha,imageScale:n.typeNotSupportedMessageImageScale||a.baseChartMessageImageScale},r={color:n.typeNotSupportedMessageColor||a.baseChartMessageColor,fontFamily:n.typeNotSupportedMessageFont||a.baseChartMessageFont,fontSize:n.typeNotSupportedMessageFontSize||a.baseChartMessageFontSize},ge&&(a.messageURL=be),{msg:ge?ye:a.typeNotSupportedMessage,msgStyle:{image:t,message:r}}}function Te(e){var t,r,n=e.args,a=e.options;return t={imageHAlign:n.browserNotSupportedMessageImageHAlign||a.baseChartMessageImageHAlign,imageVAlign:n.browserNotSupportedMessageImageVAlign||a.baseChartMessageImageVAlign,imageAlpha:n.browserNotSupportedMessageImageAlpha||a.baseChartMessageImageAlpha,imageScale:n.browserNotSupportedMessageImageScale||a.baseChartMessageImageScale},r={color:n.browserNotSupportedMessageColor||a.baseChartMessageColor,fontFamily:n.browserNotSupportedMessageFont||a.baseChartMessageFont,fontSize:n.browserNotSupportedMessageFontSize||a.baseChartMessageFontSize},{msg:a.browserNotSupportedMessage,msgStyle:{image:t,message:r}}}function Me(){ge=!0}function Fe(e){var t,r,n,a=this.opts,i=a.data,u=a.sanitisedFormat,d=a.silent,h=(0,l.getDepsByType)("transcoder"),f=h[u]&&h[u](),p=e.options,g=function(e){var t,r,n=e.options,a=e.args;return t={imageHAlign:(0,o.pluck)(a.dataInvalidMessageImageHAlign,n.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(a.dataInvalidMessageImageVAlign,n.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(a.dataInvalidMessageImageAlpha,n.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(a.dataInvalidMessageImageScale,n.baseChartMessageImageScale)},r={fontFamily:a.dataInvalidMessageFont||n.baseChartMessageFont,fontSize:a.dataInvalidMessageFontSize||n.baseChartMessageFontSize,color:a.dataInvalidMessageColor||n.baseChartMessageColor},{msg:n.dataInvalidMessage,msgStyle:{image:t,message:r}}}(e),m=g.msg,v=g.msgStyle;return e.__state.newDataArrived=!0,f&&f.toJSON?n=(r=f.toJSON(i,e)).error?{state:1,msg:m,msgStyle:v}:{state:3}:(r={error:new Error("Unable to convert data.")},n={state:1,msg:m,msgStyle:v}),t=r.error?r:r.data,p.dataErroneous=p.error=r.error,p.dataSource=t,p.dataFormat=u,p.dataErroneous||(0,s.triggerEvent)("beforeDataUpdate",e,function(e,t,r,n){var a={};return a.native=r===O,a.dataFormat=r,a.format=O,a.data=t,a.dataSource=e,a.silent=!!n,a}(i,t,u,d),D,c.onDataUpdateSuccess,c.onDataUpdateCancel),n}function De(e){var t,r,n,a,i,c,u,d=this.opts,h=d.url,f=void 0===h?"":h,p=d.format,g=d.config,m=d.callback,v=d.silent,b=(0,l.getDepsByType)("transcoder"),y=(c=(n=e).options,u=n.args,a={imageHAlign:(0,o.pluck)(u.dataLoadStartMessageImageHAlign,c.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(u.dataLoadStartMessageImageVAlign,c.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(u.dataLoadStartMessageImageAlpha,c.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(u.dataLoadStartMessageImageScale,c.baseChartMessageImageScale)},i={fontFamily:u.dataLoadStartMessageFont||c.baseChartMessageFont,fontSize:u.dataLoadStartMessageFontSize||c.baseChartMessageFontSize,color:u.dataLoadStartMessageColor||c.baseChartMessageColor},{msg:c.dataLoadStartMessage,msgStyle:{image:a,message:i}}),w=y.msg,x=y.msgStyle;return null!=p&&"function"==typeof p.toString||(p=e.options.dataFormat,(0,s.raiseWarning)(e,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+p)),t=ue(p),W.test(t)||(t+="url"),r=b[t]&&b[t](),e.jsVars.stallLoad=!0,r&&r.toJSON?(r.toJSON(f,g,m,v,e),{state:2,msg:w,msgStyle:x}):{state:1,error:new Error("Unable to fetch data.")}}function Ie(e){var t,r,n=e.__state,a=e.chartType(),i=e.apiInstance&&e.apiInstance.getFromEnv("toolTipController")&&e.apiInstance.getFromEnv("toolTipController").toolTips,c=(0,l.getDep)(n.lastRenderedType,"chartapi")||(0,l.getDep)(n.lastRenderedType,"maps");if(i&&(0,o.removeAllTooltipOnChart)(i,n.lastRenderedType===a),c&&n.lastRenderedType!==a&&((0,s.triggerEvent)("chartTypeChanged",e,{previousType:n.lastRenderedType,newType:a}),t=c))for(r in t)delete e[r];n.lastRenderedType=a}function Oe(e){var t=Ee(e),n=t.msgStyle,a=t.msg;return Promise.all([r.e(3),r.e(6)]).then(r.bind(r,1683)).then(function(t){Be.addDep(t["default"]),Ie(e),e._addChartDependency("mapModuleLoad",{resolve:function(){return{state:3}}}),(0,s.triggerEvent)("loaded",e,{type:e.chartType(),renderer:"javascript"},[e.id]),e._setState()})["catch"](function(){var t=Le(e),r=t.msgStyle,n=t.msg;e._addChartDependency("mapModuleLoad",{resolve:function(){return{state:1,msgStyle:r,msg:n}}}),(0,s.raiseError)(Be,"12052314141","run","JavaScriptRenderer~Maps",new Error("FusionCharts' maps file is required to render the visualization.")),e._setState(),(0,s.triggerEvent)("charttypeinvalid",e,{},[e.id])}),{state:2,msgStyle:n,msg:a}}function Pe(e){var t=this.opts.value,r=Be.getDep(t,"dependency")||Be.getDep(t,"chartapi")||Be.getDep(t,"maps"),n=Le(e),a=n.msgStyle,i=n.msg;return ge=!1,r?r.then?(Be.addEventListener("register",Me),r.then(function(r){if(!e.disposed){if(r.__esModule){var n=(0,l.getDep)(t,"maps");Be.addDep(r["default"]),!n&&Ie(e),e._addChartDependency("chartModuleLoad",{resolve:function(){return n?e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Oe}):(0,s.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id]),{state:3}}})}else e._addChartDependency("chartModuleLoad",{resolve:function(){return(0,l.getDep)(t,"maps")?e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Oe}):(Ie(e),(0,s.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id])),{state:3}}});e._setState()}})["catch"](function(t){if(!e.disposed){if(!(t instanceof Event))throw new Error(t.stack);e._addChartDependency("chartModuleLoad",{resolve:function(){return N({state:1},Le(e))}}),e._setState(),(0,s.triggerEvent)("charttypeinvalid",e,{},[e.id])}}),N({state:2},Ee(e))):((0,l.getDep)(t,"maps")?(e._addChartDependency("mapModuleLoad",{scopeOf:e,resolve:Oe}),e._setState()):(Ie(e),(0,s.triggerEvent)("loaded",e,{type:t,renderer:"javascript"},[e.id])),{state:3}):((0,s.triggerEvent)("charttypeinvalid",this,{},[this.id]),{state:1,msgStyle:a,msg:i})}function Re(e){var t,r,n,a,i=this.opts,l=i.containerElement,c=i.insertMode,u=i.callback;if(u?"function"!=typeof u&&(u=D):"function"==typeof c?(u=c,c=D):c||"function"!=typeof l||(u=l,l=D),c=(c||e.options.insertMode).toLowerCase()||o.domInsertModes.REPLACE,void 0===l&&(l=e.options.containerElementId||e.options.containerElement),"string"==typeof l&&(l=document.getElementById(l)),null==l)return(0,s.raiseError)(e,"03091456","run",".render()",new Error("Unable to find the container DOM element.")),(0,s.triggerEvent)("containernotfound",e,{},[e.id]),{state:1};if(function(e,t){var r,n,a,i=document.getElementById(e),o=t.id||t.getAttribute("id");if(null===i)return!1;if(e===o)return!0;for(n=0,a=(r=t.getElementsByTagName("*")).length;n<a;n++)if(r[n]===i)return!1;return!0}(e.id,l))return(0,s.raiseError)(e,"05102109","run",".render()",new Error("A duplicate object already exists with the specific Id: "+e.id)),{state:1};if(fe(l))return e.containerHidden=!0,he(e,l,c,u),{state:2};if(delete e.containerHidden,((r=window[e.id])&&r.FusionCharts&&r.FusionCharts===e||(r=e.ref)&&r.FusionCharts&&r.FusionCharts===e)&&(e._dispose(),r===window[e.id]&&(window[e.id]=D)),"undefined"!=typeof window[e.id])return(0,s.raiseError)(e,"25081843","comp",".render",new Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name for chart JS variable, chart-id and container id.")),{state:1};if((t=document.createElement(e.options.containerElementType||"span")).setAttribute("id",e.id),"append"!==c&&"prepend"!==c)for(;l.hasChildNodes();)l.removeChild(l.firstChild);return"prepend"===c&&l.firstChild?l.insertBefore(t,l.firstChild):l.appendChild(t),e.options.containerElement=l,e.options.containerElementId=l.id,(a=t.style)&&(a.position=X,a.textAlign=Y,a.lineHeight=K,a.display=J,a.zoom=Z,a["vertical-align"]=Q,a.fontWeight=ee,a.fontVariant=te,a.fontStyle=re,a.textDecoration=ne,a["*DISPLAY"]=ae,a.padding=ie,a.margin=oe,a.border=se,a.direction=le,a.transform=ce),e.options.containerClassName&&(t.className=e.options.containerClassName),n=(0,o.normalizeCSSDimension)(e.width,e.height,t),e.__state.renderedWidth=n.pixelWidth,e.__state.renderedHeight=n.pixelHeight,e.__state.rendering=!0,e.renderOpts={containerElement:t,insertMode:c,callback:u},{state:3}}ke.lastId=0;var je,Be=function(){function e(){var t,n,a=this,i={},l=e.getDep("vml","dependency");(this.__state={},this.id=o.BLANKSTRING,this._deps={},this.__state._unresolvedDeps={},this.__state.state=4,1===arguments.length&&"object"==typeof(arguments.length<=0?undefined:arguments[0])&&(i=arguments.length<=0?undefined:arguments[0]),arguments.length>1&&"object"==typeof((t=arguments.length-1)<0||arguments.length<=t?undefined:arguments[t]))&&(0,o.extend2)(i,(n=arguments.length-1)<0||arguments.length<=n?undefined:arguments[n],!1,!0);this.id="undefined"==typeof i.id?ke():i.id,this.args=i,this._parsePolicies(g["default"]),this._attachDefaultEventListeners(),this.jsVars.fcObj=this,(0,s.triggerEvent)("beforeInitialize",this,i),e.items[this.id]instanceof e&&(0,s.raiseWarning)(this,"06091847","param","",new Error('A FusionCharts object with the specified id "'+this.id+'" already exists.Renaming it to '+(this.id=ke()))),this.attributes.id=this.id,r.p=e.getScriptBaseURI(),l&&(this._addChartDependency("chartVmlRendererLoad",{resolve:function(){return l.then(function(t){var r=t["default"];e.addDep(r),a._addChartDependency("chartVmlRendererLoad",{resolve:function(){return{state:3}}}),a._setState()})["catch"](function(){(0,s.raiseError)(e,"162162788","run",">RendererError~VMLRendererLoad","Unable to load FusionCharts VML renderer."),a._addChartDependency("chartVmlRendererLoad",{resolve:function(){return{state:1}}}),a._setState()}),{state:2}}}),this._setState()),this.chartType&&this.chartType(i.type||i.swfUrl||""),this.setChartData(this.args.dataSource,this.args.dataFormat,D,D,!0),e.items[this.id]=this,e.defaultOptions=e.options,(0,s.triggerEvent)("initialized",this,i),this._setState()}e.getObjectReference=function(t){return void 0===t&&(t=""),e.items[t]&&e.items[t].ref},e.register=function(){(0,s.triggerEvent)("register",e,arguments,D,function(){(0,s.raiseError)(this,"0604111219","run",".register()",new Error(ye))})},e.render=function(t,r){return t instanceof e?(t.render(r),t):new e(t).render(r)},e.addDep=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.addDep.call.apply(l.addDep,[this].concat(t))},e.getDep=function(e,t){return l.getDep.call(this,e,t)},e.addEventListener=function(e,t){return(0,s.addListener)(e,t)},e.on=function(t,r){return e.addEventListener(t,r)},e.removeEventListener=function(e,t){return(0,s.removeListener)(e,t)},e.ready=function(t,r,n){void 0===r&&(r=e),void 0===n&&(n=e);var a=function(){t.call(n,r)};"function"==typeof t&&(F?setTimeout(a,0):e.addEventListener("ready",a))},e.formatNumber=function(e,t,r){void 0===t&&(t={});var n,a=Ce(t),i=Ae(a);return ve[i]?n=ve[i]:ve[i]=n=new m["default"](a,{useScaleRecursively:!0}),n.configure(a),n.dataLabels(e,r)},e._getCleanValue=function(e,t){void 0===t&&(t={});var r,n=Ce(t),a=Ae(n);return ve[a]?r=ve[a]:(ve[a]=r=new m["default"](n,{useScaleRecursively:!0}),r.configure(n)),r.getCleanValue(e)},e.transcodeData=function(e,t,r,n){var a,i,o,c=(0,l.getDepsByType)("transcoder"),u=ue(r),d=ue(t);if(d&&"function"==typeof d.toString&&u&&"function"==typeof u.toString&&"undefined"!=typeof c[u]&&"undefined"!=typeof c[d])return(o=c[d]()).toJSON&&(a=o.toJSON(e,this),i=c[u]().fromJSON(a.data,this)),a.error instanceof Error||(i.error=a.error),n?i:i.data;(0,s.raiseError)(this,"14090217","param",".transcodeData()","Unrecognized data-format specified during transcoding.")},e.setAnimation=function(t){!e.options._globalAnimationRule&&(e.options._globalAnimationRule=[]),e.options._globalAnimationRule.push(t)},e.setEasingEffect=function(t,r){e.getDep("redraphael","plugin").easing_formulas[t]=r},e.getScriptBaseURI=function(){return e.options.scriptBaseUri},e.setScriptBaseURI=function(t){e.options.scriptBaseUri=t,r.p=t},e.getChartFromId=function(t){return e.items[t]},e.getVersion=function(e){var t={fcs:P,"fcs-xt":{fc:"4.2.0-beta.10",fw:"4.2.0-beta.10",pc:"4.2.0-beta.10",fm:"4.2.0-beta.10"},ft:"2.9.8-beta.10"};return t[e]||t["fcs-xt"][e]||t},e.getReleaseDate=function(e){var t={fcs:R,"fcs-xt":{fc:z,fw:j,pc:B,fm:V},ft:U};return t[e]||t["fcs-xt"][e]||t};var t=e.prototype;return t._attachDefaultEventListeners=function(){var e,t,r=this,n=r.options.events;if(n)for(e in n)"function"==typeof n[e]&&r.addEventListener(e,n[e]);for(t in r.options.renderer="javascript",u["default"])r.addEventListener(t,u["default"][t])},t._setState=function(){var e,t,r=this,n=r._deps,a=r.__state.state,i=4;for(var o in n)n.hasOwnProperty(o)&&(i>(t=(e=n[o]).getState())&&(i=t,r.__state.currChartMsg=e.getMsg(),r.__state.currChartMsgStyle=e.getMsgStyle()),3===t&&r._removeChartDependency(o));if(r.__state.prevState=a,r.__state.state=i,a!==i&&(0,s.triggerEvent)("stateChanged",r,{prevState:me[a],state:me[i]},[r.id]),!r.containerHidden)if(3===i&&r.__state.renderInvoked&&r.__state.isDrawInvoked){var l=r.renderOpts,c=l.containerElement,u=l.callback;r._renderChart(c,D,u),this._clearPrevContext(),delete r.renderOpts.callback}else if((2===i||1===i)&&r.__state.renderInvoked&&r.__state.isDrawInvoked&&r._contextChanged()&&(!r.__state.renderComplete||2!==i)){var d=r.renderOpts,h=d.containerElement,f=d.callback;r._renderChart(h,"base",1===i&&f,r.__state.currChartMsg,r.__state.currChartMsgStyle),this._clearPrevContext(),1===i&&delete r.renderOpts.callback}},t._clearPrevContext=function(){this.__state.prevChartMsg=o.BLANKSTRING,this.__state.prevChartMsgStyle={}},t._contextChanged=function(){if(this.__state.currChartMsg!==this.__state.prevChartMsg)return this.__state.prevChartMsg=this.__state.currChartMsg,this.__state.prevChartMsgStyle=this.__state.currChartMsgStyle,!0;var e=this.__state.prevChartMsgStyle&&this.__state.prevChartMsgStyle.image,t=this.__state.currChartMsgStyle&&this.__state.currChartMsgStyle.image,r=this.__state.prevChartMsgStyle&&this.__state.prevChartMsgStyle.message,n=this.__state.currChartMsgStyle&&this.__state.currChartMsgStyle.message;return!(!e||e.imageHAlign===t.imageHAlign&&e.imageVAlign===t.imageVAlign&&e.imageAlpha===t.imageAlpha&&e.imageScale===t.imageScale&&r.color===n.color&&r.fontFamily===n.fontFamily&&r.fontSize===n.fontSize)&&(this.__state.prevChartMsg=this.__state.currChartMsg,this.__state.prevChartMsgStyle=this.__state.currChartMsgStyle,!0)},t._sudoSetState=function(e){this.__state.prevState=this.__state.state,this.__state.state=e,(0,s.triggerEvent)("stateChanged",this,{prevState:me[this.__state.prevState],state:me[this.__state.state]},[this.id])},t._getState=function(){return me[this.__state.state]},t._addChartDependency=function(e,t){this._deps&&this._deps[e]&&this._removeChartDependency(e),this._deps[e]=t,t.getState=xe,t.getMsg=_e,t.getMsgStyle=Se,Object.assign(t,t.resolve(t.scopeOf))},t._removeChartDependency=function(e){this._deps[e]&&(this._deps[e].removed=!0,delete this._deps[e])},t._parsePolicies=function(e){var t,r,n,a=this.args;for(t in e)if(g["default"][t]instanceof Array)r=a[e[t][0]],this[t]=void 0===r?e[t][1]:r;else for(n in"object"!=typeof this[t]&&(this[t]={}),e[t])r=a[e[t][n][0]],this[t][n]=void 0===r?e[t][n][1]:r},t.hasRendered=function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},t.setTransparent=function(e){var t,r=e;(t=this.jsVars)&&("boolean"!=typeof r&&null!==r&&(r=!0),t.transparent=null!==r&&!0===r)},t.addEventListener=function(e,t){return(0,s.addListener)(e,t,this)},t.on=function(e,t){return this.addEventListener(e,t)},t.removeEventListener=function(e,t){return(0,s.removeListener)(e,t,this)},t.formatNumber=function(e,t,r,n){var a,i,s,l,c,u=this,d=u.apiInstance||{},h=d.numberFormatter,f=r;switch(i=Ae(f),f=f&&Ce(f)||{},""===i?h?l=h:(s=Ae(a=u.options.dataSource.chart||{}),ve[s]?l=ve[s]:ve[s]=l=new m["default"](d,a)):(a=u.options.dataSource.chart||{},s=Ae(a=(0,o.extend2)((0,o.extend2)({},a),f)),ve[s]?l=ve[s]:ve[s]=l=new m["default"](d,a)),(t&&t.toLowerCase?t:"").toLowerCase()){case"yaxisvalues":c=l.yAxis(e,n);break;case"xaxisvalues":c=l.xAxis(e);break;case"scale":c=l.scale(e);break;default:c=l.dataLabels(e,n)}return c},t.clone=function(t,r){var n=typeof t,a={},i=r,s=(0,o.extend2)({},this.args,!1,!0);switch(function(e,t,r){var n,a;for(n in e)if(e[n]instanceof Array)t[e[n][0]]=r[n];else for(a in e[n])t[e[n][a][0]]=r[n][a]}(g["default"],s,this),delete s.id,delete s.animate,delete s.stallLoad,a.link=s.link,(s=(0,o.extend2)({},s,!1,!0)).link=a.link,n){case"object":(0,o.extend2)(s,t,!1,!0);break;case"boolean":i=t}return i?s:new e(s)},t.isActive=function(){if(!this.ref||window.document.getElementById(this.id)!==this.ref)return!1;try{return q.test("FusionCharts")}catch(e){return!1}},t.chartType=function(t,r){var n,a=this,i=r,l=a.options;if("string"==typeof t&&""!==t){if(i="object"==typeof i?i:{},n=t.replace(/[\?\#][\s\S]*$/g,""),l.chartType=n.replace(/^[\s\S]*\//gi,""),l.chartTypeSourcePath=-1===n.indexOf("/")?i.chartTypeSourcePath||e.options.chartTypeSourcePath||"":n.replace(/[^\/]*?$/gi,""),"zoomscatter"===l.chartType&&!document.createElement("canvas").getContext){var c=Te(a),u=c.msgStyle,d=c.msg;return this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:l.chartType},resolve:function(){return{state:1,msgStyle:u,msg:d}}}),void this._setState()}if(("timeseries"===l.chartType||"chord"===l.chartType||"sankey"===l.chartType)&&o.isIE){var h=Te(a),f=h.msgStyle,p=h.msg;return this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:l.chartType},resolve:function(){return{state:1,msgStyle:f,msg:p}}}),void this._setState()}(0,s.triggerEvent)("resourceRequested",a),this._addChartDependency("chartModuleLoad",{scopeOf:this,opts:{value:l.chartType},resolve:Pe}),"undefined"!=typeof i.dataSource&&null!==i.dataSource&&this.setChartData(i.dataSource,i.dataFormat,i.dataConfiguration),this._setState()}else if(t!==D){var g=Le(this),m=g.msgStyle,v=g.msg;return this._addChartDependency("chartModuleLoad",{resolve:function(){return{state:1,msgStyle:m,msg:v}}}),this._setState(),void(0,s.triggerEvent)("charttypeinvalid",this,{},[this.id])}return(l.chartType||"").toLowerCase()},t.setChartDataUrl=function(e,t,r,n,a){var i=e||"";this._addChartDependency("data",{scopeOf:this,opts:{url:i,format:t,config:r,callback:n,silent:a},resolve:De}),this._setState()},t.setChartData=function(e,t,r,n,a){void 0===a&&(a=!0);var i,o=this,s=e,l=t,c=me[this.__state.prevState];if("waiting"!==o._getState()||"waiting"!==c||"json"!==t&&"xml"!==t||!(0,k["default"])(Object,s)){if(o.originalDataSource=e,null!=s){if("string"!=typeof l)switch(typeof s){case"function":s=s.call(o,o.options.dataConfiguration),l=o.args.dataFormat="JSON";break;case"string":l=o.args.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(l)?"JSON":"XML";break;case"object":l=o.args.dataFormat="JSON"}}else l=O;"xml"===(i=ue(l))&&o.apiInstance&&o.apiInstance.config&&o.apiInstance.config.isXMLUnsupported||(W.test(i)?o.setChartDataUrl(s,i,r,n,a):(this._addChartDependency("data",{opts:{data:s,sanitisedFormat:i,config:r,callback:n,silent:a},scopeOf:o,resolve:Fe}),!o.disposed&&this._setState()))}else setTimeout(function(){o.setChartData(e,t,r,n,a)},100)},t.getChartData=function(e,t,r){var n=e||O;"object"==typeof e&&e.format&&(n=e.format);var a,i,s=this,c=ue(null===n?O:n),u=(0,l.getDepsByType)("transcoder")[c](),d=s.options,h=s.apiInstance,f=!r&&(a=h&&h.getCollatedData&&h.getCollatedData(d.dataSource))?a:d.dataSource;return"object"==typeof e&&1===e.isRaw?i=s.originalDataSource:"xml"===c&&h&&h.config&&h.config.isXMLUnsupported?o.BLANKSTRING:(!(i=u?u.fromJSON?u.fromJSON(f,s):{error:new Error("Unable to convert data.")}:{error:new Error("Data format not recognized.")}).error&&d.error&&(i.error=d.error),t?i:i.data)},t.dataReady=function(e){return e?this.__state.dataAvailable:this.__state.dataReady},t.setChartAttribute=function(e,t){var r,n,a,i,s=e;if("string"==typeof s)(s={})[arguments[0]]=t;else if(null===s||"object"!=typeof s)return;for(n in i=0,(a=(r=this.getChartData(O)).chart||r.graph||r.map)||(a={},r=Object.assign({chart:a},r)),s)i+=1,null!==s[n]?a[n.toLowerCase()]=s[n]:delete a[n.toLowerCase()];i>0&&("undefined"==typeof a.animation&&(a.animation=o.ZEROSTRING),this.setChartData(r,O))},t.getChartAttribute=function(e){var t,r,n=this.getChartData(O),a=n&&(n.chart||n.graph||n.map);if(0===arguments.length||void 0===e||void 0===a||null===e)return a;if("string"==typeof e)t=a[e.toString().toLowerCase()];else if(e instanceof Array)for(t={},r=0;r<e.length;r+=1)t[e[r]]=a[e[r].toString().toLowerCase()];else(0,s.raiseError)(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');return t},t.render=function(e,t,r){var n=e||D,a=t||D,i=r||D;return this.disposed||(this.__state.beforeRenderFired=!1,this._addChartDependency("chartContainer",{scopeOf:this,opts:{containerElement:n,insertMode:a,callback:i},resolve:Re}),this.__state.renderInvoked=!0,this.__state.isDrawInvoked=!0),this._setState(),this},t._renderChart=function(e,t,r,n,a,i){if(void 0===i&&(i=!1),!this.disposed){var o=this.args.customAggregatorData||[];o.length>0&&o.forEach(function(e){var t=e.aggregatorFunctionName,r=void 0===t?"":t,n=e.aggregatorFunction,a=void 0===n?"":n;r&&a&&C["default"].register(r,a)});var l,c=this,u=function(){!0!==c.disposed&&c._render(e,t,r&&function(){if(r)try{r.call(c,c.options.containerElement)}catch(e){setTimeout(function(){throw e})}},n,a)};return i||this.__state.beforeRenderFired?u():(this.__state.beforeRenderFired=!0,(0,s.triggerEvent)("beforeRender",this,l={container:c.options.containerElement,width:this.width,height:this.height,renderer:this.options.renderer},D,u,function(){(0,s.triggerEvent)("renderCancelled",c,l),this.__state.renderInvoked=!1})),this}},t._render=function(t,r,n,a,i){var o=this;if(o.apiInstance&&o.apiInstance.removeJob("resizeScheduled"),o.__state.beforedrawFired?((0,d["default"])(e,o,t,r,n,a,i),o.__state.beforedrawFired=!0):(0,s.triggerEvent)("beforedraw",o,{},D,function(){(0,d["default"])(e,o,t,r,n,a,i)},function(){(0,s.triggerEvent)("drawCancelled",o),this.__state.isDrawInvoked=!1}),"gantt"===o.args.type&&o.width.includes("%")){var l,c,u;u=t.offsetWidth;window.addEventListener("resize",function(){clearTimeout(l),l=setTimeout(function(){(c=t.offsetWidth)!==u&&((0,d["default"])(e,o,t,r,n,a,i,!0),u=c)},100)})}if("multilevelpie"===o.args.type&&o.width.includes("%")){window.addEventListener("resize",function(){var e=t.parentNode,r=e?e.offsetWidth:t.offsetWidth,n=e?e.offsetHeight:t.offsetHeight;o.resizeTo(r,n,null),window.removeEventListener("resize",window)})}},t.resizeTo=function(e,t,r){var n=this,a=n.width,i=n.height,o=n.__state,l=r,c=t,u=e;return(n.apiInstance&&n.apiInstance.config||{}).resize=!0,null!==u&&"object"==typeof u&&(l=c,c=u.h,u=u.w),u=null==u?a:u.toString().replace(G,""),c=null==c?i:c.toString().replace(G,""),!0!==l&&(0,s.triggerEvent)("beforeresize",n,{currentWidth:a,currentHeight:i,newWidth:u,newHeight:c},D,function(){n.width=u,n.height=c,n.scheduleResize({width:u,height:c}),n.apiInstance&&n.apiInstance.addJob("resized"+pe++,function(){(0,s.triggerEvent)("resized",n,{id:n.id,width:n.width,height:n.height,prevWidth:a,prevHeight:i,pixelWidth:n.ref&&n.ref.offsetWidth||0,pixelHeight:n.ref&&n.ref.offsetHeight||0,originalWidth:o.renderedWidth,originalHeight:o.renderedHeight})},f.priorityList.postRender)},function(){(0,s.triggerEvent)("resizecancelled",n,{currentWidth:a,currentHeight:i,cancelledTargetWidth:u,cancelledTargetHeight:c})}),this},t.dispose=function(){var t=this,r={},n=function(t){for(var n in t._dispose(),t._addChartDependency("dispose",{resolve:function(){return{state:0}}}),t._setState(),(0,s.triggerEvent)("disposed",t,r),(0,s.disposeEvents)(t),delete e.items[t.id],t)t.hasOwnProperty(n)&&delete t[n];return t.disposed=!0,{state:0}};(0,s.triggerEvent)("beforeDispose",t,r,D,function(){t._addChartDependency("dispose",{scopeOf:t,resolve:n})},function(){(0,s.triggerEvent)("disposeCancelled",t,r)})},t._dispose=function(){var e,t=this,r=t.jsVars;t.apiInstance&&(t.apiInstance.removeJob("resizeScheduled"),t.apiInstance.remove({instant:!0}),delete t.apiInstance,delete r.instanceAPI),(e=window[t.id])&&(Ne(e),e.parentNode&&e.parentNode.removeChild(e)),r.container=null},t._config=function(e,t){var r,n,a=e,i=this.jsVars,o=i.msgStore,s=i.cfgStore,l=this.options;for(r in n={LoadingText:"loadMessage",ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"},"string"==typeof a&&arguments.length>1&&(r=a,(a={})[r]=t),a)"undefined"!=typeof o[r]?o[r]=a[r]:s[r.toLowerCase()]=a[r],n[r]?l[n[r]]=a[r]:l[r]=a[r]},t.configure=function(e,t){var r;e&&("string"==typeof e?(r={})[e]=t:r=e,this._config(r))},t.print=function(e){var t=this.apiInstance,r=(0,o.extend2)({},e);if(t.config.isPrinting||!t.config.hasRendered)return!1;(0,s.triggerEvent)("BeforePrint",this,r,D,function(){var e,n,a,i,l=t.getFromEnv("chart-container"),c=[],u=l.parentNode,d=document.body||document.getElementsByTagName("body")[0],h=d.childNodes;if(t.config.isPrinting=!0,(0,o.fcEach)(h,function(e,t){1===e.nodeType&&(c[t]=e.style.display,e.style.display=$)}),!1!==r.hideButtons&&(i=t.getChildren("chartMenuBar")))for(a=0,e=(n=i[0].getChildren("tool")).length;a<e;a++)n[0].getChildren("listContainer")[0].hide();d.appendChild(l),window.print(),setTimeout(function(){u.appendChild(l),(0,o.fcEach)(h,function(e,t){1===e.nodeType&&(e.style.display=c[t])}),r.hideButtons,t.config.isPrinting=!1,(0,s.triggerEvent)("PrintComplete",t.getFromEnv("chartInstance"),r)},1e3)},function(){(0,s.triggerEvent)("PrintCancelled",t.getFromEnv("chartInstance"),r)})},t.getSVGString=function(e,t){var r,n=this.apiInstance,a=n&&n.getFromEnv("paper");if(t&&t.keepImages&&(r=!0),"function"!=typeof e)return(new XMLSerializer).serializeToString(a.canvas);n.addJob("getSVG",function(){e(a&&a.toSVG&&a.toSVG(r))},f.priorityList.postRender)},t.lockResize=function(e){return"boolean"!=typeof e?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=e},t.showChartMessage=function(e,t,r,n){var a=e||D,i=t||D,o=r||D,s=n||{},l=this,c=l.apiInstance,u=function(){l._showChartMessage(a,i,o,s)};return c&&("base"===c.getName()?l.addEventListener("renderComplete",u):u()),a},t._showChartMessage=function(e,t,r,n){void 0===n&&(n={});var a,i=this,s=e,l=i.jsVars,c=i.apiInstance,u=i.options;c._hideChartMessage(),void 0!==s?(a={fontFamily:(0,o.pluck)(n.font,u.baseChartMessageFont,"Verdana,sans"),fontSize:(0,o.pluck)(n.fontSize,u.baseChartMessageFontSize,10),color:(0,o.pluck)(n.color&&(0,o.convertColor)(n.color,n.alpha),u.baseChartMessageColor)},l.msgStore[s]&&(s=l.msgStore[s]),c.addJob("showMsg",function(){t&&c&&c.config.hasRendered?(c._show&&c._show(),i.showMessage(s,a,r)):(c._hide&&c._hide(),c.setChartMessage(s,{_chartMessageStyle:a}),c.drawChartMessage())},f.priorityList.postRender)):i.hideChartMessage()},t._resize=function(){var e=this.apiInstance,t=this.jsVars.container;this.__state.resize=!0,e?(e.config.elScroll=!1,e.getFromEnv("animationManager").setAnimationState("resize"),e.addToEnv("chartWidth",t.offsetWidth),e.addToEnv("chartHeight",t.offsetHeight),this.args.dataSource&&(this.args.dataSource.data||this.args.dataSource.dataset||this.args.dataSource.colorRange||"string"==typeof this.args.dataSource||this.args.dataSource.value!==D||"multilevelpie"===this.args.type)&&this._addChartDependency("resize",{resolve:function(){return{state:3}}})):this._addChartDependency("resize",{resolve:function(){return{state:1}}}),this._setState(),this.__state.resize=!1},t.hideChartMessage=function(){var e=this.apiInstance;e._hideChartMessage(),e._show&&e._show()},t.showMessage=function(e,t,r){void 0===e&&(e="");var n,a,i,s=this.apiInstance,l=s.config,c=s.getFromEnv("paper"),u=s.getFromEnv("smartLabel"),d=s.getFromEnv("animationManager"),h=s.getGraphicalElement("messageText"),f=s.getGraphicalElement("messageVeil"),p=c.width,g=c.height;a=s.getChildContainer("messageGroup"),d.setAnimationState("showmessage"),(n=d.setAnimation({el:a||"group",attr:{name:"messageGroup"},component:s,label:"group"})).show().toFront(),a||s.addChildContainer("messageGroup",n),(f=d.setAnimation({el:f||"rect",attr:{x:0,y:0,width:p,height:g,fill:"rgba(0,0,0,0.2)",stroke:"none"},container:n,component:s,label:"rect"})).off("fc-click",n.hide),f.show().toFront().attr("cursor",r?o.POINTER:"default"),r&&f.on("fc-click",s._hideChartMessage,s),s.addGraphicalElement("messageVeil",f),u.setStyle(t),i=u.getSmartText(e,p-(l.marginRight||0)-(l.marginLeft||0),g-(l.marginTop||0)-(l.marginBotton||0)),(h=d.setAnimation({el:h||"text",attr:{"font-size":t.fontSize,"font-family":t.fontFamily,fill:t.color,text:i.text,"line-height":14,x:p/2,y:g/2},container:n,component:s,label:"text"})).attr("cursor",r?o.POINTER:"default")[r?"click":"unclick"](s._hideChartMessage,s).show().toFront(),s.addGraphicalElement("messageText",h)},t.scheduleResize=function(e){var t,r=this,n=r.ref;n&&(r._addChartDependency("resize",{resolve:function(){return{state:2}}}),r.apiInstance.addJob("resizeScheduled",function(){t=(0,o.normalizeCSSDimension)(e.width,e.height,n),"undefined"!=typeof e.width&&(n.style.width=t.width),"undefined"!==e.height&&(n.style.height=t.height),r._resize()},f.priorityList.instant))},e}();Be.id="FusionCharts",Be.options={html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts.","export":{useCanvas:!1},scriptBaseUri:(je=function(e){var t,r,n=window.document.getElementsByTagName("script"),a=n.length;for(r=0;r<a;r+=1)if(null!=(t=n[r].getAttribute("src"))&&null!==t.match(e))return t.replace(e,"$1")}(H),void 0===je?((0,s.raiseError)(Be,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):je),set creditLabel(e){console.warn("FusionCharts.options.creditLabel property is deprecated. Please use FusionCharts.options.license with a valid license key to remove the watermark.")},license:function(e){e&&S["default"].storeObj(Be,e)}},r.p=Be.getScriptBaseURI(),Be.version=P.split(/[\.\-]/g),Be.versionDetails=[Be.version,R],Be.items={},(0,s.setRootSender)(Be),F=!1,o.hasSVG||Be.addDep({name:"vml",type:"dependency",extension:r.e(13).then(r.bind(r,1690))}),setTimeout(function(){F=!0,(0,s.triggerEvent)("ready",Be,{version:Be.version,now:!0})},1),Be.addEventListener("dependencyAdded",function(e,t){if("maps"===t.type){var r={};r[t.name]=["fusioncharts.maps.js"],Be.getDep("dependency")||Be.addDep({name:"dependency",extension:r})}}),Be.addEventListener("initialized",we),Be.addDep(p["default"]),Be.addDep(v["default"]),Be.addDep(_["default"]),Be.addDep(b["default"]),Be.addDep(y["default"]),Be.addDep(w["default"]),Be.addDep(x["default"]);t["default"]=Be},e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{var n=r(278);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{var n=r(279)["default"],a=r(280);e.exports=function(e){var t=a(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{var n=r(279)["default"];e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.ZEROSTRING=t.VISIBLE=t.UNDERSCORE=t.UNDEF=t.TXT_STRING=t.TXT_REGEX=t.TXT_HREF=t.TRACKER_FILL=t.TOUCH_THRESHOLD_PIXELS=t.TILE=t.TEXTANCHOR=t.TESTSTR=t.STROKE_DASH_LINE_WIDTH=t.STRINGUNDEFINED=t.STRINGSTRING=t.SHAPE_RECT=t.SAMPLESTRING=t.ROUND=t.PXSTRING=t.PROJECT_VERSION=t.POSITION_TOP=t.POSITION_START=t.POSITION_RIGHT=t.POSITION_MIDDLE=t.POSITION_LEFT=t.POSITION_END=t.POSITION_CENTER=t.POSITION_BOTTOM=t.POSITION_ABSOLUTE=t.POINTER=t.ONESTRING=t.OBJECTSTRING=t.NORMAL=t.MathExt=t.MOUSEOUT=t.MOUSEMOVE=t.MIDDLESTR=t.LINE_HEIGHT_FACTOR=t.INITIALSTR=t.HUNDREDSTRING=t.HOVER_THRESHOLD_PIXELS=t.HASHSTRING=t.HAND=t.FIT=t.FINALSTR=t.FILL=t.FC_CONFIG_STRING=t.DEFAULT_FT_FONT=t.DECIMALSTRING=t.DASH_DEF=t.COMMASTRING=t.COMMASPACE=t.COMMA=t.COLOR_WHITE=t.COLOR_TRANSPARENT=t.COLOR_GLASS=t.COLOR_BLACK=t.CLICK_THRESHOLD_PIXELS=t.BUY_LICENSE_HREF=t.BREAKSTRING=t.BOLD=t.BLANKSTRINGPLACEHOLDER=t.BLANKSTRING=t.BLANK=t.BGRATIOSTRING=void 0,t._manageInteractiveSpace=function(){var e,t,r,n,a,i,o=this,s=o.config,l=o.getChildren(),c=l.xAxis[0],u=l.yAxis[0],d=l.canvas&&l.canvas[0],h=d.config,f=h.canvasBorderWidth,p=h.canvasPaddingTop,g=h.canvasPadding||0,m=h.canvasPaddingLeft,v=s.xAxisSpaceAllocation,b=s.yAxisSpaceAllocation[0].spaceTaken;t=s.xAxisSpaceAllocation=c.placeAxis(s.availableHeight+v.bottom),r=s.yAxisSpaceAllocation[0].spaceTaken=u.placeAxis(s.availableWidth+b.left),e=t.bottom-v.bottom,a=t.top-v.top,n=r.left-b.left,i=r.right-b.right,e&&o._allocateSpace({top:a,bottom:e}),(n||i)&&o._allocateSpace({left:n,right:i}),c&&c.setAxisDimention({x:s.canvasLeft+Math.max(m,g),y:c.config.isOpposit?s.canvasTop-f:s.canvasBottom+f,opposite:c.config.isOpposit?s.canvasBottom+f:s.canvasTop-f,axisLength:s.canvasWidth-Math.max(m,g)-Math.max(h.canvasPaddingRight,g)}),u&&u.setAxisDimention({x:u.config.isOpposit?s.canvasRight+f:s.canvasLeft-f,y:s.canvasTop+p,opposite:u.config.isOpposit?s.canvasLeft-f:s.canvasRight+f,axisLength:s.canvasHeight-p-h.canvasPaddingBottom}),(a||e||n||i)&&d.asyncDraw()},t.addInterActiveEvtName=function(e){e&&e.toLowerCase&&(ye[e.toLowerCase()]=!0)},t.attrTypeNum=t.attrTypeBool=t.appliedCSS=t.animationObjStr=t.animHelperFN=void 0,t.bindSelectionEvent=function(e,t){var r=t||{},n=e.config,a=e.getFromEnv("chart-container"),s=n.zoomType,l=(0,o["default"])({},r.attr||{}),u=l["stroke-width"]=(0,c["default"])(l.strokeWidth,l["stroke-width"],1),d=e.eventListeners||(e.eventListeners=[]),h=xe(a);r=(0,o["default"])({chart:e,zoomX:/x/.test(s),zoomY:/y/.test(s),canvasY:n.canvasTop,canvasX:n.canvasLeft,canvasW:n.canvasWidth,canvasH:n.canvasHeight,canvasX2:n.canvasLeft+n.canvasWidth,canvasY2:n.canvasTop+n.canvasHeight,strokeWidth:u,chartPosLeft:h.left,chartPosTop:h.top,attr:l},r),l.stroke=Ce(l.stroke,"rgba(51,153,255,0.8)"),l.fill=Ce(l.fill,"rgba(185,213,241,0.3)"),a&&(i["default"].unlisten(a,"pointerdrag",Se),d.push(i["default"].listen(a,"pointerdrag",Se,r)));n.link&&(i["default"].unlisten(e.getFromEnv("chart-container"),"mouseup mousedown",ke),d.push(i["default"].listen(e.getFromEnv("chart-container"),"mouseup mousedown",ke,r)))},t.canvasBorderColorStr=t.canvasBGAlphaStr=void 0,t.capitalizeString=function(e,t){return e?e.replace(t?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,function(e,t,r){return t+r.toUpperCase()}):e},t.chartPaletteStr=t.chartAPI=void 0,t.clampNumber=function(e,t,r){void 0===t&&(t=-Infinity);void 0===r&&(r=Infinity);if(e<=t)return t;if(e>=r)return r;return e},t.cleanColorCode=void 0,t.componentDispose=function Be(){var e,t,r,n,a,i,o,s,l,c,u,d,h=this;if(h&&h!==A){if(h.disposing=!0,e=h.components)for(r in e)if((t=e[r])instanceof Array)for(n=t.length,a=0;a<n;a++)(d=t[a])&&!h.disposing&&(d.dispose?d.dispose():Be.call(d));else t&&!t.disposing&&(t.dispose?t.dispose():Be.call(t));for(s in i=h.graphics)if(o=i[s])if(o.hide)o.hide(),o.followers&&o.followers[0]&&(u=o.followers[0].el)&&u.hide&&u.hide();else for(l in o)(c=o[l]).hide&&c.hide();for(r in h)delete h[r]}},t.componentFactory=void 0,t.computeFontSize=function(e){var t=parseFloat(e),r=function(e){if(e&&"string"==typeof e)return ue.find(function(t){return e.indexOf(t)>-1})||q;return q}(e),n=this.getLinkedParent(),a=parseInt(window.getComputedStyle(document.documentElement,null).fontSize,10);if(r===q)return t;switch(r){case"em":t*=(n.config.style?n.config.style.fontSize:u)||n.config.baseFontSize||a;break;case"rem":t*=a;break;case"vw":t=t/100*Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);break;case"%":t=t/100*((n.config.style?n.config.style.fontSize:u)||n.config.baseFontSize||a)}return t},t.configStr=void 0,t.configureDataLabelStyle=function(e,t){void 0===e&&(e={});var r,n,a=t||this.config.JSONData,i=this.getFromEnv("chartConfig");return r=Le(e.valuebordercolor,a.valuebordercolor,i.valueBorderColor),n=Le(e.valuebgcolor,a.valuebgcolor,i.valueBgColor),{color:(0,s.convertColor)(Le(e.valuefontcolor,a.valuefontcolor,i.valueFontColor),i.valueFontAlpha),borderColor:r?(0,s.convertColor)(r,i.valueBorderAlpha):j,backgroundColor:n?(0,s.convertColor)(n,i.valueBgAlpha):j}},t.convertToPixels=function(e,t){if(e&&isNaN(e)){var r=e.split("px");return 2===r.length?parseInt(r[0],10):2===(r=e.split("%")).length?Math.round(t*(parseInt(r[0],10)/100)):void 0}return parseInt(e,10)},t.defaultGaugePaletteOptions=t.datasetFactory=t.crispBound=t.createElement=void 0,t.defined=we,t.dehashify=function(e){return e&&e.replace(/^#?([a-f0-9]+)/gi,"$1")||"none"},t.dropHash=t.domInsertModes=void 0,t.executeJS=Fe,t.fastTrim=function(e){var t=e.replace(/^\s\s*/,""),r=t.length;for(;/\s/.test(t.charAt(r-=1)););return t.slice(0,r+1)},t.fcEach=function(e,t,r,n){var a,i=r,o=n;i||(i=e);o||(o={});if(ge(e)){for(a=0;a<e.length;a+=1)if(!1===t.call(i,e[a],a,e,o))return a}else if(null!==e&&e!==u)for(a in e)if(!1===t.call(i,e[a],a,e,o))return a},t.getAxisLimits=void 0,t.getColorCodeString=function(e,t){var r,n,a=B,i=0,o=t.split(z);for(n=o.length;i<n;i+=1)2===(r=o[i].split("-")).length?"-1"!==r[0].indexOf("dark")?a+=(0,s.getLightColor)(e,100-parseInt(r[1],10))+z:a+=(0,s.getDarkColor)(e,100-parseInt(r[1],10))+z:a+=o[i]+z;return a.substring(0,a.length-1)},t.getComparatorFN=function(e,t){if(e)return t?function(e,r){return e[t]-r[t]}:Re;return t?function(e,r){return r[t]-e[t]}:je},t.getContainerBackgroundColor=function(e){var t=e.options,r=t.containerBackgroundColor,n=t.containerBackgroundOpacity;we(e.jsVars.transparent)?n=e.jsVars.transparent?0:1:(n=parseFloat(n))<0?n=0:n>1&&(n=1);r||(r="#"+P);if(F&&!M)return n?r:"transparent";return r=r.replace(/^#?([a-f0-9]+)/gi,"$1"),(r=(0,s.HEXtoRGB)(r))[3]=n.toString(),"rgba("+r.join(",")+")"},t.getCripValues=t.getCrispValue=function(e,t,r){var n=r%2/2,a=te(e+n)-n,i=te(e+t+n)-n-a;return{position:a,distance:i}},t.getDashStyle=Oe,t.getDefinedColor=function(e,t){return e||0===e||e===j?e:t},t.getEventCoordinate=t.getEmptyConstractor=void 0,t.getFirstDefinedValue=function(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e||e===j)return e;return u},t.getFirstValue=Ce,t.getImageURL=function(e){var t={image:!1},r=e;r!==u&&(r=r.replace(/^\s+/,j).replace(/\s+$/,j),/^i\s*[\-]\s*/i.test(r)?(t.image=!0,t.string=r.replace(/^i\s*[\-]\s*/i,j)):t.string=r.replace(/^\\/,j));return t},t.getLinkAction=function(e,t){return function(r){if(!r||!t.config.clickURLOverridesPlotLinks){var n,a,i,o,s,l,d,h,f,p,g=e.chart||e.map||{},m=(0,c["default"])(g.unescapelinks,1),v=this.entity||u,b=this.entityBox||u,y=this.link,w=y;if(y!==u){switch(m&&(y=A.decodeURIComponent?A.decodeURIComponent(y):A.unescape(y)),-1!==(y=y.replace(/^\s+/,j).replace(/\s+$/,j)).search(/^[a-z]*\s*[\-\:]\s*/i)&&(p=(s=y.split(/\s*[\-\:]\s*/)[0].toLowerCase()).length),r&&(t.config.hotElemClicked=!0),s){case"j":case"javascript":De(y);break;case"n":y.replace(/^n\s*\-/i,"n-"),A.open(y.slice(2));break;case"f":-1!==(n=(y=y.replace(/^f\s*\-/i,"f-")).indexOf("-",2))?(a=y.substr(2,n-2))&&A.frames[a]?A.frames[a].location=y.slice(n+1):A.open(y.slice(n+1),a):A.open(y.slice(2));break;case"p":n=(y=y.replace(/p\s*\-/i,"p-")).indexOf("-",2),i=y.indexOf(z,2),-1===n&&(n=1),o=y.slice(n+1),(f=A.open(o,y.substr(2,i-2),y.substr(i+1,n-i-1)))&&f.focus();break;case"newchart":case"newmap":switch(":"===y.charAt(p)&&(n=y.indexOf("-",p+1),h=y.substring(p+1,n),p=n),n=y.indexOf("-",p+1),l=y.substring(p+1,n).toLowerCase()){case"xmlurl":case"jsonurl":d=y.substring(n+1,y.length);break;case"xml":case"json":d=function(e,t){var r,n={chart:{}},a=t,i=e.toLowerCase();if(a.linkeddata)for(r=0;r<a.linkeddata.length;r+=1)a.linkeddata[r].id.toLowerCase()===i&&(n=a.linkeddata[r].linkedchart||a.linkeddata[r].linkedmap);return n}(y.substring(n+1,y.length),e),l="json"}t.fireChartInstanceEvent("linkedChartInvoked",{alias:h,linkType:l.toUpperCase(),data:d,clickedEntity:v,clickedEntityBox:b});break;default:A.location.href=y}t.fireChartInstanceEvent("linkClicked",{linkProvided:w,linkInvoked:y,linkAction:s&&s.toLowerCase()})}}}},t.getMouseCoordinate=function(e,t,r){var n,a,i,o=L.webkitIsFullScreen||L.mozFullScreen||L.msFullscreenElement||L.fullscreenElement,s=me(_e(t)),l=o?s.clientX:s.pageX,u=o?s.clientY:s.pageY,f=r&&r.config||{},p=t.type,g=f&&f.itemFixed,m=(0,c["default"])(f.applycsstransform,0),v=g?A.pageYOffset||A.scrollY||L.documentElement.scrollTop:0,b=g?A.pageXOffset||A.scrollX||L.documentElement.scrollLeft:0;f.elScroll&&f.posOb&&!m?i=f.posOb:(f.elScroll=!0,i=xe(e),f.posOb=i);"touchend"===p?(isNaN(l)&&(l=d),isNaN(u)&&(u=h)):"touchmove"!==p&&"touchstart"!==p||(d=l,h=u);if(n=l-i.left-b,a=u-i.top-v,m){var y=function(e,t){var r,n,a,i,o,s,l,c=t.x,u=t.y,d=e,h=[],f=0,p=0,g=!1,m=!1,v=0,b=0;do{if("auto"!==(r=window.getComputedStyle(d)).getPropertyValue("overflow")&&"scroll"!==r.getPropertyValue("overflow")&&"auto"!==r.getPropertyValue("overflow-x")&&"scroll"!==r.getPropertyValue("overflow-x")&&"auto"!==r.getPropertyValue("overflow-y")&&"scroll"!==r.getPropertyValue("overflow-y")||(d.scrollHeight>d.offsetHeight&&(v+=d.scrollTop,m=!0),d.scrollWidth>d.offsetWidth&&(b+=d.scrollLeft,m=!0)),r.getPropertyValue("transform")&&"none"!==r.getPropertyValue("transform")){var y=r.getPropertyValue("transform-origin").split(" ").map(function(e){return+e.replace(/px/gi,"")});if(n=y[0],a=y[1],i=r.getPropertyValue("transform").split("(")[1].split(")")[0].split(",").map(function(e){return parseFloat(e.trim())}),6===i.length){var w=i,x=w[0],_=w[1],S=w[2],k=w[3],C=w[4],A=w[5];f=0,p=0,s=d;do{f+=s.offsetLeft,p+=s.offsetTop,s=s.offsetParent}while(s);h.push({elem:d,oriX:n,oriY:a,invM:Te([x,S,C,_,k,A]),matrix:[x,S,C,_,k,A],offsetLeft:f,offsetTop:p}),l=(g=!0)&&m}}d=d.parentElement}while(d);l?(c+=b*i[0],u+=v*i[3]):(c+=b,u+=v);f=0,p=0,s=e;do{f+=s.offsetLeft,p+=s.offsetTop,s=s.offsetParent}while(s);if(g)for(;d=h.pop();)c=(o=Me({x:c-=d.offsetLeft,y:u-=d.offsetTop},{oriX:d.oriX,oriY:d.oriY},d.invM)).x+d.offsetLeft,u=o.y+d.offsetTop;return{x:c-=f,y:u-=p}}(e,{x:l,y:u});n=y.x,a=y.y}return{chartX:n,chartY:a,pageX:l,pageY:u,clientX:s.clientX,clientY:s.clientY}},t.getPosition=xe,t.getSuggestiveRotation=function(){var e,t,r,n;e=arguments[0],1===arguments.length?(t=e.angle,r=e.x,n=e.y):(t=e,r=arguments[1],n=arguments[2]);return V+(t=t||0)+z+r+z+n},t.getTouchEvent=_e,t.getValidValue=Ne,t.hasTouch=t.hasSVG=t.gradientify=t.getViewPortDimension=void 0,t.hashify=function(e){return e&&e.replace(/^#?([a-f0-9]+)/gi,"#$1")||"none"},t.hiddenStr=void 0,t.imprint=function(e,t,r){var n,a=e;if("object"!=typeof a||null===a)return a=t,t;if("object"!=typeof t||null===t)return a;for(n in t)(a[n]===u||!r&&null===a[n])&&(a[n]=t[n]);return a},t.isIE9=t.isIE11=t.isIE=t.isFirefox=t.isEdge=t.isArray=void 0,t.isInterActiveEvt=function(e){return!!ye[e]},t.normalizeAngle=t.mathRound=t.mathAbs=t.lineHeightFactor=t.isXSSSafe=t.isSimilarObject=t.isIpad=void 0,t.normalizeCSSDimension=function(e,t,r){var n,a=void 0===e?r.offsetWidth||parseFloat(r.style.width):e,i=void 0===t?r.offsetHeight||parseFloat(r.style.height):t,o={},s=r.style;if(s.width=a=a.toString?a.toString():"0",s.height=i=i.toString?i.toString():"0",(o.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===r.offsetWidth)for(n=r;n=n.offsetParent;)if(n.offsetWidth>0){a=(n.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if((o.heightIsRelative=i.match(/^\s*\d*\.?\d*\%\s*$/)&&!i.match(/^\s*0\%\s*$/))&&r.offsetHeight<=20)for(n=r;n=n.offsetParent;)if(n.offsetHeight>0){i=(n.offsetHeight*parseFloat(i.match(/\d*/)[0])/100).toString();break}return o.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):a,o.height=i.replace?i.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):i,s.width=o.width,s.height=o.height,o.pixelWidth=o.widthIsRelative?r.offsetWidth:parseInt(o.width,10)||0,o.pixelHeight=o.heightIsRelative?r.offsetHeight:parseInt(o.height,10)||0,o},t.pInt=function(e,t){return parseInt(e,t||10)},t.parseTooltext=void 0,t.parseUnsafeString=function(e,t){void 0===t&&(t=!0);var r=-1;if("string"==typeof e)return t?e.replace(/<|>|\'|\"/g,function(e,t,n){switch(e){case"<":return/^<br\s*[\/]?>/gi.test(n.slice(t,n.length))?(r=t,e):"&lt;";case">":return r>=0&&/<br\s*[\/]?>$/gi.test(n.slice(r,t+1))?(r=-1,e):"&gt;";case'"':return"&#034;";case"'":return"&#039;"}}).replace(Y,R):e.replace(Y,R);return j},t.parsexAxisStyles=function(e,t,r,n,a){var i,o=Ce(e.labelbordercolor,t.bordercolor,r.labelbordercolor,j),l=Le(e.labelbgcolor,t.bgcolor,r.labelbgcolor),u=(0,c["default"])(e.labelborderthickness,t.borderthickness,r.labelborderthickness,1),d=(0,c["default"])(r.usedataplotcolorforlabels,0)&&a||n.color;return o=o?(0,s.convertColor)(o,(0,c["default"])(e.labelborderalpha,t.borderalpha,r.labelborderalpha,e.labelalpha,t.alpha,r.labelalpha,100)):j,(i={fontFamily:Le(e.labelfont,t.font,r.labelfont,n.fontFamily),fontSize:Le(e.labelfontsize,t.fontsize,this.computeFontSize(r.labelfontsize),parseInt(n.fontSize,10))+q,fontSizeWithUnit:Ee(e.labelfontsize,t.fontsize,r.labelfontsize,n.fontSizeWithUnit),color:(0,s.convertColor)(Le(e.labelfontcolor,t.fontcolor,r.labelfontcolor,d),(0,c["default"])(e.labelfontalpha,t.fontalpha,r.labelfontalpha,e.labelalpha,t.alpha,r.labelalpha,100)),fontWeight:(0,c["default"])(e.labelfontbold,t.fontbold,r.labelfontbold)?"bold":"normal",fontStyle:(0,c["default"])(e.labelfontitalic,t.fontitalic,r.labelfontitalic)?"italic":"normal",border:o||l?u+"px solid":j,borderColor:o,borderThickness:u,borderPadding:(0,c["default"])(e.labelborderpadding,t.borderpadding,r.labelborderpadding,2),borderRadius:(0,c["default"])(e.labelborderradius,t.borderradius,r.labelborderradius,0),backgroundColor:l?(0,s.convertColor)(l,(0,c["default"])(e.labelbgalpha,t.bgalpha,r.labelbgalpha,e.labelalpha,t.alpha,r.labelalpha,100)):j,borderDash:(0,c["default"])(e.labelborderdashed,t.borderdashed,r.labelborderdashed,0)?Oe((0,c["default"])(e.labelborderdashlen,t.borderdashlen,r.labelborderdashlen,4),(0,c["default"])(e.labelborderdashgap,t.borderdashgap,r.labelborderdashgap,2)):N}).lineHeight=Pe(i),i},t.pluck=Le,t.pluckFontSize=function(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e<1?1:e;return 1},t.pluckFontSizeMaintainUnit=Ee,t.preDefStr=t.polyPathToPath=void 0,t.pseudoEval=De,t.regReplaceEscape=Ae,t.regescape=function(e){return e&&e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t.regex=void 0,t.removeAllTooltipOnChart=function(e,t){for(var r=e.implicit,n=e.explicit,a=0;a<r.length;a++){var i=r[a];t?i.hide():i.element&&i.element.remove()}for(var o=0;o<n.length;o++){var s=n[o];t?s.hide():s.element&&s.element.remove()}},t.rgbaToHex=t.removeHtmlAttrs=void 0,t.setImageDisplayMode=function(e,t,r,n,a,i,o,s){var c=s.width*(n/100),u=s.height*(n/100),d=i-2*a,h=o-2*a;return(0,l.getAlignImage)(t,r,e,c,u,i,o,a,d,h)},t.setLineHeight=Pe,t.snapPoint=void 0,t.stableSort=function(e,t){var r,n=e.length;for(r=0;r<n;r++)e[r].ssI=r;for(e.sort(function(e,r){var n=t(e,r);return 0===n?e.ssI-r.ssI:n}),r=0;r<n;r++)delete e[r].ssI},t.supportedStyle=t.stubFN=t.startsRGBA=void 0,t.toPrecision=Ie,t.touchEnabled=t.toRaphaelColor=void 0,t.trimString=function(e){var t=e.replace(/^\s\s*/,""),r=t.length;for(;/\s/.test(t.charAt(r-=1)););return t.slice(0,r+1)},t.xssEncode=t.visibleStr=t.validhexcolor=t.txtLabel=void 0;var a=r(282);t.attribDefs=a.attribDefs,t.parseConfiguration=a.parseConfiguration,t.setAttribDefs=a.setAttribDefs,t.hasAttribDefs=a.hasAttribDefs;var i=n(r(283)),o=n(r(284));t.extend2=o["default"];var s=r(285);t.convertColor=s.convertColor,t.getDarkColor=s.getDarkColor,t.getLightColor=s.getLightColor,t.mapSymbolName=s.mapSymbolName,t.getColumnColor=s.getColumnColor,t.getPointColor=s.getPointColor,t.getAngle=s.getAngle,t.parseColor=s.parseColor,t.getValidColor=s.getValidColor,t.RGBtoHex=s.RGBtoHex,t.rawRGBtoHEX=s.rawRGBtoHEX,t.HEXtoRGB=s.HEXtoRGB,t.parsePointValue=s.parsePointValue,t.getFirstColor=s.getFirstColor,t.getFirstAlpha=s.getFirstAlpha;var l=r(286),c=n(r(287));t.pluckNumber=c["default"];var u,d,h,f,p,g,m,v,b,y,w,x,_,S,k=t.PROJECT_VERSION="4.2.0",C=t.LINE_HEIGHT_FACTOR=1.2,A=window,N=t.DASH_DEF="none",E=t.stubFN=function(){},L=(t.getEmptyConstractor=function(){return E},t.isIE9=(S=A.navigator.userAgent.toLowerCase(),!(!(_=-1!==S.indexOf("msie")&&A.parseInt(S.split("msie")[1]))||9!==_)),t.isFirefox=/Firefox/i.test(A.navigator.userAgent),A.document),T=A.navigator,M=t.hasSVG=Boolean(A.SVGAngle||L.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),F=(t.isIE11=/trident/i.test(T.userAgent)&&/rv:11/i.test(T.userAgent)&&!window.opera,t.isIE=/msie/i.test(T.userAgent)&&!A.opera),D=(t.isEdge=/Edge/.test(T.userAgent),t.isIpad=!!T.platform&&/iPad|iPhone|iPod/.test(T.platform),t.DEFAULT_FT_FONT="Helvetica, Arial, sans-serif",t.attrTypeNum=1,t.attrTypeBool=2,t.STROKE_DASH_LINE_WIDTH="6",/[\\\"<>;&]/),I=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,O=(t.TRACKER_FILL="rgba(192,192,192,"+(F?.002:1e-6)+")",t.POSITION_ABSOLUTE="absolute",t.POSITION_RIGHT="right",t.POSITION_LEFT="left",t.POSITION_CENTER="center",t.BLANKSTRINGPLACEHOLDER="#BLANK#",t.SAMPLESTRING="Ay0",t.COLOR_BLACK="000000"),P=(t.COLOR_GLASS="rgba(255, 255, 255, 0.3)",t.COLOR_WHITE="FFFFFF"),R=(t.COLOR_TRANSPARENT="rgba(0,0,0,0)",t.HASHSTRING="#",t.BREAKSTRING="<br />"),j=(t.STRINGSTRING="string",t.OBJECTSTRING="object",t.BLANK=""),B=t.BLANKSTRING=j,z=(t.COMMASTRING=",",t.COMMA=","),V="r",U=(t.ZEROSTRING="0",t.MOUSEOUT="fc-mouseout",t.MOUSEMOVE="fc-mousemove",t.TESTSTR="Ag",t.ONESTRING="1",t.DECIMALSTRING="."),H=(t.STRINGUNDEFINED="undefined",t.POSITION_TOP="top",t.POSITION_BOTTOM="bottom",t.MIDDLESTR=t.POSITION_MIDDLE="middle",t.POSITION_START="start",t.POSITION_END="end",t.FC_CONFIG_STRING="_FCconf",t.SHAPE_RECT="rect",t.HUNDREDSTRING="100","innerWidth"),q=(t.FINALSTR="final",t.INITIALSTR="initial",t.VISIBLE="visible",t.PXSTRING="px"),G=(t.COMMASPACE=", ",t.TEXTANCHOR="text-anchor",t.canvasBGAlphaStr="canvasBgAlpha",t.ROUND="round",t.UNDERSCORE="_"),W=(t.NORMAL="normal",t.BOLD="bold",t.POINTER="pointer"),$=(t.HAND=W,t.TILE="tile",t.FILL="fill",t.FIT="fit",t.TXT_HREF="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+escape(k),t.BUY_LICENSE_HREF="https://www.fusioncharts.com/support",t.TXT_STRING="70|117|115|105|111|110|67|104|97|114|116|115|32|84|114|105|97|108".split("|").map(function(e){return String.fromCharCode(+e)}).join(""),t.canvasBorderColorStr="canvasBorderColor",t.TOUCH_THRESHOLD_PIXELS=15,t.CLICK_THRESHOLD_PIXELS=5,t.HOVER_THRESHOLD_PIXELS=1,t.lineHeightFactor=1.2,t.configStr="config",t.animationObjStr="animationObj",t.hiddenStr="hidden",t.visibleStr="visible",parseFloat),X=t.TXT_REGEX=/fusioncharts\.com|fusioncharts\.github\.io$/i,Y=/\{br\}\s*/gi,K=t.dropHash=/^#?/,J=t.startsRGBA=/^rgba/i,Z=t.cleanColorCode=/[#\s]/gi,Q=(t.validhexcolor=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,t.mathAbs=Math.abs),ee=Math.pow,te=t.mathRound=Math.round,re=ee(2,-24),ne=t.touchEnabled="ontouchstart"in L,ae=t.hasTouch=ne&&!(T.maxTouchPoints||T.msMaxTouchPoints),ie=(t.txtLabel=!X.test(A.location.hostname),Math),oe=ie.max,se=ie.min,le={pageX:0,pageY:0},ce=["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],ue=["rem","em","vw","%",q],de=(t.defaultGaugePaletteOptions={paletteColors:[ce,ce,ce,ce,ce],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD","EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],TrendLightShadeOffset:30},t.domInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},t.isXSSSafe=function(e,t){return(!t||null===I.exec(e))&&null===D.exec(e)},t.xssEncode=function(e){var t=e;return null==t||"function"!=typeof t.toString?"":t=t.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},t.MathExt={numDecimals:function(e){var t=e;t=Ie(t,10);var r=Ie((t=Math.abs(t))-Math.floor(t),10),n=String(r).length-2;return n=n<0?0:n,n},toRadians:function(e){return e/180*Math.PI},toDegrees:function(e){return e/Math.PI*180},flashToStandardAngle:function(e){return-1*e},standardToFlashAngle:function(e){return-1*e},flash180ToStandardAngle:function(e){var t=e,r=360-((t%=360)<0?t+360:t);return 360===r?0:r},getAngularPoint:function(e,t,r,n){var a=n*(Math.PI/180);return{x:e+r*Math.cos(a),y:t-r*Math.sin(a)}},remainderOf:function(e,t){return Math.ceil(e%t)},boundAngle:function(e){return e>=0?de.prototype.remainderOf(e,360):360-de.prototype.remainderOf(Math.abs(e),360)},toNearestTwip:function(e){var t=e,r=t<0?-1:1,n=Math.abs(t),a=Math.round(100*n),i=Math.floor(a/5);return r*((Number(String(a-5*i))>2?5*i+5:5*i)/100)},roundUp:function(e,t){var r=e,n=t;n=n||2;var a=Math.pow(10,n);return r*=a,r=Math.round(Number(String(r))),r/=a}}),he=2*ie.PI,fe=(t.normalizeAngle=function(e,t){var r=t?360:he,n=(e||0)%r;return n<0?r+n:n},t.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},t.supportedStyle={font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},M?0:.5),pe=(t.crispBound=function(e,t,r,n,a,i,o,s){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===i&&(i={}),void 0===s&&(s=!1);var l=a;if(n<1||r<1)return{x:e,y:t,width:r,height:n,"stroke-width":l};(l>=r||l>=n)&&(l=Math.floor(Math.min(r,n)/2)||l);var c=e,u=t,d=e+r,h=l/2,f=l%2,p=t+n;return u=i.top?Math.round(u)+h-fe:f?Math.floor(u)+.5-fe:Math.round(u)-fe,p=i.bottom?Math.round(p)-h-fe:o&&i.top?Math.round(p)+h-fe:f?Math.floor(p)+.5-fe:Math.round(p)-fe,c=i.left?Math.round(c)+h-fe:o&&i.right?Math.round(c)-h-fe:f?s?Math.round(c)-h-fe:Math.floor(c)+.5-fe:Math.round(c)-fe,d=i.right?Math.round(d)-h-fe:f?Math.floor(d)+.5-fe:Math.round(d)-fe,{x:c,y:u,width:Math.abs(d-c),height:Math.abs(p-u),"stroke-width":l}},["color"]),ge=(t.removeHtmlAttrs=function(e){return void 0===e&&(e={}),pe.forEach(function(t){return delete e[t]}),e},t.polyPathToPath=function(e){var t,r,n,a,i,o=e[0],s=e[1],l=e[2],c=e[3],u=e[4],d=e[5];if(t=[],o=A.parseInt(o,10)||0,s=$(s)||0,l=$(l)||0,c=$(c)||0,u=null===u||isNaN(u)?.5*Math.PI:u%360*(Math.PI/180),d=null===d||isNaN(d)?0:$(d),a=u,o>2)switch(r=2*Math.PI/o,d){case 0:for(n=0;n<o;n++)t.push("L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r;t[0]="M",t.push("Z");break;case 1:for(n=0;n<o;n++)t.push("M",s,l,"L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r;break;default:for(r*=.5,i=c*Math.cos(r)*(1-d),n=0;n<o;n++)t.push("L",s+c*Math.cos(-a),l+c*Math.sin(-a)),a+=r,t.push("L",s+i*Math.cos(-a),l+i*Math.sin(-a)),a+=r;t[0]="M",t.push("Z")}else 0===c?t.push("M",s,l,"L",s,l,"Z"):t.push("M",s-c,l,"A",c,c,0,0,0,s+c,l,"A",c,c,0,0,0,s-c,l,"Z");return t},t.rgbaToHex=function(e){var t=e.replace("rgba(",B).split(",");return"#"+(O+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},t.animHelperFN={getTimeByValue:function(e,t,r){var n=(e.end-e.start)/(t.endPx-t.startPx);return{start:e.start+n*(r.startPx-t.startPx),end:e.start+n*(r.endPx-t.startPx)}},animByWeight:function(e,t,r,n,a){var i=n||1,o=t,s=a||0;return{start:e/--o*r*i+s,end:e/o*r*i+r+s}}},t.createElement=function(e,t,r){var n,a=L.createElement(e);for(n in t)a.setAttribute(n,t[n]);return r&&r.appendChild&&r.appendChild(a),a},t.isArray=function(){if(Array.isArray)return Array.isArray;var e=Object.prototype.toString;return function(t){return e.call(t)===e.call([])}}()),me=t.getEventCoordinate=function(e){return e.pageX===u&&(e.pageX=e.clientX+L.body.scrollLeft+L.documentElement.scrollLeft,e.pageY=e.clientY+L.body.scrollTop+L.documentElement.scrollTop),e},ve=(t.getViewPortDimension=(b=H,y="innerHeight",w=L.documentElement||L.body,x=w,H in A?x=A:(b="clientWidth",y="clientHeight"),function(){return{width:x[b],height:x[y],scrollTop:w.scrollTop,scrollLeft:w.scrollLeft}}),v=/^@window_/g,function(e,t,r){var n,a,i,o,s=e.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,j).replace(/\[/g,".@window_").replace(/\]/g,j).split("."),l=A,c=j;for(i=s.length,o=0;o<i;o+=1){if(n=l,(a=s[o]).match(v))l=l[A[a.replace(v,j)]];else{if(l===u||null===l)throw(c||a).replace(v,j)+" is not defined";l=l[a]}c=a}if(!l||"function"!=typeof l.call&&l!==A.alert){if("void"===c)return;setTimeout(function(){throw a.replace(v,j)+"() is not a function"},0)}else l===A.alert?l(t):r?l.apply(n,t.split("__FC_ARG_SEP__")):l.call(n,t)}),be=(t.toRaphaelColor=(m={},function(e){var t,r,n,a,i,o=e||this,l=o&&o.FCcolor||o,c=l.color,d=l.ratio,h=l.angle,f=l.alpha,p=l.r,g=l.cx,v=l.cy,b=l.fx,y=l.fy,w=l.gradientUnits,x=l.x1,_=l.y1,S=l.x2,k=l.y2,C=1;if("string"==typeof o)return m[i="~"+o]||(m[i]=o.replace(/^#?([a-f0-9]{3,6})/gi,"#$1"));if(!(c=c||j))return t;if(i=[c,f,d,h,p,g,v,w,b,y,x,S,_,k,l.radialGradient].join(G).replace(/[\(\)\s,\xb0#]/g,G),m[i])return m[i];if(d=d&&(d+j).split(z)||[],f=(f||0===f)&&(f+j).split(z)||[],c=c.split(z))if(t=j,1===c.length)a=c[0].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),t=f.length?"rgba("+(0,s.HEXtoRGB)(a).join(z)+","+.01*$(f[0])+")":a.replace(/^#?([a-f0-9]{3,6})/gi,"#$1");else{for(r=0,n=c.length;r<n;r++)a=c[r].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),isNaN(d[r])||(d[r]=$(d[r]),a+=":"+d[r],isNaN(d[r+1])||(d[r+1]=$(d[r+1])+d[r])),isNaN(f[r])||f[r]===j||(C=.01*f[r]),c[r]="rgba("+(0,s.HEXtoRGB)(a).join(z)+","+C+")",isNaN(d[r])||(d[r]===d[r-1]&&(d[r]+=.001),c[r]=c[r]+":"+d[r]);t+=c.join("-"),p!==u||b!==u||g!==u||l.radialGradient?t="xr("+[b,y,p,g,v,w].join(",")+")"+t:(t="-"+t,x===u&&_===u&&S===u&&k===u||(t="("+[x,_,S,k,w].join(",")+")"+t),h===u&&(h=0),t=360-$(h)%360+t)}return m[i]=t,t}),t.gradientify=function(){return B},function(e,t){var r=this.argKey,n=Number(e.match(/\d+/g)[0]);return t[n]?t[n][r]:u}),ye=(t.parseTooltext=function(){var e,t=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/gi,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/gi,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/gi,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/gi,argIndex:2,argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/gi,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/gi,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/gi,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/gi,argIndex:3,argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/gi,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/gi,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/gi,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/gi,argIndex:3,argKey:"y"},{regex:/((^|[^\\])((\\)\\)*\$zvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/gi,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/gi,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/gi,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/gi,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/gi,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/gi,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/gi,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/gi,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/gi,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/gi,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/gi,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/gi,argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/gi,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/gi,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/gi,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/gi,argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/gi,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/gi,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/gi,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/gi,argIndex:2,argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/gi,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/gi,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/gi,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/gi,argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/gi,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/gi,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/gi,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/gi,argIndex:2,argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/gi,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/gi,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/gi,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/gi,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/gi,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/gi,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/gi,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/gi,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/gi,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/gi,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/gi,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/gi,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/gi,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/gi,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/gi,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/gi,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/gi,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/gi,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/gi,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/gi,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/gi,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/gi,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/gi,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/gi,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/gi,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/gi,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/gi,argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/gi,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/gi,argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/gi,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/gi,argIndex:5,argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/gi,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/gi,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/gi,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/gi,argIndex:5,argKey:"columnLabel"},{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/gi,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/gi,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/gi,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/gi,argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/gi,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/gi,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/gi,argIndex:2,argKey:"verticalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/gi,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/gi,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/gi,argIndex:2,argKey:"horizontalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/gi,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/gi,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/gi,argIndex:2,argKey:"xAxisPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/gi,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/gi,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/gi,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/gi,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/gi,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/gi,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/gi,argIndex:2,argKey:"zDataValue"},{regex:/((^|[^\\])((\\)\\)*\$svalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$svalue))/gi,argIndex:3,argKey:"svalue"},{regex:/((^|[^\\])((\\)\\)*\$positiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$positiveErrorValue))/gi,argIndex:2,argKey:"positiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$negativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$negativeErrorValue))/gi,argIndex:2,argKey:"negativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$datasvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datasvalue))/gi,argIndex:2,argKey:"formattedsValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalNegativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalNegativeErrorValue))/gi,argIndex:2,argKey:"horizontalNegativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalPositiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalPositiveErrorValue))/gi,argIndex:2,argKey:"horizontalPositiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalNegativeErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalNegativeErrorValue))/gi,argIndex:2,argKey:"verticalNegativeErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalPositiveErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalPositiveErrorValue))/gi,argIndex:2,argKey:"verticalPositiveErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalNegativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalNegativeErrorDataValue))/gi,argIndex:2,argKey:"horizontalNegativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalPositiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalPositiveErrorDataValue))/gi,argIndex:2,argKey:"horizontalPositiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalPositiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalPositiveErrorDataValue))/gi,argIndex:2,argKey:"verticalPositiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalNegativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalNegativeErrorDataValue))/gi,argIndex:2,argKey:"verticalNegativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$positiveErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$positiveErrorDataValue))/gi,argIndex:2,argKey:"positiveErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$negativeErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$negativeErrorDataValue))/gi,argIndex:2,argKey:"negativeErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$nodeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$nodeValue))/gi,argIndex:3,argKey:"nodeValue"},{regex:/((^|[^\\])((\\)\\)*\$nodeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$nodeDataValue))/gi,argIndex:3,argKey:"nodeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$dominantNode)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantNode))/gi,argIndex:2,argKey:"dominantNode"},{regex:/((^|[^\\])((\\)\\)*\$subservientNode)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientNode))/gi,argIndex:2,argKey:"subservientNode"},{regex:/((^|[^\\])((\\)\\)*\$dominantFlowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantFlowValue))/gi,argIndex:2,argKey:"dominantFlowValue"},{regex:/((^|[^\\])((\\)\\)*\$dominantFlowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantFlowDataValue))/gi,argIndex:2,argKey:"dominantFlowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$subservientFlowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientFlowValue))/gi,argIndex:2,argKey:"subservientFlowValue"},{regex:/((^|[^\\])((\\)\\)*\$subservientFlowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientFlowDataValue))/gi,argIndex:2,argKey:"subservientFlowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$linkValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkValue))/gi,argIndex:3,argKey:"linkValue"},{regex:/((^|[^\\])((\\)\\)*\$linkDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkDataValue))/gi,argIndex:3,argKey:"linkDataValue"},{regex:/((^|[^\\])((\\)\\)*\$plotFillColor)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotFillColor))/gi,argIndex:3,argKey:"plotFillColor"},{regex:/((^|[^\\])((\\)\\)*\$plotFillAlpha)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotFillAlpha))/gi,argIndex:3,argKey:"plotFillAlpha"},{regex:/((^|[^\\])((\\)\\)*\$plotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$plotIdentifier))/gi,argIndex:3,argKey:"plotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$dominantPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$dominantPlotIdentifier))/gi,argIndex:2,argKey:"dominantPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$subservientPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$subservientPlotIdentifier))/gi,argIndex:2,argKey:"subservientPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$from\b)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$from\b))/gi,argIndex:2,argKey:"from"},{regex:/((^|[^\\])((\\)\\)*\$to\b)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$to\b))/gi,argIndex:2,argKey:"to"},{regex:/((^|[^\\])((\\)\\)*\$linkValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$linkValue))/gi,argIndex:2,argKey:"linkValue"},{regex:/((^|[^\\])((\\)\\)*\$fromPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromPlotIdentifier))/gi,argIndex:3,argKey:"fromPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$toPlotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toPlotIdentifier))/gi,argIndex:3,argKey:"toPlotIdentifier"},{regex:/((^|[^\\])((\\)\\)*\$flowDirection)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$flowDirection))/gi,argIndex:3,argKey:"flowDirection"},{regex:/(((\\)\\)*\$series.[0-9].name)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].name))/gi,argIndex:2,argKey:"name",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].color)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].color))/gi,argIndex:3,argKey:"color",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].plotIdentifier)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].plotIdentifier))/gi,argIndex:3,argKey:"plotIdentifier",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].value)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].value))/gi,argIndex:3,argKey:"value",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].dataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].dataValue))/gi,argIndex:3,argKey:"dataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].volumeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].volumeValue))/gi,argIndex:3,argKey:"volumeValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].volumeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].volumeDataValue))/gi,argIndex:3,argKey:"volumeDataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].openValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].openValue))/gi,argIndex:3,argKey:"openValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].openDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].openDataValue))/gi,argIndex:3,argKey:"openDataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].highValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].highValue))/gi,argIndex:3,argKey:"highValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].highDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].highDataValue))/gi,argIndex:3,argKey:"highDataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].lowValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].lowValue))/gi,argIndex:3,argKey:"lowValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].lowDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].lowDataValue))/gi,argIndex:3,argKey:"lowDataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].closeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].closeValue))/gi,argIndex:3,argKey:"closeValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(((\\)\\)*\$series.[0-9].closeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$series.[0-9].closeDataValue))/gi,argIndex:3,argKey:"closeDataValue",isTimeseriesMacro:!0,parsingMethod:be},{regex:/(\$binStart)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$binStart))/gi,argIndex:3,argKey:"binStart",isTimeseriesMacro:!0},{regex:/(\$binEnd)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$binEnd))/gi,argIndex:3,argKey:"binEnd",isTimeseriesMacro:!0},{regex:/(\$bin)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bin))/gi,argIndex:3,argKey:"bin",isTimeseriesMacro:!0},{regex:/((^|[^\\])((\\)\\)*\$barColor)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$barColor))/gi,argIndex:3,argKey:"barColor"},{regex:/((^|[^\\])((\\)\\)*\$icon)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$icon))/gi,argIndex:3,argKey:"icon"}],r=[],n=t.length;for(e=0;e<n;e+=1)r.push(e);return function(){var e,n,a,i,o,s,l=arguments[0],c=arguments[1],u=arguments;if(ge(c)||(c=r),l)for(o=c.length,s=function(){return a.parsingMethod(arguments[0],u[a.argIndex].series)},i=0;i<o;i+=1)if(a=t[c[i]])if(a.isTimeseriesMacro){var d=a.argKey;a.parsingMethod?l=l.replace(a.regex,s):u[a.argIndex]&&(l=l.replace(a.regex,u[a.argIndex].series[0][d]))}else e=Ae(Ne((n=arguments[a.argIndex])&&n[a.argKey],j)+j),l=(l=l.replace(a.regex,"$2$4"+(a.parsingMethod?a.parsingMethod(e):e))).replace(a.escapeRegex,"$2$4$5");return l}}(),t.getAxisLimits=(f=function(e,t,r,n,a){var i,o=Math.abs(t-e),s=o/(r+1),l=n;return g(o,r,l)||(a&&(i=l>1?2:.5,Number(s)/Number(l)<i&&(l/=10)),o=(s=(Math.floor(s/l)+1)*l)*(r+1)),o},p=function(e){var t=Math.abs(e),r=String(t),n=0,a=r.indexOf(U);return-1!==a&&(n=r.length-a-1),n},g=function(e,t,r){return!(p(e/(t+1))>p(r))},function(e,t,r,n,a,i,o,s){var l,c,d,h,p,m,v,b,y,w,x,_,S,k,C,A,N,E,L,T,M,F,D,I,O,P,R,j=0,B=e,z=t,V=a,U=i,H=o;if((B=!0===isNaN(B)||B===u?.1:B)===(z=!0===isNaN(z)||z===u?0:z)&&0===B&&(B=.1),V=void 0===V||V,U=void 0===U||U,v=Math.floor(Math.log(Math.abs(B))/Math.LN10),b=Math.floor(Math.log(Math.abs(z))/Math.LN10),y=Math.max(b,v),w=Math.pow(10,y),Math.abs(B)/w<2&&Math.abs(z)/w<2&&(y--,w=Math.pow(10,y)),x=Math.floor(Math.log(B-z)/Math.LN10),_=Math.pow(10,x),B-z>0&&w/_>=10&&(w=_,y=x),S=(Math.floor(B/w)+1)*w,k=z<0?(Math.floor(Math.abs(z/w))+1)*w*-1:U||(k=Math.floor(Math.abs(z/w)-1)*w)<0?0:k,V&&B<=0&&(S=0),c=!(!n&&0!==n),d=!1==(l=!(!r&&0!==r))||!0===l&&Number(r)<B&&B-Number(r)>re?S:Number(r),h=!1===c||!0===c&&Number(n)>z&&Number(n)-z>re?k:Number(n),p=Math.abs(d-h),m=w,!1===c&&!1===l&&s)if(d>0&&h<0){for(A=!1,E=f(h,d,H,N=m>10?m/10:m,!1)-(H+1)*N;!1===A;)if(g(E+=(H+1)*N,H,N))if(C=E-p,L=E/(H+1),T=(M=Math.min(Math.abs(h),d))===Math.abs(h)?-1:1,0===H)A=!0;else for(D=1;D<=Math.floor((H+1)/2);D++)(F=L*D)-M>C||F>M&&(P=E-F)/L===Math.floor(P/L)&&F/L===Math.floor(F/L)&&(p=E,d=-1===T?P:F,h=-1===T?-F:-P,A=!0)}else C=(I=f(h,d,H,m,!0))-p,p=I,d>0?d+=C:h-=C;else s&&(R=function(e,t,r){for(var n,a=0,i=1;!g(t,n=0===(n=e+a*i)?1:n,r);){if((a=-1===i||a>e?++a:a)>25){n=0;break}i=a<=e?-1*i:1}return n},H>0&&(0===(O=R(H,p,m))&&(O=R(H,p+1,m),j=1),H=O));return{Max:d,Min:h,Range:p,interval:m,divGap:(d-h+j)/(H+1)}}),{keyup:!0,blur:!0,click:!0,load:!0,dragstart:!0,dragmove:!0,dragend:!0,dblclick:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,"fc-wheel":!0,"fc-click":!0,"fc-dragstart":!0,"fc-dragmove":!0,"fc-dragend":!0,"fc-dbclick":!0,"fc-mousedown":!0,"fc-mousemove":!0,"fc-mouseout":!0,"fc-mouseover":!0,"fc-mouseup":!0,"fc-pinchstart":ne||ae,"fc-pinchmove":ne||ae,"fc-pinchend":ne||ae,touchstart:ne||ae,touchmove:ne||ae,touchend:ne||ae,touchcancel:ne||ae});t.regex={stripWhitespace:/\s+/g,dropHash:K,startsRGBA:J,cleanColorCode:Z,breakPlaceholder:Y,hexcode:/^#?[0-9a-f]{6}/i},t.preDefStr={colors:{B90000:"B90000",FFFFFF:"FFFFFF",AAAAAA:"AAAAAA",c000000:"000000"},BLANK:"",DATASET:"dataset",NORMALSTRING:"normal",PX:"px",INPUT:"input",LABEL:"label",BLANKSPACE:" ",COMMA:",",OBJECTBOUNDINGBOX:"objectBoundingBox",GROUPID:"groupId",EVENTARGS:"eventArgs",CIRCLE:"circle",POLYGON:"polygon",SPOKE:"spoke",RECTANGLE:"rectangle",ROLLOUT:"rollout",ROLLOVER:"rollover",DATAPLOTCLICK:"dataplotclick",defaultFontStr:"Verdana,sans",line:"line",bar:"bar",column:"column",volume:"volume",HUNDREDSTRING:"100",SEVENTYSTRING:"70",NINETYSTRING:"90",AUTOSTRING:"auto",configStr:"config",animationObjStr:"animationObj",showHoverEffectStr:"showHoverEffect",hiddenStr:"hidden",visibleStr:"visible",columnStr:"columns",barStr:"bars",barHotStr:"bar-hot",colHotStr:"col-hot",shadowStr:"shadow",dataLabelStr:"datalabel",errorBarStr:"errorBar",errorHotStr:"error-hot",errorShadowStr:"error-shadow",negativeValueStr:"negative-values",positiveValueStr:"positive-values",zeroPlaneStr:"zero-plane",categoryPlotsStr:"categoryplots",noneStr:"none",setRolloverAttrStr:"setRolloverAttr",setRolloutAttrStr:"setRolloutAttr",elementStr:"element",hotElementStr:"hotElement",strokeWidthStr:"stroke-width",strokeDashStr:"stroke-dasharray",strokeLineJoinStr:"stroke-linejoin",miterStr:"miter",visiblilityStr:"visibility",ROUND:"round",PERCENTAGESTRING:"%",pStr:"p",sStr:"s",divLineAlpha3DStr:"divLineAlpha3D",divLineAlphaStr:"divLineAlpha",altVGridColorStr:"altVGridColor",altVGridAlphaStr:"altVGridAlpha",altHGridColorStr:"altHGridColor",altHGridAlphaStr:"altHGridAlpha",PLOTFILLCOLOR_STR:"plotFillColor",UNDERSCORE:G,gaugeFillColorStr:"gaugeFillColor",gaugeBorderColorStr:"gaugeBorderColor",NORMAL:"normal",BOLD:"bold",POINTER:"pointer",DEFAULT:"default",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_TOP:"top",POSITION_BOTTOM:"bottom",POSITION_END:"end"},t.appliedCSS=["fontFamily","fontSize","fontWeight","fontStyle"];function we(e){return null!=e}function xe(e){var t={},r=e.getBoundingClientRect();return t.left=r.left+(window.pageXOffset||document.documentElement.scrollLeft),t.top=r.top+(window.pageYOffset||document.documentElement.scrollTop),t}function _e(e){var t=e&&(e.sourceEvent||e.originalEvent||e);return ne&&t&&(t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0])||t||le}function Se(e){var t,r,n,a=e.data,i=a.chart,o=i.getFromEnv("animationManager"),s=me(_e(e.originalEvent)),l=i.getChildren("canvas")[0],c=t=l.getGraphicalElement("resizeBox"),u=a.layerX=s.pageX-a.chartPosLeft,d=a.layerY=s.pageY-a.chartPosTop,h=u-a.ox,f=d-a.oy,p=a.bBox,g=a.ox,m=a.oy,v=a.zoomX,b=a.zoomY,y=a.canvasY,w=a.canvasX,x=a.canvasX2,_=a.canvasY2,S=a.strokeWidth,k=a.attr;switch(e.state){case"start":r=xe(this),a.chartPosLeft=r.left,a.chartPosTop=r.top,u=s.pageX-a.chartPosLeft,d=s.pageY-a.chartPosTop,a.oy=d,a.ox=u,a.allowMove=!1,k.x=0,k.y=0,k.height=0,k.width=0,c=l.addGraphicalElement("resizeBox",o.setAnimation({el:t||"rect",attr:k,container:i.getChildContainer("trackerGroup")})).show(),t||l.addGraphicalElement("resizeBox",c),u>w&&u<x&&d>y&&d<_&&(a.allowMove=!0),e.target._isTrackerElem&&(a.allowMove=!1);break;case"end":n={chart:i,selectionLeft:(p=c.getBBox()).x,selectionTop:p.y,selectionHeight:p.height,selectionWidth:p.width,originalEvent:e.originalEvent},a.isDragged&&(a.selectionEnd&&a.selectionEnd(n),a.isDragged=0),c.hide(),delete a.oy,delete a.ox;break;default:if(!a.allowMove)return;h=u-a.ox,f=d-a.oy,p=a.bBox,g=a.ox,m=a.oy,a.isDragged||(n={chart:i,selectionLeft:(v?se(g,g+h):w)+.5*S,selectionTop:(b?se(m,m+f):y)+.5*S,selectionHeight:0,selectionWidth:0,originalEvent:e.originalEvent},a.selectionStart&&a.selectionStart(n),a.isDragged=1),h=-(g-se(g-(g-oe(g+h,w)),x)),f=-(m-se(m-(m-oe(m+f,y)),_)),o.setAnimation({el:c,attr:{x:(v?se(g,g+h):w)+.5*S,y:(b?se(m,m+f):y)+.5*S,width:v?Q(h):a.canvasW,height:b?Q(f):a.canvasH}})}}function ke(e){var t=e.data,r=e.originalEvent,n=r.target||r.originalTarget||r.srcElement||r.relatedTarget||r.fromElement,a=r.type,i=r.layerX,o=r.layerY;i===u&&(i=r.pageX-t.chartPosLeft,o=r.pageY-t.chartPosTop),"mousedown"===a&&(n.ishot=i>t.canvasX&&i<t.canvasX2&&o>t.canvasY&&o<t.canvasY2),"mouseup"===a&&setTimeout(function(){n.ishot=!1},1)}function Ce(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e)return e;return j}function Ae(e){return e&&e.replace(/\$/g,"$$$$")}function Ne(e,t){return e||!1===e||0===e?e:t}function Ee(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(parseInt(e,10)))return e<1?1:e;return u}function Le(){var e,t,r;for(t=0,r=arguments.length;t<r;t+=1)if((e=arguments[t])||!1===e||0===e)return e;return u}function Te(e){var t;if(6===e.length){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5];return[o/(t=r*o-i*n),-n/t,(n*s-a*o)/t,-i/t,r/t,-(r*s-a*i)/t]}return[]}function Me(e,t,r){var n=e.x,a=e.y,i=t.oriX,o=t.oriY;return n-=i,a-=o,6===r.length?{x:r[0]*n+r[1]*a+r[2]+i,y:r[3]*n+r[4]*a+r[5]+o}:{x:n,y:a}}function Fe(e,t){ve(e.substr(0,e.indexOf("__FC_ARG_SEP__")).replace(/\s/g,j),e.substr(e.indexOf("__FC_ARG_SEP__")).replace(/__FC_ARG_SEP__/,""),t)}function De(e){/^j\s*\-/.test(e)?Fe(e.replace(/^j\s*\-/,j).replace(/\-/,"__FC_ARG_SEP__")):Fe(e.replace(/^javascript\s*\:/i,j).replace(/[\'\"]?\s*\,\s*[\'\"]?/g,"__FC_ARG_SEP__").replace(/\(\s*[\'\"]?(.*)\)\;?/,"__FC_ARG_SEP__$1").replace(/[\'\"]?$/,""),!0)}function Ie(e,t){var r=ee(10,t);return te(e*r)/r}function Oe(e,t,r){return r||r===u?[e,t]:N}function Pe(e,t){return"object"!=typeof e?j:((e.fontSize||e["font-size"])&&(!e.fontSize&&e["font-size"]&&(e.fontSize=e["font-size"],delete e["font-size"]),e.lineHeight=(parseFloat(e.fontSize)||t||10)*C+"px",delete e["line-height"]),!e.lineHeight&&e["line-height"]&&(e.lineHeight=e["line-height"],delete e["line-height"]),e.lineHeight)}function Re(e,t){return e-t}function je(e,t){return t-e}t.componentFactory=function(e,t,r,n,a){if(void 0===n&&(n=1),e&&t&&r){var i,o,s,l=e.getChildren(r)||[];for(i=0;i<n;i+=1)l&&l[i]&&!l[i].getState("removed")?s=l[i]:(s=new t,e.attachChild(s,r)),a&&a.length>i&&s.configure&&s.configure(a[i]);if(i<(o=l&&l.length))for(;i<o;i+=1)l[i]&&l[i].remove&&l[i].remove()}},t.datasetFactory=function(e,t,r,n,a,i){if(void 0===n&&(n=1),void 0===i&&(i=[]),e&&t&&r){var o,s,l,c=e.getChildren(r)||[];for(o=0;o<n;o+=1)c&&c[o]&&!c[o].getState("removed")?l=c[o]:(l=new t,e.attachChild(l,r)),l.config._childIndex=o,l.setState("_total",n),l.setJSONIndex&&l.setJSONIndex(i[o]||o),a&&a.length>o&&l.configure&&l.configure(a[o]);if(o<(s=c&&c.length))for(;o<s;o+=1)c[o]&&c[o].remove&&c[o].remove()}},t.snapPoint=function(e,t,r){for(var n=t.length,a=r.lastSnap,i=1,o=n,s=r.config.setValue;o--;)if(Q(t[o]-s)<e.snapPixel){a!==o&&(r.lastSnap=e.datasetConf.snapToDivOnly?u:o,s=t[o]),i=0;break}return i&&(r.lastSnap=u),s},t.isSimilarObject=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;var r;for(r in e)if(e[r]!==t[r])return!1;return!0}},(e,t)=>{"use strict";t.__esModule=!0,t.attribDefs=void 0,t.hasAttribDefs=function(e){return!!n[e]},t.parseConfiguration=function(e,s,l,c,u,d){var h,f,p,g=1,m=c,v=d,b=u;for(h in t.attribDefs=n=n||o,m=m||o,v=v||o,b=b||{},e)if(!m[h]&&((f=e[h])||!1===f||0===f))switch((p=v[h]||n[h])&&p.type){case a:f=Number(f),isNaN(f)||(s[h]=f);break;case i:f=Number(f),isNaN(f)||(s[h]=!!f);break;default:s[h]=f}if(l)for(h in s)s[h]===r&&(p=v[h]||n[h])&&p.pAttr&&(s[h]=l[p.pAttr]);for(;g;)for(h in g=0,s)s[h]===r&&(p=v[h]||n[h])&&(p.attr?(f=s[p.attr])!==r&&(s[h]=f,g+=1):p.parser&&(f=p.parser(s,l,b))!==r&&(s[h]=f,g+=1))},t.setAttribDefs=function(e,r){var a,i;t.attribDefs=n=n||{},"string"==typeof e?(a={})[e]=r:a=e;for(i in a)n[i]||(n[i]=a[i])};var r,n,a=1,i=2,o={},s=Math.max;t.attribDefs=n={setBorderWidth:{type:a,pAttr:"plotborderthickness"},plotborderthickness:{type:a,pAttr:"plotborderthickness"},showBorderEffect:{parser:function(){var e=arguments[1];return 1===+e.showplotborder&&.1===e.plotborderthickness?1:0}},alphaanimation:{type:a},showplotborder:{type:a,pAttr:"showplotborder"},zeroplanethickness:{type:a},showzeroplaneontop:{type:a},stickytracking:{type:a},usemessagelog:{type:a},showtooltip:{type:a,pAttr:"showtooltip"},seriesnameintooltip:{type:a},plothovereffect:{type:a,attr:"anchorhovereffect"},anchorhovereffect:{type:a,attr:"showhovereffect"},showhovereffect:{type:a},linethickness:{type:a,pAttr:"linethickness"},dashed:{type:a,pAttr:"linedashed"},linedashed:{type:a,attr:"plotborderdashed"},plotborderdashed:{type:a,pAttr:"plotborderdashed"},linedashlen:{type:a,pAttr:"linedashlen"},linedashgap:{type:a,pAttr:"linedashgap"},anchoralpha:{pAttr:"anchoralpha"},anchorsides:{type:a,pAttr:"anchorsides"},anchorradius:{type:a,pAttr:"anchorradius"},anchorbgalpha:{pAttr:"anchorbgalpha"},anchorbgcolor:{pAttr:"anchorbgcolor"},anchorbordercolor:{pAttr:"anchorbordercolor"},anchorstartangle:{type:a,pAttr:"anchorstartangle"},anchorimageurl:{pAttr:"anchorimageurl"},anchorimagescale:{type:a,pAttr:"anchorimagescale"},anchorimagealpha:{pAttr:"anchorimagealpha"},anchorimagepadding:{type:a,pAttr:"anchorimagepadding"},anchorborderthickness:{type:a,pAttr:"anchorborderthickness"},anchorshadow:{type:a,pAttr:"anchorshadow"},valuepadding:{type:a,pAttr:"valuepadding"},valueposition:{pAttr:"valueposition"},plotfillangle:{type:a,pAttr:"plotfillangle"},useplotgradientcolor:{type:a},rotatevalues:{type:a,pAttr:"rotatevalues"},includeinlegend:{type:a},connectnulldata:{type:a},plotfillalpha:{pAttr:"plotfillalpha"},alpha:{pAttr:"linealpha"},linealpha:{pAttr:"plotfillalpha"},showvalues:{type:a,pAttr:"showvalues"},showpercentvalues:{type:a,parser:function(e){return e.isstacked&&e.stack100percent?1:0}},showpercentintooltip:{type:a,parser:function(e){return e.isstacked&&e.stack100percent?1:0}},stack100percent:{type:a,attr:"usepercentdistribution"},drawfullareaborder:{type:a},use3dlineshift:{type:a},parentyaxis:{type:a},radarborderthickness:{type:a},radarborderradius:{type:a},gaugeoriginx:{type:a},hasgaugeoriginx:{attr:"gaugeoriginx"},gaugeoriginy:{type:a},hasgaugeoriginy:{attr:"gaugeoriginy"},gaugeradius:{type:a},hasgaugeradius:{attr:"gaugeradius"},showgaugeborder:{type:a},setAdaptiveMin:{type:a},adjustDiv:{type:a},axisNameWidth:{type:a},rotateAxisName:{type:a},useEllipsesWhenOverflow:{type:a},showZeroPlane:{type:a},zeroPlaneAlpha:{type:a},showZeroPlaneValue:{type:a},zeroPlaneOnTop:{type:a},trendlineThickness:{type:a},showTrendlinesOnTop:{type:a},trendlinesAreDashed:{type:a},trendlinesDashLen:{type:a},trendlinesDashGap:{type:a},showTrendlines:{type:a},showTrendlineLabels:{type:a},showLabels:{type:a},rotateLabels:{type:a},slantLabel:{type:a},showAxisValues:{type:a},showTooltip:{type:a},maxLabelHeight:{type:a},useroundedges:{type:a,pAttr:"useroundedges"},placevaluesinside:{type:a},plotpaddingpercent:{type:a},use3dlighting:{type:a,pAttr:"use3dlighting"},usedataplotcolorforlabels:{type:a},plotspacepercent:{type:a,parser:function(e){return s(e.plotspacepercent%100,0)}},ratio:{pAttr:"plotfillratio"},base:{type:a},showMinorDivLineValues:{type:a},numMinorDivLines:{type:a},majorTMNumber:{type:a},majorTMHeight:{type:a},showTickMarks:{type:a},majorTMThickness:{type:a},adjustTM:{type:i},minorTMNumber:{type:a},minorTMThickness:{type:a},tickMarkDistance:{type:a},placeTicksInside:{type:a},placeValuesInside:{type:a},axisValuePadding:{type:a},gridLineWidth:{type:a},showRadarBorder:{type:a},radarBorderThickness:{type:a},maxcolwidth:{type:a,parser:function(e){return Math.abs(e.maxcolwidth)}},maxbarheight:{type:a,parser:function(e){return Math.abs(e.maxbarheight)}},plotborderalpha:{parser:function(e,t){return t.plotborderalpha||e.plotfillalpha}},autoscale:{type:a},plotborderdashlen:{type:a,pAttr:"plotborderdashlen"},plotborderdashgap:{type:a,pAttr:"plotborderdashgap"},plotfillratio:{pAttr:"plotfillratio"},drawverticaljoins:{type:a,pAttr:"drawverticaljoins"},useforwardsteps:{type:a,pAttr:"useforwardsteps"},minimizetendency:{type:a},usepercentdistribution:{type:a},stepatmiddle:{type:a}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i,o,s=n(r(284)),l=window,c=l.document,u="ontouchstart"in l,d="click",h="touchstart",f="touchend",p="touchmove",g="mouseout",m="mouseover",v="keydown",b=((o={}).pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}},o.pointerhover={start:[m],end:[g]},o.click={start:[d]},o.escape={start:[v],preHandlers:{start:function(e){var t=e||l.event;return!(!t.keyCode||27!==t.keyCode)}}},u&&((i=o.pointerdrag).start.push(h),i.end.push(f),i.onStart.push(p),i.postHandlers.onStart=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}),o);a=(0,s["default"])({},b);t["default"]=new function(){var e={},t={},r=c.addEventListener?function(e,t,r){e.addEventListener(t,r,!1)}:function(e,t,r){e.attachEvent("on"+t,r)},n=c.removeEventListener?function(e,t,r){e.removeEventListener(t,r,!1)}:function(e,t,r){e.detachEvent("on"+t,r)},i=function(e,t,a,i){var o=i||"closure";return r(e,t,a[o]),function(){n(e,t,a[o])}},o=function(e,t,r){var n,o,s,c,u=[];if(c=a[t],r.start=function(t){for(var n=c.onStart,a=c.end,o=[],s=[],u=n&&n.length||0,d=t||l.event;u--;)o.push(i(e,n[u],r,"onStart"));for(u=a&&a.length||0;u--;)s.push(i(e,a[u],r,"end"));r.startUn=r.startUn?r.startUn.concat(o):o,r.endUn=r.endUn?r.endUn.concat(s):s,r.state="start",r.closure(d)},r.onStart=function(e){var t=e||l.event;r.state="on",r.gDef&&r.gDef.preHandlers&&"function"==typeof r.gDef.preHandlers.onStart&&r.gDef.preHandlers.onStart(t),r.closure(t),r.gDef&&r.gDef.postHandlers&&"function"==typeof r.gDef.postHandlers.onStart&&r.gDef.postHandlers.onStart(t)},r.end=function(e){for(var t=r.startUn,n=r.endUn,a=t&&t.length||0,i=e||l.event;a--;)t[a]();for(delete r.startUn,r.startUn=[],a=n&&n.length||0;a--;)n[a]();delete r.endUn,r.endUn=[],r.state="end",r.closure(i)},c)for(s=(n=c.start).length;s--;)(o=n[s])&&u.push(i(e,o,r,"start"));return u},u=function(e,t,r){var i,o,s,l;if(l=a[t])for(s=(i=l.start).length;s--;)(o=i[s])&&n(e,o,r.start)},d=function(e){return function(t){var r=e.context||e.elem,n=t.originalEvent||t;n=n||l.event,e.handler.call(r,{data:e.data,type:e.type,state:e.state,isGesture:e.isGesture,target:n.target||n.srcElement,originalEvent:n})}};return{listen:function(r,n,s,l,u){var h,f,p,g,m,v=this,b="string"==typeof n?n.split(" "):n,y=b.length,w=[],x=function(e,t,r){w.push(function(){v.unlisten(e,t,r)})};if(r.ownerDocument&&r.ownerDocument===c)for(;y--;)f=b[y],g=Boolean(a[f]),(p={handler:m="function"==typeof s?s:s[y],elem:r,type:f,isGesture:g,gDef:g?a[f]:null,data:l,context:u,start:[],end:[],links:{prev:null,next:null}}).closure=d(p),g?((h=t[f])||(h=t[f]=[]),h.push(p),o(r,f,p)):((h=e[f])||(h=e[f]=[]),h.push(p),i(r,f,p)),x(r,f,m);else for(;y--;)f=b[y],(p={handler:m="function"==typeof s?s:s[y],elem:r,type:f,isGesture:g,data:l,context:u,start:[],end:[],links:{prev:null,next:null}}).closure=d(p),(h=e[f])||(h=e[f]=[]),h.push(p),i(r,f,p),x(r,f,m);return{unlisten:function(){for(var e=w.length;e--;)w[e]();w.length=0,w=null}}},unlisten:function(r,i,o){var s,l,c,d=!1;if(Boolean(a[i]))for(l=(s=t[i])&&s.length||0;l--;)(c=s[l]).handler===o&&c.elem===r&&(u(r,i,c),s.splice(l,1),d=!0);else for(l=(s=e[i])&&s.length||0;l--;)(c=s[l]).handler===o&&c.elem===r&&(n(r,i,c.closure),s.splice(l,1),d=!0);return d},fire:function(t,r,n,a){var i,o,l,u;if(t.ownerDocument&&t.ownerDocument===c)c.createEvent?((u=c.createEvent("HTMLEvents")).initEvent(r,!0,!0),n&&n.originalEvent&&(n.originalEvent=u),"function"==typeof t[r]&&t[r](),t.dispatchEvent(u),a&&!u.returnValue&&a(u)):((u=c.createEventObject()).eventType=r,n&&(n.originalEvent?n.originalEvent=u:(0,s["default"])(u,n)),"function"==typeof t[r]&&t[r](),t.fireEvent("on"+r,u),a&&!u.returnValue&&a(u));else for(o=(i=e[r])&&i.length||0;o--;)(l=i[o]).elem===t&&l.closure(n)}}}},(e,t)=>{"use strict";t.__esModule=!0,t.dashedAttr2CSSMap=t.cacher=void 0,t["default"]=function(e,t,n,a){var o;if(typeof e!==r&&typeof t!==r)return null;if(typeof t!==r||null===t)return e;void 0===e&&(e=t instanceof Array?[]:{});if(a)for(o in t)e[o]=t[o];else i(e,t,n);return e},t.showRecursively=t.merge=t.loadRefImage=t.isFirefox=t.getArrayCopy=void 0;var r="object",n=(t.isFirefox=/Firefox/i.test(window.navigator.userAgent),t.dashedAttr2CSSMap={"font-family":"fontFamily","font-size":"fontSize","text-anchor":"textAnchor","font-weight":"fontWeight","letter-spacing":"letterSpacing","font-style":"fontStyle"},t.loadRefImage=function(e,t){var r=t.src,n=e._.RefImg;n||(n=e._.RefImg=new Image),t.src!==undefined&&(n.src=r,e._.RefImg=n)},t.showRecursively=function(e){for(var t={},r=e,n=t;r;)r.node&&r.node.style&&"none"===r.node.style.display&&(r.show(),n._doHide=!0),r=r.parent,n.parent={},n=n.parent;return function(){for(var r=e,n=t;r;)n._doHide&&r.hide(),r=r.parent,n=n.parent}},function(e,t){for(var r=t.length,n=-1;r--;)if(e===t[r])return n=r;return n}),a=t.getArrayCopy=function(e){var t,r,n;for(t=0,r=e.length,n=new Array(r);t<r;t++)n[t]=e[t];return n},i=t.merge=function(e,t,a,o,s){var l,c,u,d,h;if(s?(o.push(e),s.push(t)):(o=[e],s=[t]),t instanceof Array)for(l=0;l<t.length;l+=1){try{c=e[l],u=t[l]}catch(f){continue}typeof u!==r?a&&undefined===u||(e[l]=u):(null!==c&&typeof c===r||(c=e[l]=u instanceof Array?[]:{}),-1!==(h=n(u,s))?c=e[l]=o[h]:i(c,u,a,o,s))}else for(l in t){try{c=e[l],u=t[l]}catch(f){continue}null!==u&&typeof u===r?"[object Object]"===(d=Object.prototype.toString.call(u))?(null!==c&&typeof c===r||(c=e[l]={}),-1!==(h=n(u,s))?c=e[l]=o[h]:i(c,u,a,o,s)):"[object Array]"===d?(null!==c&&c instanceof Array||(c=e[l]=[]),-1!==(h=n(u,s))?c=e[l]=o[h]:i(c,u,a,o,s)):e[l]=u:e[l]=u}return e};t.cacher=function(e,t,r,n,i,o,s){var l=o||{},c=0;return l.__start===undefined&&(l.__start=null),l.__end===undefined&&(l.__end=null),i=i||1e3,n=n||"item",function(o){var u,d,h,f=s?o:a(arguments).join("␀");return(u=l[f=""===f?"__blank":f])?u.__prev&&(l[u.__prev].__next=u.__next,u.__next?u.__next.__prev=u.__prev:l.__end=u.__prev):(u=l[f]={},e&&(l[f][n]=r?r(e.apply(t,arguments)):e.apply(t,arguments)),null===l.__end&&(l.__end=f),++c>i&&l.__end&&(d=l[l.__end],l[d.__prev].__next=null,delete l[l.__end],l.__end=d.__prev,c--)),(h=l.__start)!==u&&(u.__prev=null,u.__next=h,h&&(h.__prev=f),l.__start=u),l[f][n]}}},(e,t)=>{"use strict";t.__esModule=!0,t.HEXtoRGB=function(e){var t=parseInt(e,16),r=Math.floor(t/65536),n=Math.floor((t-65536*r)/256),a=Math.floor(t-65536*r-256*n);return[r,n,a]},t.RGBtoHex=function(e){return(i+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6)},t.convertColor=function(e,t,r){var n,a,i=0,s=0,l=0,c=t;r&&r.match(h)&&(i=(a=r.split(d))[0].slice(a[0].indexOf("(")+1),s=a[1],l=a[2],c||0===c||(c=parseInt(100*a[3].slice(0,a[3].indexOf(")")),10)));if(e)if(e.match(h))i=(a=e.split(d))[0].slice(a[0].indexOf("(")+1),s=a[1],l=a[2];else{switch((n=e.replace(f,p).split(d)[0]).length){case 3:n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2);break;case 6:break;default:n=(n+o).slice(0,6)}i=parseInt(n.slice(0,2),16)||0,s=parseInt(n.slice(2,4),16)||0,l=parseInt(n.slice(4,6),16)||0}c||0===c||(c=100);"string"==typeof c&&(c=c.split(d)[0]);return c=parseInt(c,10)/100,"rgba("+i+d+s+d+l+d+c+")"},t.getAngle=function(e,t,r){var n=180*Math.atan(t/e)/Math.PI;2===r?n=180-n:3===r?n+=180:4===r&&(n=360-n);return n},t.getColumnColor=function(e,t,n,a,i,o,s,l,c){var u,h,f,g,m,v,b,_=e,S=t;h=_.split(d),f=S.split(d),g=o.split(d),b=s.split(d),_=_.replace(/\s/g,p).replace(/\,$/,p),c?u={FCcolor:{color:h[0],alpha:f[0]}}:i?(m=h[0],v=f[0],u={FCcolor:{color:w(m,75)+d+x(m,10)+d+w(m,90)+d+x(m,55)+d+w(m,80),alpha:v+d+v+d+v+d+v+d+v,ratio:"0,11,14,57,18",angle:l?"90":"0"}},g=[w(m,70)]):(S=function(e,t,n){var a,i=e.split(d),o=n;o!==r&&(o=Number(o.split(d)[0]));for(o=isNaN(o)?r:o,i[0]=y(i[0],o),a=1;a<t;a+=1)i[a]=i[0]*y(i[a],o)/100;return i.join(d)}(S,h.length),u={FCcolor:{color:_,alpha:S,ratio:n,angle:l?-a:a}});return[u,{FCcolor:{color:g[0],alpha:b[0]}}]},t.getDarkColor=w,t.getFirstAlpha=b,t.getFirstColor=v,t.getLightColor=x,t.getPointColor=function(e,t){var r=v(e),a=b(t);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:x(r,70)+d+w(r,50),alpha:a+d+a,ratio:n,radialGradient:!0}}},t.getValidColor=function(e){return u.test(_(e))&&e},t.mapSymbolName=function(e,t){var r=a.circle,n=e;(n=m(n))>=3&&(r=(t?a.spoke:a.poly)+n);return r},t.parseColor=_,t.parsePointValue=m,t.rawRGBtoHEX=function(e){var t;return t=e.match(/[\d+]+/g).splice(0,3),(i+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)};var r,n,a={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",poly:"poly_",spoke:"spoke_"},i="000000",o="FFFFFF",s=Math.abs,l=/\s+/g,c=/^#?/,u=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,d=",",h=/^rgba/i,f=/[#\s]/gi,p="",g="#";function m(e,t){var r=e;return r=r||!1===r||0===r?Number(r):NaN,isNaN(r)?null:t?s(r):r}function v(e,t){var r=e;return(r=(r=r.split(d)[t||0]).replace(l,p))===p&&(r=i),r.replace(c,g)}function b(e){var t=e;return t=parseInt(t,10),(isNaN(t)||t>100||t<0)&&(t=100),t}function y(e,t){var n=e;return n=Number(n),n=isNaN(n)?100:n,t!==r&&(n=n*t/100),n%101}function w(e,t){var r=e,n=t;n=n<0||n>100?100:n,n/=100,r=r.replace(f,p);var a=parseInt(r,16),o=Math.floor(a/65536),s=Math.floor((a-65536*o)/256);return(i+(o*n<<16|s*n<<8|(a-65536*o-256*s)*n).toString(16)).slice(-6)}function x(e,t){var r=e,n=t;n=n<0||n>100?100:n,n/=100,r=r.replace(f,p);var a=parseInt(r,16),o=Math.floor(a/65536),s=Math.floor((a-65536*o)/256);return(i+(256-(256-o)*n<<16|256-(256-s)*n<<8|256-(256-(a-65536*o-256*s))*n).toString(16)).slice(-6)}function _(e){return e.replace(f,p).replace(c,g)}},(e,t)=>{"use strict";function r(e,t,r,n,a,i,o){var s={};switch(t){case"top":s.y=e;break;case"bottom":s.y=o-a-e;break;case"middle":s.y=(o-a)/2}switch(r){case"left":s.x=e;break;case"right":s.x=i-n-e;break;case"middle":s.x=(i-n)/2}return s}t.__esModule=!0,t.getAlignImage=function(e,t,n,a,i,o,s,l,c,u){var d,h,f,p,g={};switch(n){case"center":g.width=a,g.height=i,g.y=s/2-i/2,g.x=o/2-a/2;break;case"stretch":g.width=o-2*l,g.height=s-2*l,g.y=l,g.x=l;break;case"tile":g.width=a,g.height=i,g.tileInfo={},g.tileInfo.xCount=h=Math.ceil(c/a),g.tileInfo.yCount=f=Math.ceil(u/i),p=r(l,e,t,a*h,i*f,o,s),g.y=p.y,g.x=p.x;break;case"fit":d=a/i>c/u?c/a:u/i,g.width=a*d,g.height=i*d,p=r(l,e,t,g.width,g.height,o,s),g.y=p.y,g.x=p.x;break;case"fill":d=a/i>c/u?u/i:c/a,g.width=a*d,g.height=i*d,p=r(l,e,t,g.width,g.height,o,s),g.y=p.y,g.x=p.x;break;default:p=r(l,e,t,a,i,o,s),g.width=a,g.height=i,g.y=p.y,g.x=p.x}return g}},(e,t)=>{"use strict";var r;t.__esModule=!0,t["default"]=function(){var e,t,n;for(t=0,n=arguments.length;t<n;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e;return r}},(e,t)=>{"use strict";t.__esModule=!0,t.triggerEvent=t.setRootSender=t.removeListener=t.raiseWarning=t.raiseEventGroup=t.raiseError=t.getListeners=t.disposeEvents=t.addListener=void 0;var r={},n={},a=function(e,t,r,n){try{e[0].call(t,r,n||{})}catch(a){setTimeout(function(){throw a},0)}},i=function(e,t,r){var i,o=0;if(e instanceof Array&&!t.cancelled)for(;o<e.length;o+=1)if(!0!==e[o].removed){if(e[o][1]!==t.sender&&undefined!==e[o][1]||(i=e[o][1]===t.sender?t.sender:n,a(e[o],i,t,r),!0===t.detached&&(e.splice(o,1),o-=1,t.detached=!1)),!0===t.cancelled)break}else e.splice(o,1),o-=1},o=function(){this.originalEvent&&this.originalEvent.stopPropagation&&this.originalEvent.stopPropagation.call&&this.originalEvent.stopPropagation()},s=function(){this.cancelled=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation.call?this.originalEvent.stopImmediatePropagation():this.originalEvent&&this.originalEvent.stopPropagation&&this.originalEvent.stopPropagation.call&&this.originalEvent.stopPropagation()},l=function(){return!1==(this.detached=!0)},c=function(){this.defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault&&this.originalEvent.preventDefault.call&&this.originalEvent.preventDefault()},u={},d=0,h=t.addListener=function(e,t,r,n){var a,i,o,s=e;if(s instanceof Array){for(a=[],i=0;i<s.length;i+=1)a.push(h(s[i],t,r));return a}if("string"==typeof s){if("function"==typeof t)return s=s.toLowerCase(),r?(r._evtListeners||(r._evtListeners={}),r._evtListeners[s]instanceof Array||(r._evtListeners[s]=[]),o=r._evtListeners[s]):(u[s]instanceof Array||(u[s]=[]),o=u[s]),!function(e,t,r){var n,a=e.length;for(n=0;n<a;n+=1)if(e[n][0]===t&&e[n][1]===r&&!e[n].removed)return!0}(o,t,r)&&(n&&n.priority?o.unshift([t,r]):o.push([t,r]),t);b(r,"03091550","param","::addListener",new Error("Invalid Event Listener"))}else b(r,"03091549","param","::addListener",new Error("Unspecified Event Type"))},f=t.removeListener=function(e,t,r){var n,a;if("function"==typeof t){if(e instanceof Array)for(a=0;a<e.length;a+=1)f(e[a],t,r);else if((n=g(e,r))instanceof Array&&n.length)for(a=n.length-1;a>=0;a-=1)n[a][0]===t&&n[a][1]===r&&(n[a].removed=!0)}else b(r,"03091560","param","::removeListener",new Error("Invalid Event Listener"))},p=t.triggerEvent=function(e,t,r,n,a,h){if(!t||!t.disposed){var f,p,m,v,b,y=e;return y=y.toLowerCase(),p=g(y,t),m=g("*",t),v=u[y],b=u["*"],(p&&p.length||m&&m.length||v&&v.length||b&&b.length)&&(f={type:y,eventType:y,eventId:d+=1,sender:t||new Error("Orphan Event"),stopPropagation:o,stopImmediatePropagation:s,cancelled:!1,preventDefault:c,defaultPrevented:!1,originalEvent:n,detached:!1,data:r,detachHandler:l},i(b,f,r),i(v,f,r),t&&(i(g("*",t),f,r),i(g(y,t),f,r))),f&&f.defaultPrevented?h&&"function"==typeof h&&h.call(t,f,r||{}):a&&"function"==typeof a&&a.call(t,f,r||{}),!0}},g=t.getListeners=function(e,t){var r=e;if("string"==typeof r)return r=r.toLowerCase(),t?t._evtListeners&&t._evtListeners[r]:u[r];b(t,"03091559","param","::removeListener",new Error("Unspecified Event Type"))},m=(t.disposeEvents=function(e){var t,r=e?e._evtListeners:u;for(t in r)r[t].length&&(r[t].length=0)},{type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"}),v=function(e,t,r,n,a,i){var o="#"+t+" "+(e?e.id:"unknown-source")+n+" "+i+" >> ";a instanceof Error?(a.name=m[r],a.module="FusionCharts"+n,a.level=i,a.message=o+a.message,o=a.message,setTimeout(function(){throw a},0)):o+=a,p(i,e,{id:t,nature:m[r],source:"FusionCharts"+n,message:o})},b=t.raiseError=function(e,t,r,n,a){v(e,t,r,n,a,"Error")};t.raiseWarning=function(e,t,r,n,a){v(e,t,r,n,a,"Warning")},t.raiseEventGroup=function(e,t,n,a,i,o,s){var l=a.id,c=e+l;r[c]?(clearTimeout(r[c]),delete r[c]):l&&c?r[c]=setTimeout(function(){p(t,a,n,i,o,s),delete r[c]},0):p(t,a,n,i,o,s)},t.setRootSender=function(e){void 0===e&&(e={}),n=e}},(e,t,r)=>{"use strict";t.__esModule=!0,t.addDep=function(){for(var e=this,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(!r.length)return void(0,n.raiseError)({id:"Extension"},"90211","dependency","Extension",new Error("A FusionCharts extension must have a valid extension property."));r.forEach(function(t){var r,o,s,l,c,u;t?(o=t.extension?t.extension:t,r=function(e){void 0===e&&(e={});var t=e.getName&&e.getName()||e.name;void 0===t&&(0,n.raiseError)({id:"Extension"},"90211","extension","Name",new Error("A FusionCharts extension must have a getName API or a name property."));return t&&t.toLowerCase()}(t),s=function(e){void 0===e&&(e={});var t=e.getType&&e.getType()||e.type;return t&&t.toLowerCase()}(t),c=t.requiresFusionCharts,s?(!a[s]&&("string"==typeof(u=s)&&(a[u]={})),(l=a[s][r]!==o)&&(a[s][r]=o)):r&&(l=i[r]!==o)&&(i[r]=o),l&&(0,n.triggerEvent)("dependencyadded",e,{name:r,type:s}),l&&c&&o(e)):(0,n.raiseError)({id:"Extension"},"90211","dependency","Extension",new Error("A FusionCharts extension must have a valid extension property."))})},t.getDep=function(e,t){var r,n=e&&e.toLowerCase();if(t&&a[t])return a[t][n];if(!t)for(var o in a)if(a.hasOwnProperty(o)&&(r=a[o][n]))return r;return i[n]},t.getDepsByType=function(e){void 0===e&&(e="");return""===e?a:a[e.toLowerCase()]};var n=r(288),a={},i={}},(e,t,r)=>{"use strict";t.__esModule=!0,t.onDataUpdateCancel=function(e,t){(0,a.triggerEvent)("dataUpdateCancelled",e.sender,t,n,t.failurecallback)},t.onDataUpdateSuccess=function(e,t){var r=e.sender,i=r.__state;i.dataReady=n,i.dataAvailable=!0,!0!==t.silent?(r.options.dataSource=t.data,!0!==r.options.safeMode||!0!==i.rendering||r.isActive()?delete i.args:(i.updatePending=t,(0,a.raiseWarning)(r,"23091255","run","::DataHandler~update","Renderer update was postponed due to async loading."))):r.options.dataSource=t.data;(0,a.triggerEvent)("dataUpdated",r,t,n,t.successcallback)};var n,a=r(288)},(e,t)=>{"use strict";function r(e){delete e.sender.jsVars._reflowData,e.sender.jsVars._reflowData={},delete e.sender.jsVars._reflowClean}t.__esModule=!0,t["default"]=void 0;t["default"]={beforeInitialize:function(e){var t,r=e.sender,n=r.jsVars;n.fcObj=r,n.msgStore=n.msgStore||{LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."},n.cfgStore=n.cfgStore||{},n.previousDrawCount=-1,n.drawCount=0,n._reflowData={},r.addEventListener("beforeRender",function(e){return e.detachHandler()}),n.userModules instanceof Array||(t=n.userModules,n.userModules=[],"string"==typeof t&&(n.userModules=n.userModules.concat(t.split(","))))},beforeDataUpdate:r,beforeDispose:function(e){var t=e.sender.jsVars;t.smartLabel&&!t.smartLabel.disposed&&t.smartLabel.dispose(),r.apply(void 0,arguments)},beforeRender:function(e){delete e.sender.jsVars.drLoadAttempted,r.apply(void 0,arguments)},dataLoadRequested:function(e){var t=e.sender,r=t.jsVars;delete r.loadError,t.ref&&t.options.showDataLoadingMessage?r.hcObj&&!r.hasNativeMessage&&r.hcObj.showLoading?r.hcObj.showMessage(r.msgStore.XMLLoadingText):t.ref.showChartMessage?t.ref.showChartMessage("XMLLoadingText"):r.stallLoad=!0:r.stallLoad=!0},dataLoadRequestCompleted:function(e){delete e.sender.jsVars.stallLoad}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.globalStore=t["default"]=void 0;var a,i,o,s,l=r(281),c=r(288),u=r(289),d=r(293),h=n(r(294)),f=n(r(301)),p=n(r(305)),g=/\%/,m=t.globalStore=new h["default"],v=(o={},s=function(){var e,t,r,n,l,c,u,d,h=0,f=parseInt(i.options.resizeTrackingInterval,10)||300,p={},m=function(){p.itemVar._containerOffsetW=p.parentEle.offsetWidth,p.itemVar._containerOffsetH=p.parentEle.offsetHeight};for(e in o)h+=1,r=(t=o[e]).jsVars,l=t.ref,!t.disposed&&(n=l&&l.parentNode)&&(c=l.style)&&(g.test(c.width)||g.test(c.height))?(u=n.offsetWidth,d=n.offsetHeight,!r.resizeLocked&&(u&&r._containerOffsetW!==u||d&&r._containerOffsetH!==d)&&(t.resizeTo&&t.resizeTo(),p.itemVar=r,p.parentEle=n,setTimeout(m,1))):(delete o[e],h-=1);a=h?setTimeout(s,f):clearTimeout(a)},function(e,t,r){var n=e.jsVars,l=t||e.ref&&e.ref.parentNode||{};i=r,n._containerOffsetW=l.parentNode.offsetWidth,n._containerOffsetH=l.parentNode.offsetHeight,o[e.id]=e,a||(a=setTimeout(s,parseInt(r.options.resizeTrackingInterval,10)||300))});function b(e,t,r){void 0===r&&(r=!1);var n=this,a=n.apiInstance,i=n.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0).data;r||(0,c.triggerEvent)("dataloaded",n,{},[n.id]),n.__state&&(n.__state.newDataArrived=!1),a.addToEnv("dataSource",i),a.addToEnv("chart-attrib",i.chart||{}),a._checkInvalidData()||a._checkInvalidSpecificData()?(a.getContainer("parentgroup")&&a.getContainer("parentgroup").hide(),a.createBaseComponent(),a.getFromEnv("animationManager").setAnimationState("chartmessage"),a.setChartMessage(),a.drawChartMessage(),n._sudoSetState(1),(0,c.triggerEvent)("nodatatodisplay",n,{},[n.id])):(a.config.hasChartMessage=!1,a.setData(Object.assign({},i)))}function y(e){var t=e.sender.args,r=l.BLANK,n=t.dataFormat||"json";"jsonurl"!==n.toLowerCase()&&"xmlurl"!==n.toLowerCase()||(r=t.dataSource),(0,c.triggerEvent)("dataloadcancelled",e,{url:r,dataFormat:n},[e.id]),e.__state&&(e.__state.newDataArrived=!1)}t["default"]=function(e,t,r,n,a,i,o,s){var h,w,x,_,S,k=n,C=t.apiInstance,A=t.jsVars,N=g.test(t.width)?r.offsetWidth:t.width,E=g.test(t.height)?r.offsetHeight:t.height;if(r.FusionCharts=e.items[t.id],t.__state.beforedrawFired=!0,k=k||t.chartType(),!(h=(0,u.getDep)(k,"chartapi"))&&(x=(0,u.getDep)(k,"maps"))&&(h=(0,u.getDep)("maps","chartapi"),_=!0),C&&C.getName().toLowerCase()!==k.toLowerCase()&&(C.remove({instant:!0}),C=l.UNDEF),C&&C.getName().toLowerCase()===k.toLowerCase()||(C=t.apiInstance=new h,m.attachChild(C,"chartAPI"),C.addToEnv("core-options",e.options),C.addToEnv("chartInstance",t),C.addToEnv("chart",C),C.addToEnv("chart-container",r),C.addToEnv("eventListeners",[])),_)for(var L in x=x[0])x.hasOwnProperty(L)&&(C.config[L]=x[L]);if(C.addToEnv("chartWidth",Math.max(0,N)),C.addToEnv("chartHeight",Math.max(0,E)),C._removeWaitingJobs(),C.setDummyEImethods(k),C.config.origRenderWidth=t.__state.renderedWidth,C.config.origRenderHeight=t.__state.renderedHeight,"base"===k||i)!function(e,t){void 0===t&&(t=!1);var r=e.options.dataErroneous;if(r)return e.__state.dataReady=!1,t||(0,c.triggerEvent)("dataInvalid",e,{error:r},l.UNDEF,function(){(0,c.triggerEvent)("dataxmlinvalid",e,{},[e.id])}),!0}(t,s),function(e,t){void 0===t&&(t={});e._chartMessageImageStyle=t.image||{},e._chartMessageStyle=t.message||{}}(t,o),C.createBaseComponent(),C.getFromEnv("animationManager").setAnimationState("chartmessage"),C.setChartMessage(i,t,r);else if(t.__state.resize)C.asyncDraw();else{if(C.getFromEnv("toolTipController")||(S=new((0,u.getDep)("ToolTipController"))(r,C),C.addToEnv("toolTipController",S)),C.disposeChartStyleSheet(),r.jsVars=t.jsVars,w=C.eiMethods,t.ref=r,A.type=k,w&&"string"!=typeof w)for(var T in w)r[T]=w[T];!s&&t.__state.newDataArrived?(0,c.triggerEvent)("beforedataload",t,{data:t.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0)},l.UNDEF,b,y):b.call(t,l.UNDEF,l.UNDEF,s)}!t.disposed&&function(e,t,r,n,a){var i=e.jsVars,o=e.apiInstance,s=i.fcObj,h=i.overlayButton,g=s.getChartData((0,u.getDepsByType)("transcoder").JSON,!0,!0).data;i.width=o.getFromEnv("chartWidth"),i.height=o.getFromEnv("chartHeight"),i.container=t,i.hcObj=e,i.hcObj.container=t,i.instanceAPI=o,e.hasRendered&&i.overlayButtonActive&&h&&(h.innerHTML=p["default"].createHTML(l.BLANK),h.appendChild(document.createTextNode(i.overlayButtonMessage)),e.container.appendChild(h));(g.data||g.dataset||g.colorrange)&&(/\%/g.test(s.width)||/\%/g.test(s.height))&&t&&t.parentNode&&!a.options.preventTrackResize&&v(e,t,a);!function(e,t,r,n){e.apiInstance.addJob("fire-rendered",function(){if(e.apiInstance.config.hasRendered=r.hasRendered,"waiting"!==e._getState()&&"function"==typeof t&&t(r),"waiting"!==e._getState()&&((0,c.triggerEvent)("drawcomplete",e,{width:e.jsVars.width,height:e.jsVars.height,drawCount:e.jsVars.drawCount,displayingMessage:"waiting"===e._getState()||"error"===e._getState(),renderer:"javascript"},[e.id]),e.__state&&delete e.__state.beforedrawFired),!e.disposed&&"ready"===e._getState()){if(e.__state.rendering&&(0,c.triggerEvent)("rendered",e,{renderer:"javascript"},[e.id]),e.disposed)return;if((0,c.triggerEvent)("renderComplete",e,{width:e.jsVars.width,height:e.jsVars.height,drawCount:e.jsVars.drawCount,renderer:"javascript"}),e.disposed)return;e.__state&&delete e.__state.rendering,e.__state.renderComplete=!0,e.args.creditLabel!==l.UNDEF&&console.warn("FusionCharts.options.creditLabel property is deprecated. Please use FusionCharts.options.license with a valid license key to remove the watermark."),f["default"]._mapperParent(n,e)}},d.priorityList.postRender)}(e,r,n,a)}(t,r,a,{hasRendered:!0,container:r},e)}},(e,t)=>{"use strict";t.__esModule=!0,t.priorityList=t["default"]=void 0;var r=[],n={},a=[],i={},o=0,s=window,l=s.navigator,c=/trident/i.test(l.userAgent)&&/rv:11/i.test(l.userAgent)&&!s.opera,u=/msie/i.test(l.userAgent)&&!s.opera,d=/Edge/.test(l.userAgent),h={},f=(t.priorityList={instant:1,render:1,chartEvents:1,configure:2,chartClick:2,draw:3,entitydraw:4,label:4,animation:5,tracker:6,kdTree:6,postRender:7,verification:8},s.requestAnimationFrame||s.webkitRequestAnimationFrame||s.mozRequestAnimationFrame||s.oRequestAnimationFrame||s.msRequestAnimationFrame||function(e){setTimeout(e,16)}),p=!1,g=function(){var e,t,n,o=!0,s=(new Date).getTime();for(p=!0;o&&(e=r[0]);)t=(new Date).getTime(),e.OIAF&&n||e.executeAfter&&!(e.executeAfter<t)||!(t-s<16)?o=!1:(r.shift(),a[e.priority]-=1,i[e.jobID]&&!e.executed&&(e.executed=!0,delete i[e.jobID],e.job(),n=e.OIAF));r.length?f(g):p=!1};(c||u||d)&&(f=f.bind(window)),h.addJob=function(e,t,n){var s,l,c,u=0,d=n&&n.oneInAFrame,h=n&&n.addToTop?t-1:t;for("function"==typeof e?(l={job:e,priority:t,OIAF:d,jobID:s="JOB_"+ ++o+"_"+(t||1)},n&&n.executionDelay&&(l.executeAfter=(new Date).getTime()+n.executionDelay)):l=e,c=0;c<=h;c++)u+=a[c]||0;return r.splice(u,0,l),i[l.jobID]=l,a[t]=(a[t]||0)+1,p||1!==r.length||(d?f(g):setTimeout(g,0)),s},h.removeJob=function(e){i[e]&&delete i[e]},h.updateJob=function(e,t,r,n){return i[e]?(i[e].job=t,e):this.addJob(t,r,n)},h.pauseExecution=function(e){if(!i[e])return!1;n[e]=i[e],delete i[e]},h.resumeExecution=function(e){var t=n[e];if(!t)return!1;h.addJob(t,t.priority),delete n[e]};t["default"]=h},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"globalStore"},r.getType=function(){return"globalStore"},t}(r(297).ComponentInterface);t["default"]=i},(e,t,r)=>{var n=r(296);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return function(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var a=r[n],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&void 0===e[a]&&Object.defineProperty(e,a,i)}}(e,t),e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0;var a=n(r(298));t.ComponentInterface=a["default"];var i=n(r(300));t.SmartRenderer=i["default"]},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i=n(r(295)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(299));var s,l=function(e){function t(){var t,r=t=e.call(this)||this;return r._components={},r._version=1,r.fireEvent("instantiated"),r.__setDefaultConfig(),t}(0,i["default"])(t,e);var r=t.prototype;return r.addGraphicalElement=function(e,t,r,n){void 0===r&&(r=!1);var a=this._graphics;return t&&(r?(a[e]===s&&(a[e]=[]),n?a[e][n]=t:a[e].push(t)):(a[e]=t,this.fireEvent("graphicalelementattached",{element:t})),(0,o.addAllEventsOnGraphic)(t,this._middleListeners,this)),t},r.removeGraphicalElement=function(e){var t,r=this,n=r._graphics;(0,o._mapSubFnForward)(n,function(a,i,l){a===e&&(t=!0,(0,o.removeAllEventsFromGraphic)(a,r._middleListeners),r._setRemoveAnim(a,i),l!==s?n[i].splice(l,1):delete n[i])}),t&&this.fireEvent("graphicalelementremoved",{element:e})},r.getGraphicalElement=function(e){return void 0!==e?this._graphics[e]:this._graphics},r.addChildContainer=function(e,t){var r=this,n=r._childContainers;return t&&(n===s&&(n=r._childContainers={}),n[e]=t,(0,o.addAllEventsOnGraphic)(t,r._middleListeners,r)),t},r.removeChildContainer=function(e){var t=this,r=t._childContainers;r&&r[e]&&((0,o.removeAllEventsFromGraphic)(r[e],t._middleListeners),t._setRemoveAnim(r[e],e),delete r[e])},r.getChildContainer=function(e){return this._childContainers===s&&(this._childContainers={}),e?this._childContainers[e]:this._childContainers},r.addContainer=function(e,t){var r=this._containers;return t&&(r===s&&(r=this._containers={}),r[e]=t),t},r.removeContainer=function(e){var t=this._containers;t&&t[e]&&(this._setRemoveAnim(t[e],e),delete t[e])},r.getContainer=function(e){return this._containers===s&&(this._containers={}),e?this._containers[e]:this._containers},r.addEventListener=function(t,r,n){var a=e.prototype.addEventListener.call(this,t,r,n);return!0===a?(function(e,t,r){var n;t&&r&&(n=function(e){e.on&&e.on(t,r)},(0,o._mapSubFnForward)(e.getGraphicalElement(),n),(0,o._mapSubFnForward)(e.getChildContainer(),n))}(this,t,this._middleListeners[t]),r):!!a&&r},r.removeEventListener=function(t,r){e.prototype.removeEventListener.call(this,t,r)&&function(e,t,r){var n;t&&r&&(n=function(e){e.off&&e.off(t,r)},(0,o._mapSubFnForward)(e.getGraphicalElement(),n),(0,o._mapSubFnForward)(e.getChildContainer(),n))}(this,t,this._middleListeners[t])},r._dispose=function(){var t,r=this;if(e.prototype._dispose.call(this)){for(t in r.getFromEnv("paper")&&!r.getFromEnv("paper").removed&&((0,o._mapSubFnForward)(r.getChildContainer(),r.__instantRemoveFn),(0,o._mapSubFnForward)(r.getGraphicalElement(),r.__instantRemoveFn),(0,o._mapSubFnForward)(r.getContainer(),r.__instantRemoveFn)),r)r.hasOwnProperty(t)&&delete r[t];r.fireEvent("removed")}},r.removingDraw=function(){var e=this;(0,o._mapSubFnForward)(e.getChildContainer(),e._setRemoveAnim),(0,o._mapSubFnForward)(e.getGraphicalElement(),e._setRemoveAnim),(0,o._mapSubFnForward)(e.getContainer(),e._setRemoveAnim)},r.attachChild=function(e,t,r){var n=t||e.getType(),a=this._components;return!1===r?a[n]=e:(a[n]&&a[n]instanceof Array||(a[n]=[]),a[n].push(e)),e._setLinkedParent(this),this.fireEvent("childattached",{attachedChild:e}),e},r.getChild=function(e){var t;return e===s?this._components:(this._searchChildren(e,function(e){t=e}),t)},r._searchChildren=function(e,t){var r,n,a,i=this._components;for(n in i)if(i.hasOwnProperty(n))if((r=i[n]).constructor===Array){for(a=r.length-1;a>=0;a--)if(r[a].getId&&r[a].getId()===e)return t(r[a],a,r)}else if(r.getId&&r.getId()===e)return t(n,s,i)},r.getChildren=function(e){return e?this._components[e]:this._components},t}(o["default"]);t["default"]=l},(e,t,r)=>{"use strict";var n=r(276);t.__esModule=!0,t.removeAllEventsFromGraphic=t["default"]=t.addAllEventsOnGraphic=t._mapSubFnForward=void 0;var a=r(281),i=r(288),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=n({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?a:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(293));var s=function(e){e&&e.draw&&e.syncDraw()},l=function(e){return e.setDefaults()},c=function(e){e.prepareAttributes&&e.prepareAttributes()},u={},d={executionDelay:16},h=t._mapSubFnForward=function(e,t){var r,n,a,i;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)if(e.hasOwnProperty(r))if((n=e[r])instanceof Array)for(i=n.length,a=0;a<i;a++)t(n[a],r,a);else t(n,r)},f=(t.addAllEventsOnGraphic=function(e,t,r){var n,a;if(t&&t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(a=(0,i.getListeners)(n,r))&&a.length>=1&&e&&e.on(n,t[n])},t.removeAllEventsFromGraphic=function(e,t){var r,n;if(t&&t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(n=(0,i.getListeners)(r,this))&&n.length>=1&&e&&e.off(r,t[r])},function(){function e(){var e=this;e.config={},e._jobList={},e._env={},e._extListeners={},e._state={},e._factories=[],e._factoriyNames={},e._graphics={},e.__drawJob=function(){e.updateVisual()},e.computeFontSize=a.computeFontSize.bind(e),e.__remove=function(){e.getState("removed")&&e._dispose()},e._setRemoveAnim=function(t,r){var n=e.getFromEnv("animationManager");n.setAnimation({el:t,component:e,label:r,props:t.__props}),e._setRemoveAnim=function(t,r){n.setAnimation({el:t,component:e,label:r,props:t.__props})}},e.__instantRemoveFn=function(t){var r=e.getFromEnv("animationManager");r.removeElement(t,!0),e.__instantRemoveFn=function(e){return r.removeElement(e,!0)}}}var t=e.prototype;return t.configure=function(e){this.preConfigure(e),this.configureAttributes(e),this.postConfigure(e),this.invokeFactories()},t.preConfigure=function(e){this.fireEvent("preconfigure",e)},t.configureAttributes=function(){return this},t.postConfigure=function(e){this.fireEvent("postconfigure",e)},t.prepareAttributes=function(){var e=this;e.fireEvent("beforeattributeprepared"),e.allocatePosition&&e.allocatePosition(),e._mapChildren(c),e.fireEvent("attributeprepared")},t.setDefaults=function(){this.__setDefaultConfig(),this._mapChildren(l)},t.__setDefaultConfig=function(){return this},t.setData=function(e,t){void 0===t&&(t=!1);var r,n=this,a=n.getLinkedParent();n.asyncDraw(),!t&&this.setDefaults(),n.configure&&n.configure(e),(r=n.getState("change-info"))&&r.hasNoExternalEffect||a&&a.childChange&&a.childChange(r,n.getId())},t.getName=function(){return"generic"},t.getType=function(){return"generic"},t.getComponentVersion=function(){return this._version},t.getId=function(){return this._id||this.setId(),this._id},t.setId=function(e){var t,r=e;r===a.UNDEF&&(t=this.getType()+a.UNDERSCORE+this.getName(),u[t]||(u[t]=1),r=t+a.UNDERSCORE+u[t],u[t]+=1),this._id=r},t.iterateComponents=function(e){var t=function(r,n,a){!1!==e(r,n,a)&&r._mapChildren&&r._mapChildren(t)};this._mapChildren(t)},t.getFromEnv=function(e){return e?this._env[e]:this._env},t.addToEnv=function(e,t){e&&(this._env[e]=t)},t.deleteFromEnv=function(e){delete this._env[e]},t._updateParentEnv=function(){var e,t,r,n,a=this.getLinkedParent(),i=this._env;if(a){if(e=a.getFromEnv(),((t=function(){}).prototype=e).constructor=t,r=new t,i)for(n in i)i.hasOwnProperty(n)&&(r[n]=i[n]);this._env=r,this._mapChildren(function(e){e._updateParentEnv&&e._updateParentEnv()})}},t.addJob=function(e,t,r,n){var a=this;a._jobList[e]?a._jobList[e]=o["default"].updateJob(a._jobList[e],t,r,n):a._jobList[e]=o["default"].addJob(t,r,n)},t.removeJob=function(e){var t=this._jobList[e];t&&(o["default"].removeJob(t),delete this._jobList[e])},t.removeAllJobs=function(){var e,t=this._jobList;for(e in t)t.hasOwnProperty(e)&&(o["default"].removeJob(t[e]),delete t[name])},t.asyncDraw=function(){this.addJob("draw",this.__drawJob,o.priorityList&&o.priorityList.draw,d)},t.syncDraw=function(){var e=this;e.fireEvent("predraw"),e.removeJob("draw"),e.getState("removed")?e.removingDraw():e.draw&&e.draw(),e.addExtEventListener("animationComplete",e.__remove,e.getFromEnv("animationManager")),e.childrenSyncDraw(),e.setState("dirty",!1),e.setState("parentChanged",!1),e.addJob("draw-complete",function(){e.fireEvent("drawn")},o.priorityList.instant)},t.updateVisual=function(){var e=this;e.fireEvent("beforevisualupdate"),e.removeJob("visualupdate"),e.manageSpace&&e.manageSpace(),e.prepareAttributes(),e.syncDraw(),e.fireEvent("visualupdated")},t.childrenSyncDraw=function(){this._mapChildren(s)},t.addEventListener=function(e,t,r){var n,o=this,s=e;return!!(s&&s.toLowerCase&&(s=s.toLowerCase(),(0,i.addListener)(s,t,o,r)))&&((0,a.isInterActiveEvt)(s)&&(n=(0,i.getListeners)(s,o))&&1===n.length?(o._middleListeners||(o._middleListeners={}),o._middleListeners[s]||(o._middleListeners[s]=function(e){o.fireEvent(s,a.UNDEF,a.UNDEF,a.UNDEF,e)}),!0):t)},t.removeEventListener=function(e,t){var r,n=this,o=e;if(o&&o.toLowerCase&&(o=o.toLowerCase(),(0,i.removeListener)(o,t,n),(0,a.isInterActiveEvt)(o)&&(r=(0,i.getListeners)(o,n))&&0===r.length&&n._middleListeners&&n._middleListeners[o]))return!0},t.fireEvent=function(e,t,r,n,a){(0,i.triggerEvent)(e,this,t,a,r,n)},t.showWarning=function(e,t,r,n){(0,i.raiseWarning)(this.getFromEnv("chartInstance"),e,t,r,n)},t.showError=function(e,t,r,n){(0,i.raiseError)(this.getFromEnv("chartInstance"),e,t,r,n)},t.addExtEventListener=function(e,t,r){var n=this;return!!(r&&r.addEventListener&&r.addEventListener(e,t))&&(n._extListeners[e]||(n._extListeners[e]=[]),n._extListeners[e].push({fn:t,component:r}),t)},t.removeExtEventListener=function(e,t,r){var n,a,i=this;if(r&&r.addEventListener&&i._extListeners&&i._extListeners[e])for(n=(a=i._extListeners[e]).length-1;n>=0;n-=1)if(a[n]&&a[n].fn===t&&a[n].component===r)return r.removeEventListener(e,t),void a.splice(n,1)},t._setLinkedParent=function(e){var t=this._linkedParent;this._linkedParent=e,t&&t!==e&&(this.setState("parentChanged",!0),this.fireEvent("parentdetached",{oldParent:t}),e&&this.fireEvent("parentAttached",{newParent:e})),this._updateParentEnv&&this._updateParentEnv()},t.getLinkedParent=function(){return this._linkedParent},t.setLinkedItem=function(e,t){this.linkedItems||(this.linkedItems={}),e===a.UNDEF&&t===a.UNDEF||(this.linkedItems[e]=t)},t.getLinkedItem=function(e){if(this.linkedItems)return e!==a.UNDEF?this.linkedItems[e]:this.linkedItems},t.removeLinkedItem=function(e){this.linkedItems&&this.linkedItems[e]&&delete this.linkedItems[e]},t._detachChild=function(e){var t,r=e&&e.getId(),n=this;return r===a.UNDEF?a.UNDEF:(n._searchChildren(r,function(e,r,i){i&&i.constructor===Array?t=i.splice(r,1)[0]:(t=i[e],delete i[e]),t._setLinkedParent(a.UNDEF),n.fireEvent("childdetached",{detachedChild:t})}),t)},t._mapChildren=function(e,t){t?function(e,t){var r,n,a;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)if(e.hasOwnProperty(r))if((n=e[r])instanceof Array)for(a=n.length-1;a>=0;a--)t(n[a],r,a);else t(n,r)}(this.getChildren(),e):h(this.getChildren(),e)},t._dispose=function(){var e,t,r,n,a=this;if(a&&a!==window&&!0!==a._disposing){if(a._disposing=!0,a.fireEvent("beforeremove"),(e=a.getLinkedParent())&&e._detachChild&&!e._disposing&&e._detachChild(a),a._extListeners)for(r in a._extListeners)for(t=(n=a._extListeners[r]).length-1;t>=0;t--)n[t].component&&n[t].component.addEventListener&&n[t].component.removeEventListener(r,n[t].fn);return a.removeAllJobs(),!0}},t.remove=function(e){var t=this;t.setState("removed",!0),t.getChildren()&&t._mapChildren(function(t){t&&t.remove&&t.remove(e)},!0),e&&e.instant&&t._dispose()},t.setState=function(e,t){this._state[e]=t},t.getState=function(e){return this._state&&this._state[e]},t.registerFactory=function(e,t,r){var n={name:e,factory:t,dep:r};if(this._factoriyNames[e])for(var a=0,i=this._factories.length,o=!1;a<i&&!o;a+=1)this._factories[a].name===e&&(this._factories.splice(a,1),o=!0);this._factories.push(n),this._factoriyNames[e]=!0},t.deregisterFactory=function(e){if(this._factoriyNames[e])return delete this._factoriyNames[e],this._factories.splice(this._factories.findIndex(function(t){return t.name===e}),1)[0].factory},t.invokeFactories=function(){for(var e,t=this,r=t._factoriyNames,n={},a=t._factories,i=a.length+1,o=function(a){var i;a.dep&&a.dep.length&&a.dep.forEach(function(e){i=r[e]&&!n[e]}),i?e.push(a):(a.factory(t),n[a.name]=!0)};a.length&&a.length<i;)e=[],a.forEach(o),i=a.length,a=e;a.length&&a.forEach(function(e){return e.factory(t)}),this.fireEvent("factoriesinvoked",{})},e}());t["default"]=f},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i=n(r(295)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(299)),s=r(281),l=r(293);var c=function(e,t){var r,n,a;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)for(a=(n=e[r].elemStore)&&n.length-1;a>=0&&!t(n[a],r,a);a--);},u=function(e,t){var r,n,a,i;if(e&&e.hasOwnProperty&&t&&t.call)for(n in e)for(i=0,r=(a=e[n].elemStore)&&a.length;i<r&&!t(a[i],n,i);i++);},d=function(e,t,r){var n,a,i,o;for(o in void 0===r&&(r={}),e)a=e[o],(i=(0,s.pluck)(t[o],r[o]))!==s.UNDEF?a instanceof Array?"text-bound"===o?(n||(n={}),n[o]=a,n.x=e.x,n.y=e.y):a.toString().replace(/,/g,"")!==i.toString().replace(/,/g,"")&&(n||(n={}),n[o]=a):"string"==typeof a?a.replace(/,/g,"")!==i.toString().replace(/,/g,"")&&(n||(n={}),n[o]=a):a!==i&&(n||(n={}),n[o]=a):(n||(n={}),n[o]=a);return n},h=function(e){function t(t){var r,n=r=e.call(this,t)||this;return n._version=2,n._id=t,n._componentStore={},n._oldComponentStore=[],n.fireEvent("instantiated"),n.__setDefaultConfig(),r}(0,i["default"])(t,e);var r=t.prototype;return r.isDrawingRequired=function(){return this},r.syncDraw=function(){var e=this,t=e.getState("removed");(e.isDrawingRequired()||t)&&(e.fireEvent("predraw"),e.removeJob("draw"),e._resetGraphicalStore(),t?e.addJob("dispose-component",function(){return e._dispose()},l.priorityList.postRender):e.draw&&e.draw(),e.childrenSyncDraw(),e._removeUnusedGraphics(),e.fireEvent("drawn"))},r._remove=function(){var e=this;e.onRemove&&e.onRemove(),e.setState("removed",!0),e.getChildren()&&e._mapChildren(function(e){e.onRemove&&e.onRemove(),e&&e.setState("removed",!0)},!0)},r.setDimension=function(e,t){this.config.width=e,this.config.height=t},r.setTranslation=function(e,t){var r=this.config;r._translateX=e,r._translateY=t,r.translate="t"+e+","+t},r.getTranslation=function(){return{x:this.config&&this.config._translateX,y:this.config&&this.config._translateY}},r._resetGraphicalStore=function(){var e=this;e._oldGraphicalStore=e._graphicalStore,e._graphicalStore={}},r._getLastUsedElem=function(){return this.config.lastElemUsed},r.addGraphicalElement=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var r,n,a,i,l,c=this,u=e.label,h=c._graphicalStore[u]||(c._graphicalStore[u]={elemStore:[],idMap:{},indexMap:{},lastIndexUsed:-1}),f=!0,p=c._oldGraphicalStore&&c._oldGraphicalStore[u],g=h.lastIndexUsed+=1,m=e.attr,v=e.id;p&&(v&&p.idMap[v]!==s.UNDEF?(i=p.idMap[v],l=p.elemStore[i],delete p.elemStore[i],delete p.indexMap[i],delete p.idMap[v]):p.elemStore[g]&&(p.indexMap[g]||(l=p.elemStore[g],delete p.elemStore[g]))),"text"===e.el&&e.css&&(0,s.removeHtmlAttrs)(e.css),l&&(e.el=l,f=!1,(m=d(e.attr,l.attrs))&&(e.attr=m),e.css&&(n=d(e.css,l.attrs,l.styles))&&(e.css=n)),(a=e.container)?(r=a.isParent?c.getLinkedParent():c,e.container=r.getGraphicalElement(a.id,a.label)||r.getChildContainer(a.id)):e.container=c.getFromEnv("chart-container"),(m||n)&&(l=c.getFromEnv("animationManager").setAnimation(e)),h.elemStore[g]=l,v&&(h.idMap[v]&&(delete h.indexMap[h.idMap[v]],delete h.idMap[v]),h.idMap[v]=g,h.indexMap[g]=v),c.fireEvent("graphicalelementattached",{element:l}),l._skipEvents=t,e.shadow&&l.shadow(e.shadow),e.outlineText!==s.UNDEF&&l.outlineText(e.outlineText,(0,s.convertColor)((0,s.pluck)(e.css.fill,e.attr.fill))),e.tooltext!==s.UNDEF&&c.getFromEnv("toolTipController").enableToolTip(l,e.tooltext),c.config.lastElemUsed=l,!t&&f&&(0,o.addAllEventsOnGraphic)(l,c._middleListeners,c)},r.removeGraphicalElement=function(e,t){var r,n,a=this,i=a._graphicalStore;c(i,"object"==typeof e?function(t,o,s){if(e===t)return n=!0,a._setRemoveAnim(t,o),(r=i[o]).elemStore.splice(s,1),delete r.idMap[r.indexMap[s]],delete r.indexMap[s],!0}:function(o,s,l){if((r=i[s]).indexMap[l]===e&&(!t||t===s))return n=!0,a._setRemoveAnim(o,s),r.elemStore.splice(l,1),delete r.idMap[r.indexMap[l]],delete r.indexMap[l],!0}),n&&this.fireEvent("graphicalelementremoved",{element:undefined})},r.getChildContainer=function(e){return this.getGraphicalElement(s.UNDEF,e)},r._removeUnusedGraphics=function(){var e,t=this,r=t._oldGraphicalStore;c(r,function(n,a,i){n&&(t._setRemoveAnim(n,a),delete(e=r[a]).idMap[e.indexMap[i]],delete e.indexMap[i])})},r.getGraphicalElement=function(e,t){var r,n,a,i,o=this._graphicalStore;return t||e?t?(r=o[t],e?r&&r.elemStore&&r.elemStore[r.idMap[e]]:r&&r.elemStore&&r.elemStore[0]):(u(o,function(){if(i=arguments[2],(n=o[arguments[1]]).idMap[i]===e)return a=n.elemStore[i],!0}),a):o},r.addEventListener=function(t,r,n){var a=e.prototype.addEventListener.call(this,t,r,n);return!0===a?(function(e,t,r){var n;t&&r&&(n=function(e){!e._skipEvents&&e.on&&e.on(t,r)},u(e.getGraphicalElement(),n))}(this,t,this._middleListeners[t]),r):!!a&&r},r.removeEventListener=function(t,r){e.prototype.removeEventListener.call(this,t,r)&&function(e,t,r){var n;t&&r&&(n=function(e){!e._skipEvents&&e.off&&e.off(t,r)},u(e.getGraphicalElement(),n))}(this,t,this._middleListeners[t])},r._dispose=function(){var e,t,r,n,a=this;if(a&&a!==window&&!0!==a._disposing){if(a._disposing=!0,a.fireEvent("beforeremove"),a._extListeners)for(r in a._extListeners)for(t=(n=a._extListeners[r]).length-1;t>=0;t--)n[t].component&&n[t].component.addEventListener&&n[t].component.removeEventListener(r,n[t].fn);for(e in a.removeAllJobs(),a._linkedParent&&1===a._linkedParent.getComponentVersion()&&a._linkedParent._detachChild(a),a.getFromEnv("paper")&&!a.getFromEnv("paper").removed&&u(a.getGraphicalElement(),a.__instantRemoveFn),a)a.hasOwnProperty(e)&&delete a[e];a.fireEvent("removed")}},r.configure=function(t){this._resetComponentStore(),e.prototype.configure.call(this,t)},r._resetComponentStore=function(){var e=this;e._oldComponentStore.push(e._componentStore),e._componentStore={}},r._mapChildren=function(e,t){t?c(this.getChildren(),e):u(this.getChildren(),e)},r.attachChild=function(e,t,r){var n,a,i=this,o=i._componentStore[t]||(i._componentStore[t]={elemStore:[],idMap:{},indexMap:{},lastIndexUsed:-1}),l=i._oldComponentStore&&i._oldComponentStore.length&&i._oldComponentStore[i._oldComponentStore.length-1][t],c=o.lastIndexUsed+=1;if(l){var u=l.elemStore,d=u[c];r&&l.idMap[r]!==s.UNDEF?(a=u[n=l.idMap[r]],delete u[n],delete l.indexMap[n],delete l.idMap[r]):d&&d.constructor===e&&(l.indexMap[c]||(a=d,delete u[c]))}return a||(a=new e(r)),o.elemStore[c]=a,r&&(o.idMap[r]=c,o.indexMap[c]=r),a._setLinkedParent(i),a},r.childrenSyncDraw=function(){this._mapChildren(function(e){e&&e.draw&&e.syncDraw()}),this._removeUnusedChildren()},r._removeUnusedChildren=function(){for(var e=this._oldComponentStore,t=e.length,r=0,n=function(e){e&&(e._remove(),e.syncDraw(),e._setLinkedParent(s.UNDEF))};r<t;r+=1)c(e[r],n);this._oldComponentStore.length=0},r.getChild=function(e,t){var r;return this._searchChildren(e,function(e){r=e},t),r},r._searchChildren=function(e,t,r){var n,a,i=this._componentStore,o=r;if(e?c(i,function(t,r,s){if(i[r].indexMap[s]===e&&(!o||o===r))return a=t,n=s,o=r,!0}):a=i&&i[o]&&i[o].elemStore,a)return t(a,n,o)},r.getChildren=function(e){return e&&this._componentStore?this._componentStore[e]&&this._componentStore[e].elemStore:this._componentStore},r._detachChild=function(){return this},t}(o["default"]);t["default"]=h},(e,t,r)=>{var n,a,i=["forEach","versionDetails","_generateCharSet","default","random","_mapper","push","charCodeAt","prototype","__esModule","_generateDimeSet","_tripod","round","isCreditLabel","substr","_chartSel","keys","splice","length","_rotateKey","options","toString","indexOf","storeObj","items","creditLabel","_mapMain","_mapperParent","fromCharCode"];n=i,a=106,function(e){for(;--e;)n.push(n.shift())}(++a);var o=function(e,t){return i[e-=0]},s=r(272);t[o("0x13")]=!0,t["default"]=void 0;var l=s(r(302));var c=function(){function e(){}var t=e[o("0x12")];return t[o("0x7")]=function(e,t){var r="",n=this[o("0x14")](e);if(n.length>0&&t&&t[o("0x1c")]>0){for(var a=this[o("0xc")](),i=0;i<t[o("0x1c")];i++){var s=a[o("0x3")](t.substr(i,1));s>-1&&(r+=n[o("0x18")](s,1),n=this._rotateKey(n,t[o("0x11")](i)))}return r}return""},t[o("0x0")]=function(e,t){var r=t;return(r%=e[o("0x1c")])<0&&(r=e[o("0x1c")]+r),0!==r?e[o("0x18")](e[o("0x1c")]-r,r)+e[o("0x18")](0,e[o("0x1c")]-r):e},t[o("0x4")]=function(e,t){var r,n,a=this;if(t&&(!0===t[o("0x6")]||!1===t.creditLabel)){var i=this._mapMain(e,t.key);r=e,(n=i)?(r[o("0x1")][o("0x19")]=n[o("0x18")](n[o("0x1c")]/2),r[o("0x1")]._mapper=n.substr(0,n[o("0x1c")]/2)):(r[o("0x1")]._chartSel=null,r[o("0x1")][o("0xf")]=null),e[o("0x1")].isCreditLabel=t[o("0x6")];var s=e[o("0x5")];s&&Object[o("0x1a")](s)[o("0xa")](function(t){s[t].hasRendered()&&a[o("0x8")](e,s[t])})}},t[o("0x8")]=function(e,t){var r=e.options,n=r._mapper,a=r[o("0x19")],i=r[o("0x17")],s=null;if(n&&a){var c=n+a;s=this[o("0x15")](e,c)}l[o("0xd")]._mapperSeed(t,i,s,e[o("0xb")][1])},t[o("0x15")]=function(e,t){var r="",n=this[o("0x14")](e),a=this[o("0xc")]();if(n[o("0x1c")]>0&&t[o("0x1c")]>0){for(var i=0;i<t[o("0x1c")];i++){var s=n[o("0x3")](t[o("0x18")](i,1));s>-1&&(r+=a.substr(s,1),a=this[o("0x0")](a,-a[o("0x11")](s)))}return r}return""},t[o("0x14")]=function(e){var t="",r=[],n=this._generateCharSet(),a=!1,i=e[o("0x1")].randomDimensionArr||[];i&&i[o("0x1c")]>0&&(a=!0);for(var s=0;s<n[o("0x1c")];s++)r[o("0x10")](n[o("0x18")](s,1)),!a&&i[o("0x10")](Math[o("0xe")]());!a&&(e[o("0x1")].randomDimensionArr=i);for(var l=0;l<n.length;l++)t+=r[o("0x1b")](Math[o("0x16")](i[l]*(r.length-1)),1);return t},t[o("0xc")]=function(){for(var e="",t="",r=0,n="",a="a"[o("0x11")](0),i=a;i<=a+25;i++)n+=String[o("0x9")](i);for(var s=65;s<=90;s++)e+=String[o("0x9")](s),s>80&&(t+=r[o("0x2")](),r++);return""+n+e+t+"%-="},e}();t[o("0xd")]=Object.freeze(new c)},(e,t,r)=>{var n,a,i=["utilityArrSet","childObj","__esModule","prototype","freeze","trierFirst","moduleChartMapper","default","_mapperSeed"];n=i,a=146,function(e){for(;--e;)n.push(n.shift())}(++a);var o=function(e,t){return i[e-=0]},s=r(272);t[o("0x0")]=!0,t[o("0x5")]=void 0;var l,c=s(r(303)),u=r(304);t["default"]=Object[o("0x2")](new(l=Symbol(o("0x8")),function(){function e(){this[l]=Object[o("0x2")](new(c[o("0x5")]))}return e[o("0x1")][o("0x6")]=function(e,t,r,n){this[l][o("0x3")](e,r,t,n,u[o("0x7")],u[o("0x4")])},e}()))},(e,t)=>{var r,n,a=["removeJob","parse","test","apiInstance","_hostFetcher","filter","match","config","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789","default","abs","random","split","products","disconnect","floor","elementReprocator","checker","_trierProductMapper","removeContainer","_trierStraightner","0.0.0.0","powerCharts","chartGenMinimizer","isUpgrade","hostname","127.0.0.1","trierFirst","map","_sumDigits","toLowerCase","fusionCharts","length","_trierModuleMapper","_fromRange","charAt","trim","round","location","endDate","fusionChartsSuite","creditgroup","Your FusionCharts license is expiring in ","_trierValidator","utility_version","domain","modules","_trierDomainMapper","indexOf","prototype","_trierDateMapper","chartType","_drawMain","fromCharCode","getName","startDate"," day(s), please renew.","localhost","luv","name","getTime","observer","__esModule"];r=a,n=299,function(e){for(;--e;)r.push(r.shift())}(++n);var i=function(e,t){return a[e-=0]};t[i("0xf")]=!0,t[i("0x19")]=void 0;var o=t["default"]=function(){function e(){}return e[i("0x2")][i("0x2b")]=function(e,t,r,n,a,o){var s=this[i("0x24")](t),l=!1;if(s){var c=a.filter(function(e){return e[i("0x3c")]===s[i("0xb")]});if(c&&c[i("0x30")]>0){var u=c[0],d=this._trierDateMapper(s,u,n);if(!d&&(l=!0),d){var h=this[i("0x22")](s,u);if(h)if(this[i("0x31")](s,u,e[i("0x4")](),h,o)){var f=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent),p=window.location.href.match(/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-\.0-9;-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/);if((!(!f||p)||this[i("0x0")](s,u))&&!r)return void this[i("0x3b")](e)}}}}return e[i("0x13")][i("0x5")](!0,l),!1},e}();o.prototype[i("0x3b")]=function(e){for(var t=Math[i("0x1f")](12*Math[i("0x1b")]())+2,r=e.apiInstance[i("0x7")]()[i("0x30")],n=0;n<r+t;n++)n===r?e.apiInstance[i("0x10")](i("0x21")):n===r+1&&this[i("0x27")](e.apiInstance)},o.prototype[i("0x27")]=function(e){e[i("0x17")][i("0xe")]&&(e[i("0x17")][i("0xe")][i("0x1e")](),this[i("0x20")](e))},o[i("0x2")][i("0x2d")]=function(e){for(var t=e.toString(),r=0,n=0;n<t.length;n++)r+=parseInt(t[i("0x33")](n),10);return r>10?r%9+1:r},o[i("0x2")][i("0x32")]=function(e,t,r){for(var n=Math[i("0x1a")](r),a=e;n-- >0;)a-=t;return r<0&&(a+=123),a},o[i("0x2")]._foo=function(e){return e},o[i("0x2")]._trierStraightner=function(e){if(!e)return e;for(var t="",r=i("0x18")[i("0x1")](e[0]),n=this._foo("charCodeAt"),a=this._foo(i("0x6")),o=1;o<e.length-2;o++){for(var s=this[i("0x2d")](++r),l=e[n](o),c="";/[0-9-]/[i("0x12")](e[o+1]);)c+=e[++o];c=parseInt(c,10)||0,l=this[i("0x32")](l,s,c),l^=r-1&31,t+=String[a](l)}try{return JSON[i("0x11")](t)}catch(u){return null}},o[i("0x2")][i("0x3")]=function(e,t,r){var n=e[t[i("0x2c")][i("0x37")]],a=window[i("0x36")][i("0x29")],o=new Date,s=!1;if((a===i("0xa")||a===i("0x2a")||a===i("0x25"))&&(s=!0),e[t.map.startDate]&&n&&!e[t[i("0x2c")][i("0x28")]]){var l=new Date(r),c=new Date(n);if(l>c)return!1;if(s&&o<c){var u=Math[i("0x35")]((c.getTime()-o.getTime())/864e5);u<=45&&console.warn(i("0x3a")+u+" day(s), please renew to get upgrades and support.")}return!0}if(e[t.map[i("0x8")]]&&n&&e[t[i("0x2c")][i("0x28")]])return!0;if(n){var d=new Date(n);if(o>d)return!1;if(s&&o<d){var h=Math[i("0x35")]((d.getTime()-o[i("0xd")]())/864e5);h<=45&&console.warn(i("0x3a")+h+i("0x9"))}return!0}return!1},o.prototype[i("0x22")]=function(e,t){var r=e[t.map[i("0x1d")]];if(r){var n=t[i("0x1d")][i("0x15")](function(e){return e[i("0xc")]===r});return n&&n[i("0x30")]>0?n[0]:null}return null},o[i("0x2")][i("0x31")]=function(e,t,r,n,a){var o=e[t.map[i("0x3e")]];if("fcs"===n[i("0xc")]){if(o[i("0x30")]>0){for(var s=0;s<o[i("0x30")];s++){var l=n[i("0x3e")][o[s]];if(l)if(l===i("0x38")){if(a[i("0x2f")][i("0x1")](r)>-1||a[i("0x26")].indexOf(r)>-1||a.fusionWidgets.indexOf(r)>-1||a.fusionMaps[i("0x1")](r)>-1)return!0}else if(a[l].indexOf(r)>-1)return!0}return!1}return!1}return!1},o[i("0x2")][i("0x20")]=function(e){e[i("0x23")](i("0x39"))},o[i("0x2")]._trierDomainMapper=function(e,t){var r=e[t.map[i("0x3d")]]||"a",n=this._hostFetcher();if(!n)return!1;if(n===i("0xa")||n===i("0x2a")||n===i("0x25"))return!0;if(r&&"a"!==r){for(var a=r[i("0x1c")](","),o=!1,s=0;s<a[i("0x30")];s++){var l=a[s][i("0x34")]()[i("0x2e")]();if(n[i("0x1")](l)>-1){o=!0;break}}return o}return"a"===r},o[i("0x2")][i("0x14")]=function(){var e=window[i("0x36")].href[i("0x16")](/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-\.0-9;-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/);return null!=e&&e.length>2&&"string"==typeof e[2]&&e[2].length>0?e[2][i("0x2e")]():null}},(e,t)=>{"use strict";t.__esModule=!0,t.utilityArrSet=t.moduleChartMapper=void 0;t.utilityArrSet=[{utility_version:"1.0.0",map:{licenseUtilityVersion:"luv",userID:"uid",startDate:"sdt",endDate:"edt",isUpgrade:"uel",products:"prd",modules:"elm",domain:"rlm"},products:[{name:"fcs",modules:{fc:"fusionCharts",fw:"fusionWidgets",pc:"powerCharts",fm:"fusionMaps",ft:"fusionTime",fcs:"fusionChartsSuite"}}]}],t.moduleChartMapper={fusionCharts:["column2d","column3d","histogram","pie2d","pie3d","line","bar2d","bar3d","area2d","doughnut2d","doughnut3d","pareto2d","pareto3d","mscolumn2d","newmscolumn2d","mscolumn3d","msbar2d","msbar3d","msline","zoomline","zoomlinedy","zoomscatter","msarea","stackedcolumn2d","newstackedcolumn2d","marimekko","stackedcolumn3d","stackedarea2d","stackedcolumn2dline","stackedcolumn3dline","stackedbar2d","stackedbar3d","msstackedcolumn2d","msstackedbar2d","msstackedcombidy2d","mscombi2d","mscombi3d","mscolumnline3d","mscombidy2d","mscombidy3d","mscolumn3dlinedy","stackedcolumn3dlinedy","stackedcolumn2dlinedy","stackedarea2dlinedy","msstackedcolumn2dlinedy","scrollmsstackedcolumn2dlinedy","scatter","bubble","ssgrid","scrollcolumn2d","scrollmsstackedcolumn2d","scrollbar2d","scrollline2d","scrollarea2d","scrollstackedcolumn2d","scrollstackedbar2d","scrollcombi2d","scrollcombidy2d","treemap","overlappedcolumn2d","overlappedbar2d","msstackedcolumn2dsplinedy","mscombi2dspline","mscombidy2dspline","stackedcolumn2dspline","scrollcombi2dspline","scrollcombidy2dspline","aeroplaneseating","fusionhall"],powerCharts:["spline","splinearea","msspline","mssplinedy","mssplinearea","multiaxisline","multilevelpie","sunburst","waterfall2d","msstepline","difference","errorbar2d","horizontalerrorbar2d","errorscatter","errorline","logmsline","logmscolumn2d","logstackedcolumn2d","radar","chord","dragnode","candlestick","selectscatter","heatmap","boxandwhisker2d","sankey","dateaxis","dragcolumn2d","dragline","dragarea","kagi","inversemsline","inversemscolumn2d","inversemsarea"],fusionWidgets:["angulargauge","progressgauge","funnel","pyramid","sparkline","sparkcolumn","sparkwinloss","hbullet","vbullet","hlineargauge","hled","vled","thermometer","cylinder","bulb","gantt","drawingpad","radialbar","realtimearea","realtimecolumn","realtimeline","realtimelinedy","realtimestackedarea","realtimestackedcolumn"],fusionMaps:["world","worldwithcountries","world8","europe","northamerica","centralamerica","southamerica","asia","africa","middleeast","oceania","asia3","northamericawocentral","usa","usmsa","alaska","alabama","arizona","arkansas","california","colorado","connecticut","delaware","districtofcolumbia","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kentucky","kansas","louisiana","maine","maryland","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","newhampshire","newjersey","newmexico","newyork","northcarolina","northdakota","ohio","oklahoma","oregon","pennsylvania","rhodeisland","southcarolina","southdakota","tennessee","texas","utah","washington","vermont","virginia","westvirginia","wisconsin","wyoming","usaregion","usanortheastregion","usanorthwestregion","usacentralregion","usasoutheastregion","usasouthwestregion","europewithcountries","europe2","albania","andorra","austria","belarus","belgium","bosniaherzegovina","bulgaria","croatia","cyprus","cyprus2","czechrepublic","denmark","denmarkregion","england","estonia","finland","france","france2016","francedepartment","germany","greece","hungary","hungaryregions","iceland","ireland","italy","latvia","liechtenstein","lithuania","belgiumluxembourg","macedonia","malta","moldova","monaco","montenegro","netherlands","norway","norwayregion","polandcounties","poland","portugal","romania","sanmarino","scotland","serbia","slovakia","slovenia","spain","spainprovinces","sweden","switzerland","turkey","uk","ukraine","vaticancity","europeregion","easteuropeanregion","westeuropeanregion","centraleuropeanregion","northeuropeanregion","southeuropeanregion","uk","uk7","englandregion","scotlandregion","wales","northireland","antigua","bahamas","barbados","canada","caymanislands","cuba","dominica","dominicanrepublic","greenland","grenada","haiti","jamaica","mexico","puertorico","saintkittsandnevis","saintlucia","saintvincentandthegrenadines","trinidadandtobago","argentina","buenosaires","catamarca","chaco","chubut","ciudadautonomadebuenosaires","cordoba","corrientes","entrerios","formosa","jujuy","lapampa","larioja","mendoza","misiones","neuquen","rionegro","salta","sanjuan","sanluis","santacruz","santafe","santiagodelestero","tierradelfuego","tucuman","bolivia","brazil","brazilregion","chile","colombia","ecuador","falklandisland","frenchguiana","guyana","paraguay","peru","ancash","apurimac","arequipa","ayacucho","cajamarca","callao","cusco","huancavelica","huanuco","ica","junin","lalibertad","lambayeque","lima","limaprovince","loreto","madrededios","moquegua","pasco","peruamazonas","piura","puno","sanmartin","tacna","tumbes","ucayali","suriname","uruguay","venezuela","centralamericawithcaribbean","centralamerica2","belize","costarica","alajuela","cartago","guanacaste","heredia","limon","puntarenas","sanjose","elsalvador","guatemala","honduras","nicaragua","panama","alberta","britishcolumbia","manitoba","newbrunswick","newfoundlandandlabrador","northwestterritories","novascotia","nunavut","ontario","princeedwardisland","quebec","saskatchewan","yukonterritory","armenia","azerbaijan","bangladesh","bhutan","brunei","burma","cambodia","china","china2","georgia","easttimor","hongkong","india","indonesia","westjava","japan","kazakhstan","laos","macau","malaysia","mongolia","nepal","northkorea","philippines","russia","singapore","southkorea","srilanka","taiwan","thailand","tibet","vietnam","afghanistan","bahrain","iran","iraq","israel","jordan","kuwait","kyrgyzstan","lebanon","oman","pakistan","qatar","saudiarabia","syria","tajikistan","turkmenistan","uae","uzbekistan","yemen","oceania","australia","australia2","fiji","kiribati","marshallisland","micronesia","nauru","newcaledonia","newzealand","palau","papuanewguinea","samoa","solomonisland","tonga","tuvalu","vanuatu","algeria","angola","benin","botswana","burkinafaso","burundi","cameroon","capeverde","centralafricanrepublic","chad","comoros","congo","cotedivoire","democraticrepublicofcongo","djibouti","egypt","equatorialguinea","eritrea","ethiopia","gabon","gambia","ghana","guinea","guineabissau","kenya","lesotho","liberia","libya","madagascarregions","malawi","mali","mauritania","mauritius","morocco","mozambique","namibia","niger","nigeria","rwanda","saotomeandprincipe","senegal","seychelles","sierraleone","somalia","southafrica","sudan","swaziland","tanzania","togo","tunisia","uganda","westernsahara","zambia","zimbabwe","aguascalientes","bajacalifornia","bajacaliforniasur","campeche","colima","distritofederal","guanajuato","nayarit","queretarodearteaga","quintanaroo","sonora","tamaulipas","zacatecas","andamanandnicobar","andhrapradesh","arunachalpradesh","assam","bihar","chandigarh","chattisgarh","dadraandnagarhaveli","damananddiu","delhi","goa","gujarat","haryana","himachalpradesh","jammuandkashmir","jharkhand","karnataka","kerala","lakshadweep","madhyapradesh","maharashtra","manipur","meghalaya","mizoram","nagaland","orissa","puducherry","punjab","rajasthan","sikkim","tamilnadu","tripura","uttarakhand","uttarpradesh","westbengal","acre","alagaos","amapa","amazonas","bahia","ceara","distritofederal","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","para","paraiba","parana","perambuco","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","sanpaulo","santacatarina","sergipe","tocantin","caribbeanregions","anguilla","aruba","bonaire","britishvirginisland","curacao","guadaloupe","martinique","montserrat","saintbarthelemy","sainteustatius","saintmartin","turksandcaicos","usvirginisland","antwerp","brussels","eastflanders","flemishbrabant","hainaut","liege","ladakh","limburgbgomeenten","luxembourg","namur","walloonbrabant","westflanders","centralbohemianregion","hradeckralove","karlovyvaryregion","liberec","moraviasilesia","olomoucregion","pardubiceregion","plzenregion","prague","southbohemia","southmoravia","ustinadlabem","vysocina","zlin","iledefrance","paris","lyon","marseille","badenwurttemberg","bavaria","berlin","brandenburg","hesse","lowersaxony","mecklenburgvorpommern","northrhinewestphalia","rhinelandpalatinate","saarland","sachsenanhalt","saxony","schleswigholstein","thuringia","abruzzo","apulia","basilicata","calabria","campania","emiliaromagna","friuliveneziagiulia","lazio","liguria","lombardy","marche","molise","piedmont","sardinia","sicily","trentinoaltoadige","tuscany","umbria","veneto","blekinge","dalarna","gavleborg","halland","jamtland","jonkoping","kalmar","kronoberg","norrbotten","orebro","ostergotland","skane","sodermanland","stockholm","uppsala","varmland","vasterbotten","vasternorrland","vastmanland","vastragotaland","aargau","appenzellausserrhoden","appenzellinnerrhoden","bern","basellandschaft","fribourg","geneva","graubunden","jura","lucerne","neuchatel","nidwalden","obwalden","schaffhausen","schwyz","solothurn","saintgallen","thurgau","ticino","valais","vaud","zurich","romania","burgenland","karnten","niederosterreich","oberosterreich","salzburg","steiermark","tirol","vorarlberg","wien","aveiro","beja","braga","braganca","castelobranco","coimbra","evora","faro","guarda","lieria","lisboa","portalegre","porto","santarem","setubal","vianadocastelo","vilareal","viseu","acre","amapa","amazonas","australia","bahia","ceara","distritofederal","egypt","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","montana","para","paraiba","parana","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","santacatarina","sergipe","tibet","africaregion","aichi","akita","alabamaareacode","alabamacongressional","alagoas","alaskaareacode","alaskacongressional","alexandria","alminya","alsharqeyah","americansamoacongressional","anhui","aomori","arizonaareacode","arizonacongressional","arkansasareacode","arkansascongressional","asiaregion","aswan","asyut","auckland","australiancapitalterritory","bahera","baniswaif","bayofplenty","beijing","blagoevgrad","bostonareacode","burgas","busan","cairo","californiaareacode","californiacongressional","canterbury","centralhungary","centraltransdanubia","chagang","chiba","chicagoareacode","china3","chongqing","chungcheongbukdo","chungcheongnamdo","coloradoareacode","coloradocongressional","connecticutareacode","connecticutcongressional","czechrepublicdistricts","daegu","daejeon","dallasfortworthareacode","daqahliya","delawareareacode","delawarecongressional","detroitareacode","districtofcolumbiaareacode","districtofcolumbiacongressional","dobrich","domyat","eastnorthcentraldma","eastsouthcentraldma","ehime","fayoum","floridaareacode","floridacongressional","fujian","fukui","fukuoka","fukushima","gabrovo","gangwondo","gansu","georgiaareacode","georgiacongressional","gharbiya","gifu","gisborne","giza","gradsofia","guamcongressional","guangdong","guangxi","guizhou","gunma","gwangju","gyeonggido","gyeongsangbukdo","gyeongsangnamdo","hainan","haskovo","hawaiiareacode","hawaiicongressional","hawkesbay","hebei","heilongjiang","helwan","henan","hiroshima","hokkaido","hovedstaden","hubei","hunan","hyogo","ibaraki","idahoareacode","idahocongressional","illinoisareacode","illinoiscongressional","incheon","indianaareacode","indianacongressional","iowaareacode","iowacongressional","ishikawa","ismailia","iwate","jejudo","jeollabukdo","jeollanamdo","jiangsu","jiangxi","jilin","kaesong","kafralsheikh","kagawa","kagoshima","kanagawa","kangwon","kansasareacode","kansascongressional","kardzhali","kentuckyareacode","kentuckycongressional","kochi","kumamoto","kumgangsan","kyoto","kyustendil","liaoning","louisianaareacode","louisianacongressional","lovech","luxer","maineareacode","mainecongressional","manawatuwanganui","marlborough","marylandareacode","marylandcongressional","massachusettsareacode","massachusettscongressional","matrouh","michiganareacode","michigancongressional","middleatlanticdma","midtjylland","mie","minnesotaareacode","minnesotacongressional","mississippiareacode","mississippicongressional","missouriareacode","missouricongressional","miyagi","miyazaki","monofiya","montanaareacode","montanacongressional","mountaindma","nagano","nagasaki","nara","nebraskaareacode","nebraskacongressional","neimongol","nelson","nevadaareacode","nevadacongressional","newenglanddma","newhampshireareacode","newhampshirecongressional","newjerseyareacode","newjerseycongressional","newmexicoareacode","newmexicocongressional","newsouthwales","newyorkareaareacode","newyorkareacode","newyorkcongressional","niigata","ningxiahui","nordjylland","northcarolinaareacode","northcarolinacongressional","northdakotaareacode","northdakotacongressional","northerncaliforniabayareacode","northerngreatplain","northernhungary","northernterritory","northhamgyong","northhwangae","northland","northpyongan","northsinai","ohioareacode","ohiocongressional","oita","okayama","okinawa","oklahomaareacode","oklahomacongressional","oregonareacode","oregoncongressional","osaka","otago","pacificdma","pazardzhik","pennsylvaniaareacode","pennsylvaniacongressional","pernambuco","pernik","phoenixareacode","pleven","plovdiv","portsaid","puertoricocongressional","pyongyang","qalyoubiya","qina","qinghai","queensland","rason","razgrad","redsea","rhodeislandareacode","rhodeislandcongressional","ruse","ryanggang","saga","saitama","saopaulo","seattleareacode","seoul","shaanxi","shandong","shanghai","shanxi","shiga","shimane","shizuoka","shumen","sichuan","silistra","sinuiju","sixoctober","sjã¦lland","sliven","smolyan","sofia","southatlanticdma","southaustralia","southcarolinaareacode","southcarolinacongressional","southdakotaareacode","southdakotacongressional","southerncalifornialaareacode","southerngreatplain","southerntransdanubia","southhamgyong","southhwangae","southland","southpyongan","southsinai","starazagora","suez","suhaj","syddanmark","taranaki","targovishte","tasman","tasmania","telangana","tennesseeareacode","tennesseecongressional","texasareacode","texascongressional","tianjin","tocantins","tochigi","tokushima","tokyo","tottori","toyama","ulsan","usadma","usatimezone","usvirginislandscongressional","utahareacode","utahcongressional","varna","velikotarnovo","vermontareacode","vermontcongressional","victoria","vidin","virginiaareacode","virginiacongressional","vratsa","wadygadid","waikato","wakayama","washingtonareacode","washingtoncongressional","wellington","westcoast","westernaustralia","westerntransdanubia","westnorthcentraldma","westsouthcentraldma","westvirginiaareacode","westvirginiacongressional","wisconsinareacode","wisconsincongressional","wyomingareacode","wyomingcongressional","xinjiang","yamagata","yamaguchi","yamanashi","yambol","yunnan","zhejiang","northernasia","easternasia","centralasia","westernasia","southernasia","southeastasia","asiageorgia","easternafrica","centralafrica","northernafrica","southernafrica","westernafrica","barisal","chittagong","dhaka","khulna","mymensingh","rajshahi","rangpur","sylhet","absheron","aran","dagligshirvan","ganjagazakh","gubakhachmaz","kalbajarlachin","lankaran","nakhchivan","shakizaqatala","yukharigarabakh","akmola","aktobe","almatycity","almaty","astanacity","atyrau","baikonurcity","eastkazakhstan","jambyl","karaganda","kostanay","kyzylorda","mangystau","northkazakhstan","pavlodar","southkazakhstan","westkazakhstan","badakhshan","baghlan","balkh","bamyan","farah","faryab","ghazni","ghor","helmand","herat","jowzjan","kabul","kandahar","kapisa","khost","laghman","logar","maidanwardak","nangarhar","nimruz","nuristan","paktia","paktika","panjshir","samangan","sarepol","takhar","urozgan","zabul","esfahan","kermanshah","mashhad","tabriz","tehran","beirut","beqaa","mountlebanon","nabatieh","northlebanon","southlebanon","harjumaa","hiiumaa","idavirumaa","jarvamaa","jogevamaa","laanemaa","laanevirumaa","parnumaa","polvamaa","raplamaa","saaremaa","tartumaa","valgamaa","viljandimaa","vorumaa","bucurestiilfov","centru","nordest","nordvest","sudest","sudmuntenia","sudvestoltenia","vest","dolnoslaskie","kujawskopomorskie","lodzkie","lubelskie","lubuskie","malopolskie","mazowieckie","opolskie","podkarpackie","podlaskie","pomorskie","slaskie","swietokrzyskie","warminskomazurskie","wielkopolskie","zachodniopomorskie","lubuskie","easternnorway","northernnorway","southernnorway","trondelag","westernnorway","easternnorway","akershus","austagder","buskerud","finnmark","hedmark","hordaland","moreogromsdal","nordtrondelag","nordland","oppland","oslo","rogaland","sognogfjordane","sortrondelag","telemark","troms","vestagder","vestfold","ostfold","banskabystrica","bratislava","kosice","nitra","presov","trencin","trnava","zilina","romaniaregion","caribbeansregion","northernireland","northamericawithcaribbeans","world8withantarctica","worldwithantarctica","dagana","gasa","sarpang","haa","lhuntse","paro","pemagatshel","punakha","samtse","samdrupjongkhar","zhemgang","trashigang","trongsa","trashiyangtse","wangduephodrang","bumthang","chukha","tsirang","mongar","thimphu","attapeu","bokeo","bolikhamsai","champasak","huaphan","khammouane","luangnamtha","luangprabang","oudomxay","phongsali","salavan","savannakhet","vientianeprovince","vientianecapital","sayabouly","xaisombounprovince","sekong","xiengkhouang","philippinesregion","centralvisayas","westernvisayas","zamboangapeninsula","pampanga","quezon","sulu","zamboangacity","zamboangasibugay","tawitawi"],fusionTime:["timeseries"]}},(e,t)=>{"use strict";var r;t.__esModule=!0,t["default"]=void 0,window.trustedTypes&&(r=window.trustedTypes.createPolicy("fusionChartsPolicy",{createHTML:function(e){return e}}));t["default"]=r||{createHTML:function(e){return e}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(277)),i=n(r(307)),o=n(r(308)),s=n(r(305));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,a["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u=i["default"].init(window),d=u.win.document,h=u.win.Math,f=h.max,p=h.round,g={" ":"&nbsp;"},m=u.getDocumentSupport(),v=m.isWebKit?0:4.5;function b(e,t,r){var n,a,i,l=!1,c=window.document.createElement("canvas");for(a in(r=r||{}).maxCacheLimit=isFinite(i=r.maxCacheLimit)?i:u.maxDefaultCacheLimit,"string"==typeof e&&(e=d.getElementById(e)),(n=u.createContainer(e)).innerHTML=s["default"].createHTML(u.testStrAvg),!m.isHeadLess&&(m.isIE||n.offsetHeight||n.offsetWidth)||(l=!0),n.innerHTML=s["default"].createHTML(""),u.parentContainerStyle)n.style[a]=u.parentContainerStyle[a];this.parentContainer=n,this.ctx=c&&c.getContext&&c.getContext("2d"),this._containerManager=new o["default"](n,l,10),this._showNoEllipses=!t,this._init=!0,this.style={},this.oldStyle={},this.options=r,this.setStyle()}function y(e){var t={};if(!e||!e.style||!e.style.cssText)return t;for(var r=function(e){return e.replace(/(?:^|[-])(\w)/g,function(e,t){return(t="-"===e.substr(0,1)?t.toUpperCase():t)||""})},n=e.style.cssText.split(";"),a=0;a<n.length;++a){var i=n[a].trim();if(i){var o=i.split(":");t[r(o[0].trim())]=o[1].trim()}}return t}function w(e,t,r,n,a){var i,o=[],s=[];if(e)for(;i=e.exec(r);)o.push({tagName:n,index:i.index,endTagName:a});if(t)for(;i=t.exec(r);)s.push({tagName:a,index:i.index});return{tag:o,endtag:s}}function x(e,t,r,n,a,i,o,s,l,c,u,d,h,f){var p,g,m=[e,t,r,n,a,i,o,s,l,c,u,d,h,f],v=[];for(g=0;g<m.length;g++)for(var b in m[g])if(m[g][b].length)for(p=0;p<m[g][b].length;p++)v.push(m[g][b][p]);return v=v.sort(function(e,t){return e.index-t.index}),v}function _(e){return x({},{},{},{},{},{},{},{},{},{},{},{},{},w(/<br\s*\/?>/g,undefined,e,"<br />",""))}function S(e){var t=w(/<u>/g,/<\/u>/g,e,"<u>","</u>"),r=w(/<b>/g,/<\/b>/g,e,"<b>","</b>"),n=w(/<em>/g,/<\/em>/g,e,"<em>","</em>"),a=w(/<strike>/g,/<\/strike>/g,e,"<strike>","</strike>"),i=w(/<sub>/g,/<\/sub>/g,e,"<sub>","</sub>"),o=w(/<sup>/g,/<\/sup>/g,e,"<sup>","</sup>"),l=function(e,t,r,n,a){for(var i,o,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),l=i[0]+"Dummy</abbr>",o.innerHTML=s["default"].createHTML(l),c.push({tagName:i[0],index:i.index,title:o.childNodes[0].title?o.childNodes[0].title:"",endTagName:a});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}}(/<abbr[\s]+([^>]+)>/g,/<\/abbr>/g,e,0,"</abbr>"),c=function(e,t,r,n,a){for(var i,o,l,c=[],u=[];i=e.exec(r);)o=document.createElement("p"),l=i[0]+"</a>",o.innerHTML=s["default"].createHTML(l),c.push({tagName:i[0],index:i.index,href:o.childNodes[0].href?o.childNodes[0].href:"",target:o.childNodes[0].target?o.childNodes[0].target:"",hreflang:o.childNodes[0].hreflang?o.childNodes[0].hreflang:"",referrerpolicy:o.childNodes[0].referrerpolicy?o.childNodes[0].referrerpolicy:"",rel:o.childNodes[0].rel?o.childNodes[0].rel:"",endTagName:a});for(;i=t.exec(r);)u.push({tagName:a,index:i.index});return{tag:c,endtag:u}}(/<a[\s]+([^>]+)>/g,/<\/a>/g,e,0,"</a>"),u=function(e,t,r,n,a){for(var i,o,l,c,u=[],d=[];i=e.exec(r);)o=document.createElement("p"),l=i[0]+"Dummy</span>",o.innerHTML=s["default"].createHTML(l),c=y(o.childNodes[0]),u.push({tagName:i[0],index:i.index,style:c||"",endTagName:a});for(;i=t.exec(r);)d.push({tagName:a,index:i.index});return{tag:u,endtag:d}}(/<span[\s]+([^>]+)>/g,/<\/span>/g,e,0,"</span>");return x(t,r,n,a,i,o,l,c,u,w(/<strong>/g,/<\/strong>/g,e,"<strong>","</strong>"),w(/<i>/g,/<\/i>/g,e,"<i>","</i>"),w(/<del>/g,/<\/del>/g,e,"<del>","</del>"),w(/<s>/g,/<\/s>/g,e,"<s>","</s>"),w(/<br\s*\/?>/g,undefined,e,"<br />",""))}function k(e,t,r,n){return t<0&&(t=e.length+t)<0&&(t=0),e.slice(0,t)+(n||"")+e.slice(t+r)}function C(e,t,r,n){var a,i,o,s=e,l=r.index,c=r.index,u=r.index+6;if(!t.length)return{text:e,charOffset:n};for(i=0,o=t.length-1,t[i].endTagName&&(u=c+t[i].endTagName.length+6);i<=o;)if(t[i].endTagName)if(i===o)s=k(s,c,0,t[i].endTagName),s=k(s,u,0,t[i].tagName),c=(l+=t[i].endTagName.length)-t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,n+=t[i].endTagName.length,n+=t[i].tagName.length,i++,o--;else if(t[i].endTagName!==t[o].tagName){for(a=i;a<=o;a++)if(t[a+1]&&t[i].endTagName===t[a+1].tagName){i=a+2;break}a>o&&(s=k(s,c,0,t[i].endTagName),s=k(s,c+t[i].endTagName.length+6,0,t[i].tagName),l+=t[i].endTagName.length,c+=t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,n+=t[i].endTagName.length,n+=t[i].tagName.length,i++)}else i++,o--;else i++,o--;return{text:s,charOffset:n,newBrIndex:l}}function A(e,t){var r,n,a,i=e,o=S(e),s=_(t),l=_(e),c=t,u=0;if(e===t)return e;if(l.length){for(a=0;a<l.length;a++){for(u=0,r=l[a].index;">"!==e[r];)u++,r++;e=k(e,l[a].index,u+1,""),l[a+1]&&(n=a+1,l[a+1].index-=n*(u+1))}if(s.length)for(a=0;a<s.length;a++){for(u=0,r=s[a].index;">"!==c[r];)u++,r++;c=k(c,s[a].index,u+1,"<br />"),s[a+1]&&(n=a+1,s[a+1].index-=n*(u+1),s[a+1].index+=6*n)}t=c,i=e,o=S(e),s=_(t)}return o.length?s.length?(i=function(e,t){var r,n,a,i=e,o=t,s="",l="",c=0;if(i===o)return i;if(""===i&&""!==o)return o;if(""===o&&""!==i)return i;for(n=0,a=0;n<i.length;){if(i[n]&&!o[a]){s+=i.substring(n,i.length);break}if(o[a]&&!i[n]){s+=o.substring(a,o.length);break}if(i[n]===o[a])if("<"===i[n]){for(l=i[n],c=n+1;c<i.length;){if(">"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[n],n++,a++):(r=S(l))&&r.length?(s+=l,n+=l.length):(s+=l,n+=l.length,a+=l.length)}else s+=i[n],n++,a++;else if("<"===i[n]){for(l=i[n],c=n+1;c<i.length;){if(">"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[n],n++,a++):(r=S(l))&&r.length?(s+=l,n+=l.length):(s+=l,n+=l.length,a+=l.length)}else if("<"===o[a]){for(l=o[a],c=a+1;c<o.length;){if(">"===o[c]){l+=o[c];break}l+=o[c],c++}c>=o.length?(s+=o[a],n++,a++):(r=S(l))&&r.length?(s+=l,a+=l.length):(s+=l,n+=l.length,a+=l.length)}else" "===i[n]?n++:" "===o[a]&&a++}return s}(e,t),i=function(e){var t,r,n,a=_(e),i=0,o={},s=0;if(!e)return"";if(!a.length)return e;for(r=a[0].index,t=0;t<a.length;t++)o.charOffset&&o.charOffset>0?(r=a[t].index+o.charOffset,a[t].index=r):r=a[t].index,n=S(e.substring(s,r)),i=o.charOffset?o.charOffset:i,(o=C(e,n,a[t],i)).newBrIndex&&(s=o.newBrIndex+6),e=o.text;return e}(i),i):function(e,t){var r,n=0,a=e,i=t.length-1,o=e.length;if(!t.length)return e;for(;n<=i;)if(t[n].endTagName)if(n===i)a=k(a,o,0,t[n].endTagName),n++,i--;else if(t[n].endTagName!==t[i].tagName){for(r=n;r<=i;r++)if(t[r+1]&&t[n].endTagName===t[r+1].tagName){n=r+2;break}r>i&&(a=k(a,o,0,t[n].endTagName),n++)}else n++,i--;else n++,i--;return a}(e,o):t}function N(e){return[u.xmlTagRegEx.test(e)||u.nbspRegex.test(e),u._hasOnlyBRTag(e)]}b.textToLines=function(e){return(e=e||{}).text?"string"!=typeof e.text&&(e.text=e.text.toString()):e.text="",e.lines=e.text.split(/\n|<br\s*?\/?>/gi),e},b.prototype._calCharDimWithCache=function(e,t,r){if(void 0===e&&(e=""),!this._init)return!1;var n,a,i,o,s,l,c,u,d,h=this.options.maxCacheLimit,f=this.style||{};return l=this._advancedCache=this._advancedCache||(this._advancedCache={}),c=this._advancedCacheKey||(this._advancedCacheKey=[]),u=e+f.fontSize+f.fontFamily+f.fontWeight+f.fontStyle,d=e+"init"+f.fontSize+f.fontFamily+f.fontWeight+f.fontStyle,!this.ctx&&g[e]&&(e=g[e]),t?(s=l[d])===undefined&&(a=this._getDimention(e.repeat?e.repeat(r):Array(r+1).join(e)).width,i=this._getDimention(e).width,s=l[d]=(a-r*i)/(r+1),c.push(d),c.length>h&&delete l[c.shift()]):s=0,(o=l[u])?{width:o.width,height:o.height}:((n=this._getDimention(e)).width+=s,l[u]={width:n.width,height:n.height},c.push(u),c.length>h&&delete l[c.shift()],n)},b.prototype._getDimention=function(e){return this.requireDiv||!this.ctx?u._getDimentionUsingDiv(e,this):u._getDimentionUsingCanvas(e,this)},b.prototype._getWidthFn=function(){var e=this,t=e._containerObj.svgText;return t?function(e){var r,n;return t.textContent=e,(n=(r=t.getBBox()).width-v)<1&&(n=r.width),n}:function(t){return e.requireDiv||!e.ctx?u._getDimentionUsingDiv(t,e).width:u._getDimentionUsingCanvas(t,e).width}},b.prototype._isSameStyle=function(){var e=this.oldStyle||{},t=this.style;return t.fontSize===e.fontSize&&t.fontFamily===e.fontFamily&&t.fontStyle===e.fontStyle&&t.fontWeight===e.fontWeight&&t.fontVariant===e.fontVariant},b.prototype._setStyleOfCanvas=function(){if(!this._isSameStyle()){var e,t,r=this,n=r.style,a=n.fontStyle,i=n.fontVariant,o=n.fontWeight,s=n.fontSize,l=n.fontFamily;e=a+" "+i+" "+o+" "+(s+=-1===s.indexOf("px")?"px":"")+" "+l,r.ctx.font=e,t=this._containerObj=this._containerManager.get(n),this._containerObj?(this._container=t.node,this._context=t.context,this._cache=t.charCache,this._lineHeight=t.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0,t.ellipsesWidth=r._calCharDimWithCache("...",!1).width,t.dotWidth=r._calCharDimWithCache(".",!1).width,t.lineHeight=this._lineHeight=t.lineHeight||u._getCleanHeight(n.lineHeight),this.oldStyle=n}},b.prototype._setStyleOfDiv=function(){var e,t=this.style;this._containerObj=e=this._containerManager.get(t),e.node||this._containerManager._makeDivNode(this._containerObj),this._containerObj?(this._container=e.node,this._context=e.context,this._cache=e.charCache,this._lineHeight=e.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0},b.prototype._updateStyle=function(){return this.requireDiv||!this.ctx?this._setStyleOfDiv():this._setStyleOfCanvas()},b.prototype.setStyle=function(e){return this.style=u.parseStyle(e),u.setLineHeight(this.style),this},b.prototype.useEllipsesOnOverflow=function(e){return this._init?(this._showNoEllipses=!e,this):this},b.prototype.getSmartText=function(e,t,r,n){if(!this._init)return!1;e===undefined||null===e?e="":"string"!=typeof e&&(e=e.toString());var a,i,o,l,c,h,p,g,v,b,y,w,x,_,S,k,C,E,L,T,M,F,D,I,O,P,R,j,B,z,V,U,H,q,G,W,$=0,X=-1,Y=-1,K=-1,J=0,Z=0,Q=[],ee="",te=0,re=this._showNoEllipses?"":"...",ne=this.ctx,ae=[],ie=-1,oe=-1,se=-1,le=function(e){for(var t=/\s/,r=(e=e.replace(/^\s\s*/,"")).length;t.test(e.charAt(r-=1)););return e.slice(0,r+1)},ce={text:e,maxWidth:t,maxHeight:r,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:e,isTruncated:!1},ue=N(e);if(R=ue[0],G=ue[1],this.requireDiv=R&&!G,this._updateStyle(),B=this._lineHeight,z=this._context,V=this._container,H=(U=this._containerObj).ellipsesWidth,q=U.dotWidth,h=e.replace(u.spanAdditionRegx,"$2"),w=this._getWidthFn(),B-r<=1&&B-r>=0&&(r*=1.2),ne||V){if(!m.isBrowserLess){if(l=e=e.replace(u.ltgtquotRegex,function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}}),j=e,l=e=l.replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,""),R?G?(e=e.replace(u.brRegex,"<br />"),W=u._getDimentionOfMultiLineText(e,this),ce.oriTextWidth=p=W.width,ce.oriTextHeight=g=W.height):(V.innerHTML=s["default"].createHTML(e),ce.oriTextWidth=p=V.offsetWidth,ce.oriTextHeight=g=V.offsetHeight):(l=e=e.replace(u.ltgtquotRegex,function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}}),l=e=l.replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,""),S=this.getSize(l,!0,{hasHTMLTag:R,hasOnlyBrTag:G,cleanText:!0}),ce.oriTextWidth=p=S.width,ce.oriTextHeight=g=S.height),g<=r&&p<=t)return ee=A(j,e),ce.text=ee,ce.width=ce.oriTextWidth=p,ce.height=ce.oriTextHeight=g,ce;if(B>r)return ce.text="",ce.width=ce.oriTextWidth=0,ce.height=ce.oriTextHeight=0,ce}if(e=le(e).replace(/(\s+)/g," "),c=this._showNoEllipses?t:t-H,!R||G){if(a=(Q=u._getTextArray(e)).length,i="",o=[],y=Q[0],this._cache[y]?L=this._cache[y].width:(L=w(y),this._cache[y]={width:L}),c>L&&!G)o=e.substr(0,u.getNearestBreakIndex(e,c,this)).split("");else{if(L>t)return ce.text="",ce.width=ce.oriTextWidth=ce.height=ce.oriTextHeight=0,ce;re&&((c=t-2*q)>L?re="..":(c=t-q)>L?re=".":(c=0,re=""))}if(te=o.length,J=w(o.join("")),Z=this._lineHeight,n){for(;te<a;te+=1)if(y=o[te]=Q[te],"<br />"!==o[te]){if(this._cache[y]?L=this._cache[y].width:(S&&(L=S.detailObj[y])||(L=w(y)),this._cache[y]={width:L}),(J+=L)>c&&(i||(i=o.slice(0,-1).join("")),J>t))return ce.text=le(i)+re,ce.tooltext=ce.oriText,ce.width=f($,J),ce.height=Z,ce.isTruncated=!0,ce}else Z+=this._lineHeight,K=te,$=f($,J),J=0,i=null;return ce.text=o.join(""),ce.width=f($,J),ce.height=Z,ce}for(;te<a;te+=1){if(" "!==(y=o[te]=Q[te])||z||(y=this.ctx?" ":"&nbsp;"),"<br />"===o[te]){if($=f($,J),(Z+=this._lineHeight)<=r){K=te,J=0,i=null;continue}if(Z>r)return i=o.slice(0,-1).join(""),ce.text=le(i)+re,ce.tooltext=h,ce.width=$,ce.height=Z-this._lineHeight,ce.isTruncated=!0,ce}if(this._cache[y]?L=this._cache[y].width:(S&&(L=S.detailObj[y])||(L=w(y)),this._cache[y]={width:L}),(J+=L)>c&&(i||(i=o.slice(0,-1).join("")),J>t)){if("<br />"===Q[te+1])continue;if(Y=u._findLastIndex(Q.slice(0,o.length)," "),X=u._findLastIndex(Q.slice(0,o.length),"-"),Y>K?(J=w(o.slice(K+1,Y).join("")),o.splice(Y,1,"<br />"),K=Y,v=Y+1):X>K?(X===o.length-1?(J=w(o.slice(K+1,Y).join("")),o.splice(X,1,"<br />-")):(J=w(o.slice(K+1,Y).join("")),o.splice(X,1,"-<br />")),K=X,v=X+1):(o.splice(o.length-1,1,"<br />"+Q[te]),se=o.length-2,J=w(o.slice(K+1,se+1).join("")),K=se,v=te),(Z+=this._lineHeight)>r)return ce.text=le(i)+re,ce.tooltext=ce.oriText,ce.width=t,ce.height=Z-this._lineHeight,ce.isTruncated=!0,ce;$=f($,J),i=null,G?J=u._getDimentionOfMultiLineText(o.slice(K+1).join(""),this).width:(b=u.getNearestBreakIndex(e.substr(v),c,this),J=w(e.substr(v,b||1)),o.length<v+b&&(te=(o=o.concat(e.substr(o.length,v+b-o.length).split(""))).length-1))}}return $=f($,J),ee=A(j,o.join("")),ce.text=ee,ce.width=$,ce.height=Z,ce}for(h=e.replace(u.spanAdditionRegx,"$2"),e=(e=e.replace(u.spanAdditionRegx,u.spanAdditionReplacer)).replace(/(<br\s*\/*\>)/g,'<span class="'+[u.classNameWithTag," ",u.classNameWithTagBR].join("")+'">$1</span>'),V.innerHTML=s["default"].createHTML(e),C=0,E=(k=V[m.childRetriverFn](m.childRetriverString)).length;C<E;C+=1)T=k[C],(m.noClassTesting||u.classNameReg.test(T.className))&&""!==(M=T.innerHTML)&&(" "===M?oe=ae.length:"-"===M&&(ie=ae.length),ae.push({spaceIdx:oe,dashIdx:ie,elem:T}),Q.push(M));if(te=0,(L=(a=ae.length)&&ae[0].elem.offsetWidth)>t||!a)return ce.text="",ce.width=ce.oriTextWidth=ce.height=ce.oriTextHeight=0,ce;if(L>c&&!this._showNoEllipses&&((c=t-2*q)>L?re="..":(c=t-q)>L?re=".":(c=0,re="")),x=ae[0].elem.offsetLeft,_=ae[0].elem.offsetTop,n)for(;te<a;te+=1)(F=(T=ae[te].elem).offsetLeft-x+T.offsetWidth)>c&&(P||(P=te),V.offsetWidth>t&&(O=te,te=a));else for(;te<a;te+=1)D=(T=ae[te].elem).offsetHeight+(T.offsetTop-_),I=null,(F=T.offsetLeft-x+T.offsetWidth)>c?(P||(P=te),F>t&&(Y=ae[te].spaceIdx,X=ae[te].dashIdx,Y>K?(ae[Y].elem.innerHTML=s["default"].createHTML("<br/>"),K=Y):X>K?(ae[X].elem.innerHTML=X===te?s["default"].createHTML("<br/>-"):s["default"].createHTML("-<br/>"),K=X):T.parentNode.insertBefore(I=d.createElement("br"),T),T.offsetHeight+T.offsetTop>r?(I?I.parentNode.removeChild(I):K===X?ae[X].elem.innerHTML=s["default"].createHTML("-"):ae[Y].elem.innerHTML=s["default"].createHTML(" "),O=te,te=a):P=null)):D>r&&(O=te,te=a);if(O<a){for(ce.isTruncated=!0,P=P||O,te=a-1;te>=P;te-=1)(T=ae[te].elem).parentNode.removeChild(T);for(;te>=0;te-=1)T=ae[te].elem,u.classNameBrReg.test(T.className)?T.parentNode.removeChild(T):te=0}return ce.text=V.innerHTML.replace(u.spanRemovalRegx,"$1").replace(/\&amp\;/g,"&"),ce.isTruncated&&(ce.text+=re,ce.tooltext=h),ce.height=V.offsetHeight,ce.width=V.offsetWidth,ce}return ce.error=new Error("Body Tag Missing!"),ce},b.prototype.getSize=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=!0),void 0===r&&(r={}),!this._init)return!1;e===undefined||null===e?e="":"string"!=typeof e&&(e=e.toString());var n,a,i,o,l,d,h=0,g=0,m={},v=r.hasHTMLTag,b=r.hasOnlyBrTag,y=N(e),w=y[0],x=y[1];if(void 0===v&&(v=w),void 0===b&&(b=x),this.requireDiv=v&&!b,r.cleanText||(e=(e=e.replace(u.ltgtquotRegex,function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&quot;":case"&#034;":return'"';case"&#039;":return"'"}})).replace(/<u>/g,"").replace(/<\/u>/g,"").replace(/<b>/g,"").replace(/<\/b>/g,"").replace(/<strong>/g,"").replace(/<\/strong>/g,"").replace(/<em>/g,"").replace(/<\/em>/g,"").replace(/<i>/g,"").replace(/<\/i>/g,"").replace(/<strike>/g,"").replace(/<\/strike>/g,"").replace(/<s>/g,"").replace(/<\/s>/g,"").replace(/<del>/g,"").replace(/<\/del>/g,"").replace(/<sub>/g,"").replace(/<\/sub>/g,"").replace(/<sup>/g,"").replace(/<\/sup>/g,"").replace(/<a[\s]+([^>]+)>/g,"").replace(/<\/a>/g,"").replace(/<abbr[\s]+([^>]+)>/g,"").replace(/<\/abbr>/g,"").replace(/<span[\s]+([^>]+)>/g,"").replace(/<\/span>/g,"")),this._updateStyle(),d=this._container,!t)return this._calCharDimWithCache(e);for(o=0,l=(n=e.split("")).length;o<l;o++)a=n[o],i=this._calCharDimWithCache(a,!1,n.length),g=f(g,i.height),h+=i.width,m[a]=i.width;return b?c(c({},u._getDimentionOfMultiLineText(e,this)),{},{detailObj:m}):v?(d.innerHTML=s["default"].createHTML(e),{width:d.offsetWidth,height:d.offsetHeight,detailObj:m}):{width:p(h),height:g,detailObj:m}},b.prototype.getOriSize=function(e,t,r){return void 0===e&&(e=""),void 0===t&&(t=!0),void 0===r&&(r={}),this.getSize(e,t,r)},b.prototype.dispose=function(){return this._init?(this._containerManager&&this._containerManager.dispose&&this._containerManager.dispose(),delete this._container,delete this._context,delete this._cache,delete this._containerManager,delete this._containerObj,delete this.id,delete this.style,delete this.parentContainer,delete this._showNoEllipses,this):this};t["default"]=b},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(305)),i={init:function(e){var t=e.document,r=e.navigator.userAgent,n=Math.ceil,o=Math.floor,s="fusioncharts-smartlabel-",l=s+"container",c=s+"tag";return i={win:e,containerClass:l,classNameWithTag:c,classNameWithTagBR:s+"br",maxDefaultCacheLimit:1e3,classNameReg:/\bfusioncharts-smartlabel-tag\b/,classNameBrReg:/\bfusioncharts-smartlabel-br\b/,spanAdditionRegx:/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/gi,spanAdditionReplacer:'$1<span class="'+c+'">$2</span>',spanRemovalRegx:new RegExp("\\<span[^\\>]+?"+c+"[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),xmlTagRegEx:new RegExp("<[^>][^<]*[^>]+>","i"),brRegex:new RegExp("({br[ ]*})|(<br[ ]*>)|(<br[ ]*/>)|(<BR[ ]*/>)|(<br\\>)","g"),ltgtquotRegex:/&lt;|&gt;|&quot;|&#034;|&#039;/g,nbspRegex:/&nbsp;|&#160;|&#xA0;/g,htmlSpecialEntityRegex:/&amp;|&quot;|&lt;|&gt;/g,brReplaceRegex:/<br\/>/gi,testStrAvg:"WgI",parentContainerStyle:{position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},supportedStyle:{font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",fontStyle:"font-style","font-style":"font-style"},getDocumentSupport:function(){var n,a,i;return t.getElementsByClassName?(n="getElementsByClassName",a=c,i=!0):(n="getElementsByTagName",a="span",i=!1),{isIE:/msie/i.test(r)&&!e.opera,hasSVG:Boolean(e.SVGAngle||t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),isHeadLess:new RegExp(" HtmlUnit").test(r),isWebKit:new RegExp(" AppleWebKit/").test(r),childRetriverFn:n,childRetriverString:a,noClassTesting:i}},createContainer:function(e){var r,n;if(e&&(e.offsetWidth||e.offsetHeight)){if(e.appendChild)return e.appendChild(n=t.createElement("DIV")),n.className=l,n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),n}else if((r=t.getElementsByTagName("body")[0])&&r.appendChild)return(n=t.createElement("DIV")).className=l,n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),r.appendChild(n),n},getNearestBreakIndex:function(e,t,r){if(!e||!e.length)return 0;var a,i=r._getWidthFn(),s=0,l=0,c=i(e),u=c/e.length;if(a=t,s=n(t/u),c<t)return e.length-1;for(s>e.length&&(a=t-c,s=e.length);a>0;){if(a=t-i(e.substr(0,s)),!(l=o(a/u)))return s;s+=l}for(;a<0;){if(a=t-i(e.substr(0,s)),!(l=o(a/u)))return s;s+=l}return s},parseStyle:function(e){void 0===e&&(e={});var t={};return t.fontSize=(e.fontSize||e["font-size"]||"12px")+"",t.fontVariant=e.fontVariant||e["font-variant"]||"normal",t.fontWeight=e.fontWeight||e["font-weight"]||"normal",t.fontStyle=e.fontStyle||e["font-style"]||"normal",t.fontFamily=e.fontFamily||e["font-family"]||"Verdana,sans",t.fontSize+=-1===t.fontSize.indexOf("px")?"px":"",t},setLineHeight:function(e){var t=e.fontSize;return e.lineHeight=e.lineHeight||e["line-height"]||1.2*parseInt(t,10)+"px",e},_getCleanHeight:function(e){return e=e.replace(/px/g,""),Number(e)},_getDimentionUsingDiv:function(e,t){void 0===e&&(e="");var r=t._container;return e instanceof Array&&(e=e.join("")),r.innerHTML=a["default"].createHTML(e),{width:r.offsetWidth,height:r.offsetHeight}},_getDimentionUsingCanvas:function(e,t){void 0===e&&(e="");var r=t.ctx,n=t.style,a=i._getCleanHeight(n.lineHeight);return e=e instanceof Array?(e=e.join("")).replace(/<br \/>/g,""):e.replace(/<br \/>/g,""),{width:r.measureText(e).width,height:a}},_hasOnlyBRTag:function(e){return void 0===e&&(e=""),!i.xmlTagRegEx.test(e)&&i.brRegex.test(e)},_getDimentionOfMultiLineText:function(e,t){void 0===e&&(e="");var r,n,a,o=e.replace(i.brRegex,"<br />"),s=i._getTextArray(o),l=0,c=0,u=t._getWidthFn(),d=i._getCleanHeight(t.style.lineHeight),h=d,f={};for(r=0,n=s.length;r<n;r++)"<br />"===s[r]?(c=Math.max(c,l),l=0,h+=d):(l+=a=u(s[r]),f[s[r]]=a);return{height:h,width:c=Math.max(c,l),detailObj:f}},_getTextArray:function(e){void 0===e&&(e="");var t,r,n,a,i,o,s=[];for(n=(i=e.split("<br />")).length,t=0;t<n;t++){for(a=(o=i[t].split("")).length,r=0;r<a;r++)s.push(o[r]);t!==n-1&&s.push("<br />")}return s},_findLastIndex:function(e,t){var r;for(void 0===e&&(e=[]),r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}}}};t["default"]=i},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(307)),i=n(r(305)),o=a["default"].init(window),s=o.win.document,l=o.getDocumentSupport(),c=l.isWebKit?0:4.5;function u(e,t,r){var n;r=(r=r>5?r:5)<20?r:20,this.maxContainers=r,this.first=null,this.last=null,this.containers={},this.length=0,this.rootNode=e,t&&((n=s.createElementNS("http://www.w3.org/2000/svg","svg")).setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink"),n.setAttributeNS("http://www.w3.org/2000/svg","height","0"),n.setAttributeNS("http://www.w3.org/2000/svg","width","0"),this.svgRoot=n,this.rootNode.appendChild(n))}u.prototype.get=function(e){var t,r,n,a=this.containers,i=this.length,s=this.maxContainers,l="";for(r in o.supportedStyle)e[r]!==undefined&&(l+=o.supportedStyle[r]+":"+e[r]+";");if(!l)return!1;if(n=a[l])this.first!==n&&(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.next=this.first,n.next.prev=n,this.last===n&&(this.last=n.prev),n.prev=null,this.first=n);else{if(i>=s)for(t=i-s+1;t--;)this.removeContainer(this.last);n=this.addContainer(l)}return n},u.prototype._makeDivNode=function(e){var t,r=e.keyStr;e.node||(e.node=s.createElement("div"),e.node.className="fusioncharts-div",this.rootNode.appendChild(e.node)),t=e.node,l.isIE&&!l.hasSVG?t.style.setAttribute("cssText",r):t.style=r,t.setAttribute("aria-hidden","true"),t.setAttribute("role","presentation"),t.style.display="inline-block",t.innerHTML=i["default"].createHTML(o.testStrAvg),e.lineHeight=t.offsetHeight,e.avgCharWidth=t.offsetWidth/3,l.isBrowserLess?(e.svgText||(e.svgText=s.createElementNS("http://www.w3.org/2000/svg","text"),this.svgRoot.appendChild(t)),(t=e.svgText).style=r,t.textContent=o.testStrAvg,e.lineHeight=t.getBBox().height,e.avgCharWidth=(t.getBBox().width-c)/3,t.textContent="...",e.ellipsesWidth=t.getBBox().width-c,t.textContent=".",e.dotWidth=t.getBBox().width-c):(t.innerHTML=i["default"].createHTML("..."),e.ellipsesWidth=t.offsetWidth,t.innerHTML=i["default"].createHTML("."),e.dotWidth=t.offsetWidth,t.innerHTML=i["default"].createHTML(""))},u.prototype.addContainer=function(e){var t;return this.containers[e]=t={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:e,charCache:{}},t.next=this.first,t.next&&(t.next.prev=t),this.first=t,this.last||(this.last=t),this.length+=1,t},u.prototype.removeContainer=function(e){var t=e.keyStr;t&&this.length&&e&&(this.length-=1,e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev),e.node&&e.node.parentNode.removeChild(e.node),delete this.containers[t])},u.prototype.dispose=function(){var e,t=this.containers;for(e in this.maxContainers=null,t)this.removeContainer(t[e]);this.rootNode.parentNode.removeChild(this.rootNode),this.rootNode=null,this.first=null,this.last=null};t["default"]=u},(e,t)=>{"use strict";t.__esModule=!0,t.getFile=t["default"]=t.addFile=void 0;var r={},n=t.addFile=function(e){r[e]=!0},a=t.getFile=function(e){return r[e]};t["default"]={extension:function(e){e.addFile=n,e.getFile=a},name:"fileStore",type:"plugin",requiresFusionCharts:!0}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton"],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type"],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize","10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage","Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],browserNotSupportedMessage:["browserNotSupportedMessage","This browser is not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."],messageURL:["messageURL",""],containerElementId:["renderAt"],renderer:["renderer"],containerElementType:["containerElementType"],showChartLoadingMessage:["showChartLoadingMessage",!0],visibilityTrackingInterval:300,events:["events",{}]},jsVars:{},attributes:{lang:["lang","EN"],id:["id"]},link:["link"],width:["width","400"],height:["height","300"]}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n,a,i,o,s,l,c=r(281),u=Math.abs,d=Math.pow,h=Math.round,f="1",p="",g="0",m=".",v=",",b="2",y="auto",w={formatnumber:f,formatnumberscale:f,forcenumberscale:g,defaultnumberscale:p,numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:p,numbersuffix:p,decimals:p,forcedecimals:g,yaxisvaluedecimals:b,decimalseparator:m,thousandseparator:v,thousandseparatorposition:[3],indecimalseparator:p,inthousandseparator:p,sformatnumber:f,sformatnumberscale:g,sforcenumberscale:g,sdefaultnumberscale:p,snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:p,snumbersuffix:p,sdecimals:b,sforcedecimals:g,syaxisvaluedecimals:b,xFormatNumber:g,xFormatNumberScale:g,xforcenumberscale:g,xDefaultNumberScale:p,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:p,xNumberSuffix:p},x={mscombidy2d:{formatnumberscale:f}},_=function(){function e(e,t){var r=this,n=e.getName&&e.getName(),a=r.csConf=(0,c.extend2)({},w),i=x[n];r.cleaneValueCacheStore={},r.percentStrCacheStore={},i&&(a=(0,c.extend2)(a,i)),this.linkedItems={chart:e},r.configure(t)}var t=e.prototype;return t.setDefaults=function(){var e=this.linkedItems.chart,t=e.getName&&e.getName(),r=this.csConf=(0,c.extend2)({},w),n=x[t];n&&(0,c.extend2)(r,n)},t.configure=function(e){var t,r,n,a,i,o,s,l,u,d,h,f,p,g,m,x,_,S,k,C,A,N,E,L,T,M,F,D,I=this,O=I.linkedItems.chart,P=e||O.getFromEnv("chart-attrib"),R=O.getName&&O.getName(),j=O.config,B=I.csConf;if(j||(j=O),I.csConf=B,I.useScaleRecursively=j.useScaleRecursively,(0,c.getValidValue)(P.numberscaleunit)&&(t=P.numberscaleunit.split(v)),(r=(0,c.getValidValue)(P.snumberscaleunit,P.numberscaleunit))&&(r=r.split(v)),(n=(0,c.getValidValue)(P.xnumberscaleunit,P.numberscaleunit))&&(n=n.split(v)),(a=(0,c.getValidValue)(P.ticknumberscaleunit,P.numberscaleunit))&&(a=a.split(v)),(i=(0,c.getValidValue)(P.ynumberscaleunit,P.numberscaleunit))&&(i=i.split(v)),(0,c.getValidValue)(P.numberscalevalue)&&(o=P.numberscalevalue.split(v)),(h=(0,c.getValidValue)(P.snumberscalevalue,P.numberscalevalue))&&(h=h.split(v)),(s=(0,c.getValidValue)(P.xnumberscalevalue,P.numberscalevalue))&&(s=s.split(v)),(l=(0,c.getValidValue)(P.ticknumberscalevalue,P.numberscalevalue))&&(l=l.split(v)),(u=(0,c.getValidValue)(P.ynumberscalevalue,P.numberscalevalue))&&(u=u.split(v)),(0,c.getValidValue)(P.thousandseparatorposition))for(_=(d=P.thousandseparatorposition.split(v)).length,k=w.thousandseparatorposition[0];_--;)(S=parseInt(d[_],10))<=0&&(S=k),k=d[_]=S;C=(0,c.pluckNumber)(P.scalerecursively,0),A=(0,c.pluckNumber)(P.sscalerecursively,C),N=(0,c.pluckNumber)(P.xscalerecursively,C),E=(0,c.pluckNumber)(P.maxscalerecursion,-1),L=(0,c.pluckNumber)(P.smaxscalerecursion,E),T=(0,c.pluckNumber)(P.xmaxscalerecursion,E),M=(0,c.getValidValue)(P.scaleseparator," "),F=(0,c.getValidValue)(P.sscaleseparator,M),D=(0,c.getValidValue)(P.xscaleseparator,M),E||(E=-1),I.baseConf=x={cacheStore:[],formatnumber:(0,c.pluck)(P.formatnumber,B.formatnumber),formatnumberscale:(0,c.pluck)(P.formatnumberscale,j.formatnumberscale,B.formatnumberscale),forcenumberscale:(0,c.pluck)(P.forcenumberscale,B.forcenumberscale),defaultnumberscale:(0,c.getFirstValue)(P.defaultnumberscale,B.defaultnumberscale),numberscaleunit:(0,c.pluck)(t,B.numberscaleunit).concat(),numberscalevalue:(0,c.pluck)(o,B.numberscalevalue).concat(),numberprefix:(0,c.parseUnsafeString)((0,c.getFirstValue)(P.numberprefix,B.numberprefix)),numbersuffix:(0,c.parseUnsafeString)((0,c.getFirstValue)(P.numbersuffix,B.numbersuffix)),decimalprecision:parseInt(P.decimals===y?B.decimalprecision:(0,c.pluck)(P.decimals,P.decimalprecision,j.decimals,B.decimals,j.decimalprecision,B.decimalprecision),10),forcedecimals:(0,c.pluck)(P.forcedecimals,B.forcedecimals),decimalseparator:(0,c.pluck)(P.decimalseparator,B.decimalseparator),thousandseparator:(0,c.pluck)(P.thousandseparator,B.thousandseparator),thousandseparatorposition:(0,c.pluck)(d,B.thousandseparatorposition),indecimalseparator:(0,c.getFirstValue)(P.indecimalseparator,B.indecimalseparator),inthousandseparator:(0,c.getFirstValue)(P.inthousandseparator,B.inthousandseparator),scalerecursively:C,maxscalerecursion:E,scaleseparator:M,hasrtltext:P.hasrtltext},(0,c.getValidValue)(x.inthousandseparator)&&(I.baseConf._REGinthousandseparator=new RegExp((0,c.regescape)(x.inthousandseparator),"g")),(0,c.getValidValue)(x.indecimalseparator)&&(I.baseConf._REGindecimalseparator=new RegExp((0,c.regescape)(x.indecimalseparator))),I.Y=[],f={cacheStore:[],formatnumber:x.formatnumber,formatnumberscale:x.formatnumberscale,forcenumberscale:x.forcenumberscale,defaultnumberscale:x.defaultnumberscale,numberscaleunit:x.numberscaleunit.concat(),numberscalevalue:x.numberscalevalue.concat(),numberprefix:x.numberprefix,numbersuffix:x.numbersuffix,decimalprecision:x.decimalprecision,forcedecimals:x.forcedecimals,decimalseparator:x.decimalseparator,thousandseparator:x.thousandseparator,thousandseparatorposition:x.thousandseparatorposition,indecimalseparator:x.indecimalseparator,inthousandseparator:x.inthousandseparator,scalerecursively:C,maxscalerecursion:E,scaleseparator:M,hasrtltext:x.hasrtltext},j.useScaleRecursively&&(f.numberscalevalue&&f.numberscalevalue.length)===(f.numberscaleunit&&f.numberscaleunit.length)||(f.scalerecursively=C=0),g={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,forcenumberscale:f.forcenumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:parseInt((0,c.pluck)(P.yaxisvaluedecimals,f.decimalprecision,2),10),forcedecimals:(0,c.pluck)(P.forceyaxisvaluedecimals,f.forcedecimals),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:C,maxscalerecursion:E,scaleseparator:M,hasrtltext:f.hasrtltext},m={cacheStore:[],formatnumber:(0,c.pluck)(P.sformatnumber,w.sformatnumber),formatnumberscale:(0,c.pluck)(P.sformatnumberscale,w.sformatnumberscale),forcenumberscale:(0,c.pluck)(P.sforcenumberscale,w.sforcenumberscale),defaultnumberscale:(0,c.getFirstValue)(P.sdefaultnumberscale,f.defaultnumberscale),numberscaleunit:(0,c.pluck)(r,w.snumberscaleunit).concat(),numberscalevalue:(0,c.pluck)(h,w.snumberscalevalue).concat(),numberprefix:(0,c.parseUnsafeString)((0,c.getFirstValue)(P.snumberprefix,w.snumberprefix)),numbersuffix:(0,c.parseUnsafeString)((0,c.getFirstValue)(P.snumbersuffix,w.snumbersuffix)),decimalprecision:parseInt((0,c.pluck)(P.syaxisvaluedecimals,P.sdecimals,P.decimals,w.sdecimals),10),forcedecimals:(0,c.pluck)(P.forcesyaxisvaluedecimals,P.sforcedecimals,P.forcedecimals,w.sforcedecimals),decimalseparator:(0,c.pluck)(P.decimalseparator,w.decimalseparator),thousandseparator:(0,c.pluck)(P.thousandseparator,w.thousandseparator),thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:(0,c.parseUnsafeString)((0,c.pluck)(P.indecimalseparator,w.indecimalseparator)),inthousandseparator:(0,c.parseUnsafeString)((0,c.pluck)(P.inthousandseparator,w.inthousandseparator)),scalerecursively:A,maxscalerecursion:L,scaleseparator:F,hasrtltext:f.hasrtltext},(p=(0,c.extend2)({},m)).decimalprecision=parseInt((0,c.pluck)(P.sdecimals,P.decimals,P.syaxisvaluedecimals,w.sdecimals),10),p.forcedecimals=(0,c.pluck)(P.sforcedecimals,P.forcedecimals,P.forcesyaxisvaluedecimals,w.sforcedecimals),p.cacheStore=[],j.useScaleRecursively&&(m.numberscalevalue&&m.numberscalevalue.length)===(m.numberscaleunit&&m.numberscaleunit.length)||(m.scalerecursively=A=0),/^(bubble|scatter|selectscatter|zoomscatter)$/gi.test(R)&&(g.formatnumber=(0,c.pluck)(P.yformatnumber,g.formatnumber),g.formatnumberscale=(0,c.pluck)(P.yformatnumberscale,g.formatnumberscale),g.forcenumberscale=(0,c.pluck)(P.yforcenumberscale,g.forcenumberscale),g.defaultnumberscale=(0,c.getFirstValue)(P.ydefaultnumberscale,g.defaultnumberscale),g.numberscaleunit=(0,c.pluck)(i,g.numberscaleunit),g.numberscalevalue=(0,c.pluck)(u,g.numberscalevalue),g.numberprefix=(0,c.parseUnsafeString)((0,c.pluck)(P.ynumberprefix,g.numberprefix)),g.numbersuffix=(0,c.parseUnsafeString)((0,c.pluck)(P.ynumbersuffix,g.numbersuffix)),f.formatnumber=(0,c.pluck)(P.yformatnumber,f.formatnumber),f.formatnumberscale=(0,c.pluck)(P.yformatnumberscale,f.formatnumberscale),f.forcenumberscale=(0,c.pluck)(P.yforcenumberscale,f.forcenumberscale),f.defaultnumberscale=(0,c.getFirstValue)(P.ydefaultnumberscale,f.defaultnumberscale),f.numberscaleunit=(0,c.pluck)(P.ynumberscaleunit,f.numberscaleunit.concat()),f.numberscalevalue=(0,c.pluck)(P.ynumberscalevalue,f.numberscalevalue.concat()),f.numberprefix=(0,c.parseUnsafeString)((0,c.pluck)(P.ynumberprefix,f.numberprefix)),f.numbersuffix=(0,c.parseUnsafeString)((0,c.pluck)(P.ynumbersuffix,f.numbersuffix))),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(R)&&(f.decimalprecision=(0,c.pluck)(P.decimals,b)),C&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale)),A&&(m.numberscalevalue.push(1),m.numberscaleunit.unshift(m.defaultnumberscale),p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale)),I.Y[0]={yAxisLabelConf:g,dataLabelConf:f},I.Y[1]={yAxisLabelConf:m,dataLabelConf:p},I.paramLabels=f,I.param1=g,I.param2=m,I.paramLabels2=p,I.paramX={cacheStore:[],formatnumber:(0,c.pluck)(P.xformatnumber,x.formatnumber),formatnumberscale:(0,c.pluck)(P.xformatnumberscale,x.formatnumberscale),forcenumberscale:(0,c.pluck)(P.xforcenumberscale,x.forcenumberscale),defaultnumberscale:(0,c.getFirstValue)(P.xdefaultnumberscale,x.defaultnumberscale),numberscaleunit:(0,c.pluck)(n,x.numberscaleunit.concat()),numberscalevalue:(0,c.pluck)(s,x.numberscalevalue.concat()),numberprefix:(0,c.parseUnsafeString)((0,c.pluck)(P.xnumberprefix,x.numberprefix)),numbersuffix:(0,c.parseUnsafeString)((0,c.pluck)(P.xnumbersuffix,x.numbersuffix)),decimalprecision:parseInt((0,c.pluck)(P.xaxisvaluedecimals,P.xaxisvaluesdecimals,x.decimalprecision,2),10),forcedecimals:(0,c.pluck)(P.forcexaxisvaluedecimals,0),decimalseparator:x.decimalseparator,thousandseparator:x.thousandseparator,thousandseparatorposition:x.thousandseparatorposition.concat(),indecimalseparator:x.indecimalseparator,inthousandseparator:x.inthousandseparator,scalerecursively:N,maxscalerecursion:T,scaleseparator:D},I.paramLegend=(0,c.extend2)((0,c.extend2)({},x),{cacheStore:[],decimalprecision:parseInt((0,c.pluckNumber)(P.legendvaluedecimals,x.decimalprecision,2),10),forcedecimals:(0,c.pluckNumber)(P.legendvalueforcedecimals,x.forcedecimals,0),formatnumberscale:(0,c.pluck)(P.legendvalueformatnumberscale,x.formatnumberscale),forcenumberscale:(0,c.pluck)(P.legendvalueforcenumberscale,x.forcenumberscale),formatnumber:(0,c.pluck)(P.legendvalueformatnumber,x.formatnumber)}),C&&(I.paramLegend.numberscalevalue.push(1),I.paramLegend.numberscaleunit.unshift(I.paramLegend.defaultnumberscale)),j.useScaleRecursively&&(I.paramX.numberscalevalue&&I.paramX.numberscalevalue.length)===(I.paramX.numberscaleunit&&I.paramX.numberscaleunit.length)||(I.paramX.scalerecursively=N=0),N&&(I.paramX.numberscalevalue.push(1),I.paramX.numberscaleunit.unshift(I.paramX.defaultnumberscale)),I.paramScale={cacheStore:[],formatnumber:(0,c.pluck)(P.tickformatnumber,x.formatnumber),formatnumberscale:(0,c.pluck)(P.tickformatnumberscale,x.formatnumberscale),forcenumberscale:(0,c.pluck)(P.tickforcenumberscale,x.forcenumberscale),defaultnumberscale:(0,c.getFirstValue)(P.tickdefaultnumberscale,x.defaultnumberscale),numberscaleunit:(0,c.pluck)(a,x.numberscaleunit.concat()),numberscalevalue:(0,c.pluck)(l,x.numberscalevalue.concat()),numberprefix:(0,c.parseUnsafeString)((0,c.pluck)(P.ticknumberprefix,x.numberprefix)),numbersuffix:(0,c.parseUnsafeString)((0,c.pluck)(P.ticknumbersuffix,x.numbersuffix)),decimalprecision:parseInt((0,c.pluck)(P.tickvaluedecimals,x.decimalprecision,b),10),forcedecimals:(0,c.pluck)(P.forcetickvaluedecimals,x.forcedecimals,0),decimalseparator:x.decimalseparator,thousandseparator:x.thousandseparator,thousandseparatorposition:x.thousandseparatorposition.concat(),indecimalseparator:x.indecimalseparator,inthousandseparator:x.inthousandseparator,scalerecursively:C,maxscalerecursion:E,scaleseparator:M},C&&(I.paramScale.numberscalevalue.push(1),I.paramScale.numberscaleunit.unshift(I.paramScale.defaultnumberscale)),I.timeConf={inputDateFormat:(0,c.pluck)(P.inputdateformat,P.dateformat,"mm/dd/yyyy"),outputDateFormat:(0,c.pluck)(P.outputdateformat,P.inputdateformat,P.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]},I.cleaneValueCacheStore={},I.percentStrCacheStore={}},t.dispose=function(){var e=this;e.Y&&delete e.Y,e.cleaneValueCacheStore&&delete e.cleaneValueCacheStore,e.percentStrCacheStore&&delete e.percentStrCacheStore,e.paramLabels&&delete e.paramLabels,e.param1&&delete e.param1,e.param2&&delete e.param2,e.paramLabels2&&delete e.paramLabels2,e.csConf&&delete e.csConf,e.chart&&delete e.chart,e.baseConf&&delete e.baseConf,e.timeConf&&delete e.timeConf,e.paramX&&delete e.paramX,e.paramScale&&delete e.paramScale},t.parseMLAxisConf=function(e,t){var r,n,a,i,o,s,l,d,h=this.baseConf,f=this.csConf,p=(0,c.pluckNumber)(e.scalerecursively,h.scalerecursively),g=(0,c.pluckNumber)(e.maxscalerecursion,h.maxscalerecursion),m=(0,c.getValidValue)(e.scaleseparator,h.scaleseparator),b=(0,c.pluckNumber)(t,this.Y.length);if((0,c.getValidValue)(e.numberscaleunit)&&(n=e.numberscaleunit.split(v)),(0,c.getValidValue)(e.numberscalevalue)&&(a=e.numberscalevalue.split(v)),g||(g=-1),(0,c.getValidValue)(e.thousandseparatorposition))for(s=(o=e.thousandseparatorposition.split(v)).length,d=w.thousandseparatorposition[0];s--;)(l=(0,c.pluckNumber)(u(o[s])))?d=l:l=d,o[s]=l;r={cacheStore:[],formatnumber:(0,c.pluck)(e.formatnumber,h.formatnumber),formatnumberscale:(0,c.pluck)(e.formatnumberscale,h.formatnumberscale),forcenumberscale:(0,c.pluck)(e.forcenumberscale,h.forcenumberscale),defaultnumberscale:(0,c.getFirstValue)(e.defaultnumberscale,h.defaultnumberscale),numberscaleunit:(0,c.pluck)(n,h.numberscaleunit).concat(),numberscalevalue:(0,c.pluck)(a,h.numberscalevalue).concat(),numberprefix:(0,c.parseUnsafeString)((0,c.getFirstValue)(e.numberprefix,h.numberprefix)),numbersuffix:(0,c.parseUnsafeString)((0,c.getFirstValue)(e.numbersuffix,h.numbersuffix)),forcedecimals:(0,c.pluck)(e.forcedecimals,h.forcedecimals),decimalprecision:parseInt(e.decimals===y?f.decimalprecision:(0,c.pluck)(e.decimals,h.decimalprecision),10),decimalseparator:(0,c.pluck)(e.decimalseparator,h.decimalseparator),thousandseparator:(0,c.pluck)(e.thousandseparator,h.thousandseparator),thousandseparatorposition:(0,c.pluck)(o,h.thousandseparatorposition),indecimalseparator:(0,c.parseUnsafeString)((0,c.getFirstValue)(e.indecimalseparator,h.indecimalseparator)),inthousandseparator:(0,c.parseUnsafeString)((0,c.getFirstValue)(e.inthousandseparator,h.inthousandseparator)),scalerecursively:p,maxscalerecursion:g,scaleseparator:m},this.useScaleRecursively&&(r.numberscalevalue&&r.numberscalevalue.length)===(r.numberscaleunit&&r.numberscaleunit.length)||(r.scalerecursively=p=0),i={cacheStore:[],formatnumber:r.formatnumber,formatnumberscale:r.formatnumberscale,forcenumberscale:r.forcenumberscale,defaultnumberscale:r.defaultnumberscale,numberscaleunit:r.numberscaleunit.concat(),numberscalevalue:r.numberscalevalue.concat(),numberprefix:r.numberprefix,numbersuffix:r.numbersuffix,decimalprecision:parseInt((0,c.pluck)(e.yaxisvaluedecimals,r.decimalprecision,2),10),forcedecimals:(0,c.pluck)(e.forceyaxisvaluedecimals,r.forcedecimals),decimalseparator:r.decimalseparator,thousandseparator:r.thousandseparator,thousandseparatorposition:r.thousandseparatorposition.concat(),indecimalseparator:r.indecimalseparator,inthousandseparator:r.inthousandseparator,scalerecursively:p,maxscalerecursion:g,scaleseparator:m},p&&(r.numberscalevalue.push(1),r.numberscaleunit.unshift(r.defaultnumberscale),i.numberscalevalue.push(1),i.numberscaleunit.unshift(i.defaultnumberscale)),this.Y[b]={dataLabelConf:r,yAxisLabelConf:i}},t.percentValue=function(e){var t,r=this.percentStrCacheStore[e];return r===n&&(t=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,r=this.percentStrCacheStore[e]=l(s(e,t,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%"),r},t.yAxisPercentValue=function(e,t){window.th=this;var r,a,i=this.Y[t]||(t?this.Y[1]:this.Y[0]);return(r=(i=i&&i.yAxisLabelConf||this.baseConf).cacheStore[e])===n&&(a=isNaN(i.decimalprecision)?"2":i.decimalprecision,r=i.cacheStore[e]=l(s(e,a,i.forcedecimals),i.decimalseparator,i.thousandseparator,i.thousandseparatorposition)+"%"),r},t.getCleanValue=function(e,t){var r,a=this.cleaneValueCacheStore[e];return(a===n||t)&&(r=o(e,this.baseConf),this.cleaneValueCacheStore[e]=a=isNaN(r)?null:t?u(r):r),a},t.dataLabels=function(e,t){var r,i=this.Y[t]||(t?this.Y[1]:this.Y[0]);return(r=(i=i&&i.dataLabelConf||this.baseConf).cacheStore[e])===n&&(r=i.cacheStore[e]=a(e,i)),r},t.formatValue=function(e){var t,r=this.baseConf;return(t=r.cacheStore[e])===n&&(t=r.cacheStore[e]=a(e,r)),t},t.yAxis=function(e,t){var r,i=this.Y[t]||(t?this.Y[1]:this.Y[0]);return(r=(i=i&&i.yAxisLabelConf||this.baseConf).cacheStore[e])===n&&(r=i.cacheStore[e]=a(e,i,!0)),r},t.xAxis=function(e){var t=this.paramX.cacheStore[e];return t===n&&(t=this.paramX.cacheStore[e]=a(e,this.paramX,!0)),t},t.sYAxis=function(e){var t,r=this.Y[1];return(t=(r=r&&r.yAxisLabelConf||this.baseConf).cacheStore[e])===n&&(t=r.cacheStore[e]=a(e,r)),t},t.scale=function(e){var t=this.paramScale.cacheStore[e];return t===n&&(t=this.paramScale.cacheStore[e]=a(e,this.paramScale)),t},t.legendValue=function(e){var t=this.paramLegend.cacheStore[e];return t===n&&(t=this.paramLegend.cacheStore[e]=a(e,this.paramLegend)),t},t.legendPercentValue=function(e){var t,r=this.percentStrCacheStore[e],a=this.paramLegend;return r===n&&(t=isNaN(a.decimalprecision)?"2":a.decimalprecision,r=this.percentStrCacheStore[e]=l(s(e,t,a.forcedecimals),a.decimalseparator,a.thousandseparator,a.thousandseparatorposition)+"%"),r},t.getDateValue=function(e){var t,r,n,a,i,o=e;return o&&!/\//.test(this.timeConf.inputDateFormat)&&(o=o.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/gi,p).slice(0,1),"g"),"/")),o=/^dd/.test(this.timeConf.inputDateFormat)&&o&&o.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||o,/\s24:/.test(o)?(o=o.replace(/\s24:/," 00:"),(t=new Date(o)).setDate(t.getDate()+1)):t=new Date(o),!(i=t.getTime())&&o&&/\:/.test(o)&&(o=o.split(":"),r=(0,c.pluckNumber)(o[0],0),n=(0,c.pluckNumber)(o[1],0),a=(0,c.pluckNumber)(o[2],0),r=r>23?24===r&&0===n&&0===a?r:23:r,n=n>59?59:n,a=a>59?59:a,(t=new Date).setHours(r),t.setMinutes(n),t.setSeconds(a),i=t.getTime()),{ms:i,date:t}},t.getFormattedDate=function(e,t){var r="object"==typeof e&&e||new Date(e),n=this.timeConf,a=(0,c.pluck)(t,n.outputDateFormat),i=r.getFullYear(),o=r.getMonth(),s=r.getDate(),l=r.getDay(),u=r.getMinutes(),d=r.getSeconds(),h=r.getHours();return u=u>9?p+u:g+u,d=d>9?p+d:g+d,h=h>9?p+h:g+h,a.match(/dnl/)&&(a=a.replace(/dnl/gi,n.days[l])),a.match(/dns/)&&(a=a.replace(/dns/gi,n.days[l]&&n.days[l].substr(0,3))),a.match(/dd/)&&(a=a.replace(/dd/gi,s)),a.match(/mnl/)&&(a=a.replace(/mnl/gi,n.months[o])),a.match(/mns/)&&(a=a.replace(/mns/gi,n.months[o]&&n.months[o].substr(0,3))),a.match(/mm/)&&(a=a.replace(/mm/gi,o+1)),a.match(/yyyy/)&&(a=a.replace(/yyyy/gi,i)),a.match(/yy/)&&(a=a.replace(/yy/gi,(i%1e3%100+"").replace(/^(\d)$/,"0$1"))),a.match(/hh12/)&&(a=a.replace(/hh12/gi,h%12||12)),a.match(/hh/)&&(a=a.replace(/hh/gi,h)),a.match(/mn/)&&(a=a.replace(/mn/gi,u)),a.match(/ss/)&&(a=a.replace(/ss/gi,d)),a.match(/ampm/)&&(a=a.replace(/ampm/gi,h<12?"AM":"PM")),a.match(/ds/)&&(a=a.replace(/ds/gi,n.daySuffix[s])),a},e}();a=function(e,t,r){var n,a,o,u,d,h,f,g,v,y,w,x=e;if(null!==x){if(n=(x=Number(x))+p,a=1===Number(t.formatnumberscale)?t.defaultnumberscale:p,y=(v=n.split(m)[1])?v.length:t.forcedecimals?b:p,1===Number(t.formatnumberscale)&&(n=(w=i(x,t.defaultnumberscale,t.numberscalevalue,t.numberscaleunit,t.scalerecursively,t.forcenumberscale)).value,x=w.value,a=w.scale),t.scalerecursively&&0!==t.formatnumberscale&&"0"!==t.formatnumberscale){if(o=w.value,u=w.scale,d=-1===Number(t.maxscalerecursion)?o.length:Math.min(o.length,t.maxscalerecursion),1===Number(t.formatnumber))for(n=c.BLANKSTRING,g=0;g<d;g++)f=(h=0===g?o[g]:Math.abs(o[g]))+p,g===d-1&&(f=s(h,(0,c.pluck)(t.decimalprecision,y),t.forcedecimals)),n=n+l(f,t.decimalseparator,t.thousandseparator,t.thousandseparatorposition)+u[g]+(g<d-1?t.scaleseparator:c.BLANKSTRING);else for(n=c.BLANKSTRING,g=0;g<d;g++)n=n+(0===g?o[g]:Math.abs(o[g])+p)+u[g]+(g<d-1?t.scaleseparator:"");n=(t.numberprefix||p)+n+(t.numbersuffix||p)}else 1===Number(t.formatnumber)&&(n=s(x,(0,c.pluck)(t.decimalprecision,y),t.forcedecimals),n=l(n,t.decimalseparator,t.thousandseparator,t.thousandseparatorposition,r)),n=t.hasrtltext&&1===t.hasrtltext?(t.numbersuffix||p)+"‎"+n+a+(t.numberprefix||p):(t.numberprefix||p)+n+a+(t.numbersuffix||p);return n}},i=function(e,t,r,n,a,i){var o,s,l,u,d={},h=t,f=0,g=1e3,m=[],v=[],b=e,y=(0,c.pluckNumber)(i)||0;if(a){for(o=(0,c.pluckNumber)(r[0])||g,f=0;f<r.length;f++){if(l=(0,c.pluckNumber)(r[f])||g,!(Math.abs(Number(b))>=l&&f<r.length-1)){0===f&&t===p&&y?(b=Number(b)/o,m.push(b),v.push(n[1]||p)):(1===f&&t===p&&y?(s=b+(m.length?m.pop():0),v.pop(),m.push(s)):m.push(b),v.push(n[f]));break}b=(b-(u=b%l))/l,0===f&&0!==u&&n[f]===p&&y?(m.push(u/o),v.push(n[1]||p)):0!==u&&(1===f&&t===p&&y?(s=u+(m.length?m.pop():0),v.pop(),m.push(s)):m.push(u),v.push(n[f]))}m.reverse(),v.reverse(),d.value=m,d.scale=v}else{if(r.length===n.length)for(f=0;f<r.length;f++){if(!((l=(0,c.pluckNumber)(r[f])||g)&&Math.abs(Number(b))>=l)){0===f&&t===p&&y&&(h=n[0]||p,b=Number(b)/l);break}h=n[f]||p,b=Number(b)/l}d.value=b,d.scale=h}return d},s=function(e,t,r){var n,a,i,o,s=e,l=t;if(l<=0)return s.toFixed(0);if(isNaN(l))return(s+=p).length>12&&-1!==s.indexOf(m)&&(l=12-s.split(m)[0].length,n=d(10,l),s=a=h(s*n)/n+p),s;if(n=d(10,l),a=s<0?-h(-s*n)/n+p:h(s*n)/n+p,1===Number(r))for(-1===a.indexOf(m)&&(a+=".0"),i=l-a.split(m)[1].length,o=1;o<=i;o++)a+=g;return a},l=function(e,t,r,n,a){var i,o,s,l,c=Number(e),u=p,d=!1,h=p,f=p,g=0,v=0;if(isNaN(c))return p;if(c>1e15)return i=a?1:14,c.toExponential(i);if(g=0,v=e.length,-1!==e.indexOf(m)&&(u=e.substring(e.indexOf(m)+1,e.length),v=e.indexOf(m)),c<0&&(d=!0,g=1),(o=(h=e.substring(g,v)).length)<(l=n[s=n.length-1]))f=h;else for(;o>=l;)f=(o-l?r:p)+h.substr(o-l,l)+f,(o-=l)<(l=(s-=1)<=0?n[0]:n[s])&&(f=h.substring(o,0)+f);return u!==p&&(f=f+t+u),!0===d&&(f="-"+f),f},o=function(e,t){var r=e;return r+=p,t._REGinthousandseparator&&(r=r.replace(t._REGinthousandseparator,p)),t._REGindecimalseparator&&(r=r.replace(t._REGindecimalseparator,m)),r=parseFloat(r),isFinite(r)?r:NaN};t["default"]=_},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(313));a["default"].stopPartialEventPropagation=!0,a["default"]._stopabsolutePath=!0;t["default"]={extension:a["default"],name:"redraphael",type:"plugin"}},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i,o=n(r(314)),s=
/**!
 * RedRaphael 1.0.0 - JavaScript Vector Library
 * Copyright (c) 2012-2013 FusionCharts, Inc. <http://www.fusioncharts.com>
 *
 * Raphael 2.1.0
 * Copyright (c) 2008-2012 Dmitry Baranovskiy <http://raphaeljs.com>
 * Copyright © 2008-2012 Sencha Labs <http://sencha.com>
 *
 * Licensed under the MIT license.
 */
function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(284));var l="undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:null;function c(e){var t,r,n;return c._url===undefined&&(c._url=m),c.is(e,L)?u?e():o["default"].on("raphael.DOMload",e):c.is(e,S)?c._engine.create[y](c,e.splice(0,3+c.is(e[0],x))).add(e):(r=(0,s.getArrayCopy)(arguments),t=Array.prototype.slice.call(r,0),c.is(t[t.length-1],L)?(n=t.pop(),u?n.call(c._engine.create[y](c,t)):o["default"].on("raphael.DOMload",function(){n.call(c._engine.create[y](c,t))})):c._engine.create[y](c,arguments))}c.upgrade="1.0.0",c.version="2.1.0",c.eve=o["default"];var u,d,h,f,p,g,m="",v=" ",b="hasOwnProperty",y="apply",w="concat",x="number",_="string",S="array",k="object",C="finite",A="split",N="none",E="#000",L="function",T="auto",M="normal",F=",",D=/R/i,I=/trident/i.test(l.navigator.userAgent),O={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},P=Array.prototype.splice,R=function(){}.hasOwnProperty("prototype"),j={doc:l.document,win:l},B=j.doc,z=j.win,V=c.safePointerEventMapping={mouseover:"pointerover",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseout:"pointerout"},U=z.navigator,H=c.supportsTouch="ontouchstart"in B||U.maxTouchPoints||U.msMaxTouchPoints,q=c.supportsPointer="onpointerover"in B,G=c.isEdge=/Edge/.test(U.userAgent),W=c.isIE11=/trident/i.test(U.userAgent)&&/rv:11/i.test(U.userAgent)&&!z.opera,$=(c.isIE10=-1!==U.appVersion.indexOf("MSIE 10"),c.isFirefox=/Firefox/.test(U.userAgent)),X=c.isWindows=/Windows/.test(U.userAgent),Y="m",K="l",J="M",Z="L",Q=[],ee=/[a-z]/i,te=function(e,t,r){var n=t.toLowerCase(),a=[],i=0;if(Q.length=0,r.replace(De,function(e,t){t&&Q.push(+t)}),"r"===n)f.push([t][w](Q));else if("z"===n)f.push([t]);else if(Q.length>=O[n]){for(;i<Q.length;)i%O[n]?a.push(Q[i]):(a.length&&f.push(a)&&(a=[]),a.push(t,Q[i])),i++;f.push(a)}},re=function(){},ne=(c.ca=c.customAttributes=re.prototype,function(){this.ca=this.customAttributes=new re,this._CustomAttributes=function(){},this._CustomAttributes.prototype=this.ca,this._elementsById={},this.id=c._oid++,(0,o["default"])("raphael.new",this)}),ae=c.fn=ne.prototype=c.prototype,ie="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend"[A](v),oe={dragstart:"touchstart",dragmove:"touchmove",dragend:"touchend"},se=String,le=z.parseFloat,ce=z.parseInt,ue=Math,de=ue.max,he=ue.min,fe=ue.abs,pe=ue.pow,ge=ue.cos,me=ue.sin,ve=ue.sqrt,be=ue.round,ye=ue.PI,we=ye/180,xe=180/ye,_e=se.prototype.toLowerCase,Se=se.prototype.toUpperCase,ke=Object.prototype.toString,Ce=/[, ]+/,Ae=/\{(\d+)\}/g,Ne=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,Ee=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Le=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,Te=/,?([achlmqrstvxz]),?/gi,Me=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Fe=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,De=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,Ie={NaN:1,Infinity:1,"-Infinity":1},Oe={hs:1,rg:1},Pe=c._availableAttrs=((i={"arrow-end":N,"arrow-start":N,blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":m,cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":M,"font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:m,stroke:"#000","stroke-dasharray":m,"stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",visibility:m,title:m,transform:m,rotation:0,width:0,x:0,y:0,"shape-rendering":T,alpha:x,"font-stretch":M,"alignment-baseline":T,"baseline-shift":T,"clip-rule":"nonzero","dominant-baseline":T,"fill-rule":"nonzero",filter:N,"flood-color":E,"flood-opacity":1,"font-size-adjust":N})["font-stretch"]=M,i["font-variant"]=M,i.kerning=T,i["lighting-color"]="white",i["marker-end"]=N,i["marker-mid"]=N,i["marker-start"]=N,i.mask=N,i["pointer-events"]="visiblePainted",i["stop-color"]=E,i["stop-opacity"]=1,i["stroke-dashoffset"]=0,i["text-decoration"]=N,i["vector-effect"]=m,i.visibility="visible",i["word-spacing"]=M,i["writing-mode"]="lr-tb",i),Re=c._availableAnimAttrs={blur:x,"clip-rect":"csv","clip-path":"path",cx:x,cy:x,fill:"colour","fill-opacity":x,"font-size":x,height:x,opacity:x,path:"path",r:x,rx:x,ry:x,stroke:"colour","stroke-opacity":x,"stroke-width":x,transform:"transform",width:x,x:x,y:x,color:"colour",borderColor:"colour",borderWidth:x,alpha:x,"text-bound":"text-bound"},je={},Be=function(e,t){return le(e)-le(t)},ze=function(e){return e},Ve=c._rectPath=function(e,t,r,n,a){return a?[[J,e+a,t],[K,r-2*a,0],["a",a,a,0,0,1,a,a],[K,0,n-2*a],["a",a,a,0,0,1,-a,a],[K,2*a-r,0],["a",a,a,0,0,1,-a,-a],[K,0,2*a-n],["a",a,a,0,0,1,a,-a],["z"]]:[[J,e,t],[K,r,0],[K,0,n],[K,-r,0],["z"]]},Ue=function(e,t,r,n){return null==n&&(n=r),[[J,e,t],[Y,0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]]},He=c._getPath={group:function(){return!1},path:function(e){return e.attr("path")},circle:function(e){var t=e.attrs;return Ue(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return Ue(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return Ve(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return Ve(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return Ve(t.x,t.y,t.width,t.height)}},qe=c.mapPath=function(e,t){if(!t)return e;var r,n,a,i,o,s,l;for(a=0,o=(e=mt(e).slice(0)).length;a<o;a++)for(i=1,s=(l=e[a]=e[a].slice(0)).length;i<s;i+=2)r=t.x(l[i],l[i+1]),n=t.y(l[i],l[i+1]),l[i]=r,l[i+1]=n;return e},Ge=c._lastArgIfGroup=function(e,t){var r=e.length-1,n=e[r];if(n&&n.constructor===c.el.constructor&&"group"===n.type)return t&&(e[r]=undefined,delete e[r],P.call(e,r,1)),n},We=c._serializeArgs=function(e){var t,r,n,a,i=e[0];if(c.is(i,k)&&!c.is(i,S)&&"group"!==i.type)for(r=i,i.path&&(t=i.path)&&!c.is(t,_)&&!c.is(t[0],S)&&(t+=m),n=1,a=arguments.length;n<a;n+=2)r[arguments[n]]||(r[arguments[n]]=arguments[n+1]);else for(r={},n=1,a=arguments.length;n<a;n+=2)r[arguments[n]]=e[(n-1)/2]||arguments[n+1];return r},$e=c.is=function(e,t){return t===C?!Ie[b](+e):t===S?e instanceof Array:(t!==k||e!==h&&null!==e)&&("null"===t&&null===e||t===typeof e&&null!==e||t===k&&e===Object(e)||t===S&&Array.isArray&&Array.isArray(e)||ke.call(e).slice(8,-1).toLowerCase()===t)},Xe=c.clone=R?function(e){if(Object(e)!==e)return e;if(e instanceof Function)return e;var t=new e.constructor;for(var r in e)"prototype"!==r&&e[b](r)&&(t[r]=Xe(e[r]));return t}:function(e){if(Object(e)!==e)return e;if(e instanceof Function)return e;var t=new e.constructor;for(var r in e)e[b](r)&&(t[r]=Xe(e[r]));return t},Ye=l.Node;function Ke(e){this._comparator=e,this._elements=[]}Ye&&!Ye.prototype.contains&&(Ye.prototype.contains=function(e){for(;e=e.parentNode;)if(e===this)return!0;return!1}),c._g=j,c.merge=s.merge,c.extend=s["default"],c.createUUID=(p=/[xy]/g,g=function(e){var t=16*ue.random()|0;return("x"===e?t:3&t|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,g).toUpperCase()}),c._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/,c._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,c.getElementID=function(e){return"rr-"+e},Ke.prototype.isEmpty=function(){return 0===this.size()},Ke.prototype.peek=function(){return this.isEmpty()?null:this._elements[0]},Ke.prototype.deq=function(){var e=this.peek(),t=this._elements.pop(),r=this.size();if(0===r)return e;this._elements[0]=t;for(var n=0;n<r;){var a=n,i=2*n+1,o=2*n+2;if(i<r&&this._compare(i,a)>=0&&(a=i),o<r&&this._compare(o,a)>=0&&(a=o),a===n)break;this._swap(a,n),n=a}return e},Ke.prototype.enq=function(e){for(var t=this._elements.push(e),r=t-1;r>0;){var n=Math.floor((r-1)/2);if(this._compare(r,n)<=0)break;this._swap(n,r),r=n}return t},Ke.prototype.size=function(){return this._elements.length},Ke.prototype._compare=function(e,t){return this._comparator(this._elements[e],this._elements[t])},Ke.prototype._swap=function(e,t){var r=this._elements[e];this._elements[e]=this._elements[t],this._elements[t]=r},c.type=z.ENABLE_RED_CANVAS&&(z.CanvasRenderingContext2D||B.createElement("canvas").getContext)?"CANVAS":z.SVGAngle||B.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.svg=!((c.vml="VML"===c.type)||(c.canvas="CANVAS"===c.type)),c._Paper=ne,c._id=0,c._oid=0,c.rad=function(e){return e%360*we},c.deg=function(e){return e*xe%360};var Je=function(e){if(c.vml){var t,r=/^\s+|\s+$/g;try{var n=new ActiveXObject("htmlfile");n.write("<body>"),n.close(),t=n.body}catch(o){t=createPopup().document.body}var a=t.createTextRange();Je=(0,s.cacher)(function(e){try{t.style.color=se(e).replace(r,m);var n=a.queryCommandValue("ForeColor");return"#"+("000000"+(n=(255&n)<<16|65280&n|(16711680&n)>>>16).toString(16)).slice(-6)}catch(o){return N}})}else{var i=j.doc.createElement("i");i.title="Raphaël Colour Picker",i.style.display=N,j.doc.body.appendChild(i),Je=(0,s.cacher)(function(e){return i.style.color=e,j.doc.defaultView.getComputedStyle(i,m).getPropertyValue("color")})}return Je(e)},Ze=function(){return"hsb("+[this.h,this.s,this.b]+")"},Qe=function(){return"hsl("+[this.h,this.s,this.l]+")"},et=function(){return this.hex},tt=function(e,t,r){if(null==t&&$e(e,k)&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,t=e.g,e=e.r),null==t&&$e(e,_)){var n=c.getRGB(e);e=n.r,t=n.g,r=n.b}return(e>1||t>1||r>1)&&(e/=255,t/=255,r/=255),[e,t,r]},rt=function(e,t,r,n){var a={r:e*=255,g:t*=255,b:r*=255,hex:c.rgb(e,t,r),toString:et};return $e(n,C)&&(a.opacity=n),a};function nt(){return this.hex}function at(e,t){for(var r=[],n=0,a=e.length;a-2*!t>n;n+=2){var i=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?a-4===n?i[3]={x:+e[0],y:+e[1]}:a-2===n&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r}c.color=function(e){var t;return c.is(e,k)&&"h"in e&&"s"in e&&"b"in e?(t=c.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):c.is(e,k)&&"h"in e&&"s"in e&&K in e?(t=c.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):(c.is(e,_)&&(e=c.getRGB(e)),c.is(e,k)&&"r"in e&&"g"in e&&"b"in e?(t=c.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=c.rgb2hsb(e),e.v=t.b):(e={hex:N}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=et,e},c.hsb2rgb=function(e,t,r,n){var a,i,o,s,l;return this.is(e,k)&&"h"in e&&"s"in e&&"b"in e&&(r=e.b,t=e.s,n=(e=e.h).o),s=(l=r*t)*(1-fe((e=(e*=360)%360/60)%2-1)),a=i=o=r-l,rt(a+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],n)},c.hsl2rgb=function(e,t,r,n){var a,i,o,s,l;return this.is(e,k)&&"h"in e&&"s"in e&&K in e&&(r=e.l,t=e.s,e=e.h),(e>1||t>1||r>1)&&(e/=360,t/=100,r/=100),s=(l=2*t*(r<.5?r:1-r))*(1-fe((e=(e*=360)%360/60)%2-1)),a=i=o=r-l/2,rt(a+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],n)},c.rgb2hsb=function(e,t,r){var n,a;return e=(r=tt(e,t,r))[0],t=r[1],r=r[2],{h:((0===(a=(n=de(e,t,r))-he(e,t,r))?null:n===e?(t-r)/a:n===t?(r-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0===a?0:a/n,b:n,toString:Ze}},c.rgb2hsl=function(e,t,r){var n,a,i,o;return e=(r=tt(e,t,r))[0],t=r[1],r=r[2],n=((a=de(e,t,r))+(i=he(e,t,r)))/2,{h:((0===(o=a-i)?null:a===e?(t-r)/o:a===t?(r-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0===o?0:n<.5?o/(2*n):o/(2-2*n),l:n,toString:Qe}},c._path2string=function(){return this.join(F).replace(Te,"$1")},c._cacher=s.cacher,c.getRGB=(0,s.cacher)(function(e){var t,r,n,a,i,o,s;return e&&$e(e,k)&&"opacity"in e&&(t=e.opacity),!e||(e=se(e)).indexOf("-")+1?{r:-1,g:-1,b:-1,hex:N,error:1,toString:nt}:e===N?{r:-1,g:-1,b:-1,hex:N,toString:nt}:(!Oe[b](e.toLowerCase().substring(0,2))&&"#"!==e.charAt()&&(e=Je(e)),(s=e.match(Ne))?(s[2]&&(a=ce(s[2].substring(5),16),n=ce(s[2].substring(3,5),16),r=ce(s[2].substring(1,3),16)),s[3]&&(a=ce((i=s[3].charAt(3))+i,16),n=ce((i=s[3].charAt(2))+i,16),r=ce((i=s[3].charAt(1))+i,16)),s[4]&&(o=s[4][A](Le),r=le(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=le(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=le(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),"rgba"===s[1].toLowerCase().slice(0,4)&&(t=le(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100)),s[5]?(o=s[5][A](Le),r=le(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=le(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=le(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),("deg"===o[0].slice(-3)||"°"===o[0].slice(-1))&&(r/=360),"hsba"===s[1].toLowerCase().slice(0,4)&&(t=le(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100),c.hsb2rgb(r,n,a,t)):s[6]?(o=s[6][A](Le),r=le(o[0]),"%"===o[0].slice(-1)&&(r*=2.55),n=le(o[1]),"%"===o[1].slice(-1)&&(n*=2.55),a=le(o[2]),"%"===o[2].slice(-1)&&(a*=2.55),("deg"===o[0].slice(-3)||"°"===o[0].slice(-1))&&(r/=360),"hsla"===s[1].toLowerCase().slice(0,4)&&(t=le(o[3])),o[3]&&"%"===o[3].slice(-1)&&(t/=100),c.hsl2rgb(r,n,a,t)):((s={r:r,g:n,b:a,toString:nt}).hex="#"+(16777216|a|n<<8|r<<16).toString(16).slice(1),c.is(t,C)&&(s.opacity=t),s)):{r:-1,g:-1,b:-1,hex:N,error:1,toString:nt})},c),c.tintshade=(0,s.cacher)(function(e,t){var r,n=c.getRGB(e),a=255;return t<0&&(t*=-1,a=0),t>1&&(t=1),(r=0===t?n:{r:a-(a-n.r)*t,g:a-(a-n.g)*t,b:a-(a-n.b)*t,toString:nt}).hex=c.rgb(r.r,r.g,r.b),n.error&&(r.error=n.error),"opacity"in n?(r.rgba="rgba("+[r.r,r.g,r.b,n.opacity].join(",")+")",r.opacity=n.opacity):r.rgba="rgb("+[r.r,r.g,r.b].join(",")+")",r},c),c.rgb=(0,s.cacher)(function(e,t,r){return"#"+(16777216|r|t<<8|e<<16).toString(16).slice(1)}),c.sanitizePath=function(e){var t;return t=e.join?e.join(F):e,t=D.test(t)?c._pathToAbsolute(t):t.replace(Te,"$1")},c.parsePathString=function(e){if(!e||!e.length)return null;var t=it(e);if(t.arr)return ct(t.arr);if(f=h,c.is(e,S))if(e=se(e).replace(/,?([A-Z]),?/g,",$1,").replace(/(^,?)|(,?$)/g,"").replace(/,,?/g,",").split(","),c.is(e[0],S))f=ct(e);else{var r,n,a,i=[],o=e.length;for(f=[],r=0;r<o;r+=1)ee.test(e[r])?(i.length&&f.push(i),i=[n=e[r]],a=O[n.toLowerCase()]):a?(i.push(+e[r]),a--):e[r].length&&(f.push(i),i=[n].concat(+e[r]),a=O[n.toLowerCase()]-1);f.push(i)}return f&&f.length||(f=[],se(e).replace(Me,te)),f.toString=c._path2string,t.arr=f,t.arr},c.parseTransformString=(0,s.cacher)(function(e){if(!e)return null;var t=[];return c.is(e,S)&&c.is(e[0],S)&&(t=ct(e)),t.length||se(e).replace(Fe,function(e,r,n){var a=[];_e.call(r);n.replace(De,function(e,t){t&&a.push(+t)}),t.push([r][w](a))}),t.toString=c._path2string,t});var it=(0,s.cacher)(function(){return{}},h,h,h,500,{},!0);function ot(e,t,r,n,a){return e*(e*(-3*t+9*r-9*n+3*a)+6*t-12*r+6*n)-3*t+3*r}function st(e,t,r,n,a,i,o,s,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,f=0;f<12;f++){var p=c*u[f]+c,g=ot(p,e,r,a,o),m=ot(p,t,n,i,s);h+=d[f]*ve(g*g+m*m)}return c*h}c.findDotsAtSegment=function(e,t,r,n,a,i,o,s,l){var c=1-l,u=pe(c,3),d=pe(c,2),h=l*l,f=h*l,p=u*e+3*d*l*r+3*c*l*l*a+f*o,g=u*t+3*d*l*n+3*c*l*l*i+f*s,m=e+2*l*(r-e)+h*(a-2*r+e),v=t+2*l*(n-t)+h*(i-2*n+t),b=r+2*l*(a-r)+h*(o-2*a+r),y=n+2*l*(i-n)+h*(s-2*i+n),w=c*e+l*r,x=c*t+l*n,_=c*a+l*o,S=c*i+l*s,k=90-180*ue.atan2(m-b,v-y)/ye;return(m>b||v<y)&&(k+=180),{x:p,y:g,m:{x:m,y:v},n:{x:b,y:y},start:{x:w,y:x},end:{x:_,y:S},alpha:k}},c._removedFactory=function(e){return function(){(0,o["default"])("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var lt=c.pathBBox=function(e){var t=it(e);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var r,n=0,a=0,i=[],o=[],s=0,l=(e=mt(e)).length;s<l;s++)if((r=e[s])[0]===J)n=r[1],a=r[2],i.push(n),o.push(a);else{var c=gt(n,a,r[1],r[2],r[3],r[4],r[5],r[6]);i=i[w](c.min.x,c.max.x),o=o[w](c.min.y,c.max.y),n=r[5],a=r[6]}var u=he[y](0,i),d=he[y](0,o),h=de[y](0,i),f=de[y](0,o),p={x:u,y:d,x2:h,y2:f,width:h-u,height:f-d};return t.bbox=Xe(p),p},ct=function(e){var t=Xe(e);return t.toString=c._path2string,t},ut=c._pathToAbsolute=function(e){var t,r=it(e);if(!r.abs){if(c.is(e,S)&&c.is(e&&e[0],S)||(e=c.parsePathString(e)),!e||!e.length)return(t=[[J,0,0]]).toString=c._path2string,t;var n=0,a=0,i=0,o=0,s=0;t=[],e[0][0]===J&&(i=n=+e[0][1],o=a=+e[0][2],s++,t[0]=[J,n,a]);for(var l,u,d=3===e.length&&e[0][0]===J&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),h=s,f=e.length;h<f;h++){if(t.push(l=[]),(u=e[h])[0]!=Se.call(u[0]))switch(l[0]=Se.call(u[0]),l[0]){case"A":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+n),l[7]=+(u[7]+a);break;case"V":l[1]=+u[1]+a;break;case"H":l[1]=+u[1]+n;break;case"R":for(var p=[n,a][w](u.slice(1)),g=2,m=p.length;g<m;g++)p[g]=+p[g]+n,p[++g]=+p[g]+a;t.pop(),t=t[w](at(p,d));break;case"M":i=+u[1]+n,o=+u[2]+a;default:for(g=1,m=u.length;g<m;g++)l[g]=+u[g]+(g%2?n:a),g%2?n=l[g]:a=l[g]}else if("R"===u[0])p=[n,a][w](u.slice(1)),t.pop(),t=t[w](at(p,d)),l=["R"][w](u.slice(-2));else for(var v=0,b=u.length;v<b;v++)l[v]=u[v];switch(l[0]){case"Z":n=i,a=o;break;case"H":n=l[1];break;case"V":a=l[1];break;case"M":i=l[l.length-2],o=l[l.length-1];default:n=l[l.length-2],a=l[l.length-1]}}t.toString=c._path2string,r.abs=t}return ct(r.abs)},dt=function(e,t,r,n){return[e,t,r,n,r,n]},ht=function(e,t,r,n,a,i){var o=1/3,s=2/3;return[o*e+s*r,o*t+s*n,o*a+s*r,o*i+s*n,a,i]},ft=function(e,t,r,n,a,i,o,l,c,u){if(o=o&&+o,i=i&&+i,0===r||0===n)return dt(e,t,l,c);var d,h=120*ye/180,f=we*(+a||0),p=[],g=(0,s.cacher)(function(e,t,r){return{x:e*ge(r)-t*me(r),y:e*me(r)+t*ge(r)}});if(u)C=u[0],N=u[1],S=u[2],k=u[3];else{e=(d=g(e,t,-f)).x,t=d.y,l=(d=g(l,c,-f)).x,c=d.y;ge(we*a),me(we*a);var m=(e-l)/2,v=(t-c)/2,b=m*m/(r*r)+v*v/(n*n);b>1&&(r*=b=ve(b),n*=b);var y=r*r,x=n*n,_=(i===o?-1:1)*ve(fe((y*x-y*v*v-x*m*m)/(y*v*v+x*m*m))),S=_*r*v/n+(e+l)/2,k=_*-n*m/r+(t+c)/2,C=ue.asin(((t-k)/n).toFixed(9)),N=ue.asin(((c-k)/n).toFixed(9));(C=e<S?ye-C:C)<0&&(C=2*ye+C),(N=l<S?ye-N:N)<0&&(N=2*ye+N),o&&C>N&&(C-=2*ye),!o&&N>C&&(N-=2*ye)}var E=N-C;if(fe(E)>h){var L=N,T=l,M=c;l=S+r*ge(N=C+h*(o&&N>C?1:-1)),c=k+n*me(N),p=ft(l,c,r,n,a,0,o,T,M,[N,L,S,k])}E=N-C;var D=ge(C),I=me(C),O=ge(N),P=me(N),R=ue.tan(E/4),j=4/3*r*R,B=4/3*n*R,z=[e,t],V=[e+j*I,t-B*D],U=[l+j*P,c-B*O],H=[l,c];if(V[0]=2*z[0]-V[0],V[1]=2*z[1]-V[1],u)return[V,U,H][w](p);for(var q=[],G=0,W=(p=[V,U,H][w](p).join()[A](F)).length;G<W;G++)q[G]=G%2?g(p[G-1],p[G],f).y:g(p[G],p[G+1],f).x;return q},pt=function(e,t,r,n,a,i,o,s,l){var c=1-l;return{x:pe(c,3)*e+3*pe(c,2)*l*r+3*c*l*l*a+pe(l,3)*o,y:pe(c,3)*t+3*pe(c,2)*l*n+3*c*l*l*i+pe(l,3)*s}},gt=(0,s.cacher)(function(e,t,r,n,a,i,o,s){var l,c=a-2*r+e-(o-2*a+r),u=2*(r-e)-2*(a-r),d=e-r,h=(-u+ve(u*u-4*c*d))/2/c,f=(-u-ve(u*u-4*c*d))/2/c,p=[t,s],g=[e,o];return fe(h)>"1e12"&&(h=.5),fe(f)>"1e12"&&(f=.5),h>0&&h<1&&(l=pt(e,t,r,n,a,i,o,s,h),g.push(l.x),p.push(l.y)),f>0&&f<1&&(l=pt(e,t,r,n,a,i,o,s,f),g.push(l.x),p.push(l.y)),h=(-(u=2*(n-t)-2*(i-n))+ve(u*u-4*(c=i-2*n+t-(s-2*i+n))*(d=t-n)))/2/c,f=(-u-ve(u*u-4*c*d))/2/c,fe(h)>"1e12"&&(h=.5),fe(f)>"1e12"&&(f=.5),h>0&&h<1&&(l=pt(e,t,r,n,a,i,o,s,h),g.push(l.x),p.push(l.y)),f>0&&f<1&&(l=pt(e,t,r,n,a,i,o,s,f),g.push(l.x),p.push(l.y)),{min:{x:he[y](0,g),y:he[y](0,p)},max:{x:de[y](0,g),y:de[y](0,p)}}}),mt=c._path2curve=(0,s.cacher)(function(e,t){var r=!t&&it(e);if(!t&&r.curve)return ct(r.curve);for(var n=ut(e),a=t&&ut(t),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t){if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][w](ft[y](0,[t.x,t.y][w](e.slice(1))));break;case"S":e=["C",t.x+(t.x-(t.bx||t.x)),t.y+(t.y-(t.by||t.y))][w](e.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x)),t.qy=t.y+(t.y-(t.qy||t.y)),e=["C"][w](ht(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][w](ht(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][w](dt(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][w](dt(t.x,t.y,e[1],t.y));break;case"V":e=["C"][w](dt(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][w](dt(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(e[t].length>7){e[t].shift();for(var r=e[t];r.length;)e.splice(t++,0,["C"][w](r.splice(0,6)));e.splice(t,1),d=de(n.length,a&&a.length||0)}},c=function(e,t,r,i,o){e&&t&&e[o][0]===J&&t[o][0]!=J&&!o&&(t.splice(o,0,[J,i.x,i.y]),r.bx=0,r.by=0,r.x=e[o][1],r.y=e[o][2],d=de(n.length,a&&a.length||0))},u=0,d=de(n.length,a&&a.length||0);u<d;u++){n[u]=s(n[u],i),l(n,u),a&&(a[u]=s(a[u],o)),a&&l(a,u),c(n,a,i,o,u),c(a,n,o,i,u);var h=n[u],f=a&&a[u],p=h.length,g=a&&f.length;i.x=h[p-2],i.y=h[p-1],i.bx=le(h[p-4])||i.x,i.by=le(h[p-3])||i.y,o.bx=a&&(le(f[g-4])||o.x),o.by=a&&(le(f[g-3])||o.y),o.x=a&&f[g-2],o.y=a&&f[g-1]}return a||(r.curve=ct(n)),a?[n,a]:n},null,ct),vt=(c._parseDots=(0,s.cacher)(function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a={},i=e[r].match(/^([^:]*):?([\d\.]*)/);if(a.color=c.getRGB(i[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,i[2]&&(a.offset=i[2]+"%"),t.push(a)}for(r=1,n=t.length-1;r<n;r++)if(!t[r].offset){for(var o=le(t[r-1].offset||0),s=0,l=r+1;l<n;l++)if(t[l].offset){s=t[l].offset;break}s||(s=100,l=n);for(var u=((s=le(s))-o)/(l-r+1);r<l;r++)o+=u,t[r].offset=o+"%"}return t}),c._tear=function(e,t){e===t.top&&(t.top=e.prev),e===t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),bt=(c._tofront=function(e,t){return t.top!==e&&(vt(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e,!0)},c._toback=function(e,t){return t.bottom!==e&&(vt(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e,!0)},c._insertafter=function(e,t,r,n){vt(e,r),e.parent=n,t===n.top&&(n.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},c._insertbefore=function(e,t,r,n){vt(e,r),e.parent=n,t===n.bottom&&(n.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},c._extractTransform=function(e,t){if(null==t)return e._.transform;t=se(t).replace(/\.{3}|\u2026/g,e._.transform||m);var r,n,a=c.parseTransformString(t),i=0,o=1,s=1,l=e._,u=new xt;if(l.transform=a||[],a)for(var d=0,h=a.length;d<h;d++){var f,p,g,v,b,y=a[d],w=y.length,x=se(y[0]).toLowerCase(),_=y[0]!=x,S=_?u.invert():0;"t"===x&&3===w?_?(f=S.x(0,0),p=S.y(0,0),g=S.x(y[1],y[2]),v=S.y(y[1],y[2]),u.translate(g-f,v-p)):u.translate(y[1],y[2]):"r"===x?2===w?(b=l.bb||(l.bb=e.getBBox(1)),u.rotate(y[1],b.x+b.width/2,b.y+b.height/2),i+=y[1]):4===w&&(_?(g=S.x(y[2],y[3]),v=S.y(y[2],y[3]),u.rotate(y[1],g,v)):u.rotate(y[1],y[2],y[3]),i+=y[1]):"s"===x?2===w||3===w?(b=l.bb||(l.bb=e.getBBox(1)),u.scale(y[1],y[w-1],b.x+b.width/2,b.y+b.height/2),o*=y[1],s*=y[w-1]):5===w&&(_?(g=S.x(y[3],y[4]),v=S.y(y[3],y[4]),u.scale(y[1],y[2],g,v)):u.scale(y[1],y[2],y[3],y[4]),o*=y[1],s*=y[2]):x===Y&&7===w&&u.add(y[1],y[2],y[3],y[4],y[5],y[6]),l.dirtyT=1,e.matrix=u}e.matrix=u,l.sx=o,l.sy=s,l.deg=i,l.dx=r=u.e,l.dy=n=u.f,1===o&&1===s&&!i&&l.bbox?(l.bbox.x+=+r,l.bbox.y+=+n):l.dirtyT=1}),yt=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4===e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5===e.length?[t,1,1,e[3],e[4]]:3===e.length?[t,1,1]:[t,1]}},wt=c._equaliseTransform=function(e,t){t=se(t).replace(/\.{3}|\u2026/g,e),e=c.parseTransformString(e)||[],t=c.parseTransformString(t)||[];for(var r,n,a,i,o=de(e.length,t.length),s=[],l=[],u=0;u<o;u++){if(a=e[u]||yt(t[u]),i=t[u]||yt(a),a[0]!=i[0]||"r"===a[0].toLowerCase()&&(a[2]!=i[2]||a[3]!=i[3])||"s"===a[0].toLowerCase()&&(a[3]!=i[3]||a[4]!=i[4]))return;for(s[u]=[],l[u]=[],r=0,n=de(a.length,i.length);r<n;r++)r in a&&(s[u][r]=a[r]),r in i&&(l[u][r]=i[r])}return{from:s,to:l}};function xt(e,t,r,n,a,i){null!=e?(this.a=+e,this.b=+t,this.c=+r,this.d=+n,this.e=+a,this.f=+i):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}c._getContainer=function(e,t,r,n){var a;if(null!=(a=null!=n||c.is(e,k)?e:j.doc.getElementById(e)))return a.tagName?null==t?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:t,height:r}:{container:1,x:e,y:t,width:r,height:n}},c._engine={},c.path2curve=mt,c.matrix=function(e,t,r,n,a,i){return new xt(e,t,r,n,a,i)},function(e){function t(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var r=ve(t(e));e[0]&&(e[0]/=r),e[1]&&(e[1]/=r)}e.add=function(e,t,r,n,a,i){var o,s,l,c,u=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],h=[[e,r,a],[t,n,i],[0,0,1]];for(e&&e instanceof xt&&(h=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(c=0,l=0;l<3;l++)c+=d[o][l]*h[l][s];u[o][s]=c}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new xt(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new xt(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,r,n){null==t&&(t=e),(r||n)&&this.add(1,0,0,1,r,n),this.add(e,0,0,t,0,0),(r||n)&&this.add(1,0,0,1,-r,-n)},e.rotate=function(e,t,r){e=c.rad(e),t=t||0,r=r||0;var n=+ge(e).toFixed(9),a=+me(e).toFixed(9);this.add(n,a,-a,n,t,r),this.add(1,0,0,1,-t,-r)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[se.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return c.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];e.scalex=ve(t(n[0])),r(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=ve(t(n[1])),r(n[1]),e.shear/=e.scaley;var a=-n[0][1],i=n[1][1];return i<0?(e.rotate=c.deg(ue.acos(i)),a<0&&(e.rotate=360-e.rotate)):e.rotate=c.deg(ue.asin(a)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!==e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)===e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[A]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:m)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:m)+(t.rotate?"r"+[t.rotate,0,0]:m)):Y+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(xt.prototype);var _t=(U=z.navigator).userAgent.match(/Version\/(.*?)\s/)||U.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."===U.vendor&&(_t&&_t[1]<4||"iP"===U.platform.slice(0,2))||"Google Inc."===U.vendor&&_t&&_t[1]<8?ae.safari=function(){var e=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:N});return setTimeout(function(){e.remove()}),!0}:ae.safari=function(){};for(var St=function(){this.returnValue=!1},kt=function(){return this.originalEvent.preventDefault()},Ct=function(){this.cancelBubble=!0},At=function(){return this.originalEvent.stopPropagation()},Nt={stopPropagation:"fn",stopImmediatePropagation:"fn",preventDefault:"fn",type:!0,clientX:!0,clientY:!0,pageX:!0,pageY:!0,bubbles:!0,cancelable:!0,touches:!0,target:!0,originalTarget:!0,srcElement:!0,relatedTarget:!0,fromElement:!0,changedTouches:!0,layerX:!0,layerY:!0,deltaX:!0,deltaY:!0},Et=c.makeSelectiveCopy=function(e,t){var r=function(r){e[r]="fn"===Nt[r]?function(){t[r]()}:t[r]};for(var n in Nt)r(n);e.originalEvent=t,e.type||(e.type=t.originalEvent&&t.originalEvent.type)},Lt=c.addEvent=j.doc.addEventListener?function(e,t,r,n){var a,i,o=q?V[t]:H?oe[t]:t;return I||(i={capture:!1}),n.dragFn&&("pointerup"===o?o="mouseup":o===d&&(o="touchend")),a=function(a){var i,o=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,s=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft;if(H&&oe[t])for(var l=0,c=a.targetTouches&&a.targetTouches.length;l<c;l++)if((i=a.targetTouches[l].target)===e||"tspan"===i.nodeName&&i.parentNode===e){var u=a;(a=a.targetTouches[l]).originalEvent=u,a.preventDefault=kt,a.stopPropagation=At;break}return r.call(n,a,a.clientX+s,a.clientY+o)},e.addEventListener(o,a,i),function(){return e.removeEventListener(o,a,i),!0}}:j.doc.attachEvent?function(e,t,r,n){var a=function(e){e=e||j.win.event;var t=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,a=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft,i=e.clientX+a,o=e.clientY+t;return e.preventDefault=e.preventDefault||St,e.stopPropagation=e.stopPropagation||Ct,r.call(n,e,i,o)};return e.attachEvent("on"+t,a),function(){return e.detachEvent("on"+t,a),!0}}:void 0,Tt=function(e){var t,r=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,n=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft,a=(e.clientX!==d?e.clientX:e.changedTouches&&e.changedTouches[0].clientX)+n,i=(e.clientY!==d?e.clientY:e.changedTouches&&e.changedTouches[0].clientY)+r,s={},l=this,u=l.dragInfo.onmove.length;if(!(l.dragStartFn&&!(Math.abs(a-l._drag.x)>=2.5||Math.abs(i-l._drag.y)>=2.5)||l._blockDrag||q&&H&&!e.isPrimary))for(;u--;){if(H&&"touchmove"===e.type)for(var h,f=e.touches.length;f--;)if((h=e.touches[f]).identifier===l._drag.id){a=h.clientX+n,i=h.clientY+r;break}if(!l.removed){if(l.dragStartFn&&(l.dragStartFn(u),l.dragStartFn=undefined,l.dragInfo._dragmove=!0),j.win.opera){var p=c._engine.getNode(l),g=p.nextSibling,m=p.parentNode,v=p.style.display;m.removeChild(p),p.style.display=N,p.style.display=v,g?m.insertBefore(p,g):m.appendChild(p)}Et(s,e),t=s.data=[a-l._drag.x,i-l._drag.y,a,i],(0,o["default"])("raphael.drag.move."+l.id,l.dragInfo.move_scope[u]||l,s,t)}}},Mt=function(e){var t=this,r=t.dragInfo,n=r.onend.length;if(t.dragInfo._dragmove)for(;n--;)t._drag={},(0,o["default"])("raphael.drag.end."+t.id,r.end_scope[n]||r.start_scope[n]||r.move_scope[n]||t,e);t.dragInfo._dragmove=undefined,H&&!W&&!G&&(!X||!$)&&(t.paper.canvas.style["touch-action"]="auto"),c.undragmove.call(t,Tt),c.undragend.call(t,Mt),c.unmousemove.call(t,Tt).unmouseup.call(t,Mt)},Ft=c.el={},Dt=ie.length;Dt--;)(function(e){c[e]=Ft[e]=function(t,r,n){return c.is(t,L)&&(this.events=this.events||[],this.events.push({name:e,f:t,unbind:Lt(n||this.shape||this.node||j.doc,e,t,r||this)})),this},c["un"+e]=Ft["un"+e]=function(t){for(var r=this.events||[],n=r.length;n--;)if(r[n].name===e&&r[n].f===t)return r[n].unbind(),r.splice(n,1),!r.length&&delete this.events,this;return this}})(ie[Dt]);Ft.data=function(e,t){var r=je[this.id]=je[this.id]||{};if(1===arguments.length){if(c.is(e,k)){for(var n in e)e[b](n)&&this.data(n,e[n]);return this}return c.stopPartialEventPropagation||(0,o["default"])("raphael.data.get."+this.id,this,r[e],e),r[e]}return r[e]=t,c.stopPartialEventPropagation||(0,o["default"])("raphael.data.set."+this.id,this,t,e),this},Ft.removeData=function(e){return null==e?delete je[this.id]:je[this.id]&&delete je[this.id][e],this},Ft.dbclick=function(e,t){var r,n=this,a=function(r){var a;q&&!r.isPrimary||(r&&r.preventDefault(),(!(a=r).touches||a.touches&&1===a.touches.length)&&(n._tappedOnce?(e.call(t||n,r),n._tappedOnce=!1):(n._tappedOnce=!0,setTimeout(function(){n._tappedOnce=!1},500))))};r=q?"pointerup":c.supportsTouch?"touchstart":"mouseup",n.node.addEventListener(r,a),c.storeHandlers(n,e,a)},Ft.undbclick=function(e){var t=removeHandlers(this,e);t&&this.node.removeEventListener(q?"pointerup":c.supportsTouch?"touchstart":"mouseup",t)},Ft.getData=function(){return Xe(je[this.id]||{})};var It=[],Ot=function(){this.untrack=Lt(j.doc,"mouseup",Pt,this)},Pt=function(){return this.untrack(),this.untrack=null,this.fn&&this.fn.apply(this.scope||this.el,arguments)};Ft.mouseup=function(e,t,r,n){return r?(It.push(r={el:this,fn:e,scope:t}),r.unbind=Lt(this.shape||this.node||j.doc,"mousedown",Ot,r),this):c.mouseup.apply(this,[e,t,n])},Ft.unmouseup=function(e){for(var t,r=It.length;r--;)It[r].el===this&&It[r].fn===e&&((t=It[r]).unbind(),t.untrack&&t.untrack(),It.splice(r,1));return t?this:c.unmouseup.apply(this,arguments)},Ft.hover=function(e,t,r,n){return this.on("fc-mouseover",e,r).on("fc-mouseout",t,n)},Ft.unhover=function(e,t){return this.off("fc-mouseover",e).off("fc-mouseout",t)},Ft.fcclick=function(e,t){var r,n,a,i,o,s=this,l=s.node,u=function(e){s._lastEventTriggered="mousedown",a=e.clientX!==d?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,i=e.clientY!==d?e.clientY:e.changedTouches&&e.changedTouches[0].clientY},h=function(e){var t=e.clientX!==d?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,r=e.clientY!==d?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(a-t)>=2.5||Math.abs(i-r)>=2.5)&&(s._lastEventTriggered=undefined)};if(s._clickStoreActual||(s._clickStoreActual=[]),s._clickStoreDerived||(s._clickStoreDerived=[]),!s._clickHandlerHelper){for(r in o=!q&&c.supportsTouch?{touchstart:function(){s._lastEventTriggered="touchstart",s._lastEventTriggeredAt=(new Date).getTime()},touchmove:h}:q&&c.supportsTouch?{pointerdown:u,pointermove:h}:{mousedown:u,mousemove:h})l.addEventListener?l.addEventListener(r,o[r]):l.attachEvent("on"+r,o[r]);s._clickHandlerHelper=o}return!q&&c.supportsTouch?(r="touchend",n=function(r){"touchstart"===s._lastEventTriggered&&(new Date).getTime()-s._lastEventTriggeredAt<=500&&setTimeout(function(){e.call(t||s,r)},0)}):(r="click",n=function(r){"mousedown"===s._lastEventTriggered&&e.call(t||s,r)}),l.addEventListener?l.addEventListener(r,n):l.attachEvent("on"+r,n),s._clickStoreDerived.push(n),s._clickStoreActual.push(e),s},Ft.fcunclick=function(e){var t,r,n=this,a=n.node,i=n._clickHandlerHelper,o=n._clickStoreActual,s=n._clickStoreDerived;if(o){for(t=o.length-1;t>=0;t--)o[t]===e&&(a.removeEventListener?a.removeEventListener(!q&&c.supportsTouch?"touchend":"click",s[t]):a.detachEvent("onclick",s[t]),o.splice(t,1),s.splice(t,1));if(!o.length){for(r in i)a.removeEventListener?a.removeEventListener(r,i[r]):a.detachEvent("on"+r,i[r]);n._clickHandlerHelper=undefined}}return n};var Rt=[];function jt(){return this.x+v+this.y+v+this.width+" × "+this.height}Ft.drag=function(e,t,r,n,a,i){var s=this,l=s.dragInfo||(s.dragInfo={onmove:[],onstart:[],onend:[],move_scope:[],start_scope:[],end_scope:[]});return e&&l.onmove.push(e)&&l.move_scope.push(n),t&&l.onstart.push(t)&&l.start_scope.push(a),r&&l.onend.push(r)&&l.end_scope.push(i),s.dragFn=s.dragFn||function(e){var t,r,n,a,i,l,u,f,p,g,m=j.doc.documentElement.scrollTop||j.doc.body.scrollTop,v=j.doc.documentElement.scrollLeft||j.doc.body.scrollLeft,b={},y=s.dragInfo,w=[Tt,h,j.doc];if(!q||e.isPrimary){for(H&&(q?W||G||X&&$||(s.paper.canvas.style["touch-action"]="none"):e.preventDefault()),s._drag.x=p=(e.clientX!==d?e.clientX:e.changedTouches&&e.changedTouches[0].clientX)+v,s._drag.y=g=(e.clientY!==d?e.clientY:e.changedTouches&&e.changedTouches[0].clientY)+m,s._drag.id=e.identifier,H&&!q?c.dragmove.apply(s,w):c.mousemove.apply(s,w).mouseup.call(s,Mt,h,h,j.doc),H&&c.dragend.call(s,Mt,h,j.doc),Et(b,e),t=b.data=[p,g],r=0,i=y.onstart.length;r<i;r++)o["default"].on("raphael.drag.start."+s.id,y.onstart[r]);for(n=0,l=y.onmove.length;n<l;n++)o["default"].on("raphael.drag.move."+s.id,y.onmove[n]);for(a=0,u=y.onend.length;a<u;a++)o["default"].on("raphael.drag.end."+s.id,y.onend[a]);i&&!l&&(f=function(){s.undragmove(),y.onmove=[]},y.onmove.push(f),o["default"].on("raphael.drag.end."+s.id,f)),s.dragStartFn=function(e){(0,o["default"])("raphael.drag.start."+s.id,s.dragInfo.start_scope[e]||s.dragInfo.move_scope[e]||s,b,t)}}},s._drag={},Rt.push({el:s,start:s.dragFn,onstart:t,onmove:e,onend:r}),t&&!s.startHandlerAttached&&(H&&!q?s.dragstart(s.dragFn):s.mousedown(s.dragFn),s.startHandlerAttached=!0),s},Ft.onDragOver=function(e){e?o["default"].on("raphael.drag.over."+this.id,e):o["default"].unbind("raphael.drag.over."+this.id)},Ft.undrag=function(){for(var e=this,t=Rt.length;t--;)Rt[t].el===e&&(e.unmousedown(e.dragFn),Rt.splice(t,1),o["default"].unbind("raphael.drag.*."+e.id),e.dragInfo=undefined,e.dragFn=undefined,e.startHandlerAttached=undefined);c.unmousemove.call(e,Tt).unmouseup.call(e,Mt),c.undragmove.call(e,Tt),c.undragend.call(e,Mt),delete e._drag},Ft.undragstart=function(e){var t,r,n=this,a=n.dragInfo,i=a&&a.onstart,s=a&&a.start_scope;if(e)for(t=0,r=i&&i.length;t<r;t++)if(i[t]===e){i.splice(t,1),s.splice(t,1),o["default"].unbind("raphael.drag.start."+this.id,e);break}i&&i.length&&e||(c.undragstart.call(n,n.dragFn),c.unmousedown.call(n,n.dragFn),o["default"].unbind("raphael.drag.start."+this.id),n.startHandlerAttached=!1,a&&(a.onstart=[],a.start_scope=[]))},Ft.undragmove=function(e){var t,r,n=this,a=n.dragInfo,i=a&&a.onmove,s=a&&a.move_scope;if(e)for(t=0,r=i&&i.length;t<r;t++)if(i[t]===e){i.splice(t,1),s.splice(t,1),o["default"].unbind("raphael.drag.move."+this.id,e);break}i&&i.length&&e||(c.undragmove.call(n,Tt),c.unmousemove.call(n,Tt),a&&(a.onmove=[],a.move_scope=[]),o["default"].unbind("raphael.drag.move."+this.id))},Ft.undragend=function(e){var t,r,n=this,a=n.dragInfo,i=a&&a.onend,s=a&&a.end_scope;if(e)for(t=0,r=i&&i.length;t<r;t++)if(i[t]===e){i.splice(t,1),s.splice(t,1),o["default"].unbind("raphael.drag.end."+this.id,e);break}i&&i.length&&e||(c.undragend.call(n,Mt),c.unmouseup.call(n,Mt),a&&(a.onend=[],a.end_scope=[]),o["default"].unbind("raphael.drag.end."+this.id))},Ft.follow=function(e,t,r){return e.removed||e.constructor!==c.el.constructor||(e.followers.push({el:this,stalk:r={before:"insertBefore",after:"insertAfter"}[r],cb:t}),r&&this[r](e)),this},Ft.unfollow=function(e){if(e.removed||e.constructor!==c.el.constructor)return this;for(var t=0,r=e.followers.length;t<r;t++)if(e.followers[t].el===this){e.followers.splice(t,1);break}return this},ae.hide=function(){return this.canvas.style.visibility="hidden",this},ae.show=function(){return this.canvas.style.visibility=m,this},ae.group=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=c._engine.group(e,t[0],r,!!t[1]);return e.__set__&&e.__set__.push(n),e._elementsById[n.id]=n},ae.circle=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e._addDefAttribs()?We(t,"cx",0,"cy",0,"r",0,"fill",N,"stroke",E):We(t),a=c._engine.circle(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},ae.rect=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e._addDefAttribs()?We(t,"x",0,"y",0,"width",0,"height",0,"r",0,"fill",N,"stroke",E):We(t),a=c._engine.rect(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},ae.ellipse=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e._addDefAttribs()?We(t,"x",0,"y",0,"rx",0,"ry",0,"fill",N,"stroke",E):We(t),a=c._engine.ellipse(this,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},ae.path=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e.config,a=n&&n["stroke-linecap"]||"butt",i=e._addDefAttribs()?We(t,"path",m,"fill",N,"stroke",E,"stroke-linecap",a):We(t),o=c._engine.path(e,i,r);return e.__set__&&e.__set__.push(o),e._elementsById[o.id]=o},ae.image=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e._addDefAttribs()?We(t,"x",0,"y",0,"width",0,"height",0):We(t),a=c._engine.image(e,n,r);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},ae.text=function(){var e=this,t=(0,s.getArrayCopy)(arguments),r=Ge(t,!0),n=e._addDefAttribs()?We(t,"x",0,"y",0,"text",m,"stroke",N,"fill",E,"text-anchor","middle","vertical-align","middle"):We(t),a=c._engine.text(e,n,r,t[1]);return e.__set__&&e.__set__.push(a),e._elementsById[a.id]=a},ae._addDefAttribs=function(){return!(c.svg&&this.config&&this.config.noDefaultAttribs)},ae.setConfig=function(e,t){var r=this;return e!==undefined&&t!==undefined&&(r.config=r.config||{},r.config[e]=t),r.config},ae._createDOMNodes=function(e,t,r){var n,a,i,o,s={},l=c._createNode,u=t.tagName,d=t.children||[];for(o in!r&&(r={}),t)"tagName"!==o&&"children"!==o&&(s[o]=t[o]);if(!s.id&&(s.id=c.getElementID(c.createUUID())),!this.canvas.getElementById(s.id)&&u)for(n=e.appendChild(l(u,s)),r.element=n,r.id=s.id,(i=d.length)>0&&(r.children=[]),a=0;a<i;a++)r.children[a]={},this._createDOMNodes(n,d[a],r.children[a]);return r},ae.addDefs=function(e){if(c.svg){var t,r={},n=this.defs;for(t in e)r[t]={},this._createDOMNodes(n,e[t],r[t]);return r}},ae.setSize=function(e,t){return c._engine.setSize.call(this,e,t)},ae.setDimension=function(e,t){var r;typeof e===k?(r=e.width,t=e.height,this.setSize(e.width,e.height)):(r=e,this.setSize(r,t))},ae.attr=function(e){var t=this;return null==e?{width:t.width,height:t.height}:c.is(e,_)?t[e]:(t.setDimension(e),t)},ae.status=function(e,t){return Ft.status.call(this,e,t)},ae.animateWith=function(e,t,r,n,a,i,o){return Ft.animateWith.call(this,e,t,r,n,a,i,o)},ae.animate=function(e,t,r,n){return Ft.animate.call(this,e,t,r,n)},ae.setViewBox=function(e,t,r,n,a){return c._engine.setViewBox.call(this,e,t,r,n,a)},ae.getById=function(e){return this._elementsById[e]||null},ae.top=ae.bottom=null,ae.raphael=c,Ft.getBBox=function(e){if(this.removed)return{};var t=this._;return e?(!t.dirty&&t.bboxwt||(this.realPath=He[this.type](this),t.bboxwt=lt(this.realPath),t.bboxwt.toString=jt,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&(!t.dirty&&this.realPath||(t.bboxwt=0,this.realPath=He[this.type](this)),t.bbox=lt(qe(this.realPath,this.matrix)),t.bbox.toString=jt,t.dirty=t.dirtyT=0),t.bbox)},Ft.clone=function(e,t){if(this.removed)return null;var r,n,a=this,i=a.attr();if(e){for(r in e)i[r]=e[r];n=a.paper[a.type](i,t)}else n=a.paper[a.type]().attr(i);return a.__set__&&a.__set__.push(n),n};var Bt=function(e,t,r,n,a,i,o,s,l){return null==l?st(e,t,r,n,a,i,o,s):c.findDotsAtSegment(e,t,r,n,a,i,o,s,function(e,t,r,n,a,i,o,s,l){if(!(l<0||st(e,t,r,n,a,i,o,s)<l)){var c,u=.5,d=1-u;for(c=st(e,t,r,n,a,i,o,s,d);fe(c-l)>.01;)c=st(e,t,r,n,a,i,o,s,d+=(c<l?1:-1)*(u/=2));return d}}(e,t,r,n,a,i,o,s,l))},zt=function(e,t){return function(r,n,a){r=mt(r);for(var i,o,s,l,u,d=m,h={},f=0,p=0,g=r.length;p<g;p++){if((s=r[p])[0]===J)i=+s[1],o=+s[2];else{if(f+(l=Bt(i,o,s[1],s[2],s[3],s[4],s[5],s[6]))>n){if(t&&!h.start){if(d+=["C"+(u=Bt(i,o,s[1],s[2],s[3],s[4],s[5],s[6],n-f)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],a)return d;h.start=d,d=[J+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,s[5],s[6]].join(),f+=l,i=+s[5],o=+s[6];continue}if(!e&&!t)return{x:(u=Bt(i,o,s[1],s[2],s[3],s[4],s[5],s[6],n-f)).x,y:u.y,alpha:u.alpha}}f+=l,i=+s[5],o=+s[6]}d+=s.shift()+s}return h.end=d,(u=e?f:t?h:c.findDotsAtSegment(i,o,s[0],s[1],s[2],s[3],s[4],s[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},Vt=zt(1),Ut=zt();zt(0,1);c.getTotalLength=Vt,c.getPointAtLength=Ut,Ft.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Vt(this.attrs.path)},Ft.getPointAtLength=function(e){if("path"==this.type)return Ut(this.attrs.path,e)};var Ht=c.easing_formulas={linear:function(e){return e},"<":function(e){return pe(e,1.7)},">":function(e){return pe(e,.48)},"<>":function(e){var t=.48-e/1.04,r=ve(.1734+t*t),n=r-t,a=-r-t,i=pe(fe(n),1/3)*(n<0?-1:1)+pe(fe(a),1/3)*(a<0?-1:1)+.5;return 3*(1-i)*i*i+i*i*i},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e===!!e?e:pe(2,-10*e)*me(2*ye*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},oneBounceOut:function(e){return e<=.9?1.33*Ht.easeIn(e):1.2-e/5},elasticOnce:function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.225)*(2*Math.PI)/.9)+1},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}};Ht.easeIn=Ht["ease-in"]=Ht["<"],Ht.easeOut=Ht["ease-out"]=Ht[">"],Ht.easeInOut=Ht["ease-in-out"]=Ht["<>"],Ht["back-in"]=Ht.backIn,Ht["back-out"]=Ht.backOut;var qt,Gt=[],Wt=function(){for(var e,t,r,n=+new Date,a=0,i=[],s=0;a<Gt.length;a++){var l=Gt[a];if(!(l.el.removed||l.paused||l.parentEl&&l.parentEl.e&&l.parentEl.e.paused)){for(var u,d,h,f=n-l.start,p=l.ms,g=l.easing,y=l.from,x=l.diff,_=l.to,S=(l.t,l.el),k={},C={},A=!c.stopPartialEventPropagation,N=(s=0,l.el&&l.el.animElements&&l.el.animElements.peek());N&&N.pos<=f/p;)i.push(l.el.animElements.deq()),N=l.el.animElements.peek();if(l.initstatus?(f=(l.initstatus*l.anim.top-l.prev)/(l.percent-l.prev)*p,l.status=l.initstatus,delete l.initstatus,l.stop&&(delete l.el,Gt.splice(a--,1))):l.status=(l.prev+(l.percent-l.prev)*(f/p))/l.anim.top,d=p,l.parentEl&&l.parentEl.animElements?(p=l.delayend-l.delaystart,f=l.parentEl.cPos-l.delaystart):l.el.animElements&&(l.el.cPos=f/p),!(f<0))if(f<p){var E=g(f/p);for(var T in p=d,y)if(y[b](T)){switch(Re[T]){case"number":u=+y[T]+E*p*x[T];break;case"colour":if(x[T].length){for(u=[],s=0,M=y[T].length;s<M;++s)0===s?y[T].isRadial||x[T].isRadial?(r="xr(",r+=y[T][0].f1*(1-E)+x[T][0].f1*E||m,r+=",",r+=y[T][0].f2*(1-E)+x[T][0].f2*E||m,r+=",",r+=100*(y[T][0].f3*(1-E)+x[T][0].f3*E)||m,r+="%,",r+=y[T][0].f4*(1-E)+x[T][0].f4*E||m,r+=",",r+=y[T][0].f5*(1-E)+x[T][0].f5*E,r+=",",r+=y[T][0].f6,r+=")",u.push(r)):(u.push(y[T][s]*(1-E)+E*x[T][s]),u[0]<=0&&(u[0]+=360)):u.push("rgba("+[$t(be(y[T][s].r+E*p*x[T][s].r)),$t(be(y[T][s].g+E*p*x[T][s].g)),$t(be(y[T][s].b+E*p*x[T][s].b)),y[T][s].opacity+E*p*x[T][s].opacity].join(F)+"):"+y[T][s].position);u=u.join("-"),(y[T].isRadial||x[T].isRadial)&&(u=u.replace("-",m))}else t=y[T].opacity+E*p*x[T].opacity,isNaN(t)&&(t=1),u="rgba("+[$t(be(y[T].r+E*p*x[T].r)),$t(be(y[T].g+E*p*x[T].g)),$t(be(y[T].b+E*p*x[T].b)),t].join(F)+")";break;case"path":u=[];s=0;for(var M=y[T].length;s<M;s++){var D;u[s]=[y[T][s][0]],D=y[T][s]?y[T][s].length:0;for(var I=1;I<D;I++)u[s][I]=(+y[T][s][I]+E*p*x[T][s][I]).toFixed(4);u[s]=u[s].join(v)}u=u.join(v);break;case"transform":if(x[T].real)for(u=[],s=0,M=y[T].length;s<M;s++)for(u[s]=[y[T][s][0]],I=1,D=y[T][s].length;I<D;I++)u[s][I]=y[T][s][I]+E*p*x[T][s][I];else{var O=function(e){return+y[T][e]+E*p*x[T][e]};u=[[Y,O(0),O(1),O(2),O(3),O(4),O(5)]]}break;case"csv":if("clip-rect"===T)for(u=[],s=4;s--;)u[s]=+y[T][s]+E*p*x[T][s];break;case"text-bound":u=[][w](y[T]);break;default:var P=[][w](y[T]);for(u=[],s=S.ca[T].length;s--;)u[s]=+P[s]+E*p*x[T][s]}k[T]=u}S.attr(k),A&&function(e,t,r){setTimeout(function(){(0,o["default"])("raphael.anim.frame."+e,t,r)})}(S.id,S,l.anim)}else{if(function(e,t,r){setTimeout(function(){A&&(0,o["default"])("raphael.anim.frame."+t.id,t,r),A&&(0,o["default"])("raphael.anim.finish."+t.id,t,r),c.is(e,L)&&e.call(t)})}(l.callback,S,l.anim),S.attr(_),delete l.el,Gt.splice(a--,1),l.repeat>1&&!l.next){for(h in _)_[b](h)&&(C[h]=l.totalOrigin[h]);l.el.attr(C),tr(l.anim,l.el,l.anim.percents[0],null,l.totalOrigin,l.repeat-1)}l.next&&!l.stop&&tr(l.anim,l.el,l.next,null,l.totalOrigin,l.repeat)}}}for(c.svg&&S&&S.paper&&S.paper.safari(),a=0,e=i.length;a<e;++a)c.getInstantAnimFrameFn()(function(e){return function(){tr.apply(null,i[e].params)}}(a));Gt.length&&(qt||c.getAnimFrameFn())(Wt)},$t=function(e){return e>255?255:e<0?0:e},Xt=function(e){return e>1&&(e=1),e<0&&(e=0),e};function Yt(e,t,r,n,a,i){var o=3*t,s=3*(n-t)-o,l=1-o-s,c=3*r,u=3*(a-r)-c,d=1-c-u;function h(e){return((l*e+s)*e+o)*e}return function(e,t){var r=function(e,t){var r,n,a,i,c,u;for(a=e,u=0;u<8;u++){if(i=h(a)-e,fe(i)<t)return a;if(fe(c=(3*l*a+2*s)*a+o)<1e-6)break;a-=i/c}if(n=1,a=e,a<(r=0))return r;if(a>n)return n;for(;r<n;){if(i=h(a),fe(i-e)<t)return a;e>i?r=a:n=a,a=(n-r)/2+r}return a}(e,t);return((d*r+u)*r+c)*r}(e,1/(200*i))}function Kt(e,t){var r=[],n={};if(this.ms=t,this.times=1,e){for(var a in e)e[b](a)&&(n[le(a)]=e[a],r.push(le(a)));r.sort(Be)}this.anim=n,this.top=r[r.length-1],this.percents=r}c.getAnimFrameFn=function(){return qt=c.requestAnimFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||function(e){setTimeout(e,16)}},c.getInstantAnimFrameFn=function(){return c.instantRequestAnimFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||function(e){setTimeout(e,16)}},Ft.animateWith=function(e,t,r,n,a,i,o){var s,l=this,u={};for(s in o=o||{})o.hasOwnProperty(s)&&(u[s]=o[s]);if(o=u,l.removed)return i&&i.call(l),l;if(0===n)return c.is(i,L)&&setTimeout(function(){i.call(l)},0),l.attr(r);var d=r instanceof Kt?r:c.animation(r,n,a,i);o.start=Xt(o.start||0),o.end=Xt(o.end||1),o.start>=o.end&&(o.start=o.end),!o.from&&o.start>.01?(e.animElements=e.animElements||new Ke(function(e,t){return t.pos-e.pos}),e.animElements.enq({pos:o.start,attr:o.start===o.end,params:[d,l,d.percents[0],null,l.attr(),undefined,e,{start:o.start,end:o.end,smartMorph:o.smartMorph,hookFn:o.hookFn},r],executeOb:{el:this,attrs:r,callback:i,hookFn:o.hookFn}})):tr(d,l,d.percents[0],null,l.attr(),undefined,e,o);for(var h=0,f=Gt.length;h<f;h++)if(Gt[h].anim===t&&Gt[h].el===e){Gt[f-1].start=Gt[h].start;break}return l},Ft.onAnimation=function(e){return e?o["default"].on("raphael.anim.frame."+this.id,e):o["default"].unbind("raphael.anim.frame."+this.id),this},Kt.prototype.delay=function(e){var t=new Kt(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},Kt.prototype.repeat=function(e){var t=new Kt(this.anim,this.ms);return t.del=this.del,t.times=ue.floor(de(e,0))||1,t};var Jt=function(e,t,r){e.isRadial&&!t.isRadial&&(+t[0],t[0]={f1:0,f2:0,f3:0,f4:0,f5:0,f6:m},t.isRadial=!0),r||Jt(t,e,!0)};function Zt(e,t,r){var n,a,i=0,o=0,s=[],l=[],c={},u=0,d=[];if(e=e.constructor===Array?e[0]:e,t=t.constructor===Array?t[0]:t,n=e.split("-"),a=t.split("-"),1===n.length&&1===a.length)return[e,t];for(n=h(n),a=h(a),!n.defaultAngleSet&&a.defaultAngleSet&&(a[0]=n[0]),!a.defaultAngleSet&&n.defaultAngleSet&&(n[0]=a[0]),Jt(n,a),i=1,o=n.length;i<o;++i)u=n[i].position,d.push(u);for(i=1,o=a.length;i<o;++i)u=a[i].position,-1===d.indexOf(u)&&d.push(u);for(d.push(0),d.sort(function(e,t){return e-t}),s=[n[0]],i=1,o=d.length;i<o;++i)u=d[i],c=n.getColorAtPosition(u),s.push(c);for(l=[a[0]],i=1,o=d.length;i<o;++i)u=d[i],c=a.getColorAtPosition(u),l.push(c);return s.isRadial=n.isRadial,l.isRadial=a.isRadial,[s,l];function h(e){var t,n=0,a=0,i=0,o=[],s={},l=0,c=0,u=0,d=0,h=0,f=0,p={f1:.5,f2:.5};for(1===e.length&&(e[0]===N&&(e[0]="rgba(0,0,0,0)"),e.unshift(0),e.defaultAngleSet=!0),isNaN(e[0])?~"rx".indexOf(e[0].charAt(0))?(e.isRadial=!0,d=1,-1!==e[0].indexOf(")")&&(d=e[0].indexOf(")"),h=e[0].indexOf("(")+1,f=d,o=e[0].substr(h,f-h).split(","),p.f1=parseFloat(o[0])||0,p.f2=parseFloat(o[1])||0,~o[2].indexOf("%")&&(o[2]=parseFloat(o[2])/100),p.f3=parseFloat(o[2])||0,p.f4=parseFloat(o[3])||0,p.f5=parseFloat(o[4])||0,p.f6=o[5]),e[0]=e[0].substr(f+1),e.unshift(p)):e[0]=0:e[0]=+e[0],n=1,a=e.length;n<a;++n)o=e[n].split(":"),s=r(o[0]),e[n]={},e[n].r=s.r,e[n].g=s.g,e[n].b=s.b,e[n].opacity=s.opacity,e[n].opacity=+e[n].opacity,isNaN(e[n].opacity)&&(e[n].opacity=1),e[n].position=+o[1];if(e.sort(function(e,t){return"number"==typeof e||e.f1?-1:"number"==typeof t||e.f2?1:isNaN(e.position)&&isNaN(t.position)?0:isNaN(e.position)?-1:isNaN(t.position)?1:e.position-t.position}),0!==+e[1].position)if(isNaN(e[1].position))e[1].position=0;else{for(t in s={},e[1])s[t]=e[1][t];for(s.position=0,e.push({}),n=e.length-1;1!==n;--n)e[n]=e[n-1];e[1]=s}if(100!==e[a=e.length-1].position)if(isNaN(e[a].position))e[a].position=100;else{for(t in s={},e[a])s[t]=e[a][t];s.position=100,e.push(s)}for(n=2,a=e.length;n<a;++n)if(!e[n].position){for(l=e[n-1].position,u=1,i=n+1;i<a;++i)if(++u,!isNaN(e[i].position)){c=+e[i].position;break}e[n].position=l+(c-l)/u}return e.getColorAtPosition=function(e){for(var t=-1,r=this.length,n=1,a=this.length,i=0,o=m,s={r:0,g:0,b:0};n<a-1;++n)if(this[n].position<=e&&(t=n,r=n+1),!(this[n].position<e)&&this[n].position>=e){r=n;break}for(o in i=(e-this[t].position)/(this[r].position-this[t].position),isNaN(i)&&(i=0),s)s[o]=$t((1-i)*this[t][o]+i*this[r][o]);return s.position=e,s.opacity=(1-i)*this[t].opacity+i*this[r].opacity,s},e}}function Qt(e,t){var r,n=[],a=[],i=d(e),o=d(t),s=0,l=0,c=document.createElementNS&&document.createElementNS.bind(document),u=c&&c("http://www.w3.org/2000/svg","path");if(!i||!o||!u)return[e,t];if(function(e,t){var r,n,a=m,i=m;if(u.setAttribute("d","M300 10 L300 300 C50 310,50 640,350 650C600 640,600 310,400 300 L400 10 L295 10"),r=u.getTotalLength(),n=u.getPointAtLength(10),r<1829.1||r>1829.2)return!0;if(300!==Math.round(n.x)||20!==Math.round(n.y))return!0;function o(e){for(var t=e.length;t---1&&e[t].join(m)===e[t-1].join(m);)e.pop()}function s(e){for(var t=m,r=0,n=e.length;r<n;++r)t+=e[r].join(v);return t}if(o(e),o(t),a=s(e),i=s(t),a.split(/[Mm]/).length>2||i.split(/[Mm]/).length>2)return!1;if(e.length===t.length)return!0;return!1}(e,t))return[e,t];if(!e||!t)return[e,t];if(!document.createElementNS)return[e,t];if(i=d(e),o=d(t),-1!==i.join().indexOf("undefined"))return[e,t];if(-1!==o.join().indexOf("undefined"))return[e,t];if(!u.getTotalLength||!u.getPointAtLength)return[e,t];function d(e){var t=[],r=0,n=e.length;if(typeof e===_)return e;for(r=0;r<n;++r){if(!e[r].join)return;r&&e[r+1]&&"M"===e[r+1][0]&&"M"===e[r][0]||t.push(e[r].join(v))}for(r=0,n=(t=(t=t.join(m)).split(/[Mm]/).slice(1)).length;r<n;++r)t[r]="M"+t[r];return t}for(l=Math.max(i.length,o.length),s=0;s<l;++s)r=er(i[s],o[s]),i[s]=r[0],o[s]=r[1];function h(e){var t,r=0,n=[];for(t=(e=e||[]).length,r=0;r<t;++r)e[r].length-1&&n.push(e[r].join(v));return n.join(m)}function f(e,t){for(var r=e.length;r---1&&e[r].slice(1).toString()===e[r-1].slice(1).toString();)e.pop();1===e.length&&t&&(e.length=0)}function p(e,t){for(var r,n=[],a=[],i=e.length,o=0,s=0,l=0,c=0,u=t-i;u>=0;)o=e.length-1,e.push(e.slice(o)[0]),--u;for(i=e.length,o=0;o<=t;++o)a.push(Math.round(o/t*i));for(o=0,r=a.length-1;o<r;++o)n.push(e.slice(a[o],a[o+1])),"M"!==n[o][0][0]&&n[o][0][0]!==Y&&(l=n[o-1].length-1,s=n[o-1][l][1],c=n[o-1][l][2],n[o].unshift(["M",s,c]));return n}for(s=i.length;s--;)f(i[s],s),i[s].length||i.pop();for(s=o.length;s--;)f(o[s],s),o[s].length||o.pop();for(function(e){var t,r=[],n=[],a=[],s=0,l=!0;if(0!==e){for(e>0?(r=o,l=!1):(e=-e,r=i),s=0,t=r.length;s<t;++s)n.push(1);for(;e--;)--s<0&&(s=t-1),n[s]++;for(s=0;s<t;++s)1===n[s]?a.push(r[s]):a.push.apply(a,p(r[s],n[s]));l?i=a:o=a}}(i.length-o.length),l=Math.max(i.length,o.length),s=0;s<l;++s)r=er(h(i[s]),h(o[s])),i[s]=r[0],o[s]=r[1];for(s=0,l=i.length;s<l;++s)n=n.concat(i[s]);for(s=0,l=o.length;s<l;++s)a=a.concat(o[s]);return[n,a]}function er(e,t){var r,n,a,i=0,o=[],s=[];function l(e,t){var r,n,a,i,o=0,s={},l=[],c=[],u=0,d=Math.round;for((r=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttribute("d",e),(n=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttribute("d",t),a=r.getTotalLength(),i=n.getTotalLength(),u=.15*Math.max(a,i),(!(u=Math.ceil(u))||!isFinite(u)||u<10)&&(u=10),o=0;o<=u;++o)s=r.getPointAtLength(o/u*a),l.push([o?Z:J,d(s.x),d(s.y)]),s=n.getPointAtLength(o/u*i),c.push([o?Z:J,d(s.x),d(s.y)]);return[l,c]}for(e&&"M  "!==e||(e=t.split(v).slice(0,3).join(v).replace(/[LC]/,m)),t&&"M  "!==t||(t=e.split(v).slice(0,3).join(v).replace(/[LC]/,m)),n=function(e,t){var r,n,a,i,o=0,s=0,l=0,c=0,u={},d={},h=[],f=[],p=-1,g=-1,b=!0;function y(e){var t,r=0;for(r=0,t=(e=e.split(/[MCLmcl]/).slice(1)).length;r<t;++r)e[r]=e[r].split(v).slice(1),r||e[r].unshift("M"),r&&(2===e[r].length&&e[r].unshift(Z)||e[r].unshift("C"));return e}function w(e,t){var r,n,a=0,i=e.length;for(a=0,i=e.length;a<i;++a)r=e[a].join(v),"C"===(n=e[a])[0]&&n[3]===n[5]&&n[4]===n[6]?e[a].stringValue=[Z,n[3],n[4]].join(v):n.stringValue=r,t[n.stringValue]&&t[n.stringValue].push(a),t[n.stringValue]||(t[n.stringValue]=[a])}function x(e,t,r,n,a){for(var i,o=r,s=0,l=0;o<n;++o)if(i=t[e[o].stringValue])for(s=0,l=i.length;s<l;++s)if(i[s]>=a)return{index:o,mapValue:i[s],diff:o-r};return-1}function _(e){var t=e.length-1;return["M",e[t-1],e[t]].join(v)}function S(e){return e.join(m)}for(e=y(e),t=y(t),w(e,u),w(t,d),r=e.length,n=t.length,o=0,s=0;o<r&&s<n;){if(++g,h[++p]=[],f[g]=[],b=e[o].stringValue===t[s].stringValue,o&&(h[p].push(_(e[o-1])),f[g].push(_(t[s-1]))),b)for(;o<r&&s<n&&e[o].stringValue===t[s].stringValue;)h[p].push(e[o].stringValue),f[g].push(t[s].stringValue),++o,++s;else{for(a=x(e,d,o,r,s),i=x(t,u,s,n,o),l=a.index,c=a.mapValue,(!~a||a.diff>i.diff)&&(l=i.mapValue,c=i.index),~a||~i||(l=r-1,c=n-1);o<=l;)h[p].push(e[o].stringValue),++o;for(;s<=c;)f[g].push(t[s].stringValue),++s}h[p]=S(h[p]),f[g]=S(f[g])}if(o<r){for(h[++p]=[],h[p].push(_(e[o-1])),f[++g]=[],f[g].push(_(t[s-1]));o<r;)h[p].push(e[o].stringValue),++o;h[p]=S(h[p])}if(s<n){for(h[++p]=[],h[p].push(_(e[o-1])),f[++g]=[],f[g].push(_(t[s-1]));s<n;)f[g].push(t[s].stringValue),++s;f[g]=S(f[g])}return[h,f]}(e,t),i=0,r=n[0].length;i<r;++i)a=l(n[0][i],n[1][i]),i?(o=o.concat(a[0].slice(1)),s=s.concat(a[1].slice(1))):(o=o.concat(a[0]),s=s.concat(a[1]));return[o,s]}function tr(e,t,r,n,a,i,s,l){r=le(r);var u,d,h,f,p,g,m,v,y=e.ms,x={},S={},k={};if(null!==t.type){if((l=l||{}).hookFn&&l.hookFn.call(t),l.from=l.from||{},n)for(E=0,L=Gt.length;E<L;E++){var C=Gt[E];if(C.el.id===t.id&&C.anim===e){C.percent!=r?(delete C.el.e,delete C.el,Gt.splice(E,1),h=1):d=C,t.attr(C.totalOrigin);break}}else n=+S;for(var E=0,L=e.percents.length;E<L;E++){if(e.percents[E]===r||e.percents[E]>n*e.top){r=e.percents[E],p=e.percents[E-1]||0,y=y/e.top*(r-p),f=e.percents[E+1],u=e.anim[r];break}n&&t.attr(e.anim[e.percents[E]])}if(u){if(d)d.initstatus=n,d.start=new Date-d.ms*n;else{for(var T in u)if(u[b](T))if(Re[b](T)||t.ca[T]){switch(x[T]=l.from[T]||t.attr(T),null==x[T]&&(x[T]=Pe[T]),S[T]=u[T],v=!1,Re[T]){case"number":((m=S[T]-x[T])||isNaN(m))&&(v=!0),k[T]=m/y;break;case"colour":if(x[T]===S[T])break;v=!0;var M=Zt(x[T],S[T],c.getRGB);x[T]=M[0];var F=M[1];if(typeof F===_)x[T].toLowerCase()!==N?(x[T]=c.getRGB(x[T]),x[T].opacity||(x[T].opacity=1)):x[T]={r:0,g:0,b:0,opacity:0},S[T].toLowerCase()!==N?(F=c.getRGB(S[T])).opacity||(F.opacity=1):F={r:0,g:0,b:0,opacity:0},k[T]={r:(F.r-x[T].r)/y,g:(F.g-x[T].g)/y,b:(F.b-x[T].b)/y,opacity:(F.opacity-x[T].opacity)/y};else for(k[T]=[],E=0,L=x[T].length;E<L;++E)0===E?k[T].push(F[0]):k[T].push({r:(F[E].r-x[T][E].r)/y,g:(F[E].g-x[T][E].g)/y,b:(F[E].b-x[T][E].b)/y,opacity:(F[E].opacity-x[T][E].opacity)/y});break;case"path":var D,I=mt(x[T],S[T]);for(l.smartMorph&&(I=Qt(I[0],I[1])),D=I[1],x[T]=I[0],k[T]=[],E=0,L=x[T].length;E<L;E++){var O;k[T][E]=[0],O=x[T][E]?x[T][E].length:0;for(var P=1;P<O;P++)k[T][E][P]=(D[E][P]-x[T][E][P])/y,!v&&k[T][E][P]&&(v=!0)}break;case"transform":var R=t._,j=wt(R[T],S[T]);if(v=!0,j)for(x[T]=j.from,S[T]=j.to,k[T]=[],k[T].real=!0,E=0,L=x[T].length;E<L;E++)for(k[T][E]=[x[T][E][0]],P=1,O=x[T][E].length;P<O;P++)k[T][E][P]=(S[T][E][P]-x[T][E][P])/y;else{var B=t.matrix||new xt,z={_:{transform:R.transform},getBBox:function(){return t.getBBox(1)}};x[T]=[B.a,B.b,B.c,B.d,B.e,B.f],bt(z,S[T]),S[T]=z._.transform,k[T]=[(z.matrix.a-B.a)/y,(z.matrix.b-B.b)/y,(z.matrix.c-B.c)/y,(z.matrix.d-B.d)/y,(z.matrix.e-B.e)/y,(z.matrix.f-B.f)/y]}break;case"csv":var V=se(u[T])[A](Ce),U=se(x[T])[A](Ce);if("clip-rect"===T)for(x[T]=U,k[T]=[],E=U.length;E--;)((m=V[E]-x[T][E])||isNaN(m))&&(v=!0),k[T][E]=m/y;S[T]=V;break;default:for(V=[][w](u[T]),U=[][w](x[T]),k[T]=[],E=t.ca[T].length;E--;)((m=(V[E]||0)-(U[E]||0))||isNaN(m))&&(v=!0),k[T][E]=m/y}v||(delete x[T],delete S[T],delete u[T],delete k[T])}else(c._availableAttrs[b](T)||"text"===T||t.ca[T])&&(t.attr(T,u[T]),delete u[T]);var H=u.easing,q=c.easing_formulas[H];if(!q)if((q=se(H).match(Ee))&&5===q.length){var G=q;q=function(e){return Yt(e,+G[1],+G[2],+G[3],+G[4],y)}}else q=ze;if(g=u.start||e.start||+new Date,t.e=C={anim:e,percent:r,timestamp:g,start:g+(e.del||0),status:0,initstatus:n||0,stop:!1,ms:y,easing:q,from:x,diff:k,to:S,el:t,callback:u.callback,prev:p,next:f,repeat:i||e.times,origin:t.attr(),totalOrigin:a,parentEl:s,delayend:l&&l.end,delaystart:l&&l.start},Gt.push(C),n&&!d&&!h&&(C.stop=!0,C.start=new Date-y*n,1===Gt.length))return Wt();h&&(C.start=new Date-C.ms*n),1===Gt.length&&(qt||c.getAnimFrameFn())(Wt)}(0,o["default"])("raphael.anim.start."+t.id,t,e)}}}function rr(e){var t;void 0===e&&(e=this);for(var r=0;r<Gt.length;r++)(t=Gt[r].el.paper)&&t!==e||Gt.splice(r--,1)}c.animation=function(e,t,r,n,a){if(e instanceof Kt)return e;!c.is(r,L)&&r||(n=n||r||null,r=null),!c.stopPartialEventPropagation&&(c.stopPartialEventPropagation=a),e=Object(e),t=+t||0;var i,o,s={};for(o in e)e[b](o)&&le(o)!=o&&le(o)+"%"!=o&&(i=!0,s[o]=e[o]);return n&&(i=!0),i?(r&&(s.easing=r),n&&(s.callback=n),new Kt({100:s},t)):new Kt(e,t)},Ft.animate=function(e,t,r,n){var a=this;if(a.removed)return n&&n.call(a),a;var i=e instanceof Kt?e:c.animation(e,t,r,n);return tr(i,a,i.percents[0],null,a.attr()),a},Ft.status=function(e,t){var r,n,a=[],i=0;if(null!=t)return tr(e,this,-1,he(t,1)),this;for(r=Gt.length;i<r;i++)if((n=Gt[i]).el.id===this.id&&(!e||n.anim===e)){if(e)return n.status;a.push({anim:n.anim,status:n.status})}return e?0:a},Ft.pause=function(e,t){var r,n,a=+new Date;for(n=0;n<Gt.length;n++)!((r=Gt[n]).el.id===this.id||t&&r.parentEl&&r.parentEl.e.el&&r.parentEl.e.el.id===this.id)||e&&r.anim!==e||!1!==(0,o["default"])("raphael.anim.pause."+this.id,this,r.anim)&&(r.paused=!0,r.pauseStart=a);return this},Ft.resume=function(e,t){var r,n,a=+new Date;for(n=0;n<Gt.length;n++)!((r=Gt[n]).el.id===this.id||t&&r.parentEl&&r.parentEl.e.el&&r.parentEl.e.el.id===this.id)||e&&r.anim!==e||!1!==(0,o["default"])("raphael.anim.resume."+this.id,this,r.anim)&&(delete r.paused,r.el.status(r.anim,r.status),r.pauseEnd=a,r.start+=(r.parentEl&&r.parentEl.e.pauseEnd||r.pauseEnd)-(r.parentEl&&r.parentEl.e.pauseStart||r.pauseStart)||0);return this},Ft.stop=function(e,t,r){var n,a;if(t)for(i=Gt.length-1;i>=0;i--)!((n=Gt[i]).el.id===this.id||n.parentEl&&n.parentEl.id===this.id)||e&&Gt[i].anim!==e||(a=n.el,r&&a.attr(n.to),n.callback&&n.callback.call(a),delete a.e,delete n.el,Gt.splice(i,1));else for(var i=0;i<Gt.length;i++)(n=Gt[i]).el.id!==this.id||e&&n.anim!==e||!1!==(0,o["default"])("raphael.anim.stop."+this.id,this,n.anim)&&Gt.splice(i--,1);return this.animElements&&function(e){var t;for(;t=e.deq();)(t=t.executeOb).hookFn&&t.hookFn.call(t.el),t.el.attr(t.attrs),t.callback&&t.callback.call(t.el)}(this.animElements),this},o["default"].on("raphael.remove",rr),o["default"].on("raphael.clear",rr),Ft.toString=function(){return"Raphaël’s object"},Ft.toFront=function(){if(this.removed)return this;var e,t,r,n=this,a=c._engine.getNode(n),i=n.parent,o=n.followers;for(c._tofront(n,i)&&i.canvas.appendChild(a),t=0,r=o.length;t<r;t++)(e=o[t]).stalk&&e.el[e.stalk](n);return n},Ft.toBack=function(){if(this.removed)return this;var e,t,r,n=this,a=c._engine.getNode(n),i=n.parent,o=n.followers;for(c._toback(n,i)&&i.canvas.insertBefore(a,i.canvas.firstChild),t=0,r=o.length;t<r;t++)(e=o[t]).stalk&&e.el[e.stalk](n);return n},Ft.insertAfter=function(e){if(this.removed)return this;var t,r,n,a=this,i=c._engine.getNode(a),o=c._engine.getLastNode(e),s=e.parent.canvas,l=a.followers;for(o.nextSibling?s.insertBefore(i,o.nextSibling):s.appendChild(i),c._insertafter(a,e,a.parent,e.parent),r=0,n=l.length;r<n;r++)(t=l[r]).stalk&&t.el[t.stalk](e);return a},Ft.insertBefore=function(e){if(this.removed)return this;var t,r,n,a=this,i=c._engine.getNode(a),o=c._engine.getNode(e),s=a.followers;for(e.parent.canvas.insertBefore(i,o),c._insertbefore(a,e,a.parent,e.parent),a.parent=e.parent,r=0,n=s.length;r<n;r++)(t=s[r]).stalk&&t.el[t.stalk](e);return this},Ft.appendChild=function(e){if(this.removed||"group"!==this.type)return this;var t,r,n,a,i=this,o=i.followers;if(e.parent===i)return e.toFront(),i;for(r=c._engine.getNode(e),c._tear(e,e.parent),i.canvas.appendChild(r),e.parent=i,!i.bottom&&(i.bottom=e),e.prev=i.top,e.next=null,i.top&&(i.top.next=e),i.top=e,n=0,a=o.length;n<a;n++)(t=o[n]).stalk&&t.el[t.stalk](e);return i},Ft.appendTo=function(e){return e.appendChild(this)},Ft.removeChild=function(e){if(this.removed||"group"!==this.type||e.parent!==this)return this;var t=this,r=c._engine.getNode(e),n=t.paper;return c._tear(e,t),n.canvas.appendChild(r),t.parent=n,!n.bottom&&(n.bottom=t),t.prev=n.top,n.top&&(n.top.next=t),n.top=t,t.next=null,t},c.format=function(e,t){var r=(0,s.getArrayCopy)(arguments),n=c.is(t,S)?[0][w](t):r;return e&&c.is(e,_)&&n.length-1&&(e=e.replace(Ae,function(e,t){return null==n[++t]?m:n[t]})),e||m};var nr=c.vml?.5:0;c.crispBound=(0,s.cacher)(function(e,t,r,n,a){var i,o={};return e=e||0,t=t||0,r=r||0,n=n||0,i=(a=a||0)%2/2+nr,o.x=be(e+i)-i,o.y=be(t+i)-i,o.width=be(e+r+i)-i-o.x,o.height=be(t+n+i)-i-o.y,o["stroke-width"]=a,0===o.width&&0!==r&&(o.width=1),0===o.height&&0!==n&&(o.height=1),o},c),Ft.crisp=function(){var e,t=this,r=t.attrs,n=t.attr();for(e in n=c.crispBound(n.x,n.y,n.width,n.height,n["stroke-width"]))r[e]===n[e]&&delete n[e];return t.attr(n)},c.define=function(e,t,r,n,a,i){var o,l;if(c.is(e,S))for(o=0,l=e.length;o<l;o++)c.define(e[o]);else if(c.is(e,k))c.define(e.name,e[e.name],e.ca,e.fn,e.e,e.data);else if(e&&!c.fn[e])return c.fn[e]=function(){var i,o=(0,s.getArrayCopy)(arguments),l=t.apply(this,o);if(n&&c.is(n,k))for(i in n)l[i]=n[i];if(a&&c.is(a,k))for(i in a)l[i]&&l[i](a[i]);if(r){if(c.is(r,L))l.ca[e]=r;else for(i in r)l.ca[i]=r[i];l.ca[e]&&(c._lastArgIfGroup(o,!0),o.length&&(o[0][e]?l.attr.apply(l,o):l.attr(e,o[0])))}return l},r&&(c.fn[e].ca=r),n&&(c.fn[e].fn=n),a&&(c.fn[e].e=a),i&&(c.fn[e].data=i),c.fn[e]},function(e,t,r){null==e.readyState&&e.addEventListener&&(e.addEventListener(t,r=function(){e.removeEventListener(t,r,!1),e.readyState="complete"},!1),e.readyState="loading"),function n(){/in/.test(e.readyState)?setTimeout(n,9):c.eve("raphael.DOMload")}()}(B,"DOMContentLoaded"),o["default"].on("raphael.DOMload",function(){u=!0}),c._preload=function(e,t){var r=j.doc,n=r.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){t.call(this),this.onload=null,r.body.removeChild(this)},n.onerror=function(){r.body.removeChild(this)},r.body.appendChild(n),n.src=e};t["default"]=c},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(284);t["default"]=function(){var e,t,r="0.5.3",a="hasOwnProperty",i=/[\.\/]/,o=/\s*,\s*/,s=function(e,t){return e-t},l={n:{}},c=function(){for(var e=0,t=this.length;e<t;e++)if("undefined"!=typeof this[e])return this[e]},u=function(){for(var e=this.length;--e;)if("undefined"!=typeof this[e])return this[e]},d=Object.prototype.toString,h=String,f=Array.isArray||function(e){return e instanceof Array||"[object Array]"==d.call(e)};function p(r,a){var i,o=t,l=(0,n.getArrayCopy)(arguments),d=Array.prototype.slice.call(l,2),h=p.listeners(r),f=0,g=[],m={},v=[],b=e;v.firstDefined=c,v.lastDefined=u,e=r,t=0;for(var y=0,w=h.length;y<w;y++)"zIndex"in h[y]&&(g.push(h[y].zIndex),h[y].zIndex<0&&(m[h[y].zIndex]=h[y]));for(g.sort(s);g[f]<0;)if(i=m[g[f++]],v.push(i.apply(a,d)),t)return t=o,v;for(y=0;y<w;y++)if("zIndex"in(i=h[y]))if(i.zIndex==g[f]){if(v.push(i.apply(a,d)),t)break;do{if((i=m[g[++f]])&&v.push(i.apply(a,d)),t)break}while(i)}else m[i.zIndex]=i;else if(v.push(i.apply(a,d)),t)break;return t=o,e=b,v}return p._events=l,p.listeners=function(e){var t,r,n,a,o,s,c,u,d=f(e)?e:e.split(i),h=l,p=[h],g=[];for(a=0,o=d.length;a<o;a++){for(u=[],s=0,c=p.length;s<c;s++)for(r=[(h=p[s].n)[d[a]],h["*"]],n=2;n--;)(t=r[n])&&(u.push(t),g=g.concat(t.f||[]));p=u}return g},p.separator=function(e){e?(e="["+(e=h(e).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",i=new RegExp(e)):i=/[\.\/]/},p.on=function(e,t){if("function"!=typeof t)return function(){};for(var r=f(e)?f(e[0])?e:[e]:h(e).split(o),n=0,a=r.length;n<a;n++)(function(e){for(var r,n=f(e)?e:h(e).split(i),a=l,o=0,s=n.length;o<s;o++)a=(a=a.n).hasOwnProperty(n[o])&&a[n[o]]||(a[n[o]]={n:{}});for(a.f=a.f||[],o=0,s=a.f.length;o<s;o++)if(a.f[o]==t){r=!0;break}!r&&a.f.push(t)})(r[n]);return function(e){+e==+e&&(t.zIndex=+e)}},p.f=function(e){var t=(0,n.getArrayCopy)(arguments),r=[].slice.call(t,1);return function(){p.apply(null,[e,null].concat(r).concat([].slice.call(t,0)))}},p.stop=function(){t=1},p.nt=function(t){var r=f(e)?e.join("."):e;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(r):r},p.nts=function(){return f(e)?e:e.split(i)},p.off=p.unbind=function(e,t){if(e){var r=f(e)?f(e[0])?e:[e]:h(e).split(o);if(r.length>1)for(var n=0,s=r.length;n<s;n++)p.off(r[n],t);else{r=f(e)?e:h(e).split(i);var c,u,d,g,m,v=[l],b=[];for(n=0,s=r.length;n<s;n++)for(g=0;g<v.length;g+=d.length-2){if(d=[g,1],c=v[g].n,"*"!=r[n])c[r[n]]&&(d.push(c[r[n]]),b.unshift({n:c,name:r[n]}));else for(u in c)c[a](u)&&(d.push(c[u]),b.unshift({n:c,name:u}));v.splice.apply(v,d)}for(n=0,s=v.length;n<s;n++)for(c=v[n];c.n;){if(t){if(c.f){for(g=0,m=c.f.length;g<m;g++)if(c.f[g]==t){c.f.splice(g,1);break}!c.f.length&&delete c.f}for(u in c.n)if(c.n[a](u)&&c.n[u].f){var y=c.n[u].f;for(g=0,m=y.length;g<m;g++)if(y[g]==t){y.splice(g,1);break}!y.length&&delete c.n[u].f}}else for(u in delete c.f,c.n)c.n[a](u)&&c.n[u].f&&delete c.n[u].f;c=c.n}e:for(n=0,s=b.length;n<s;n++){for(u in(c=b[n]).n[c.name].f)continue e;for(u in c.n[c.name].n)continue e;delete c.n[c.name]}}}else p._events=l={n:{}}},p.once=function(e,t){var r=function(){return p.off(e,r),t.apply(this,arguments)};return p.on(e,r)},p.version=r,p.toString=function(){return"You are running Eve "+r},p}("undefined"!=typeof window?window:"undefined"!=typeof r.g&&r.g)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(316));t["default"]={extension:function(e){(0,a["default"])(e.getDep("redraphael","plugin"))},name:"redraphaelSvg",type:"plugin",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=function(e){if(e.svg){var t,r="hasOwnProperty",n="tspan",o="vertical-align",s="line-height",l="font-size",c="image",u="none",d="text",h="textpath",f=!1,p=!1,g="array",m="middle",v="bottom",b="px",y="function",w="hidden",x="visible",_={visibility:w,"font-size":"0px"},S=String,k="pre",C=parseFloat,A=parseInt,N={top:0,bottom:-1,middle:-.5},E=e._g.win.navigator,L=!!document.documentMode,T=Math,M=T.max,F=T.abs,D=T.pow,I=T.sqrt,O=/^xlink:/,P=/[, ]+/,R=/\n|<br\s*?\/?>/i,j=/&lt|&gt|&quot|&#039|&#034|<br/i,B=/&nbsp;|&#160;|&#xA0;/g,z=Array.prototype.shift,V=!(!/AppleWebKit/.test(E.userAgent)||/Chrome/.test(E.userAgent)&&!(E.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),U=e.eve,H="",q=" ",G="http://www.w3.org/1999/xlink",W="http://www.w3.org/2000/svg",$=(!!E.platform&&/iPad|iPhone|iPod/.test(E.platform),"string"),X={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},Y={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},K=E.userAgent.toLowerCase(),J=!(!(Re=-1!=K.indexOf("msie")&&parseInt(K.split("msie")[1]))||9!==Re),Z=e.supportsPointer,Q=e.supportsTouch,ee={},te=function(t,r,n,a){e._preload(n[1],function(){var e=this.offsetWidth,n=this.offsetHeight;xe(t,{width:e,height:n}),xe(r,{width:e,height:n}),a.safari()})},re=function(e,t){if(t)for(var r in t)e[r]=t[r]},ne={elementInfo:[]},ae=e._g.doc,ie=(e._g.win,{mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"}),oe=function(e,r){var n,a,i,o=[],s=[],l=0,c=be(/<under>/g,/<\/under>/g,e,"<under>","</under>"),u=be(/<bold>/g,/<\/bold>/g,e,"<bold>","</bold>"),d=be(/<em>/g,/<\/em>/g,e,"<em>","</em>"),h=be(/<strike>/g,/<\/strike>/g,e,"<strike>","</strike>"),f=ge(/<sub[\s]+([^>]+)>|<sub>/g,/<\/sub>/g,e,"<sub>","</sub>"),p=ge(/<sup[\s]+([^>]+)>|<sup>/g,/<\/sup>/g,e,"<sup>","</sup>"),g=he(/<abbr[\s]+([^>]+)>/g,/<\/abbr>/g,e,"<abbr>","</abbr>"),m=ve(/<a[\s]+([^>]+)>/g,/<\/a>/g,e,"<a>","</a>"),v=pe(/<span[\s]+([^>]+)>|<span>/g,/<\/span>/g,e,"<span>","</span>");if((i=de(c,u,d,h,f,p,g,m,v)).length){for(i[0].index>l&&(a=e.substring(l,i[0].index),s=ce(s,a,o,r,i),l=i[0].index+i[0].tagName.length),n=0;n<i.length;n++)i[n+1]!==t&&(o=le(o,i[n]),a=0===l&&0===i[n].index?e.substring(l+i[n].tagName.length,i[n+1].index):e.substring(l,i[n+1].index),s=ce(s,a,o,i[n],r,i),l=i[n+1].index+i[n+1].tagName.length);l<e.length&&(a=e.substring(l,e.length),s=ce(s,a,[],r,i))}return s},se={"<bold>":{action:"add",tagAttr:"font-weight",tagAttrVal:"bold"},"</bold>":{action:"remove",actionTag:"<bold>"},"<under>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</under>":{action:"remove",actionTag:"<under>"},"<em>":{action:"add",tagAttr:"font-style",tagAttrVal:"italic"},"</em>":{action:"remove",actionTag:"<em>"},"<strike>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"line-through"},"</strike>":{action:"remove",actionTag:"<strike>"},"<sub>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"sub"},"</sub>":{action:"remove",actionTag:"<sub>"},"<sup>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"super"},"</sup>":{action:"remove",actionTag:"<sup>"},"<abbr>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</abbr>":{action:"remove",actionTag:"<abbr>"},"<a>":{action:"add"},"</a>":{action:"remove",actionTag:"<a>"},"<span>":{action:"add"},"</span>":{action:"remove",actionTag:"<span>"}},le=function(e,t){var r,n;if(t.tagName.match(/<abbr[\s]+([^>]+)>/g))n=ue({tag:"<abbr>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<a[\s]+([^>]+)>/g))n=ue({tag:"<a>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<span[\s]+([^>]+)>/g))n=ue({tag:"<span>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<sub[\s]+([^>]+)>/g))n=ue({tag:"<sub>",sortedIndex:t}),e.push(n);else if(t.tagName.match(/<sup[\s]+([^>]+)>/g))n=ue({tag:"<sup>",sortedIndex:t}),e.push(n);else if("add"===se[t.tagName].action)n=ue({tag:t.tagName,sortedIndex:t}),e.push(n);else if("remove"===se[t.tagName].action)for(r=e.length-1;r>=0;r--)if(e[r].tag===se[t.tagName].actionTag){e.splice(r,1);break}return e},ce=function(t,r,n,i,o,s){var l,c,u,d,h=e._g.doc.createTextNode(r),g={},m=!1,v=!1,b=!1,y="";if((L||a.isFirefox)&&(p&&(g.dy=-6,p=!1),f&&(g.dy=6,f=!1)),n.length){for(d=0;d<n.length;d++)"<abbr>"===n[d].tag?(v=!0,y=n[d].sortedIndex.title):"<a>"===n[d].tag?(m=!0,""!==n[d].href&&(g.href=n[d].sortedIndex.href),""!==i.target&&(g.target=n[d].sortedIndex.target),""!==i.hreflang&&(g.hreflang=n[d].sortedIndex.hreflang),""!==i.referrerpolicy&&(g.referrerpolicy=n[d].sortedIndex.referrerpolicy),""!==i.rel&&(g.rel=n[d].sortedIndex.rel),c=xe("a",g)):"<span>"===n[d].tag?(b=!0,l=n[d].sortedIndex.style):"<sub>"===n[d].tag?(p=!0,l=n[d].sortedIndex.style):"<sup>"===n[d].tag&&(f=!0,l=n[d].sortedIndex.style),se[n[d].tag].tagAttr&&se[n[d].tag].tagAttrVal&&((L||a.isFirefox)&&("<sup>"===n[d].tag?(g.dy=-6,f=!0):"<sub>"===n[d].tag&&(g.dy=6,p=!0)),g[se[n[d].tag].tagAttr]=se[n[d].tag].tagAttrVal);m?""!==r&&((u=xe("tspan",g)).appendChild(h),c.appendChild(u),t.push(c),m=!1):v?""!==r&&((u=xe("tspan",g)).appendChild(h),o.push({tspan:u,title:y}),t.push(u)):b||p||f?""!==r&&(g=ue(g,l),(u=xe("tspan",g)).appendChild(h),t.push(u)):""!==r&&((u=xe("tspan",g)).appendChild(h),t.push(u))}else(u=xe("tspan",g)).appendChild(h),t.push(u);return t},ue=function(e,t){for(var r in t)try{t[r].constructor==Object?e[r]=ue(e[r],t[r]):e[r]=t[r]}catch(n){e[r]=t[r]}return e},de=function(e,t,r,n,a,i,o,s,l){var c,u,d=[e,t,r,n,a,i,o,s,l],h=[];for(u=0;u<d.length;u++)for(var f in d[u])if(d[u][f].length)for(c=0;c<d[u][f].length;c++)h.push(d[u][f][c]);return h=h.sort(function(e,t){return e.index-t.index}),h},he=function(e,t,r,n,a){for(var o,s,l,c,u=[],d=[];o=e.exec(r);)s=document.createElement("p"),l=o[0]+"Dummy</abbr>",s.innerHTML=i["default"].createHTML(l),c=s.childNodes[0]?s.childNodes[0].title:"",u.push({tagName:o[0],index:o.index,title:c||""});for(;o=t.exec(r);)d.push({tagName:a,index:o.index});return{tag:u,endtag:d}},fe=function(e){var t={};if(!e||!e.style||!e.style.cssText)return t;for(var r=e.style.cssText.split(";"),n=0;n<r.length;++n){var a=r[n].trim();if(a){var i=a.split(":");t[i[0].trim()]=i[1].trim()}}return t},pe=function(e,t,r,n,a){for(var o,s,l,c,u=[],d=[];o=e.exec(r);)s=document.createElement("p"),l=o[0]+"Dummy</span>",s.innerHTML=i["default"].createHTML(l),c=fe(s.childNodes[0]),u.push({tagName:o[0],index:o.index,style:c||""});for(;o=t.exec(r);)d.push({tagName:a,index:o.index});return{tag:u,endtag:d}},ge=function(e,t,r,n,a){for(var o,s,l,c,u=[],d=[];o=e.exec(r);)s=document.createElement("p"),l=o[0]+"Dummy"+a,s.innerHTML=i["default"].createHTML(l),c=fe(s.childNodes[0]),u.push({tagName:o[0],index:o.index,style:c||""});for(;o=t.exec(r);)d.push({tagName:a,index:o.index});return{tag:u,endtag:d}},me=function(e){return!!e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g)},ve=function(e,t,r,n,a){for(var o,s,l,c,u=[],d=[];o=e.exec(r);)s=document.createElement("p"),l=o[0]+"</a>",s.innerHTML=i["default"].createHTML(l),c=me(encodeURIComponent(s.childNodes[0].href)),u.push({tagName:o[0],index:o.index,href:c?s.childNodes[0].href:"",target:s.childNodes[0].target?s.childNodes[0].target:"",hreflang:s.childNodes[0].hreflang?s.childNodes[0].hreflang:"",referrerpolicy:s.childNodes[0].referrerpolicy?s.childNodes[0].referrerpolicy:"",rel:s.childNodes[0].rel?s.childNodes[0].rel:""});for(;o=t.exec(r);)d.push({tagName:a,index:o.index});return{tag:u,endtag:d}},be=function(e,t,r,n,a){for(var i,o=[],s=[];i=e.exec(r);)o.push({tagName:n,index:i.index});for(;i=t.exec(r);)s.push({tagName:a,index:i.index});return{tag:o,endtag:s}},ye={"accent-height":!0,accumulate:!0,additive:!0,"alignment-baseline":!0,alphabetic:!0,amplitude:!0,"arabic-form":!0,ascent:!0,azimuth:!0,"baseline-shift":!0,bbox:!0,begin:!0,bias:!0,by:!0,"cap-height":!0,"class":!0,clip:!0,"clip-path":!0,"clip-rule":!0,color:!0,"color-interpolation":!0,"color-interpolation-filters":!0,"color-profile":!0,"color-rendering":!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,direction:!0,display:!0,divisor:!0,"dominant-baseline":!0,dur:!0,dx:!0,dy:!0,elevation:!0,"enable-background":!0,end:!0,exponent:!0,fill:!0,"fill-opacity":!0,"fill-rule":!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,format:!0,fr:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,"glyph-name":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,hanging:!0,height:!0,"horiz-adv-x":!0,"horiz-origin-x":!0,href:!0,hreflang:!0,id:!0,ideographic:!0,"image-rendering":!0,in2:!0,"in":!0,intercept:!0,k1:!0,k2:!0,k3:!0,k4:!0,k:!0,kerning:!0,lang:!0,"letter-spacing":!0,"lighting-color":!0,local:!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,mathematical:!0,max:!0,media:!0,method:!0,min:!0,mode:!0,name:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,"overline-position":!0,"overline-thickness":!0,"paint-order":!0,"panose-1":!0,path:!0,ping:!0,"pointer-events":!0,points:!0,r:!0,radius:!0,rel:!0,"rendering-intent":!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,"shape-rendering":!0,slope:!0,spacing:!0,speed:!0,stemh:!0,stemv:!0,"stop-color":!0,"stop-opacity":!0,"strikethrough-position":!0,"strikethrough-thickness":!0,string:!0,stroke:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,style:!0,tabindex:!0,target:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,to:!0,transform:!0,type:!0,u1:!0,u2:!0,"underline-position":!0,"underline-thickness":!0,unicode:!0,"unicode-bidi":!0,"unicode-range":!0,"units-per-em":!0,"v-alphabetic":!0,"v-hanging":!0,"v-ideographic":!0,"v-mathematical":!0,values:!0,"vector-effect":!0,version:!0,"vert-adv-y":!0,"vert-origin-x":!0,"vert-origin-y":!0,visibility:!0,width:!0,widths:!0,"word-spacing":!0,"writing-mode":!0,x1:!0,x2:!0,x:!0,"x-height":!0,"xlink:actuate":!0,"xlink:arcrole":!0,"xlink:href":!0,"xlink:role":!0,"xlink:show":!0,"xlink:title":!0,"xlink:type":!0,"xml:base":!0,"xml:lang":!0,"xml:space":!0,y1:!0,y2:!0,y:!0,z:!0};Q&&ae.addEventListener(Z?"pointerover":"touchstart",function(e){if(ne.srcElement&&ne.srcElement!==(e.srcElement||e.target)){var t,r,n,a=(t=ne.elementInfo).length;for(n=0;n<a;n++)(r=t[n]).callback.call(r.el,e)}ne={elementInfo:[]}},!0),e.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version},e._url=H;var we=function(e,t,r){void 0===r&&(r="fill");var n="fill"===r?e.gradient:e["stroke-gradient"];if(n){if(n===t)return;n.refCount--,n.refCount||n.parentNode.removeChild(n),"fill"===r?delete e.gradient:delete e["stroke-gradient"]}t&&("fill"===r?e.gradient=t:e["stroke-gradient"]=t,t.refCount++)},xe=e._createNode=function(t,r){var n,a;if(typeof t===$&&(t=e._g.doc.createElementNS(W,t)),r)for(n in r)a=J?S(r[n]):r[n],O.test(n)?t.setAttributeNS(G,n.replace(O,H),a):t.setAttribute(n,a);return t},_e={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},Se={pad:"pad",redlect:"reflect",repeat:"repeat"},ke=function(t,r,n){var a;if(void 0===n&&(n="fill"),!t.paper||!t.paper.defs)return 0;var i,o,s,l,c,u,d="linear",h=t.paper,f=e.getElementID((h.id+"-"+r).replace(/[()\s%:,\xb0#]/g,"_")),p=.5,g=.5,m=t.node,v=m.style,b=e._g.doc.getElementById(f);if(!b){if(r=(r=S(r).replace(e._radial_gradient,function(e,t){d="radial",t=t?t.split(","):[],l=t[5],c=t[6];var r,n,a=t[0],u=t[1],h=t[2],f=t[3],m=t[4],v=a&&u;return h&&(i=/%/.test(h)?h:C(h)),l===_e.userSpaceOnUse?(v&&(p=a,g=u),f&&m&&(o=f,s=m,v||(p=o,g=s)),H):(v&&(p=C(a),r=2*((g=C(u))>.5)-1,(n=D(p-.5,2))+D(g-.5,2)>.25&&n<.25&&(g=I(.25-n)*r+.5)&&.5!==g&&(g=g.toFixed(5)-1e-5*r)),f&&m&&(o=C(f),r=2*((s=C(m))>.5)-1,(n=D(o-.5,2))+D(s-.5,2)>.25&&n<.25&&(s=I(.25-n)*r+.5)&&.5!==s&&(s=s.toFixed(5)-1e-5*r),v||(p=o,g=s)),H)})).split(/\s*-\s*/),"linear"===d){var y,w=r.shift(),x=w.match(/\((.*)\)/);if(x=x&&x[1]&&x[1].split(/\s*,\s*/),w=-C(w),isNaN(w))return null;x&&x.length?(x[0]in _e?(l=x.shift(),x[0]in Se&&(c=x.shift())):(x[4]&&(l=x[4]),x[5]&&(c=x[5])),u=[x[0]||"0%",x[1]||"0%",x[2]||"100%",x[3]||"0%"]):(u=[0,0,T.cos(e.rad(w)),T.sin(e.rad(w))],y=1/(M(F(u[2]),F(u[3]))||1),u[2]*=y,u[3]*=y,u[2]<0&&(u[0]=-u[2],u[2]=0),u[3]<0&&(u[1]=-u[3],u[3]=0))}var _=e._parseDots(r);if(!_)return null;(b=xe(d+"Gradient",{id:f})).refCount=0,l in _e&&b.setAttribute("gradientUnits",S(l)),c in Se&&b.setAttribute("spreadMethod",S(c)),"radial"===d?(i!==undefined&&b.setAttribute("r",S(i)),o!==undefined&&s!==undefined&&(b.setAttribute("cx",S(o)),b.setAttribute("cy",S(s))),b.setAttribute("fx",S(p)),b.setAttribute("fy",S(g))):xe(b,{x1:u[0],y1:u[1],x2:u[2],y2:u[3]});for(var k=0,A=_.length;k<A;k++)b.appendChild(xe("stop",{offset:_[k].offset?_[k].offset:k?"100%":"0%","stop-color":_[k].color||"#fff","stop-opacity":_[k].opacity===undefined?1:_[k].opacity}));h.defs.appendChild(b)}return we(t,b,n),xe(m,((a={})[n]="url('"+e._url+"#"+f+"')",a[n+"-opacity"]=1,a)),v.fill=H,1},Ce=function(e){var t=e.getBBox(1);xe(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},Ae=function(t,n,a){if("path"==t.type){for(var i,o,s,l,c,u=S(n).toLowerCase().split("-"),d=t.paper,h=a?"end":"start",f=t.node,p=t.attrs,g=p["stroke-width"],m=u.length,v="classic",b=3,y=3,w=5;m--;)switch(u[m]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":v=u[m];break;case"wide":y=5;break;case"narrow":y=2;break;case"long":b=5;break;case"short":b=2}if("open"==v?(b+=2,y+=2,w+=2,s=1,l=a?4:1,c={fill:"none",stroke:p.stroke}):(l=s=b/2,c={fill:p.stroke,stroke:"none"}),t._.arrows?a?(t._.arrows.endPath&&ee[t._.arrows.endPath]--,t._.arrows.endMarker&&ee[t._.arrows.endMarker]--):(t._.arrows.startPath&&ee[t._.arrows.startPath]--,t._.arrows.startMarker&&ee[t._.arrows.startMarker]--):t._.arrows={},"none"!=v){var x="raphael-marker-"+v,_="raphael-marker-"+h+v+b+y+"-obj"+t.id;e._g.doc.getElementById(x)?ee[x]++:(d.defs.appendChild(xe(xe("path"),{"stroke-linecap":"round",d:X[v],id:x})),ee[x]=1);var k,C=e._g.doc.getElementById(_);C?(ee[_]++,k=C.getElementsByTagName("use")[0]):(C=xe(xe("marker"),{id:_,markerHeight:y,markerWidth:b,orient:"auto",refX:l,refY:y/2}),k=xe(xe("use"),{"xlink:href":"#"+x,transform:(a?"rotate(180 "+b/2+" "+y/2+") ":H)+"scale("+b/w+","+y/w+")","stroke-width":(1/((b/w+y/w)/2)).toFixed(4)}),C.appendChild(k),d.defs.appendChild(C),ee[_]=1),xe(k,c);var A=s*("diamond"!=v&&"oval"!=v);a?(i=t._.arrows.startdx*g||0,o=e.getTotalLength(p.path)-A*g):(i=A*g,o=e.getTotalLength(p.path)-(t._.arrows.enddx*g||0)),(c={})["marker-"+h]="url('"+e._url+"#"+_+"')",(o||i)&&(c.d=e.getSubpath(p.path,i,o)),xe(f,c),t._.arrows[h+"Path"]=x,t._.arrows[h+"Marker"]=_,t._.arrows[h+"dx"]=A,t._.arrows[h+"Type"]=v,t._.arrows[h+"String"]=n}else a?(i=t._.arrows.startdx*g||0,o=e.getTotalLength(p.path)-i):(i=0,o=e.getTotalLength(p.path)-(t._.arrows.enddx*g||0)),t._.arrows[h+"Path"]&&xe(f,{d:e.getSubpath(p.path,i,o)}),delete t._.arrows[h+"Path"],delete t._.arrows[h+"Marker"],delete t._.arrows[h+"dx"],delete t._.arrows[h+"Type"],delete t._.arrows[h+"String"];for(c in ee)if(ee[r](c)&&!ee[c]){var N=e._g.doc.getElementById(c);N&&N.parentNode.removeChild(N)}}},Ne={"":[u],none:[u],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},Ee=function(t,r,n){if(r!==undefined){var a,i,o,s,l,c=Ne[r.toLowerCase&&r.toLowerCase()];if(r=c||[].concat(r),e.is(r,g)){if(o={round:i=n["stroke-width"]||t.attrs["stroke-width"]||1,square:i,butt:0}[n["stroke-linecap"]||t.attrs["stroke-linecap"]]||0,s=r.length,l=c?i:1,r[0]===u)a=r;else for(a=[];s--;)a[s]=r[s]*l+(s%2?1:-1)*o,a[s]<=0&&(a[s]=.01+(i<=1?o:0)),isNaN(a[s])&&(a[s]=0);return{"stroke-dasharray":a.join(",")}}}},Le=e._setFillAndStroke=function(n,i){if(n.paper.canvas){var o,s,h,f,p,m,v=n.node,b=n.attrs,y=n.paper,x={},_={},k={"clip-rect":!0};for(s in n.type===c&&(0,a.loadRefImage)(n,i),i)if(s in e._availableAttrs)if((h=i[s])===H&&s in b)delete b[s],v.removeAttribute("src"===s?"href":s);else if(null!==h||k[s])switch(b[s]=h,s){case"blur":n.blur(h);break;case"href":case"title":case"target":var C=v.parentNode;if("a"!==C.tagName.toLowerCase()){if(h===H)break;var N=xe("a");N.raphael=!0,N.raphaelid=v.raphaelid,C.insertBefore(N,v),N.appendChild(v),C=N}"target"===s?C.setAttributeNS(G,"show","blank"===h?"new":h):C.setAttributeNS(G,s,h),v.titleNode=C;break;case"cursor":_.cursor=h;break;case"transform":n.transform(h);break;case"rotation":e.is(h,g)?n.rotate.apply(n,h):n.rotate(h);break;case"arrow-start":Ae(n,h);break;case"arrow-end":Ae(n,h,1);break;case"clip-path":f=!0;case"clip-rect":if(m=!f&&S(h).split(P),n._.clipispath=!!f,f||4===m.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var E=xe(f?"path":"rect");(o=xe("clipPath")).id=e.getElementID(e.createUUID()),xe(E,f?{d:h?b["clip-path"]=e._pathToAbsolute(h):e._availableAttrs.path,fill:u}:{x:m[0],y:m[1],width:m[2],height:m[3],transform:n.matrix.invert()}),o.appendChild(E),y.defs.appendChild(o),x["clip-path"]="url('"+e._url+"#"+o.id+"')",n.clip=E}if(!h){var L=v.getAttribute("clip-path");if(L){var T=e._g.doc.getElementById(L.replace(/(^url\(#|\)$)/g,H));T&&T.parentNode.removeChild(T),x["clip-path"]=H,11===document.documentMode&&v.removeAttribute("clip-path"),delete n.clip}}break;case"path":"path"===n.type&&(x.d=h?b.path=e._stopabsolutePath?e.sanitizePath(h):e._pathToAbsolute(h):e._availableAttrs.path,n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&Ae(n,n._.arrows.startString),"endString"in n._.arrows&&Ae(n,n._.arrows.endString,1)));break;case"width":if(x[s]=h,n._.dirty=1,!b.fx)break;s="x",h=b.x;case"x":b.fx&&(h=-b.x-(b.width||0));case"rx":if("rx"===s&&"rect"===n.type)break;case"cx":x[s]=h,n.pattern&&Ce(n),n._.dirty=1;break;case"height":if(x[s]=h,n._.dirty=1,!b.fy)break;s="y",h=b.y;case"y":if(n.type===d&&!n.attrs["text-bound"])break;b.fy&&(h=-b.y-(b.height||0));case"ry":if("ry"===s&&"rect"===n.type)break;case"cy":x[s]=h,n.pattern&&Ce(n),n._.dirty=1;break;case"r":"rect"===n.type?x.rx=x.ry=h:x[s]=h,n._.dirty=1;break;case"src":n.type===c&&v.setAttributeNS(G,"href",h);break;case"stroke-width":1===n._.sx&&1===n._.sy||(h/=M(F(n._.sx),F(n._.sy))||1),y._vbSize&&(h*=y._vbSize),V&&0===h&&(h=1e-6),x[s]=h,!i["stroke-dasharray"]&&b["stroke-dasharray"]&&""!==i["stroke-dasharray"]&&re(x,Ee(n,b["stroke-dasharray"],i)),n._.arrows&&("startString"in n._.arrows&&e.addArrow&&e.addArrow(n,n._.arrows.startString),"endString"in n._.arrows&&e.addArrow&&e.addArrow(n,n._.arrows.endString,1));break;case"stroke-dasharray":re(x,Ee(n,h,i));break;case"fill":if(e._ISURL.test(h)){p=h.split(e._ISURL),o=xe("pattern");var D=xe(c);o.id=e.getElementID(e.createUUID()),xe(o,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),xe(D,{x:0,y:0,"xlink:href":p[1]}),o.appendChild(D),te(o,D,p,y),y.defs.appendChild(o),x.fill="url('"+e._url+p[1]+"')",n.pattern=o,n.pattern&&Ce(n);break}var I=e.getRGB(h);if(I.error){if(("circle"===n.type||"ellipse"===n.type||"r"!==S(h).charAt())&&ke(n,h)){b.gradient=h;break}}else delete i.gradient,delete b.gradient,!e.is(b["fill-opacity"],"undefined")&&e.is(i["fill-opacity"],"undefined")&&(x["fill-opacity"]=b["fill-opacity"]),n.gradient&&we(n);I[r]("opacity")?(x["fill-opacity"]=I.opacity>1?I.opacity/100:I.opacity,n._.fillOpacityDirty=!0):n._.fillOpacityDirty&&e.is(b["fill-opacity"],"undefined")&&e.is(i["fill-opacity"],"undefined")&&(v.removeAttribute("fill-opacity"),delete n._.fillOpacityDirty);case"stroke":(I=e.getRGB(h)).error?"circle"!==n.type&&"ellipse"!==n.type&&"r"===S(h).charAt()||ke(n,h,"stroke"):(x[s]=I.hex,we(n,t,s)),"stroke"===s&&(I[r]("opacity")?(x["stroke-opacity"]=I.opacity>1?I.opacity/100:I.opacity,n._.strokeOpacityDirty=!0):n._.strokeOpacityDirty&&e.is(b["stroke-opacity"],"undefined")&&e.is(i["stroke-opacity"],"undefined")&&(v.removeAttribute("stroke-opacity"),delete n._.strokeOpacityDirty),n._.arrows&&("startString"in n._.arrows&&Ae(n,n._.arrows.startString),"endString"in n._.arrows&&Ae(n,n._.arrows.endString,1)));break;case"gradient":("circle"===n.type||"ellipse"===n.type||"r"!==S(h).charAt())&&ke(n,h);break;case"visibility":h===w?n.hide():n.show();break;case"opacity":h=h>1?h/100:h,x.opacity=h;break;case"fill-opacity":h=h>1?h/100:h,x["fill-opacity"]=h;break;case"shape-rendering":n.attrs[s]=h=Y[h]||h||"auto",x[s]=h,v.style.shapeRendering=h;break;case"line-height":case"vertical-align":break;default:s===l&&(h=A(h,10)+"px"),n._.dirty=1,x[s]=h,a.dashedAttr2CSSMap[s]&&(_[a.dashedAttr2CSSMap[s]]=h)}else s in b&&(delete b[s],v.removeAttribute("src"===s?"href":s));else s in ye&&(h===H&&s in b?(delete b[s],v.removeAttribute(s)):(b[s]=h,_[s]=h));for(s in _)v.style[s]=_[s];for(s in x)v.setAttribute(s,x[s]);n.type===d&&!i["_do-not-tune"]&&Me(n,i)}},Te=e._updateFollowers=function(){var e,t,r,n=(0,a.getArrayCopy)(arguments),i=z.call(n),o=z.call(n);for(e=0,t=i.followers.length;e<t;e++)(r=i.followers[e].el)[o].apply(r,n)},Me=function(a,c){if(a.type===d&&(c[r](d)||c[r]("font")||c[r](l)||c[r]("x")||c[r]("y")||c[r](s)||c[r](o)||c[r](h))){var u,f,p,y,w,x,A,E,T,M,F,D,I,O,P=a.attrs,z=a.paper.defs,V=a.parent,U=a.node,G=a._oldAttr=a._oldAttr||{baseLineDiff:8,valign:-.5},W=C(c[s]||P[s]),X=c.direction||P.direction||V&&V.attrs&&V.attrs.direction||G.direction||"initial",Y=!1,K=[],J=[],Z=[],Q=L||"rtl"!==X?1:2,ee=!1,te=!1,re=!1,ne=!1,ae=function(e){return e&&B.test(e)},ie=function(e){return e.replace(/\s+/g," ").trim().replace(B," ")};if(c[r](h)){var se,le,ce,ue=e.getElementID(e.createUUID()),de=c[h],he=0,fe={};for(var pe in de)de.hasOwnProperty(pe)&&("path"!==pe||"href"in de?fe[pe]=de[pe]:G.textPathStr!==de[pe]?(a.textPathDef?(a.textPathDef.setAttribute("d",de[pe]||H),fe.href="#"+a.textPathDef.getAttribute("id"),fe["xlink:href"]="#"+a.textPathDef.getAttribute("id")):(a.textPathDef=z.appendChild(xe("path",{id:ue,d:de[pe]||H})),fe.href="#"+ue,fe["xlink:href"]="#"+ue),G.textPathStr=de[pe]):(fe.href="#"+a.textPathDef.getAttribute("id"),fe["xlink:href"]="#"+a.textPathDef.getAttribute("id")));if(c[r](d)?(ce=e._g.doc.createTextNode(c[d]||H),G.pathText=P.text=c[d]||H):(ce=e._g.doc.createTextNode(G.pathText||G.text||H),G.pathText=G.pathText||G.text||H,delete G.text),c[r](o)?(c[o]===m?(he=.3,G.valign=-.5):c[o]===v?(he=.7,G.valign=-1):"top"===c[o]&&(G.valign=0),(le=xe("tspan",{dy:he+"em"})).appendChild(ce),G.tSpan=le):!G.tSpan||G.tSpan.textContent!==c[d]&&typeof c[d]===$?(he=-.5===G.valign?.3:-1===G.valign?.7:0,(le=xe("tspan",{dy:he+"em"})).appendChild(ce),G.tSpan=le):le=G.tSpan,c[d]!==t){for(delete G.x,delete G.y,U.removeAttribute("x"),U.removeAttribute("y"),(se=xe("textPath",fe)).appendChild(le||ce);U.firstChild;)U.removeChild(U.firstChild);U.appendChild(se)}}else{if(G.direction=X,a.textPathDef&&z&&(a.textPathDef.parentNode.removeChild(a.textPathDef),delete a.textPathDef),delete G.txtNode,delete G.tSpan,delete G.textPathStr,(c[r](d)||G.pathText)&&(I=e.is(c.text,g)?c.text.join("<br>"):null==c.text?G.pathText:c.text,delete G.pathText,(I=I.toString())!==G.text&&(te=!0,I&&j.test(I)&&(I=I.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;|&#034;/g,'"').replace(/&#039;/g,"'").replace(/&<br\/>lt;|&l<br\/>t;|&lt<br\/>;/g,"<<br/>").replace(/&<br\/>gt;|&g<br\/>t;|&gt<br\/>;/g,"><br/>")),I=I.replace(/<u>/g,"<under>").replace(/<\/u>/g,"</under>").replace(/<b>/g,"<bold>").replace(/<\/b>/g,"</bold>").replace(/<strong>/g,"<bold>").replace(/<\/strong>/g,"</bold>").replace(/<em>/g,"<em>").replace(/<\/em>/g,"</em>").replace(/<i>/g,"<em>").replace(/<\/i>/g,"</em>").replace(/<strike>/g,"<strike>").replace(/<\/strike>/g,"</strike>").replace(/<s>/g,"<strike>").replace(/<\/s>/g,"</strike>").replace(/<del>/g,"<strike>").replace(/<\/del>/g,"</strike>").replace(/<sub>/g,"<sub>").replace(/<\/sub>/g,"</sub>").replace(/<sup>/g,"<sup>").replace(/<\/sup>/g,"</sup>"),G.text=P.text=I,R.test(I)?(G.noTSpan&&(G.noTSpan=!(O=!0)),A=(T=S(I).split(R)).length):(O=!0,G.noTSpan=!0,A=1),G.lineCount!==A&&(G.lineCount=A,ee=!0))),O)for(;U.firstChild;)U.removeChild(U.firstChild);if(W||(W=1.2*(u=(u=c.fontSize||c[l]||P[l]||V&&V.attrs&&V.attrs.fontSize)?u.toString().replace(b,H):10)),W!==G.lineHeight&&(G.lineHeight=W,G.baseLineDiff=.75*W,ee=!0),G.lineCount>1){if(U.style.whiteSpace===k&&(U.style.whiteSpace=""),p={},G.tspanAttr||(G.tspanAttr={},G.tspan0Attr={}),G.tspanAttr.dy!==G.lineHeight&&(G.tspanAttr.dy=p.dy=G.lineHeight,Y=!0),c[r]("x")&&G.tspanAttr.x!==c.x&&(G.tspan0Attr.x=G.tspanAttr.x=p.x=P.x,Y=!0),te)for(D=U.childNodes,y=0;y<A;y++){if(F=D[y*Q],K=oe(T[y],Z),F){if(F.innerHTML=i["default"].createHTML(H),L)for(;F.firstChild;)F.removeChild(F.firstChild);Y&&xe(F,y?p:G.tspan0Attr)}else F=xe(n,y?G.tspanAttr:G.tspan0Attr),U.appendChild(F),L||"rtl"!==X||((M=xe(n,_)).appendChild(e._g.doc.createTextNode("i")),U.appendChild(M));if(T[y]||(F.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),T[y]=q),ae(T[y])?(T[y]=ie(T[y]),F.style.whiteSpace=k):F.style.whiteSpace===k&&(F.style.whiteSpace=""),K.length)for(var ge=0;ge<K.length;ge++)F.appendChild(K[ge]);else F.appendChild(e._g.doc.createTextNode(T[y]));if(Z.length)for(w=0;w<Z.length;w++)(x=a.paper.text({display:"none"})).node=Z[w].tspan,a.abbrArr||(a.abbrArr=[]),a.abbrArr.push({el:x,title:Z[w].title})}else if(Y)for(E=(D=U.childNodes).length,y=0;y<E;y+=Q)xe(D[y],y?p:G.tspan0Attr);if(E=A*Q,U.childNodes.length>E)for(y=U.childNodes.length-1;y>=E;y-=1)U.removeChild(U.childNodes[y])}else if(te){if(ae(I)?(I=ie(I),U.style.whiteSpace=k):U.style.whiteSpace===k&&(U.style.whiteSpace=""),(J=oe(I,Z)).length)for(var me=0;me<J.length;me++)U.appendChild(J[me]);else U.appendChild(e._g.doc.createTextNode(I));if(Z.length)for(w=0;w<Z.length;w++)(x=a.paper.text({display:"none"})).node=Z[w].tspan,a.abbrArr||(a.abbrArr=[]),a.abbrArr.push({el:x,title:Z[w].title})}c[o]&&(f=N[P[o]]||0)!==G.valign&&(G.valign=f,ee=!0),ee&&(G.shift=G.baseLineDiff+G.lineCount*G.lineHeight*G.valign,ne=!0),"number"==typeof c.y&&c.y!==G.y&&(re=!0),(ne||re)&&(G.y=Math.round(P.y+G.shift),xe(U,{y:G.y}))}}},Fe=function(t,r,n){var a=this,i=n||r;
/*! dontAppend && */i.canvas&&i.canvas.appendChild(t),a.node=a[0]=t,t.raphael=!0,t.raphaelid=a.id=e._oid++,a.matrix=e.matrix(),a.realPath=null,a.attrs=a.attrs||{},a.followers=a.followers||[],a.paper=r,a.ca=a.customAttributes=a.customAttributes||new r._CustomAttributes,a._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},a.parent=i,!i.bottom&&(i.bottom=a),a.prev=i.top,i.top&&(i.top.next=a),i.top=a,a.next=null},De=function(e,t,r){var n=r?"pageY":"pageX";return Math.abs(t[n]-e[n])},Ie=e.storeHandlers=function(e,t,r){e._actualListners||(e._actualListners=[]),e._derivedListeners||(e._derivedListeners=[]),e._actualListners.push(t),e._derivedListeners.push(r)},Oe=function(e,t){var r,n=e._actualListners.indexOf(t);return-1!==n&&(r=e._derivedListeners[n],e._actualListners.splice(n,1),e._derivedListeners.splice(n,1)),r},Pe=e.el;Fe.prototype=Pe,Pe.constructor=Fe,e._engine.getNode=function(e){var t=e.node||e[0].node;return t.titleNode||t},e._engine.getLastNode=function(e){var t=e.node||e[e.length-1].node;return t.titleNode||t},Pe.rotate=function(e,t,r){var n,a=this;return a.removed||(Te(a,"rotate",e,t,r),(e=S(e).split(P)).length-1&&(t=C(e[1]),r=C(e[2])),e=C(e[0]),null==r&&(t=r),null!=t&&null!=r||(t=(n=a.getBBox(1)).x+n.width/2,r=n.y+n.height/2),a.transform(a._.transform.concat([["r",e,t,r]]))),a},Pe.scale=function(e,t,r,n){var a,i=this;return i.removed||(Te(i,"scale",e,t,r,n),(e=S(e).split(P)).length-1&&(t=C(e[1]),r=C(e[2]),n=C(e[3])),e=C(e[0]),null==t&&(t=e),null==n&&(r=n),null!=r&&null!=n||(a=i.getBBox(1)),r=null==r?a.x+a.width/2:r,n=null==n?a.y+a.height/2:n,i.transform(i._.transform.concat([["s",e,t,r,n]]))),i},Pe.translate=function(e,t){var r=this;return r.removed||(Te(r,"translate",e,t),(e=S(e).split(P)).length-1&&(t=C(e[1])),e=C(e[0])||0,t=+t||0,r.transform(r._.transform.concat([["t",e,t]]))),r},Pe.transform=function(t){var r,n=this,a=n._;return null==t?a.transform:(e._extractTransform(n,t),n.clip&&!a.clipispath&&xe(n.clip,{transform:n.matrix.invert()}),n.pattern&&Ce(n),n.node&&xe(n.node,{transform:n.matrix}),1===a.sx&&1===a.sy||(r=n.attrs["stroke-width"])&&n.attr({"stroke-width":r}),n)},Pe.hide=function(){var e=this;return Te(e,"hide"),!e.removed&&e.paper.safari(e.node.style.display=u),e},Pe.show=function(){var e=this;return Te(e,"show"),!e.removed&&e.paper.safari(e.node.style.display=H),e},Pe.remove=function(){if(!this.removed&&this.parent.canvas){var r,n=this,a=e._engine.getNode(n),i=n.paper,o=i.defs;for(i.__set__&&i.__set__.exclude(n),U.unbind("raphael.*.*."+n.id),n.gradient&&o&&we(n),n["stroke-gradient"]&&o&&we(n,t,"stroke"),n.textPathDef&&o&&(n.textPathDef.parentNode.removeChild(n.textPathDef),delete n.textPathDef);r=n.followers.pop();)r.el.remove();for(;r=n.bottom;)r.remove();if(n._drag&&n.undrag(),n.events)for(;r=n.events.pop();)r.unbind();for(r in n.parent.canvas.contains(a)&&n.parent.canvas.removeChild(a),n.removeData(),delete i._elementsById[n.id],e._tear(n,n.parent),n)n[r]=typeof n[r]===y?e._removedFactory(r):null;n.removed=!0}},Pe._getBBox=function(){var e,t,r,n=this,i=n.node,s={},l=n.attrs,c=n.type===d;L&&c?e=(0,a.showRecursively)(n):i.style.display===u&&(n.show(),r=!0);try{s=i.getBBox(),c&&(s.x===undefined&&(s.isCalculated=!0,t=l["text-anchor"],s.x=(l.x||0)-s.width*("start"===t?0:t===m?.5:1)),s.y===undefined&&(s.isCalculated=!0,t=l[o],s.y=(l.y||0)-s.height*(t===v?1:t===m?.5:0)))}catch(h){}finally{s=s||{}}return L&&c?e&&e():r&&n.hide(),s},Pe.attr=function(t,n){if(this.removed)return this;var a,i,o,s,l,c,d,h,f=this.attrs,p={},g=this._invokedCa||(this._invokedCa={}),m=this.ca;if(null==t){var v={};for(a in f)f[r](a)&&(v[a]=f[a]);return v.gradient&&v.fill===u&&(v.fill=v.gradient)&&delete v.gradient,v.transform=this._.transform,v.visibility=this.node.style.display===u?w:x,v}if(null==n){if(e.is(t,"object"))s=t;else if(e.is(t,$))return"fill"===t&&f.fill===u&&f.gradient?f.gradient:"transform"===t?this._.transform:"visibility"===t?this.node.style.display===u?w:x:t in f?f[t]:e.is(m[t],y)?m[t].def:e._availableAttrs[t]}else(s={})[t]=n;if(!e.stopPartialEventPropagation)for(a in s)U("raphael.attr."+a+"."+this.id,this,s[a],a);for(a in s)if((h=m[a])&&!g[a]&&e.is(h,y)){for(l in g[a]=!0,c=h.apply(this,[].concat(s[a])),g[a]=!1,c)p[l]=c[l];f[a]=s[a]}else p[a]=s[a];for(Le(this,p),i=0,o=this.followers.length;i<o;i++)(d=this.followers[i]).cb&&!d.cb.call(d.el,p,this)||d.el.attr(p);return this},Pe.pinchstart=function(t,r){var n=this,a={},i=function(i){if(i.touches&&2===i.touches.length){var o=i.touches[0],s=i.touches[1];n._blockDrag=!0,i&&i.preventDefault(),e.makeSelectiveCopy(a,i),a.data={finger0:o,finger1:s,distanceX:De(o,s),distanceY:De(o,s,!0)},t.call(r||n,a)}else n._blockDrag=!1};Ie(n,t,i),n.node.addEventListener("touchstart",i)},Pe.unpinchstart=function(e){var t=this,r=Oe(t,e);t.__blockDrag=!1,t._pinchDragStarted=!1,r&&t.node.removeEventListener("touchstart",r)},Pe.pinchmove=function(t,r){var n=this,a={},i=function(i){if(i.touches&&2===i.touches.length){var o=i.touches[0],s=i.touches[1];i&&i.preventDefault(),n._pinchDragStarted=!0,e.makeSelectiveCopy(a,i),a.data={finger0:o,finger1:s,distanceX:De(o,s),distanceY:De(o,s,!0)},t.call(r||n,a)}};Ie(n,t,i),n.node.addEventListener("touchmove",i)},Pe.unpinchmove=function(e){var t=Oe(this,e);t&&this.node.removeEventListener("touchmove",t)},Pe.pinchend=function(e,t){var r=this,n=function(n){r._pinchDragStarted&&(r._pinchDragStarted=!1,e.call(t||r,n))};Ie(r,e,n),r.node.addEventListener("touchend",n)},Pe.unpinchend=function(e){var t=this,r=Oe(t,e);t._pinchDragStarted=!1,r&&t.node.removeEventListener("touchend",r)},Pe.pinch=function(e,t,r){Pe.pinchstart.call(this,e),Pe.pinchin.call(this,t),Pe.pinchend.call(this,r)},Pe.unpinch=function(e,t,r){Pe.unpinchstart.call(this,e),Pe.unpinchin.call(this,t),Pe.unpinchend.call(this,r)},Pe.fcwheel=function(t,r){var n=this,a={},i=function(i){i&&i.preventDefault(),e.makeSelectiveCopy(a,i),t.call(r||n,a)};Ie(n,t,i),n.node.addEventListener("wheel",i)},Pe.fcunwheel=function(e){var t=Oe(this,e);t&&this.node.removeEventListener("wheel",t)},Pe.on=function(t,r,n){if(r&&t){var a,i,o=this,s=t.match(/fc-/),l=r;if(this.removed)return this;switch(o._actualListners||(o._actualListners=[]),o._derivedListeners||(o._derivedListeners=[]),t){case"fc-dragstart":return o.drag(null,r),o;case"fc-dragmove":return o.drag(r),o;case"fc-dragend":return o.drag(null,null,r),o;case"fc-dbclick":return o.dbclick(r,n),o;case"fc-pinchstart":return o.pinchstart(r,n),o;case"fc-pinchmove":return o.pinchmove(r,n),o;case"fc-pinchend":return o.pinchend(r,n),o;case"fc-click":return o.fcclick(r,n),o;case"fc-wheel":return o.fcwheel(r,n),o}return s&&(t=t.replace(/fc-/,"")),s&&Q&&(i=t,t=(Z?e.safePointerEventMapping[t]:ie[t])||t,"mouseout"===i&&(l=function(e){Z&&Q&&!e.isPrimary||(ne.elementInfo.push({el:n||o,callback:r}),ne.srcElement=e.srcElement||e.target)},t=Z?"pointerover":"touchstart")),this._&&this._.RefImg&&("load"===t||"error"===t)?(a=this._.RefImg,l=function(e){!o.removed&&r.call(o,e)}):a=this.node,l===r&&(l=function(e){(!Z||!Q||e.isPrimary)&&r.call(n||o,e)}),o._actualListners.push(r),o._derivedListeners.push(l),a.addEventListener?a.addEventListener(t,l):a["on"+t]=l,this}},Pe.off=function(t,r){var n,a,i,o=this,s=r,l=t.match(/fc-/);if(this.removed||!o._actualListners||!t||!r)return this;switch(t){case"fc-dragstart":return o.undragstart(r),o;case"fc-dragmove":return o.undragmove(r),o;case"fc-dragend":return o.undragend(r),o;case"fc-dbclick":return o.undbclick(r),o;case"fc-pinchstart":return o.unpinchstart(r),o;case"fc-pinchmove":return o.unpinchmove(r),o;case"fc-pinchend":return o.unpinchend(r),o;case"fc-click":return o.fcunclick(r),o;case"fc-wheel":return o.fcunwheel(r),o}return l&&(t=t.replace(/fc-/,"")),s=r,l&&Q&&(n=t,t=(Z?e.safePointerEventMapping[t]:ie[t])||t,"mouseout"===n&&(t=Z?"pointerover":"touchstart")),i=this._&&this._.RefImg?this._.RefImg:this.node,-1!==(a=o._actualListners.indexOf(s))&&(s=o._derivedListeners[a],o._actualListners.splice(a,1),o._derivedListeners.splice(a,1)),i.removeEventListener?i.removeEventListener(t,s):i["on"+t]=null,this},e._engine.path=function(e,t,r){var n=xe("path"),a=new Fe(n,e,r);return a.type="path",t&&a.attr(t),a},e._engine.group=function(e,t,r,n){var a=xe("g"),i=new Fe(a,e,r);return i.type="group",i.canvas=i.node,i.top=i.bottom=null,i._id=t||H,t&&(n?a.setAttribute("class","raphael-group-"+t):a.setAttribute("class","raphael-group-"+i.id+"-"+t)),i},e._engine.circle=function(e,t,r){var n=xe("circle"),a=new Fe(n,e,r);return a.type="circle",t&&a.attr(t),a},e._engine.rect=function(e,t,r){var n=xe("rect"),a=new Fe(n,e,r);return a.type="rect",t.rx=t.ry=t.r,t&&a.attr(t),a},e._engine.ellipse=function(e,t,r){var n=xe("ellipse"),a=new Fe(n,e,r);return a.type="ellipse",t&&a.attr(t),a},e._engine.image=function(e,t,r){var n=xe(c),a=new Fe(n,e,r,!0);return a._.group=r||e,a.type=c,n.setAttribute("preserveAspectRatio",u),t&&a.attr(t),a},e._engine.text=function(e,t,r,n){var a=xe(d),i=new Fe(a,e,r);return i.type=d,n&&i.css&&i.css(n,undefined,!0),t&&i.attr(t),i},e._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var t,r=e._getContainer.apply(0,arguments),n=r&&r.container,a=r.x,i=r.y,o=r.width,s=r.height;if(!n)throw new Error("SVG container not found.");var l,c=xe("svg"),u="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;vertical-align:middle;";return Q&&(e.isIE10?u+="-ms-touch-action:pan-y;":u+="touch-action:pan-y;"),a=a||0,i=i||0,xe(c,{height:s=s||342,version:1.1,width:o=o||512,xmlns:W}),1===n?(c.style.cssText=u+"position:absolute;left:"+a+"px;top:"+i+b,(n=e._g.doc.body).appendChild(c),l=1):(c.style.cssText=u+"position:relative",n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c)),(t=new e._Paper).width=o,t.height=s,t.canvas=c,t.container=n,xe(c,{id:"raphael-paper-"+t.id}),t.clear(),t._left=t._top=0,l&&(t.renderfix=function(){}),t.renderfix(),t},e._engine.setViewBox=function(e,t,r,n,a){U("raphael.setViewBox",this,this._viewBox,[e,t,r,n,a]);var i,o,s=M(r/this.width,n/this.height),l=this.top,c=a?"meet":"xMinYMin";if(null==e?(this._vbSize&&(s=1),delete this._vbSize,i="0 0 "+this.width+q+this.height):(this._vbSize=s,i=e+q+t+q+r+q+n),xe(this.canvas,{viewBox:i,preserveAspectRatio:c}),s)for(;l;)o="stroke-width"in l.attrs?l.attrs["stroke-width"]:1,l.attr({"stroke-width":o}),l._.dirty=1,l._.dirtyT=1,l=l.prev;return this._viewBox=[e,t,r,n,!!a],this},e.prototype.detachPaper=function(){!1!==this._detached&&(this.container.removeChild(this.canvas),this._detached=!0)},e.prototype.attachPaper=function(){this._detached&&(this.container.appendChild(this.canvas),this._detached=!1)},e.prototype.renderfix=function(){var e,t=this.canvas,r=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch(i){e=t.createSVGMatrix()}var n=-e.e%1,a=-e.f%1;(n||a)&&(n&&(this._left=(this._left+n)%1,r.left=this._left+b),a&&(this._top=(this._top+a)%1,r.top=this._top+b))},e.prototype._desc=function(t){var r=this.desc;if(r)for(;r.firstChild;)r.removeChild(r.firstChild);else this.desc=r=xe("desc"),this.canvas.appendChild(r);r.appendChild(e._g.doc.createTextNode(e.is(t,$)?t:"Created with Red Raphaël "+e.version))},e.prototype.clear=function(){var e;for(U("raphael.clear",this);e=this.bottom;)e.remove();for(e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,e.appendChild(this.desc=xe("desc")),e.appendChild(this.defs=xe("defs"))},e.prototype.remove=function(){var t;for(U("raphael.remove",this);t=this.bottom;)t.remove();for(t in this.defs&&this.defs.parentNode.removeChild(this.defs),this.desc&&this.desc.parentNode.removeChild(this.desc),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]=typeof this[t]===y?e._removedFactory(t):null;this.removed=!0},e.prototype.setHTMLClassName=function(){}}var Re};var a=r(284),i=n(r(305))},(e,t)=>{"use strict";function r(e){var t={data:{}};if(!e)return t;if("string"==typeof e)try{t.data=JSON.parse(e)}catch(r){t.error=r}else t.data=e;return t}function n(e){if(!e||!e.isRaw)return this.getChartData({format:"json",isRaw:0});if(e.isRaw&&parseInt(e.isRaw,10)){var t=parseInt(e.isRaw,10);return this.getChartData({format:"json",isRaw:t})}return this.getChartData("json")}function a(e){this.setChartData(e,"json"),null!=this&&this.options&&"scatter"===(null==this?void 0:this.options.chartType)&&this.render()}t.__esModule=!0,t["default"]=void 0;t["default"]={extension:function(e){return e&&(e.prototype.setJSONData=a),e&&(e.prototype.getJSONData=n),{format:"json",toJSON:r,fromJSON:r}},name:"JSON",type:"transcoder",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(293)),o=n(r(319)),s=n(r(320)),l=n(r(321)),c=n(r(322)),u=n(r(323)),d=n(r(324)),h=n(r(328)),f=n(r(329));var p={oneInAFrame:!0};t["default"]={extension:function(e){var t=e.getDep("redraphael","plugin"),r={};t.fn._elementFromEvent=function(e){if(!e||this.removed)return null;var t=e,n=t.srcElement||t.target||(t=t.originalEvent)&&(t.srcElement||t.target)||r;return"tspan"===n.nodeName&&(n=n.parentNode),this.getById(n.raphaelid)},t.requestAnimFrame=i["default"].addJob&&function(e){i["default"].addJob(e,i.priorityList.animation,p)},t.instantRequestAnimFrame=i["default"].addJob&&function(e){i["default"].addJob(e,i.priorityList.instant)},(0,h["default"])(t),(0,o["default"])(t),(0,s["default"])(t),(0,l["default"])(t),(0,c["default"])(t),(0,u["default"])(t),(0,d["default"])(t),(0,f["default"])(t)},name:"redraphaelExt",type:"plugin",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,r,a,i=e.eve,o=e._g,s=e.fn,l=e.el,c=/[, ]+/,u="",d=" ",h=/\B([A-Z]{1})/g,f="fusioncharts-raphael-stylesheet";(a=(r=function(e){this.styleSheet=u,this.rules={},this.ns=e||u}).prototype).getSheet=function(){var t=this.node;return this.styleSheet=a.getStyleSheet(f),this.styleSheet||((t=this.node=o.doc.createElement("style")).setAttribute("id",e.format("raphael-stylesheet-{0}",e._oid++)),t.setAttribute("type","text/css"),t.setAttribute("title",f),(o.doc.head||o.doc.getElementsByTagName("head")[0]).appendChild(this.node),this.styleSheet=a.getStyleSheet(f)),this.styleSheet},a.getStyleSheet=function(e){for(var t,r=o.doc.styleSheets,n=r.length;n--;)if((t=r[n]).title===e)return t},a.applyCSSRule=function(e,t){var r,n=this.styleSheet;if(!n){if(!e||!t)return;n=this.getSheet()}r=(n.rules||n.cssRules||{}).length||0,n.insertRule?n.insertRule(e+"{"+t+"}",r):n.addRule&&n.addRule(e,t,r)},a.removeCSS=function(e){var t,r=this.styleSheet,n=r.rules||r.cssRules||{},a=n.length||0,i=e;for(i=i||this.ns;a--;)t=n[a],new RegExp(i).test(t.selectorText)&&(r.removeRule?r.removeRule(a):r.deleteRule(a))},a.destroy=function(){this.removeCSS(),delete this.node,delete this.styleSheet,delete this.ns,delete this.rules},a.clear=function(){this.removeCSS(),this.rules={}},a.add=function(e,t,r){var n,a=u,i=this.rules[e]||(this.rules[e]={}),o=r?u:"\t",s=r?":":": ";for(n in t)(i[n]=t[n])&&(a+=o+n.replace(h,"-$1").toLowerCase()+s+i[n]+";");this.applyCSSRule(e,a)},a.render=function(){this.setCssText()},a.setCssText=function(e){var t,r,n=e?u:"\t",a=e?":":": ",i=u,o=u;for(t in this.rules){for(r in i=u,o=t.replace(/(^|\,)/g,"$1"+this.ns+d),t=this.rules[t])t[r]&&(i+=n+r.replace(h,"-$1").toLowerCase()+a+t[r]+";");this.applyCSSRule(o,i)}},i.on("raphael.new",function(){this._stylesheet=this._stylesheet||new r,this.cssNamespace(u)}),i.on("raphael.remove",function(){this._stylesheet&&this._stylesheet.destroy(),delete this._stylesheet}),s.cssNamespace=function(t){return arguments.length&&(this._stylesheet.ns=e.format("{0}#raphael-paper-{1}",t&&t+d||u,this.id)),this._stylesheet.ns},s.cssAddRule=function(e,t){if(1===arguments.length&&"object"==typeof e){for(var r in e)this.cssAddRule(r,e[r]);return this}return this._stylesheet.add(e,t),this},s.cssRender=function(){return e.svg&&this._stylesheet.render(),this},s.cssClear=function(){return this._stylesheet.clear(),this},e.ca["class"]=function(t){var r,n,a,i,o=this,s=t,l=o.node,c=o.paper,h="."+s,f="fusioncharts-div",p=c._stylesheet&&c._stylesheet.rules,g=o.parent,m=o.attrs,v={};if(e.svg)s=s||u,l.setAttribute("class","group"===o.type&&o._id?"raphael-group-"+o.id+"-"+o._id+d+s:s);else if(e.vml&&(r=l.className="group"===o.type?s&&o._id+d+s||o._id:"rvml "+s,l.className=r?r+" "+f:f,h&&p)){for(i in n=p[h])"color"===i&&"text"===o.type&&(i="fill"),!m[i]&&(v[i]=n[i]);for(;g&&g.attr;){if(a=g.attr("class"))for(i in n=p[h="."+a+d+h])"color"===i&&"text"===o.type&&(i="fill"),!m[i]&&!v[i]&&(v[i]=n[i]);g=g.parent}o.css(v)}},l.css=function(r,n,a){var o,s,l,u,d,h,f,p=r;if(this.removed)return this;if(this.styles||(this.styles={}),n===t&&e.is(p,"string")){for(l={},h=0,f=(o=p.split(c)).length;h<f;h++)(p=o[h])in this.styles&&(l[p]=this.styles[p]);return f-1?l:l[o[0]]}if(n===t&&e.is(p,"array")){for(l={},h=0,f=p.length;h<f;h++)l[p[h]]=this.styles(p[h]);return l}for(h in n!==t?(s={})[p]=n:p&&e.is(p,"object")&&(s=p),d={},s)u=h.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),e._availableAttrs.hasOwnProperty(u)||"color"===u?("color"===u&&"text"===this.type&&(u="fill"),d[u]=s[h],d.dirty=!0):(i("raphael.css."+u+"."+this.id,this,s[h],u),this.node.style[u]=s[h],this.styles[u]=s[h]);for(h=0,f=this.followers.length;h<f;h++)this.followers[h].el.attr(s);return d.hasOwnProperty("dirty")&&(delete d.dirty,a&&(d["_do-not-tune"]=!0),this.attr(d)),this},l.removeCSS=function(t){var r,a,i,o=t;if(!o&&(o=n.appliedCSS),this.removed)return this;if(e.is(o,"string")&&(o=o.split(",")),e.is(o,"array"))for(i=o.length,a=0;a<i;a++)r=o[a].replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),this.node.removeAttribute(r),this.node.style[r]="";return this}};var n=r(281)},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,r,a=window,i=Math.sqrt,o=a.parseFloat,s=a.parseInt,l="none",c="round",u="stroke-width",d="drop-shadow",h="rgba(0,0,0,1)",f=a.SVGFilterElement||a.SVGFEColorMatrixElement&&2===a.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,p={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","stroke-linejoin":"stroke-linejoin","shape-rendering":"shape-rendering",opacity:"opacity","fill-opacity":"fill-opacity"};e.svg?(f&&(e.filterShadow=function(t,r){var a,s,l,c,u=t.dx||1,f=t.dy||1,p=t.spread||3,g=t.color||"rgb(64,64,64)",m=t.paper,v=m.cacheShadows||(m.cacheShadows={}),b=t.id||d+"-"+(r?"layered":"non-layered")+"-"+[u,f,p,g].join(" ")+m.container.id,y=t.id||e.getElementID(b.replace(/[\(\)\s%:,\xb0#]/g,"_")),w=!!(t.id?e._g.doc.getElementById(y):v[b]);return m&&!w?((g=e.color(g)).error&&(g=e.color(h)),l=(0,n.pluck)(g.opacity,1),l=t.opacity||l,s=(a=m.addDefs({filter:{tagName:"filter",id:y,y:"-1000%",x:"-1000%",width:"2000%",height:"2000%",children:[{tagName:"feOffset",result:"offOut","in":"SourceGraphic",dx:o(u),dy:o(f)},{tagName:"feColorMatrix",result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+l+" 0"},{tagName:"feGaussianBlur",result:"blurOut","in":"matrixOut",stdDeviation:r?1:i(o(p))},{tagName:"feComposite","in":"SourceGraphic",in2:"blurOut",operator:"over"}]}})).filter.children,c=v[b]={use:1,hash:b,id:y,filter:a.filter.element,offset:s[0].element,matrix:s[1].element,blur:s[2].element,blend:s[3].element}):(c=v[b]).use+=1,c},e.el.dropshadow=function(t,n,a,i,o,s){var c,u,h,f,p,g,m,v,b=this,y=b._.shadowFilter,w=b.paper,x=w.cacheShadows||(w.cacheShadows={}),_=d+[t,n,a,i].join(" ");for(p=f=.05*o,m=1;m<=3;m++)p+=f*m*(o-p);if(u=(c=s?b.shadowElem||b.clone({fill:l,stroke:"rgb(51, 51, 51)","stroke-width":b.attr("stroke-width")||1,opacity:p},s).translate(t,n).follow(b,r,!s&&"before"):b).shadowElem&&c.shadowElem.node||c.node,t===l){if(y){if(y.use-=1,u.removeAttribute("filter"),b.shadowElem&&b.shadowElem.attr("opacity",0),!y.use){for(h in _=y.hash,y)(v=y[h]).parentNode&&v.parentNode.removeChild(v),delete y[h];v=null,delete x[_]}y=null,delete b._.shadowFilter}}else s&&!b.shadowElem&&(g=!0),s&&(b.shadowElem=c),y=y&&x[_]?x[_]:b._.shadowFilter=e.filterShadow({paper:w,dx:t,dy:n,spread:a,color:i,opacity:!s&&p},!!s),!g&&b.shadowElem&&b.shadowElem.attr("opacity",p),u.setAttribute("filter",'url("'+e._url+"#"+y.id+'")');return this}),r=function(e,t){var r,n,a=this,i={};for(n in e)switch(p[n]&&(i[n]=e[n],delete e[n]),n){case"transform":(r=t.matrix.clone()).translate(a.__shadowx,a.__shadowy),a.transform(r.toTransformString());break;case u:e[n]=i[n]||1}for(n in a.attr(e),i)e[n]=i[n]},e.ca[d]=function(t,a,i,o,d,f){var p,g,m,v,b,y,w,x=this,_=x._.shadows||(x._.shadows=[]),S=t,k=a,C=o;if(x.__shadowblocked)return!1;if(S===l)for(;g=_.pop();)g.remove();else for((C=e.color(C)).error&&(C=e.color(h)),d instanceof Array?(b=d[0],y=d[1]):b=y=d,b=1/(0,n.pluck)(b,1),y=1/(0,n.pluck)(y,1),S=(0,n.pluck)(S,1)*b,k=(0,n.pluck)(k,1)*b,p=.05*(0,n.pluck)(C.opacity,1),m=s(x.attr(u)||1,10)+6,(v=x.matrix.clone()).translate(S,k),w=1;w<=3;w++)(g=(_[w-1]||x.clone().follow(x,r,!f&&"before")).attr({stroke:C.hex,"stroke-opacity":p*w,opacity:"1","stroke-width":(m-2*w)*y,transform:v.toTransformString(),"stroke-linecap":c,"stroke-linejoin":c,fill:l})).__shadowlevel=w,g.__shadowscale=y,g.__shadowx=S,g.__shadowy=k,f&&f.appendChild(g),_.push(g);return!1},e.el.shadow=function(r,a,i,o){var s,c=r,u=a,h=i,f=o;if(h&&h.constructor===e.el.constructor&&(f=h,h=t),"object"==typeof c&&(u&&u.constructor===e.el.constructor&&(f=u),u=c.opacity,h=c.scalefactor,s=c.useFilter!==t?!!c.useFilter:!n.isIE9,c=c.apply===t?!!u:c.apply),u===t&&(u=1),this.dropshadow){if(s&&!this.ca.hasOwnProperty("drop-shadow"))return c&&this.dropshadow(1,1,3,"rgb(64,64,64)",u,f)||this.dropshadow(l),this;this._.shadowFilter&&this.dropshadow(l)}return this.attr(d,c?[1,1,3,"rgba(64,64,64,"+u+")",h,f]:l)}):e.vml?(e.ca["drop-shadow"]=function(r,a,i,s,c,d){var f,p,g,m,v=this,b=v._.shadow,y=r,w=a,x=s;return v.isShadow||(y===l?b&&(b=v._.shadow=b.remove()):(b||(b=v._.shadow=v.clone(),d&&d.appendChild(b.follow(v))||b.follow(v,t,"before"),b.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,b.attr(u)<=0&&b.attr(u,1)),p=(f=b.node.runtimeStyle).filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),(x=e.color(x)).error&&(x=e.color(h)),m=(0,n.pluck)(x.opacity,1)/5,g=c instanceof Array?c[0]:c,g=1/(0,n.pluck)(c,1),y=(0,n.pluck)(y,1)*g,w=(0,n.pluck)(w,1)*g,b.translate(y,w),f.filter=p+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+o(.4*i)+" makeShadow=True Color="+x.hex+' shadowOpacity="'+m+'");')),!1},e.el.shadow=function(r,n,a,i){var o=r,s=n,c=a,u=i;return c&&c.constructor===e.el.constructor&&(u=c,c=t),"object"==typeof o&&(s&&"group"===s.type&&(u=s),s=o.opacity,c=o.scalefactor,o=o.apply===t?!!s:o.apply),s===t&&(s=1),this.attr(d,o||!s?[1,1,5,"rgba(64,64,64,"+s+")",c,u]:l)}):e.canvas&&(e.el.shadow=function(){return this})};var n=r(281)},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){e.svg?(e.createOutlineFilter=function(t){var r,n,a,l,p,m=t.paper,v=t.rgbObj,b=t.colorMapText,y=m.outlineFilterCaches;return a=m.filterColorMap[b]=g(v),r=s+i+[b,a].join(c),n=e.getElementID(r.replace(/[\(\)\s%:,\xb0#]/g,"_")),p=(l=e.isFirefox?m.addDefs({filter:{tagName:"filter",id:n,children:[{tagName:"feMorphology",result:"DILATED","in":"SourceAlpha",operator:"dilate",radius:e.isIE11?"1.5":"1"},{tagName:"feFlood",result:"FLOOD","flood-color":a===o?u:d,"flood-opacity":"1"},{tagName:"feComposite",result:"OUTLINE","in":"FLOOD",in2:"DILATED",operator:"in"},{tagName:"feMerge",children:[{tagName:"feMergeNode","in":"OUTLINE"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]}}):m.addDefs({filter:{tagName:"filter",id:n,children:[{tagName:"feColorMatrix",result:"COLORED","in":"SourceGraphic",type:"matrix",values:a===o?f:h},{tagName:"feOffset",dx:"1",dy:"1",result:"OFFSET11","in":"COLORED"},{tagName:"feOffset",dx:"-1",dy:"-1",result:"OFFSET-1-1","in":"COLORED"},{tagName:"feOffset",dx:"-1",dy:"1",result:"OFFSET-11","in":"COLORED"},{tagName:"feOffset",dx:"1",dy:"-1",result:"OFFSET1-1","in":"COLORED"},{tagName:"feMerge",children:[{tagName:"feMergeNode","in":"OFFSET1-1"},{tagName:"feMergeNode","in":"OFFSET-1-1"},{tagName:"feMergeNode","in":"OFFSET11"},{tagName:"feMergeNode","in":"OFFSET-11"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]}})).filter.children,y[a]={hash:r,id:n,filter:l.filter.element,morph:p[0].element,flood:p[1].element,composite:p[2].element,merge:p[3].element}},e.el.outlineText=function(t,r){var o;if(r&&r!==l){o=/(^#[0-9A-Fa-f]{6}$)|(^#[0-9A-Fa-f]{3}$)/.test(r)?(0,n.convertColor)(r):r;var s,c,u=this.node,d=this.paper,h=d.outlineFilterCaches||(d.outlineFilterCaches={}),f=d.filterColorMap||(d.filterColorMap={}),g=p(o),m=a+i+g.R+i+g.G+i+g.B;t?(c=(s=f[m])&&h[s]?h[s]:e.createOutlineFilter({rgbObj:g,paper:d,colorMapText:m}),u.setAttribute("filter",'url("'+e._url+"#"+c.id+'")')):u.removeAttribute("filter")}}):e.el.outlineText=function(){return this}};var n=r(281),a="rgb",i="-",o="darkFilter",s="text-outline",l="none",c=" ",u="#000000",d="#ffffff",h="1 1 1 1 255 1 1 1 1 255 1 1 1 1 255 0 0 0 1 0",f="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0",p=function(e){var t=e.split("(")[1].split(")")[0].split(",");return{R:+t[0],G:+t[1],B:+t[2]}},g=function(e){return(299*e.R+587*e.G+114*e.B)/1e3>123?o:"brightFilter"}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,r=/rgba\([\d]+\,[\d]+\,[\d]+\,0\)$/,a=window,i=Math,o=i.cos,s=i.sin,l=i.PI,c=a.parseInt,u=a.parseFloat,d=String,h=Array.prototype.slice,f="hasOwnProperty",p="none",g="M",m="L",v="Z",b="text-bound",y=/\s*\,\s*/g;e&&e._availableAnimAttrs&&e._availableAnimAttrs.cx&&(e._availableAnimAttrs["scroll-position"]=e._availableAnimAttrs.cx);e.define&&e.define([{name:"polypath",polypath:function(){return this.path(t,e._lastArgIfGroup(arguments))},ca:{polypath:function(t,r,n,a,i,d){var h,f,p,b,y,w=t,x=r,_=n,S=a,k=i,C=d;if(h=[],w=c(w,10)||0,x=u(x)||0,_=u(_)||0,S=u(S)||0,k=null===k||isNaN(k)?.5*l:e.rad(k),C=null===C||isNaN(C)?0:u(C),b=k,w>2)switch(f=2*l/w,C){case 0:for(p=0;p<w;p++)h.push(m,x+S*o(-b),_+S*s(-b)),b+=f;h[0]=g,h.push(v);break;case 1:for(p=0;p<w;p++)h.push(g,x,_,m,x+S*o(-b),_+S*s(-b)),b+=f;break;default:for(y=S*o(f*=.5)*(1-C),p=0;p<w;p++)h.push(m,x+S*o(-b),_+S*s(-b)),b+=f,h.push(m,x+y*o(-b),_+y*s(-b)),b+=f;h[0]=g,h.push(v)}else 0===S?h.push(g,x,_,m,x,_,v):h.push(g,x-S,_,"A",S,S,0,0,0,x+S,_,"A",S,S,0,0,0,x-S,_,v);return{path:h}},r:function(e){var t=this.attrs.polypath;return t[3]=e,this.attr("polypath",t),!1}}}]),e.ca[b]=function(n,a,i,o,s,l,c){var u=this,d=u.paper,h=u._.textbound,f=i,g=s;if(this._origOpacity=c!==t?c:1,"text"===this.type)return a&&a!==p&&!r.test(a)||n&&n!==p&&!r.test(n)?(u.attrs[b]=arguments,(!f||!e.is(f,"finite"))&&(f=0),(!g||!e.is(g,"finite"))&&(g=0),!h&&(h=u._.textbound=d.rect(0,0,0,0,u.group).follow(u,e.ca[b].reposition,"before")),h.attr({stroke:a||p,"stroke-width":f,fill:n||p,"shape-rendering":1===f?"crisp":"",r:g}),c!==t&&h.attr("opacity",c),l&&h.attr("stroke-dasharray",l),e.ca[b].reposition.call(h,u.attr(),u),!1):(u._.textbound=h&&h.unfollow(u).remove(),!1)},e.ca[b].reposition=function(e,t){var r,a,i,o,s,l,c,h,p,g=this,m={};e[f]("visibility")&&g.attr("visibility",e.visibility),(e[f](b)||e[f]("x")||e[f]("y")||e[f]("text")||e[f]("text-anchor")||e[f]("text-align")||e[f]("font-size")||e[f]("line-height")||e[f]("vertical-align")||e[f]("transform")||e[f]("rotation")||e[f]("opacity"))&&(a=(r=t.attrs)[b],i=d(a&&a[3]||"0").split(y),o=u(i[0])||0,s=(0,n.pluck)(u(i[1]),o),h=(l=t.getBBox()).width,p=l.height,g._origOpacity=t._origOpacity||1,c=u(e.opacity||r.opacity),m.opacity=isNaN(c)?g._origOpacity:g._origOpacity*c,isNaN(h)||(m.x=l.x-o,m.y=l.y-s,m.width=Math.max(h+2*o,0),m.height=Math.max(p+2*s,0)),g.attr(m))},e.fn.symbol=function(){var r,n=arguments,a=n.length-1,i=n[a];return i&&i.constructor===e.el.constructor?n[a]=t:i=t,(r=this.path(t,i)).ca.symbol=e.fn.symbol.ca.symbol,n.length===!!i+0?r:r.attr("symbol",n)},e.fn.getSuggestiveRotation=function(){var e,t,r,n;return e=arguments[0],1===arguments.length?(t=e.angle,r=e.x,n=e.y):(t=e,r=arguments[1],n=arguments[2]),"r"+(t=t||0)+","+r+","+n},e.fn.symbol.cache={"":e._cacher(function(e,t,r,n){var a=r;return arguments.length>3?["M",e,t,"h",a,"v",n,"h",-a,"v",-n,"z"]:["M",e-a,t-a,"h",a*=2,"v",a,"h",-a,"v",-a,"z"]})},e.fn.symbol.ca={symbol:function(t){var r,n,a=t,i=e.is(a,"object")&&1===arguments.length&&!e.is(a,"function")?a:arguments;i===a&&(a=i[0]),n=(r=e.is(a,"function")&&a||e.fn.symbol.cache[a]||e.fn.symbol.cache[""])&&r.apply(e,h.call(i,1)),e.is(n,"array")||e.is(n,"string")?this.attr("path",n):n&&this.attr(n)}},e.addSymbol=function(t,r){var n,a,i=r,o=e.fn.symbol.cache,s=[];for(a in n=e.is(i,"function")&&((n={})[t]=i,n)||t)i=n[a],o[a]=e.is(i,"function")&&e._cacher(i,e)||(s.push(a),i);for(a=s.pop();a;)o[a]=o[o[a]],a=s.pop()}};var n=r(281)},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,r="top",a="middle",i="bottom",o="left",s="right",l=function(e,r,n){return function(){var a,i,o,s=c(e._.imageGridAttr,r),l=1,u=1,d=1;if(s.tileInfo&&(l=s.tileInfo.xCount,u=d=s.tileInfo.yCount,o=s.y,delete s.tileInfo),e._.gridElem){for(i=0;i<e._.gridElem.length;i++)e._.gridElem[i].remove();e._.gridElem.length=0}for(i=0;l&&s.width&&s.height;)d--,0===i?e.attr(n?Object.assign(s,{applysrc:e._._src}):s):(a=e.clone().attr({x:s.x,y:s.y}),e._.gridElem.push(a.follow(e,t,"after"))),s.y+=s.height,0===d&&(d=u,l--,s.x+=s.width,s.y=o),i++}},c=function(e,t){var r;if(e){var a=e.displayMode,i=e.vAlign,o=e.hAlign,s=e.scale,l=e.canvasBorderWidth,c=e.canvasWidth,u=e.canvasHeight,d=t.width*(s/100),h=t.height*(s/100),f=c-2*l,p=u-2*l;r=(0,n.getAlignImage)(i,o,a,d,h,c,u,l,f,p)}return r||{x:0,y:0,width:t.width,height:t.height}};e.define&&e.define([{name:"imagegrid",imagegrid:function(){var r,n,a=arguments,i=a.length-1,o=a[i];return o&&o.constructor===e.el.constructor?a[i]=t:o=t,r=new Image,(n=this.image(o))._.gridElem=[],n._.refImage=r,n._attr=n.attr,n.attr=function(e,r){var a=e,i=Array.isArray(a),o=!i&&"object"==typeof a,s="string"==typeof a;if(i&&(o="object"==typeof(a=a[0])),o){var l=Object.assign({},a),c=l&&l.src,u=l&&l.applysrc;delete l.src,delete l.applysrc,c&&delete n._._src,n._attr(l),c&&n._attr({_src:c}),u&&n._attr({src:u})}else{if(a===t&&r===t)return this.attrs;if(r===t)return this.attrs[a];s&&r&&("src"===a?n._attr({_src:r}):"applysrc"===a?n._attr({src:r}):n._attr({name:r}))}return this},r.onload=l(n,r,!0),r.onerror=function(e){return function(){e.hide();for(var t=0,r=e._.gridElem&&e._.gridElem.length;t<r;t++)e._.gridElem[t].remove();e._.gridElem=[],e._attr({src:e._._src}),setTimeout(function(){e.show()},100)}}(n),n},ca:{imagegrid:function(e,t,n,c,u,d,h){void 0===c&&(c=100),void 0===u&&(u=0),void 0===d&&(d=0),void 0===h&&(h=0);var f=this,p=t,g=n;"tile"===e||"fill"===e||"fit"===e?(p!==r&&p!==a&&p!==i&&(p=a),g!==o&&g!==a&&g!==s&&(g=a)):(p!==r&&p!==a&&p!==i&&(p=r),g!==o&&g!==a&&g!==s&&(g=o)),f._.imageGridAttr={displayMode:e,vAlign:p,hAlign:g,scale:c,canvasBorderWidth:u,canvasWidth:d,canvasHeight:h},this._._src&&l(f,f._.refImage)()},_src:function(e){return this._.refImage.src=e,this._._src=e,{_src:e}}}}])};var n=r(286)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=function(e){var t,r,n,l,c=window,u=c.document,d=/msie/i.test(c.navigator.userAgent)&&!c.opera,h="VML"===e.type,f="none",p="px",g={cursor:"cursor"},m={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},v={fill:"backgroundColor",stroke:"borderColor",color:"color"},b={left:0,top:0,padding:0,border:f,margin:0,outline:f,"-webkit-apperance":f,position:"absolute",zIndex:20},y=new o["default"],w=function(e){return e&&e.replace(/^#?([a-f0-9]+)/gi,"#$1")||f},x=function(e,t,r,n){var a,i=u.createElement(e);for(a in t)m[a]?i.style[a]=t[a]:i.setAttribute(a,t[a]);for(a in r)i.style[a]=r[a];return n&&n.appendChild&&n.appendChild(i),i};(r=(l=function(e,t,r){var n=this,a=t;a&&a instanceof l&&(a=a.element),n.element=x(e,r,b,a),n.nodeName=e.toLowerCase(),n.added=Boolean(a),n.attrs={}}).prototype={attr:function(e){var r,n,a,i,o,l,c,f,b,y,x=this,_=x.element,S={};if("object"!=typeof e)return x[e]!==t?x[e]:function(e,r,n){var a,i;if("string"==typeof r)n!==t&&null!==n?e.setAttribute(r,n):e&&e.getAttribute&&(i=e.getAttribute(r));else if(r!==t&&null!==r&&"object"==typeof r)for(a in r)e.setAttribute(a,r[a]);return i}(_,e);for(r in e){if(a=e[r],g[r]){if("cursor"===r)"pointer"===a&&h&&(a="hand");_.style[g[r]]=a,i=!0}else if(m[r])_.style[m[r]]=a+p,i=!0;else if(v[r])_.style[v[r]]=w(a),i=!0;else if(/^visibility$/i.test(r))o="hidden"===a,_.style.display=o?"none":"",x.hidden=o,i=!0;else if(/^opacity$/i.test(r))_.style.opacity=a,d&&(n=100*Number(a),_.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+n+")"),i=!0;else if(/^innerhtml$/i.test(r)){if(h&&"select"===_.nodeName.toLowerCase()){for(l=a.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/gi);_.firstChild;)_.removeChild(_.firstChild);for(f=0,b=l.length;f<b;f+=1)c=l[f],y=u.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi.test(c)&&(y.value=c.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),y.text=c.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/gi,"$1 "),_.options.add(y)}else"input"!==_.nodeName.toLowerCase()&&a!==t&&(_.innerHTML=a||"");i=!0}else/^text$/i.test(r)?("input"!==_.nodeName.toLowerCase()&&(_.innerHTML=s["default"].createHTML(""),a!==t&&_.appendChild(u.createTextNode(a))),i=!0):/^type$/i.test(r)&&d&&x.added&&(i=!0);i&&(S[r]=a,delete e[r],i=!1)}for(r in e)_.setAttribute(r,e[r]);for(r in S)x[r]=x.attrs[r]=e[r]=S[r],delete S[r];return this},val:function(e){var r=this,n=r.element,a=e===t;if("input"===r.nodeName&&"checkbox"===n.getAttribute("type"))return a?r.checked()?1:0:r.checked(e);if("select"===r.nodeName){var o=n.childNodes,s=n.selectedIndex,l=o.length;if(""===e)return;if(!a)for(var c=0;c<l;c++)if(o[c].value===e)return n.selectedIndex=c,o[c].value;return i.isIE9&&(s=0),a?o[s].value:(o[l-1].value=e,n.selectedIndex=l-1,r)}return a?n.value:(n.value=e,r)},checked:function(e){var r=this.element;return e===t?r.checked:(e?r.setAttribute("checked","checked"):r.removeAttribute("checked"),this)},css:function(e,r){var n,a=this.element.style;if("object"==typeof e)for(n in e)a[n]=e[n];else n&&r!==t&&(a[n]=r);return this},translate:function(e,r){var n=this.element;return e!==t&&(n.style.left=e+p),r!==t&&(n.style.top=r+p),this},add:function(e,t){var r=this.element,n=e.element;return t?n.insertBefore(r,n.firstChild):n.appendChild(r),this.added=!0,this},hide:function(){return this.element.style.display="none",this},show:function(){return this.element.style.display="",this},isVisible:function(){return"none"!==this.element.style.display},focus:function(){"function"==typeof this.element.focus?this.element.focus():a["default"].fire(this.element,"focus")},destroy:function(){var t,r=this,a=r.element||{};for(t in a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.onblur=a.onfocus=null,a=function(e){n||(n=x("div")),e&&n.appendChild(e),n.innerHTML=s["default"].createHTML("")}(a),delete r.element,r)r[t]="function"==typeof r[t]?e._removedFactory(t):null;return r.removed=!0,null},on:function(e,t){var r=t;return y.on(this.element,e,r),this},off:function(e,t){y.off(this.element,e,t)},bind:function(e,t,r){return a["default"].listen(this.element,e,t,r),this},unbind:function(e,t){return a["default"].unlisten(this.element,e,t),this},trigger:function(e,t){return a["default"].fire(this.element,e,t),this}}).remove=r.destroy,r.constructor=l,e.fn.html=function(t,r,n,a){var i,o,s={};for(o in r&&"type"in r&&(s.type=r.type,delete r.type),i=new l(t,a,s).css(n).attr(r),s)r[o]=s[o];return i.ca=function(){return!1},i.appendTo=function(e){var t=e;this.parent=t,t&&t instanceof l&&(t=t.element),t.appendChild(this.element)},i.animateWith=e.el.animateWith,i}};var a=n(r(283)),i=r(281),o=n(r(325)),s=n(r(305))},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(326)),o=n(r(327)),s={elementInfo:[]},l={mouseover:"pointerover",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseout:"pointerout"},c={mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"},u={blur:!0},d=window.navigator,h="ontouchstart"in document||d.maxTouchPoints||d.msMaxTouchPoints,f="onpointerover"in document,p=function(e,t,r,n){var i;if(void 0===n&&(n=e),"fc-click"===t)return function(e,t,r){var n,i,o,s,l,c;if(void 0===r&&(r=e),!e._clickHandlerHelper){var u=function(t){e._lastEventTriggered="mousedown",s=t.clientX!==a?t.clientX:t.changedTouches&&t.changedTouches[0].clientX,l=t.clientY!==a?t.clientY:t.changedTouches&&t.changedTouches[0].clientY},d=function(t){var r=t.clientX!==a?t.clientX:t.changedTouches&&t.changedTouches[0].clientX,n=t.clientY!==a?t.clientY:t.changedTouches&&t.changedTouches[0].clientY;(Math.abs(s-r)>=2.5||Math.abs(l-n)>=2.5)&&(e._lastEventTriggered=a)};for(i in c=!f&&h?{touchstart:function(){e._lastEventTriggered="touchstart",e._lastEventTriggeredAt=(new Date).getTime()},touchmove:d}:f&&h?{pointerdown:u,pointermove:d}:{mousedown:u,mousemove:d})e.addEventListener?e.addEventListener(i,c[i]):e.attachEvent("on"+i,c[i]);e._clickHandlerHelper=c,e._clickEventCount=0}return++e._clickEventCount,!f&&h?(i="touchend",o=function(n){"touchstart"===e._lastEventTriggered&&(new Date).getTime()-e._lastEventTriggeredAt<=500&&setTimeout(function(){t.call(r,n)},0)}):(i="click",o=function(n){"mousedown"===e._lastEventTriggered&&t.call(r,n)}),(n={})[i]=o,n}(e,r);var o,d=t,p=d.match(/fc-/),g=r;return p&&(d=d.replace(/fc-/,"")),p&&h&&(o=d,d=(f?l[d]:c[d])||d,"mouseout"===o&&(g=function(e){f&&h&&!e.isPrimary||(s.elementInfo.push({el:n,callback:r}),s.srcElement=e.srcElement||e.target)},d=f?"pointerover":"touchstart")),g===r&&(g=function(e){(!f||!h||e.isPrimary||u[e.type])&&r.call(n,e)}),(i={})[d]=g,i},g=function(e,t){if("fc-click"===t)return function(e){var t,r=e._clickHandlerHelper;if(! --e._clickEventCount){for(t in r)e.removeEventListener?e.removeEventListener(t,r[t]):e.detachEvent("on"+t,r[t]);e._clickHandlerHelper=a}}(e)};h&&document.addEventListener(f?"pointerover":"touchstart",function(e){if(s.srcElement&&s.srcElement!==(e.srcElement||e.target)){var t,r,n=s.elementInfo,a=n.length;for(r=0;r<a;r++)(t=n[r]).callback.call(t.el,e)}s={elementInfo:[]}},!0);var m=function(){function e(){this.mapper=new i["default"]}var t=e.prototype;return t.on=function(e,t,r,n){void 0===n&&(n={});var a,i,s=this.mapper,l=[e,t,r];if((0,o["default"])(l)&&!(a=s.getValue(l))){for(i in a=p(e,t,r),s.setValue(l,a),a)e.addEventListener?e.addEventListener(i,a[i]):e.attachEvent("on"+i,a[i]);return!0}return!1},t.off=function(e,t,r){var n,a,i=this.mapper,s=[e,t,r];if((0,o["default"])(s)&&(n=i.getValue(s))){for(a in g(e,t),n)e.removeEventListener?e.removeEventListener(a,n[a]):e.detachEvent("on"+a,n[a]);return i.clear(s),!0}return!1},e}();t["default"]=m},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r=function(){function e(){this.map=new Map}var t=e.prototype;return t.clear=function(e){var t=this;void 0===e&&(e=[]);var r=this.map,n=e.length;e.forEach(function(a,i){r&&(i===n-1&&r["delete"]?(r["delete"](a),r.size||(e.pop(),t.clear(e))):r=r.has(a)&&r.get(a))})},t.setValue=function(e,t){void 0===e&&(e=[]);var r=this.map,n=e.length;e.forEach(function(e,a){if(r.has(e))r=r.get(e);else if(a===n-1)r.set(e,t);else{var i=new Map;r.set(e,i),r=i}})},t.getValue=function(e){void 0===e&&(e=[]);var t=this.map;return e.forEach(function(e){t=t&&t.get&&t.get(e)}),e.length&&t},e}();t["default"]=r},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return e.filter(function(e){return!!e}).length===e.length}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t="",r=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/gi,repStr:""},{reg:/\r?\n|\r/g,repStr:t},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/<desc\>[^<]*<\/desc\>/,repStr:t},{reg:/zIndex="[^"]+"/g,repStr:t},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/<ima?ge? ([^\>]+?[^\/])\>/gi,repStr:"<image $1 />"},{reg:/<\/ima?ge?\>/g,repStr:t},{reg:/style="([^"]+)"/g,repStr:function(e){return e.toLowerCase()}},{reg:/NS\d+\:href=/g,repStr:"xlink:href="}],n=function(e){var t=JSON.stringify(e);return t=t=(t=(t=(t=t.replace(/([a-z]+)([A-Z]+)([a-z]+)/g,function(e,t,r,n){return t+"-"+r.toLowerCase()+n})).replace(/\"\,\"/g,'";"')).replace(/\"/g," ")).replace(/\{|\}/g,"")};e.svg&&(e.fn.toSVG=function(e){var a,i=this,o=t,s=0,l=r.length;if(i.canvas&&i.canvas.parentNode){for(o=i.canvas.parentNode.innerHTML;s<l;s+=1)a=r[s],o=o.replace(a.reg,a.repStr);i._stylesheet&&i._stylesheet.rules&&(o=function(e,t){var r,a,i,o,s,l,c,u=e,d=function(e){var t=e;return t.match(/style\s*=/)?t.replace(/(style\s*=")([^"]+)/g,function(e,t,r){return t+o+r}):t.replace(/class\s*="[^"]*"/i,function(e){return e+' style="'+o+'" '})};for(r in t)if(t.hasOwnProperty(r))for(l in a=/\s+/,i=r.split(a),o=n(t[r]),i)i.hasOwnProperty(l)&&(s=i[l].trim().replace(".",""),c=new RegExp("<[^>]+("+s+")[^>]+","g"),u=u.replace(c,d));return u}(o,i._stylesheet.rules))}return e||(o=o.replace(/<image[^\>]*\>/gi,function(e){return e.match(/href=\"data\:image/i)?e:t})),o})}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=function(e){e&&(e.svg?e.el.addPattern=function(t,r){void 0===t&&(t={}),void 0===r&&(r=0);var n=this;if(n.patternInfo&&(n.patternInfo.element.remove(),delete n.patternInfo),r){var a=n.paper.addDefs({pattern:c({},d(t))}).pattern;n.node.setAttribute("fill",'url("'+e._url+"#"+a.id+'")'),n.patternInfo=a}}:e.el.addPattern=function(){return this})};var a=n(r(277)),i=n(r(330)),o=n(r(331)),s=n(r(332));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,a["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u={line:i["default"],circle:o["default"],square:s["default"]},d=function(e){var t=e.patternSize+e.patternDensity;return{tagName:"pattern",height:t,width:t,x:e.x||0,y:e.y||0,patternTransform:"rotate("+e.patternAngle+")",patternUnits:"userSpaceOnUse",children:[].concat(u[e.patternType](e))}}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"path",d:"M 0, "+t/2+" L "+t+", "+t/2,"stroke-width":e.patternSize,stroke:n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color),opacity:e.patternAlpha/100}]}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color),a=n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"circle",cx:t/2,cy:t/2,r:e.patternSize/2,stroke:a,fill:a,opacity:e.patternAlpha/100}]}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281);t["default"]=function(e){var t=e.patternSize+e.patternDensity,r=(0,n.hashify)(e.color),a=n.validhexcolor.test(r)?r:(0,n.rgbaToHex)(e.color);return[{tagName:"rect",height:t,width:t,fill:e.patternBgColor,opacity:e.alpha/100},{tagName:"rect",x:e.patternDensity/2,y:e.patternDensity/2,height:e.patternSize,width:e.patternSize,stroke:a,fill:a,opacity:e.patternAlpha/100}]}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=t._mouseEvtHandler=void 0;var a=n(r(295)),i=r(281),o=r(288),s=n(r(334)),l=r(297),c=n(r(335)),u=r(289),d=n(r(336)),h=r(293),f=r(337),p="http://www.w3.org/2000/svg",g="#b1b2b7",m="0.5s",v="pointer",b="M23,11.46V1.87h5.8V3.31h-4.1V6h3.48V7.46H24.71v4Zm7-2.68V4.26h1.69v4.3c0,1.19.34,1.63,1.12,1.63.63,0,1-.3,1.59-1V4.26h1.69v7.2H34.67l-.13-1.05h0a3,3,0,0,1-2.32,1.23C30.64,11.64,30,10.6,30,8.78Zm7.51,1.86.8-1.08a3.23,3.23,0,0,0,2,.8c.78,0,1.14-.36,1.14-.86s-.77-.87-1.54-1.16c-1-.35-2-.9-2-2.1s1-2.15,2.63-2.15A3.94,3.94,0,0,1,42.86,5l-.78,1a2.66,2.66,0,0,0-1.58-.62c-.72,0-1.06.34-1.06.79s.72.8,1.5,1.07c1,.37,2.06.84,2.06,2.19s-1,2.23-2.8,2.23A4.6,4.6,0,0,1,37.47,10.64ZM45.36,3a1,1,0,1,1,1-1A1,1,0,0,1,45.36,3Zm-.85,8.46V4.26H46.2v7.2Zm3.38-3.59a3.44,3.44,0,1,1,6.85,0,3.44,3.44,0,1,1-6.85,0Zm1.73,0c0,1.44.63,2.39,1.69,2.39S53,9.31,53,7.87s-.65-2.41-1.7-2.41S49.62,6.42,49.62,7.87Zm6.79,3.59V4.26H57.8l.12,1H58a3.34,3.34,0,0,1,2.36-1.14c1.54,0,2.21,1,2.21,2.86v4.51H60.87V7.17c0-1.19-.34-1.63-1.13-1.63a2.29,2.29,0,0,0-1.64.89v5ZM64.24,6.7c0-3.14,2-5,4.43-5A3.79,3.79,0,0,1,71.4,2.91L70.46,4a2.42,2.42,0,0,0-1.77-.79C67.12,3.18,66,4.5,66,6.65s1,3.51,2.64,3.51a2.57,2.57,0,0,0,2-1l.94,1.05a3.84,3.84,0,0,1-3,1.39C66.16,11.64,64.24,9.88,64.24,6.7ZM73,11.46V1.11h1.68V3.78l0,1.39A3.3,3.3,0,0,1,77,4.09c1.54,0,2.21,1,2.21,2.86v4.51H77.49V7.17c0-1.19-.34-1.63-1.13-1.63a2.33,2.33,0,0,0-1.65.89v5ZM80.9,9.53c0-1.54,1.29-2.35,4.24-2.67,0-.77-.33-1.41-1.3-1.41a4,4,0,0,0-2,.7L81.2,5a5.64,5.64,0,0,1,3-.93c1.8,0,2.68,1.1,2.68,3.1v4.27H85.45l-.13-.79h0a3.49,3.49,0,0,1-2.22,1A2,2,0,0,1,80.9,9.53Zm1.65-.14c0,.65.42.93,1,.93a2.25,2.25,0,0,0,1.57-.79V7.91C83.19,8.16,82.55,8.68,82.55,9.39Zm6.33,2.07V4.26h1.4l.11,1.28h.06a2.45,2.45,0,0,1,2-1.45,1.86,1.86,0,0,1,.82.14L93,5.7a2.46,2.46,0,0,0-.75-.12c-.57,0-1.26.4-1.7,1.48v4.4ZM94.6,9V5.6h-1V4.33l1.11-.07.21-2h1.4v2h1.84V5.6H96.3V9c0,.85.33,1.26,1,1.26a2,2,0,0,0,.74-.16l.3,1.24a4.43,4.43,0,0,1-1.47.27C95.22,11.64,94.6,10.58,94.6,9Zm4.33,1.61.79-1.08a3.26,3.26,0,0,0,2,.8c.77,0,1.14-.36,1.14-.86s-.78-.87-1.54-1.16c-.95-.35-2-.9-2-2.1s1-2.15,2.62-2.15a3.89,3.89,0,0,1,2.39.86l-.77,1A2.69,2.69,0,0,0,102,5.36c-.72,0-1,.34-1,.79s.71.8,1.49,1.07c1,.37,2.07.84,2.07,2.19s-1,2.23-2.8,2.23A4.58,4.58,0,0,1,98.93,10.64Z",y=["M111.54,4.59h-2.39V3.32h6.28V4.59H113v7h-1.5Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],w=["M9.76,0L12.93,0L12.93,11.39,L9.76,11.39L9.76,0","M9.76,12.86L12.93,12.86L12.93,16.19L9.76,16.19L9.76,12.86"],x=["M140,42.7h36.1v129.8H140V42.7","M140,189.2h36.1v38H140V189.2"],_={x:0,y:1.63,width:3.33,height:9.76},S={x:4.8,y:6.43,width:3.41,height:4.96},k={x:28.8,y:61.2,width:38,height:111.2},C={x:83.5,y:111.9,width:38.9,height:56.5},A={attributes:!1,subtree:!0,characterData:!0,childList:!0},N=function(e){return String.fromCharCode(e)},E=function(e){return e.map(N).join("")},L=E([99,114,101,100,105,116,76,97,98,101,108]),T=E([99,114,101,100,105,116,103,114,111,117,112]),M=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122].map(N),F=function(){return M[Math.floor((e=0,t=M.length,Math.random()*(t-e)+e))];var e,t},D=t._mouseEvtHandler=function(e,t,r){var n,a,o,s,l,c,u,d,h=r.mouseTracker,f=t.originalEvent,p=e.config.datasetOrder||e.getDatasets(),g=!1,m=p.length,v=h._lastDatasetIndex,b=h._lastPointIndex;for(a=(n=(0,i.getMouseCoordinate)(e.getFromEnv("chart-container"),f,e)).chartX,o=n.chartY;m--&&!g;)(s=p[m])&&s.getState("visible")&&(l=s._getHoveredPlot&&s._getHoveredPlot(a,o))&&l.hovered&&(g=!0,l.datasetIndex=m,d=h.getMouseEvents(t,l.datasetIndex,l.pointIndex));if((!g||d&&d.fireOut)&&void 0!==v&&p[v]&&p[v]._firePlotEvent&&(d&&!d.events.length?h.mouseoutTimer=setTimeout(function(){e.mouseoutHandler(t,v,b)},20):(e.mouseoutHandler(t,v,b),clearTimeout(h.mouseoutTimer))),g)for((u=d.events&&d.events.length)&&(h._lastDatasetIndex=l.datasetIndex,b=h._lastPointIndex=l.pointIndex),c=0;c<u;c+=1)s&&s._firePlotEvent&&s&&s._firePlotEvent&&s._firePlotEvent(d.events[c],b,t,l.datasetIndex)},I=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this)._creatingTheBlurredContainer=function(e,r,n){var a,i,o;a=document.createElementNS(p,"g"),o=document.createElementNS(p,"g"),a.setAttributeNS(null,"fill",g),a.setAttributeNS(null,"cursor",v),a.setAttributeNS(null,"pointer-events","bounding-box"),a.setAttributeNS(null,"style","transition:0.5s;"),(i=document.createElementNS(p,"rect")).setAttributeNS(null,"width",e),i.setAttributeNS(null,"height",r),i.setAttributeNS(null,"fill","#ffffff33");for(var s=0;s<Math.trunc(e/250);s++){for(var l=void 0,c=250*s,u=(e-250*Math.trunc(e/250))/Math.trunc(e/250),d=document.createElementNS(p,"g"),h=0;120*h<r-120;h++){var f,m=120*h;f=t._createBlurText(m,n),d.appendChild(f)}(l=d).setAttributeNS(null,"transform","translate("+(c+u)+", 0)"),o.appendChild(l)}return a.appendChild(i),a.appendChild(o),a},t._createBlurText=function(e,t){var r,n,a,i,o,s=!1;return t&&"candy"===t&&(s=!0),(r=document.createElementNS(p,"g")).setAttributeNS(null,"transform","scale(0.1), translate(0, "+(10*e+500)+")"),r.setAttributeNS(null,"fill",s?"#ffffff":"#666"),r.setAttributeNS(null,"cursor",v),r.setAttributeNS(null,"pointer-events","bounding-box"),r.setAttributeNS(null,"style","transition:0.5s;"),(n=document.createElementNS(p,"path")).setAttribute("d",f.text.fusionchartsLicenseHasExpiredText[0]),n.setAttributeNS(null,"fill",""),n.setAttributeNS(null,"stroke",""),n.setAttributeNS(null,"stroke-linecap",""),(a=document.createElementNS(p,"path")).setAttribute("d",f.text.fusionchartsLicenseHasExpiredText[1]),a.setAttributeNS(null,"fill",""),a.setAttributeNS(null,"stroke",""),a.setAttributeNS(null,"stroke-linecap",""),(i=document.createElementNS(p,"path")).setAttribute("d",f.text.fusionchartsLicenseHasExpiredText[2]),i.setAttributeNS(null,"fill",""),i.setAttributeNS(null,"stroke",""),i.setAttributeNS(null,"stroke-linecap",""),(o=document.createElementNS(p,"path")).setAttribute("d",f.text.fusionchartsLicenseHasExpiredText[3]),o.setAttributeNS(null,"fill",""),o.setAttributeNS(null,"stroke",""),o.setAttributeNS(null,"stroke-linecap",""),r.appendChild(n),r.appendChild(a),r.appendChild(i),r.appendChild(o),r},t}(0,a["default"])(t,e),t.getName=function(){return"base"};var r=t.prototype;return r.setDummyEImethods=function(e){var t=this.config,r=t._eiStore||(t._eiStore={}),n=function(e){return(d["default"][e]||[]).concat(d["default"]["*"])}(e),a=this.getFromEnv("chartInstance");n.forEach(function(e){var t;!a[e]&&(a[e]=(t=e,function(){!r[t]&&(r[t]=[]),r[t].push(arguments)}))}),a.addEventListener("renderComplete",function(){var e=function(e){r[e].forEach(function(t){a[e].apply(a,t)})};for(var n in r)e(n);t._eiStore={}})},t.getType=function(){return"chartAPI"},r.mouseoutHandler=function(e,t,r){var n=this,a=n.config.datasetOrder||n.getDatasets(),i=n.getChildren("mouseTracker")[0],o=a[t];o&&o.components&&o.components.data&&o.components.data[r]?a[t]._firePlotEvent("fc-mouseout",r,e):n.getFromEnv("toolTipController").hideAll(),delete i._lastDatasetIndex,delete i._lastPointIndex},r.getName=function(){return"base"},r.getType=function(){return"chartAPI"},r._mouseEvtHandler=function(e,t){D(this,e,t)},r.getComponents=function(e,t){var r=[];return(e||this).iterateComponents(function(e){e.getType()===t&&r.push(e)}),r},r.getDatasets=function(e){var t=[];return(e||this).iterateComponents(function(e){"dataset"===e.getType()&&t.push(e)}),t},r.preConfigure=function(t){e.prototype.preConfigure.call(this,t),function(e,t){var r;for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}(this.getFromEnv("chartInstance"),this.eiMethods)},r.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),this.createBaseComponent()},r.createBaseComponent=function(){var e,t=this;(e=t.getFromEnv("animationManager"))?e.configure():(e=new c["default"],t.addToEnv("animationManager",e),e.addToEnv("chart",t),e.addToEnv("animationManager",e),e.configure(),t.addExtEventListener("animationstart",function(e){var r=e.data.duration;r&&t.fireChartInstanceEvent("animationinvoked",{duration:r})},e))},r.setChartMessage=function(e,t,r){var n,a,o=this,l=r;(0,i.componentFactory)(this,s["default"],"chartMessage"),a=o.getChildren("chartMessage")[0],l?o.addToEnv("chart-container",l):l=o.getFromEnv("chart-container"),(n=o.getFromEnv("paper"))||((n=new((0,u.getDep)("redraphael","plugin"))(l,o.getFromEnv("chartWidth"),o.getFromEnv("chartHeight"))).setHTMLClassName("fusioncharts-div"),o.addToEnv("paper",n)),n.setConfig("stroke-linecap",i.ROUND),!o.getChildContainer("messageGroup")&&o.addChildContainer("messageGroup",n.group("messageGroup")),o.config.hasChartMessage=!0,a.setData({message:e,chartObj:t,visible:!0},!0)},r.drawChartMessage=function(){this.config.hasChartMessage=!0,this._drawTexts()},r._dispose=function(){this._clearTimers&&this._clearTimers();var t=this.getFromEnv("paper");t&&t.remove&&t.remove(),e.prototype._dispose.call(this)},r.fireChartInstanceEvent=function(e,t,r,n,a){var i=this.getFromEnv("chartInstance");(0,o.triggerEvent)(e,i,t,r,n,a)},r._hideChartMessage=function(){var e=this,t=e.getChildren("chartMessage");e.config.hasChartMessage=!1,t&&t[0].setData({visible:!1},!0),e.getGraphicalElement("messageText")&&e.getGraphicalElement("messageText").hide(),e.getGraphicalElement("messageVeil")&&e.getGraphicalElement("messageVeil").hide()},r._removeWaitingJobs=function(){this.iterateComponents(function(e){return e.removeAllJobs()})},r._drawTexts=function(){this._drawMain(!1)},r._drawMain=function(e,t){void 0===t&&(t=!1),this._crCreate(e,t),e&&this._scheduleLabelCheck(e,t)},r._scheduleLabelCheck=function(e,t){var r=this;r.addJob("checker",function(){var n,a=r.getContainer(T);!a||(n=a).node&&n.node.parentNode&&11!==n.node.parentNode.nodeType||r._crCreate(e,t),r._scheduleLabelCheck(e,t)},h.priorityList.verification,{oneInAFrame:!0,addToTop:!1,executionDelay:300})},r._crCreate=function(e,t){var r,n,a,o,s,l=this,c=l.getFromEnv("paper"),u=+l.getFromEnv("chartHeight"),d=+l.getFromEnv("chartWidth"),h=l.constructor.name,f=null==(r=l.getFromEnv("chart-attrib"))?void 0:r.theme,g=l.getGraphicalElement(L),m=l.getContainer("parentgroup"),v={href:i.TXT_HREF};if(e){if(l.getContainer(T)&&l.removeContainer(T),g&&l.removeGraphicalElement(g),!c||!c.group)return;var b,y,w;if(a=l.addContainer(T,c.group(function(e){void 0===e&&(e=8);for(var t=i.BLANK,r=0;r<e;r++)t+=F();return t}(),!0)),m&&a.insertAfter(m),l.addGraphicalElement(L,n),o=this._creatingTheLogo(u-27.32,t,h,u,f),t)for(s=this._creatingTheBlurredContainer(d,u,f),a.node.appendChild(s),(b=document.createElementNS(p,"filter")).setAttribute("id","blurFilter"),(y=document.createElementNS(p,"feGaussianBlur")).setAttribute("in","SourceGraphic"),y.setAttribute("stdDeviation","2"),b.appendChild(y),m.node.appendChild(b),m.node.setAttributeNS(null,"filter","url(#blurFilter)"),w=a;null!=(x=w)&&x.next;){var x,_,S;(null==(S=w=null==(_=w)?void 0:_.next)?void 0:S.node).setAttributeNS(null,"filter","url(#blurFilter)")}a.node.appendChild(o),l.config.observer?l.config.observer.disconnect():l.config.observer=new MutationObserver(function(){return l._crCreate(e,t)}),l.config.observer.observe(l.getContainer(T).node,A),t||a.on("fc-click",function(){try{open(v.href)}catch(e){(top||window).location.href=v.href}})}else n},r.hoverCallback=function(e){"mouseover"===e.type?this.style.fill="#373c8b":"mouseout"===e.type&&(this.style.fill=g)},r._creatingTheLogo=function(e,t,r,n,a){var o,s,l,c,u,d,h,A,N,E,L,T,M,F,D;return o=document.createElementNS(p,"g"),t?o.setAttributeNS(null,"transform","scale(0.1), translate(18,"+10*e+")"):o.setAttributeNS(null,"transform","translate(18,"+e+")"),o.setAttributeNS(null,"fill",t?"#fd002dcc":g),o.setAttributeNS(null,"cursor",v),o.setAttributeNS(null,"pointer-events","bounding-box"),o.style.transition=m,(s=document.createElementNS(p,"path")).setAttribute("d",b),s.setAttributeNS(null,"fill",""),s.setAttributeNS(null,"stroke",""),s.setAttributeNS(null,"stroke-linecap",""),(l=document.createElementNS(p,"rect")).setAttributeNS(null,"x",t?k.x:_.x),l.setAttributeNS(null,"y",t?k.y:_.y),l.setAttributeNS(null,"width",t?k.width:_.width),l.setAttributeNS(null,"height",t?k.height:_.height),l.setAttributeNS(null,"fill",""),l.setAttributeNS(null,"stroke",""),l.setAttributeNS(null,"stroke-linecap",""),(c=document.createElementNS(p,"rect")).setAttributeNS(null,"x",t?C.x:S.x),c.setAttributeNS(null,"y",t?C.y:S.y),c.setAttributeNS(null,"width",t?C.width:S.width),c.setAttributeNS(null,"height",t?C.height:S.height),c.setAttributeNS(null,"fill",""),c.setAttributeNS(null,"stroke",""),c.setAttributeNS(null,"stroke-linecap",""),(u=document.createElementNS(p,"path")).setAttributeNS(null,"d",t?x[0]:w[0]),u.setAttributeNS(null,"fill",""),u.setAttributeNS(null,"stroke",""),u.setAttributeNS(null,"stroke-linecap",""),(d=document.createElementNS(p,"path")).setAttributeNS(null,"d",t?x[1]:w[1]),d.setAttributeNS(null,"fill",""),d.setAttributeNS(null,"stroke",""),d.setAttributeNS(null,"stroke-linecap",""),(h=document.createElementNS(p,"path")).setAttributeNS(null,"d",y[0]),h.setAttributeNS(null,"fill",""),h.setAttributeNS(null,"stroke",""),h.setAttributeNS(null,"stroke-linecap",""),(A=document.createElementNS(p,"path")).setAttributeNS(null,"d",y[1]),A.setAttributeNS(null,"fill",""),A.setAttributeNS(null,"stroke",""),A.setAttributeNS(null,"stroke-linecap",""),(N=document.createElementNS(p,"path")).setAttributeNS(null,"d",y[2]),N.setAttributeNS(null,"fill",""),N.setAttributeNS(null,"stroke",""),N.setAttributeNS(null,"stroke-linecap",""),(E=document.createElementNS(p,"path")).setAttributeNS(null,"d",y[3]),E.setAttributeNS(null,"fill",""),E.setAttributeNS(null,"stroke",""),E.setAttributeNS(null,"stroke-linecap",""),(L=document.createElementNS(p,"path")).setAttributeNS(null,"d",y[4]),L.setAttributeNS(null,"fill",""),L.setAttributeNS(null,"stroke",""),L.setAttributeNS(null,"stroke-linecap",""),(T=document.createElementNS(p,"path")).setAttributeNS(null,"d",f.text.fusionchartsUnlicensedText[0]),T.setAttributeNS(null,"transform","scale(0.9), translate(0, 35)"),T.setAttributeNS(null,"fill",""),T.setAttributeNS(null,"stroke",""),T.setAttributeNS(null,"stroke-linecap",""),(M=document.createElementNS(p,"path")).setAttributeNS(null,"d",f.text.fusionchartsUnlicensedText[1]),M.setAttributeNS(null,"transform","scale(0.9), translate(2050, 85)"),M.setAttributeNS(null,"fill","candy"===a?"#74a8d2":"#6957da"),M.setAttributeNS(null,"stroke",""),M.setAttributeNS(null,"stroke-linecap",""),(D=document.createElementNS(p,"a")).setAttributeNS(null,"href",i.BUY_LICENSE_HREF),D.setAttribute("target","_blank"),D.appendChild(M),(F=document.createElementNS(p,"text")).setAttributeNS(null,"transform","scale(10), translate(0, -"+(n-40)+")"),F.setAttribute("x",0),F.setAttribute("y",0),F.setAttribute("width",1e3),F.setAttribute("height",1e3),F.setAttribute("fill",g),o.appendChild(l),o.appendChild(c),o.appendChild(u),o.appendChild(d),t?(o.appendChild(T),o.appendChild(D),o.appendChild(F)):(o.appendChild(s),o.appendChild(h),o.appendChild(A),o.appendChild(N),o.appendChild(E),o.appendChild(L)),t||(o.addEventListener("mouseover",this.hoverCallback),o.addEventListener("mouseout",this.hoverCallback)),o},r._hideModal=function(){this.getChildContainer("messageGroup").hide()},r.remove=function(t){var r=this.getFromEnv("animationManager");this.config.observer&&this.config.observer.disconnect(),e.prototype.remove.call(this,t),r&&r.remove(t)},t}(l.ComponentInterface);I.stringConstants={BACKGROUNDLOADED:"BackgroundLoaded",BACKGROUNDLOADERROR:"BackgroundLoadError",clipRectStr:"clip-rect"};t["default"]=I},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s="pointer",l=o.preDefStr.noneStr,c=function(e,t){e.on("fc-click",function(){try{open(t)}catch(e){(top||window).location.href=t}}),e.css({cursor:s,_cursor:s})},u=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"chartMessage"},r.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var r=this.config;for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},r._drawBackground=function(e,t){void 0===t&&(t={});var r,n,a,i,s=this,u=s.config,d=s.getFromEnv("paper"),h=s.getFromEnv("chart"),f=u.visible,p=s.getGraphicalElement("backgroundElement"),g=s.getGraphicalElement("backgroundImage"),m=s.getFromEnv("chartWidth"),v=s.getFromEnv("chartHeight"),b=s.getLinkedParent().getChildContainer("messageGroup").show(),y=(0,o.pluckNumber)(t.imageAlpha,100),w=0+o.COMMA+0+o.COMMA+m+o.COMMA+v,x=(0,o.getValidValue)(t.imageVAlign,o.BLANKSTRING).toLowerCase(),_=(0,o.pluck)(t.imageHAlign,o.BLANKSTRING).toLowerCase(),S=(0,o.pluckNumber)(t.imageScale,100),k=s.getFromEnv("chartInstance"),C=u.messageURL,A=(0,o.getContainerBackgroundColor)(k);d.canvas.style.backgroundColor=A,x!==o.POSITION_TOP&&x!==o.POSITION_MIDDLE&&x!==o.POSITION_BOTTOM&&(x=o.POSITION_TOP),_!==o.POSITION_LEFT&&_!==o.POSITION_MIDDLE&&_!==o.POSITION_RIGHT&&(_=o.POSITION_LEFT),n={x:0,y:0,width:m,height:v,stroke:l},p||(p=d.rect(b),s.addGraphicalElement("backgroundElement",p)),p.attr(n),p&&C&&c(p,C),u.bgImageVAlign=x,u.bgImageHAlign=_,u.bgImageScale=S,u.bgSWFAlpha=y,u.imgClipRect=w,e&&((r=g)?r.attr({src:e}):(r=s.getFromEnv("paper").image(b),s.addGraphicalElement("backgroundImage",r),r.attr({src:e}),r.on("load",function(){if(!(!r||r&&r.removed)){var t=r._.RefImg;a=s.getFromEnv("chartConfig"),u.isImage&&(undefined===a||a.hasChartMessage)&&(i=(0,o.setImageDisplayMode)(l,u.bgImageVAlign,u.bgImageHAlign,u.bgImageScale,0,s.getFromEnv("chartWidth"),s.getFromEnv("chartHeight"),t),(0,o.extend2)(i,{opacity:.01*u.bgSWFAlpha,visibility:"visible","clip-rect":u.imgClipRect}),r.attr(i),f?r.show():r.hide(),r&&C&&c(r,C),h.fireChartInstanceEvent("backgroundloaded",{url:e,bgImageAlpha:100*u.bgSWFAlpha,bgImageDisplayMode:l,bgImageVAlign:u.bgImageVAlign,bgImageHAlign:u.bgImageHAlign,bgImageScale:u.bgImageScale,imageWidth:t.width,imageHeight:t.height}))}}),r.on("error",function(t){r.removed||h.fireChartInstanceEvent("backgroundloaderror",{url:e,bgImageAlpha:100*u.bgSWFAlpha,error:t,bgImageDisplayMode:l,bgImageVAlign:u.bgImageVAlign,bgImageHAlign:u.bgImageHAlign,bgImageScale:u.bgImageScale},k)})))},r.configure=function(t){e.prototype.configure.call(this,t);var r,n=this.getFromEnv("chartInstance"),a=n.options,i=n.args,s=this.config,l=s.message,c=s.chartObj;(s.strObj=(0,o.getImageURL)(void 0!==l?l:a.dataEmptyMessage)).image?(r=c?{imageHAlign:(0,o.pluck)(c._chartMessageImageStyle.imageHAlign,a.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(c._chartMessageImageStyle.imageVAlign,a.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(c._chartMessageImageStyle.imageAlpha,a.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(c._chartMessageImageStyle.imageScale,a.baseChartMessageImageScale)}:{imageHAlign:(0,o.pluck)(i.dataEmptyMessageImageHAlign,a.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:(0,o.pluck)(i.dataEmptyMessageImageVAlign,a.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:(0,o.pluckNumber)(i.dataEmptyMessageImageAlpha,a.baseChartMessageImageAlpha),imageScale:(0,o.pluckNumber)(i.dataEmptyMessageImageScale,a.baseChartMessageImageScale)},s.chartMessageType="image"):(r=c?{"font-family":c._chartMessageStyle.fontFamily||a.baseChartMessageFont,"font-size":c._chartMessageStyle.fontSize||a.baseChartMessageFontSize,fill:c._chartMessageStyle.color||a.baseChartMessageColor}:{"font-family":i.dataEmptyMessageFont||a.baseChartMessageFont,"font-size":i.dataEmptyMessageFontSize||a.baseChartMessageFontSize,fill:i.dataEmptyMessageColor||a.baseChartMessageColor},s.chartMessageType="text"),s.messageURL=a.messageURL,s.chartMessageStyle=r},r.manageSpace=function(){var e,t,r,n=this,a=n.config,i=a.chartMessageStyle,s=n.getFromEnv("smartLabel"),l=a.strObj,c=n.getFromEnv("chartWidth"),u=n.getFromEnv("chartHeight");t=a.width=Number(c),e=a.height=Number(u),l.image?r=l.string:(s.setStyle(i),r={text:s.getSmartText((0,o.parseUnsafeString)(l.string),t,e).text,x:t/2,y:e/2}),a.chartMessageAttr=r},r.draw=function(){var e,t,r,n=this,a=n.config,i=n.getFromEnv("paper"),s=a.visible,l=a.isImage="image"===a.chartMessageType,u=a.messageURL,d=l?a.chartMessageAttr:(0,o.extend2)(a.chartMessageAttr,a.chartMessageStyle);e=n.getGraphicalElement("messageText"),r=n._graphics,t=n.getLinkedParent().getChildContainer("messageGroup").show(),l?n._drawBackground(a.chartMessageAttr,a.chartMessageStyle):e||"text"!==a.chartMessageType?(r.message=e.attr(d),s?e.show():e.hide()):e=n.addGraphicalElement("messageText",i.text(d,t)),(e||r.message)&&u&&c(e||r.message,u),n._hideOtherMessage(l)},r._hideOtherMessage=function(e){var t,r,n,a=this;e?(r=a.getGraphicalElement("messageText"))&&r.hide():(t=a.getGraphicalElement("backgroundImage"),n=a.getGraphicalElement("backgroundElement"),t&&t.hide(),n&&n.hide())},r.getType=function(){return"chartMessage"},t}(i.ComponentInterface);t["default"]=u},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=r(281),s=r(293),l=r(297),c=r(289),u=!o.hasSVG,d="chart",h="group",f="paper",p="disappearing",g="appearing",m="string",v="updating",b="default",y={initial:1,update:0,realTimeUpdate:0,resize:0,dispose:0,legendInteraction:0,scroll:0,mouseOut:0,mouseOver:0,"default":0,slicing:.25,timenavSqueeze:0,selectedRange:0,timenavScroll:0},w={MSColumn2D:!0,MSColumn3D:!0,MSBar2D:!0,MSBar3D:!0,StackedColumn2D:!0,StackedColumn3D:!0,StackedBar2D:!0,StackedBar3D:!0,MSStackedColumn2D:!0,MSStackedBar2D:!0,ScrollColumn2D:!0,ScrollMSStackedColumn2D:!0,ScrollBar2D:!0,ScrollStackedColumn2D:!0,ScrollStackedBar2D:!0},x=[b,"global","chartSpecific"],_={fadeIn:{opacity:{start:0,end:1}},fadeOut:{opacity:{start:1,end:0}}},S={fadeIn:function(){this&&this.show()},fadeOut:function(){this&&this.hide()}},k=function(e){return null===e},C=function(e,t){void 0===t&&(t="");var r=t.split(","),n=[];return r.forEach(function(t){e[t]&&e[t].animation&&n.push(e[t].animation)}),n},A=function(e,t,r){var n,a=Object.assign({},e),i=r/t;return i>.2&&(i=.2),n=a.end-a.start,a.start*=1-i,a.start+=i,a.end=a.start+(1-i)*n,a.start=Math.round(100*a.start)/100,a.end=Math.round(100*a.end)/100,a},N=function(e,t,r){var n,i=_[t],s=o.BLANKSTRING,l={};if(i&&e&&e.el&&e.el[0]){for(s in i)l[s]=e.el.attrs[s],l[s]===a&&(l[s]=null),e.attrs[s]=i[s].end,e.el.attr(s,i[s].start);n=e.callback,e.callback=function(){r&&S[t]&&S[t].call(this),n&&n.call&&n.call(this),this.attr(l)}}},E=function(e,t){var r,n=t,a=!0;if(n){for(e.attrs=e.attrs||{},~(n=n.split("-")).indexOf("nc")&&(a=!1),r=n.length;r--;)N(e,n[r],a);return e}},L=function(e,t,r,n,a,i,o,s){e.animateWith(a,i,t,o,s,r,n)},T=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)&&"__esModule"!==r){var n=e[r];M(t,n)}return t},M=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(!e[r]&&(e[r]=[]),e[r].push(t[r]))},F=function(e){return"function"==typeof e};function D(e,t){var r,n,a,i,o,s,l=!1;if(!e)return!1;for(a=0,i=e.length;a<i;a+=1)if(n=e[a],Array.isArray(n))for(o=0,s=e[a].length;o<s;o+=1)n=e[a][o],r=!1,-1!==t.indexOf(n.name)?r=!0:n.child&&(r=n.hasAnimation=D(n.child,t)),l=l||r,n.hasAnimation=r;else r=!1,-1!==t.indexOf(n.name)?r=!0:n.child&&(r=n.hasAnimation=D(n.child,t)),l=l||r,n.hasAnimation=r;return l}function I(e,t,r,n){var a,i,o,s,l,c=e.length,u=0,d=0,h=t;for(i=0,o=0,l=0;l<c;l+=1)(a=e[l]).hasAnimation||!1===a.collapsible?o+=1:i+=a.duration,d+=a.duration;for(i/=o,l=0;l<c;l+=1)(a=e[l]).hasAnimation&&(s=r-t,h=(u=h)+(a.duration/d+i)*s,n[a.name]={start:u,end:h,effect:a.effect,transition:a.transition},a.child&&P(a.child,u,h,n))}function O(e,t,r,n){var a,i,o;i=t+(i=e.start)*(a=r-t),o=t+(o=e.end)*a,n[e.name]={start:i,end:o,effect:e.effect,transition:e.transition},e.child&&P(e.child,i,o,n)}function P(e,t,r,n){var a,i,o=e.length;for(a=0;a<o;a++)i=e[a],Array.isArray(i)?I(i,t,r,n):O(i,t,r,n)}_.fadein=_.fadeIn,_.fadeout=_.fadeOut;var R=function(e){function t(){var t,r=t=e.call(this)||this;return r._removedGraphics=[],r._animCallBack=function(){if(!r.getState("removed")&&!this.removed){var e=r.getAnimationState();r._removeElems(),r.reset(),r.fireEvent("animationComplete",{currAnimState:e})}},r.startAnimation=function(){r.kickStart(),r.animate()},t}(0,i["default"])(t,e);var r=t.prototype;return r.getType=function(){return"animationManager"},r.getName=function(){return"animationManager"},r.stopAnimation=function(){if(this.getState("chartAnimating")){var e,t=this,r=t.config.animationObj,n=r&&r.duration;n?(e=t.getGraphicalElement().dummyObj)&&e.stop(a,!0,!0):0===n&&(t.removeJob("anim-callBack"),t._animCallBack())}},r.kickStart=function(){var e,t,r,n=this,i=n.config,o=n.getGraphicalElement(),s=n.getFromEnv(f),l=i.animationObj,u=i.animationeffect;t=l.duration,l.animObj=r=(0,c.getDep)("redraphael","plugin").animation({x:0},t,u,n._animCallBack,!0),l.animType=u,(e=o.dummyObj)?e.attr({x:100}):(e=s.rect({x:100,y:0,width:10,height:30}),n.addGraphicalElement("dummyObj",e),e.hide()),l.dummyObj=o.dummyObj,e.stop(a,!0,!0),n.fireEvent("animationStart",{duration:t}),n.setState("chartAnimating",!0),e.animate(r)},r.setAnimationState=function(e){void 0===e&&(e=a),e&&this.stopAnimation(),this.config.__state=e,this._setAnimDuration(e)},r.getAnimationState=function(){return this.config&&this.config.__state},r._setAnimDuration=function(e){void 0===e&&(e=b);var r=this.config,n=r.animationObj||(r.animationObj={}),a=r.animationDuration||(r.animationDuration={}),i=this.getFromEnv(d),o=i.config.transposeAxis&&"legendInteraction"===e&&w[i.getName()],s=i.getFromEnv("chart-attrib")||{},l=e+"AnimDuration",c=r.killSwitch?0:1e3*(a[l]||s[o?"transposeanimation":l.toLowerCase()]||(o?.25:t.getFallbackAnimDuration(e)));n&&(n[l]=c,n.duration=+c)},r.configureAttributes=function(){var e=this,t=e.getFromEnv(d),r=t.config,n=e.config,a=t.getFromEnv("chart-attrib")||{};n.killSwitch=!(0,o.pluckNumber)(a.animation,r.animation,1),n.animationeffect=r.animationeffect||"linear",e.invokeAnimationRules(),!n.workingRules&&(n.workingRules={}),!n.animateArr&&(n.animateArr=[]),!n.animationName&&(n.animationName=[])},r.invokeAnimationRules=function(){var e,r=this,n=r.getFromEnv(d),a=n.getFromEnv("chart-attrib")||{},i=n.config||{},s=r.config,l=n.getFromEnv("chartInstance").args.animation,u=n.getFromEnv("core-options").defaultTheme,h=function(e){var t,r={};for(var n in e)e.hasOwnProperty(n)&&(r[(t=e[n]).name]=t);return r}((0,c.getDepsByType)("theme")),f=(n.getFromEnv("core-options")._globalAnimationRule||[]).concat(C(h,u)),p=(l&&[l]||[]).concat(C(h,i.theme));s.animationRules={global:T(f.map(function(e){return e&&e.rule}).filter(function(e){return e})),chartSpecific:T(p.map(function(e){return e&&e.rule}).filter(function(e){return e})),"default":T((0,c.getDepsByType)("animationRule"))},s.animationDuration=e={},f.map(function(t){return Object.assign(e,t.duration)}),p.map(function(t){return Object.assign(e,t.duration)}),e.initialAnimDuration=(0,o.pluckNumber)(e.initialAnimDuration,a.initialanimduration,a.animationduration),r.config.slots=t.getFallbackAnimTimeSlots().concat([].concat.apply([],f.map(function(e){return e.slots})).filter(function(e){return e})).concat([].concat.apply([],p.map(function(e){return e.slots})).filter(function(e){return e}))},r.reInitialize=function(){var e=this,t=e.config.animationObj.duration;e.setState("initialized",!0),t?e.addJob("start-animation",e.startAnimation,s.priorityList.animation):(e.fireEvent("animationStart",{duration:t}),e.setState("chartAnimating",!0),e.addJob("anim-callBack",e._animCallBack,s.priorityList.animation))},r.reset=function(){var e=this;e.setState("initialized",!1),e.config&&e.config.animateArr&&(e.config.animateArr.length=0),e.setState("chartAnimating",!1),e.setAnimationState()},r.registerAnimObj=function(e){var t;for(t in e)this.registerAnimation(e[t],t)},r.getFinalSlots=function(){var e=this.config,t=e.slots,r=e.workingRules={};return D(t,e.animationName),P(t,0,1,r),r["default"]={start:0,end:1},r},r.registerOne=function(e,t){this.registerAnimation([{data:[e]}],t)},r.registerAnimation=function(e,t){void 0===e&&(e=[]);var r,n,a,i=!1;for(r=0,a=e.length;r<a;r+=1)(n=e[r]).data&&n.data.length&&(this.config.animateArr.push((n.component=t,n)),i=!0);i&&this.config.animationName.push(t),!this.getState("initialized")&&this.reInitialize()},r.onAnimationComplete=function(e){this.addEventListener("animationComplete",function(t){e(),t.detachHandler()})},t.removeOpacityFromGroup=function(e,t){t&&u&&(e===h||e.type===h)&&delete t.opacity},r.setAnimation=function(e){void 0===e&&(e={});var r,n,i,s,l,c,u,d,h,f,p,v,b,y,w=this,x=w.config,_=x.animationObj,S=e.el,k=e.attr||{},C={},A={},N=function(t,r,n,a){return function(){n.callback&&n.callback.call(this),t&&this.attr(t),r&&e.callback&&e.callback.call(this),a&&this.appendTo(a)}},E=function(e,t,r){return function(){t.hookFn&&t.hookFn.call(this),e&&this.attr(e),r&&this.appendTo(r)}},L=[],T=_.duration,M=w.getState("chartAnimating"),F="object"==typeof S&&e.container&&S.parent!==e.container;if(w.getState("chartAnimating")&&x.animationObj&&x.animationObj.duration&&w.setAnimationState("default"),!M&&T&&(h=w.getAnimAttributes(e))){for(d=h.length,y=!1,p=!(f=e.state===g||typeof S===m)&&S.attrs,u={},c=0;c<d;c++){for(s in v=c===d-1,l=L[c]={},r=(b=h[c]).finalAttr,n=b.initialAttr,t.removeOpacityFromGroup(e.el,n),t.removeOpacityFromGroup(e.el,r),n)u[s]=n[s],A[s]===a&&(A[s]=n[s]);for(s in r)u[s]=r[s],f&&A[s]===a&&(A[s]=r[s]);if(l.attrs=r,l.transition=b.transition,l.effect=b.effect,l.animConfig=[b.startEnd],b.callback&&(l.callback=b.callback),(y=F&&b.changeGroup)&&(F=!1),v){if(f)for(s in k)A[s]===a&&(A[s]=k[s]);for(s in k)i=k[s],!u[s]&&f||u[s]===i||(r&&r[s]===a?r[s]=i:C[s]=i);for(s in u)C[s]===a&&(i=(0,o.getFirstValue)(k[s],p[s]),u[s]!==i&&(r&&r[s]===a&&i!==a?r[s]=i:C[s]=i));r||(l.attrs=C),l.callback=N((r||n)&&C,v,b,F&&e.container),S=w.setAttributes(S,{attr:A,inputJSON:e})}(n||b.hookFn||y)&&(l.animConfig[0].hookFn=E((!f||c)&&n,b,y&&e.container))}for(c=0;c<d;c++)L[c].el=S.el,w.registerAnimation([{data:[L[c]]}],h[c].slot)}else M||w.registerAnimation(),S=w.setAttributes(S,{attr:k,inputJSON:e,groupChangeReq:F,immediate:!0});return S.removed?null:S.el},r._removeElems=function(){if(this.getFromEnv(f)&&!this.getFromEnv(f).removed){this._removedGraphics.forEach(function(e){return e.remove&&e.remove()}),this._removedGraphics.length=0}},r.removeElement=function(e,t){return t?e.remove():this._removedGraphics.push(e),null},t._ruleSelectorQueryBuilder=function(e,t){void 0===t&&(t=!0);var r=e.label,n=e.state,a=e.component,i=a.getType(),o=a.getName();if(t){var s=["*","*.*","*.*.*"],l=["*.*."+o,"*."+i+".*","*."+i+"."+o];return"*"===n?s.concat(l):s.concat(l,[n+".*",n+".*.*",n+".*."+o,n+"."+i+".*",n+"."+i+"."+o])}return[r+"."+n,r+".*","*."+n,"*.*","*"]},r._getRulesByState=function(e){var r,n,i,o,s=e.component,l=this.getAnimationState()||"*",c=t._ruleSelectorQueryBuilder(Object.assign(e,{state:l}));return(r=(o=s.getState("animRules")||{})[l])?r:(n=o[l]={},i=this.config.animationRules,x.forEach(function(e){var t=i[e];t&&c.forEach(function(e){t[e]&&(Array.isArray(t[e])?t[e].forEach(function(e){n=o[l]=k(e)?null:Object.assign(n||{},F(e)?e.call(s):e)}):n=o[l]=k(t[e])?null:Object.assign(n||{},F(t[e])?t[e].call(s):t[e]))})}),s.setState("animRules",o),!s.getState("ruleFlushAttached")&&s.addExtEventListener("predraw",function(){s.setState("animRules",a),s.setState("ruleFlushAttached",!0)},s.getFromEnv(d)),n)},t._getRulesByElement=function(e,r){var n;return t._ruleSelectorQueryBuilder(r,!1).forEach(function(t){n===a&&(n=e[t])}),n},r.getAnimAttributes=function(e){var r,n,a,i,o,s=e.component||this.getFromEnv(d),l=e.label||("object"==typeof e.el?e.el.type:e.el),c=e.state,u=this._getRulesByState({label:l,component:s}),h=[];if(!k(u)&&(!c&&(c=typeof e.el===m?g:e.attr?v:p),r=t._getRulesByElement(u,{component:s,state:c,label:l}),!k(r))){if(!r)return t.getFallbackAnimRule(e);if(!F(r)||(r=r.call(s,e),!k(r))){for(o=r.length,i=0;i<o;i++)a={},(n=r[i]).initialAttr&&(a.initialAttr=F(n.initialAttr)?n.initialAttr.call(s,e):Object.assign({},n.initialAttr)),n.finalAttr&&(a.finalAttr=F(n.finalAttr)?n.finalAttr.call(s,e):Object.assign({},n.finalAttr)),a.startEnd=F(n.startEnd)?n.startEnd.call(s,e):n.startEnd?Object.assign({},n.startEnd):{start:0,end:1},a.slot=n.slot||"default",a.callback=n.callback,a.hookFn=n.hookFn,a.transition=n.transition,a.effect=n.effect||"linear",n.groupChange&&(a.groupChange=!0),h.push(a);return h}}},t.getFallbackAnimRule=function(e){if(e.state===g||typeof e.el===m){if(e.el!==h)return[{initialAttr:{opacity:0},finalAttr:{opacity:(0,o.pluckNumber)(e.attr&&e.attr.opacity,1)},startEnd:{start:0,end:1}}]}else{if(e.state===v||e.attr)return[{startEnd:{start:0,end:1}}];if(e.el.type!==h)return[{initialAttr:{opacity:1},finalAttr:{opacity:0},startEnd:{start:0,end:1}}]}},t.getFallbackAnimDuration=function(e){return y[e]||0},t.getFallbackAnimTimeSlots=function(){return[{name:"_default",start:0,end:1,child:[[{name:"initial",duration:.125},{name:"middle",duration:.75,child:[[{name:"axis",duration:.25},{name:"plot",duration:.75}]]},{name:"final",duration:.125}]]}]},r.createElement=function(e,t,r){void 0===t&&(t={});var n=this,a=e,i=n.getFromEnv(f);if(i||(i=n.getFromEnv(d).getFromEnv(f),n.addToEnv(f,i)),a===h)(a=i.group(r.attr&&r.attr.name||"",r.container)).attr(t);else if("html"===a)a=i.html(r.attr.type,t,r.css,r.container);else{if("text"===a&&r.css)return i[r.el](t,r.css,r.container);a=i[r.el](t,r.container)}return a},r.setAttributes=function(e,t){var r,n=e,a=t.attr,i=t.inputJSON||{};return"string"==typeof n?n=this.createElement(n,a,i):0!==Object.keys(a).length?n.attr(a):i.attr&&i.state!==p||(r=!i.doNotRemove),r?this.removeElement(n,t.immediate):(i.css&&n.css(i.css),t.groupChangeReq&&n.appendTo(i.container),t.immediate&&i.callback&&i.callback.call(n)),{el:n,removed:r}},r.prepareAnimateArr=function(e){var t,r,n,i,o,s,l,c,u,d=this.config.preAnimArr=[];function h(e,t){var n,i,o,s={start:0,end:1};for(o in e)if(e.hasOwnProperty(o)){if(e[o].syncWith&&!r[e[o].syncWith])continue;n=e[o].syncWith,s.start=e[o].start===a?0:e[o].start,s.end=e[o].end===a?1:e[o].end,s.hookFn=e[o].hookFn||e.hookFn,s.smartMorph=e[o].smartMorph||e.smartMorph;break}return n=n&&r[n]?n:t&&r[t]?t:"default",i=r[n].end-r[n].start,s.start=r[n].start+s.start*i,s.end=r[n].start+s.end*i,s}for(r=this.getFinalSlots(),i=0,o=e.length;i<o;i+=1){for(n=(t=e[i]).component,s=0,l=t.data.length;s<l;s+=1)(c=(u=t.data[s]).transition||r[n]&&r[n].transition)&&E(u,c),u.preAnimFn&&d.push({el:u.el,fn:u.preAnimFn}),u.animConfig&&(u.animConfig=h(u.animConfig,n));t.effect||r[n]&&(t.effect=r[n].effect),t.animConfig||(t.animConfig=[{}]),t.animConfig=h(t.animConfig,n)}},r.animate=function(){var e,t,r,n,a,i,o,s,l=this,c=l.config,u=l.config.animateArr,d=c.animationObj,h=d.animObj,f=d.dummyObj,p=d.duration;for(l.prepareAnimateArr(u),function(e){var t=0,r=e.length;for(t=0;t<r;++t)e[t].fn&&e[t].fn.call(e[t].el)}(l.config.preAnimArr),a=0,i=u.length;a<i;a+=1)for(o=0,s=(t=u[a]).data.length-1;o<=s;o+=1)r=t.data[o].animConfig||t.animConfig,r=A(r,p,180),e=t.data[o].effect||t.effect||"linear",n=a===i&&t.callback||t.data[o].callback,t.data[o].preAttrs&&t.data[o].el.attr(t.data[o].preAttrs),t.data[o].el&&L(t.data[o].el,t.data[o].attrs,n||null,r,f,h,p,e)},r.remove=function(t){this.removeAllJobs(),t.instant&&this.getGraphicalElement("dummyObj")&&this.getGraphicalElement("dummyObj").remove(),e.prototype.remove.call(this,t)},t}(l.ComponentInterface);t["default"]=R},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r={pie2d:["isPlotItemSliced","addData","removeData","updateData","slicePlotItem","startingAngle"],dragcolumn2d:["getDataWithId","getData","setUpperLimit","setLowerLimit","getLowerLimit","getUpperLimit"],realtimecolumn:["feedData","setData","stopUpdate","restartUpdate","isUpdateActive","clearChart","getData","getDataForId","setDataForId","getDataJSON","showLog","hideLog","clearLog"],scrollcolumn2d:["scrollTo"],scrollbar2d:["scrollTo"],boxandwhisker2d:["scrollTo"],doughnut:["centerLabel"],zoomline:["zoomOut","zoomTo","resetChart","setZoomMode","getViewStartIndex","getViewEndIndex","scrollTo"],maps:["getMapName","getEntityList","getMapAttribute","exportMap","addMarker","updateMarker","removeMarker"],"*":["exportChart","getXML","getChartAttribute","getCSVData","getChartData","getDataAsCSV","getJSONData","getSVGString","getXMLData"]};r.pie3d=r.pie2d,r.doughnut2d=r.doughnut3d=r.doughnut.concat(r.pie2d),r.dragarea=r.dragline=r.dragnode=r.dragcolumn2d,r.realtimearea=r.realtimeline=r.realtimelinedy=r.realtimestackedarea=r.realtimestackedcolumn=r.bulb=r.angulargauge=r.hlineargauge=r.hled=r.vled=r.vbullet=r.hbullet=r.thermometer=r.cylinder=r.realtimecolumn,r.scrollarea2d=r.scrollline2d=r.scrollcombidy2d=r.scrollcombi2d=r.scrollstackedcolumn2d=r.scrollmsstackedcolumn2d=r.scrollmsstackedcolumn2dlinedy=r.scrollcolumn2d,r.zoomlinedy=r.zoomline;t["default"]=r},(e,t)=>{"use strict";t.__esModule=!0,t.text=void 0;t.text={fusionchartsLicenseHasExpiredText:["M41.3,71.4h59.8v11.2H54.5v34.9H94v11.2H54.5V175H41.3V71.4z M114.5,146.9V98.2h13v47c0,14.3,4.3,20.4,14.5,20.4c7.8,0,13.3-3.9,20.5-12.9V98.2h13V175h-10.7l-1.1-12h-0.4    c-7.1,8.4-14.8,13.9-25.3,13.9C121.8,176.9,114.5,166.4,114.5,146.9z M192.9,166.2l6.4-8.6c6.7,5.4,13.4,9.1,22.7,9.1c10.1,0,15.1-5.4,15.1-11.9c0-7.9-9.1-11.4-17.6-14.5    c-10.8-3.9-22.9-9.2-22.9-22.2c0-12.3,9.8-21.8,26.5-21.8c9.6,0,17.9,3.9,23.9,8.6l-6.2,8.3c-5.3-3.9-10.7-6.8-17.5-6.8    c-9.7,0-14.1,5.2-14.1,11c0,7.3,8.3,10.1,17,13.3c11.1,4.2,23.4,8.7,23.4,23.3c0,12.4-9.9,22.8-28,22.8    C210.7,176.9,200.2,172.3,192.9,166.2z M265.2,74.1c0-5.1,3.9-8.4,9-8.4s9,3.3,9,8.4c0,4.9-3.9,8.4-9,8.4S265.2,79,265.2,74.1z M267.6,98.2h13V175    h-13V98.2z M300.7,136.7c0-25.6,16.8-40.4,35.6-40.4c18.8,0,35.6,14.8,35.6,40.4c0,25.4-16.8,40.2-35.6,40.2    C317.5,176.9,300.7,162.1,300.7,136.7z M358.4,136.7c0-17.6-8.9-29.6-22.1-29.6c-13.2,0-22.1,12-22.1,29.6s8.9,29.4,22.1,29.4    C349.5,166.1,358.4,154.3,358.4,136.7z M392,98.2h10.7l1.1,11.1h0.4c7.3-7.2,15.2-13,25.7-13c16.2,0,23.4,10.4,23.4,30V175h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8V175h-13V98.2z M473.6,123.3c0-33.4,19.7-53.8,46-53.8c12.6,0,22.4,6.1,28.5,12.8l-7.2,8.6c-5.5-5.8-12.3-9.8-21-9.8    c-19.6,0-32.6,16-32.6,41.9c0,26,12.4,42.4,32.1,42.4c9.9,0,17.4-4.3,24-11.6l7.2,8.3c-8.2,9.5-18.3,15-31.8,15    C492.9,176.9,473.6,156.9,473.6,123.3z M568.5,62.5h13v30.8L581,109c7.2-6.9,14.9-12.7,25.5-12.7c16.2,0,23.4,10.4,23.4,30V175h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8V175h-13V62.5z M649.6,155.1c0-16.7,14.4-25.1,47.1-28.6c0-9.9-3.3-19.4-15.8-19.4c-8.9,0-16.9,4.2-22.9,8.2l-5.1-8.9    c7.1-4.6,17.8-10,30.1-10c18.7,0,26.7,12.4,26.7,31.6V175H699l-1.1-9.2h-0.4c-7.3,6.1-15.9,11.1-25.4,11.1    C659.3,176.9,649.6,168.9,649.6,155.1z M696.8,156.3v-21.3c-25.7,3.1-34.4,9.4-34.4,19.2c0,8.7,5.9,12.3,13.4,12.3    C683.2,166.4,689.4,162.8,696.8,156.3z M734,98.2h10.7l1.1,14h0.4c5.3-9.7,13.2-15.9,21.8-15.9c3.4,0,5.8,0.4,8.2,1.6l-2.4,11.4    c-2.6-0.8-4.4-1.3-7.4-1.3c-6.5,0-14.2,4.7-19.4,17.7V175h-13V98.2z M791,151.3v-42.4h-11.4V99l12-0.7l1.6-21.5H804v21.5h20.8v10.6H804v42.7c0,9.4,3,14.8,11.9,14.8    c2.7,0,6.2-1,8.7-2.1l2.5,9.8c-4.3,1.5-9.4,2.8-14.2,2.8C796.6,176.9,791,166.5,791,151.3z M832,166.2l6.4-8.6c6.7,5.4,13.4,9.1,22.7,9.1c10.1,0,15.1-5.4,15.1-11.9c0-7.9-9.1-11.4-17.6-14.5    c-10.8-3.9-22.9-9.2-22.9-22.2c0-12.3,9.8-21.8,26.5-21.8c9.6,0,17.9,3.9,23.9,8.6l-6.2,8.3c-5.3-3.9-10.7-6.8-17.5-6.8    c-9.7,0-14.1,5.2-14.1,11c0,7.3,8.3,10.1,17,13.3c11.1,4.2,23.4,8.7,23.4,23.3c0,12.4-9.9,22.8-28,22.8    C849.8,176.9,839.2,172.3,832,166.2z ","M938.3,159.6V62.5h13v98c0,4,1.7,5.5,3.6,5.5c0.7,0,1.4,0,2.8-0.3l1.8,9.9c-1.8,0.7-4.1,1.2-7.5,1.2    C942.3,176.9,938.3,170.7,938.3,159.6z M976.2,74.1c0-5.1,3.9-8.4,9-8.4s9,3.3,9,8.4c0,4.9-3.9,8.4-9,8.4S976.2,79,976.2,74.1z M978.5,98.2h13V175    h-13V98.2z M1011.7,136.7c0-25.6,17.3-40.4,36.9-40.4c10.1,0,17.1,4.2,22.5,9l-6.6,8.6c-4.5-4-9.2-6.8-15.2-6.8    c-13.9,0-24.1,12-24.1,29.6s9.6,29.4,23.7,29.4c7,0,13.2-3.4,18-7.6l5.6,8.7c-6.9,6.1-15.6,9.8-24.8,9.8    C1027.2,176.9,1011.7,162.1,1011.7,136.7z M1080.3,136.7c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4h-51.7    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C1096.6,176.9,1080.3,161.9,1080.3,136.7z     M1134,130.4c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H1134z M1164.3,98.2h10.7l1.1,11.1h0.4c7.3-7.2,15.2-13,25.7-13c16.2,0,23.4,10.4,23.4,30V175h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8V175h-13V98.2z M1242.2,166.2l6.4-8.6c6.7,5.4,13.4,9.1,22.7,9.1c10.1,0,15.1-5.4,15.1-11.9c0-7.9-9.1-11.4-17.6-14.5    c-10.8-3.9-22.9-9.2-22.9-22.2c0-12.3,9.8-21.8,26.5-21.8c9.6,0,17.9,3.9,23.9,8.6l-6.2,8.3c-5.3-3.9-10.7-6.8-17.5-6.8    c-9.7,0-14.1,5.2-14.1,11c0,7.3,8.3,10.1,17,13.3c11.1,4.2,23.4,8.7,23.4,23.3c0,12.4-9.9,22.8-28,22.8    C1259.9,176.9,1249.4,172.3,1242.2,166.2z M1311.2,136.7c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4H1324    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C1327.4,176.9,1311.2,161.9,1311.2,136.7z     M1364.8,130.4c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H1364.8z","M1426.7,62.5h13v30.8l-0.5,15.8c7.2-6.9,14.9-12.7,25.5-12.7c16.2,0,23.4,10.4,23.4,30V175h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8V175h-13V62.5z M1507.9,155.1c0-16.7,14.4-25.1,47.1-28.6c0-9.9-3.3-19.4-15.8-19.4c-8.9,0-16.9,4.2-22.9,8.2l-5.1-8.9    c7.1-4.6,17.8-10,30.1-10c18.7,0,26.7,12.4,26.7,31.6V175h-10.7l-1.1-9.2h-0.4c-7.3,6.1-15.9,11.1-25.4,11.1    C1517.5,176.9,1507.9,168.9,1507.9,155.1z M1555,156.3v-21.3c-25.7,3.1-34.4,9.4-34.4,19.2c0,8.7,5.9,12.3,13.4,12.3    C1541.5,166.4,1547.6,162.8,1555,156.3z M1583.7,166.2l6.4-8.6c6.7,5.4,13.4,9.1,22.7,9.1c10.1,0,15.1-5.4,15.1-11.9c0-7.9-9.1-11.4-17.6-14.5    c-10.8-3.9-22.9-9.2-22.9-22.2c0-12.3,9.8-21.8,26.5-21.8c9.6,0,17.9,3.9,23.9,8.6l-6.2,8.3c-5.3-3.9-10.7-6.8-17.5-6.8    c-9.7,0-14.1,5.2-14.1,11c0,7.3,8.3,10.1,17,13.3c11.1,4.2,23.4,8.7,23.4,23.3c0,12.4-9.9,22.8-28,22.8    C1601.4,176.9,1590.9,172.3,1583.7,166.2z","M1684.2,136.7c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4h-51.7    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C1700.5,176.9,1684.2,161.9,1684.2,136.7z     M1737.9,130.4c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H1737.9z M1781.5,134.9l-23.2-36.7h14.1l10.3,16.8c2.4,4.2,5,8.6,7.5,12.8h0.6c2.3-4.2,4.6-8.6,6.9-12.8l9.4-16.8h13.5    l-23.2,38.1l25.1,38.7h-14.1l-11.3-17.8c-2.7-4.6-5.5-9.4-8.3-13.8h-0.6c-2.6,4.4-5.1,9.1-7.8,13.8l-10.4,17.8h-13.5L1781.5,134.9    z M1837.5,98.2h10.7l1.1,8.9h0.4c6.9-5.8,15.6-10.8,24.5-10.8c19.8,0,30.4,15.4,30.4,39.1    c0,26.2-15.7,41.4-33.2,41.4c-7,0-14.2-3.2-21.3-8.9l0.3,13.4v26h-13V98.2z M1891.3,135.6c0-16.9-5.8-28.3-20.2-28.3    c-6.5,0-13,3.6-20.5,10.5V158c6.9,5.8,13.6,8,18.7,8C1881.9,165.9,1891.3,154.5,1891.3,135.6z M1922.8,74.1c0-5.1,3.9-8.4,9-8.4s9,3.3,9,8.4c0,4.9-3.9,8.4-9,8.4S1922.8,79,1922.8,74.1z M1925.2,98.2h13    V175h-13V98.2z M1964,98.2h10.7l1.1,14h0.4c5.3-9.7,13.2-15.9,21.8-15.9c3.4,0,5.8,0.4,8.2,1.6l-2.4,11.4    c-2.6-0.8-4.4-1.3-7.4-1.3c-6.5,0-14.2,4.7-19.4,17.7V175h-13V98.2z M2011.5,136.7c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4h-51.7    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C2027.8,176.9,2011.5,161.9,2011.5,136.7z     M2065.2,130.4c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H2065.2z M2090,136.7c0-24.9,15.7-40.4,33.2-40.4c8.9,0,14.8,3.4,21.5,8.9l-0.5-13.2V62.5h13V175h-10.7l-1.1-9.1h-0.4    c-6,6-14.1,11-23.3,11C2102.5,176.9,2090,162.3,2090,136.7z M2144.2,155.5v-40.2c-6.6-5.8-12.5-8-18.7-8c-12.3,0-22,11.8-22,29.3    c0,18.4,7.6,29.4,21.1,29.4C2131.6,165.9,2137.8,162.5,2144.2,155.5z"],fusionchartsUnlicensedText:["M290.9,173.3V64h66.1v16.4h-46.7V111H350v16.6h-39.6v45.6H290.9z M370.7,142.7V91.2H390v49      c0,13.6,3.9,18.6,12.8,18.6c7.2,0,11.4-3.4,18.1-11.4V91.2h19.3v82.1H424l-1.5-12l0,0c-6.2,8.5-15.9,13.7-26.4,14      C378,175.3,370.7,163.5,370.7,142.7z M456.3,163.9l9.1-12.3c6.3,5.6,14.4,8.8,22.8,9.1c8.9,0,13-4.1,13-9.8s-8.8-9.9-17.6-13.2      c-11.4-4-22.8-10.3-22.8-23.9s11.4-24.5,30-24.5c9.7,0.5,19,4.1,26.4,10.4l-8.9,11.4c-5.1-4.3-11.4-6.7-18-7.1      c-8.2,0-12.1,3.9-12.1,9s8.2,9.1,17.1,12.2c11.4,4.2,23.5,9.6,23.5,25s-11.4,25.4-31.9,25.4c-11.4-0.4-22.3-4.5-31.1-11.6H456.3      z M545.8,76.9c-6.3,0-11.4-5.1-11.4-11.4s5.1-11.4,11.4-11.4c6.3,0,11.4,5.1,11.4,11.4S552.1,76.9,545.8,76.9z M536.1,173.3      V91.2h19.3v82.1H536.1z M574.6,132.4c-2-21.6,13.8-40.7,35.4-42.7c21.6-2,40.7,13.8,42.7,35.4c0.2,2.4,0.2,4.9,0,7.3      c2,21.6-13.8,40.7-35.4,42.7c-21.6,2-40.7-13.8-42.7-35.4C574.4,137.2,574.4,134.8,574.6,132.4z M594.4,132.4      c0,16.4,7.2,27.2,19.3,27.2c12.1,0,19.3-10.8,19.3-27.2s-7.4-27.5-19.4-27.5C601.5,104.9,594.4,115.8,594.4,132.4z M671.7,173.3      V91.2h15.8l1.4,11.4h0.9c6.8-7.8,16.5-12.5,26.9-13c17.6,0,25.2,11.4,25.2,32.6v51.4h-19.4v-49.2c0-13.6-3.9-18.6-12.9-18.6      c-7.4,0.6-14.2,4.3-18.7,10.1v57L671.7,173.3z M761,119c0-35.8,22.8-57,50.5-57c11.8,0.1,23.1,5.1,31.1,13.8l-10.7,12.4      c-5.2-5.7-12.5-8.9-20.2-9C793.8,78.9,781,94,781,118.5s11.4,40,30.1,40c8.9-0.1,17.3-4.3,22.8-11.4l10.7,12      c-8.4,10.2-21,16-34.2,15.8C782.9,175.3,761,155.3,761,119z M860.8,173.3v-118H880v30.4v15.8c6.8-7.5,16.3-11.9,26.4-12.3      c17.6,0,25.2,11.4,25.2,32.6v51.4H912v-48.9c0-13.6-3.9-18.6-12.9-18.6c-7.4,0.6-14.2,4.3-18.8,10.1v57L860.8,173.3z       M950.9,151.3c0-17.6,14.7-26.8,48.3-30.4c0-8.8-3.8-16.1-14.8-16.1c-8.2,0.6-16.1,3.3-22.8,8l-7.3-13.1      c10.2-6.7,22-10.4,34.2-10.6c20.5,0,30.5,12.5,30.5,35.3v48.7h-16.3l-1.5-9l0,0c-6.8,6.7-15.8,10.8-25.3,11.4      c-12.5,1.3-23.7-7.8-25-20.3C950.8,153.8,950.8,152.6,950.9,151.3z M969.7,149.7c0,7.4,4.8,10.6,11.4,10.6      c6.9-0.5,13.4-3.7,17.9-9v-18.5C977,135.7,969.7,141.6,969.7,149.7z M1041.8,173.3V91.2h16l1.3,14.6h0.7      c4.1-9.2,12.8-15.5,22.8-16.5c3.2-0.2,6.4,0.4,9.3,1.6l-3.1,16.8c-2.8-0.9-5.6-1.4-8.5-1.4c-6.5,0-14.4,4.6-19.4,16.9v50.2      H1041.8z M1107,145.2v-38.8h-11.4V92l12.7-0.8l2.4-22.8h16v22.8h21v15.3h-21.2v38.8c0,9.7,3.8,14.4,11.4,14.4      c2.9-0.1,5.8-0.7,8.4-1.8l3.4,14.1c-5.4,2-11,3-16.8,3.1C1114.1,175.3,1107,163.3,1107,145.2z M1156.4,163.6l9-12.3      c6.3,5.5,14.4,8.7,22.8,9.1c8.8,0,13-4.1,13-9.8s-8.9-9.9-17.6-13.2c-10.8-4-22.8-10.3-22.8-23.9s11.4-24.5,29.9-24.5      c9.9,0.1,19.5,3.6,27.2,9.8l-8.8,11.4c-5.1-3.9-11.3-6.2-17.8-6.4c-8.2,0-11.4,3.9-11.4,9c0,5.1,8.1,9.1,17,12.2      c11.4,4.2,23.6,9.6,23.6,25s-11.4,25.4-31.9,25.4c-11.7-0.1-23.1-4.1-32.3-11.4V163.6z M1265.2,132.8V71.9h13.2v61.2c0,24.9,10.5,32.7,24.1,32.7c13.7,0,24.6-7.8,24.6-32.7V71.9h12.6v60.8    c0,33.3-16.1,44.7-37.2,44.7S1265.2,166,1265.2,132.8z M1366.3,98.8h10.7l1.1,11.1h0.4c7.3-7.2,15.2-13,25.7-13c16.2,0,23.4,10.4,23.4,30v48.6h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8v55.6h-13V98.8z M1452.6,160.2V63.1h13v98c0,4,1.7,5.5,3.6,5.5c0.7,0,1.4,0,2.8-0.3l1.8,9.9c-1.8,0.7-4.1,1.2-7.5,1.2    C1456.6,177.5,1452.6,171.3,1452.6,160.2z M1490.5,74.7c0-5.1,3.9-8.4,9-8.4s9,3.3,9,8.4c0,4.9-3.9,8.4-9,8.4S1490.5,79.6,1490.5,74.7z M1492.9,98.8h13    v76.7h-13V98.8z M1526,137.3c0-25.6,17.3-40.4,36.9-40.4c10.1,0,17.1,4.2,22.5,9l-6.6,8.6c-4.5-4-9.2-6.8-15.2-6.8    c-13.9,0-24.1,12-24.1,29.6s9.6,29.4,23.7,29.4c7,0,13.2-3.4,18-7.6l5.6,8.7c-6.9,6.1-15.6,9.8-24.8,9.8    C1541.6,177.5,1526,162.7,1526,137.3z M1594.7,137.3c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4h-51.7    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C1611,177.5,1594.7,162.5,1594.7,137.3z     M1648.3,131c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H1648.3z M1678.7,98.8h10.7l1.1,11.1h0.4c7.3-7.2,15.2-13,25.7-13c16.2,0,23.4,10.4,23.4,30v48.6h-13v-47    c0-14.3-4.3-20.4-14.5-20.4c-7.8,0-13.3,4-21,11.8v55.6h-13V98.8z M1756.6,166.8l6.4-8.6c6.7,5.4,13.4,9.1,22.7,9.1c10.1,0,15.1-5.4,15.1-11.9c0-7.9-9.1-11.4-17.6-14.5    c-10.8-3.9-22.9-9.2-22.9-22.2c0-12.3,9.8-21.8,26.5-21.8c9.6,0,17.9,3.9,23.9,8.6l-6.2,8.3c-5.3-3.9-10.7-6.8-17.5-6.8    c-9.7,0-14.1,5.2-14.1,11c0,7.3,8.3,10.1,17,13.3c11.1,4.2,23.4,8.7,23.4,23.3c0,12.4-9.9,22.8-28,22.8    C1774.3,177.5,1763.8,172.8,1756.6,166.8z M1825.5,137.3c0-25,16.8-40.4,34.5-40.4c19.6,0,30.6,14.1,30.6,36c0,2.7-0.2,5.5-0.6,7.4h-51.7    c0.9,16.3,10.9,26.8,25.5,26.8c7.4,0,13.4-2.4,19.1-6.1l4.7,8.5c-6.7,4.4-14.9,8-25.3,8C1841.8,177.5,1825.5,162.5,1825.5,137.3z     M1879.2,131c0-15.4-6.9-23.7-18.9-23.7c-10.8,0-20.4,8.7-22,23.7H1879.2z M1904.1,137.3c0-24.9,15.7-40.4,33.2-40.4c8.9,0,14.8,3.4,21.5,8.9l-0.5-13.2V63.1h13v112.5h-10.7l-1.1-9.1    h-0.4c-6,6-14.1,11-23.3,11C1916.5,177.5,1904.1,162.9,1904.1,137.3z M1958.2,156.1v-40.2c-6.5-5.8-12.5-8-18.7-8    c-12.3,0-22,11.8-22,29.3c0,18.4,7.6,29.4,21.1,29.4C1945.6,166.5,1951.8,163.1,1958.2,156.1z","M 45.1 24.5 H 74.8 C 93.9 24.5 107.9 30.3 107.9 47.4 C 107.9 56.1 103.1 64.7 95 67.5 V 68.1 C 105.3 70.4 112.8 77.6 112.8 90.1 C 112.8 108.7 97.6 117.4 77.1 117.4 H 45.1 V 24.5 Z M 73.4 62.8 C 86.3 62.8 91.9 57.7 91.9 49.7 C 91.9 40.7 85.8 37.3 73.8 37.3 H 61.6 V 62.8 H 73.4 Z M 75.5 104.5 C 89.1 104.5 96.7 99.6 96.7 89.2 C 96.7 79.4 89.3 75.2 75.5 75.2 H 61.6 V 104.6 H 75.5 Z M 127.7 91.3 V 47.6 H 144 V 89.2 C 144 100.7 147.3 105 154.8 105 C 160.9 105 165 102.2 170.2 95.3 V 47.6 H 186.6 V 117.3 H 173.2 L 172 107 H 171.5 C 165.4 114.3 158.6 119 149.1 119 C 134.2 119.1 127.7 109 127.7 91.3 Z M 202.9 144.6 L 205.9 131.9 C 207.2 132.3 209.3 132.9 210.9 132.9 C 218.2 132.9 222.5 127.9 224.8 120.9 L 226.1 116.5 L 198.7 47.6 H 215.3 L 227.3 81.8 C 229.4 88 231.4 94.9 233.4 101.5 H 234 C 235.8 95 237.5 88.2 239.3 81.8 L 249.7 47.6 H 265.5 L 240.3 120.5 C 234.5 136.2 227.2 145.9 212 145.9 C 208.2 146 205.5 145.4 202.9 144.6 Z M 306.1 99.4 V 17.1 H 322.5 V 100.3 C 322.5 104.3 324.3 105.8 326 105.8 C 326.7 105.8 327.3 105.8 328.6 105.5 L 330.6 117.7 C 328.6 118.5 325.9 119.1 322 119.1 C 310.4 119.1 306.1 111.6 306.1 99.4 Z M 342.7 26.2 C 342.7 20.7 347 16.9 352.8 16.9 C 358.6 16.9 362.9 20.6 362.9 26.2 C 362.9 31.6 358.6 35.5 352.8 35.5 C 347 35.4 342.7 31.5 342.7 26.2 Z M 344.6 47.6 H 361 V 117.3 H 344.6 V 47.6 Z M 377.2 82.5 C 377.2 59.3 393.6 45.9 412.2 45.9 C 421.1 45.9 427.5 49.3 432.6 53.7 L 424.6 64.3 C 420.9 61.1 417.4 59.2 413 59.2 C 401.8 59.2 394 68.5 394 82.5 C 394 96.5 401.7 105.7 412.5 105.7 C 418 105.7 423 103 426.9 99.7 L 433.5 110.5 C 427 116.3 418.7 119.1 410.7 119.1 C 391.8 119.1 377.2 105.7 377.2 82.5 Z M 439.4 82.5 C 439.4 59.8 455.1 45.9 471.5 45.9 C 490.4 45.9 500.3 59.5 500.3 79 C 500.3 82.1 500 85.2 499.6 87 H 455.3 C 456.7 99.4 464.6 106.4 475.9 106.4 C 481.9 106.4 487 104.5 492.1 101.3 L 497.7 111.5 C 491.1 116 482.7 119.1 473.8 119.1 C 454.5 119.1 439.4 105.5 439.4 82.5 Z M 486.2 75.8 C 486.2 65.1 481.4 58.5 471.9 58.5 C 463.8 58.5 456.6 64.6 455.2 75.8 H 486.2 Z M 515.9 47.6 H 529.3 L 530.5 57 H 531 C 537.2 50.9 544.3 45.9 553.9 45.9 C 568.8 45.9 575.4 56 575.4 73.6 V 117.3 H 559 V 75.7 C 559 64.2 555.7 59.9 548.2 59.9 C 542.1 59.9 538 62.9 532.3 68.6 V 117.3 H 515.9 V 47.6 Z M 588.5 109.4 L 596.1 99 C 602.3 103.8 608.3 106.8 615.4 106.8 C 623 106.8 626.6 103.2 626.6 98.5 C 626.6 92.7 619 90 611.6 87.2 C 602.5 83.8 592 78.5 592 66.9 C 592 54.8 601.8 46.1 617.4 46.1 C 627.1 46.1 634.9 50 640.6 54.4 L 633 64.3 C 628.1 60.7 623.2 58.2 617.7 58.2 C 610.7 58.2 607.4 61.6 607.4 65.9 C 607.4 71.4 614.4 73.5 622 76.3 C 631.4 79.8 642 84.4 642 97.4 C 642 109.4 632.5 119 614.9 119 C 605.4 119.1 595.3 115 588.5 109.4 Z M 652 82.5 C 652 59.8 667.7 45.9 684.1 45.9 C 703 45.9 713 59.5 713 79 C 713 82.1 712.7 85.2 712.3 87 H 668 C 669.4 99.4 677.3 106.4 688.6 106.4 C 694.6 106.4 699.7 104.5 704.8 101.3 L 710.4 111.5 C 703.8 116 695.4 119.1 686.5 119.1 C 667.1 119.1 652 105.5 652 82.5 Z M 698.8 75.8 C 698.8 65.1 694 58.5 684.5 58.5 C 676.4 58.5 669.2 64.6 667.8 75.8 H 698.8 Z M 757 47.6 H 770.4 L 771.6 57 H 772.1 C 778.3 50.9 785.4 45.9 795 45.9 C 809.9 45.9 816.5 56 816.5 73.6 V 117.3 H 800.1 V 75.7 C 800.1 64.2 796.8 59.9 789.3 59.9 C 783.2 59.9 779.1 62.9 773.4 68.6 V 117.3 H 757 V 47.6 Z M 831.9 82.5 C 831.9 59.3 847.7 45.9 865.1 45.9 S 898.3 59.3 898.3 82.5 C 898.3 105.6 882.5 119 865.1 119 S 831.9 105.7 831.9 82.5 Z M 881.4 82.5 C 881.4 68.5 875.3 59.2 865 59.2 S 848.6 68.5 848.6 82.5 C 848.6 96.5 854.7 105.7 865 105.7 S 881.4 96.5 881.4 82.5 Z M 906.6 47.6 H 923 L 931.5 83.8 C 932.9 90.6 933.9 97.1 935.1 103.9 H 935.7 C 937.1 97.1 938.4 90.4 940.1 83.8 L 949.2 47.6 H 964 L 973.3 83.8 C 975 90.6 976.4 97.1 977.9 103.9 H 978.5 C 979.9 97.1 980.9 90.6 982.2 83.8 L 990.5 47.6 H 1005.8 L 988.1 117.3 H 968.7 L 960.5 84.8 C 959 78.3 957.8 71.9 956.3 64.6 H 955.7 C 954.3 71.9 953.1 78.4 951.6 85 L 943.7 117.4 H 925 L 906.6 47.6 Z M 1021.2 108 C 1021.2 101.6 1025.8 96.9 1031.8 96.9 C 1037.8 96.9 1042.4 101.6 1042.4 108 C 1042.4 114.3 1037.8 119 1031.8 119 C 1025.8 119.1 1021.2 114.3 1021.2 108 Z M 1024.1 38.4 L 1023.6 22.3 H 1040.1 L 1039.6 38.4 L 1037.3 86.8 H 1026.4 L 1024.1 38.4 Z M 33.3 131.6 V 124.5 H 1054.1 V 131.6 H 33.3 Z"]}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r=function(){function e(){}var t=e.prototype;return t.draw=function(){},t.drawAt=function(){},t.hide=function(){},t.hideAll=function(){},t.enableToolTip=function(){},t.disableToolTip=function(){},t.setStyle=function(){},e}();t["default"]={extension:r,name:"ToolTipController",type:"plugin"}},(e,t,r)=>{var n=r(340)(function(e,t){return t instanceof e||null!=t&&(t.constructor===e||"Object"===e.name&&"object"==typeof t)});e.exports=n},(e,t,r)=>{var n=r(341),a=r(342);e.exports=function(e){return function t(r,i){switch(arguments.length){case 0:return t;case 1:return a(r)?t:n(function(t){return e(r,t)});default:return a(r)&&a(i)?t:a(r)?n(function(t){return e(t,i)}):a(i)?n(function(t){return e(r,t)}):e(r,i)}}}},(e,t,r)=>{var n=r(342);e.exports=function(e){return function t(r){return 0===arguments.length||n(r)?t:e.apply(this,arguments)}}},e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(344),a={sum:n.sum,avg:n.avg,count:n.count,min:n.min,max:n.max,first:n.first,last:n.last,variance:n.variance,stddev:n.stddev};t["default"]={store:{},_defaultAggregators:a,register:function(e,t){return this.store[e]=t,this},getRegisteredAggregations:function(){return Object.assign(this.store)},getDefaultAggregations:function(){return Object.assign(this._defaultAggregators)},resolve:function(e){return this._defaultAggregators[e]||this.store[e]}}},(e,t)=>{"use strict";t.__esModule=!0,t.variance=t.sum=t.stddev=t.min=t.max=t.last=t.first=t.count=t.avg=void 0;t.sum=function(e,t){return e+t};var r=t.avg=function(e,t,r){return((r-1)*e+t)/r},n=(t.count=function(e){return e+1},t.min=function(e,t){return null!==e?e>t?t:e:t},t.max=function(e,t){return null!==e?e<t?t:e:t},t.first=function(e,t){return null===e?t:e},t.last=function(e,t){return t},t.variance=function(e,t,n){var a,i=t,o=0;return e&&(i=e.avg,o=e.variance),a=i,n>1&&(o=(o*(n-2)+(t-(i=r(i,t,n)))*(t-a))/(n-1)),{avg:i,variance:o}});t.stddev=function(e,t,r){var a,i;return e&&(a={avg:e.avg,variance:e.stddev*e.stddev}),{avg:(i=n(a,t,r)).avg,stddev:Math.sqrt(i.variance)}}},(e,t,r)=>{"use strict";r(304),r(346)},(e,t,r)=>{"use strict";r(302),r(301),r(303)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(348));t.MessageLogger=a["default"];var i=n(r(351));t.linkedChartsExtension=i["default"];var o=n(r(353));t.XMLTranscoder=o["default"];var s=n(r(354));t.CSVTranscoder=s["default"];var l=n(r(374));t.JSONUrlTranscoder=l["default"];var c=n(r(377));t.XMLUrlTranscoder=c["default"];var u=n(r(378));t.IgnoreCaseExt=u["default"];var d=n(r(379));t.ThemeEngine=d["default"];var h=n(r(380));t.DefaultTheme=h["default"];var f=n(r(381));t.PlotHighlighter=f["default"];var p=n(r(383));t.ToolTipController=p["default"];var g=n(r(386));t.ConsolidatedToolTip=g["default"];var m=n(r(387));t.AlertManager=m["default"];var v=n(r(389));t.DataSkipping=v["default"];var b=n(r(393));t.Annotation=b["default"];var y=n(r(415));t.RegressionExtension=y["default"];var w=n(r(421));t.inputAdapter=w["default"];var x=n(r(450));t.LegendEventManagerLinker=x["default"];var _=n(r(451));t.exportModule=_["default"];var S=n(r(483));t.BatchExportLinker=S["default"];var k=n(r(484));t.LogoExtension=k["default"];var C=n(r(486));t.supportOldThemes=C["default"];var A=n(r(487));t.debug=A["default"];var N=n(r(488));t.CenterLabel=N["default"];var E=n(r(491));t.CrossLine=E["default"];var L=n(r(495));t.MultiCanvasCrossLine=L["default"];var T=n(r(496));t.ResourceString=T["default"];t["default"]={name:"features",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(i["default"]),e.addDep(o["default"]),e.addDep(s["default"]),e.addDep(l["default"]),e.addDep(c["default"]),e.addDep(u["default"]),e.addDep(d["default"]),e.addDep(f["default"]),e.addDep(h["default"]),e.addDep(p["default"]),e.addDep(g["default"]),e.addDep(m["default"]),e.addDep(a["default"]),e.addDep(v["default"]),e.addDep(b["default"]),e.addDep(_["default"]),e.addDep(y["default"]),e.addDep(w["default"]),e.addDep(x["default"]),e.addDep(S["default"]),e.addDep(k["default"]),e.addDep(C["default"]),e.addDep(A["default"]),e.addDep(N["default"]),e.addDep(E["default"]),e.addDep(L["default"]),e.addDep(T["default"])}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(349)),i={timeseries:!0},o=function(e){var t=e.sender.getName().toLowerCase();"chartAPI"!==e.sender.getType()||i[t]||e.sender.registerFactory("messageLogger",function(t){if(t.getChildren("messageLogger"))t.getChildren("messageLogger")[0].configure(t);else{var r=new a["default"];r.configure(t),r.addToEnv("chart-container",t.getFromEnv("chart-container")),t.attachChild(r,"messageLogger"),t.getFromEnv("chartInstance").showLog=function(){return r&&r.show&&r.show()},t.getFromEnv("chartInstance").hideLog=function(){return r&&r.hide&&r.hide()},t.getFromEnv("chartInstance").clearLog=function(){return r&&r.clearLog&&r.clearLog()},e.sender.addEventListener("realtimeDataUpdate",function(e){e.sender.getChildren("messageLogger")&&e.sender.getChildren("messageLogger")[0].addLog(e.data)})}})};t["default"]={extension:function(e){e.addEventListener("instantiated",o)},name:"messageLoggerLinker",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=n(r(350)),s=r(297),l=r(281),c=n(r(305)),u=Math.min,d="normal",h="px",f=function(e){function t(){var t;return(t=e.call(this)||this).pIndex=1,t.linkedItems=t.linkedItems||(t.linkedItems={}),t.components=t.components||{},t.components.messages=t.components.messages||[],t.graphics=t.graphics||{},t.config=t.config||(t.config={}),t}(0,i["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"MessageLogger"},r.configure=function(e){this.linkedItems.chart=e;var t=e.getFromEnv("chart-attrib")||{},r=this.config.usemessagelog=e.getFromEnv("chartConfig").usemessagelog;this.config.messageLogWPercent=u((0,l.pluckNumber)(t.messagelogwpercent,80),100),this.config.messageLogHPercent=u((0,l.pluckNumber)(t.messageloghpercent,70),100),this.config.messageLogShowTitle=(0,l.pluckNumber)(t.messagelogshowtitle,1),this.config.messageLogTitle=(0,l.pluck)(t.messagelogtitle,"Message Log"),this.config.messageLogColor=(0,l.pluck)(t.messagelogcolor,"#fbfbfb").replace(/^#?([a-f0-9]+)/gi,"$1"),this.config.messageLogColorRgb=(0,l.HEXtoRGB)(this.config.messageLogColor),this.config.messageGoesToJS=(0,l.pluckNumber)(t.messagegoestojs,0),this.config.messageGoesToLog=(0,l.pluckNumber)(t.messagegoestolog,1),this.config.messageJSHandler=(0,l.pluck)(t.messagejshandler,""),this.config.messagePassAllToJS=(0,l.pluckNumber)(t.messagepassalltojs,0),this.config.messagePassAsObject=(0,l.pluckNumber)(t.messagepassasobject,0),this.config.messageLogIsCancelable=(0,l.pluckNumber)(t.messagelogiscancelable,1),this.config.alwaysShowMessageLogMenu=(0,l.pluckNumber)(t.alwaysshowmessagelogmenu,r),e.config.useShowLogMenu=r&&this.config.messageGoesToLog,this.config.dynamicScrolling=!1,this.config.scrollToBottom=!0},r._createMessage=function(e){var t=new o["default"](e,this);return this.graphics.container&&t.draw(),t},r.addLog=function(e){var t,r=this.components.messages,n=(0,l.pluckNumber)(e.msgGoesToLog,this.config.messageGoesToLog),a=(0,l.pluckNumber)(e.msgGoesToJS,this.config.messageGoesToJS),i=window[this.config.messageJSHandler],o=(0,l.pluck)(e.msgId,""),s=(0,l.pluck)(e.msgTitle,""),c=(0,l.pluck)(e.msgText,""),u=(0,l.pluck)(e.msgType,"literal");0!==this.config.usemessagelog&&(a&&i&&"function"==typeof i&&(this.config.messagePassAllToJS?this.config.messagePassAsObject?i(e):i(o,s,c,u):i(c)),"1"===e.clearLog&&this.clearLog(),n&&(e.msgTitle||e.msgText)&&(t=this._createMessage(e),r.push(t),1!==r.length||this.config.visible||this.show()))},r.show=function(){this.config.visible||1!==this.config.usemessagelog||(this.config.visible=!0,this.draw(),this.graphics.container||this.draw(),this.graphics.container&&this.graphics.container.show())},r.hide=function(){this.config.visible=!1,this.graphics.container&&this.graphics.container.hide()},r.clearLog=function(){var e,t=this.components.messages,r=t.length;for(e=0;e<r;e+=1)t[e]&&t[e].dispose&&t[e].dispose();t.splice(0,r)},r.isDrawn=function(){return!!this.graphics.container},r.draw=function(){var e,t,r=this.components.messages;if(0===this.config.usemessagelog)this.isDrawn()&&(this.clearLog(),this.hide());else for(this._createHTMLDialogue(),this.config.visible||this.hide(),t=r.length,e=0;e<t;e+=1)r[e]&&r[e].draw&&r[e].draw()},r._createHTMLDialogue=function(){var e,t,r,n,i=this,o=this.config,s=this.graphics,l=this.getFromEnv("paper"),u=this.linkedItems.chart.config,f=u.width,p=u.height,g=u.style,m=g&&g.inCanvasStyle,v=this.config.messageLogWPercent,b=this.config.messageLogHPercent,y=this.config.messageLogShowTitle,w=this.config.messageLogIsCancelable,x=this.config.messageLogColor,_=this.config.messageLogTitle,S=f*(v/100),k=p*(b/100),C=(f-S)/2,A=(p-k)/2,N=S-18-22,E=k-18-22,L=x,T=x,M=s.container,F=this.isDrawn()&&u.animation&&u.animation.transposeAnimDuration;M||(M=s.container=l.html("div",{fill:"transparent"},{fontSize:10+h,lineHeight:15+h},this.getFromEnv("chart-container")),s.veil=l.html("div",{id:"veil",fill:"000000",opacity:.1},a,M).on("fc-click",function(){w&&i.hide()}),_&&y&&(s.title=l.html("p",{id:"Title",innerHTML:c["default"].createHTML(_),x:5,y:5},{"font-weight":"bold"},M)),s.dialog=l.html("div",{id:"dialog",strokeWidth:1},{borderRadius:5+h,boxShadow:"1px 1px 3px #000000","-webkit-border-radius":5+h,"-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},M),s.logBackground=l.html("div",{id:"dialogBackground",x:0,y:0},a,s.dialog),w&&(s.closeButton=l.html("div",{id:"closeButton",x:S-11-3,y:2,innerHTML:c["default"].createHTML("<b>x</b>")},{cursor:"pointer",_cursor:"hand"},s.dialog).on("fc-click",function(){w&&i.hide()})),s.logWrapper=l.html("div",{id:"logWrapper"},{overflow:"auto"},s.dialog).on("scroll",function(){var e=this,t=e&&e.scrollTop,r=e&&e.scrollHeight,n=e&&e.offsetHeight;o.dynamicScrolling?o.dynamicScrolling=!1:o.scrollToBottom=r-t===n}),s.log=l.html("div",{id:"log",x:0,y:0},{},s.logWrapper)),M.css({fontFamily:m.fontFamily}),s.dialog.attr({fill:"ffffff",stroke:L}),s.logBackground.attr({fill:T}),e={width:f,height:p},t={x:C,y:A,width:S,height:k},r={width:S,height:k},n={x:(S-N)/2,y:(k-E)/2,width:N,height:E},F?(M.animate(e,F,d),s.veil.animate(e,F,d),s.dialog.animate(t,F,d),s.logBackground.animate(r,F,d),s.logWrapper.animate(n,F,d)):(M.attr(e),s.veil.attr(e),s.dialog.attr(t),s.logBackground.attr(r),s.logWrapper.attr(n))},t}(s.ComponentInterface);t["default"]=f},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(281),i=n(r(305)),o=8===window.document.documentMode,s="$titleVal$",l="$msgVal$",c="$msgLinkVal$",u={},d={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"};u.literal=u.info={title:'<span style="color: #005900">'+s+"</span>",body:'<span">'+l+"</span>"},u.link={title:u.info.title,body:'<a href="'+c+'">'+l+"</a>"},u.error={title:'<span style="color: #CC0000">'+s+"</span>",body:'<span style="color: #CC0000">'+l+"</span>"};var h=function(){function e(e,t){this.config={},this.messageType=(e.msgType&&e.msgType.replace(/^[\r\n]+|\.|[\r\n]+$/g,"")||"").toLowerCase(),this.msgTitle=e.msgTitle,this.msgText=e.msgText,this.msgLink=e.msgLink,this.graphics={},this.linkedItems={msgLogger:t},this.msgObj=u[this.messageType]||u.literal,this.configureMsgTextAndMsgTitle()}var t=e.prototype;return t.configureMsgTextAndMsgTitle=function(){this.config.totalHTML=a.BLANKSTRING,this.msgTitle&&(this.config.titleHTML=this.msgObj.title.replace(s,this.msgTitle),this.config.totalHTML+=this.config.titleHTML),this.msgText&&(this.config.msgHTML=this.msgObj.body.replace(l,this.msgText),this.config.msgHTML=this.config.msgHTML.replace(c,this.msgText),this.config.totalHTML+=this.config.msgHTML)},t.draw=function(){var e,t,r,n=this.graphics.element,s=this.linkedItems.msgLogger,l=s.graphics,c=l&&l.log&&l.log.element,u=l.logWrapper&&l.logWrapper.element,h=s.config;if(!n){for(e in n=this.graphics.element=window.document.createElement("span"),d)n.style[e]=d[e];c.appendChild&&c.appendChild(n)}this.graphics.element.innerHTML=i["default"].createHTML(this.config.totalHTML),a.isIE&&o&&(t=c.innerHTML,c.innerHTML=i["default"].createHTML(t)),h.scrollToBottom&&(h.dynamicScrolling=!0,r=u.scrollHeight,u.scrollTop=r)},t.dispose=function(){var e=this.linkedItems.msgLogger;e&&e.graphics&&e.graphics.log&&e.graphics.log.element&&e.graphics.log.element.removeChild&&e.graphics.log.element.removeChild(this.graphics.element),delete this.graphics.element,a.componentDispose.call(this)},e}();t["default"]=h},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(352)),o=r(288),s=r(281),l=n(r(283));var c,u=s.regex.dropHash;function d(e,t){return(e.options.containerElement===t.options.containerElement||e.options.containerElementId===t.options.containerElementId)&&e.options.insertMode===s.domInsertModes.REPLACE}function h(e){var t;e.sender.link instanceof i["default"]&&!e.sender.link.root.disposed?e.sender.link.parent instanceof this&&!(t=e.sender.link.parent.link.items)[e.sender.id]&&(t[e.sender.id]=e.sender):e.sender.link=new i["default"](e.sender)}function f(e,t){var r,n=t;if(e instanceof Array){for(r=0;r<e.length;r+=1)"object"!=typeof i.store[this.link.root.id][r]&&(i.store[this.link.root.id][r]={}),(0,s.extend2)(i.store[this.link.root.id][r],e[r],!1,!0);i.store[this.link.root.id].splice(e.length)}else"object"==typeof e?("number"!=typeof n&&(n=this.link.level),"undefined"==typeof i.store[this.link.root.id][n]&&(i.store[this.link.root.id][n]={}),(0,s.extend2)(i.store[this.link.root.id][n],e,!1,!0)):(0,o.raiseError)(this,"25081731","param","~configureLink()","Unable to update link configuration from set parameters")}function p(e){var t,r,n,a=this.jsVars,i=a.overlayButton;if(e&&e.show){for(i||(i=a.overlayButton=document.createElement("span"),l["default"].listen(i,"click",function(){(0,o.triggerEvent)("OverlayButtonClick",a.fcObj,e)})),n=e.message?e.message:"Back";i.firstChild;)i.removeChild(i.firstChild);for(r in i.appendChild(document.createTextNode(n)),a.overlayButtonMessage=n,t={border:"1px solid "+(e.borderColor?e.borderColor.replace(u,s.HASHSTRING):"#7f8975"),backgroundColor:e.bgColor?e.bgColor.replace(u,s.HASHSTRING):"#edefec",fontFamily:e.font?e.font:"Verdana,sans",color:(e.fontColor,e.fontColor),fontSize:(e.fontSize?e.fontSize:"10")+s.PXSTRING,padding:(e.padding?e.padding:"3")+s.PXSTRING,fontWeight:0===parseInt(e.bold,10)?s.NORMAL:s.BOLD,position:"absolute",top:"0",right:"0",cursor:s.POINTER})i.style[r]=t[r];a.hcObj.container.appendChild(i),a.overlayButtonActive=!0}else i&&(a.overlayButton=i.parentNode.removeChild(i),a.overlayButtonActive=!1,delete a.overlayButtonMessage)}t["default"]={type:"extension",name:"LinkedChart",extension:function(e){e.prototype.configureLink=f,e.prototype.drawOverlayButton=p,e.addEventListener("beforeRender",h),e.addEventListener("beforeInitialize",h),e.addEventListener("linkedChartInvoked",function(t,r){var n,a=t.sender,l=a.clone({dataSource:r.data,dataFormat:r.linkType,link:new i["default"](a.link.root,a,a instanceof e),clickedEntity:r.clickedEntity,clickedEntityBox:r.clickedEntityBox},!0),u=r.alias;u&&(!l.typeSource&&l.swfUrl&&(l.typeSource=l.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/gi,"$1")),l.type=u),a.args&&0!==parseInt(a.args.animate,10)&&delete l.animate,(0,s.extend2)(l,a.link.configuration(),!1,!0),(0,o.triggerEvent)("beforeLinkedItemOpen",a.link.root,{level:a.link.level},c,function(){e.items[l.id]instanceof e&&e.items[l.id].dispose(),d(n=new e(l),a)||a.options.overlayButton&&a.options.overlayButton.message||("object"!=typeof a.options.overlayButton&&(a.options.overlayButton={}),a.options.overlayButton.message="Close"),n.render(),(0,o.triggerEvent)("linkedItemOpened",a.link.root,{level:a.link.level,item:n})})}),e.addEventListener("overlayButtonClick",function(t,r){var n,a,i,s;"LinkManager"===r.id&&(n=t.sender,a=n.link.level-1,i=n.link.parent,s=n.link.root,(0,o.triggerEvent)("beforeLinkedItemClose",s,{level:a,item:n},c,function(){setTimeout(function(){e.items[n.id]&&n.dispose(),(0,o.triggerEvent)("linkedItemClosed",s,{level:a})},0),i.disposed||i.isActive()||!d(n,i)?(i._addChartDependency("returnFromLinkedChart",{resolve:function(){return{state:3}}}),i._setState()):i.render()}))}),e.addEventListener("DrawComplete",function(t){var r,n=t.sender;n&&"undefined"!=typeof n.link&&n.link.root!==n&&n.link.parent instanceof e&&(n.ref&&"function"==typeof n.drawOverlayButton?(r=(0,s.extend2)({show:!0,id:"LinkManager"},n.link.parent.options.overlayButton,!1,!0),(0,s.extend2)(r,n.link.parent.link.configuration().overlayButton||{},!1,!0),n.drawOverlayButton(r)):(0,o.raiseWarning)(n,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+n.id))}),e.addEventListener("beforeDispose",function(t){var r=t.sender;r&&r.link instanceof i["default"]&&(r&&r.link&&r.link.parent instanceof e&&r.link.parent.link&&r.link.parent.link.items&&delete r.link.parent.link.items[t.sender.id],delete i.store[r.id])})},requiresFusionCharts:!0}},(e,t)=>{"use strict";t.__esModule=!0,t.store=t["default"]=void 0;var r=t.store={},n=function(){function e(e,t,n){this.items={},this.root=e,this.parent=t,n?this.level=this.parent.link.level+1:(r[e.id]=[{}],this.level=0)}return e.prototype.configuration=function(){return r[this.root.id][this.level]||(r[this.root.id][this.level]={})},e}();t["default"]=n},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i,o=r(281),s=n(r(305)),l="compactdatamode",c="string",u="object",d=function(e,t,r){return typeof this.items[e][r]===u?this.items[e][r][t]:this.items[e][r]};function h(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}var f,p,g,m,v=(m={arr:{set:!0,node:!0,nodes:!0,link:!0,links:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,tasks:!0,linkeddata:!0,application:!0,definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},tag:{chart:"linkedchart",map:"linkedmap",set:"data",node:"nodes",link:"links",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},attr:{vline:{vline:"true"}},ins:{chart:!0,map:!0,graph:!0},dsv:{dataset:"data",categories:"category"},text:{target:"target",value:"value"},group:{styles:{definition:!0,application:!0},chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}}},f={append:function(e,t,r,n){!m.arr[r]||!0!==m.arr[r]&&!0!==m.arr[r][n]?t[r]=e:(t[r]instanceof Array||(t[r]=[]),t[r].push(e))},child:function(e,t,r,n){var a,s,d,h,p,g;for(a=0;a<t.length;a+=1)switch(s=(d=t[a]).nodeName.toLowerCase(),d.nodeType){case 1:if(h=f.attr(d.attributes),!0===(g=m.ins[s])&&(p=h,(h={})[s]=p,p=i),typeof(g=m.attr[s])===u&&(0,o.extend2)(h,g,!1,!0),g=m.tag[s])if(typeof g===u&&typeof g[r]===u){for(p in p=i,g[r])if(n[p]){s=g[r][p];break}}else typeof g===u&&typeof g[r]===c?s=g[r]:typeof g===c&&(s=g);d.childNodes.length&&((g=m.group[r])&&g[s]?f.child(e,d.childNodes,s,n):f.child(h,d.childNodes,s,n)),(g=m.group[r])&&g[s]||f.append(h,e,s,r);break;case 3:(g=m.text[r])&&(s=g,h=d.data,f.append(h,e,s,r)),typeof(g=m.dsv[r])===c&&n.chart&&parseInt(n.chart[l],10)&&(s=g,h=d.data,e[s]=e[s]?e[s]+h:h)}},attr:function(e){var t,r={};if(!e||!e.length)return r;for(t=0;t<e.length;t+=1)"xml"===g&&(e[t].value?e[t].value=h(e[t].value):e[t].nodeValue&&(e[t].nodeValue=h(e[t].nodeValue))),r[e[t].nodeName.toLowerCase()]=e[t].value||e[t].nodeValue;return r}},p=function(e){var t,r,n,i,l,c,d,h,g,m={},v=e;if(typeof v!==u&&v&&"function"!=typeof v.toString)return p.errorObject=new TypeError("xml2json.parse()"),m;if(v=v.toString().replace(/<\!--[\s\S]*?-->/g,"").replace(/<\?xml[\s\S]*?\?>/gi,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1"),!(v=(0,o.fastTrim)(v)))return m;try{if(window.DOMParser?t=(new window.DOMParser).parseFromString(v,"text/xml"):document.body&&a.options.allowIESafeXMLParsing?((r=document.createElement("xml")).innerHTML=s["default"].createHTML(v),document.body.appendChild(r),t=r.XMLDocument,document.body.removeChild(r),r=null):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(v)),!(t&&t.childNodes&&1===t.childNodes.length&&(n=t.childNodes[0])&&n.nodeName&&(i=n.nodeName.toLowerCase()))||"chart"!==i&&"map"!==i&&"graph"!==i)return p.errorObject=new TypeError("xml2json.parse()"),m;if("graph"===i){for(l=t.createElement("chart"),g=(d=n.attributes)&&d.length||0;g--;)l.setAttribute(d[g].name,d[g].value),d.removeNamedItem(d[g].name);for((g=(h=n.childNodes)&&h.length||0)&&(g-=1,c=n.removeChild(h[g]),l.appendChild(c));g--;)c=n.removeChild(h[g]),l.insertBefore(c,l.firstChild);t.replaceChild(l,n),n=l}}catch(b){p.errorObject=b}return n?(n.attributes&&(m[i]=f.attr(n.attributes)),n.childNodes&&f.child(m,n.childNodes,i,m),delete p.errorObject):p.errorObject=new TypeError("xml2json.parse()"),m},function(e){return delete p.errorObject,g=arguments[arguments.length-1],{data:p(e),error:p.errorObject}}),b=function(){var e,t;return e={items:{explode:{data:"set",nodes:"node",links:"link",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},attr:{chart:{chart:"chart"},graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:d},t=function(r,n,a,s){var d,h,f,p,g=o.BLANKSTRING,m=o.BLANKSTRING,v=o.BLANKSTRING,b=o.BLANKSTRING,y=n;if(y&&"function"==typeof y.toLowerCase&&(y=y.toLowerCase()),a===i&&r[y])for(h in r[y])(f=h.toLowerCase())===l&&(s.applyDSV=1===r[y][h]);if(r instanceof Array)for(h=0;h<r.length;h+=1)typeof r[h]===c?v+=(0,o.xssEncode)(r[h]):v+=t(r[h],y,a,s);else{for(h in r)f=h.toLowerCase().replace(/[`~!@#$%^&*()|+\=?;:'", <>\{\}\[\]\\\/]/gi,""),r[h]instanceof Array&&(p=e.qualify("group",f,y))?m+="<"+(d=e.qualify("tag",f,y)||f)+">"+t(r[h],p,y,s)+"</"+d+">":typeof r[h]===u?(p=e.qualify("attr",f,y))?(b=t(r[h],p,y,s).replace(/\s*\/\>/gi,""),y=f):m+=t(r[h],f,y,s):s.applyDSV&&(p=e.qualify("dsv",f,y))?m+=r[h]:(p=e.qualify("text",f,y))?m+="<"+(d=e.qualify("tag",f,y)||p)+">"+r[h]+"</"+d+">":"vline"===f&&Boolean(r[h])?y="vline":g+=" "+f+'="'+(0,o.xssEncode)(r[h]).toString().replace(/\"/gi,"&quot;")+'"';(p=e.qualify("explode",a,y))&&(y=p),d=y,v=(""!==b?b:"<"+d)+g+(""!==m?">"+m+"</"+d+">":" />")}return v},function(e){delete t.errorObject;var r=e;if(r&&typeof r===c)try{r=JSON.parse(r)}catch(a){t.errorObject=a}var n=r&&r.graph?"graph":r&&r.map?"map":"chart";return{data:t(r,n,i,{}),error:t.errorObject}}}(),y=function(){return this.getChartData("xml")},w=function(e){this.setChartData(e,"xml")};t["default"]={extension:function(e){return e&&(a=e,e.prototype.getXMLData=y,e.prototype.setXMLData=w),{format:"xml",toJSON:v,fromJSON:b}},name:"XML",type:"transcoder",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(277)),i=r(288),o=r(281),s=n(r(355)),l=n(r(356));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var u,d,h,f,p,g,m,v,b,y,w,x,_=window,S=_.parseInt,k=_.parseFloat,C=function(e){return e},A=function(){function e(e){this.data=[],this.rowCount=0,this.columnCount=0,this.configure(e)}var t=e.prototype;return t.set=function(e,t,r){var n;if(this.rowCount<=e){for(n=this.rowCount;n<=e;n+=1)this.data[n]=[];this.rowCount=e+1}this.columnCount<=t&&(this.columnCount=t+1),this.data[e][t]=r},t.setRow=function(e,t){var r;if(this.rowCount<=e){for(r=this.rowCount;r<=e;r+=1)this.data[r]=[];this.rowCount=e+1}this.columnCount<t.length&&(this.columnCount=t.length),this.data[e]=t},t.get=function(e,t){var r=this.data;return r[e]&&r[e][t]},t.configure=function(t){var r=e.decodeLiterals;this.delimiter=r(t.delimiter,","),this.qualifier=r(t.qualifier,'"'),this.eolCharacter=r(t.eolCharacter,"\r\n"),this.numberFormatted=!!S(t.numberFormatted,0)},t.clear=function(){this.data=[],this.rowCount=0,this.columnCount=0},t.toString=function(){var e,t,r=o.BLANKSTRING;for(e=0;e<this.rowCount;e+=1)r+='""'===(t=this.qualifier+this.data[e].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier)?this.eolCharacter:t+this.eolCharacter;return this.rowCount>0&&(r=r.slice(0,r.length-2)),r},e}();function N(){return this.getChartData("csv")}function E(){return this.getCSVData()}A.decodeLiterals=function(e,t){return e!==d&&null!==e&&e.toString?e.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):t},p=function(e){var t={},r=[];for(var n in(0,s["default"])(e)&&e.forEach(function(e){t[e.id]=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,a["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),!t[e.id].parent&&(t[e.id].isRootNode=!0),!t[e.id].categories&&(t[e.id].category=[])}),e.forEach(function(e){var r=t[e.id],n=!1;!r.id||r.value&&isNaN(+r.value)||(!r.parent||r.parent&&t[r.parent])&&(n=!0),n||delete t[r.id]}),t)if(t.hasOwnProperty(n)){var i=t[n];i.parent&&t[i.parent].category.push(i),i.isRootNode&&r.push(i)}return{category:r}},b=function(e,t,r){var n;if(void 0===r&&(r="category"),g.push(e.label||e.name||o.BLANKSTRING),m.push(isNaN(+e.value)?"":e.value),t.setRow(w++,g.slice()),v++,x=Math.max(x,v),e[r]!==d){for(n=0;n<e[r].length;++n)b(e[r][n],t,r);g.pop(),v--}else g.pop(),v--},y=function(e){var t,r,n,a=e,i=a.chart,o=a.data?"data":"category",s=a&&a[o]||[],l=s.length,c=[];for(w=1,x=0,v=0,n=new A({separator:i.exportdataseparator,qualifier:i.exportdataqualifier,numberFormatted:i.exportdataformattedval}),m=[],t=0;t<l;++t)r=s[t],g=[],b(r,n,o);for(t=0;t<x;++t)c.push("Label "+(t+1));for(c.push("Value"),n.setRow(0,c),t=m.length-1;t>=0;t--)n.set(t+1,x,m[t]);return{data:n.toString(),error:d,predictedFormat:{multilevel:!0}}},h=function(e,t){var r,n,a,i,o,s,c,h,f,g,m,v,b,w,x,_,S,N,E,L,T,M,F,D,I,O,P,R,j,B,z,V,U,H,q,G,W,$,X,Y,K,J,Z,Q,ee=e,te=t&&t.jsVars,re=te&&te.instanceAPI,ne=ee.chart||ee.map||ee.graph||{},ae=re&&re.getFromEnv("number-formatter"),ie=ne&&ne.forcedecimals?ne.forcedecimals:0,oe=ne&&ne.decimals!==d?Number(ne.decimals):NaN,se=ae?function(e){return ae.getCleanValue(e)}:t&&t._getCleanValue?function(e){return t._getCleanValue(e,ne)}:C,le=Boolean(ne.exporterrorcolumns||0),ce=ee.categories&&ee.categories[0]&&ee.categories[0].category||[],ue=ee.map&&!ee.chart||te&&te.instanceAPI&&"geo"===te.instanceAPI.defaultSeriesType,de=!1,he=!1,fe=!1,pe=!1,ge=!1,me=re.getChildren("BoxAndWhiskerStatisticalCalc"),ve=!1,be=!1,ye=C,we={},xe=ee.tasks?Array.isArray(ee.tasks)?ee.tasks[0].task:ee.tasks.task:d,_e=ee.processes?ee.processes.process:d,Se=ee.datatable?Array.isArray(ee.datatable)?ee.datatable[0]:ee.datatable:d,ke=Se?Se.datacolumn:d,Ce=xe&&_e,Ae=0,Ne=-1,Ee="timeseries"===t.args.type,Le=re.config.defaultDatasetType,Te=0,Me=0,Fe=0,De=0;if(!Ee&&(e.category||e.data&&e.data[0].data))return y(e);if(r=new A({separator:ne.exportdataseparator,qualifier:ne.exportdataqualifier,numberFormatted:ne.exportdataformattedval}),u.formatNumber&&r.numberFormatted&&(ye=function(e,t){return u.formatNumber(e,ne,t)}),Ee){for(Z=ee.data.getSchema(),Y=ee.data.isUTCEnabled(Z[0].name),K=Z[0].format,J=Y?l["default"].utcFormatter(K):l["default"].formatter(K),f=ee.data.getData().data,o=0;o<Z.length-1;o+=1)r.set(0,o,"date"===Z[o].type?"Date Time":Z[o].name);for(c=0;c<f.length;c+=1){for(E=f[c],G=[],s=0;s<o;s+=1)0===s?(X=J.format(E[s]),G[s]=X):G[s]=(Ae+=E[s],ye(E[s]));r.setRow(c+1,G)}}else{if(ue)for(P in we.geo=!0,O=(f=te.instanceAPI.getDatasets())&&f[0]&&f[0].components.data||[],r.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),o=0,O)V=(j=(R=O[P]).config).cleanValue,!0!==R.hidden&&r.setRow(++o,[P,j.shortLabel,j.label,null===V?"":V,j.formattedValue]);else if((f=ee.dials&&ee.dials.dial||ee.pointers&&ee.pointers.pointer||ee.value)!==d)if(we.gauge=!0,"string"==typeof f)r.set(0,0,ye(f)),we.singlevalue=!0,"string"==typeof ee.target&&(r.set(0,1,ye(ee.target)),we.bullet=!0);else for(r.setRow(0,["Id","Value"]),we.multivalue=!0,o=0,c=1,s=f.length;o<s;o+=1,c+=1)r.setRow(c,[c,ye(f[o].value)]);else if(!Ce&&(f=ee.dataset||!(ee.data instanceof Array)&&[])){if(we.multiseries=!0,a=1,(g=ee.lineset)&&(f=f.concat(g),we.lineset=!0),(m=ee.axis)&&(f=f.concat(m),we.multiaxis=!0),!f.length&&ee.links&&(f=f.concat({data:ee.links})),w=f.length,b=ce.length,!(w=f.length)){for(o=0;o<b;o+=1)x=ce[o],r.set(o+1,0,x.label||x.name);we.multilevel=!0}for(o=0;o<w;o+=1)for((_=f)[o].dataset?(i=0,v=(_=_[o].dataset).length):(_=f,v=(i=o)+1);i<v&&!de&&!pe&&!fe;i+=1)if(S=_[i],Ne++,!(re&&(F=re.getDatasets())&&F[Ne]&&!1===F[Ne].visible)){for(q=(B=re&&F&&F[Ne])&&B.config&&B.config.parentYAxis,r.set(0,a,S.seriesname),"string"==typeof S.data&&(we.compactdata=!0,S.data=S.data.split(ne.dataseparator||"|")),s=0,c=0,N=S.data&&S.data.length||0;s<N||s<b;s+=1){if(x=ce[s],n=c+1,(E=S.data&&S.data[c]||{}).x!==d&&E.y!==d){de=we.xy=!0;break}if(E.from!==d&&E.to!==d){fe=we.diagram=!0;break}if(E.open!==d||E.high!==d||E.close!==d||E.low!==d){ve=we.ohlc=!0;break}if(E.rowid!==d&&E.columnid!==d){pe=we.heatmap=!0;break}if(Le&&"boxandwhisker2d"===Le){ge=!0;break}(s<b&&!x.vline||!x)&&(Le&&"sparkwinloss"===Le?"W"===(L=E?E.value.toUpperCase():"")?Te++:"L"===L?Me++:"D"===L?Fe++:De++:(x&&r.set(n,0,x.label||x.name),L=k(se(E?E.value:"")),L=isNaN(L)?"":ye(L,q),r.set(n,a,L)),(he||le||E.errorvalue)&&(he||r.set(0,a+1,"Error"),M=1,r.set(n,a+1,ye(E.errorvalue))),c+=1)}Le&&"sparkwinloss"===Le&&(r.clear(),De>0?(r.setRow(0,["Win","Loss","Draw","Error"]),r.setRow(1,[Te,Me,Fe,De])):(r.setRow(0,["Win","Loss","Draw"]),r.setRow(1,[Te,Me,Fe]))),M&&(a+=M,M=0),a+=1}g&&(f=f.slice(0,-g.length)),m&&(f=f.slice(0,-m.length))}else if(f=ee.data){for(r.set(0,1,ne.yaxisname||"Value"),we.singleseries=!0,be="1"==ne.showsumatend,o=0,b=f.length;o<b&&(!$||!W);o+=1)(E=f[o]).vline||(L=k(se(E.value?E.value:"")),1===ie&&!isNaN(oe)&&oe>=0&&(L=L.toFixed(oe)),G=[E.label||E.name,isNaN(L)?"":(Ae+=L,ye(L))],E.id&&E.parent?($=!0,W=!0):E.parent?$=!0:E.id?W=!0:r.setRow(o+1,G));if($&&W)return y({chart:ee.chart,category:p(ee.data).category});for($?r.setRow(0,["Parent Id",ne.xaxisname||"Label","Value"]):W&&r.setRow(0,["Id",ne.xaxisname||"Label","Value"]),b=(W||$)&&f.length,o=0;o<b;o++)E=f[o],L=k(se(E.value?E.value:"")),G=[E.label||E.name,isNaN(L)?"":(Ae+=L,ye(L))],W?r.setRow(o+1,[E.id].concat(G)):$&&r.setRow(o+1,[E.parent].concat(G));be&&(we.summation=!0,r.setRow(o+1,[ne.sumlabel||"Total",ye(Ae)]))}if(ve)for(r.clear(),r.setRow(0,["Open","Close","High","Low","Volume"]),o=0,n=1,v=(f=ee.dataset).length;o<v;o+=1)for(s=0,w=(S=f[o]&&f[o].data||[]).length;s<w;s+=1,n+=1)E=S[s]||{},r.setRow(s+1,[ye(E.open),ye(E.close),ye(E.high),ye(E.low),ye(E.volume)]);else if(de){for(r.clear(),he=!1,M=0,U=!1,H=0,r.setRow(0,["Series","x","y"]),o=0,n=1,v=(f=ee.dataset).length;o<v;o+=1)if(!(re&&(F=re.getDatasets())&&F[o]&&!1===F[o].visible))for(s=0,w=(S=f[o]&&f[o].data||[]).length;s<w;s+=1,n+=1)(E=S[s]||{}).name&&!U&&(M?r.setRow(0,["Series","Name","x","y","z"]):r.setRow(0,["Series","Name","x","y"]),U=!0,H=s),L=U?[f[o].seriesname,ye(E.name),ye(E.x),ye(E.y)]:[f[o].seriesname,ye(E.x),ye(E.y)],E.z!==d&&(L.push(ye(E.z)),M||(U?r.setRow(0,["Series","Name","x","y","z"]):r.setRow(0,["Series","x","y","z"]),M=1)),(he||le||E.errorvalue!==d||E.horizontalerrorvalue!==d||E.verticalerrorvalue!==d)&&(T=ye(E.errorvalue),L.push(E.errorvalue,E.horizontalerrorvalue===d?T:ye(E.horizontalerrorvalue),E.verticalerrorvalue===d?T:ye(E.verticalerrorvalue)),he||(r.set(0,M+3,"Error"),r.set(0,M+4,"Horizontal Error"),r.set(0,M+5,"Vertical Error")),he=we.error=!0),r.setRow(n,L);if(U)for(n=1,s=0;s<H;s++,n++)E=S[s]||{},L=[f[o].seriesname,ye(E.name),ye(E.x),ye(E.y)],E.z!==d&&L.push(ye(E.z)),r.setRow(n,L)}else if(fe)for(r.clear(),he=!1,M=0,f=ee&&ee.links,r.setRow(0,["from","to","value"]),s=0;s<f.length;s+=1,n+=1)L=[(E=f[s]||{}).from,E.to,ye(E.value)],E.z!==d&&(L.push(ye(E.z)),M||(r.set(0,3,"z"),M=1)),(he||le||E.errorvalue!==d||E.horizontalerrorvalue!==d||E.verticalerrorvalue!==d)&&(T=ye(E.errorvalue),L.push(E.errorvalue,E.horizontalerrorvalue===d?T:ye(E.horizontalerrorvalue),E.verticalerrorvalue===d?T:ye(E.verticalerrorvalue)),he||(r.set(0,M+3,"Error"),r.set(0,M+4,"Horizontal Error"),r.set(0,M+5,"Vertical Error")),he=we.error=!0),r.setRow(n,L);else if(pe){for(r.clear(),D={},I={},o=0,s=1,h=(ce=ee.rows&&ee.rows.row||[]).length;o<h;o+=1,s+=1)(x=ce[o]).id&&(D[x.id.toLowerCase()]=s,r.set(s,0,x.label||x.id));for(o=0,s=1,h=(ce=ee.columns&&ee.columns.column||[]).length;o<h;o+=1,s+=1)(x=ce[o]).id&&(I[x.id.toLowerCase()]=s,r.set(0,s,x.label||x.id));for(S=ee.dataset&&ee.dataset[0]&&ee.dataset[0].data||[],z=re&&(F=re.getDatasets())&&F[0]&&F[0].components&&F[0].components.data||[],o=0,h=S.length;o<h;o+=1)if(n=(E=S[o]).rowid.toLowerCase(),a=E.columnid.toLowerCase(),!z[o]||!1!==z[o].visible){if(!D[n]){var Ie=r.rowCount||1;D[n]=Ie,r.set(Ie,0,E.rowid)}if(!I[a]){var Oe=r.columnCount||1;I[a]=Oe,r.set(0,Oe,E.columnid)}r.set(D[n],I[a],ye(E.value||E.displayvalue))}}else if(Ce){var Pe,Re,je,Be,ze,Ve,Ue=["Task name","Start date","End date",ee.processes.headertext||"Process name"],He={};ke&&ke.forEach(function(e,t){Ue.push(e.headertext&&e.headertext.replace(/{br}/g," ")||"DataColumn "+t)}),r.setRow(0,Ue),xe.forEach(function(e,t){e.processid?(Be=_e.filter(function(t,r){return t.id===e.processid&&(ze=r),t.id===e.processid})[0],Pe=Be.label||Be.name||""):(ze=t,Pe=_e[t]&&(_e[t].label||_e[t].name)||""),je=e.start||"",Ve=e.end||"",Re=e.label||e.name||"Task "+t,He={taskName:Re,taskStart:je,taskEnd:Ve,processName:Pe},ke&&ke.forEach(function(e,t){He["datacolumn"+t]=e.text[ze].label||""}),Object.keys(He).forEach(function(e,n){r.set(t+1,n,He[e])})})}else if(ge&&me){r.clear();var qe,Ge,We,$e,Xe,Ye,Ke,Je,Ze,Qe,et,tt=0,rt=["Maximum","Median","Minimum"];for(ne.showq1values&&rt.push("Q1"),ne.showq3values&&rt.push("Q3"),ne.showmean&&rt.push("Mean"),ne.showmd&&rt.push("MD"),ne.showsd&&rt.push("SD"),ne.showqd&&rt.push("QD"),o=0,h=(ce=ee.categories&&ee.categories[0].category||[]).length;o<h;o+=1)for(x=ce[o],s=0;s<w;s++){var nt=x.label+(1===w?"":"("+ee.dataset[s].seriesname+")"),at=rt.indexOf("Q1"),it=rt.indexOf("Q3"),ot=rt.indexOf("Mean"),st=rt.indexOf("MD"),lt=rt.indexOf("SD"),ct=rt.indexOf("QD"),ut=rt.indexOf("Outliers"),dt=ee.dataset[s].data[o].outliers,ht=me[0];tt+=1,r.set(0,tt,nt),ut<0&&rt.push("Outliers"),ee.dataset[s].data[o].value?(ht.setArray(ee.dataset[s].data[o].value),We=(Ye=ht.getQuartiles()).q1,$e=Ye.q3,qe=(Xe=ht.getMinMax()).min,Ge=Xe.max,et=ht.getMedian(),Ke=ht.getMean(),Je=ht.getMD(),Ze=ht.getSD(),Qe=ht.getQD()):ee.dataset[s].data[o].min&&ee.dataset[s].data[o].max&&ee.dataset[s].data[o].q1&&ee.dataset[s].data[o].q3&&ee.dataset[s].data[o].median&&(We=ee.dataset[s].data[o].q1,$e=ee.dataset[s].data[o].q3,qe=ee.dataset[s].data[o].min,Ge=ee.dataset[s].data[o].max,et=ee.dataset[s].data[o].median,Ke=ee.dataset[s].data[o].mean,Je=ee.dataset[s].data[o].md,Ze=ee.dataset[s].data[o].sd,Qe=ee.dataset[s].data[o].qd),r.set(1,tt,Ge),r.set(2,tt,et),r.set(3,tt,qe),at>-1&&r.set(at+1,tt,We),it>-1&&r.set(it+1,tt,$e),ot>-1&&r.set(ot+1,tt,Ke),st>-1&&r.set(st+1,tt,Je),lt>-1&&r.set(lt+1,tt,Ze),ct>-1&&r.set(ct+1,tt,Qe),dt&&r.set(ut>-1?ut+1:rt.length,tt,dt)}rt.forEach(function(e,t){r.set(t+1,0,e)})}for(m=null,g=null,ce=null,f=null,r.rowCount>0&&r.get(0,0)===d&&r.set(0,0,ne.xaxisname||"Label"),o=1;o<r.rowCount;o++)if(r.data[o][0]!==d){Q=1;break}if(!Q&&we.multiseries){var ft=[];for(o=0;o<r.rowCount;o++)for(ft.push([]),s=1;s<r.data[o].length;s++)ft[o][s-1]=r.data[o][s];for(o=1;o<r.data[0].length;o++)ft[0][o-1]===d&&(ft[0][o-1]="Value");r.data=ft}}return{data:r.toString(),error:d,predictedFormat:we}},f=function(e,t){return(0,i.raiseError)(t,"0604111215","run","csvToJson()","fusionCharts CSV data-handler only supports encoding of data."),e};t["default"]={extension:function(e){return e&&(u=e,e.prototype.getDataAsCSV=E,e.prototype.getCSVData=N),{format:"csv",toJSON:f,fromJSON:h}},name:"csv",type:"transcoder",requiresFusionCharts:!0}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return Array.isArray(e)}},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=t.TimeConverter=void 0;var i=n(r(357)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(359)),s=r(367),l=r(366),c=n(r(368)),u=n(r(360)),d=n(r(369)),h=n(r(365)),f=n(r(371)),p=n(r(373));var g=/^\s*\d+/,m=/^\s*Q\d+/,v=/^%/,b=/[\\^$*+?|[\]().{}]/g,y=function(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)},w=function(e){return e.replace(b,"\\$&")},x=function(e){return new RegExp("^(?:"+e.map(w).join("|")+")","i")},_=function(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t},S=function(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1},k=function(e,t,r){var n=g.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1},C=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1},A=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1},N=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1},E=function(e,t,r){var n=m.exec(t.slice(r,r+2));return n?(e.m=3*(n[0][1]-1),r+n[0].length):-1},L=function(e,t,r){var n=g.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1},T=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1},M=function(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1},F=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1},D=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1},I=function(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1},O=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1},P=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1},R=function(e,t,r){var n=g.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1},j=function(e,t,r){var n=g.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1},B=function(e,t,r){var n=g.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1},z=function(e,t,r){var n=v.exec(t.slice(r,r+1));return n?r+n[0].length:-1},V=function(e,t,r){var n=g.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1},U=function(e,t,r){var n=g.exec(t.slice(r));return n?(e.Q=1e3*+n[0],r+n[0].length):-1},H=function(e,t){return y(e.getDate(),t,2)},q=function(e,t){return y(e.getHours(),t,2)},G=function(e,t){return y(e.getHours()%12||12,t,2)},W=function(e,t){return y(1+u["default"].count(d["default"].floor(e),e),t,3)},$=function(e,t){return y(e.getMilliseconds(),t,3)},X=function(e,t){return $(e,t)+"000"},Y=function(e,t){return y(e.getMonth()+1,t,2)},K=function(e,t){return y(e.getMinutes(),t,2)},J=function(e,t){return y(e.getSeconds(),t,2)},Z=function(e,t){return"Q"+Math.ceil((e.getMonth()+1)/3)},Q=function(e){var t=e.getDay();return 0===t?7:t},ee=function(e,t){return y(s.sunday.count(d["default"].floor(e),e),t,2)},te=function(e,t){var r=e,n=r.getDay();return r=n>=4||0===n?s.thursday.floor(r):s.thursday.ceil(r),y(s.thursday.count(d["default"].floor(r),r)+(4===d["default"].floor(r).getDay()),t,2)},re=function(e){return e.getDay()},ne=function(e,t){return y(s.monday.count(d["default"].floor(e),e),t,2)},ae=function(e,t){return y(e.getFullYear()%100,t,2)},ie=function(e,t){return y(e.getFullYear()%1e4,t,4)},oe=function(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+y(t/60|0,"0",2)+y(t%60,"0",2)},se=function(e,t){return y(e.getUTCDate(),t,2)},le=function(e,t){return y(e.getUTCHours(),t,2)},ce=function(e,t){return y(e.getUTCHours()%12||12,t,2)},ue=function(e,t){return y(1+h["default"].count(f["default"].floor(e),e),t,3)},de=function(e,t){return y(e.getUTCMilliseconds(),t,3)},he=function(e,t){return de(e,t)+"000"},fe=function(e,t){return y(e.getUTCMonth()+1,t,2)},pe=function(e,t){return y(e.getUTCMinutes(),t,2)},ge=function(e,t){return y(e.getUTCSeconds(),t,2)},me=function(e,t){return"Q"+Math.ceil((e.getUTCMonth()+1)/3)},ve=function(e){var t=e.getUTCDay();return 0===t?7:t},be=function(e,t){return y(l.utcSunday.count(f["default"].floor(e),e),t,2)},ye=function(e,t){var r=e,n=r.getUTCDay();return r=n>=4||0===n?l.utcThursday.floor(r):l.utcThursday.ceil(r),y(l.utcThursday.count(f["default"].floor(r),r)+(4===f["default"].floor(r).getUTCDay()),t,2)},we=function(e){return e.getUTCDay()},xe=function(e,t){return y(l.utcMonday.count(f["default"].floor(e),e),t,2)},_e=function(e,t){return y(e.getUTCFullYear()%100,t,2)},Se=function(e,t){return y(e.getUTCFullYear()%1e4,t,4)},ke=function(){return"+0000"},Ce=function(){return"%"},Ae=function(e){return+e},Ne=function(e){return Math.floor(+e/1e3)},Ee=t.TimeConverter=function(){function e(e){var t=this,r=e.dateTime,n=e.date,a=e.time,s=e.periods,l=e.days,c=e.shortDays,u=e.months,d=e.shortMonths,h=x(s),f=_(s),p=x(l),g=_(l),m=x(c),v=_(c),b=x(u),y=_(u),w=x(d),Ee=_(d);this._formats={a:function(e){return c[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return d[e.getMonth()]},B:function(e){return u[e.getMonth()]},d:H,e:H,f:X,H:q,I:G,j:W,L:$,m:Y,M:K,p:function(e){return s[+(e.getHours()>=12)]},q:Z,Q:Ae,s:Ne,S:J,u:Q,U:ee,V:te,w:re,W:ne,y:ae,Y:ie,Z:oe,"%":Ce},this._utcFormats={a:function(e){return c[e.getUTCDay()]},A:function(e){return l[e.getUTCDay()]},b:function(e){return d[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},d:se,e:se,f:he,H:le,I:ce,j:ue,L:de,m:fe,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:me,Q:Ae,s:Ne,S:ge,u:ve,U:be,V:ye,w:we,W:xe,y:_e,Y:Se,Z:ke,"%":Ce},this._parses={a:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.w=v[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=g[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=w.exec(t.slice(r));return n?(e.m=Ee[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=b.exec(t.slice(r));return n?(e.m=y[n[0].toLowerCase()],r+n[0].length):-1},c:null,d:D,e:D,f:B,H:O,I:O,j:I,L:j,m:F,M:P,p:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.p=f[n[0].toLowerCase()],r+n[0].length):-1},Q:V,q:E,s:U,S:R,u:k,U:C,V:A,w:S,W:N,x:null,X:null,y:T,Y:L,Z:M,"%":z},this._formats.x=function(e){return new i["default"](n,t._formats).format(e)},this._formats.X=function(e){return new i["default"](a,t._formats).format(e)},this._formats.c=function(e){return new i["default"](r,t._formats).format(e)},this._utcFormats.x=function(e){return new i["default"](n,t._utcFormats).format(e)},this._utcFormats.X=function(e){return new i["default"](a,t._utcFormats).format(e)},this._utcFormats.c=function(e){return new i["default"](r,t._utcFormats).format(e)},this._parses.c=function(e,n,a){return new o["default"](r,t._parses).parseSpecifier(e,n,a)},this._parses.x=function(e,r,a){return new o["default"](n,t._parses).parseSpecifier(e,r,a)},this._parses.X=function(e,r,n){return new o["default"](a,t._parses).parseSpecifier(e,r,n)}}var t=e.prototype;return t.formatter=function(e){return void 0===e&&(e=""),new i["default"](e.toString(),this._formats)},t.utcFormatter=function(e){return void 0===e&&(e=""),new i["default"](e.toString(),this._utcFormats)},t.parser=function(e){var t=e;return new o["default"](t+="",this._parses,function(e){var t;if(e.y>=0&&e.y<100)return(t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L)).setFullYear(e.y),t;t=new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L);var r=new Date(e.y,0).getTimezoneOffset(),n=new Date(e.y,6).getTimezoneOffset(),a=new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L).getTimezoneOffset();return n===r||r>n&&r!==a&&(t=c["default"].offset(t,1)),t})},t.utcParser=function(e){var t=e;return new o["default"](t+="",this._parses,o.utcDate)},e}();t["default"]=new Ee(p["default"])},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(358)),i=function(e){return null==e},o=function(){function e(e,t){this._specifier=e,this._formats=t}var t=e.prototype;return t.format=function(e){var t,r,n,o=[],s=e,l=-1,c=0,u=this._specifier,d=u.length;for(s instanceof Date||(s=new Date(+s));++l<d;)37===u.charCodeAt(l)&&(o.push(u.slice(c,l)),t=u.charAt(++l),r=a["default"][t],i(r)?r="e"===t?" ":"0":t=u.charAt(++l),n=this._formats[t],n&&(t=n(s,r)),o.push(t),c=l+1);return o.push(u.slice(c,l)),o.join("")},t.toString=function(){return this._specifier},e}();t["default"]=o},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"-":"",_:" ",0:"0"}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcDate=t["default"]=void 0;var a=n(r(358)),i=n(r(360)),o=n(r(365)),s=r(366),l=r(367),c=function(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}},u=t.utcDate=function(e){if(e.y>=0&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))},d=function(){function e(e,t,r){this._specifier=e,this._parses=t,this._newDate=r}var t=e.prototype;return t.parseSpecifier=function(e,t,r){for(var n,i,o=0,s=this._specifier.length,l=t.length,c=r;o<s;){if(c>=l)return-1;if(37===(n=this._specifier.charCodeAt(o++))){if(n=this._specifier.charAt(o++),!(i=this._parses[n in a["default"]?this._specifier.charAt(o++):n])||(c=i(e,t,c))<0)return-1}else if(n!==t.charCodeAt(c++))return-1}return c},t.parse=function(e){var t,r,n=c(1900),a=e;if(a+="",this.parseSpecifier(n,a,0)!==a.length)return null;if("Q"in n)return new Date(n.Q);if("p"in n&&(n.H=n.H%12+12*n.p),"V"in n){if(n.V<1||n.V>53)return null;"w"in n||(n.w=1),"Z"in n?(r=(t=u(c(n.y))).getUTCDay(),t=r>4||0===r?s.utcMonday.ceil(t):s.utcMonday.floor(t),t=o["default"].offset(t,7*(n.V-1)),n.y=t.getUTCFullYear(),n.m=t.getUTCMonth(),n.d=t.getUTCDate()+(n.w+6)%7):(r=(t=this._newDate(c(n.y))).getDay(),t=r>4||0===r?l.monday.ceil(t):l.monday.floor(t),t=i["default"].offset(t,7*(n.V-1)),n.y=t.getFullYear(),n.m=t.getMonth(),n.d=t.getDate()+(n.w+6)%7)}else("W"in n||"U"in n)&&("w"in n||(n.w="u"in n?n.u%7:"W"in n?1:0),r="Z"in n?u(c(n.y)).getUTCDay():this._newDate(c(n.y)).getDay(),n.m=0,n.d="W"in n?(n.w+6)%7+7*n.W-(r+5)%7:n.w+7*n.U-(r+6)%7);return"Z"in n?(n.H+=n.Z/100|0,n.M+=n.Z%100,u(n)):this._newDate(n)},t.toString=function(){return this._specifier},e}();t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=t.dayObj=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.dayObj={name:"day",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationDay-Math.floor(a/i.durationDay)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setDate(1),s.setHours(0,0,0,0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getDate()-n.getDate()-Math.floor(l/i.durationDay)}},l=new a["default"](s);t["default"]=l},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r=new Date,n=new Date,a=function(e){return null==e},i=function(){function e(e){this._name=e.name,this._floori=e.floor,this._offseti=e.offset,this._count=e.count,this._field=e.field}var t=e.prototype;return t.name=function(){return this._name},t.floor=function(e){var t=new Date(Number(e));return t=this._floori(t,this._clipDates,this._timeUniverse)},t.setClipDates=function(e){this._clipDates=e},t.setTimeUniverse=function(e){this._timeUniverse=e},t.ceil=function(e){var t=new Date(e-1);return t=this._floori(t,this._clipDates,this._timeUniverse),t=this._offseti(t,1,this._clipDates,this._timeUniverse),t=this._floori(t,this._clipDates,this._timeUniverse)},t.round=function(e){var t=this.floor(e),r=this.ceil(e);return e-t<r-e?t:r},t.offset=function(e,t){var r=new Date(Number(e));return r=this._offseti(r,a(t)?1:Math.floor(t),this._clipDates,this._timeUniverse)},t.range=function(e,t,r){var n,i=[],o=this.ceil(e),s=a(r)?1:Math.floor(r);if(!(o<t&&s>0))return i;do{n=new Date(Number(o)),i.push(n),o=this._offseti(o,s,this._clipDates,this._timeUniverse),o=this._floori(o,this._clipDates,this._timeUniverse)}while(n<o&&o<t);return i},t.filter=function(t){var r=this;return new e({name:this.name(),floor:function(e){var n=e;if(!Number.isNaN(Number(n)))for(;r._floori(n,r._clipDates,r._timeUniverse),!t(n);)n.setTime(n-1);return Number(n)},offset:function(e,n){var a=n,i=e;if(!Number.isNaN(Number(i)))if(a<0)for(;++a<=0;){0;do{i=r._offseti(i,-1,r._clipDates,r._timeUniverse)}while(!t(i))}else for(;--a>=0;)do{i=r._offseti(i,1,r._clipDates,r._timeUniverse)}while(!t(i));return Number(i)}})},t.count=function(e,t){var a=0;return this._count&&(r.setTime(Number(e)),n.setTime(Number(t)),r=this._floori(r,this._clipDates,this._timeUniverse),n=this._floori(n,this._clipDates,this._timeUniverse),a=Math.floor(this._count(r,n,this._clipDates))),a},t.every=function(e){var t=this,r=Math.floor(e);return this._count&&Number.isFinite(r)&&r>0?r>1?this.filter(this._field?function(e){return t._field(e,t._clipDates,t._timeUniverse)%r===0}:function(e){return t.count(0,e)%r===0}):this:null},e}();t["default"]=i},(e,t)=>{"use strict";t.__esModule=!0,t.durationYear=t.durationWeek=t.durationSecond=t.durationQuarter=t.durationMonth=t.durationMinute=t.durationHour=t.durationDay=void 0;t.durationSecond=1e3,t.durationMinute=6e4,t.durationHour=36e5,t.durationDay=864e5,t.durationWeek=6048e5,t.durationMonth=2592e6,t.durationQuarter=78894e5,t.durationYear=31536e6},(e,t,r)=>{"use strict";t.__esModule=!0,t.getValidDatesWithin=t.getFloor=t.getClippedDatesWithin=t.getClipArray=t.getClampRangesAround=t.clampUpDateWithinClip=t.clampDownDateWithinClip=void 0;var n=r(364),a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=t.clampDownDateWithinClip=function(e,t,r,n){if(n&&Array.isArray(n)&&n.length>0){if(Number(t)>=Number(n[1]))return n[1];if(Number(t)<=Number(n[0]))return n[0]}if(!r||r.length<=0)return t;var a=t,i=r,l=o(i,e,a);return s(a,l,i,n)},o=t.getValidDatesWithin=function(e,t,r){var n=c(e,t,r),a=[];return!e||e.length<=0?a:a=u(n,a)},s=function(e,t,r,n){var a,o=t,s=l(r,e),c=e,d=0;return(o=u(s,o)).length>0&&o.forEach(function(e){d+=Number(e.to)-Number(e.from)}),a=new Date(Number(c.setTime(Number(c)+d))),Number(a)===Number(c)?c:a=i(c,a,r,n)},l=t.getClampRangesAround=function(e,t){var r=Number(t),i=e,o=0,s=[];if(!e||e.length<=0)return s;if(Array.isArray(i))for(var l=0;l<i.length;l++){var c=i[l],u=c.from,d=c.to;if(o=d-u,c.hasOwnProperty("repeat")){var h=Number(u),f=Number(d),p=n.DatetimeUnits[a(String(c.repeat.unit))].ms*c.repeat.multiplier,g=Math.floor((r-h)/p),m=g,v=void 0,b=void 0;if("month"===String(c.repeat.unit).toLowerCase()?(v=new Date(Number(new Date(h).setMonth(new Date(h).getMonth()+m))),b=new Date(Number(new Date(f).setMonth(new Date(f).getMonth()+m)))):"year"===String(c.repeat.unit).toLowerCase()?(v=new Date(Number(new Date(h).setFullYear(new Date(h).getFullYear()+m))),b=new Date(Number(new Date(f).setFullYear(new Date(f).getFullYear()+m)))):(v=new Date(Number(h)+p*g),b=new Date(Number(v)+o)),g<0)continue;r>=v&&r<b&&s.push({from:v,to:b})}else u<=r&&d>r&&s.push(c)}return s},c=t.getClippedDatesWithin=function(e,t,r){var i=+t,o=+r,s=e,l=0,c=[];if(Array.isArray(s))for(var u=0;u<s.length;u++){var d=s[u],h=d.from,f=d.to;if(l=f-h,d.hasOwnProperty("repeat")){var p=Number(h),g=Number(f),m=n.DatetimeUnits[a(String(d.repeat.unit))].ms*d.repeat.multiplier,v=Math.floor((i-p)/m),b=v,y=void 0,w=void 0;if("month"===String(d.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(p).setMonth(new Date(p).getMonth()+b))),w=new Date(Number(new Date(g).setMonth(new Date(g).getMonth()+b)))):"year"===String(d.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(p).setFullYear(new Date(p).getFullYear()+b))),w=new Date(Number(new Date(g).setFullYear(new Date(g).getFullYear()+b)))):(y=new Date(Number(p)+m*v),w=new Date(Number(y)+l)),v<0)continue;for(;Number(y)<Number(o);)Number(y)>Number(i)&&Number(w)<=Number(o)&&c.push({from:y,to:w}),b=Number(d.repeat.multiplier),y=+y,w=+w,"month"===String(d.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(y).setMonth(new Date(y).getMonth()+b))),w=new Date(Number(new Date(w).setMonth(new Date(w).getMonth()+b)))):"year"===String(d.repeat.unit).toLowerCase()?(y=new Date(Number(new Date(y).setFullYear(new Date(y).getFullYear()+b))),w=new Date(Number(new Date(w).setFullYear(new Date(w).getFullYear()+b)))):(y=new Date(Number(y)+m),w=new Date(Number(w)+m))}else h>i&&f<=o&&c.push(d)}return c},u=t.getClipArray=function(e,t){var r,n=e,a=t;if(!e||e.length<=0)return a;var i=function(){var e=n[r];a.every(function(t){return!(e.from>=t.from&&e.to<=t.to)&&(e.from<=t.from&&e.to>=t.to?t.entryEnabled=!1:e.from>=t.from&&e.from<=t.to&&e.to>=t.to?(e.from=t.from,t.entryEnabled=!1):e.to>=t.from&&e.to<=t.to&&e.from<=t.from?(e.to=t.to,t.entryEnabled=!1):t.entryEnabled=!0,!0)})&&(e.entryEnabled=!0,a.push(e))};for(r=0;r<n.length;r++)i();return a=a.filter(function(e){return!0===e.entryEnabled})},d=t.clampUpDateWithinClip=function(e,t,r,n){if(n&&Array.isArray(n)&&n.length>0){if(Number(t)>=Number(n[1]))return n[1];if(Number(t)<=Number(n[0]))return n[0]}if(!r||r.length<=0)return t;var a=t,i=r,s=o(i,a,e);return h(a,s,i,n)},h=function(e,t,r,n){var a,i=t,o=l(r,e),s=e,c=0;return(i=u(o,i)).length>0&&i.forEach(function(e){c+=Number(e.to)-Number(e.from)}),a=new Date(Number(s.setTime(Number(s)-c))),Number(a)===Number(s)?s:a=d(s,a,r,n)},f=t.getFloor=function(e,t,r){if(r&&Array.isArray(r)&&r.length>0){if(Number(e)>=Number(r[1]))return r[1];if(Number(e)<=Number(r[0]))return r[0]}if(!t||t.length<=0)return e;var n,a=e,i=l(t,e),o=[];return 0===i.length?a:(n=(o=u(i,o)).reduce(function(e,t){return e.to>t.to?+new Date(Number(e.to)):+new Date(Number(t.to))},0),Number(n)===Number(a)?n:f(n,t,r))}},(e,t,r)=>{"use strict";t.__esModule=!0,t.Weekdays=t.DatetimeUnits=void 0;var n=r(362);t.DatetimeUnits={Millisecond:{name:"Millisecond",ms:1},Second:{name:"Second",ms:n.durationSecond},Minute:{name:"Minute",ms:n.durationMinute},Hour:{name:"Hour",ms:n.durationHour},Day:{name:"Day",ms:n.durationDay},Week:{name:"Week",ms:n.durationWeek},Month:{name:"Month",ms:n.durationMonth},Quarter:{name:"Quarter",ms:n.durationQuarter},Year:{name:"Year",ms:n.durationYear}},t.Weekdays={Sunday:{name:"Sunday",id:0},Monday:{name:"Monday",id:1},Tuesday:{name:"Tuesday",id:2},Wednesday:{name:"Wednesday",id:3},Thursday:{name:"Thursday",id:4},Friday:{name:"Friday",id:5},Saturday:{name:"Saturday",id:6}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcDayObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.utcDayObj={name:"day",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t-e-Math.floor(a/i.durationDay)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCDate(1),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCDate()-n.getUTCDate()-Math.floor(l/i.durationDay)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcWeekObj=t.utcWednesday=t.utcTuesday=t.utcThursday=t.utcSunday=t.utcSaturday=t.utcMonday=t.utcFriday=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=(t.utcWeekObj={name:"week",floor:function(e,t,r){return e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-0)%7),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t-e-Math.floor(a/i.durationWeek)}},function(e,t){return new a["default"]({name:t,floor:function(t,r,n){return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),new Date(Number((0,o.getFloor)(new Date(Number(t.setUTCHours(0,0,0,0))),r,n)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t-e-Math.floor(a/i.durationWeek)}})}),l=s(0,"week");t.utcSunday=s(0,"sunday"),t.utcMonday=s(1,"monday"),t.utcTuesday=s(2,"tuesday"),t.utcWednesday=s(3,"wednesday"),t.utcThursday=s(4,"thursday"),t.utcFriday=s(5,"friday"),t.utcSaturday=s(6,"saturday"),t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.weekObj=t.wednesday=t.tuesday=t.thursday=t.sunday=t.saturday=t.monday=t.friday=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=(t.weekObj={name:"week",floor:function(e,t,r){return e.setDate(e.getDate()-(e.getDay()+7-0)%7),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e-Math.floor(a/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}},function(e,t){return new a["default"]({name:t,floor:function(t,r,n){return t.setDate(t.getDate()-(t.getDay()+7-e)%7),new Date(Number((0,o.getFloor)(new Date(Number(t.setHours(0,0,0,0))),r,n)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e-Math.floor(a/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}})}),l=s(0,"week");t.sunday=s(0,"sunday"),t.monday=s(1,"monday"),t.tuesday=s(2,"tuesday"),t.wednesday=s(3,"wednesday"),t.thursday=s(4,"thursday"),t.friday=s(5,"friday"),t.saturday=s(6,"saturday"),t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.hourObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.hourObj={name:"hour",floor:function(e,t,r){var n=e.getTimezoneOffset()*i.durationMinute%i.durationHour;return n<0&&(n+=i.durationHour),new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor((Number(e)-n)/i.durationHour)*i.durationHour+n))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e)/i.durationHour-Math.floor(a/i.durationHour)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setHours(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getHours()-n.getHours()-l/i.durationHour}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.yearObj=t["default"]=void 0;var a=n(r(370)),i=r(362),o=r(363),s=t.yearObj={name:"year",floor:function(e,t,r){return e.setMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t.getFullYear()-e.getFullYear()-Math.floor(a/i.durationYear)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setFullYear(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getFullYear()-n.getFullYear()-Math.floor(l/i.durationYear)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(361)),o=r(363),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?new i["default"]({name:"year",floor:function(e,r,n){return e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setHours(0,0,0,0)))),r,"year",n))},offset:function(e,r,n,a){var i=r>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+r*t))),n,"year",a):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+r*t))),n,"year",a)))}}):null},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcYearObj=t["default"]=void 0;var a=n(r(372)),i=r(363),o=r(362),s=t.utcYearObj={name:"year",floor:function(e,t,r){return e.setUTCMonth(0,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t.getUTCFullYear()-e.getUTCFullYear()-Math.floor(a/o.durationYear)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCFullYear(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCFullYear()-n.getUTCFullYear()-Math.floor(l/o.durationYear)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(361)),o=r(363),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=e;return isFinite(t=Math.floor(t))&&t>0?new i["default"]({name:"year",floor:function(e,r){return e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),r)))},offset:function(e,r,n){var a=r>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+r*t))),n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+r*t))),n)))}}):null},t}(i["default"]);t["default"]=s},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={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"]}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(288),a=r(375);function i(e,t,r,i,o){(0,n.triggerEvent)("dataLoadRequested",o,{source:a.sourceName,url:e,dataFormat:"json",silent:!!i,config:t,successcallback:r},undefined,a.onDataLoadRequest,a.onDataLoadRequestCancel)}function o(e){this.setChartDataUrl(e,"jsonurl")}t["default"]={extension:function(e){return e&&(e.prototype.setJSONUrl=o),{format:"jsonurl",toJSON:i}},name:"JSONUrl",type:"transcoder",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.onDataLoadRequest=function(e,t){var r=e.sender,n=r.__state,a=t.url;r.options.dataSource=t.url,n.dhmXhrObj||(n.dhmXhrObj=new i["default"](u,d));n.dhmXhrObj.get("function"==typeof window.decodeURIComponent?window.decodeURIComponent(a):window.unescape(a),{obj:r,args:t})},t.onDataLoadRequestCancel=function(e,t){var r=e.sender,n=r.__state;(0,o.triggerEvent)("dataLoadRequestCancelled",r,t),n&&n.dhmXhrObj&&n.dhmXhrObj.abort()},t.sourceName=void 0;var a,i=n(r(376)),o=r(288),s=t.sourceName="XmlHttpRequest";function l(e,t){e.sender.jsVars.stallLoad=!1,e.sender.setChartData(t.dataSource,t.dataFormat,t.config,t.successcallback,t.silent)}function c(e,t){(0,o.triggerEvent)("dataLoadCancelled",e.sender,t),t.xmlHttpRequestObject.abort()}function u(e,t,r,n){var i=r.args;i.dataSource=e,i.xmlHttpRequestObject=t,i.source=s,i.url=n,(0,o.triggerEvent)("dataLoadRequestCompleted",r.obj,i,a,l,c)}function d(e,t,r){var n=r.obj,a=r.args;a.error=e,a.httpStatus=t.xmlhttp&&t.xmlhttp.status?t.xmlhttp.status:-1,a.xmlHttpRequestObject=t,n._addChartDependency("data",{resolve:function(){return{state:1,msg:n.options.dataLoadErrorMessage,msgStyle:{image:{imageHAlign:n.args.dataLoadErrorMessageImageHAlign||n.options.baseChartMessageImageHAlign,imageVAlign:n.args.dataLoadErrorMessageImageVAlign||n.options.baseChartMessageImageVAlign,imageAlpha:n.args.dataLoadErrorMessageImageAlpha||n.options.baseChartMessageImageAlpha,imageScale:n.args.dataLoadErrorMessageImageScale||n.options.baseChartMessageImageScale},message:{color:n.args.dataLoadErrorMessageColor||n.options.baseChartMessageColor,fontFamily:n.args.dataLoadErrorMessageFont||n.options.baseChartMessageFont,fontSize:n.args.dataLoadErrorMessageFontSize||n.options.baseChartMessageFontSize}}}}}),n._setState(),(0,o.triggerEvent)("dataLoadError",n,a)}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(288),a=r(281),i="Microsoft.XMLHTTP",o="Msxml2.XMLHTTP",s="POST",l="XmlHttprequest Error",c=window,u=parseFloat(c.navigator.appVersion.split("MSIE")[1]),d=!!(u>=5.5&&u<=7),h="file:"===c.location.protocol,f=c.ActiveXObject,p=(!f||!h)&&c.XMLHttpRequest,g={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},m=function(){var e;if(p)return(m=function(){return g.xhr++,new p})();try{e=new f(o),m=function(){return g.xhr++,new f(o)}}catch(t){try{e=new f(i),m=function(){return g.xhr++,new f(i)}}catch(r){e=!1}}return e},v=function(){function e(e,t){this.onSuccess=e,this.onError=t,this.open=!1,g.objects++,g.idle++}e.stats=function(e){return e?g[e]:(0,a.extend2)({},g)};var t=e.prototype;return t.transact=function(t,i,o,u){var f,p,v=this,b=v.xmlhttp,y=e.headers,w=v.onError,x=v.onSuccess,_=t===s,S="X-Requested-By",k=Object.prototype.hasOwnProperty;-1!==i.search(/^(http:\/\/|https:\/\/)/)&&c.location.hostname!==/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(i)[2]?delete y[S]:!k.call(y,S)&&(y[S]="FusionCharts"),(!b||d||a.isFirefox)&&(b=m(),v.xmlhttp=b),b.onreadystatechange=function(){try{4===b.readyState&&(!b.status&&h||b.status>=200&&b.status<300||304===b.status||1223===b.status||0===b.status?(x&&x(b.responseText,v,u,i),g.success++):w&&(w(new Error(l),v,u,i),g.failure++),g.idle--,v.open=!1)}catch(e){w&&w(e,v,u,i),c.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw e},0),g.failure++}};try{if(b.open(_?s:"GET",i,!0),b.overrideMimeType&&b.overrideMimeType("text/plain"),_)if("string"==typeof o)f=o;else{for(p in f=[],o)f.push(p+"="+(o[p]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));f=f.join("&")}else f=null;for(p in y)b.setRequestHeader(p,y[p]);b.send(f),g.requests++,g.idle++,v.open=!0}catch(C){(0,n.raiseError)(r.g.core,"1110111515A","run",l,C.message)}return b},t.get=function(e,t){return this.transact("GET",e,undefined,t)},t.post=function(e,t,r){return this.transact(s,e,t,r)},t.abort=function(){var e=this.xmlhttp;return this.open=!1,e&&"function"==typeof e.abort&&e.readyState&&0!==e.readyState&&e.abort()},t.dispose=function(){var e=this;return e.open&&e.abort(),delete e.onError,delete e.onSuccess,delete e.xmlhttp,delete e.open,g.objects--,null},e}();v.headers={"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};t["default"]=v},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(288),a=r(375);function i(e,t,r,i,o){void 0===e&&(e=""),void 0===t&&(t={}),(0,n.triggerEvent)("dataLoadRequested",o,{source:a.sourceName,url:e,dataFormat:"xml",silent:!!i,config:t,successcallback:r},undefined,a.onDataLoadRequest,a.onDataLoadRequestCancel)}function o(e){this.setChartDataUrl(e,"xmlurl")}function s(){(0,n.raiseWarning)(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".'),this.setXMLUrl.apply(this,arguments)}t["default"]={extension:function(e){return e&&(e.prototype.setXMLUrl=o),e&&(e.prototype.setDataURL=s),{format:"xmlurl",toJSON:i}},name:"XMLUrl",type:"transcoder",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281),a=["series","styledefinition"];function i(e,t){void 0===t&&(t=!1);var r=typeof e;if("string"===r||"number"===r||"function"===r||"boolean"===r)return e;if(null===e||e===n.UNDEF)return e;if(Array.isArray(e)){for(var o=[],s=0;s<e.length;s++)o.push(i(e[s]));return o}if("object"==typeof e){var l={};for(var c in e){var u=t?c:c.toLowerCase();"data"!==u?l[u]=i(e[c],a.includes(u)):e[c]&&e[c]._dataStore?l[u]=e[c]:l[u]=i(e[c])}return l}}t["default"]={extension:function(e){e.addEventListener("beforedataupdate",function(e,t){t.data=i(t.data)})},name:"IgnoreCaseExt",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(289),s=r(288);function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u,d,h="object",f=/\s+!important$/,p=/\\!important$/,g=function(e,t){var r,n,a=t;for(n in a=(a+"").toLowerCase(),e)if(e.hasOwnProperty(n)&&a===(n+"").toLowerCase()){r=e[n];break}return r},m=function(e){var t,r;for(t=0,r=e.length;t<r;t++)if("function"==typeof e[t])return!0;return!1},v=function(e){var t,r=[];for(t in e)r[t]=e[t];return r},b=function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},y=function(e){var t,r={};for(var n in e)e.hasOwnProperty(n)&&(r[(t=e[n]).name]=t);return r},w=function(e,t){for(var r=t.length,n=-1;r--;)if(e===t[r])return n=r;return n},x=function(e,t,r,n,a,i){var o,s,l,c,d,f=a,p=i;if(p?(f.push(e),p.push(t)):(f=[e],p=[t]),t instanceof Array)for(o=0;o<t.length;o+=1){try{s=e[o],l=t[o]}catch(g){continue}typeof l!==h?r&&l===u||(e[o]=l):(null!==s&&typeof s===h||(s=e[o]=l instanceof Array?[]:{}),-1!==(d=w(l,p))?s=e[o]=f[d]:x(s,l,r,n,f,p))}else for(o in t){try{s=e[o],l=t[o]}catch(g){continue}null!==l&&typeof l===h?"[object Object]"===(c=Object.prototype.toString.call(l))?(null!==s&&typeof s===h||(s=e[o]={}),-1!==(d=w(l,p))?s=e[o]=f[d]:"data"===o&&l._dataStore?e[o]=n?n(s,l):l:x(s,l,r,n,f,p)):"[object Array]"===c?(null!==s&&s instanceof Array||(s=e[o]=[]),-1!==(d=w(l,p))?s=e[o]=f[d]:x(s,l,r,n,f,p)):e[o]=n?n(s,l):l:e[o]=n?n(s,l):l}return e},_=function(e,t,r,n){void 0===n&&(n=null);var a=e;return typeof a!==h&&typeof t!==h?null:(typeof t!==h||null===t||(typeof a!==h&&(a=t instanceof Array?[]:{}),x(a,t,r,n)),a)},S=function(e){var t=e,r={important:!1,str:""};return t?(t=t.toString(),f.test(t)?(t=t.replace(f,""),r.important=!0):(t=t.replace(p,"!imporant"),r.important=!1),r.str=t,r):r},k=function(e,t){var r=S(e),n=S(t);return r.important&&!n.important?r.str:n.str},C=function(e,t){var r,n,a,i,o,s=t.getAll();for(r in s)n=r.toLowerCase(),a=s[r].toString(),i=S(a),o=S(e[n]),i.important&&!o.important?e[n]=i.str:o.important?e[n]=o.str:e[n]===u&&"object"!=typeof s[r]?e[n]="object"!=typeof s[r]?i.str:s[r]:"object"==typeof s[r]&&("undefined"==typeof e[n]&&(e[n]=s[r]),e[n]=_(s[r],e[n],!1,k))},A=function(e,t){for(var r,n,a,i,o,s,c,u,d,h,f=0,p=0,g=function(e,t){for(var r,n,a=[].concat(Object.keys(e)),i=l(t.themeArray);!(n=i()).done;)r=n.value,a.push.apply(a,Object.keys(r));return Array.from(new Set(a))}(e,t),b=l(g);!(h=b()).done;)if(void 0===(n=e[r=h.value])&&(n=e[r]={}),u="timeseries"===t.type&&t.themeComponents[r]&&m(t.themeComponents[r]),n instanceof Array&&!u)for(s=n.length,o=0;o<s;o+=1)"object"==typeof(i=n[o])&&("category"===r?"true"===i.vline?(a=t.component("vline",f,i))&&(C(i,a),f+=1):(a=t.component("category",p,i,s))&&(C(i,a),p+=1):(a=t.component(r,o,i,s))&&(C(i,a),A(i,a)));else if("object"==typeof n)if(u)if(d=(a=t.component(r,null,n)).getAll(),e[r]=d,/^\d+$/.test(Object.keys(d).join("")))for(d=v(d),e[r]=d,c=0;c<e[r].length;c++)A(e[r][c],a);else A(n,a);else(a=t.component(r,null,n))&&(C(n,a),A(n,a))},N=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){!this.config.themeStore&&(this.config.themeStore={})},r.add=function(e){for(var t,r=0,n=e.length;r<n;r+=1)(t=e[r].name)&&(this.config.themeStore[t]=e[r])},r.themify=function(e,r,n,a,i){var l,c,u=r.jsVars,d=e.split(","),h=[],f=d.length;if(this.config.themeStore=y((0,o.getDepsByType)("theme")),f){for(c=0;c<f;c+=1)(l=this.config.themeStore[b(d[c])])&&h.push(t.evaluateThemeJSON(l.theme,r,n,i));h.length?(u.themeObject=new E(h,r,!1,a,n),t.applyTheme(r)):(0,s.raiseWarning)(r,"14051100501","run","api.themes~themify()",'The theme "'+e+'" requested has not been registered.')}},t.evaluateThemeJSON=function(e,t,r,n){var a,i,o={},s=t.jsVars,l=r,c=function(e){var t,r;for(t in e)r=e[t],o[t]=r instanceof Array?_(o[t]||[],r):"object"==typeof r?_(o[t]||{},r):r};return l=l||t.chartType(),s.themeObject&&e!==s.themeObject&&(s.themeObject.dispose(),delete s.themeObject),c(g(e,"base")),n&&(a=g(e,n)),a&&c(a),l&&(i=g(e,l)),i&&c(i),o},t.applyTheme=function(e){var t=e.jsVars.themeObject,r=t.getThemedJSONData().data;r&&A(r,t)},t}(i.ComponentInterface),E=function(e){function t(t,r,n,a,i){var o,s,l=0;for((o=e.call(this)||this).themeArray=t,o.themeComponents={},o.base={},o.type=i,o.chartInstance=r,o.isChildInstance=Boolean(n),o.themedData=n?null:a,o.length=t.length,s=t.length;l<s;l+=1)o.parse(t[l]);return o}(0,a["default"])(t,e);var r=t.prototype;return r.pushTheme=function(e,t){void 0===t&&(t=!1),e&&(this.themeArray.push(e),this.parse(e,t),this.length+=1)},r.parse=function(e,t){var r,n;if(e instanceof Array)for(r=e.length,n=0;n<r;n++)this._parseSubBlock(e[n],t);else this._parseSubBlock(e,t)},r._parseSubBlock=function(e,r){var n,a,i,o,s=this,l=s.base,c=s.type,u=s.themeComponents,d=s.chartInstance,h=s.isChildInstance;for(n in e)"string"==typeof e[n]||"number"==typeof e[n]?l[n]?(a=S(e[n]),i=S(l[n]),!a.important&&i.important||(l[n]=e[n])):l[n]=e[n]:"timeseries"===c&&h?e[n]instanceof Array&&"palettecolors"!==n&&!r?(u[n]||(u[n]=[]),u[n].push(_([],e[n]))):("object"==typeof e[n]||r)&&(l[n]=e[n]):(u[n]||(u[n]=[]),o=u[n],e[n]instanceof Array?o.push(_([],e[n])):"object"==typeof e[n]?o.push(new t([e[n]],d,!0,{},c)):"function"==typeof e[n]&&o.push(e[n]))},r.mergeWithThemeInstance=function(e){var t,r,n,a=this,i=a.base,o=e.base,s=a.themeComponents,l=e.themeComponents;for(n in o)t=S(i[n]),r=S(o[n]),t.important&&!r.important||(i[n]=o[n]);for(n in l)s[n]?s[n]=s[n].concat(l[n]):s[n]=[].concat(l[n]);a.length+=e.length},r.get=function(e){return this.base[e]},r.getAll=function(){return _({},this.base)},r.component=function(e,r,n,a){var i,o,s,l,c=this,u=c.chartInstance,d=new t([],u,!0,{},c.type);if(!(s=c.themeComponents[e]))return null;for(i=0,o=s.length;i<o;i+=1)"function"==typeof(l=s[i])?"timeseries"!==c.type?d.mergeWithThemeData(l.call(u,r,n,a),r||0,n):d.mergeWithThemeData(l.call(u,n),r,n,!0):d.mergeWithThemeData(l,r,n);return d},r.mergeWithThemeData=function(e,r,n,a){void 0===a&&(a=!1);var i,o=this,s=r;e instanceof Array?(s=s||0,(i=e[s%=e.length])instanceof t?o.mergeWithThemeInstance(i):"function"==typeof i?o.pushTheme(i.call(parent,s,n,length),a):o.pushTheme(i,a)):e instanceof t?o.mergeWithThemeInstance(e):o.pushTheme(e,a)},r.getThemedJSONData=function(){return{data:this.themedData}},r.dispose=function(){var e,t,r=this,n=r.themeComponents;for(e in n)if(t=n[e].length){for(;t--;)n[e][t].dispose&&n[e][t].dispose();delete n[e]}r.themeComponents=null,r.chartInstance=null,r.base=null,r.themeArray=null,r.isChildInstance=null,r.dataWithoutTheme=null},t}(i.ComponentInterface);(d=new N).configure();t["default"]={extension:function(e){e.addEventListener("internal.dataSanitized",function(t){var r,n,a,i=t.sender,s=i.getFromEnv("chartInstance"),l=y((0,o.getDepsByType)("theme")),c=i.getFromEnv("dataSource"),u=e.options.defaultTheme,h=c&&(c.chart&&c.chart.theme||c.map&&c.map.theme),f=(u||h)&&(u||"")+","+(h||""),p=f&&f.split(","),g=p&&p.length,m=!1;for(n=0;n<g;n++)a=b(p[n]),l&&""!==a&&l.hasOwnProperty(a)&&(m=!0);m?(c=_({},i.getFromEnv("dataSource")),r=s.chartType(),c.map&&(c.chart=c.map,delete c.map),d.themify(f,s,r,c,"geo"===s.apiInstance.defaultSeriesType&&"geo"),i.addToEnv("dataSource",c)):s.jsVars&&s.jsVars.themeObject&&(s.jsVars&&s.jsVars.themeObject.dispose(),s.jsVars&&delete s.jsVars.themeObject)})},name:"ThemeEngine",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281),a={name:"default",theme:{base:{chart:{labelDisplay:"stagger !important",caption:"Theme Caption \\!important",canvasBgColor:"#56EF22",borderThickness:"5 !important",borderColor:"#E60539",baseFontColor:"#781129"},categories:[{fontColor:"#0F4F40",fontSize:15,category:function(e){return{showLabel:e%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(e,t){return 8===e&&(t.value=n.BLANKSTRING),{color:Number(t.value)<32e3?"#8C3146":"#FF0000",alpha:"100"}}}],trendlines:[{line:function(e){return e?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}};
/** !
 * @license FusionCharts JavaScript Library
 * Copyright FusionCharts, Inc.
 * License Information at <http://www.fusioncharts.com/license>
 */t["default"]={extension:a,name:"DefaultTheme",type:"theme"}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(277)),i=r(281),o=n(r(382)),s=r(293);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,a["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u,d=/^#?[0-9a-f]{6}/i,h="",f=/FFFFFF/i,p=/255,255,255/,g=function(e){var t=e.replace("rgba(","").split(",");return"#"+("000000"+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},m=function(e,t){var r,n,a=[];if("number"==typeof e)return t;for(n=e.split&&e.split(","),r=0;r<n.length;r++)a.push(t);return a.join()},v=function(e){var t;return/rgb/.test(e)?(t=e.match(/[\d\.]+\)/g),parseFloat(t&&t[0])):e.FCcolor?(0,i.getFirstAlpha)(e.FCcolor.alpha):void 0},b=function(e){var t=function(e){e.removeStateCosmetics("highlight",t)};e.forEach(function(e){return t(e)})},y=function(e,t,r,n,a){var o,s,l,c,u;o=g(n.color),s=100*v(n.color),l=a?(0,i.pluck)(r.valuefontalpha,r.alpha,s):s,o=n.backgroundColor===h?h:g(n.backgroundColor),s=n.backgroundColor===h?0:100*v(n.backgroundColor),isNaN(s)&&(s=0),c=(0,i.toRaphaelColor)({color:a?(0,i.pluck)(r.valuebgcolor,o):o,alpha:a?(0,i.pluck)(r.valuebgalpha,r.alpha,s):s}),o=n.borderColor===h?h:g(n.borderColor),s=n.borderColor===h?h:100*v(n.borderColor),isNaN(s)&&(s=0),u=(0,i.toRaphaelColor)({color:a?(0,i.pluck)(r.valuebordercolor,o):o,alpha:a?(0,i.pluck)(r.valueborderalpha,r.alpha,s):s}),t&&e.setAnimation({el:t,label:"highlightedDataLabel",attr:{fill:(0,i.toRaphaelColor)({color:a?r.valuefontcolor:n.valuefontcolor,alpha:l}),"text-bound":[c,u,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}})},w=function(e){var t,r,n,a,i,o=e.split(","),s={};for(t=0,r=o.length;t<r;t++)a=(n=o[t].split("="))[0],i=n[1],s[a]=i;return s},x=function(e,t,r){var n,a,o=t.color;return/rgb/.test(e)?(n=(0,i.pluck)(t.alpha,100*v(e)),/rgb/.test(o)&&(o=g(o)),a=r?(0,i.toRaphaelColor)({color:(0,i.pluck)(o,g(e)),alpha:n}):e):e.FCcolor?a=r?(0,i.toRaphaelColor)(function(e,t){var r,n,a={};for(r in e)"alpha"===r?a[r]=t.alpha?m(e[r],t.alpha):e[r]:"color"===r?(-1!==e[r].indexOf(",")&&t.color&&(n=t.color+","+e[r].substring(e[r].indexOf(",")+1)),a[r]=(0,i.pluck)(n||t.color,e[r])):a[r]=e[r];return a}(e.FCcolor,t)):(0,i.toRaphaelColor)(e.FCcolor):d.test(e.color||e)&&(a=r?(0,i.toRaphaelColor)({color:(0,i.pluck)(t.color,e.color,e),alpha:(0,i.pluck)(t.alpha,e.alpha)}):(0,i.toRaphaelColor)({color:e.color||e,alpha:e.alpha})),a},_=function(e,t,r,n,a,o){var s,l,c,u,d,h,f,p,m={},b={};a?(s=(0,i.getColumnColor)(n.color||r.upperColorArr[0].FCcolor.color,n.alpha.toString(),r.upperColorArr[0].FCcolor.ratio,r.upperColorArr[0].FCcolor.angle,o,n.bordercolor||g(r.upperBoxBorder.color),n.borderalpha&&n.borderalpha.toString()||(100*v(r.lowerBoxBorder.color)).toString()),b=(0,i.toRaphaelColor)(s[0]),l=(0,i.getColumnColor)(n.color||r.lowerColorArr[0].FCcolor.color,n.alpha.toString(),r.lowerColorArr[0].FCcolor.ratio,r.lowerColorArr[0].FCcolor.angle,o,n.bordercolor||g(r.lowerBoxBorder.color),n.borderalpha&&n.borderalpha.toString()||(100*v(r.lowerBoxBorder.color)).toString()),m=(0,i.toRaphaelColor)(l[0]),c=x(r.median.color,n,a),h=x(r.lowerQuartile.color,n,a),f=x(r.upperQuartile.color,n,a)):(b=(0,i.toRaphaelColor)(r.upperColorArr[0]),m=(0,i.toRaphaelColor)(r.lowerColorArr[0]),c=r.median.color,u=r.upperBoxBorder.color,d=r.lowerBoxBorder.color,f=r.upperQuartile.color,h=r.lowerQuartile.color),p=t.upperBoxElem,e.setAnimation({el:p,label:"highlightedBoxAnsWhiskerPlot",attr:{fill:b,"drop-shadow":p.attrs["drop-shadow"]&&"none"!==p.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+v(b)+")",p.attrs[4],p.attrs["drop-shadow"][5]]:"none"}}),p=t.lowerBoxElem,e.setAnimation({el:p,label:"highlightedBoxAnsWhiskerPlot",attr:{fill:m,"drop-shadow":p.attrs["drop-shadow"]&&"none"!==p.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+v(m)+")",p.attrs[4],p.attrs["drop-shadow"][5]]:"none"}}),p=t.lowerBoxBorderEle,e.setAnimation({el:p,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:d}}),t.upperBoxBorderEle&&e.setAnimation({el:t.upperBoxBorderEle,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:u}}),t.lowerQuartileEle&&e.setAnimation({el:t.lowerQuartileEle,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:h}}),t.upperQuartileEl&&e.setAnimation({el:t.upperQuartileEl,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:f}}),t.midLineElem&&e.setAnimation({el:t.midLineElem,label:"highlightedBoxAnsWhiskerPlot",attr:{stroke:c}})},S=function(e,t,r){var n,a,o,s,l,c,u,d,h,f=e.getFromEnv("chart"),p=e.getFromEnv("animationManager"),g=(f.config,f.config.dataLabelStyle),m=e._configureDataLabelStyle(),v=e.components.data;for(g.backgroundColor=""!==(null==m?void 0:m.backgroundColor)?m.backgroundColor:g.backgroundColor,g.color=""!==(null==m?void 0:m.color)?m.color:g.color,g.borderColor=""!==(null==m?void 0:m.borderColor)?m.borderColor:g.borderColor,n=0,a=v.length;n<a;n++)if(u=v[n])for(c in o=u.graphics,h=(s=u.config.anchorProps).enabled,l={fillColor:{FCcolor:{alpha:r&&h?(0,i.pluck)(t.anchorbgalpha,t.alpha,s.bgAlpha):s.bgAlpha,color:r&&h?(0,i.pluck)(t.anchorbgcolor,t.color,s.bgColor):s.bgColor}},borderColor:{FCcolor:{alpha:r&&h?(0,i.pluck)(t.borderalpha,t.alpha,s.borderAlpha):s.borderAlpha,color:r&&h?(0,i.pluck)(t.anchorbordercolor,t.color,s.borderColor):s.borderColor}},imageAlpha:r?t.alpha:s.imageAlpha,imageScale:s.imageScale},o)switch((d=!c.match(/error/gi)&&o[c])&&d.type){case"path":p.setAnimation({el:d,label:"highlightedAnchorPlot",attr:{fill:(0,i.toRaphaelColor)(l.fillColor),stroke:(0,i.toRaphaelColor)(l.borderColor)}});break;case"image":p.setAnimation({el:d,label:"highlightedAnchorImagePlot",attr:{opacity:l.imageAlpha/100}});break;case"text":y(p,d,t,g,r)}},k=function(e,t,r,n,a){var o,s=e.getStateCosmetics("default").symbol||{},l=s.fill,c=s.stroke,u=a?(0,i.pluck)(n.color,g(r.text.fill)):g(r.text.fill),h=t.legendItemLine,m=r.symbol.stroke,v=e.getFromEnv("animationManager");h&&m&&(d.test(m)?v.setAnimation({el:h,label:"highlightedLegendItem",attr:{stroke:a?(0,i.toRaphaelColor)({color:(0,i.pluck)(n.color,m),alpha:n.alpha}):m}}):(o=x(m,n,a),v.setAnimation({el:h,label:"highlightedLegendItem",attr:{stroke:o}}))),l&&(l=l.match(d)?a&&!f.test(l)?(0,i.toRaphaelColor)({color:n.color||l,alpha:n.alpha}):l:p.test(l)?l:x(l,n,a)),c&&(c=d.test(c)?a&&!f.test(c)?(0,i.toRaphaelColor)({color:n.color||c,alpha:n.alpha}):c:a&&!p.test(c)&&n.color?(0,i.toRaphaelColor)({color:n.color,alpha:n.alpha}):c),e.setStateCosmetics("highlight",{symbol:{fill:l||"none",stroke:c||"none",opacity:(a?n.alpha:100)/100},text:{fill:(0,i.toRaphaelColor)({color:u,alpha:a?n.alpha:100})}}),e.hasState("hidden")||e.setLegendState("highlight",!0)},C=function(e,t){var r=e.getFromEnv("legend").getItem(t);return r&&r.getGraphicalElement()},A={area:function(e,t,r){var n,a,o,s,l,c,u,d,f,p,g,m,b,y,x,_=this,A=_.getFromEnv("chart"),N=_.getFromEnv("animationManager"),E=A.getFromEnv("legend").getChildren("legendItem")||[],L=arguments[4],T=E.length,M=w(e),F=C(A,L),D=A.config.dataLabelStyle,I=_.getContainer("labelGroup"),O=_.config,P=(O.shadow||{}).opacity>0;if(!r&&_.getState("visible")){for(M.alpha=M.alpha||30,a=0;a<T&&(n=E[a]||{}).getId()!==L;a++);I&&N.setAnimation({el:I,label:"highlightedGroup",attr:{opacity:t?M.alpha/100:v(D.color)}}),s=O.plotbordercolor,f=O.plotborderalpha,y=O.plotfillalpha,o=O.plotgradientcolor,m=_.getGraphicalElement("lineElement")||_.getGraphicalElement("splineElement"),u=t?(0,i.pluck)(M.bordercolor,M.color,s):s,M.color&&(p=M.color+(o?","+o:h)),g=O.fillColor.color,l=t?(0,i.pluck)(p,g):g,b=O.plotfillangle,c=t?M.alpha:y,d=t?(0,i.pluck)(M.borderalpha,M.alpha):f,x=!!P&&(t?M.alpha/100:c/100),N.setAnimation({el:m,label:"highlightedAreaPlot",attr:{fill:(0,i.toRaphaelColor)({color:l,alpha:c,angle:b}),stroke:(0,i.toRaphaelColor)({color:u,alpha:d})}}),m.shadow(x),F&&k(n,F,n.parseLegendCosmetics(),M,t),S(_,M,t)}},bubble:function(e,t,r){var n,a,o,s,l,c,u,d,h,f,p,g,m=this,b=m.getFromEnv("chart"),x=m.getFromEnv("animationManager"),_=b.getFromEnv("legend").getChildren("legendItem")||[],S=_.length,A=arguments[4],N=b.config.dataLabelStyle,E=m.getContainer("labelGroup"),L=w(e);if(!1===r&&m.getState("visible")){for(L.alpha||(L.alpha=30),o=m.components.data||[],a=0;a<S&&(n=_[a]||{}).getId()!==A;a++);for(k(n,C(b,A),n.parseLegendCosmetics(),L,t),E&&x.setAnimation({el:E,label:"highlightedGroup",attr:{opacity:t?L.alpha/100:v(N.color)}}),a=0,S=o.length;a<S;a++)(s=o[a])&&(p=s.graphics,c=(l=s.config).colorObj,d=l.is3D,u=p.element,g=p.label,d?(f=t?(0,i.getPointColor)((0,i.pluck)(L.color,c.FCcolor.color),(0,i.pluck)(L.alpha,(0,i.getFirstAlpha)(c.alpha))):c,f=(0,i.toRaphaelColor)(f)):(f=t?(0,i.pluck)(L.color,c.color):c.color,h=t?L.alpha:c.alpha,f=(0,i.toRaphaelColor)({color:f,alpha:h})),u&&x.setAnimation({el:u,label:"highlightedBubblePlot",attr:{fill:f}}),g&&y(x,g,L,N,t))}},pie:function(e,t,r,n){var a,s,l,c,u,d,h,f,p,g,m,b,x,_=this,S=n.getFromEnv("chart"),A=n.getFromEnv("animationManager"),N=this,E={},L=arguments[4],T=S.getFromEnv("legend").getChildren("legendItem")||[],M=w(e);if(!1===r){for(M.alpha||(M.alpha=30),s=_.graphics.element,l=_.config,g=0,p=T.length;g<p&&(b=T[g]).getId()!==L;g++);m=C(S,L),k(b,m,b.parseLegendCosmetics(),M,t),c=l.color.color,S=(N=s.data("plotItem")).chart,a=N.style,d=S.config.is3D,(u=N.center)&&(E={cx:u[0],cy:u[1],r:N.radius}),c=t?(0,o["default"])((0,i.pluck)(M.color,c),M.alpha,90):l.color,x=t?M.alpha:c.alpha,c=(0,i.extend2)(c,E),d?s&&A.setAnimation({el:s,label:"highlightedPiePlot",attr:{color:c.color.split(",")[0],alpha:x}}):s&&A.setAnimation({el:s,label:"highlightedPiePlot",attr:{fill:(0,i.toRaphaelColor)(c)}}),h=_.graphics.label,f=_.graphics.connector,h&&y(A,h,M,a,t),f&&A.setAnimation({el:f,label:"highlightedPieConnectorPlot",attr:{opacity:t?M.alpha/100:v(a.color)}})}},line:function(e,t,r){var n,a,o,s,l,c,u,d=this,f=d.getFromEnv("chart"),p=d.getFromEnv("animationManager"),g=f.getFromEnv("legend").getChildren("legendItem")||[],m=g.length,b=arguments[4],y=f.config.dataLabelStyle,x=w(e),_=C(f,b),A=d.getContainer("labelGroup"),N=d.getContainer("errorPlotGroup"),E=d.config,L=E.linecolor,T=E.alpha||E.lineAlpha,M=(E.shadow||{}).opacity>0,F=d.config.lineOb,D=h;if(!r&&d.getState("visible")){for(x.alpha||(x.alpha=30),l=0;l<m&&(n=g[l]||{}).getId()!==b;l++);if(N&&(a=E.errorBarColor&&v(E.errorBarColor),o=t?(0,i.pluck)(x.alpha/100,a):a,p.setAnimation({el:N,label:"highlightedGroup",attr:{opacity:o}})),A&&p.setAnimation({el:A,label:"highlightedGroup",attr:{opacity:t?x.alpha/100:v(y.color)}}),s=d.getGraphicalElement("lineElement"),L=t?(0,i.pluck)(x.color,L):L,T=t?(0,i.pluck)(x.alpha,T):T,c=!!M&&(t?x.alpha/100:T/100),s&&p.setAnimation({el:s,label:"highlightedLinePlot",attr:{stroke:(0,i.toRaphaelColor)({color:L,alpha:T})}}),s&&s.shadow(c),"object"==typeof F&&F)for(D in F)(u=F[D]&&F[D].el)&&p.setAnimation({el:u,label:"highlightedLinePlot",attr:{stroke:t?L:F[D].attr.stroke,"stroke-opacity":T/100}}),u&&u.shadow(c);_&&k(n,_,n.parseLegendCosmetics(),x,t),S(d,x,t)}},boxandwhisker2d:function(e,t,r){var n,a,i,o,s,l,c=this,u=c.getFromEnv("chart"),d=c.getFromEnv("animationManager"),h=c.config.isRoundEdges,f=arguments[4],p=C(u,f),g=c.getContainer("lowerWhiskerGroup"),m=c.getContainer("upperWhiskerGroup"),v=c.getContainer("labelGroup"),b=u.getFromEnv("legend").getChildren("legendItem")||[],y=b.length,x=w(e);if(!1===r&&c.getState("visible")){for(x.alpha||(x.alpha=30),n=0;n<y&&(a=b[n]||{}).getId()!==f;n++);for(k(a,p,a.parseLegendCosmetics(),x,t),g&&d.setAnimation({el:g,label:"highlightedGroup",attr:{opacity:t?x.alpha/100:1}}),m&&d.setAnimation({el:m,label:"highlightedGroup",attr:{opacity:t?x.alpha/100:1}}),v&&d.setAnimation({el:v,label:"highlightedGroup",attr:{opacity:t?x.alpha/100:1}}),n=0,y=(l=c.components.data).length;n<y;n++)s=(o=l[n]).config,i=o.graphics,_(d,i,s,x,t,h)}},heatmap:function(e,t,r,n){var a,o,s,l,c,u,d,h,f,p,m,b=this,x=n.getFromEnv("chart"),_=n.getFromEnv("animationManager"),S=x.config,A=S.dataLabelStyle,N=x.getFromEnv("legend"),E=arguments[4],L=w(e),T=N.getChildren("legendItem")||[];if(!r&&n.getState("visible")&&!1!==b.visible){for(L.alpha||(L.alpha=t?30:100),S=b.config,f=0,h=T.length;f<h&&(m=T[f]).getId()!==E;f++);for(u in p=C(x,E),k(m,p,m.parseLegendCosmetics(),L,t),c=g(S.color),l=v(S.color),a=t?(0,i.pluck)(L.color,c):c,o=t?L.alpha:100*l,(s=(d=b.graphics).element)&&_.setAnimation({el:s,label:"highlightedHeatmapPlot",attr:{fill:(0,i.toRaphaelColor)({color:a,alpha:o})}}),d)"text"===(s=d[u]).type&&y(_,s,L,A,t)}},funnelpyramid:function(e,t,r,n){var a,o,s,l,c,u,d,h,f,p,m,b,x,_,S,A=this,N=n.getFromEnv("chart"),E=n.getFromEnv("animationManager"),L=w(e),T=N.getFromEnv("legend").getChildren("legendItem")||[],M=arguments[4];if(!1===r){for(L.alpha||(L.alpha=30),l=A,x=0,b=T.length;x<b&&(S=T[x]).getId()!==M;x++);_=C(N,M),k(S,_,S.parseLegendCosmetics(),L,t),o=l.style,m=l.color,c=g(m),p=v(m),u=t?(0,i.pluck)(L.color,c):c,d=t?L.alpha:100*p,s=A.getGraphicalElement("graphic"),h=A.getGraphicalElement("dataLabel"),f=A.getGraphicalElement("connector"),a=A.style,s&&E.setAnimation({el:s,label:"highlightedFunnelPyramidPlot",attr:{fill:(0,i.toRaphaelColor)({color:u,alpha:d})}}),h&&y(E,h,L,a,t),f&&E.setAnimation({el:f,label:"highlightedFunnelPyramidConnectorPlot",attr:{opacity:t?L.alpha/100:v(o.color)}})}},sankey:function(e,t,r){var n,a,i=e.getLinkedParent(),o=i.getChildren("legend")[0];e.getChildren("nodes").forEach(function(e){n=o.getItem(e.config.legendItemId),e.config.legendItemId===t?(r?e.onFocusCallback():e.onFocusOutCallback(),a=!1):a=!0,a=a&&r,k(n,C(i,t),n.parseLegendCosmetics(),{alpha:30},a)})},radialbar:function(e,t,r){var n=this,a=w(e),o=n.getFromEnv("legend").getItem(n.config.legendItemId),s=parseInt(a.alpha,10)/100*(n.config.realBarAlpha||n.config.baralpha),l=parseInt(a.alpha,10)/100*(n.config.realBarBorderAlpha||n.config.barborderalpha);k(o,C(n.getLinkedParent(),n.config.legendItemId),o.parseLegendCosmetics(),a,t&&!r),n.config.realBarAlpha=n.config.realBarAlpha||n.config.baralpha,n.config.realBarBorderAlpha=n.config.realBarBorderAlpha||n.config.barborderalpha,n.config.realColor=n.config.realColor||n.config.color,n.config.realBarBorderColor=n.config.realBarBorderColor||n.config.barbordercolor,n.config.realBorderAlpha=n.config.realBorderAlpha||n.config.borderalpha,t&&!r?n.setData({baralpha:isNaN(s)?.25:s,barborderalpha:isNaN(l)?.25:l,color:a&&a.color?(0,i.toRaphaelColor)(a.color):n.config.color,barbordercolor:a&&a.bordercolor?(0,i.toRaphaelColor)(a.bordercolor):n.config.bordercolor,borderalpha:a&&a.borderalpha?a.borderalpha:n.config.borderalpha},!0):(n.setData({baralpha:n.config.realBarAlpha,barborderalpha:n.config.realBarBorderAlpha,color:n.config.realColor,barbordercolor:n.config.realBarBorderColor,borderalpha:n.config.realBorderAlpha},!0),b([o]))},"default":function(e,t,r){var n,a,o,s,l,u,d,f,p,g,m,b,x,_,S,A=this,N=A.config,E=A.getFromEnv("chart"),L=A.getFromEnv("dataSource").dataset,T=A.getFromEnv("animationManager"),M=E.config,F=M.dataLabelStyle,D=M.useroundedges,I=E.config.is3D,O=w(e),P=arguments[4],R=C(E,P),j=A.getContainer("labelGroup"),B=A.getContainer("errorPlotGroup"),z=h,V=E.getFromEnv("legend").getChildren("legendItem")||[],U=V.length,H=N.showShadow;if(!1===r&&!0===A.getState("visible")){for(O.alpha||(O.alpha="30"),m=A.components.data||[],a=0;a<U&&(_=V[a]||{}).getId()!==P;a++);for(R&&k(_,R,_.parseLegendCosmetics(),O,t),j&&T.setAnimation({el:j,label:"highlightedGroup",attr:{opacity:t?O.alpha/100:v(F.color)}}),B&&(l=N.errorBarColor&&v(N.errorBarColor),u=t?(0,i.pluck)(O.alpha/100,l):l,T.setAnimation({el:B,label:"highlightedGroup",attr:{opacity:u}})),a=0,U=m.length;a<U;a++)if((b=m[a])&&b.graphics){g=(M=b.config).colorArr[0],S=(o=M.colorArr[1]).FCcolor.alpha,z=-1!==(f=(n=g.FCcolor.color).indexOf(","))&&O.color?O.color+n.substring(f):(0,i.pluck)(O.color,n),p=I?S:(0,i.pluck)(O.borderalpha,O.alpha,S),0===(0,i.pluckNumber)(S)&&(p="0"),d=t?(0,i.getColumnColor)(z,O.alpha,g.FCcolor.ratio,g.FCcolor.angle,D,(0,i.pluck)(O.bordercolor,o.FCcolor.color),p,!1,I):[g,o],(s=b.graphics.element)&&(n=(0,i.toRaphaelColor)(d[0]),o=(0,i.toRaphaelColor)(d[1]),T.setAnimation({el:s,label:"highlightedDefaultPlot",attr:{stroke:o,fill:n}}),s.shadow({opacity:H?(0,i.getFirstAlpha)(d[0].alpha)/100:0}));var q=L.find(function(e){return e.seriesname===R.legendItemText.attrs.text});x=b.graphics.label,F=c(c({},F),{},{valuefontcolor:q.valuefontcolor}),y(T,x,O,F,t)}}}},N=function(e,t){var r=e.sender.apiInstance;!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&u.applyEffect(r,t,!0,!1)},E=function(e,t){var r=e.sender.apiInstance;!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&u.applyEffect(r,t,!1,!0)},L=function(e,t){var r=e.sender.apiInstance;r.addJob("plothighlighteffect",function(){r.config.showLegend&&!1!==r.hasInteractiveLegend&&!1!==r.highlightEnabled&&u.applyEffect(r,t,!0,!0)},s.priorityList.postRender)};t["default"]={extension:function(e){var t;(u=new(function(){function t(){this.effectStore={},this.eventHandlers={}}var r=t.prototype;return r.add=function(e){this.effectStore[e.name]=e},r.attachEventHandlers=function(t,r){this.eventHandlers[t]||(this.eventHandlers[t]={},this.eventHandlers[t].listenerFn=e.addEventListener(t,r))},r.applyEffect=function(e,t,r,n){if(t.visible||n||"sankey"===e.getName()||"RadialBar"===e.getName()){var a,o,s,l,c,u,d,f,p,g,m,v,y=this.effectStore,w=e.getFromEnv("chart-attrib"),x=e.config.defaultDatasetType,_=w.plothighlighteffect&&w.plothighlighteffect.toLowerCase(),S=e.getDatasets(),k=e.config.isSingleSeries?S[0].components.data:S,C=(0,i.pluck)(t.itemId,t.legendItemId,t.legendItemIndex),A=h;if(b(e.getFromEnv("legend").getChildren("legendItem")),"funnel"===e.getName()||"Pyramid"===e.getName()?k=S[0].getChildren("data"):"RadialBar"===e.getName()&&(k=e.getChildren("plot")),e.getFromEnv("animationManager").setAnimationState("plotHighlighter"),_&&(_=_.replace(/\s+/g,"").split("|"),v=_[0],A=_[1]||""),v&&y[v])if("HeatMap"===e.getName())for(a=e.getFromEnv("colorRange"),m=function(e){var t,r,n=d.getChildren("legendItem"),a=n&&n.length;for(t=0;t<a;++t)if(n[t].config.datasetObj.code===e){r=n[t].getId();break}return r},p=(d=e.getFromEnv("legend")).getItem(C).config.datasetObj,c=0;c<k.length;c++)o=(l=k[c]).config.value,(g=a.getColorObj(o)).outOfRange||(p.code===g.code?y[v][x].call(l,A,r,!0,S[0],C):y[v][x].call(l,A,r,!1,S[0],m(g.code)));else if("sankey"===e.getName())y[v].sankey(S[0],C,r);else if("RadialBar"===e.getName())(d=e.getFromEnv("legend")).getItem(C),k.forEach(function(e){x=(x=e.getName&&e.getName()||x).toLowerCase(),y[v][x].call(e,A,r,e.config.legendItemId===C)});else for(c=0,f=k.length;c<f;c++)l=k[c],x=(x=l.getName&&l.getName()||x).toLowerCase(),undefined!==(s=(0,i.pluck)(l.config.itemId,l.config.legendItemId))&&(u=s===C,y[v][x]?y[v][x].call(l,A,r,u,S[0],s):y[v]["default"].call(l,A,r,u,S[0],s))}},t}())).attachEventHandlers("legenditemrollover",N),u.attachEventHandlers("legenditemrollout",E),u.attachEventHandlers("legenditemclicked",L),(t={name:"fadeout",area:A.area,radar:A.area,bubble:A.bubble,pie2d:A.pie,line:A.line,spline:A.line,splinearea:A.area,pie3d:A.pie,zoomline:A.line,funnelpoint:A.funnelpyramid,pyramidpoint:A.funnelpyramid,scatter:A.line,selectscatter:A.line,dragline:A.line,dragarea:A.area,realtimearea:A.area,realtimeline:A.line,realtimelinedy:A.line,realtimestackedarea:A.area,errorline:A.line,errorscatter:A.line,stepline:A.line,doughnut2d:A.pie,doughnut3d:A.pie,heatmap:A.heatmap,boxandwhisker2d:A.boxandwhisker2d,multiaxisline:A.line,sankey:A.sankey,radialbarplot:A.radialbar,"default":A["default"]})&&u.add(t)},name:"PlotHighlighter",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281);t["default"]=function(e,t,r,a){var i,o,s,l,c,u,d=(0,n.getFirstColor)(e),h=(0,n.getFirstAlpha)(t);return r<100&&n.hasSVG?a?(c=(0,n.getDarkColor)(d,Math.floor(100*(85-.2*(100-r)))/100),u=(0,n.getLightColor)(d,Math.floor(100*(100-.5*r))/100),i={color:c+n.COMMASTRING+u+n.COMMASTRING+u+n.COMMASTRING+c,alpha:h+n.COMMASTRING+h+n.COMMASTRING+h+n.COMMASTRING+h,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:r}):(o=Math.floor(.85*(100-.35*r)*100)/100,s=(0,n.getDarkColor)(d,o),l=Math.floor(.5*(100+r)*100)/100,i={color:(0,n.getLightColor)(d,l)+n.COMMASTRING+s,alpha:h+n.COMMASTRING+h,ratio:r+","+(100-r),radialGradient:!0,gradientUnits:"userSpaceOnUse"}):i={color:d+n.COMMASTRING+d,alpha:h+n.COMMASTRING+h,ratio:"0,100"},i}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(384)),i=r(281),o="__FC_tooltipText",s="__FC_onTooltipMove",l="__FC_onTooltipOut",c="__FC_onTooltipOver",u=function(e,t,r){var n=(0,i.getMouseCoordinate)(t.universe,(0,i.getTouchEvent)(r),t.chart),a=n.chartX,s=n.chartY;a+=11,s+=11,h._draw.call(t,a,s,this.data(o),e)},d=function(e){h._hide(e)},h=function(){function e(t,r){var n=this;n.config={},n.universe=t,this.chart=r,this.restrictWithinCanvas={left:!1,right:!1,top:!1,bottom:!1},n.toolTips={implicit:[],explicit:[]},n.hideImplicitToolTip=function(t){var r=n.lastActiveToolip;r&&t.target!==r.getData("targetElement").node&&(e._hide(r),n.config.lastActiveToolip=i.UNDEF)},n.config.positioningArr=[],n.config.canvasArr=[],t.FusionCharts.jsVars.fcObj.addEventListener("resized",n._updateAllToolTipBounds.bind(n))}var t=e.prototype;return t.setRestrictionWithinCanvas=function(e){void 0===e&&(e={}),Object.assign(this.restrictWithinCanvas,e)},t.getRestrictionWithinCanvas=function(){return this.restrictWithinCanvas},t._updateAllToolTipBounds=function(){var e,t,r=this.config,n=function(t){t.universeBounds&&t.universeBounds.canvas&&(e=r.canvasArr.indexOf(t.universeBounds.canvas)),t.setUniverseBounds(r.positioningArr[e])},a=this.toolTips;for(t in a)a[t].forEach(n)},t._setRelativePosition=function(e){var t=this.config,r=t.canvasArr,n=t.positioningArr,a=r.indexOf(e.canvas);-1===a?(r.push(e.canvas),n.push(e)):(r[a]=e.canvas,n[a]=e)},t._createToolTip=function(e,t){var r,n=this,i=n.config;return(r=new a["default"](this.universe,i.positioningArr[i.canvasArr.indexOf(t)])).setRestrictionWithinCanvas(n.restrictWithinCanvas),r.setStyle(n.config.tooltipStyle),n.toolTips[e].push(r),r},t.enableToolTip=function(e,t,r){var n,a,i,h=this,f=h.toolTips.implicit,p=f.length;if(e&&e.abbrArr&&e.abbrArr.length)for(n=0;n<e.abbrArr.length;n++)h.enableToolTip(e.abbrArr[n].el,e.abbrArr[n].title,r);return t?e.data(o)?(p>0&&f.some(function(r){return!(!(a=r).getData("active")||a.data.targetElement!==e)&&(a.show(t),!0)}),e.data(o,t),h):(a=h._getAvailableToolTip("implicit",r),h.disableToolTip(e),e.data(o,t),e.data(s,u.bind(e,a,h)),e.data(l,d.bind(e,a)),e.data(c,(i=e,function(t){h.draw(t,e.data(o),a),a.setData("targetElement",i),h.config.lastActiveToolip=a})),e.on("fc-mousemove",e.data(s)),e.on("fc-mouseout",e.data(l)),e.on("fc-mouseover",e.data(c)),h):(h.disableToolTip(e),h)},t.disableToolTip=function(e){var t=e.data(l),r=e.data(s),n=e.data(c);return r&&e.off("fc-mousemove",r),t&&e.off("fc-mouseout",t),n&&e.off("fc-mouseover",n),e.removeData(o),this},t.draw=function(t,r,n,a){var o,s,l=(0,i.getMouseCoordinate)(this.universe,(0,i.getTouchEvent)(t),this.chart),c=n&&!n.disposed?n:this._getAvailableToolTip("explicit",a);return o=l.chartX,s=l.chartY,o+=11,s+=11,e._draw.call(this,o,s,r,c),c},t.drawAt=function(t,r,n,a,i){var o=a&&!a.disposed?a:this._getAvailableToolTip("explicit",i);return e._draw.call(this,t,r,n,o),o},e._draw=function(e,t,r,n){var a=this.config,o=this.chart.getFromEnv("chartConfig").tooltipposition;(0,i.isSimilarObject)(n.previousStyle,a.tooltipStyle)||(n.setStyle(a.tooltipStyle),n.previousStyle=Object.assign({},a.tooltipStyle)),n.show(r),n.update(e,t,o)},t._getAvailableToolTip=function(e,t){for(var r,n=this.toolTips[e],a=0,i=n.length;a<i;a++)if(!1===(r=n[a]).getData("active"))return r;return this._createToolTip(e,t)},t.setStyle=function(e){var t,r=this.config;for(var n in t=r.tooltipStyle={},e)"showToolTipShadow"===n?e[n]?t.boxShadow="1px 1px 3px rgba(64,64,64,0.4)":t.boxShadow="none":t[n]=e[n]},t.hide=function(t){return e._hide(t),this},t.hideAll=function(){var t,r,n=this;for(t in n.toolTips)for(r=0;r<n.toolTips[t].length;r++)e._hide(n.toolTips[t][r])},e._hide=function(e,t){e&&(t?e.dispose():e.hide())},e}();t["default"]={extension:h,name:"ToolTipController",type:"plugin"}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(281),i=n(r(305)),o=n(r(385)),s=12,l="fusioncharts-div",c="#545454",u="3px",d="10px",h="hidden",f="1px",p="#000000",g="nowrap",m="normal",v="absolute",b="solid",y="#ffffff",w="none",x="hidden",_="none",S="left, top",k="auto",C=function(e){var t=e.getBoundingClientRect();return{left:0,top:0,right:t.width||t.right-t.left,bottom:t.height||t.bottom-t.top}},A=function(){function e(e,t){var r=this;r.text=a.BLANKSTRING,r.x=0,r.y=0,r.visibleWidth=0,r.universe=e,r.setUniverseBounds(t||C(e)),r.data={active:!1,target:!1},r.createElement(e),r.previousStyle={},r.restrictWithinCanvas={left:!1,right:!1,top:!1,bottom:!1}}var t=e.prototype;return t.setUniverseBounds=function(e){this.universeBounds=e||this.universe&&C(this.universe)},t.setRestrictionWithinCanvas=function(e){void 0===e&&(e={}),Object.assign(this.restrictWithinCanvas,e)},t.getRestrictionWithinCanvas=function(){return this.restrictWithinCanvas},t.createElement=function(e){var t=this.element=document.createElement("div");return t.setAttribute("class","fc__tooltip"),t.className+=" "+l,t.innerHTML=i["default"].createHTML(this.text),e.appendChild(this.setDefaultStyle()),t},t.setDefaultStyle=function(){var e=this.element;return e.style.color=c,e.style.padding=u,e.style.fontSize=d,e.style.overflow=h,e.style.borderWidth=f,e.style.borderColor=p,e.style.whiteSpace=g,e.style.position=v,e.style.borderStyle=b,e.style.backgroundColor=y,e.style["user-select"]=w,e.style["-ms-user-select"]=w,e.style["-moz-user-select"]=w,e.style["-webkit-user-select"]=w,e.style["-webkit-touch-callout"]=w,e.style.top=this.x+"px",e.style.left=this.y+"px",e.style.visibility=x,e.style["pointer-events"]=_,e},t.setData=function(e,t){this.data[e]=t},t.getData=function(e){return this.data[e]},t.setStyle=function(e){var t,r=this.element.style;for(t in this.setDefaultStyle(),e)r[t]=e[t]},t.show=function(e){var t={"&lt;":"<","&gt;":">","&quot;":'"',"&#034;":'"',"&#039;":"'"},r=e.replace(/&lt;|&gt;|&quot;|&#034;|&#039;/g,function(e){return t[e]}),n=o["default"].sanitize(r);this.text!==e&&(this.text=e,this.element.innerHTML=i["default"].createHTML(n)),this.setData("active",!0),"visible"!==this.element.style.visibility&&(this.element.style.visibility="visible"),this.element.style["will-change"]=S,this.element.style["max-width"]=this.universeBounds.right-this.universeBounds.left-s+"px"},t.update=function(e,t,r){void 0===e&&(e=this.x),void 0===t&&(t=this.y);var n=this.universeBounds,a=(this.restrictWithinCanvas.bottom?n.bottom:this.universe.clientHeight)-s,i=(this.restrictWithinCanvas.right?n.right:this.universe.clientWidth)-s,o=(this.restrictWithinCanvas.left?n.left:0)+s,l=(this.restrictWithinCanvas.top?n.top:0)+s,c=this.element,u=c.offsetWidth,d=c.offsetHeight,h=c.style,f=t-(d+10)>l,p=t+d<a;e+u<i?(h.left=e+"px",h.whiteSpace=g):u<i?e-u>=o?h.left=e-u-s+"px":(h.left=i-u+"px",h.whiteSpace=m):(h.left=n.left+"px",h.whiteSpace=m),h.top="top"===r&&f?t-(d+10)+"px":"bottom"===r&&p||t+d<a?t+"px":d<a&&t-d<=a?t-d+"px":a-d+"px"},t.hide=function(){this.y=0,this.x=0,this.x=a.BLANKSTRING,this.setData("active",!1),this.setData("target",!1),this.element.style.visibility=x,this.element.style["will-change"]=k,this.element.innerHTML=i["default"].createHTML(a.BLANKSTRING),this.text=a.UNDEF},t.dispose=function(){this.hide(),this.universe.removeChild(this.element),this.universe=a.UNDEF,this.disposed=!0},e}();t["default"]=A},e=>{"use strict";
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var i=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,d=Object.seal,h=Object.create,f="undefined"!=typeof Reflect&&Reflect,p=f.apply,g=f.construct;u||(u=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t,r){return e.apply(t,r)}),g||(g=function(e,t){return function(e,t,r){if(a())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var o=new(e.bind.apply(e,i));return r&&n(o,r.prototype),o}(e,t)});var m,v=M(Array.prototype.forEach),b=M(Array.prototype.lastIndexOf),y=M(Array.prototype.pop),w=M(Array.prototype.push),x=M(Array.prototype.splice),_=M(String.prototype.toLowerCase),S=M(String.prototype.toString),k=M(String.prototype.match),C=M(String.prototype.replace),A=M(String.prototype.indexOf),N=M(String.prototype.trim),E=M(Object.prototype.hasOwnProperty),L=M(RegExp.prototype.test),T=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return g(m,t)});function M(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return p(e,t,n)}}function F(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:_;o&&o(e,null);for(var n=t.length;n--;){var a=t[n];if("string"==typeof a){var i=r(a);i!==a&&(s(t)||(t[n]=i),a=i)}e[a]=!0}return e}function D(e){for(var t=0;t<e.length;t++){E(e,t)||(e[t]=null)}return e}function I(e){for(var r,n=h(null),a=t(i(e));!(r=a()).done;){var o=r.value,s=o[0],l=o[1];E(e,s)&&(Array.isArray(l)?n[s]=D(l):l&&"object"==typeof l&&l.constructor===Object?n[s]=I(l):n[s]=l)}return n}function O(e,t){for(;null!==e;){var r=c(e,t);if(r){if(r.get)return M(r.get);if("function"==typeof r.value)return M(r.value)}e=l(e)}return function(){return null}}var P=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),V=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=u(["#text"]),H=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),q=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/\$\{[\w\W]*/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=d(/^aria-[\-\w]+$/),Z=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=d(/^(?:\w+script|data):/i),ee=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=d(/^html$/i),re=d(/^[a-z][.\w]*(-[.\w]+)+$/i),ne=Object.freeze({__proto__:null,ARIA_ATTR:J,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:re,DATA_ATTR:K,DOCTYPE_NAME:te,ERB_EXPR:X,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:$,TMPLIT_EXPR:Y}),ae=1,ie=3,oe=7,se=8,le=9,ce=function(){return"undefined"==typeof window?null:window};var ue=function de(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ce(),t=function(e){return de(e)};if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==le||!e.Element)return t.isSupported=!1,t;var r,n=e.document,a=n,o=a.currentScript,s=e.DocumentFragment,l=e.HTMLTemplateElement,c=e.Node,d=e.Element,f=e.NodeFilter,p=e.NamedNodeMap,g=void 0===p?e.NamedNodeMap||e.MozNamedAttrMap:p,m=e.HTMLFormElement,M=e.DOMParser,D=e.trustedTypes,$=d.prototype,X=O($,"cloneNode"),Y=O($,"remove"),K=O($,"nextSibling"),J=O($,"childNodes"),Q=O($,"parentNode");if("function"==typeof l){var ee=n.createElement("template");ee.content&&ee.content.ownerDocument&&(n=ee.content.ownerDocument)}var re="",ue=n,he=ue.implementation,fe=ue.createNodeIterator,pe=ue.createDocumentFragment,ge=ue.getElementsByTagName,me=a.importNode,ve={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};t.isSupported="function"==typeof i&&"function"==typeof Q&&he&&he.createHTMLDocument!==undefined;var be=ne.MUSTACHE_EXPR,ye=ne.ERB_EXPR,we=ne.TMPLIT_EXPR,xe=ne.DATA_ATTR,_e=ne.ARIA_ATTR,Se=ne.IS_SCRIPT_OR_DATA,ke=ne.ATTR_WHITESPACE,Ce=ne.CUSTOM_ELEMENT,Ae=ne.IS_ALLOWED_URI,Ne=null,Ee=F({},[].concat(P,R,j,z,U)),Le=null,Te=F({},[].concat(H,q,G,W)),Me=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Fe=null,De=null,Ie=!0,Oe=!0,Pe=!1,Re=!0,je=!1,Be=!0,ze=!1,Ve=!1,Ue=!1,He=!1,qe=!1,Ge=!1,We=!0,$e=!1,Xe=!0,Ye=!1,Ke={},Je=null,Ze=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,et=F({},["audio","video","img","source","image","track"]),tt=null,rt=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",ot=it,st=!1,lt=null,ct=F({},[nt,at,it],S),ut=F({},["mi","mo","mn","ms","mtext"]),dt=F({},["annotation-xml"]),ht=F({},["title","style","font","a","script"]),ft=null,pt=["application/xhtml+xml","text/html"],gt=null,mt=null,vt=n.createElement("form"),bt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=I(e),ft=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===ft?S:_,Ne=E(e,"ALLOWED_TAGS")?F({},e.ALLOWED_TAGS,gt):Ee,Le=E(e,"ALLOWED_ATTR")?F({},e.ALLOWED_ATTR,gt):Te,lt=E(e,"ALLOWED_NAMESPACES")?F({},e.ALLOWED_NAMESPACES,S):ct,tt=E(e,"ADD_URI_SAFE_ATTR")?F(I(rt),e.ADD_URI_SAFE_ATTR,gt):rt,Qe=E(e,"ADD_DATA_URI_TAGS")?F(I(et),e.ADD_DATA_URI_TAGS,gt):et,Je=E(e,"FORBID_CONTENTS")?F({},e.FORBID_CONTENTS,gt):Ze,Fe=E(e,"FORBID_TAGS")?F({},e.FORBID_TAGS,gt):I({}),De=E(e,"FORBID_ATTR")?F({},e.FORBID_ATTR,gt):I({}),Ke=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,je=e.SAFE_FOR_TEMPLATES||!1,Be=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,Ue=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,Xe=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||Z,ot=e.NAMESPACE||it,ut=e.MATHML_TEXT_INTEGRATION_POINTS||ut,dt=e.HTML_INTEGRATION_POINTS||dt,Me=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(Oe=!1),qe&&(He=!0),Ke&&(Ne=F({},U),Le=[],!0===Ke.html&&(F(Ne,P),F(Le,H)),!0===Ke.svg&&(F(Ne,R),F(Le,q),F(Le,W)),!0===Ke.svgFilters&&(F(Ne,j),F(Le,q),F(Le,W)),!0===Ke.mathMl&&(F(Ne,z),F(Le,G),F(Le,W))),e.ADD_TAGS&&(Ne===Ee&&(Ne=I(Ne)),F(Ne,e.ADD_TAGS,gt)),e.ADD_ATTR&&(Le===Te&&(Le=I(Le)),F(Le,e.ADD_ATTR,gt)),e.ADD_URI_SAFE_ATTR&&F(tt,e.ADD_URI_SAFE_ATTR,gt),e.FORBID_CONTENTS&&(Je===Ze&&(Je=I(Je)),F(Je,e.FORBID_CONTENTS,gt)),Xe&&(Ne["#text"]=!0),ze&&F(Ne,["html","head","body"]),Ne.table&&(F(Ne,["tbody"]),delete Fe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');r=e.TRUSTED_TYPES_POLICY,re=r.createHTML("")}else r===undefined&&(r=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;var r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(D,o)),null!==r&&"string"==typeof re&&(re=r.createHTML(""));u&&u(e),mt=e}},wt=F({},[].concat(R,j,B)),xt=F({},[].concat(z,V)),_t=function(e){w(t.removed,{element:e});try{Q(e).removeChild(e)}catch(r){Y(e)}},St=function(e,r){try{w(t.removed,{attribute:r.getAttributeNode(e),from:r})}catch(n){w(t.removed,{attribute:null,from:r})}if(r.removeAttribute(e),"is"===e)if(He||qe)try{_t(r)}catch(n){}else try{r.setAttribute(e,"")}catch(n){}},kt=function(e){var t=null,a=null;if(Ue)e="<remove></remove>"+e;else{var i=k(e,/^[\r\n\t ]+/);a=i&&i[0]}"application/xhtml+xml"===ft&&ot===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=r?r.createHTML(e):e;if(ot===it)try{t=(new M).parseFromString(o,ft)}catch(l){}if(!t||!t.documentElement){t=he.createDocument(ot,"template",null);try{t.documentElement.innerHTML=st?re:o}catch(l){}}var s=t.body||t.documentElement;return e&&a&&s.insertBefore(n.createTextNode(a),s.childNodes[0]||null),ot===it?ge.call(t,ze?"html":"body")[0]:ze?t.documentElement:s},Ct=function(e){return fe.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof g)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Nt=function(e){return"function"==typeof c&&e instanceof c};function Et(e,r,n){v(e,function(e){e.call(t,r,n,mt)})}var Lt=function(e){var r=null;if(Et(ve.beforeSanitizeElements,e,null),At(e))return _t(e),!0;var n=gt(e.nodeName);if(Et(ve.uponSanitizeElement,e,{tagName:n,allowedTags:Ne}),Be&&e.hasChildNodes()&&!Nt(e.firstElementChild)&&L(/<[/\w!]/g,e.innerHTML)&&L(/<[/\w!]/g,e.textContent))return _t(e),!0;if(e.nodeType===oe)return _t(e),!0;if(Be&&e.nodeType===se&&L(/<[/\w]/g,e.data))return _t(e),!0;if(!Ne[n]||Fe[n]){if(!Fe[n]&&Mt(n)){if(Me.tagNameCheck instanceof RegExp&&L(Me.tagNameCheck,n))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))return!1}if(Xe&&!Je[n]){var a=Q(e)||e.parentNode,i=J(e)||e.childNodes;if(i&&a)for(var o=i.length-1;o>=0;--o){var s=X(i[o],!0);s.__removalCount=(e.__removalCount||0)+1,a.insertBefore(s,K(e))}}return _t(e),!0}return e instanceof d&&!function(e){var t=Q(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var r=_(e.tagName),n=_(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===it?"svg"===r:t.namespaceURI===nt?"svg"===r&&("annotation-xml"===n||ut[n]):Boolean(wt[r]):e.namespaceURI===nt?t.namespaceURI===it?"math"===r:t.namespaceURI===at?"math"===r&&dt[n]:Boolean(xt[r]):e.namespaceURI===it?!(t.namespaceURI===at&&!dt[n])&&!(t.namespaceURI===nt&&!ut[n])&&!xt[r]&&(ht[r]||!wt[r]):!("application/xhtml+xml"!==ft||!lt[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(je&&e.nodeType===ie&&(r=e.textContent,v([be,ye,we],function(e){r=C(r,e," ")}),e.textContent!==r&&(w(t.removed,{element:e.cloneNode()}),e.textContent=r)),Et(ve.afterSanitizeElements,e,null),!1):(_t(e),!0)},Tt=function(e,t,r){if(We&&("id"===t||"name"===t)&&(r in n||r in vt))return!1;if(Oe&&!De[t]&&L(xe,t));else if(Ie&&L(_e,t));else if(!Le[t]||De[t]){if(!(Mt(e)&&(Me.tagNameCheck instanceof RegExp&&L(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&L(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&L(Me.tagNameCheck,r)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(r))))return!1}else if(tt[t]);else if(L(Ae,C(r,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(r,"data:")||!Qe[e]){if(Pe&&!L(Se,C(r,ke,"")));else if(r)return!1}else;return!0},Mt=function(e){return"annotation-xml"!==e&&k(e,Ce)},Ft=function(e){Et(ve.beforeSanitizeAttributes,e,null);var n=e.attributes;if(n&&!At(e)){for(var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le,forceKeepAttr:undefined},i=n.length,o=function(){var o=n[i],s=o.name,l=o.namespaceURI,c=o.value,u=gt(s),d=c,h="value"===s?d:N(d);if(a.attrName=u,a.attrValue=h,a.keepAttr=!0,a.forceKeepAttr=undefined,Et(ve.uponSanitizeAttribute,e,a),h=a.attrValue,!$e||"id"!==u&&"name"!==u||(St(s,e),h="user-content-"+h),Be&&L(/((--!?|])>)|<\/(style|title)/i,h))return St(s,e),0;if(a.forceKeepAttr)return 0;if(!a.keepAttr)return St(s,e),0;if(!Re&&L(/\/>/i,h))return St(s,e),0;je&&v([be,ye,we],function(e){h=C(h,e," ")});var f=gt(e.nodeName);if(!Tt(f,u,h))return St(s,e),0;if(r&&"object"==typeof D&&"function"==typeof D.getAttributeType)if(l);else switch(D.getAttributeType(f,u)){case"TrustedHTML":h=r.createHTML(h);break;case"TrustedScriptURL":h=r.createScriptURL(h)}if(h!==d)try{l?e.setAttributeNS(l,s,h):e.setAttribute(s,h),At(e)?_t(e):y(t.removed)}catch(p){St(s,e)}};i--;)o();Et(ve.afterSanitizeAttributes,e,null)}},Dt=function It(e){var t=null,r=Ct(e);for(Et(ve.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)Et(ve.uponSanitizeShadowNode,t,null),Lt(t),Ft(t),t.content instanceof s&&It(t.content);Et(ve.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=null,o=null,l=null,u=null;if((st=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Nt(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Ve||yt(n),t.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){var d=gt(e.nodeName);if(!Ne[d]||Fe[d])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)(o=(i=kt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ae&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!He&&!je&&!ze&&-1===e.indexOf("<"))return r&&Ge?r.createHTML(e):e;if(!(i=kt(e)))return He?null:Ge?re:""}i&&Ue&&_t(i.firstChild);for(var h=Ct(Ye?e:i);l=h.nextNode();)Lt(l),Ft(l),l.content instanceof s&&Dt(l.content);if(Ye)return e;if(He){if(qe)for(u=pe.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(Le.shadowroot||Le.shadowrootmode)&&(u=me.call(a,u,!0)),u}var f=ze?i.outerHTML:i.innerHTML;return ze&&Ne["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&L(te,i.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+f),je&&v([be,ye,we],function(e){f=C(f,e," ")}),r&&Ge?r.createHTML(f):f},t.setConfig=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};yt(e),Ve=!0},t.clearConfig=function(){mt=null,Ve=!1},t.isValidAttribute=function(e,t,r){mt||yt({});var n=gt(e),a=gt(t);return Tt(n,a,r)},t.addHook=function(e,t){"function"==typeof t&&w(ve[e],t)},t.removeHook=function(e,t){if(t!==undefined){var r=b(ve[e],t);return-1===r?undefined:x(ve[e],r,1)[0]}return y(ve[e])},t.removeHooks=function(e){ve[e]=[]},t.removeAllHooks=function(){ve={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},t}();e.exports=ue},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281),a={treemap:!0,scatter:!0,bubble:!0,errorscatter:!0,errorline:!0,errorbar2d:!0,candlestick:!0,stackedcolumn3d:!0,stackedbar3d:!0,mscolumnline3d:!0,mscombi3d:!0,mscolumn3dlinedy:!0,stackedcolumn3dline:!0,stackedcolumn3dlinedy:!0},i=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},o=function(e,t,r){void 0===r&&(r="");var n=i("toolTextMargin");return"\n      "+e+'\n      <style nonce="'+r+'">\n        .'+n+' {\n          margin: 0;\n        }\n      </style>\n      <div class="'+n+'">'+t+"</div>\n    "},s=function(e,t){return t.hovered?e+1:e},l=function(e){return e.originalPlotColor||e.plotColor||e.color||"#000000"},c=function(e,t){return t.getJSONIndex()-e.getJSONIndex()};function u(e){var t,r=e.sender.getFromEnv("chart"),a=r.config.tooltipgrayoutcolor,u=r.config.plotcolorintooltip,d=r.getFromEnv("toolTipController"),h=r.getDatasets().sort(c),f=r.getFromEnv("consolidated-tooltip"),p=(0,n.getMouseCoordinate)(e.sender.getFromEnv("chart-container"),e.originalEvent,r),g=p.chartX,m=p.chartY,v=(null==r||null==(t=r.config)?void 0:t.nonce)||"",b=!1,y=h.map(function(e){return e.getPlotInCategoryAt(g,m)}).filter(Boolean),w=y.reduce(s,0),x=y.map(function(e){var t=e.pointObj.config,r=t.finalTooltext||t.toolText,o=l(t),s=i("color"),c=i("inlineBlock");if(w>0)if(!b&&e.hovered)r='\n          <style nonce="'+v+'">\n            .'+c+' {\n              display: inline-block;\n            }\n          </style>\n          <div class="'+c+'">'+r+"</div>",b=!0;else{o=a;var d=(0,n.hashify)(o);r='\n          <style nonce="'+v+'">\n            .'+s+" {\n              color: "+d+";\n            }\n            ."+c+' {\n              display: inline-block;\n            }\n          </style>\n          <div class="'+s+" "+c+'">'+r+"</div>"}else r='\n        <style nonce="'+v+'">\n          .'+c+' {\n            display: inline-block;\n          }\n        </style>\n        <div class="'+c+'">'+r+"</div>";var h=(0,n.hashify)(o);return'\n      <style nonce="'+v+'">\n        .'+s+" {\n          color: "+h+";\n        }\n        ."+c+" {\n          display: inline-block;\n        }\n      </style>\n      "+(u?'<div class="'+s+" "+c+'">&#9632&nbsp;</div>':"")+r}),_=[].concat(x).reverse().reduce(function(e,t){return o(e,t,v)},"");this.isWithinCanvas(g,m)&&_?f?d.draw(e.originalEvent,_,f):r.addToEnv("consolidated-tooltip",d.draw(e.originalEvent,_)):f&&d.hide(f)}function d(e){var t=e.sender.getFromEnv("chart"),r=t.getFromEnv("consolidated-tooltip");r&&t.getFromEnv("toolTipController").hide(r)}function h(e){var t,r=this.apiInstance,a=r.getDatasets().sort(c),s=r.config.plotcolorintooltip,u=r.getFromEnv("toolTipController"),d=r.getFromEnv("consolidated-tooltip"),h=a.map(function(t){var r=t.components.data;return r[e]&&r[e]}).filter(Boolean),f=h[0]&&{x:h[0].config._Px-h[0]._width,y:h[0].config._Py,width:h[0].config._width},p=(null==r||null==(t=r.config)?void 0:t.nonce)||"",g=h.map(function(e){var t=e.config,r=t.finalTooltext||t.toolText,a=i("color"),o=i("inlineBlock"),c=(0,n.hashify)(l(t));return s?'\n            <style nonce="'+p+'">\n              .'+a+" {\n                color: "+c+";\n              }\n              ."+o+' {\n                display: inline-block;\n              }\n            </style>\n            <div class="'+a+'">&#9632&nbsp;</div><div class="'+o+'">'+r+"</div>":'<div class="'+o+'">'+r+"</div>"}).reduce(function(e,t){return o(e,t,p)},"");g&&f?d?u.drawAt(f.x,f.y,g,d):r.addToEnv("consolidated-tooltip",u.drawAt(f.x,f.y,g)):d&&u.hide(d)}t["default"]={extension:function(e){e.addEventListener("predraw",function(e){var t,r;if(e.sender.getType&&"chartAPI"===e.sender.getType()&&(r=e.sender,!a[r.getName().toLowerCase()])){var n=(t=e.sender).getChildren("canvas");t.getFromEnv("chartInstance").drawConsolidatedToolTip=h,n&&n.forEach(function(e){if(!t.config.drawTrendRegion||!t.config.showtooltip)return e.removeEventListener("fc-mouseover",u),e.removeEventListener("fc-mousemove",u),e.removeEventListener("fc-mouseout",d),void e.setState("consolidatedTooltipEventListenerAttached",!1);!e.getState("consolidatedTooltipEventListenerAttached")&&t.config.showtooltip&&(e.addEventListener("fc-mouseover",u),e.addEventListener("fc-mousemove",u),e.addEventListener("fc-mouseout",d),e.setState("consolidatedTooltipEventListenerAttached",!0))})}})},name:"ConsolidatedToolTip",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(388)),i=r(281),o=function(e){e.sender.apiInstance.getChildren("alertManager")&&e.sender.apiInstance.getChildren("alertManager")[0].processRTData(e.data)},s=function(e){if("dataset"===e.sender.getType()){var t,r,n=e.sender,a=n.config,o=a.JSONData,s=n.getFromEnv("chart").getChildren("alertManager");if(!s||!o)return;t=(0,i.pluckNumber)(o&&o.checkforalerts,1),(r=(s=s[0]).config||(s.config={})).datasetMap=r.datasetMap||{},r.datasetMap[a.index]=t}},l=function(e){"chartAPI"===e.sender.getType()&&e.sender.registerFactory("alertManager",function(e){e.getChildren("alertManager")?e.getChildren("alertManager")[0].configure():(0,i.componentFactory)(e.getFromEnv("chart"),a["default"],"alertManager",1,[{}])})};t["default"]={extension:function(e){e.addEventListener("instantiated",l),e.addEventListener("updateDataReceived",o),e.addEventListener("postConfigure",s)},name:"alertManagerLinker",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=r(297),s="showannotation",l=function(e){function t(){var t;return(t=e.call(this)||this).pIndex=1,t.linkedItems={chart:{}},t}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"AlertManager"},r.configure=function(){var e,t,r,n=this,a=n.getFromEnv("dataSource"),i=a&&a.alerts&&a.alerts.alert,o=n.getFromEnv("number-formatter"),s=n.config||(n.config={});if(i&&i.length)for(s.alertArr=i,e=i.length,t=0;t<e;t+=1)(r=i[t]).minvalue=o.getCleanValue(r.minvalue),r.maxvalue=o.getCleanValue(r.maxvalue);else s.alertArr=[]},r.processRTData=function(e){var t,r,n,a,i,o,s=this,l=s.config,c=s.getFromEnv("number-formatter");if(e&&e.dataset&&e.dataset.length)for(n=e.dataset.length,t=0;t<n;t+=1)if((a=e.dataset[t]).data&&a.data.length){if(l.datasetMap&&0===l.datasetMap[t])continue;for(i=a.data.length,r=0;r<i;r+=1)null!==((o=a.data[r])&&c.getCleanValue(o.value))&&s._doAlert(c.getCleanValue(o.value))}},r._doAlert=function(e){var t,r,n,a=this.getLinkedParent(),o=this.config.alertArr,l=o.length;for(r=0;r<l;r+=1)if(n=(t=o[r]).action&&t.action.toLowerCase(),t.minvalue<=e&&t.maxvalue>=e){if("1"!==t.occuronce||!t.hasOccurred){switch(t.hasOccurred=!0,t.state="1",n){case"calljs":setTimeout((0,i.pseudoEval)(t.param));break;case s:a.showAnnotation&&a.showAnnotation(t.param)}a.fireChartInstanceEvent("AlertComplete",{alertValue:e,alertMaxValue:t.maxvalue,alertMinValue:t.minvalue})}}else n===s&&"1"===t.state&&a.hideAnnotation&&a.hideAnnotation(t.param),t.state="2"},t}(o.ComponentInterface);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(390)),i=r(392);t["default"]={extension:function(e){e.addEventListener("preconfigure",function(e){var t=e.sender,r=t.getFromEnv("chart");i.allowedCharts[r&&r.getName()]&&("dataset"===t.getType()&&"cartesianStackGroup"!==t.getLinkedParent().getName()?(t.setState("applySkippingOnConf",!0),a["default"].dataSkipping({component:t,datasetType:t.getName(),compType:"dataset"})):"cartesianStackGroup"===t.getName()&&(t.setState("applySkippingOnConf",!0),a["default"].dataSkipping({component:t,datasetType:t.getName(),compType:"group"})))}),e.addEventListener("preattributeprepared",function(e){var t=e.sender.getFromEnv&&e.sender.getFromEnv("chart");if(i.allowedCharts[t&&t.getName()])if("dataset"===e.sender.getType()){var r=e.sender,n=r.getFromEnv("canvasConfig"),o=r.getFromEnv("chart").isBar?n.canvasHeight:n.canvasWidth;"cartesianStackGroup"!==r.getLinkedParent().getName()&&(r.getState("applySkippingOnConf")?r.setState("applySkippingOnConf",!1):a["default"].dataSkipping({component:r,compType:"dataset",datasetType:r.getName(),width:o}))}else if("cartesianStackGroup"===e.sender.getName()){var s=e.sender,l=s.getFromEnv("canvasConfig"),c=s.getFromEnv("chart").isBar?l.canvasHeight:l.canvasWidth,u=Object.keys(s.getChildren())[0];s.getState("applySkippingOnConf")?s.setState("applySkippingOnConf",!1):a["default"].dataSkipping({component:s,compType:"group",datasetType:s.getChildren(u)[0].getName(),width:c})}}),e.addEventListener("dataplotdragend",function(e,t){if(e.sender.getType&&"dataset"===e.sender.getType()){var r=e.sender,n=r.getSkippingInfo&&r.getSkippingInfo();n&&n.skippingApplied&&a["default"].updateDragMap({component:r,compType:"dataset",evenType:"dataplotdragend",eventArgs:t})}})},name:"DataSkipping",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(391)),i=r(392),o=r(281),s=[],l=0,c={},u=[];function d(e){return void 0===e&&(e=[]),e.filter(function(e){return!s[e]})}function h(e,t){for(var r=0,n=[],a=1;a<c.noOfPlotBins;++a)e(r,(r+=c.plotsPerBin)-1,t,u,n);return e(r,t.length-1,t,u,n),u=[],n}function f(e){var t,r,n,o,f,p,g,m=i.filterType[e.datasetType],v=e.component,b=v.getSkippingInfo&&v.getSkippingInfo(),y=b&&b.draw.slice(0),w=b&&(b.labelDraw||[]).slice(0),x={},_=[],S=v.getFromEnv("xAxis").getTicksLen();if((!y||!y.length)&&(void 0===(g=l)&&(g=0),y=Array.from(new Array(g),function(e,t){return t})),(!w||!w.length)&&(w=y),u=b&&b.dragHashMap,"cartesianStackGroup"===v.getName()){for(o=c.jsonData.length,t=0;t<S;++t){for(n=0,r=0;r<o;++r)p=c.jsonData[r].data,n+=Number(p[t]?p[t].value:0);_.push({value:n})}x.draw=h((0,a["default"])(m),_)}else x.draw=h((0,a["default"])(m),c.jsonData.data);return x.draw.forEach(function(e){s[e]=!0}),x.drawOnlyMap=s,x.hide=d(y),f=function(e){var t,r=c.labelBinSize/c.plotBinSize,n=[],a=[],i=e.length;for(t=0;t<i;t++)t%r||(n.push(e[t]),a[e[t]]=!0);return{drawableLabelIndices:n,labelHashMap:a}}(x.draw),x.labelDraw=f.drawableLabelIndices,s=x.labelDrawOnlyMap=f.labelHashMap,x.hideLabel=d(w),x.plotsPerBin=c.plotsPerBin,x.skippingApplied=!0,x.dragHashMap=[],x.prevDrawInfo=y.slice(0),x}t["default"]={dataSkipping:function(e){void 0===e&&(e={});var t=e.component;!function(e){void 0===e&&(e={});var t,r,n,a,i,u=e.component,d=e.compType,h=u.getFromEnv("chartConfig"),f=u.getFromEnv("dataSource").chart||{},p=(0,o.pluckNumber)(f.plotbinsize,h.plotbinsize);return c.plotBinSize=p,c.labelBinSize=(0,o.pluckNumber)(f.labelbinsize,h.labelbinsize),c.jsonData=u.config.JSONData,"group"===d?(t=c.jsonData[0].data,l=u.config.stackValues&&u.config.stackValues.length||0):"dataset"===d&&(t=c.jsonData.data,l=u.components.data&&u.components.data.length||0),r=t&&t.length,s=[],c.width=i=u.getFromEnv("chart").isBar?e.height||u.getFromEnv("chartHeight"):e.width||u.getFromEnv("chartWidth"),n=r/i,a=Math.floor(n*p),n>=1.5&&a>1&&(c.plotsPerBin=a,c.noOfPlotBins=Math.ceil(r/c.plotsPerBin),!0)}(e)?t.setSkippingInfo&&t.setSkippingInfo():t.setSkippingInfo&&t.setSkippingInfo(f(e))},updateDragMap:function(e){void 0===e&&(e={});var t=e.component,r=e.eventArgs,n=t.getSkippingInfo&&t.getSkippingInfo()||{};r&&(n.dragHashMap[r.dataIndex]=r.endValue)}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r,n=function(e,t,n,a,i){void 0===a&&(a=[]);for(var o,s=n[t].value,l=t,c=t-1;c>=e;--c)(o=a[c]!==r?a[c]:n[c].value)>s&&(s=o,l=c);return i.push(l),i},a=function(e,t,n,a,i){void 0===a&&(a=[]);for(var o,s=n[t].value,l=t,c=n[t].value,u=t,d=t-1;d>=e;--d)(o=a[d]!==r?a[d]:n[d].value)>s?(s=o,l=d):o<c&&(c=o,u=d);var h=u<l?[u,l]:[l,u];return u=h[0],l=h[1],i.push(u),u!==l&&i.push(l),i};t["default"]=function(e){var t={maxOnly:n,minMax:a};return t[e]||t.maxOnly}},(e,t)=>{"use strict";t.__esModule=!0,t.filterType=t.allowedCharts=void 0;t.allowedCharts={Column2D:!0,Line:!0,Area2D:!0,Bar2D:!0,MSColumn2D:!0,MSLine:!0,MSBar2D:!0,MSArea:!0,StackedColumn2D:!0,StackedBar2D:!0,StackedArea2D:!0,MSStackedColumn2D:!0,MSStackedBar2D:!0,MSCombi2D:!0,StackedColumn2DLine:!0,MSCombidy2D:!0,LogMSColumn2d:!0,LogMSLine:!0,DragColumn:!0,DragLine:!0,DragArea:!0},t.filterType={Column:"maxOnly",line:"minMax",area:"minMax"}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(394)),i=n(r(414)),o=function(e,t){return"groups"!==t&&"items"!==t},s=function(e){var t=e.sender;(function(e){return"chartAPI"===e.getType()})(t)&&t.registerFactory("annotation",function(e){var t=e.getFromEnv("dataSource").annotations,r=e.getChildren().annotation,n=r&&r[0];delete e.getFromEnv("chartInstance").annotations,t&&(n||(n=new a["default"]((0,i["default"])(o,t)),e.attachChild(n,"annotation"),n.config.drawn=!1),n._rawJSON=t,n.configure(t),e.getFromEnv("chartInstance").annotations=n)})};t["default"]={extension:function(e){e.addEventListener("instantiated",s)},name:"Annotation",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(395),o=r(281),s=r(289),l=n(r(396)),c=n(r(397)),u=n(r(398)),d=n(r(399)),h=r(297),f=["pie2d","doughnut2d"],p=["pie3d","doughnut3d"],g=function(e,t){return e.getJSONIndex()-t.getJSONIndex()},m=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});var n,a={};for(var i in a.annotationType="shape",a.id=e.id,a.type=e.type&&e.type.toLowerCase(),a.toolText=(0,o.pluck)(e.tooltext,e.toolText),a.animationLabel=(0,o.pluck)(e.animationlabel,e.animationLabel),a.dashed=e.dashed,a.dashLen=(0,o.pluck)(e.dashlen,e.dashLen),a.dashGap=(0,o.pluck)(e.dashgap,e.dashGap),a.thickness=e.thickness,a.showBorder=(0,o.pluck)(e.showborder,e.showBorder),a.borderColor=(0,o.pluck)(e.bordercolor,e.borderColor),a.borderAlpha=(0,o.pluck)(e.borderalpha,e.borderAlpha),a.borderThickness=(0,o.pluck)(e.borderthickness,e.borderThickness),a.alpha=e.alpha,a.color=e.color,a.fillColor=(0,o.pluck)(e.fillcolor,e.fillColor),a.fontColor=(0,o.pluck)(e.fontcolor,e.fontColor),a.fillAlpha=(0,o.pluck)(e.fillalpha,e.fillAlpha),a.fillAngle=(0,o.pluck)(e.fillangle,e.fillAngle),a.fillRatio=(0,o.pluck)(e.fillratio,e.fillRatio),a.fillPattern=(0,o.pluck)(e.fillpattern,e.fillPattern),a.sides=e.sides,a.radius=e.radius,a.yRadius=(0,o.pluck)(e.yradius,e.yRadius),a.innerRadius=(0,o.pluck)(e.innerradius,e.innerRadius),a.endAngle=(0,o.pluck)(e.endangle,e.endAngle),a.startAngle=(0,o.pluck)(e.startangle,e.startAngle),a.isVisible=!0==(n=e.visible,!(0===parseInt(n,10))),a.x=e.x,a.y=e.y,a.xPos=(0,o.pluck)(e.xpos,e.xPos),a.yPos=(0,o.pluck)(e.ypos,e.yPos),a.toY=(0,o.pluck)(e.toy,e.toY),a.toX=(0,o.pluck)(e.tox,e.toX),a.autoScale=(0,o.pluck)(e.autoscale,e.autoScale),a.path=e.path,a.css=e.css,a.wrap=e.wrap,a.text=e.text!==o.UNDEF&&null!==e.text&&e.text.toString()||o.UNDEF,a.font=(0,o.pluck)(e.font,t.font,r.basefont),a.bold=(0,o.pluck)(e.bold,e.isbold,e.bold,e.isBold),a.label=e.label,a.align=e.align,a.italic=e.italic,a.vAlign=(0,o.pluck)(e.valign,e.vAlign),a.bgColor=(0,o.pluck)(e.bgcolor,e.bgColor),a.fontSize=(0,o.pluck)(e.fontsize,e.fontSize,t.fontSize,r.basefontsize),a.wrapWidth=(0,o.pluck)(e.wrapwidth,e.wrapWidth),a.leftMargin=(0,o.pluck)(e.leftmargin,e.leftMargin),a.rotateText=(0,o.pluck)(e.rotatetext,e.rotateText),a.wrapHeight=(0,o.pluck)(e.wrapheight,e.wrapHeight),a.showShadow=(0,o.pluck)(e.showshadow,e.showShadow),a.link=e.link,a.url=e.url,a.link=e.link,a.width=e.width,a.height=e.height,a.xScale=(0,o.pluck)(e.xscale,e.xScale),a.yScale=(0,o.pluck)(e.yscale,e.yScale),a.onload=e.onload,a.onerror=e.onerror,a.outlineText=(0,o.pluckNumber)(e.outlinetext,e.outlineText,0),"object"==typeof e.component&&(a.component=e.component),a){if(a.hasOwnProperty(i))void 0===a[i]&&delete a[i]}return a},v=function(e,t){return void 0===e&&(e={groups:[]}),void 0===t&&(t={}),(e.groups||[]).map(function(r){var n,a;return n=e,(a=r).css=a.css||n.css,a.autoscale=(0,o.pluck)(a.autoscale,n.autoscale),a.animationLabel=(0,o.pluck)(a.animationLabel,n.animationLabel),a.constrainedscale=(0,o.pluck)(a.constrainedscale,n.constrainedscale),a.scaletext=(0,o.pluck)(a.scaletext,n.scaletext),a.scaleimages=(0,o.pluck)(a.scaleimages,n.scaleimages),a.xshift=(0,o.pluck)(a.xshift,n.xshift),a.yshift=(0,o.pluck)(a.yshift,n.yshift),a.grpxshift=(0,o.pluck)(a.grpxshift,n.grpxshift),a.grpyshift=(0,o.pluck)(a.grpyshift,n.grpyshift),a.origw=(0,o.pluck)(a.origw,n.origw),a.origh=(0,o.pluck)(a.origh,n.origh),a.showbelow=(0,o.pluck)(a.showbelow,n.showbelow,1),a.onAnnotationClick=n.onAnnotationClick,a.onAnnotationRollover=n.onAnnotationRollover,a.onAnnotationRollout=n.onAnnotationRollout,function(e,t){var r={},n=e.items;for(var a in n=e.items=(0,i.arrangeItems)(n),r.annotationType="group",r.id=e.id,r.showBelow="undefined"==typeof e.showbelow||null===e.showbelow?1:Number(e.showbelow),r.x=e.x,r.y=e.y,r.animationLabel=(0,o.pluck)(e.animationlabel,e.animationLabel),r.xPos=(0,o.pluck)(e.xpos,e.xPos),r.yPos=(0,o.pluck)(e.ypos,e.yPos),r.grpXShift=(0,o.pluck)(e.grpxshift,e.grpXShift),r.grpYShift=(0,o.pluck)(e.grpyshift,e.grpYShift),r.xShift=(0,o.pluck)(e.xshift,e.xShift),r.yShift=(0,o.pluck)(e.yshift,e.yShift),r.color=e.color,r.alpha=e.alpha,r.isVisible=1===Number(e.visible||1),r.font=(0,o.pluck)(e.font,t.basefont),r.link=e.link,r.fontSize=(0,o.pluck)(e.fontsize,e.fontSize,t.basefontsize),r.textAlign=(0,o.pluck)(e.textalign,e.textAlign),r.textVAlign=(0,o.pluck)(e.textvalign,e.textVAlign),r.rotateText=(0,o.pluck)(e.rotatetext,e.rotateText),r.wrapText=(0,o.pluck)(e.wraptext,e.wrapText),r.toolText=(0,o.pluck)(e.tooltext,e.toolText),r.link=e.link,r.showShadow=(0,o.pluck)(e.showshadow,e.showShadow),r.items=e.items,r.css=e.css,r.autoScale=(0,o.pluck)(e.autoscale,e.autoScale),r.scaleText=(0,o.pluck)(e.scaletext,e.scaleText),r.xScale=(0,o.pluck)(e.xscale,e.xScale),r.yScale=(0,o.pluck)(e.yscale,e.yScale),r.scaleImages=(0,o.pluck)(e.scaleimages,e.scaleImages),r.constrainedScale=(0,o.pluck)(e.constrainedscale),r.origH=(0,o.pluck)(e.origh,e.origH,t.origh),r.origW=(0,o.pluck)(e.origw,e.origW,t.origw),r.onAnnotationClick=e.onAnnotationClick,r.onAnnotationRollover=e.onAnnotationRollover,r.onAnnotationRollout=e.onAnnotationRollout,"object"==typeof e.component&&(r.component=e.component),r)r.hasOwnProperty(a)&&void 0===r[a]&&delete r[a];return Array.isArray(n)&&(r.itemConfigs=n.map(function(e){return m(e,r,t)})),r}(r,t)})},b=function(e){function t(t){var r;return r=e.call(this,t)||this,(0,s.addDep)({name:"annotationAnimation",type:"animationRule",extension:l["default"]}),(0,c["default"])((0,s.getDep)("redraphael","plugin")),(0,u["default"])((0,s.getDep)("redraphael","plugin")),r.groups=[],r.config.dependencies={},r._rawJSON={groups:[]},r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"annotation"},r.getType=function(){return"extension"},r.configureAttributes=function(e){void 0===e&&(e={groups:[]});var t=this,r=t.config;t._rawJSON=(0,o.extend2)({},t._rawJSON,e),e.groups?r.parsedConfigs=v(e,t.getFromEnv("chart").config):r.parsedConfigs=[],r.parsedConfigs.forEach(function(e){t.attachChild(d["default"],"group",e.id).configure(e)}),t.groups=t.getChildren("group")||[]},r.addItem=function(e,t,r){void 0===t&&(t={});var n,a,i,o=this,s=o._rawJSON,l=s.groups.length;for(n=0;n<l;n++)if(s.groups[n].id===e){a=s.groups[n];break}return a?a.items=a.items||[]:(a={id:e,items:[]},s.groups.push(a)),a.items.push(t),o.setData(s,!0),(i=o.retrieveGroup(e).items)[i.length-1]},r.addGroup=function(e){void 0===e&&(e={});var t=this,r=t._rawJSON;return r.groups?r.groups.push(e):r.groups=[e],t.setData(r,!0),t.groups[t.groups.length-1]},r.addCustomGroup=function(e){e&&(this.config.customGroup=e)},r.update=function(e,t){var r,n,a,i,o={};if(e){for(n in t)o[n.toLowerCase()]=t[n]&&t[n].toString();if(!(r=this.retrieveItem(e)||this.retrieveGroup(e))||!r.getElement())return;return"undefined"==typeof o.visible&&(o.visible=r.config.isVisible),a=r.rawConfig,a=Object.assign(a,o),(i=m(a)).isVisible=o.visible,r.setData(i),r}},r.destroy=function(e){var t,r,n,a,i,o,s=this,l=s._rawJSON,c=!1;if(e){for(t=0,n=l.groups.length;t<n;t++)for(r=0,a=((i=l.groups[t]).items||[]).length;r<a;r++)if((o=i.items[r])&&o.id===e){i.items.splice(r,1),c=!0;break}if(!c)for(t=0,n=l.groups.length;t<n;t++)(i=l.groups[t])&&i.id===e&&l.groups.splice(t,1)}else l=s._rawJSON={groups:[]};s.setData(l)},r.clear=function(){this.destroy()},r.retrieveItem=function(e){var t,r,n,a=this.groups.length;for(n=0;n<a;n++)if(t=this.groups[n].retrieveItem(e)){r=t;break}return r},r.retrieveGroup=function(e){var t,r,n=this;for(t=0,r=n.groups.length;t<r;t++)if(n.groups[t].getId()===e)return n.groups[t]},r.show=function(e){var t;e?(t=this.retrieveItem(e)||this.retrieveGroup(e))&&t.show():this.groups.forEach(function(e){e.show()})},r.hide=function(e){var t;e?(t=this.retrieveItem(e)||this.retrieveGroup(e))&&t.hide():this.groups.forEach(function(e){e.hide()})},r.draw=function(){var e,t,r,n,a,o,s,l,c,u,d,h,m,v,b=this;b.addToEnv("snapPoints",(e=b.getFromEnv("chart"),a=e.config,o=e.getChildren(),s=o.caption[0],l=o.subCaption[0],c=o.legend&&o.legend[0]||{},u=o.gLegend&&o.gLegend[0]||{},d=s.config,h=l.config,m=d.width||0,v=h.width||0,"end"===d.align?(t=d.x-m,n=d.x-v):"start"===d.align?t=n=d.x:(t=d.x-m/2,n=d.x-v/2),r=a.gLegendEnabled?u.conf:c.config,{canvasendx:a.canvasRight,canvasendy:a.canvasBottom,canvasheight:a.canvasHeight,canvasstartx:a.canvasLeft,canvasstarty:a.canvasTop,canvaswidth:a.canvasWidth,canvascenterx:a.canvasCenterX||a.canvasLeft+(a.canvasRight-a.canvasLeft)/2,canvascentery:a.canvasCenterY||a.canvasTop+(a.canvasBottom-a.canvasTop)/2,chartcenterx:a.width/2,chartcentery:a.height/2,chartstartx:0,chartstarty:0,chartendx:a.width,chartendy:a.height,chartheight:a.height,chartwidth:a.width,chartleftmargin:a.marginLeft,chartrightmargin:a.marginRight,chartbottommargin:a.marginBottom,charttopmargin:a.marginTop,captionendx:t+d.width,captionendy:d.y+d.height,captionheight:d.height,captionstartx:t,captionstarty:d.y,captionwidth:m,subcaptionendx:n+h.width,subcaptionendy:h.y+h.height,subcaptionheight:h.height,subcaptionstartx:n,subcaptionstarty:h.y,subcaptionwidth:v,legendendx:r&&r.xPos+r.width,legendendy:r&&r.yPos+r.height,legendheight:r&&r.height,legendstartx:r&&r.xPos,legendstarty:r&&r.yPos,legendwidth:r&&r.width,dataset:function(t){var r,n,a,o=t.split(i.DEFAULT_MACRO_SEPARATOR).slice(1),s=[];return e.iterateComponents(function(e){"dataset"===e.getType()&&s.push(e)}),s.sort(g),r=(n=s[Number(o[0])]).components.data[Number(o[2])],f.indexOf(n.getName().toLowerCase())>-1?(0,i.computeSliceBounds)(o[3],r.config):p.indexOf(n.getName().toLowerCase())>-1?(0,i.compute3DSliceBounds)(o[3],r.config):(a=(0,i.computePlotBounds)(r,n.getName()),(0,i.xyCalculator)(o[3],a))},xaxis:(0,i.axisMacroParser)(e,"xAxis"),yaxis:(0,i.axisMacroParser)(e,"yAxis"),gaugestartx:a.gaugeStartX,gaugestarty:a.gaugeStartY,gaugeendx:a.gaugeEndX,gaugeendy:a.gaugeEndY,gaugecenterx:a.gaugeCenterX,gaugecentery:a.gaugeCenterY,gaugestartangle:a.gaugeStartAngle,gaugeendangle:a.gaugeEndAngle,gaugeradius:a.gaugeRadius,plotwidth:a.plotWidth,plotsemiwidth:a.plotSemiWidth})),b.addGraphicalElement({el:"group",attr:{name:"upperannotations"},component:b,container:{label:"group",id:"abovePlotGroup",isParent:!0},id:"upperAnnotationGroup",label:"group"}),b.addGraphicalElement({el:"group",attr:{name:"lowerannotations"},component:b,container:{label:"group",id:"belowPlotGroup",isParent:!0},id:"lowerAnnotationGroup",label:"group"})},t}(h.SmartRenderer);t["default"]=b},(e,t,r)=>{"use strict";t.__esModule=!0,t.xyCalculator=t.trim=t.solveEquation=t.polarToCartesian=t.pluckBoolean=t.parseEquation=t.isMacro=t.getScaledVal=t.getQuadrant=t.getEventData=t.deg2Rad=t.computeSliceBounds=t.computePlotBounds=t.compute3DSliceBounds=t.cleanMacro=t.axisMacroParser=t.arrangeItems=t.UNDERSCORE=t.DEFAULT_MACRO_SEPARATOR=t.DEFAULT_MACRO_PREFIX=void 0;var n=r(281);t.UNDEF=n.UNDEF;t.UNDERSCORE="_";var a=t.DEFAULT_MACRO_PREFIX="$",i=t.DEFAULT_MACRO_SEPARATOR=".",o=2*Math.PI,s=1e-5,l=[-o,-3*o/4,-o/2,-o/4,0],c=[o,3*o/4,o/2,o/4,0],u=function(e){return e*e},d=t.deg2Rad=function(e){return e*(Math.PI/180)},h=t.polarToCartesian=function(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n={});var a=t;return r||(a=d(t)),{x:e*Math.cos(a)+(n.x||0),y:e*Math.sin(a)+(n.y||0)}},f=(t.getQuadrant=function(e,t,r){return e.x>=t?e.y<=r?0:3:e.y<=r?1:2},function(e,t,r){return 0===e||0===t?0:e*t/Math.sqrt(u(t)*u(Math.cos(r))+u(e)*u(Math.sin(r)))}),p=function(e){var t,r,a,i,s,c,u,d,f,p=e.ringpath,g=[],m=[],v=Infinity,b=Infinity,y=-Infinity,w=-Infinity;for(t=(0,n.pluckNumber)(p[2]),r=(0,n.pluckNumber)(p[3]),a=(0,n.pluckNumber)(p[4])%o,i=(0,n.pluckNumber)(p[5])%o,s=(0,n.pluckNumber)(p[0]),c=(0,n.pluckNumber)(p[1]),d=h(t,a,!0,{x:s,y:c}),f=h(t,i,!0,{x:s,y:c}),m.push(d),m.push(f),u=0;u<l.length;u++)l[u]>=a&&l[u]<=i&&g.push(u);for(u=0;u<g.length;u++)d=h(t,l[g[u]],!0,{x:s,y:c}),f=h(r,l[g[u]],!0,{x:s,y:c}),m.push(d),m.push(f);for(d=h(r,a,!0,{x:s,y:c}),f=h(r,i,!0,{x:s,y:c}),m.push(d),m.push(f),u=0;u<m.length;u++)y=Math.max(y,m[u].x),v=Math.min(v,m[u].x),w=Math.max(w,m[u].y),b=Math.min(b,m[u].y);return{x:v,y:b,width:Math.abs(y-v),height:Math.abs(b-w)}},g=function(e,t,r){var n,a,i;return i=Math.tan(r),n=e*t/Math.sqrt(t*t+e*e*i*i),a=e*t/Math.sqrt(e*e+t*t/(i*i)),r>o/4&&r<3*o/4?n*=-1:n=Math.abs(n),r>o/2&&r<o?a*=-1:a=Math.abs(a),Math.abs(n)<=s&&(n=0),Math.abs(a)<=s&&(a=0),{x:n,y:a}},m=(t.compute3DSliceBounds=function(e,t){var r,a=t.props.element.attr,i=a.r,s=i*a.radiusYFactor,l=a.cx,u=a.cy,d=a.sAngle,p=a.eAngle;switch(e){case"slicex":case"slicemiddlex":case"slicecenterx":r=g(i,s,(d+p)/2).x+l;break;case"slicey":case"slicemiddley":case"slicecentery":r=g(i,s,(d+p)/2).y+u;break;case"slicestartx":r=g(i,s,d).x+l;break;case"slicestarty":r=g(i,s,d).y+u;break;case"sliceendx":r=g(i,s,p).x+l;break;case"sliceendy":r=g(i,s,p).y+u;break;default:r=v(e,function(e){var t,r,a,i,s,l,u,d,p,g=[],m=[],v=Infinity,b=Infinity,y=-Infinity,w=-Infinity;for(t=(0,n.pluckNumber)(e.r),r=(0,n.pluckNumber)(t*e.radiusYFactor),a=(0,n.pluckNumber)(e.sAngle)%o,i=(0,n.pluckNumber)(e.eAngle)%o,s=(0,n.pluckNumber)(e.cx),l=(0,n.pluckNumber)(e.cy),d=h(f(t,r,a),a,!0,{x:s,y:l}),p=h(f(t,r,i),i,!0,{x:s,y:l}),m.push(d),m.push(p),u=0;u<c.length;u++)c[u]>=a&&c[u]<=i&&g.push(u);for(u=0;u<g.length;u++)d=h(f(t,r,c[g[u]]),c[g[u]],!0,{x:s,y:l}),m.push(d);for(t=(0,n.pluckNumber)(e.innerR,0),r=(0,n.pluckNumber)(t*e.radiusYFactor,0),d=h(f(t,r,a),a,!0,{x:s,y:l}),p=h(f(t,r,i),i,!0,{x:s,y:l}),m.push(d),m.push(p),u=0;u<g.length;u++)d=h(f(t,r,c[g[u]]),c[g[u]],!0,{x:s,y:l}),m.push(d);for(u=0;u<m.length;u++)y=Math.max(y,m[u].x),v=Math.min(v,m[u].x),w=Math.max(w,m[u].y),b=Math.min(b,m[u].y);return{x:v,y:b,width:Math.abs(y-v),height:Math.abs(b-w)}}(a))}return r},t.computeSliceBounds=function(e,t){var r,n,a,i,o,s,l=t.props.element.attr,c=l.ringpath;switch(r=c[0],n=c[1],a=c[2],o=c[4],s=c[5],e){case"slicex":case"slicemiddlex":case"slicecenterx":i=h(a,(o+s)/2).x+r;break;case"slicey":case"slicemiddley":case"slicecentery":i=h(a,(o+s)/2).y+n;break;case"slicestartx":i=h(a,s).x+r;break;case"slicestarty":i=h(a,s).y+n;break;case"sliceendx":i=h(a,o).x+r;break;case"sliceendy":i=h(a,o).y+n;break;default:i=v(e,p(l))}return i},t.computePlotBounds=function(e,t){var r,a,i,o,s,l=e.config||e;switch(t){case"column3D":case"bar2D":case"bar3D":case"paretoColumn":case"waterFall2D":case"errorBar2D":case"candlestick":case"heatMap":case"dragColumn":case"sparkColumn":case"marimekko":case"task":case"column":r={x:(a=l.props.element.attr).x+(0,n.pluckNumber)(a.xDepth,0),y:a.y-(0,n.pluckNumber)(a.yDepth,0),width:a.width,height:a.height};break;case"line":case"zoomLine":case"zoomScatter":case"scatter":case"spline":case"splinearea":case"multiaxisline":case"stepLine":case"errorScatter":case"errorLine":case"radar":case"selectScatter":case"dragLine":case"dragArea":case"kagi":case"sparkLine":case"area":i=e._xPos,o=e._yPos,r={x:i-(s=Number(l.anchorProps.radius)||0),y:o-s,width:2*s,height:2*s};break;case"bubble":r={x:(a=l.props.element.attr).cx-a.r,y:a.cy-a.r,width:2*a.r,height:2*a.r};break;case"dragNode":a=l.props.element.attr,"rect"===l.shapeType?r={x:a.x,y:a.y,width:a.width,height:a.height}:(i=l._xPos,o=l._yPos,r={x:i-(s=+l.radius||0),y:o-s,width:2*s,height:2*s});break;case"boxandwhisker2D":r={x:(a=l.props.upperBoxElem.attr).x,y:a.y,width:a.width,height:a.height};break;case"category":case"polarCategory":case"log":case"numeric":r={x:(a=l.props.label.attr).x-l.width/2,y:a.y-l.height/2,width:l.width,height:l.height},"end"===a["text-anchor"]||"left"===a["text-anchor"]?r.x=a.x-l.width:"start"!==a["text-anchor"]&&"right"!==a["text-anchor"]||(r.x=a.x),"top"===a["vertical-align"]?r.y=a.y:"bottom"===a["vertical-align"]&&(r.y=a.y-l.height);break;case"multiLevelPie":a=l.props.element.attr,r=p(a)}return r}),v=(t.cleanMacro=function(e){var t,r,a=n.BLANKSTRING;for(t=0,r=e.length;t<r;t++)" "!==e[t]&&(a+=e[t]);return a},t.arrangeItems=function(e){void 0===e&&(e=[]);var t,r,n=[],a=[];for(r=e.length,t=0;t<r;t++)"text"===e[t].type?a.push(e[t]):n.push(e[t]);return n.concat(a)},t.xyCalculator=function(e,t){var r=0;switch(e){case"startx":r=t.x;break;case"starty":r=t.y;break;case"x":case"middlex":case"centerx":r=t.x+t.width/2;break;case"y":case"middley":case"centery":r=t.y+t.height/2;break;case"endx":r=t.x+t.width;break;case"endy":r=t.y+t.height;break;default:r=0}return r}),b=(t.axisMacroParser=function(e,t){return function(r){var n,a,o,s,l=r.split(i).slice(1),c=isNaN(Number(l[0]))?0:Number(l[0]),u=isNaN(Number(l[0]))?l[1]:l[2],d=isNaN(Number(l[0]))?l[2]:l[3];return s=(n=e.getChildren(t)[c]).components,u=Number(u),s.labelIndexArr&&(u=s.labelIndexArr[u]),a=s.labels[u].config,o=m(a,n.getName()),v(d,o)}},t.getEventData=function(e,t,r){var n=r.getFromEnv("getMouseCoordinate")(r.getFromEnv("chart-container"),e,r),a=t.getLinkedParent();return{element:t.getElement(),rawConfig:t.getAttribute(),pageX:n.pageX,pageY:n.pageY,chartX:n.chartX,chartY:n.chartY,annotationId:t.getId(),groupId:a&&a.getId(),annotationOptions:t.rawConfig,groupOptions:a&&a.rawConfig}},t.pluckBoolean=function(){for(var e,t,r,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];for(t=0,r=a.length;t<r;t++)if(!0===(e=a[t])||!1===e)return e;return!1},t.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},t.isMacro=function(e){return~e.indexOf(a)},t.solveEquation=function(e){for(var t,r,n=+e[0],a=1,i=e.length;a<i;++a)if(r=e[a],a%2)t=r;else switch(t){case"+":n+=+r;break;case"-":n-=+r}return n},t.getScaledVal=function(e,t){var r;switch(t.axis){case"x":case"toX":r=t.scaleX;break;case"y":case"toY":r=t.scaleY;break;default:r=t.scaleValue||1}return e*r});t.parseEquation=function(e,t,r,o){void 0===r&&(r=!1),void 0===o&&(o=a);var s,l,c,u,d=e.split(/([+])/),h=[],f=d.length;for(l=0;l<f;l++)if("+"!==d[l]){for(c=0,u=(s=d[l].split(/([-])/)).length;c<u;c++)"-"!==s[c]&&(h.push(s[c]),c<u-1&&h.push("-"));l<f-1&&h.push("+")}return h.map(function(e){var a,s,l,c=n.BLANKSTRING,u=n.BLANKSTRING,d=n.BLANKSTRING;if(e.charAt(0)===o){if(d=(u=e.replace(new RegExp("[\\$ ]","g"),"")).split(i)[0],!isNaN(+u))return+u;for(c in t)if(d===c){if(s=new RegExp(c,"g"),"function"==typeof t[c])try{a=d.replace(s,t[c](u))}catch(f){a=d.replace(s,0)}else a=d.replace(s,t[c]||0);break}}else{l=Number(e);var h=e;isNaN(l)?"+"!==e&&"-"!==e&&(h=0):h=r?b(l,r).toString():l.toString(),a=h}return a})}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]};t["default"]={"initial.extension.annotation":function(){return{"polypath.appearing":r,"text.appearing":r,"image.appearing":r,"ellipse.appearing":r,"ringpath.appearing":r,"path.appearing":r,"rect.appearing":r,"*":null}}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t=Math,r=t.cos,n=t.sin,a=t.abs,i=t.pow,o=t.PI,s=2*o,l="M",c="A",u=i(2,-24),d=.01;e.define&&e.define([{name:"ringpath",ringpath:function(){return this.path(undefined,e._lastArgIfGroup(arguments))},ca:function(e,t,i,h,f,p,g,m){var v,b,y,w,x,_,S,k,C,A,N,E,L,T,M=p%s-f%s,F=p-f,D=.0001745329,I=g,O=m;return isNaN(I)&&(I=i),isNaN(O)&&(O=h),this._.ringangle=.5*(f+p),a(F)<u?(v=r(f),b=n(f),_=[l,e+i*v,t+I*b,"L",e+h*v,t+O*b,"Z"]):a(F)>u&&+(a(F)%s<u||s-a(F)%s<u)?(_=[l,e-i,t,c,i,I,0,0,0,e+i,t,c,i,I,0,0,0,e-i,t],0===h&&0===O||(_=_.concat([l,e-h,t,c,h,O,0,0,1,e+h,t,c,h,O,0,0,1,e-h,t])),_.push("Z")):(v=r(f),b=n(f),y=r(p),w=n(p),(M%=s)<0&&(M+=s),x=M<o?0:1,N=t+I*b,E=t+I*w,C=e+h*y,L=t+O*w,a((S=e+i*v)-(k=e+i*y))<d&&a(N-E)<d&&(S=e+i*r(f+D),N=t+I*n(f+D)),_=[l,S,N,c,i,I,0,x,1,k,E,"L",C,L],0===h&&0===O||(T=t+O*b,a(C-(A=e+h*v))<d&&a(L-T)<d&&(A=e+h*r(f+D),T=t+O*n(f+D)),_.push(c,h,O,0,x,0,A,T)),_.push("Z")),{path:_}}}])}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=function(e){e.define&&e.define([{name:"arcpath",arcpath:function(){return this.path(undefined,e._lastArgIfGroup(arguments))},ca:function(e,t,r,n){var a=n,i=a-90,o=Math.PI*(i/180);return{path:["M",e,t-r,"A",r,r,0,a>180?1:0,1,e+r*Math.cos(o),t+r*Math.sin(o)]}}}])}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=r(395),s=n(r(400)),l=n(r(401)),c=n(r(409)),u=n(r(410)),d=n(r(411)),h=n(r(412)),f=n(r(413)),p=n(r(299)),g="group",m={circle:l["default"],arc:l["default"],line:c["default"],path:c["default"],rectangle:u["default"],polygon:f["default"],image:d["default"],text:h["default"]},v=function(e){function t(t){var r;return(r=e.call(this,t)||this).groups=[],r.items=[],r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"group"},r.configureAttributes=function(e){var t,r=this,n=r.config;r.rawConfig=e||{},n.id=r.rawConfig.id||r.getId("group"),n.autoScale=(0,i.pluckNumber)(r.rawConfig.autoScale,1),n.scaleText=(0,i.pluckNumber)(r.rawConfig.scaleText,0),n.scaleX=n.origScaleX=(0,i.pluckNumber)(r.rawConfig.xScale)/100,n.scaleY=n.origScaleY=(0,i.pluckNumber)(r.rawConfig.yScale)/100,n.scaleImages=(0,i.pluckNumber)(r.rawConfig.scaleImages,0),n.constrainedScale=(0,i.pluckNumber)(r.rawConfig.constrainedScale,1),n.origH=Number(r.rawConfig.origH),n.origW=Number(r.rawConfig.origW),n.link=r.rawConfig.link,n.color=r.rawConfig.color||"#FF0000",n.alpha=(0,i.pluckNumber)(parseFloat(r.rawConfig.alpha),100),n.showShadow=(0,i.pluckNumber)(r.rawConfig.showShadow,0),n.x=(0,i.pluckNumber)(r.rawConfig.x,r.rawConfig.xPos,0),n.y=(0,i.pluckNumber)(r.rawConfig.y,r.rawConfig.yPos,0),n.font=(0,i.pluck)(r.rawConfig.font,"Verdana, sans"),n.fontSize=(0,i.pluckFontSize)(r.rawConfig.fontSize,10),n.textAlign=(0,i.pluck)(r.rawConfig.textAlign),n.textVAlign=(0,i.pluck)(r.rawConfig.textVAlign),n.rotateText=(0,i.pluck)(r.rawConfig.rotateText),n.wrapText=(0,i.pluck)(r.rawConfig.wrapText),n.grpXShift=(0,i.pluckNumber)(r.rawConfig.grpXShift,0),n.grpYShift=(0,i.pluckNumber)(r.rawConfig.grpYShift,0),n.xShift=(0,i.pluckNumber)(r.rawConfig.xShift,0),n.yShift=(0,i.pluckNumber)(r.rawConfig.yShift,0),n.toolText=r.rawConfig.toolText,n.isVisible=(0,o.pluckBoolean)(r.rawConfig.isVisible,true),n.elementType=g,n.containerConfiguration={id:r.rawConfig.showBelow?"lowerAnnotationGroup":"upperAnnotationGroup",label:g,isParent:!0},n.animationLabel=g,r.rawConfig.customComponent instanceof p["default"]?n.customComponent=n.rawConfig.customComponent:delete n.customComponent,r.rawConfig.itemConfigs.forEach(function(e){t=e.type&&e.type.toLowerCase(),m[t]&&r.attachChild(m[t],"item",e.id).configure(e)}),r.items=r.getChildren("item")||[]},r.updateScale=function(){var e,t,r,n,a,i=this,o=i.config,s=i.getFromEnv("chart"),l=+s.getFromEnv("chartHeight"),c=+s.getFromEnv("chartWidth"),u=o.autoScale,d=o.constrainedScale;i._setConfig("origW",Number(o.origW)||c),i._setConfig("origH",Number(o.origH)||l),u?(t=c/o.origW*(Number(o.origScaleX)||1),r=l/o.origH*(Number(o.origScaleY)||1)):t=r=1,e=Math.min(t,r),i._setConfig("scaleValue",e),(u>0||isNaN(o.scaleX))&&(n=d?e:t,i._setConfig("scaleX",n)),(u>0||isNaN(o.scaleY))&&(a=d?e:r,i._setConfig("scaleY",a)),o.scaleFont=o.scaleText?Math.min(o.scaleX,o.scaleY):1,o.scaleImageX=o.scaleImages?o.scaleX:1,o.scaleImageY=o.scaleImages?o.scaleY:1,o.scaleInfo={scaleX:o.scaleX,scaleY:o.scaleY,scaleValue:o.scaleValue}},r.updateAttr=function(){var e,t,r,n=this,a=n.config,i=a.calculatedAttrs;for(e in i)i[e]&&(a[e]=i[e]);t=n.getScaledVal(a.grpXShift)+a.xShift,r=n.getScaledVal(a.grpYShift)+a.yShift,n._setConfig("attr",{transform:"T"+t+","+r})},r.retrieveItem=function(e){var t,r,n=this;for(t=0,r=n.items.length;t<r;t++)if(n.items[t].getId()===e)return n.items[t]},r.getScaledVal=function(e,t){var r=this;return r?e*(t?r._getConfig("scaleX"):(!1===t?r._getConfig("scaleY"):r._getConfig("scaleValue"))||1):e},r.getScaledFont=function(e){return this?e*this._getConfig("scaleFont"):e},r.getScaledImageVal=function(e,t){var r=this;return r?e*((t?r._getConfig("scaleImageX"):r._getConfig("scaleImageY"))||1):e},r.getScaleInfo=function(){return this.config.scaleInfo},r.draw=function(){var e,t,r=this,n=r._getConfig("attr")||{};r.updateScale(),r.parseAndSetAttribute(),e=r.getScaledVal(r._getConfig("grpXShift"))+r._getConfig("xShift"),t=r.getScaledVal(r._getConfig("grpYShift"))+r._getConfig("yShift"),n.name=r._getConfig("id"),n.transform=n.transform||"T"+e+","+t,n.visibility=r.config.isVisible?i.visibleStr:i.hiddenStr,r.addGraphicalElement({el:"group",attr:n,container:r.config.containerConfiguration,component:r.config.customComponent||r,label:r.config.animationLabel,id:r.config.id})},t}(s["default"]);t["default"]=v},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s=r(395),l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"shape"},r._setConfig=function(e,t){this.config[e]=t},r._getConfig=function(e){return void 0===e&&(e=""),""===e?this.config:this.config[e]},r.getElement=function(){var e=this.config;return this.getGraphicalElement(e.id,e.animationLabel)},r.getBounds=function(){return this.getElement().getBBox()},r.data=function(e,t){var r=this;if(e&&"string"==typeof e){if(t===o.UNDEF)return r._data&&r._data[e];!r._data&&(r._data={}),r._data[e]=t}},r.parseAndSetAttribute=function(){var e,t,r=this,n=r.rawConfig,a=r.getFromEnv("snapPoints"),i={x:(0,o.pluck)(n.x,n.xPos,0),y:(0,o.pluck)(n.y,n.yPos,0),toX:(0,o.pluck)(n.toX),toY:(0,o.pluck)(n.toY)},l=r.config.calculatedAttrs={},c=r.getScaleInfo();for(var u in i)i.hasOwnProperty(u)&&void 0!==(t=i[u])&&(t=t.toString(),c.axis=u,(0,s.isMacro)(t)?l[u]=(0,s.solveEquation)((0,s.parseEquation)((0,s.cleanMacro)(t.toLowerCase()),a,c)):(l[u]=(0,s.solveEquation)((0,s.parseEquation)((0,s.cleanMacro)(t.toLowerCase()),a)),(0,o.pluckNumber)(n.autoscale,n.autoScale,1)&&(l[u]=(0,s.getScaledVal)(l[u],c))));"group"!==r.config.elementType&&(e=r.getLinkedParent().config.calculatedAttrs,l.x=l.x+(e.x||0),l.y=l.y+(e.y||0),isNaN(Number(l.toX))?l.toX=l.x:l.toX+=e.x||0,isNaN(Number(l.toY))||(l.toY+=e.y||0)),r.updateAttr()},r.getAttribute=function(e){return void 0===e&&(e=""),""===e?this.rawConfig:this.rawConfig[e]},r.show=function(){var e=Object.assign({},this.rawConfig);e.isVisible=!0,this.setData(e)},r.hide=function(){var e=Object.assign({},this.rawConfig);e.isVisible=!1,this.setData(e)},t}(i.SmartRenderer);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=n(r(402)),s=360,l="ringpath";function c(e){return e*(Math.PI/180)}var u=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"circle"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r,n=this,a=n.rawConfig,o=n.getFromEnv("chart"),s=+o.getFromEnv("chartHeight")||700,c=+o.getFromEnv("chartWidth")||350;n.config.radius=a.radius,n.config.xRadius=(0,i.pluckNumber)(parseFloat(a.radius),parseFloat(a.xRadius),Math.sqrt(Math.max(s,c))),n.config.yRadius=(0,i.pluckNumber)(parseFloat(a.yRadius),n.config.xRadius),n.config.startAngle=(0,i.pluckNumber)(parseFloat(a.startAngle),0),n.config.endAngle=(0,i.pluckNumber)(parseFloat(a.endAngle),360),n.config.innerRadius=(0,i.pluckNumber)(parseFloat(a.innerRadius),0),n.config.innerYRadius=(0,i.pluckNumber)(parseFloat(a.innerYRadius),n.config.innerRadius,0),"arc"===n.config.type||0!==(r=n.config).startAngle||360!==r.endAngle||function(e){return e.innerRadius>0||e.innerYRadius>0}(n.config)?n.config.elementType=l:n.config.elementType="ellipse"},r.updateAttr=function(){var e,t=this,r=this.config,n=r.calculatedAttrs,a=t.getFromEnv("chart"),o=+a.getFromEnv("chartHeight"),l=+a.getFromEnv("chartWidth"),u=t.getScaledVal(r.xRadius),d=t.getScaledVal(r.yRadius),h=t.getScaledVal(r.innerRadius),f=t.getScaledVal(r.innerYRadius);if((0,i.pluck)(r.radius)||(r.radius=l<o?t.getScaledVal(l):t.getScaledVal(o),r.radius*=.3,h>r.radius&&(h+=r.radius,r.radius=h-r.radius,h-=r.radius),u=d=r.radius,f=h),"ringpath"===r.elementType)e={ringpath:[(0,i.pluckNumber)(n.x,t.getScaledVal(r.x,!0)),(0,i.pluckNumber)(n.y,t.getScaledVal(r.y,!1)),u,h,c(s-r.endAngle),c(s-r.startAngle),d,f]};else e={cx:(0,i.pluckNumber)(n.x,t.getScaledVal(r.x,!0)),cy:(0,i.pluckNumber)(n.y,t.getScaledVal(r.y,!1))};t._setConfig("attr",e)},r._getAnnotationAttrs=function(){var e,t=this,r=t.config,n=t.config.attr||{},a=r.x,i=r.y,o=t.getScaledVal(r.xRadius),u=t.getScaledVal(r.yRadius);if(r.xRadius||(o=0),r.yRadius||(u=0),n.fill=r.color,n.stroke=r.borderColor,n["stroke-width"]=r.borderThickness,n["stroke-dasharray"]=r.dashArrayStr,t.config.elementType===l)e=[t.getScaledVal(a,!0),t.getScaledVal(i,!1),o,t.getScaledVal(r.innerRadius),c(s-r.endAngle),c(s-r.startAngle),u,t.getScaledVal(r.innerYRadius)],n.ringpath=n.ringpath||e;else n.rx=o,n.ry=u,n.cx="undefined"==typeof n.cx?t.getScaledVal(a,!0):n.cx,n.cy="undefined"==typeof n.cy?t.getScaledVal(i,!1):n.cy;return n},t}(o["default"]);t["default"]=u},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=n(r(403)),s=n(r(400)),l=r(281),c=r(395),u=n(r(299)),d="#FF0000",h=function(e){return e===a?a:1},f=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){var t,r,n=this,i=n.config,s=n.getFromEnv("chart"),d=n.getLinkedParent();n.groupConfig={},n.rawConfig={},null!==d&&(n.groupConfig.x=d._getConfig("x"),n.groupConfig.y=d._getConfig("y"),n.groupConfig.grpXShift=d._getConfig("grpXShift"),n.groupConfig.grpYShift=d._getConfig("grpYShift"),n.groupConfig.color=d._getConfig("color"),n.groupConfig.alpha=d._getConfig("alpha"),n.groupConfig.font=d._getConfig("font"),n.groupConfig.fontSize=d._getConfig("fontSize"),n.groupConfig.textAlign=d._getConfig("textAlign"),n.groupConfig.textVAlign=d._getConfig("textVAlign"),n.groupConfig.rotateText=d._getConfig("rotateText"),n.groupConfig.wrapText=d._getConfig("wrapText"),n.groupConfig.toolText=d._getConfig("toolText"),n.groupConfig.scaleX=d._getConfig("scaleX"),n.groupConfig.scaleY=d._getConfig("scaleY"),n.groupConfig.scaleImageX=d._getConfig("scaleImageX"),n.groupConfig.scaleImageY=d._getConfig("scaleImageY"),n.groupConfig.link=d._getConfig("link")),n.rawConfig=(0,o["default"])(n.rawConfig,e)||{},i.type=n.rawConfig.type,i.color=n._getFillColor(n.rawConfig,this.groupConfig),i.link=(0,l.pluck)(n.rawConfig.link,n.groupConfig.link),i.borderThickness=(0,l.pluckNumber)(parseFloat(n.rawConfig.borderThickness),parseFloat(n.rawConfig.thickness),2),i.showBorder=(0,l.pluckNumber)(n.rawConfig.showBorder,parseFloat(n.rawConfig.borderThickness),parseFloat(n.rawConfig.thickness),h(n.rawConfig.borderColor),h(n.rawConfig.borderAlpha),0),i.borderColor=n._getBorderColor(n.rawConfig),i.dashed=(0,l.pluckNumber)(n.rawConfig.dashed,0),i.dashLen=(0,l.pluckNumber)(n.rawConfig.dashLen,5),i.dashGap=(0,l.pluckNumber)(parseFloat(n.rawConfig.dashGap),3),i.dashArrayStr=i.dashed?(0,l.getDashStyle)(i.dashLen,i.dashGap):"none",i.x=(0,l.pluckNumber)(n.rawConfig.x,n.rawConfig.xPos,0),i.y=(0,l.pluckNumber)(n.rawConfig.y,n.rawConfig.yPos,0),i.tox=(0,l.pluckNumber)(n.rawConfig.toX,i.x,0),i.toy=(0,l.pluckNumber)(n.rawConfig.toY,i.y,0),i.toy>=0&&i.y>=0&&i.toy<i.y&&(t=[i.toy,i.y],i.y=t[0],i.toy=t[1]),i.tox>=0&&i.x>=0&&i.tox<i.x&&(r=[i.tox,i.x],i.x=r[0],i.tox=r[1]),i.showShadow=(0,l.pluckNumber)(n.rawConfig.showShadow,d.config.showShadow,0),i.toolText=(0,l.getFirstValue)(n.rawConfig.toolText,this.groupConfig.toolText,""),i.isVisible=(0,c.pluckBoolean)(n.rawConfig.isVisible,true),i.id=(0,l.pluck)(n.rawConfig.id,n.getId(n.config.elementType)),i.containerConfiguration={id:n.getLinkedParent().config.id,label:"group",isParent:!0},n._clickHandler=n._clickHandler||function(e){n.config.link&&n.getFromEnv("linkClickFN").call({link:n.config.link},!0),n.rawConfig.onAnnotationClick instanceof Function?n.rawConfig.onAnnotationClick():d.rawConfig.onAnnotationClick instanceof Function?d.rawConfig.onAnnotationClick():s.fireChartInstanceEvent("annotationclick",(0,c.getEventData)(e,n,s),a,a,e)},n._rollOverHandler=n._rollOverHandler||function(e){n.rawConfig.onAnnotationRollover instanceof Function?n.rawConfig.onAnnotationRollover():d.rawConfig.onAnnotationRollover instanceof Function?d.rawConfig.onAnnotationRollover():s.fireChartInstanceEvent("annotationrollover",(0,c.getEventData)(e,n,s),a,a,e)},n._rollOutHandler=n._rollOutHandler||function(e){n.rawConfig.onAnnotationRollout instanceof Function?n.rawConfig.onAnnotationRollout():d.rawConfig.onAnnotationRollout instanceof Function?d.rawConfig.onAnnotationRollout():s.fireChartInstanceEvent("annotationrollout",(0,c.getEventData)(e,n,s),a,a,e)},n.rawConfig.customComponent instanceof u["default"]?i.customComponent=i.rawConfig.customComponent:delete i.customComponent},r._getBorderColor=function(e){var t=this,r="none",n={color:l.BLANKSTRING,alpha:l.BLANKSTRING};return"line"!==t.getType()&&(n.color=t.config.rawBorderColor=(0,l.pluck)(e.borderColor,e.fillColor&&e.fillColor.split(",")[0],e.color&&e.color.split(",")[0],"#000000"),0===t.config.showBorder?(n.alpha=1,t.config.borderThickness=2):n.alpha=t.config.rawBorderAlpha=(0,l.pluckNumber)(parseFloat(e.borderAlpha),parseFloat(e.alpha),100),r=(0,l.toRaphaelColor)(n)),r},r._getFillColor=function(e,t){var r=this,n=r.config.type,a={color:l.BLANKSTRING,alpha:l.BLANKSTRING,angle:l.BLANKSTRING,ratio:l.BLANKSTRING,radialGradient:"circle"===n||"arc"===n};return"line"===n||"image"===n?(a.color=e.color||t.color||d,a.alpha=(0,l.pluckNumber)(parseFloat(e.alpha),t.alpha,100)):(a.color=e.fillColor||e.color||t.color||d,a.alpha=(0,l.pluck)(e.fillAlpha,parseFloat(e.alpha),t.alpha,100),a.angle=360-(0,l.pluckNumber)(e.fillAngle,0),a.ratio=(0,l.pluck)(e.fillRatio),e.fillPattern&&(a.radialGradient="radial"===e.fillPattern.toLowerCase()||(0,l.pluckNumber)(e.fillPattern)),a.radialGradient&&(a.gradientUnits="objectBoundingBox",a.cx=.5,a.cy=.5,a.fx=.5,a.fy=.5)),r.config.rawColor=a.color,r.config.rawAlpha=a.alpha,r.config.rawAngle=a.angle,r.config.rawFillPattern=a.radialGradient?"radial":"linear",r.config.rawRatio=a.ratio,(0,l.toRaphaelColor)(a)},t.destroySelectionBox=function(){},r._applyAttr=function(e){var t,r=this,n=r.config.elementType,a=Object.assign({},e);("image"!==n||r.config.url)&&((t=r.rawConfig.css||{}).cursor=r.config.link?l.POINTER:"default",r.config.isVisible?a.visibility=l.visibleStr:a.visibility=l.hiddenStr,r.addEventListener("fc-click",r._clickHandler),r.addEventListener("fc-mouseover",r._rollOverHandler),r.addEventListener("fc-mouseout",r._rollOutHandler),r.config.animationLabel=r.rawConfig.animationLabel||r.getLinkedParent().config.animationLabel||n,r.addGraphicalElement({el:n,attr:a,css:t,container:r.config.containerConfiguration,component:r.config.customComponent||r,label:r.config.animationLabel,id:r.config.id,tooltext:r.config.toolText,shadow:{opacity:0!==r.config.showShadow?1:0,useFilter:"path"===n?0:1},outlineText:a.outlineText}))},r.getScaledVal=function(e,t){var r=this.getLinkedParent();return r?r.getScaledVal(e,t):e},r.getScaledFont=function(e){var t=this.getLinkedParent();return t?t.getScaledFont(e):e},r.getScaledImageVal=function(e,t){var r=this.getLinkedParent();return r?r.getScaledImageVal(e,t):e},r.getScaleInfo=function(){return this.getLinkedParent().config.scaleInfo},r.draw=function(){var e=this;e.parseAndSetAttribute(),e._applyAttr(e._getAnnotationAttrs()||{})},t}(s["default"]);t["default"]=f},(e,t,r)=>{var n=r(340),a=r(404),i=n(function(e,t){return a(function(e,t,r){return r},e,t)});e.exports=i},(e,t,r)=>{var n=r(405),a=r(406),i=r(407),o=n(function s(e,t,r){return i(function(t,r,n){return a(r)&&a(n)?s(e,r,n):e(t,r,n)},t,r)});e.exports=o},(e,t,r)=>{var n=r(341),a=r(340),i=r(342);e.exports=function(e){return function t(r,o,s){switch(arguments.length){case 0:return t;case 1:return i(r)?t:a(function(t,n){return e(r,t,n)});case 2:return i(r)&&i(o)?t:i(r)?a(function(t,r){return e(t,o,r)}):i(o)?a(function(t,n){return e(r,t,n)}):n(function(t){return e(r,o,t)});default:return i(r)&&i(o)&&i(s)?t:i(r)&&i(o)?a(function(t,r){return e(t,r,s)}):i(r)&&i(s)?a(function(t,r){return e(t,o,r)}):i(o)&&i(s)?a(function(t,n){return e(r,t,n)}):i(r)?n(function(t){return e(t,o,s)}):i(o)?n(function(t){return e(r,t,s)}):i(s)?n(function(t){return e(r,o,t)}):e(r,o,s)}}}},e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},(e,t,r)=>{var n=r(405),a=r(408),i=n(function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})a(n,t)&&(i[n]=a(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)a(n,r)&&!a(n,i)&&(i[n]=r[n]);return i});e.exports=i},e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=r(395),s=n(r(402));function l(e){return e<="9"&&e>="0"||"-"===e||"."===e?0:e<="z"&&e>="a"||e<="Z"&&e>="A"?1:2}var c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"path"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this,n=r.rawConfig;r.config.pathStr=(0,i.pluck)(n.path),r.config.x=(0,i.pluckNumber)(n.x,0),r.config.y=(0,i.pluckNumber)(n.y,0),r.config.tox=(0,i.pluckNumber)(n.toX,r.config.x),r.config.toy=(0,i.pluckNumber)(n.toY,r.config.y),r.config.elementType="path"},r.getScaledPath=function(){var e,t,r,n,a,s=this,c=s.config.pathStr,u=[],d=i.BLANKSTRING;for(a=c&&c.length,r=0;r<a;r++){for(n=r,t=i.BLANKSTRING,e=l(c[r]);n<a&&l(c[n])===e;)t+=c[n],n++;""!==(t=(0,o.trim)(t))&&e<2&&u.push(t),r=n===r?n:n-1}for(a=u.length,r=0;r<a;)switch(d+=u[r],u[r].toLowerCase()){case"m":case"l":case"t":d+=s.getScaledVal(Number(u[r+1]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+2]),!1).toString(),r+=3;break;case"s":case"q":d+=s.getScaledVal(Number(u[r+1]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+2]),!1).toString()+",",d+=s.getScaledVal(Number(u[r+3]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+4]),!1).toString(),r+=5;break;case"h":d+=s.getScaledVal(Number(u[r+1]),!0).toString(),r+=2;break;case"v":d+=s.getScaledVal(Number(u[r+1]),!1).toString(),r+=2;break;case"c":d+=s.getScaledVal(Number(u[r+1]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+2]),!1).toString()+",",d+=s.getScaledVal(Number(u[r+3]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+4]),!1).toString()+",",d+=s.getScaledVal(Number(u[r+5]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+6]),!1).toString(),r+=7;break;case"a":d+=s.getScaledVal(Number(u[r+1]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+2]),!1).toString()+",",d+=s.getScaledVal(Number(u[r+3]),!0).toString()+",",d+=u[r+4]+",",d+=u[r+5]+",",d+=s.getScaledVal(Number(u[r+6]),!0).toString()+",",d+=s.getScaledVal(Number(u[r+7]),!1).toString(),r+=8;break;default:r++}return d.toString()},r.updateAttr=function(){var e,t,r=this,n=r.config,a=n.calculatedAttrs,o={};e=(0,i.pluckNumber)(a.x,r.getScaledVal(n.x,!0)),t=(0,i.pluckNumber)(a.y,r.getScaledVal(n.y,!1)),n.pathStr?(o.path=r.getScaledPath(),o.transform="T"+e+","+t):o.path="M"+e+","+t+"L"+(0,i.pluckNumber)(a.toX,e,r.getScaledVal(n.tox,!0))+","+(0,i.pluckNumber)(a.toY,t,r.getScaledVal(n.toy,!1)),r._setConfig("attr",o)},r._getAnnotationAttrs=function(){var e,t,r,n,a,i=this,o=i.config,s=i._getConfig("attr")||{},l=o.color;return s.stroke=l,i.rawConfig.color&&(s.fill=l),s["stroke-width"]=i.getScaledVal(o.borderThickness),s["stroke-dasharray"]=o.dashArrayStr,e=s.x||i.getScaledVal(o.x,!0),t=s.y||i.getScaledVal(o.y,!1),r=s.toX||i.getScaledVal(o.tox,!0),n=s.toY||i.getScaledVal(o.toy,!1),s.path||((a=i.getScaledPath())?(s.path=a,s.transform=s.transform||"T"+e+","+t):s.path=s.path||"M"+e+","+t+"L"+r+","+n),s},t}(s["default"]);t["default"]=c},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=n(r(402)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"rect"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this;r.config.xRadius=(0,i.pluckNumber)(parseFloat(r.rawConfig.radius),0),r.config.elementType="rect"},r.updateAttr=function(){var e,t,r,n,a,o,s=this,l=this.config,c=l.calculatedAttrs;r=(0,i.pluckNumber)(c.x,s.getScaledVal(l.x,!0)),n=(0,i.pluckNumber)(c.y,s.getScaledVal(l.y,!1)),a=(0,i.pluckNumber)(c.toX,s.getScaledVal(l.tox,!0)),(o=(0,i.pluckNumber)(c.toY,s.getScaledVal(l.toy,!1)))>=0&&n>=0&&o<n&&(n=(e=[o,n])[0],o=e[1]),a>=0&&r>=0&&a<r&&(r=(t=[a,r])[0],a=t[1]),s._setConfig("attr",{x:r,y:n,width:Math.abs(a-r),height:Math.abs(o-n)})},r._getAnnotationAttrs=function(){var e=this,t=e.config,r=e._getConfig("attr")||{},n=e.getScaledVal(t.x),a=e.getScaledVal(t.y);return r.x="undefined"==typeof r.x?n:r.x,r.y="undefined"==typeof r.y?a:r.y,r.width="undefined"==typeof r.width?Math.abs(e.getScaledVal(t.tox)-n):r.width,r.height="undefined"==typeof r.height?Math.abs(e.getScaledVal(t.toy)-a):r.height,r.r=e.getScaledVal(t.xRadius),r.fill=t.color,r.stroke=t.borderColor,r["stroke-width"]=t.borderThickness,r["stroke-dasharray"]=t.dashArrayStr,r},t}(o["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(402)),o=r(281),s="image",l=function(e){var t=this,r=this.config,n=e.originalEvent.target,a=n.height,i=n.width,o=t._getConfig("align"),s=t._getConfig("vAlign"),l=t._getConfig("xScale"),c=a*t._getConfig("yScale"),u=i*l,d=function(e){var t=e.height,r=e.width,n=e.vAlign,a=e.align,i=e.x,o=e.y,s={x:i,y:o};switch(a){case"center":s.x=i-r/2;break;case"right":s.x=i-r}switch(n){case"middle":s.y=o-t/2;break;case"bottom":s.y=o-t}return s}({x:r.derivedX,y:r.derivedY,height:c,width:u,align:o,vAlign:s});t.config.loadedWidth=i,t.config.loadedHeight=a,r=Object.assign(t.rawConfig,{x:d.x,y:d.y,width:u,height:c,autoScale:0}),this.getGraphicalElement(this.config.id,this.config.animationLabel).attr(r),t.rawConfig.onload&&t.rawConfig.onload.call(t,{width:u,height:c}),e.detachHandler()},c=function(e){function t(t){var r;return(r=e.call(this,t)||this)._listener=l,r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return s},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this,n=r.rawConfig,a=r.config;a.url=(0,o.getValidValue)(n.url),a.xScale=a.rawXScale=(0,o.pluckNumber)(n.xScale,100)/100,a.yScale=a.rawYScale=(0,o.pluckNumber)(n.yScale,100)/100,a.width=(0,o.pluckNumber)(a.loadedWidth,n.width),a.height=(0,o.pluckNumber)(a.loadedHeight,n.height),a.align=(0,o.pluck)(n.align,"left"),a.vAlign=(0,o.pluck)(n.vAlign,"top"),a.xScale=a.xScale*(r.groupConfig.scaleX||1),a.yScale=a.yScale*(r.groupConfig.scaleY||1),a.elementType=s,"undefined"==typeof a.width&&"undefined"==typeof a.height&&r.addEventListener("load",r._listener)},r.updateAttr=function(){var e=this,t=e.getLinkedParent(),r=e.config,n=r.calculatedAttrs;e.config.xScale=t.config.scaleX*r.rawXScale,e.config.yScale=t.config.scaleY*r.rawYScale,e._setConfig("attr",{x:(0,o.pluckNumber)(n.x,e.getScaledVal(r.x,!0)),y:(0,o.pluckNumber)(n.y,e.getScaledVal(r.y,!1))})},r._getAnnotationAttrs=function(){var e=this,t=e.config,r=t.attr,n=(0,o.pluckNumber)(t.attr.x,t.x),a=(0,o.pluckNumber)(t.attr.y,t.y);return(0,o.pluckNumber)(e.rawConfig.autoscale,e.rawConfig.autoScale,1)||(r={x:n,y:a}),t.derivedX=r.x="undefined"==typeof r.x?e.getScaledVal(n,!0):r.x,t.derivedY=r.y="undefined"==typeof r.y?e.getScaledVal(a,!1):r.y,r.src=t.url,r.opacity=(0,o.pluckNumber)(t.rawAlpha,100)/100,"undefined"!=typeof t.width&&(r.width=t.width*t.xScale),"undefined"!=typeof t.height&&(r.height=t.height*t.yScale),r},t}(i["default"]);t["default"]=c},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(402)),o=r(281),s="normal",l={left:"start",right:"end",center:"middle"},c={top:"bottom",middle:"middle",bottom:"top"},u={0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},d="text";var h=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return d},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r,n=this,a=n.rawConfig,i=n.groupConfig;n.config.text=(0,o.parseUnsafeString)((0,o.pluck)(a.text,a.label,"")),n.config.font=(0,o.pluck)(a.font,i.font,"Verdana, sans"),n.config.fontSize=(0,o.pluckFontSize)(a.fontSize,i.fontSize,10),n.config.align=(0,o.pluck)(l[a.align&&a.align.toLowerCase()],l[i.textAlign&&i.textAlign.toLowerCase()],"middle"),n.config.vAlign=(0,o.pluck)(c[a.vAlign&&a.vAlign.toLowerCase()],c[i.textVAlign&&i.textVAlign.toLowerCase()],"middle"),n.config.radius=(0,o.pluckNumber)(parseFloat(a.radius),0),n.config.fontWeight=(0,o.pluckNumber)(a.bold,0)?"bold":s,n.config.outlineText=(0,o.pluckNumber)(t.outlineText,0),n.config.fontStyle=(0,o.pluckNumber)(a.italic,0)?"italic":s,n.config.bgColor=(r=a.bgColor,(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(r)?r:/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(r))?a.bgColor:"none"),n.config.borderThickness=(0,o.pluckNumber)(parseFloat(n.rawConfig.borderThickness),parseFloat(n.rawConfig.thickness),1),n.config.rotateText=(0,o.pluck)(a.rotateText,i.rotateText,"0"),n.config.rotateAngle=u[n.config.rotateText&&n.config.rotateText.toLowerCase()],n.config.wrap=(0,o.pluckNumber)(a.wrap,i.wrapText,a.wrapHeight,a.wrapWidth,1),n.config.wrap&&(n.config.wrapWidth=(0,o.pluckNumber)(a.wrapWidth),n.config.wrapHeight=(0,o.pluckNumber)(a.wrapHeight)),n.config.leftMargin=(0,o.pluckNumber)(a.leftMargin,0),n.config.elementType=d},r.getText=function(){var e=this,t=e.config,r=e.getFromEnv("smartLabel"),n=e.getLinkedParent(),a=n&&n._getConfig("scaleText"),i=a?e.getScaledVal(t.wrapWidth,!0):t.wrapWidth,s=a?e.getScaledVal(t.wrapHeight,!1):t.wrapHeight,l={fontStyle:t.fontStyle,fontFamily:t.font,fontWeight:t.fontWeight,fontSize:t.fontSize+"px","text-anchor":t.align,"vertical-align":t.vAlign};return(0,o.setLineHeight)(l),r&&r.setStyle(l),r&&t.wrap?r.getSmartText(t.text,i,s,0).text:t.text},r._getFillColor=function(e,t){var r=this,n=r.config.type,a={color:"",alpha:"",angle:"",ratio:"",radialGradient:"circle"===n||"arc"===n};return a.color=e.fontColor||e.fillColor||e.color||t.color||"#FF0000",a.alpha=(0,o.pluck)(e.fillAlpha,parseFloat(e.alpha),t.alpha,100),a.angle=360-(0,o.pluckNumber)(e.fillAngle,0),a.ratio=(0,o.pluck)(e.fillRatio),e.fillPattern&&(a.radialGradient="radial"===e.fillPattern||(0,o.pluckNumber)(e.fillPattern)),a.radialGradient&&(a.gradientUnits="objectBoundingBox",a.cx=.5,a.cy=.5,a.fx=.5,a.fy=.5),r.config.rawColor=a.color,r.config.rawAlpha=a.alpha,r.config.rawAngle=a.angle,r.config.rawFillPattern=a.radialGradient?"radial":"linear",r.config.rawRatio=a.ratio,(0,o.toRaphaelColor)(a)},r.updateAttr=function(){var e,t=this,r=t.config,n=r.calculatedAttrs,a=(0,o.pluckNumber)(n.x,t.getScaledVal(r.x,!0)),i=(0,o.pluckNumber)(n.y,t.getScaledVal(r.y,!0));"0"!==r.rotateText&&(e=(0,o.getSuggestiveRotation)(parseFloat(r.rotateAngle),a,i)),t._setConfig("attr",{x:a,y:i,transform:e})},r._getAnnotationAttrs=function(){var e,t,r=this,n=r.config,a=r._getConfig("attr")||{},i=r.getScaledVal(n.x,!0),s=r.getScaledVal(n.y,!1);return a.x=("undefined"==typeof a.x?i:a.x)+n.leftMargin/2,a.y="undefined"==typeof a.y?s:a.y,a.text=r.getText(),a.fill=n.color,a.outlineText=n.outlineText,a.text&&(e=r.rawConfig.borderColor,t=r.rawConfig.borderAlpha,e&&"none"!==e&&0!==t||r.rawConfig.bgColor)?a["text-bound"]=[(0,o.toRaphaelColor)(n.bgColor),n.borderColor,n.borderThickness,2,n.radius,n.dashArrayStr]:a["text-bound"]=[],a["font-style"]=n.fontStyle,a["font-weight"]=n.fontWeight,a["font-family"]=n.font,a["font-size"]=r.getScaledFont(n.fontSize),a["text-anchor"]=n.align,a["vertical-align"]=n.vAlign,"0"!==n.rotateText&&(a.transform=a.transform||(0,o.getSuggestiveRotation)(parseFloat(n.rotateAngle),i,s)),a},t}(i["default"]);t["default"]=h},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(402)),o=r(281),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"polygon"},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this,n=r.rawConfig;r.config.sides=(0,o.pluckNumber)((0,o.clampNumber)(n.sides,3),5),r.config.startAngle=(0,o.pluckNumber)(parseFloat(n.startAngle),0),r.config.xRadius=(0,o.pluckNumber)(parseFloat(n.radius),0),r.config.elementType="polypath"},r.updateAttr=function(){var e=this,t=e.config,r=t.calculatedAttrs;e._setConfig("attr",{polypath:[t.sides,(0,o.pluckNumber)(r.x,e.getScaledVal(t.x,!0)),(0,o.pluckNumber)(r.y,e.getScaledVal(t.y,!1)),e.getScaledVal(t.xRadius),t.startAngle,0]})},r._getAnnotationAttrs=function(){var e=this,t=e.config,r=e._getConfig("attr")||{};return r.fill=t.color,r.stroke=t.borderColor,r["stroke-width"]=t.borderThickness,r["stroke-dasharray"]=t.dashArrayStr,r.polypath=r.polypath||[t.sides,e.getScaledVal(t.x,!0),e.getScaledVal(t.y,!1),e.getScaledVal(t.xRadius),t.startAngle,0],r},t}(i["default"]);t["default"]=s},(e,t,r)=>{var n=r(340)(function(e,t){var r={};for(var n in t)e(t[n],n,t)&&(r[n]=t[n]);return r});e.exports=n},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(416)),i=r(281),o=r(419);function s(e){var t=e.sender;(0,o.isValidDataset)(t)&&t.registerFactory("regression",function(e){var t=e.getFromEnv("chart").getFromEnv("dataSource").chart,r=e.config.JSONData;(0,i.componentFactory)(e,a["default"],"regression",Number((0,o.hasRegressionLine)(t,r)),[e])})}t["default"]={extension:function(e){e.addEventListener("instantiated",s)},name:"Regression",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=n(r(417)),s=n(r(418)),l=r(281),c=r(419),u=r(289),d=n(r(420)),h=function(){this.hide()};(0,u.addDep)({name:"regressionLineAnimation",type:"animationRule",extension:d["default"]});t["default"]=function(e){function t(){var t;return(t=e.call(this)||this)._config={regressionPoints:[]},t.regressionLine=[],t}(0,a["default"])(t,e);var r=t.prototype;return r.getType=function(){return"extension"},r.getName=function(){return"regression"},r.configureAttributes=function(e){var t=this.getFromEnv("dataSource").chart,r=e.config,n=r.JSONData,a=this._config;a.regressionPoints.splice(0,a.regressionPoints.length),a.showYOnX=(0,l.pluckNumber)(n.showyonx,t.showyonx,1),a.regressionLineColor=(0,l.toRaphaelColor)((0,l.pluck)(n.regressionlinecolor,t.regressionlinecolor,r.anchorbordercolor,r.lineColor,r.anchorBgColor,"fff000")),a.polynomialRegressionLineColor=(0,l.toRaphaelColor)((0,l.pluck)(n.polynomialregressionlinecolor,t.polynomialregressionlinecolor,a.regressionLineColor)),a.regressionLineThickness=(0,l.pluckNumber)(n.regressionlinethickness,t.regressionlinethickness,n.anchorborderthickness,1),a.polynomialRegressionLineThickness=(0,l.pluckNumber)(n.polynomialregressionlinethickness,t.polynomialregressionlinethickness,a.regressionLineThickness),a.regressionLineAlpha=(0,l.pluckNumber)(n.regressionlinealpha,t.regressionlinealpha,100),a.polynomialRegressionLineAlpha=(0,l.pluckNumber)(n.polynomialregressionlinealpha,t.polynomialregressionlinealpha,a.regressionLineAlpha),(0,c.createLinear)(t,n)&&a.regressionPoints.push((0,o["default"])(n.data,a.showYOnX)),(0,c.createPolynomial)(t,n)&&a.regressionPoints.push((0,s["default"])(n.data,a.showYOnX))},r.draw=function(){var e,t,r,n,a,i,o,s=this,c=s._config,u=s.getFromEnv("xAxis"),d=s.getFromEnv("yAxis"),f=s.getFromEnv("chart"),p=f.getChildren("canvas")[0].config,g=s.getContainer("regressionlinecontainer"),m=s.getFromEnv("animationManager"),v=c.regressionPoints,b=[],y=[],w=s.getGraphicalElement("regressionLineLinear"),x=s.getGraphicalElement("regressionLinePolynomial"),_=h;!s.getLinkedParent().getState("visible")&&(o="disappearing"),g=s.addContainer("regressionlinecontainer",m.setAnimation({el:g||"group",attr:{name:"regressionlinecontainer","clip-rect":[p.canvasLeft,p.canvasTop,p.canvasWidth,p.canvasHeight]},container:f.getChildContainer("abovePlotGroup"),component:s,label:"group"}));for(var S=0;S<v.length;S++){var k=l.BLANKSTRING;if(b=v[S][0],e=(y=v[S][1]).length,0===b.length&&0===y.length)n=!0,k+="M0,0";else if(0!==b.length&&0===y.length)n=!1,k+="M0,0";else if(0===b.length)n=!0,k+="M"+u.getPixel(y[0].x)+","+d.getPixel(y[0].y),k+="L"+u.getPixel(y[e-1].x)+","+d.getPixel(y[e-1].y);else{n=!1,k+="M"+u.getPixel(y[0].x)+","+d.getPixel(y[0].y),k+=" R"+u.getPixel(y[1].x)+","+d.getPixel(y[1].y);for(var C=2;C<e;C++)k+=" "+u.getPixel(y[C].x)+","+d.getPixel(y[C].y)}n?a={opacity:Number(c.regressionLineAlpha)/100,stroke:c.regressionLineColor,"stroke-width":c.regressionLineThickness,path:k}:i={opacity:Number((0,l.pluck)(c.polynomialRegressionLineAlpha,c.regressionLineAlpha))/100,stroke:(0,l.pluck)(c.polynomialRegressionLineColor,c.regressionLineColor),"stroke-width":(0,l.pluck)(c.polynomialRegressionLineThickness,c.regressionLineThickness),path:k}}"disappearing"!==o&&(w&&w.show(),x&&x.show()),t=m.setAnimation({el:w||"path",container:g,component:s,doNotRemove:!0,attr:!("disappearing"===o)&&a,callback:"disappearing"===o&&_,label:"path"}),w||s.addGraphicalElement("regressionLineLinear",t),r=m.setAnimation({el:x||"path",container:g,component:s,doNotRemove:!0,attr:!("disappearing"===o)&&i,callback:"disappearing"===o&&_,label:"path"}),x||s.addGraphicalElement("regressionLinePolynomial",r)},t}(i.ComponentInterface)},(e,t)=>{"use strict";function r(e,t,r){return parseFloat(e[r])-parseFloat(t[r])}function n(e,t){return r(e,t,"x")}function a(e,t){return r(e,t,"y")}t.__esModule=!0,t["default"]=function(e,t){if(Number(t))return function(e){e.sort(n);for(var t,r,a,i,o=[],s=[],l=0,c=0,u=0,d=0,h=e.length,f=[],p=0;p<e.length;p++)a=Number(e[p].x),i=Number(e[p].y),isNaN(a)||isNaN(i)||(o.push(a),s.push(i));h=o.length;for(var g=0;g<h;g++)l+=o[g],c+=s[g];l/=h,c/=h;for(var m=0;m<h;m++)u+=(o[m]-l)*(s[m]-c),d+=(o[m]-l)*(o[m]-l);if(0===d)return[[],[]];return r=c-(t=u/d)*l,f.push({x:o[0],y:t*o[0]+r}),f.push({x:o[h-1],y:t*o[h-1]+r}),[[],f]}(e);return function(e){e.sort(a);for(var t,r,n,i,o=[],s=[],l=0,c=0,u=0,d=0,h=e.length,f=[],p=0;p<e.length;p++)n=Number(e[p].x),i=Number(e[p].y),isNaN(n)||isNaN(i)||(o.push(n),s.push(i));h=o.length;for(var g=0;g<h;g++)l+=o[g],c+=s[g];l/=h,c/=h;for(var m=0;m<h;m++)u+=(o[m]-l)*(s[m]-c),d+=(s[m]-c)*(s[m]-c);if(0===d)return[[],[]];return r=l-(t=u/d)*c,(f=[]).push({x:t*s[0]+r,y:s[0]}),f.push({x:t*s[h-1]+r,y:s[h-1]}),[[],f]}(e)}},(e,t)=>{"use strict";function r(e,t){return parseFloat(e.x)-parseFloat(t.x)}t.__esModule=!0,t["default"]=function(e,t){if(Number(t))return function(e){e.sort(r);for(var t,n,a,i,o,s,l,c,u,d,h=[],f=[],p=0,g=0,m=e.length,v=0,b=0,y=0,w=0,x=0,_=[],S=0;S<e.length;S++)u=Number(e[S].x),d=Number(e[S].y),isNaN(u)||isNaN(d)||(h.push(u),f.push(d));m=h.length;for(var k=0;k<m;k++)p+=f[k],g+=h[k]*f[k],x+=h[k]*h[k]*f[k],v+=h[k],b+=h[k]*h[k],w+=h[k]*h[k]*h[k],y+=h[k]*h[k]*h[k]*h[k];if(n=g-v*p/m,i=x-b*p/m,(t=b-v*v/m)*(o=y-b*b/m)-(a=w-b*v/m)*a===0||0===m)return[e,[]];c=p/m-(l=(n*o-i*a)/(t*o-a*a))*(v/m)-(s=(i*t-n*a)/(t*o-a*a))*(b/m);for(var C=0;C<m;C++)_.push({x:h[C],y:s*h[C]*h[C]+l*h[C]+c});return[e,_]}(e);return function(e){e.sort(r);for(var t,n,a,i,o,s,l,c,u,d,h=[],f=[],p=0,g=0,m=e.length,v=0,b=0,y=0,w=0,x=0,_=[],S=0;S<e.length;S++)u=Number(e[S].x),d=Number(e[S].y),isNaN(u)||isNaN(d)||(h.push(u),f.push(d));m=h.length;for(var k=0;k<m;k++)p+=h[k],g+=f[k]*h[k],x+=f[k]*f[k]*h[k],v+=f[k],b+=f[k]*f[k],w+=f[k]*f[k]*f[k],y+=f[k]*f[k]*f[k]*f[k];if(n=g-v*p/m,i=x-b*p/m,(t=b-v*v/m)*(o=y-b*b/m)-(a=w-b*v/m)*a===0||0===m)return[e,[]];c=p/m-(l=(n*o-i*a)/(t*o-a*a))*(v/m)-(s=(i*t-n*a)/(t*o-a*a))*(b/m);for(var C=0;C<m;C++)_.push({x:s*f[C]*f[C]+l*f[C]+c,y:f[C]});return[e,_]}(e)}},(e,t)=>{"use strict";t.__esModule=!0,t.createLinear=function(e,t){var r=Number(e.showregressionline)||0;return isNaN(t.showregressionline)&&r||Number(t.showregressionline)},t.createPolynomial=function(e,t){var r=Number(e.showpolynomialregressionline)||0;return isNaN(t.showpolynomialregressionline)&&r||Number(t.showpolynomialregressionline)},t.hasRegressionLine=function(e,t){return t.showregressionline||e.showregressionline||t.showpolynomialregressionline||e.showpolynomialregressionline},t.isInArray=function(e,t){return t.indexOf(e.toLowerCase())>-1},t.isValidDataset=void 0;var r=["scatter","bubble","errorScatter","selectScatter"];t.isValidDataset=function(e){return function(e){return"dataset"===e.getType()}(e)&&r.indexOf(e.getName())>=0}},(e,t)=>{"use strict";function r(){var e,t=this.getFromEnv("chart").getChildren("canvas")[0],r=0,n=[],a=[];for(n.push(t.config.canvasLeft),n.push(t.config.canvasTop),n.push(0),n.push(t.config.canvasHeight),e=n.length;r<e;)a.push(n[r]),r++;return a[2]=t.config.canvasWidth,[{initialAttr:function(){return{"clip-rect":n}},finalAttr:function(){return{"clip-rect":a}},effect:"linear",slot:"plot"}]}t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.extension.regression":function(){return{"path.appearing":null,"path.updating":null,"path.disappearing":null,"group.appearing":r,"*":null}}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(281),i=n(r(422)),o=n(r(423)),s=n(r(441)),l=n(r(442)),c=n(r(443)),u=n(r(444)),d=n(r(445)),h=n(r(446)),f=n(r(447)),p=n(r(448)),g=r(289),m=n(r(449)),v={DragZoomIn:o["default"],ZoomResetButton:s["default"],ZoomOutButton:l["default"],DbTapZoom:u["default"],DragPin:d["default"],ZoomInButton:c["default"],DragPan:h["default"],PinchZoom:f["default"],SwipeGesture:p["default"]};t["default"]={extension:function(e){var t,r;(0,m["default"])((0,g.getDep)("redraphael","plugin")),e.addEventListener("instantiated",function(e){var n,o=e.sender;"canvas"===o.getType()&&o.registerFactory("inputManager",function(e){if(r=e.getFromEnv("chart"),t=r.constructor.includeInputOptions&&r.constructor.includeInputOptions()){(0,a.componentFactory)(e,i["default"],"inputManager",1,[{}]),n=e.getChildren("inputManager")[0];for(var o=0,s=t&&t.length;o<s;o++)(0,a.componentFactory)(n,v[t[o]],t[o],1,[{}])}})})},name:"inputAdapter",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s=function(e,t,r,n){var a,i;(i=n[e])&&(i.some(function(e,n){return e.callback===t&&e.component===r&&(a=n,!0)}),a!==o.UNDEF&&i.splice(a,1))},l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){var e=this,t=e.getFromEnv("chart"),r=t.getInputConfigurations;e.addToEnv("canvas",e.getLinkedParent()),e.addToEnv("inputOptions",r&&r.call(t)),e.config={controlObj:{},dependancyObj:{}}},r.addEventToChild=function(){var e=this,t=e.getChildren(),r=["zoomin","zoomout","dragzoomenabled","dragzoomdisabled","pinenabled","pindisabled","panenabled","pandisabled"],n=function(n){r.forEach(function(r){e.addExtEventListener(r,e.manageEvents.bind(e),t[n][0])})};for(var a in t)n(a)},r.manageEvents=function(e){var t=this.config.dependancyObj,r=e.type;t[r]&&t[r].forEach(function(t){t.component!==e.sender&&t.callback.call(t.component,e)})},r.fetchZoomableAxes=function(){var e=this;if(!e.config.axesObArr){var t=e.config.axesObArr=[];e.getLinkedParent().getAxes().forEach(function(e){(e.config.zoomable||e.config.pannable)&&t.push({axis:e.axis,stack:[],isY:e.isY})}),e.addToEnv("axesObArr",t)}},r.draw=function(){this.fetchZoomableAxes(),this.addEventToChild()},r.getControl=function(e,t){var r,n=this.config.controlObj,a=this.getLinkedParent();t||e.forEach(function(e){(r=e.nativeInteraction)instanceof Array?r.forEach(function(t){(n[t]||(n[t]=[])).push({callback:e.callback,component:e.component}),e.component.addExtEventListener(t,e.callback,a)}):((n[r]||(n[r]=[])).push({callback:e.callback,component:e.component}),e.component.addExtEventListener(r,e.callback,a))})},r.releaseControl=function(e){var t,r=this,n=r.getLinkedParent();e.forEach(function(e){(t=e.nativeInteraction)instanceof Array?t.forEach(function(t){e.component.removeExtEventListener(t,e.callback,n),s(t,e.callback,e.component,r.config.controlObj)}):(e.component.removeExtEventListener(t,e.callback,n),s(t,e.callback,e.component,r.config.controlObj))})},r._updateControlObj=function(e,t){var r,n;(n=this.config.controlObj[e])&&(n.some(function(e,n){return e.callback===t&&(r=n,!0)}),r!==o.UNDEF&&n.splice(r,1))},r.registerDependancy=function(e){var t,r=this.config.dependancyObj;e.forEach(function(e){(t=e.derivedInteraction)instanceof Array?t.forEach(function(t){(r[t]||(r[t]=[])).push({callback:e.callback,component:e.component,derivedInteraction:t})}):(r[t]||(r[t]=[])).push(e)})},r.removeDependancy=function(e){var t,r=this;e.forEach(function(e){(t=e.derivedInteraction)instanceof Array?t.forEach(function(t){s(t,e.callback,e.component,r.config.dependancyObj)}):s(t,e.callback,e.component,r.config.dependancyObj)})},r.zoomOut=function(){var e=this.getChildren("ZoomOutButton");e&&e[0].zoomOut()},r.zoomTo=function(e,t){var r=this.getChildren("DragZoomIn");r&&r[0].zoomTo(e,t)},r.resetChart=function(){var e=this.getChildren("ZoomResetButton");e&&e[0].zoomOut()},r.setZoomMode=function(e){var t=this.getChildren("DragPin");t&&(e?t[0].disable():t[0].enable())},t}(i.ComponentInterface);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=n(r(424)),s=r(281),l="activated",c=Math.min,u=Math.abs,d=function(e){function t(){var r,n=r=e.call(this)||this;return n.controlArr=[{nativeInteraction:["fc-dragstart"],callback:n.dragStart.bind(n),component:n},{nativeInteraction:["fc-dragmove"],callback:n.onDrag.bind(n),component:n},{nativeInteraction:["fc-dragend"],callback:n.onDragEnd.bind(n),component:n}],s.isFirefox&&n.controlArr.push({nativeInteraction:["fc-mousedown"],callback:t.mousedown,component:n}),n._toggle=function(){n._checkStackLen()&&n.toggle()},r}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dragZoomIn"},r.configure=function(){e.prototype.configure.call(this);var t=this,r=t.config;r.boxStyle=r.boxStyle||{"stroke-width":1,stroke:"red",fill:"#00FF00",opacity:.2,cursor:"ne-resize"},!t.config.skipGraphics&&t.setLinkedItem("button",t.createButton({icon:"zoomModeIcon",tooltext:t.config.tooltext,handlers:{click:t._toggle},state:l})),t.enable("pressed"),t.getLinkedParent().registerDependancy([{derivedInteraction:["pinenabled","pindisabled","panenabled","pandisabled"],callback:t.dependancyFn,component:t}])},t.mousedown=function(e){e&&e.preventDefault()},r.setControl=function(){var e=this,t=e.getLinkedParent(),r=e.getLinkedItem("button"),n=e.controlArr;t.releaseControl(n),e.isEnabled()&&t.getControl(n),r&&r.setCurrentState(e.isEnabled()?e.config.state:"disabled")},r.getCoordinates=function(e){var t=this.getFromEnv("chart"),r=(0,s.getMouseCoordinate)(t.getFromEnv("chart-container"),e,t);return{x:r.chartX,y:r.chartY}},r.inCanvasLimit=function(e){var t=this.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs,r=t.x,n=t.y,a=e.x-t.x,i=e.y-t.y,o=t.width-a,s=t.height-i;return e.x>r&&e.y>n&&e.width<o&&e.height<s},r.drawBox=function(){var e,t=this,r=t.config,n=t.getGraphicalElement("box"),a=t.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs;n||(n=t.addGraphicalElement("box",t.getFromEnv("paper").rect())).attr(r.boxStyle),e=function(e,t,r,n){t.x<r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.x>r.width+r.x&&(t.x=r.width+r.x),t.y>r.height+r.y&&(t.y=r.height+r.y);var a,i=t.x-e.x,o=e.y-t.y;return i>0&&o>0?a=n?"ne-resize":"e-resize":i<0&&o>0?a=n?"nw-resize":"w-resize":i<0&&o<0?a=n?"sw-resize":"w-resize":i>0&&o<0&&(a=n?"se-resize":"e-resize"),{x:c(e.x,t.x),y:c(e.y,t.y),width:i=u(i),height:o=u(o),cursor:a}}(t.dragBoxConfig.startPos,t.dragBoxConfig.currentPos,a,t.getFromEnv("chart").isXY),r.scaleX||(e.x=a.x,e.width=a.width),r.scaleY||(e.y=a.y,e.height=a.height),n.attr(e),n.show()},r.onDragEnd=function(e){var t,r,n,i,o=this,s=o.config,l=o.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs,c=o.getGraphicalElement("box")||{},u=c.attrs;u&&s.dragmove&&(s.dragmove=!1,c.hide(),s.startPosX=t=(u.x-l.x)/l.width,s.endPosX=r=(u.x+u.width-l.x)/l.width,s.startPosY=n=(u.y-l.y)/l.height,s.endPosY=i=(u.y+u.height-l.y)/l.height,r-t<.01||i-n<.01||o.zoomTo(a,a,e))},r.zoomTo=function(e,t,r){var n,i,o,s,l,c,u,d,h=this,f=h.config,p=!1,g={},m=f.catZoomLimit-1;h.getFromEnv("axesObArr").forEach(function(v){var b=v.axis,y=b.getFromEnv("chart"),w=y.getChildren("scrollBar")&&y.getChildren("scrollBar")[0],x=b.getVisibleConfig(),_=v.isY?x.maxValue:x.minValue,S=x.maxValue-x.minValue;v.isY?(s=n=e===a?_-S*f.endPosY:e,c=i=t===a?_-f.startPosY*S:t):(l=n=e===a?_+f.startPosX*S:e,u=i=t===a?_+S*f.endPosX:t,g=h.constructor._getZoomInfo(l,u,b)),m&&!b.config.isVertical&&Math.round(i-n)<m&&(n=Math.round(n),i=n+m),(S>1||i-n>1)&&(f.dragendFn&&"function"==typeof f.dragendFn&&f.dragendFn(r,n,i),d=b.setVisibleConfig(n,i),y.setScrollBarDimension&&y.setScrollBarDimension(),w&&!w.getState("removed")&&w.asyncDraw(),p=p||d,v.stack.push(x),o=v.stack.length+1)}),p&&h._raiseZoomEvents("zoomin","zoomedin",Object.assign(g,{level:o,startX:l,endX:u,startY:s,endY:c},{originalEvent:r&&r.originalEvent}))},r.onDrag=function(e){var t=this,r=t.config,n=t.getCoordinates(e.originalEvent);r.dragmove=!0,this.getFromEnv("animationManager").setAnimationState("drag"),r.dragmoveFn&&"function"==typeof r.dragmoveFn&&r.dragmoveFn(e),t.dragBoxConfig.currentPos=n,t.drawBox()},r.dragStart=function(e){var t=this,r=t.config,n=t.getCoordinates(e.originalEvent);r.dragstartFn&&"function"==typeof r.dragstartFn&&r.dragstartFn(e),t.dragBoxConfig={startPos:n,currentPos:n}},r.enable=function(){var e=this;!0!==e.config.enabled&&(e.config.enabled=!0,e.config.state="pressed",e.fireEvent("dragzoomenabled"),e.setControl())},r.disable=function(){var e=this;!1!==e.config.enabled&&(e.config.enabled=!1,e.config.state=l,e.fireEvent("dragzoomdisabled"),e.setControl())},r.dependancyFn=function(e){"pinenabled"===e.type||"panenabled"===e.type?this.disable():"pindisabled"!==e.type&&"pandisabled"!==e.type||this.enable()},t}(o["default"]);t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(425),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configure=function(){var e=this,t=e.config={},r=e.getFromEnv("inputOptions")||{};Object.assign(t,r[e.getName()])},r._checkStackLen=function(){var e=this.getFromEnv("axesObArr"),t=0;return e&&e.forEach(function(e){t+=e.stack.length}),t},t._getZoomInfo=function(e,t,r){var n={startIndex:Math.ceil(e),endIndex:Math.floor(t)};return r.getLabel&&(n.startLabel=r.getLabel(n.startIndex).label,n.endLabel=r.getLabel(n.endIndex).label),n},r._raiseZoomEvents=function(e,t,r,n){var a=this.getFromEnv("chart");e&&this.fireEvent(e),t&&a.fireChartInstanceEvent(t,r,n),t&&a.fireChartInstanceEvent("zoomed",r,n)},r.getType=function(){return"canvasInput"},r.enable=function(e){var t=this;!0!==t.config.enabled&&(t.config.enabled=!0,e&&t.fireEvent(e),t.setControl())},r.disable=function(e){var t=this;!1!==t.config.enabled&&(t.config.enabled=!1,e&&t.fireEvent(e),t.setControl())},r.toggle=function(e){this.isEnabled()?this.disable(e):this.enable(e)},r.isEnabled=function(){return this.config.enabled},r.setControl=function(){var e=this.getLinkedItem("button");e&&e.setCurrentState(this.isEnabled()?this.config.state:"disabled")},r.createButton=function(e){var t,r=this,n=r.getLinkedParent().getFromEnv("chart");for(var a in(t=n.getFromEnv("toolbar").attachChild(o.Tool,"tool",r.getId())).configure(Object.assign({},n.getFromEnv("tool-config"),{name:e.icon,tooltext:e.tooltext})),e.handlers)e.handlers.hasOwnProperty(a)&&t.addEventListener("fc-"+a,e.handlers[a]);return t.setLinkedItem("input",r),t},t}(i.ComponentInterface);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0;var a=r(426);t.ScrollBar=a.ScrollBar,t.Checkbox=a.Checkbox,t.Hamburger=a.Hamburger,t.Label=a.Label,t.MenuItemContainer=a.MenuItemContainer,t.Tool=a.Tool;var i=n(r(440));t.ToolBar=i["default"]},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0;var a=n(r(427));t.ScrollBar=a["default"];var i=n(r(434));t.Checkbox=i["default"];var o=n(r(435));t.Hamburger=o["default"];var s=n(r(438));t.Label=s["default"];var l=n(r(439));t.Separator=l["default"];var c=n(r(436));t.MenuItemContainer=c["default"];var u=n(r(429));t.Tool=u["default"]},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=r(281),s=n(r(428)),l=n(r(429)),c=n(r(431)),u=n(r(432)),d=n(r(433)),h=r(430),f=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.scale=1},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config,n=this.getFromEnv("chart-attrib");r.conf={},r.isOpposite=t&&!t.isHorizontal?(0,s["default"])(n.scrollposition,"right"):(0,s["default"])(n.scrollposition,"top"),r.color=n.scrollcolor&&(0,o.convertColor)(n.scrollcolor),r.padding=(0,o.pluckNumber)(n.scrollpadding,0),r.height=(0,o.pluckNumber)(n.scrollheight,12),r.width=(0,o.pluckNumber)(n.scrollwidth,12),r.displayFlat=(0,o.pluckNumber)(n.flatscrollbars,0),r.scrollBar3DLighting=(0,o.pluckNumber)(n.scrollbar3dlighting,1),r.startPercent=Math.min(1,Math.max(0,parseFloat(n.scrolltoend)||0)),r.showButtons=!!(0,o.pluckNumber)(n.scrollshowbuttons,1),r.buttonPadding=(0,o.pluckNumber)(n.scrollbtnpadding,0),r.style=t.style,r.drawStripes=t.drawStripes,r.restrictScrollAnchor=(0,o.pluckNumber)(t.restrictScrollAnchor,1),this.setConfiguaration(t),r.evt={tooltext:a,click:o.stubFN,hover:[o.stubFN,o.stubFN]},this.createScrollItems()},r.createScrollItems=function(){var e,t,r,n,a,i,o=this,s=this.config,l=s.style||{},h=null==(e=o.getChildren("scrollTrack"))?void 0:e[0],f=null==(t=o.getChildren("scrollAnchor"))?void 0:t[0],p=null==(r=o.getChildren("scrollButtons"))?void 0:r[0],g=null==(n=o.getChildren("scrollButtons"))?void 0:n[0],m=!!s.legendScrollButtonArrowColor,v=m?s.legendScrollButtonArrowColor[0]:s.color,b=m?1===s.legendScrollButtonArrowColor.length?s.legendScrollButtonArrowColor[0]:s.legendScrollButtonArrowColor[1]:s.color;h||((h=o.attachChild(c["default"],"scrollTrack")).configure({style:{track:l.track},useLegendScrollGradient:s.useLegendScrollGradient,color:null!=(a=s.legendScrollTrackColor)?a:s.color,legendTrackStrokeBorderColor:s.legendTrackStrokeBorderColor,displayFlat:s.displayFlat,isHorizontal:s.isHorizontal}),h.attachEventHandlers());f||((f=o.attachChild(u["default"],"scrollAnchor")).configure({style:{scroller:l.scroller,grip:l.grip},drawStripes:s.drawStripes,useLegendScrollGradient:s.useLegendScrollGradient,color:null!=(i=s.legendScrollAnchorColor)?i:s.color,displayFlat:s.displayFlat,isHorizontal:s.isHorizontal}),f.attachEventHandlers());!p&&s.showButtons&&((p=o.attachChild(d["default"],"scrollStartButton")).configure({type:"start",color:v,useLegendScrollGradient:s.useLegendScrollGradient,style:{button:l.button,arrow:l.arrow}}),p.attachEventHandlers()),!g&&s.showButtons&&((g=o.attachChild(d["default"],"scrollEndButton")).configure({type:"end",color:b,useLegendScrollGradient:s.useLegendScrollGradient,style:{button:l.button,arrow:l.arrow}}),g.attachEventHandlers())},r.getName=function(){return"scrollbar"},r.getType=function(){return"scrollbar"},r.setConfiguaration=function(e){var t=this.config;t.color||(t.color="#"+this.getFromEnv("chart").getFromEnv("color-manager").getColor("altHGridColor")),(0,h.mergeConf)(e,t)},r.getLogicalSpace=function(){var t=this.config,r=t.conf,n={};return(0,h.mergeConf)(t,n),(0,h.mergeConf)(n,r),e.prototype.getLogicalSpace.call(this)},r.setDimension=function(t){e.prototype.setDimension.call(this,t);var r=this.getLinkedParent(),n=r.getPosition&&r.getPosition()||{},a=this.getChildren("scrollTrack")[0].config;a.transLateX=n.x||0,a.transLateY=n.y||0},r.draw=function(){var e=this,t=e.config,r={};t.conf.isHorizontal?delete r.width:delete r.height,(0,h.mergeConf)(r,t,!0),e.addGraphicalElement({el:"group",attr:{name:"scrollContainer"},component:e,container:{id:"scrollbarContainer",label:"scrollbar",isParent:!0},label:"scrollbarGroup",id:"scrollbarGroup"})},r.attachEventHandlers=function(e){var t=this.config.evt;return e&&(e.scroll&&"function"==typeof e.scroll&&(t.scroll=e.scroll),e.scrollStart&&"function"==typeof e.scrollStart&&(t.scrollStart=e.scrollStart),e.scrollEnd&&"function"==typeof e.scrollEnd&&(t.scrollEnd=e.scrollEnd)),this},t}(l["default"]);f.registerSymbol=a,f._setConfiguaration=o.stubFN;t["default"]=f},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){return String(e).toLowerCase()===String(t).toLowerCase()}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s=r(430),l=function(e){function t(t){var r;return(r=e.call(this,t)||this)._listeners={},r}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"button"},r.getType=function(){return"tool"},r.__setDefaultConfig=function(){var e=this.config;e.scale=1.15,e.width=o.touchEnabled?20:15,e.height=o.touchEnabled?20:15,e.radius=o.touchEnabled?4:2,e.spacing=2.5,e.marginTop=2.5,e.marginLeft=2.5,e.marginRight=2.5,e.marginBottom=2.5,e.fill="ffffff",e.fillAlpha="cccccc",e.symbolFill="ffffff",e.stroke="bbbbbb",e.symbolStroke="9a9a9a",e.strokeWidth=1,e.symbolStrokeWidth=1,e.symbolPadding=5,e.symbolHPadding=5,e.symbolVPadding=5,e.fillAlpha=100,e.stateStyle={},e.text=o.BLANKSTRING,e.marginTop=e.marginLeft=e.marginRight=e.marginBottom=2.5,e.labelFontSize=12},r.configureAttributes=function(e){void 0===e&&(e={});var t,r,n,a=this.config,i=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];(r===o.UNDEF||!/tooltext/.test(t)&&""===r)&&delete e[t]}return e}(e);Object.assign(a,i),a.symbolName=a.name,this.setState("visible",!0!==a.isHidden),a.marginTop=(0,o.pluckNumber)(i.marginTop,i.spacing,a.marginTop),a.marginLeft=(0,o.pluckNumber)(i.marginLeft,i.spacing,a.marginLeft),a.marginRight=(0,o.pluckNumber)(i.marginRight,i.spacing,a.marginRight),a.marginBottom=(0,o.pluckNumber)(i.marginBottom,i.spacing,a.marginBottom),a.fill=(0,o.pluck)(i.fill,a.fill),a.fillAlpha=(0,o.pluckNumber)(i.fillAlpha,a.fillAlpha),a.labelFill=(0,o.pluck)(i.labelFill,a.labelFill),a.symbolFill=(0,o.pluck)(i.symbolFill,a.symbolFill),a.hoverFill=(0,o.pluck)(i.hoverFill,a.hoverFill),a.stroke=(0,o.pluck)(i.stroke,a.stroke),a.symbolStroke=(0,o.pluck)(i.symbolStroke,a.symbolStroke),a.strokeWidth=(0,o.pluckNumber)(i.strokeWidth,a.strokeWidth),a.symbolStrokeWidth=(0,o.pluckNumber)(i.symbolStrokeWidth,a.symbolStrokeWidth),t=a.symbolPadding=(0,o.pluckNumber)(i.symbolPadding,a.symbolPadding),a.symbolHPadding=(0,o.pluckNumber)(i.symbolHPadding,t),a.symbolVPadding=(0,o.pluckNumber)(i.symbolVPadding,t),a.hAlign=(0,o.pluck)(i.hAlign,"center").toLowerCase(),a.vAlign=(0,o.pluck)(i.vAlign,"middle").toLowerCase(),a.containerInfo=i.containerInfo||{id:"group",label:"group",isParent:!0},r=i.x,n=i.y,void 0===r||void 0===n?a.spaceNotHardCoded=!0:(a.x=r,a.y=n,a.spaceNotHardCoded=!1)},r.setDimension=function(e){void 0===e&&(e={});var t=this.config;e.x!==o.UNDEF&&(t.x=e.x),e.y!==o.UNDEF&&(t.y=e.y),e.width!==o.UNDEF&&(t.width=e.width),e.height!==o.UNDEF&&(t.height=e.height)},r.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},r.getLogicalSpace=function(){var e=this.config,t=e.width,r=e.height,n=e.marginTop,a=e.marginLeft,i=e.marginRight,o=e.marginBottom,s=e.scale;return t*=s,r*=s,(this.config.skipGraphics||this.getState("removed"))&&(t=r=o=a=i=n=0),{width:t,height:r,marginTop:n,marginLeft:a,marginRight:i,marginBottom:o}},r.setCurrentState=function(e){this.config.state=e,this.asyncDraw()},r.getCurrentState=function(){return this.config.state},r.draw=function(){var e,t,r,n=this,a=n.config,i=a,l=a.text,c=n.getFromEnv("tool-config");a.skipGraphics||(t={width:a.width*a.scale,height:a.height*a.scale,r:a.radius*a.scale,verticalPadding:a.symbolVPadding*a.scale,horizontalPadding:a.symbolHPadding},e=(0,o.extend2)({},a.stateStyle[a.state]||s.preConfig[a.state]||{}),"activated"!==a.state&&"disabled"!==a.state&&"pressed"!==a.state||(e.config.normal.fill=(0,o.convertColor)((0,o.pluck)(c.fill,e.config.normal.fill)),e.config.normal["symbol-stroke"]=(0,o.convertColor)((0,o.pluck)(c.symbolStroke,e.config.normal["symbol-stroke"])),e.config.normal.symbolFill=(0,o.convertColor)((0,o.pluck)(c.symbolFill,e.config.normal.symbolFill)),e.config.normal.stroke=(0,o.convertColor)((0,o.pluck)(c.stroke,e.config.normal.stroke)),e.config.normal.symbolStroke=(0,o.convertColor)((0,o.pluck)(c.symbolStroke,e.config.normal.symbolStroke)),e.config.hover.fill=(0,o.convertColor)((0,o.pluck)(c.hoverFill,e.config.hover.fill))),(r=(0,o.extend2)({button:[a.x,a.y,l,a.symbolName,t,a.labelFontSize,a.labelFontFamily],"button-label":l,"button-padding":[a.symbolHPadding,a.symbolVPadding*a.scale],"button-repaint":[i.x,i.y,a.width*a.scale,a.height*a.scale,a.radius*a.scale],fill:(0,o.convertColor)(a.fill),labelFill:(0,o.convertColor)(a.labelFill),symbolFill:(0,o.convertColor)(a.symbolFill),hoverFill:a.hoverFill,stroke:(0,o.convertColor)(a.stroke),"symbol-stroke":(0,o.convertColor)(a.symbolStroke||a.stroke),"stroke-width":a.strokeWidth,"symbol-stroke-width":(0,o.pluckNumber)(a.symbolStrokeWidth,a.strokeWidth)},e)).fill=(0,o.convertColor)((0,o.pluck)(a.fill,e.fill)),!a.isHidden&&n.addGraphicalElement({el:"button",attr:r,css:a.btnTextStyle,component:n,container:a.containerInfo,label:"button",id:"button",tooltext:a.tooltext}))},r.hide=function(){this.config.isHidden=!0,this.setState("visible",!1),this.asyncDraw()},r.show=function(){this.config.isHidden=!1,this.setState("visible",!0),this.asyncDraw()},t}(i.SmartRenderer);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.SymbolStore=t.RSymbolFns=t.HOVER=t.DEFAULT_TIMEOUT=t.CLICK=void 0,t.bottomPath=function(e,t,r,n,a){var i=e,o=t,s=n/2,l=Math.round(a/4+1),c=o+l+3;return["M",i-s,c,"L",i+s,c]},t.defaultTextStyle=void 0,t.getEventHandlersFor=function(e,t){var r=function(){a["default"].listen(t,"mousemove",function(e){e.originalEvent.stopPropagation()})};switch(e){case"click":return function(e){a["default"].listen(t,"click",function(t){t.target&&t.target.parentNode&&e.call(t.target)}),r()};case"hover":return function(e,n){a["default"].listen(t,"pointerhover",function(t){t.target&&t.target.parentNode&&("start"===t.state?e:n).call(t.target)}),r()}}},t.mergeConf=function(e,t,r){var n,a;for(n in e)if((a=e[n])!==o.UNDEF&&null!==a)if(r){if(t[n])continue;t[n]=a}else t[n]=a},t.preConfig=void 0;var a=n(r(283)),i=r(289),o=r(281),s=(t.DEFAULT_TIMEOUT=300,t.HOVER="hover",t.CLICK="click","#ffffff"),l="#e3e3e3",c="default",u="#efefef",d="#c2c2c2",h=(t.preConfig={activated:{config:{hover:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,"stroke-width":1,stroke:"#aaaaaa","symbol-stroke":"#aaaaaa",cursor:"pointer"},normal:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,stroke:d,"symbol-stroke":d,"stroke-width":1,cursor:"pointer"},disable:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,"stroke-width":1,stroke:l,"symbol-stroke":l,"stroke-opacity":1,cursor:"pointer"},pressed:{fill:u,labelFill:u,symbolFill:u,hoverFill:u,"fill-symbol":u,"stroke-width":1,stroke:d,"symbol-stroke":d,cursor:"pointer"}},"button-disabled":!1,fill:s,labelFill:s,symbolFill:s,hoverFill:s,stroke:d,"symbol-stroke":d,"stroke-opacity":1,cursor:"pointer"},disabled:{config:{hover:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,"stroke-width":1,stroke:l,"symbol-stroke":l,cursor:c},normal:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,stroke:l,"symbol-stroke":l,"stroke-width":1,cursor:c},disable:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,"stroke-width":1,stroke:l,"symbol-stroke":l,"stroke-opacity":1,cursor:c},pressed:{fill:s,labelFill:s,symbolFill:s,hoverFill:s,"fill-symbol":s,"stroke-width":1,stroke:l,"symbol-stroke":l,cursor:c}},fill:s,labelFill:s,symbolFill:s,hoverFill:s,"button-disabled":!1,stroke:l,"symbol-stroke":l,"stroke-opacity":1,cursor:"default"},pressed:{config:{hover:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:s,hoverFill:"#dcdcdc","fill-symbol":s,"stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},normal:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:s,hoverFill:"#dcdcdc","fill-symbol":s,"stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},pressed:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:s,hoverFill:"#dcdcdc","fill-symbol":s,"stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}},fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:s,hoverFill:"#dcdcdc","fill-symbol":s,"stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}},(0,i.getDep)("redraphael","plugin")),f=t.RSymbolFns={CB_NOT_CHECKED:function(e,t,r){return["M",e-r,t-r]},CB_CHECKED:function(e,t,r){var n=r/4;return["M",e-3*n,t,"L",e-n,t+r,e+r,t-r]}};t.SymbolStore=(h.addSymbol("Internal_CB",f.CB_NOT_CHECKED),{register:function(){var e,t,r,n;if(1===arguments.length){if(null===(r=arguments[0])&&r===o.UNDEF||"object"!=typeof r)return;n=r}else{if(!(arguments.length>1))return;if(t=arguments[1],"string"!=typeof(e=arguments[0])||"function"!=typeof t)return;(n={})[e]=t}for(e in n)t=n[e],{}.hasOwnProperty.call(n,e)&&h.addSymbol(e,t)}}),t.defaultTextStyle={fill:"#555555",labelFill:"#555555",symbolFill:"#555555",hoverFill:"#555555",fontFamily:"Verdana,sans",fontSize:"12px",fontStyle:"normal",fontWeight:"normal",lineHeight:"14.399999999999999px"}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(289),s=r(293),l=r(281),c=(0,o.getDep)("redraphael","plugin"),u=Math.max,d=function(e){function t(){var t;return(t=e.call(this)||this).updateColor=function(){return c.tintshade.apply(c,arguments).rgba},t._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,r=this.getLinkedParent().config,n=r.useLegendScrollGradient,a=r.legendScrollTrackColor,i=[90*e.isHorizontal,c.tintshade(e.color,.15).rgba,e.color],o=null!=a?a:e.displayFlat?e.color:i.join("-"),s=n?[a.angle,a.startcolor,a.endcolor].join("-"):a;t.style={track:Object.assign({},{fill:n?s:o,stroke:r.legendTrackStrokeBorderColor?r.legendTrackStrokeBorderColor:c.tintshade(e.color,-.75).rgba},e.style.track)}},r.attachEventHandlers=function(){var e,t,r,n,a,i=this,o=i.config,l=i.getLinkedParent(),c=l.config,u=function(){c.scrollPosition>1?(c.scrollPosition=1,t=!1):(c.scrollPosition<0||isNaN(c.scrollPosition))&&(c.scrollPosition=0,t=!1),n.asyncDraw(),"function"==typeof c.evt.scroll&&c.evt.scroll(c.scrollPosition)},d=function(){c.scrollPosition+=.01,r>=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorRight",d,s.priorityList.draw))},h=function(){c.scrollPosition-=.01,r<=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorLeft",h,s.priorityList.draw))};i.addEventListener("fc-mousedown",i._evtHandlers.mousedown||(i._evtHandlers.mousedown=function(u){n=l.getChildren("scrollAnchor")[0],a=n.config,t=!0,e=c.isHorizontal?u.originalEvent.layerX-(a._nodeDimensions.x+o.transLateX+a._nodeDimensions.width/2):u.originalEvent.layerY-(a._nodeDimensions.y+o.transLateY+a._nodeDimensions.height/2),(r=e/a.trackLength+c.scrollPosition)>=c.scrollPosition?i.addJob("dragScrollAnchorRight",d,s.priorityList.draw):i.addJob("dragScrollAnchorLeft",h,s.priorityList.draw)})),i.addEventListener("fc-mouseup",i._evtHandlers.mouseup||(i._evtHandlers.mouseup=function(){c.evt.scrollEnd(),t=!1}))},r.draw=function(){var e=this,t=e.config,r=this.getLinkedParent().config,n=(0,l.crispBound)(r.x+.5,r.y+r.padding+.5,r.width-1,r.height-1,r.strokeWidth);e.addGraphicalElement({el:"rect",attr:{x:n.x,y:n.y,width:u(n.width,0),height:u(n.height,0),r:r.roundEdges?2:0,opacity:t.style.track.opacity},css:t.style.track,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:e,label:"scrollbarTrack",id:"scrollbarTrack"})},t}(i["default"]);t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(281),s=(0,r(289).getDep)("redraphael","plugin"),l=function(e){function t(){var t;return(t=e.call(this)||this).updateColor=function(){return s.tintshade.apply(s,arguments).rgba},t._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,r=this.getLinkedParent().config,n=r.useLegendScrollGradient,a=r.legendScrollAnchorColor,i=[270*e.isHorizontal,this.updateColor(e.color,.3)+":40",this.updateColor(e.color,-.6,-.7)],l=null!=a?a:e.displayFlat?this.updateColor(e.color,-.6):i.join("-"),c=n?[a.angle,a.startcolor,a.endcolor].join("-"):a;t.drawStripes=(0,o.pluckNumber)(e.drawStripes,0),t._nodeDimensions={},t.style={scroller:Object.assign({},{fill:n?c:l,stroke:r.legendAnchorStrokeBorderColor?r.legendAnchorStrokeBorderColor:s.tintshade(e.color,-.6).rgba},e.style.scroller),grip:Object.assign({},{stroke:"#5F5F5F","stroke-linecap":"round","stroke-width":2},e.style.grip)}},r.attachEventHandlers=function(){var e,t,r,n=this,a=this.getLinkedParent().config,i=a.isHorizontal;n.addEventListener("fc-dragmove",n._evtHandlers.dragmove||(n._evtHandlers.dragmove=function(i){(r=e+i.originalEvent.data[t]/this.config.trackLength)>=1?r=1:(r<=0||isNaN(r))&&(r=0),a.scrollPosition=r,n.asyncDraw(),"function"==typeof a.evt.scroll&&a.evt.scroll(a.scrollPosition)})),n.addEventListener("fc-dragstart",n._evtHandlers.dragstart||(n._evtHandlers.dragstart=function(){t=i?0:1,e=a.scrollPosition,"function"==typeof a.evt.scrollStart&&a.evt.scrollStart(a.scrollPosition)})),n.addEventListener("fc-dragend",n._evtHandlers.dragend||(n._evtHandlers.dragend=function(){"function"==typeof a.evt.scrollEnd&&a.evt.scrollEnd(a.scrollPosition)}))},r.draw=function(){var e,t,r=this,n=r.config,a=this.getLinkedParent().config,i=a.x+.5,s=a.y+a.padding+.5,l=a.width-1,c=a.height-1<1?1:a.height-1,u=a.restrictScrollAnchor?Math.max(a.scrollRatio,.01):a.scrollRatio,d=a.isHorizontal,h=(0,o.pluckNumber)(a.scrollPosition,a.startPercent,0),f=0,p=d?l*u:c*u;h>=1?h=1:(h<=0||isNaN(h))&&(h=0),a.showButtons&&(p-=2*(f=d?Math.min(c,.5*l):Math.min(l,.5*c))*u),n.trackLength=e=d?l-2*f-p:c-2*f-p,n.trackOffset=t=d?i+f+.5:s+f+.5,n._nodeDimensions={x:d?t+e*h:i,y:d?s:t+e*h,width:d?p-1<1?1:p-1:l<1?1:l,height:d?c<1?1:c:p-1<1?1:p-1},r.addGraphicalElement({el:"rect",attr:{x:n._nodeDimensions.x,y:n._nodeDimensions.y,width:n._nodeDimensions.width,height:n._nodeDimensions.height,r:a.roundEdges?2:0,opacity:n.style.scroller.opacity},css:n.style.scroller,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:r,label:"scrollbarAnchor",id:"scrollbarAnchor"}),n.drawStripes&&n._nodeDimensions.width>=8&&r.addGraphicalElement({el:"path",attr:{path:["M",n._nodeDimensions.x+n._nodeDimensions.width/2-3,n._nodeDimensions.y+.2*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height,"m",3,-.6*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height,"m",3,-.6*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height],opacity:n.style.grip.opacity},css:n.style.grip,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:r,label:"scrollbarAnchorStripe",id:"scrollbarAnchorStripe"})},r.scrollTo=function(e){var t=this.getLinkedParent().config;e>=0&&e<=1&&(t.scrollPosition=e,this.asyncDraw(),"function"==typeof t.evt.scroll&&t.evt.scroll(t.scrollPosition))},t}(i["default"]);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(289),s=r(281),l=r(293),c=(0,o.getDep)("redraphael","plugin"),u="start",d=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.type=e.type,t.style={button:Object.assign({},{fill:s.TRACKER_FILL,stroke:"none"},e.style.button),arrow:Object.assign({},{fill:e.useLegendScrollGradient?e.color:c.tintshade(e.color,-.4).rgba,stroke:"none"},e.style.arrow)}},r.attachEventHandlers=function(){var e,t,r=this,n=r.config,a=r.getLinkedParent(),i=a.config,o=a.getChildren("scrollAnchor")[0],s=function(){i.scrollPosition>=1?i.scrollPosition=1:(i.scrollPosition<=0||isNaN(i.scrollPosition))&&(i.scrollPosition=0),o.asyncDraw(),"function"==typeof i.evt.scroll&&i.evt.scroll(i.scrollPosition)},c=function(){t=!0,n.type===u?i.scrollPosition-=.01:i.scrollPosition+=.01,s(),r.addJob("dragScrollAnchor",c,l.priorityList.draw)};r.addEventListener("fc-mousedown",r._evtHandlers.mousedown||(r._evtHandlers.mousedown=function(){e=setTimeout(function(){r.addJob("dragScrollAnchor",c,l.priorityList.draw)},300)})),r.addEventListener("fc-mouseup",r._evtHandlers.mouseup||(r._evtHandlers.mouseup=function(){clearTimeout(e),r.removeJob("dragScrollAnchor"),t||(n.type===u?i.scrollPosition-=.1:i.scrollPosition+=.1,s()),t=!1})),r.addEventListener("fc-mouseout",function(){t&&r._evtHandlers.mouseup()})},r.draw=function(){var e=this,t=e.config,r=this.getLinkedParent().config,n={id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},a=r.isHorizontal,i=r.x+.5,o=r.y+r.padding+.5,l=r.width-1<1?1:r.width-1,c=r.height-1<1?1:r.height-1,u=a?Math.min(c,.5*l):Math.min(l,.5*c),d=a?(0,s.polyPathToPath)([3,i+.5*u,o+.5*c,.25*u,180]):(0,s.polyPathToPath)([3,i+.5*l,o+.5*u,.25*u,90]),h=a?(0,s.polyPathToPath)([3,i+l-.5*u,o+.5*u,.25*u,0]):(0,s.polyPathToPath)([3,i+.5*l,o+c-.5*u,.25*u,-90]);e.addGraphicalElement({el:"rect",attr:{x:"start"===t.type?i:a?i+l-u:i,y:"start"===t.type||a?o:o+c-u,width:(t.type,a?u:l),height:(t.type,a?c:u),opacity:t.style.button.opacity},css:t.style.button,container:n,component:e,label:"scrollbar"+t.type+"ButtonRect",id:"scrollbar"+t.type+"ButtonRect"}),e.addGraphicalElement({el:"path",attr:{path:"start"===t.type?d:h,opacity:t.style.arrow.opacity},css:t.style.arrow,container:n,component:e,label:"scrollbar"+t.type+"ButtonPath",id:"scrollbar"+t.type+"ButtonPath"})},t}(i["default"]);t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(281),s=r(430),l="Internal_CB",c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.checked=!!t.isChecked,r.interPadding=3,r.symbolName=l,r.text=(0,o.pluck)(t.text,""),r.textStyle=s.defaultTextStyle},r.check=function(){this.config.checked=!0,this.asyncDraw()},r.uncheck=function(){this.config.checked=!1,this.asyncDraw()},r.toggle=function(){this.config.checked?this.uncheck():this.check()},r.getContainer=function(){return this.getFromEnv("chart").getChildContainer("buttonGroup")},r.draw=function(){this.config.checked?s.SymbolStore.register(l,s.RSymbolFns.CB_CHECKED):s.SymbolStore.register(l,s.RSymbolFns.CB_NOT_CHECKED),e.prototype.draw.call(this)},t}(i["default"]);t["default"]=c},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(281),s=n(r(436)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this,n=r.config,a=r.getFromEnv("dataSource").chart;n.baseFontFamily=(0,o.pluck)(t.baseFontFamily,a.basefont,"Verdana,sans"),n.baseFontSize=(0,o.pluckNumber)(t.baseFontSize,a.basefontsize,10),n.baseFontSize=this.computeFontSize((0,o.pluckFontSizeMaintainUnit)(t.baseFontSize,a.basefontsize,10)),n.baseFontColor=(0,o.pluck)(t.baseFontColor,a.basefontcolor,"595959"),n.skipGraphics=!0,r.createListContainer()},r.createListContainer=function(){this.attachChild(s["default"],"listContainer","listContainer").configure()},r.appendInMenu=function(e){void 0===e&&(e=[]);var t,r,n=this.getChild("listContainer");for(r=e.length,t=0;t<r;t++)n.addItem(e[t]);this.config.skipGraphics=!1},t}(i["default"]);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s=n(r(437)),l=r(430),c=r(289),u="auto",d="block",h="none";function f(e,t){var r,n,a,i;if(void 0===t&&(t={}),(n=e.attachChild(s["default"],"item",t.id)).configure(t),t.menu instanceof Array&&(i=t.menu.length))for(r=n.attachChild(p,"subContainer","subContainer"),e.config.hasSubMenu=!0,r.configure(),a=0;a<i;a++)r.addItem(t.menu[a])}(0,c.addDep)({name:"manuItemContainerAnimation",type:"animationRule",extension:{"*.menuItemContainer.menuItemContainer":null}});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(){var e=this.config;this.setStyle(),e.counter=0,e.hasSubMenu=!1,e._defaultStyle={position:"absolute","z-index":50,top:0+o.PXSTRING,right:u,left:u,overflow:"hidden",background:"#ffffff",border:"1px solid #646464","box-shadow":"#999999 2px 2px 5px",padding:"5px 3px",display:"none"}},r.setStyle=function(e){void 0===e&&(e={});var t=this.config;t.hoverOverStyle=e.hoverOverStyle||{background:"#333333",color:"#FFFFFF",cursor:o.POINTER},t.hoverOutStyle=e.hoverOutStyle||{background:"#FFFFFF",color:"#000000"}},r.show=function(){var e=this,t=e.getLinkedParent().config,r=(0,o.pluckNumber)(t.scale,1.5),n=t.x,a=t.y,i=t.width*r,s=t.height*r,l=+e.getFromEnv("chart").getFromEnv("chartWidth"),c=e.getGraphicalElement("menu","menu").element,h=c.style;clearTimeout(e.config.hideTimer),h.display=d,c.offsetWidth+n>l?(h.left=u,h.right=l-n-i+o.PXSTRING):(h.left=n+o.PXSTRING,h.right=u),h.top=a+s+5+o.PXSTRING,h.bottom=u,h.display=d},r.hide=function(e){void 0===e&&(e={});var t,r=this.getGraphicalElement("menu","menu").element;e.instant?r.style.display=h:(t=(0,o.pluckNumber)(e.timeout,l.DEFAULT_TIMEOUT),this.config.hideTimer=setTimeout(function(){r.style.display=h},t))},r.addItem=function(e){void 0===e&&(e={}),f(this,e)},r.draw=function(){var e=this;e.addGraphicalElement({el:"html",attr:{type:"div"},css:e.config._defaultStyle,component:e,label:"menu",id:"menu"}),e.addEventListener("fc-mouseover",this.show),e.addEventListener("fc-mouseout",this.hide)},r.getName=function(){return"menuItemContainer"},r.getType=function(){return"menuItemContainer"},t}(i.SmartRenderer);t["default"]=p},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=r(430),s=r(297);(0,r(289).addDep)({name:"manuItemAnimation",type:"animationRule",extension:{"*.menuItem.menuItem":null}});var l=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,r=this.getLinkedParent().getLinkedParent().config;t.name=e.name,t.action=e.action&&e.action.toLowerCase()||o.CLICK,t.eventMap={},t.style={padding:"3px 8px",fontFamily:r.baseFontFamily,fontSize:r.baseFontSize+i.PXSTRING,color:"#000000",position:"static",display:"inline",float:"left",background:"#FFFFFF"},t.pointerStyle={padding:"0px 4px 3px",fontFamily:r.baseFontFamily,fontSize:r.baseFontSize+3+i.PXSTRING,color:"#000000",position:"static",float:"left"},t.itemType=e.menu instanceof Array&&e.menu.length?"subMenu":"item","item"===t.itemType?t.handler=e.handler||i.stubFN:t.handler=i.stubFN,t.hoverOverStyle=e.hoverOverStyle||{},t.hoverOutStyle=e.hoverOutStyle||{}},r.applyStyle=function(e){void 0===e&&(e="mouseover");var t=this,r=t.getLinkedParent().config,n=t.getGraphicalElement("menuItem","menuItem"),a=t.getGraphicalElement("container","container"),i=t.getGraphicalElement("menuPointer","menuPointer");switch(e){case"mouseover":n.css(r.hoverOverStyle),a.css(r.hoverOverStyle),i&&i.css(r.hoverOverStyle);break;case"mouseout":n.css(r.hoverOutStyle),a.css(r.hoverOutStyle),i&&i.css(r.hoverOutStyle)}},r.draw=function(){var e=this,t=e.config,r=e.getLinkedParent();e.addGraphicalElement({el:"html",attr:{type:"div"},css:{display:"block",position:"static",overflow:"hidden",height:"100%",width:"100%",background:"#FFFFFF"},container:{id:"menu",label:"menu",isParent:!0},component:e,label:"container",id:"container"}),r.config.hasSubMenu&&e.addGraphicalElement({el:"html",attr:{type:"div",text:"◂"},css:t.pointerStyle,container:{id:"container",label:"container"},component:e,label:"menuPointer",id:"menuPointer"},!0),e.addGraphicalElement({el:"html",attr:{type:"span",text:t.name},css:t.style,container:{id:"container",label:"container"},component:e,label:"menuItem",id:"menuItem"},!0),e._mouseOverEvent||(e._mouseOverEvent=function(){e.applyStyle("mouseover")}),e._mouseOutEvent||(e._mouseOutEvent=function(){e.applyStyle("mouseout")}),e._clickEvent||(e._clickEvent=function(){"item"===e.config.itemType&&(r.hide({instant:!0}),t.handler())}),e.addEventListener("fc-mouseover",e._mouseOverEvent),e.addEventListener("fc-mouseout",e._mouseOutEvent),e.addEventListener("fc-click",e._clickEvent)},r.getName=function(){return"menuItem"},r.getType=function(){return"menuItem"},t}(s.SmartRenderer);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(281),s="normal",l={left:"start",right:"end",center:"middle"},c={top:o.POSITION_TOP,middle:o.POSITION_MIDDLE,bottom:o.POSITION_BOTTOM},u={0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},d=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.font="Verdana, sans",t.rotateText=0},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.font=(0,o.pluck)(t.font,r.font),r.fontSize=(0,o.pluckFontSize)(t["font-size"],t.fontSize,10)*r.scale,r.fontStyle=(0,o.pluck)(t["font-style"],t.fontStyle,s),r.fontWeight=(0,o.pluck)(t["font-weight"],t.fontWeight,s),r.rotateText=(0,o.pluckNumber)(t.rotateText,r.rotateText),r.rotateAngle=parseFloat(u[(0,o.pluck)(t.rotateAngle&&t.rotateAngle.toLowerCase(),"0")])},r.getTextBound=function(){var e=this.config,t=[];return e.showTextBound&&(t=[(0,o.convertColor)(e.fill),e.borderColor,e.borderThickness,2,e.radius]),t},r.getLogicalSpace=function(){var e,t=this,r=t.config,n=(r.width,r.height,r.marginTop),a=r.marginLeft,i=r.marginRight,o=r.marginBottom;return{width:(e=t.getFromEnv("smartLabel").getOriSize(t.config.text,!1)).width,height:e.height,marginTop:n,marginLeft:a,marginRight:i,marginBottom:o}},r.draw=function(){var e,t=this,r=t.config;r.text&&(e={x:r.x,y:r.y,text:r.text,fill:(0,o.convertColor)(r.labelFill),"text-bound":t.getTextBound(),"font-style":r.fontStyle,"font-weight":r.fontWeight,"font-family":r.font,"font-size":r.fontSize,"text-anchor":l[r.hAlign],"vertical-align":c[r.vAlign],transform:r.rotateText?(0,o.getSuggestiveRotation)(r.rotateAngle,r.x,r.y):"t0,0"},!r.isHidden&&t.addGraphicalElement({el:"text",attr:e,component:t,container:{id:"group",label:"group",isParent:!0},label:"text",id:"label"}))},t}(i["default"]);t["default"]=d},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(429)),o=r(281),s=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var r=t.prototype;return r.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isVertical=1},r.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var r=this.config;r.isVertical=(0,o.pluckNumber)(t.isVertical,r.isVertical)},r.draw=function(){var e=this,t=e.config,r=t.x,n=t.y,a=t.width,i=t.height,o={path:t.isVertical?["M",r+a/2,n,"v",i]:["M",r,n,"h",a],stroke:t.stroke,"stroke-width":t.strokeWidth,"stroke-linecap":"round"};!t.isHidden&&e.addGraphicalElement({el:"path",attr:o,component:e,container:{id:"group",label:"group",isParent:!0},css:t.css,label:"path",id:"path"})},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s="#eeeeee",l=function(e){e.manageSpace&&e.manageSpace()},c=function(e){function t(t){var r;return(r=e.call(this,t)||this).props={},r}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(e){void 0===e&&(e={});var t=this,r=t.config,n=t.getFromEnv("chartConfig");t.__setDefaultConfig(),this.props.width=(0,o.pluckNumber)(e.width,0),this.props.height=(0,o.pluckNumber)(e.height,0),r.orientation=(0,o.pluck)(e.toolbarorientation,r.orientation),r.hPadding=(0,o.pluck)(e.toolbarhpadding,r.hPadding),r.vPadding=(0,o.pluck)(e.toolbarvpadding,r.vPadding),r.backgroundcolor=(0,o.pluck)(e.toolbarbackgroundcolor,r.backgroundcolor),r.backgroundalpha=(0,o.pluck)(e.toolbarbackgroundalpha,r.backgroundalpha),r.bordercolor=(0,o.pluck)(e.toolbarbordercolor,r.bordercolor),r.borderalpha=(0,o.pluck)(e.toolbarborderalpha,r.borderalpha),r.borderthickness=(0,o.pluck)(e.toolbarborderthickness,r.borderthickness),r.hDirection=(0,o.pluckNumber)(e.toolbarhdirection,"r"===n.toolbarHAlign?-1:1),r.vDirection=(0,o.pluckNumber)(e.toolbarvdirection,"b"===n.toolbarBAlign?-1:1),r.hAlign=(0,o.pluck)(e.hAlign,"center").toLowerCase(),r.vAlign=(0,o.pluck)(e.vAlign,"middle").toLowerCase(),r.marginTop=(0,o.pluckNumber)(e.marginTop,e.spacing,r.marginTop),r.marginLeft=(0,o.pluckNumber)(e.marginLeft,e.spacing,r.marginLeft),r.marginRight=(0,o.pluckNumber)(e.marginRight,e.spacing,r.marginRight),r.marginBottom=(0,o.pluckNumber)(e.marginBottom,e.spacing,r.marginBottom)},r.__setDefaultConfig=function(){var e=this.config;e.orientation="horizontal",e.hPadding=0,e.vPadding=0,e.backgroundcolor=s,e.backgroundalpha=0,e.bordercolor=s,e.borderalpha=0,e.borderthickness=1,e.spacing=2.5,e.marginTop=2.5,e.marginLeft=2.5,e.marginRight=2.5,e.marginBottom=2.5},r.getLogicalSpace=function(){var e=this,t=e.config,r=e.props,n=0,a=0;return e.getChildren("tool")&&e.getChildren("tool").length&&(e.getChildren("tool").forEach(function(e){if(!e.getState("removed")){var r=e.getLogicalSpace(),i=r.width,s=r.height,l=r.marginTop,c=r.marginLeft,u=r.marginRight,d=r.marginBottom;"horizontal"===t.orientation?(i!==o.UNDEF&&(n+=i+(u||0)+(c||0)),a<(s=s+(l||0)+(d||0))&&(a=s)):(s!==o.UNDEF&&(a+=s+(l||0)+(d||0)),n<(i=i+(u||0)+(c||0))&&(n=i))}}),n+=2*t.hPadding,a+=2*t.vPadding,r.width=r.width>n?r.width:n,r.height=r.height>a?r.height:a),{width:n,height:a,marginTop:t.marginTop,marginLeft:t.marginLeft,marginRight:t.marginLeft,marginBottom:t.marginLeft}},r.manageSpace=function(){var e,t=this,r=this.getChildren("tool")||[];for(var n in e="horizontal"===this.config.orientation?t._placeToolHorizontally():t._placeToolVertically())e.hasOwnProperty(n)&&t.getChild(n).setDimension(e[n]);r.forEach(l)},r._placeToolHorizontally=function(){var e,t,r,n=this,a=n.config,i=n.props,o=a.hPadding,s=i.width-a.hPadding,l={},c={left:[],right:[],center:[]},u={left:0,right:0,center:0};return n.getChildren("tool")&&n.getChildren("tool").length&&((a.hDirection>0?n.getChildren("tool"):n.getChildren("tool").slice(0).reverse()).forEach(function(e){if(!e.getState("removed")){var t=e.getAlignment().hAlign,r=e.getLogicalSpace(),o=r.width,s=r.height,d=r.marginTop,h=r.marginLeft,f=r.marginRight,p=r.marginBottom,g=e.getId();u[t]+=o+(h||0)+(f||0),c[t].push(g),l[g]={},l[g].y=n.props.y+d+a.vPadding+(i.height-2*a.vPadding-(s+p+d))/2}}),c.left.forEach(function(e){var t=n.getChild(e).getLogicalSpace(),r=t.width,i=t.marginLeft,s=t.marginRight;o+=i||0,l[e].x=n.props.x+a.hPadding+o,o+=r+(s||0)}),c.right.reverse().forEach(function(e){var t=n.getChild(e).getLogicalSpace(),r=t.width,i=t.marginLeft,o=t.marginRight;s-=r+(o||0),l[e].x=n.props.x+a.hPadding+s,s-=i||0}),e=[u.left+a.hPadding,i.width-(u.right+a.hPadding)],t=Math.abs(e[0]-e[1]),r=e[0]+t/2-u.center/2,c.center.forEach(function(e){var t=n.getChild(e).getLogicalSpace(),i=t.width,o=t.marginLeft,s=t.marginRight;r+=o||0,l[e].x=n.props.x+a.hPadding+r,r+=i+s||0})),l},r.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},r._placeToolVertically=function(){var e,t,r,n=this,a=n.config,i=n.props,o=a.vPadding,s=i.height-a.vPadding,l={top:[],middle:[],bottom:[]},c={top:0,middle:0,bottom:0},u={};return n.getChildren("tool")&&n.getChildren("tool").length&&((a.vDirection>0?n.getChildren("tool"):n.getChildren("tool").reverse()).forEach(function(e){if(!e.getState("removed")){var t=e.getAlignment().vAlign,r=e.getLogicalSpace(),o=r.width,s=r.height,d=r.marginTop,h=r.marginLeft,f=r.marginRight,p=r.marginBottom,g=e.getId();c[t]+=s+(d||0)+(p||0),l[t].push(e.getId()),u[g]={},u[g].x=n.props.x+h+a.hPadding+h+(i.width-2*a.hPadding-(o+h+f))/2}}),l.top.forEach(function(e){var t=n.getChild(e).getLogicalSpace(),r=t.height,i=t.marginTop,s=t.marginBottom;o+=i||0,u[e].y=n.props.y+a.vPadding+o,o+=r+(s||0)}),l.bottom.reverse().forEach(function(e){var t=n.getChild(e).getLogicalSpace(),r=t.height,i=t.marginTop,o=t.marginBottom;s-=r+(o||0),u[e].y=n.props.y+a.vPadding+s,s-=i||0}),e=[c.top+a.vPadding,i.height-(c.bottom+a.vPadding)],t=Math.abs(e[0]-e[1]),r=e[0]+t/2-c.middle/2,l.middle.forEach(function(e){var t=n.getChild(e).getLogicalSpace(),i=t.height,o=t.marginTop,s=t.marginBottom;r+=o||0,u[e].y=n.props.y+a.vPadding+r,r+=i+s||0})),u},r.setDimension=function(e){void 0===e&&(e={}),e.x!==o.UNDEF&&(this.props.x=e.x),e.y!==o.UNDEF&&(this.props.y=e.y),e.width!==o.UNDEF&&(this.props.width=e.width),e.height!==o.UNDEF&&(this.props.height=e.height)},r.getDimension=function(){return this.props},r.draw=function(){var e=this,t=e.config;e.addGraphicalElement({id:"group",el:"group",attr:{name:"toolbar"},container:{id:"toolbar-master",isParent:!0},component:e,label:"group"}),e.addGraphicalElement({id:"carpet",el:"rect",attr:Object.assign({fill:(0,o.toRaphaelColor)({color:t.backgroundcolor,alpha:t.backgroundalpha}),stroke:(0,o.toRaphaelColor)({color:t.bordercolor,alpha:t.borderalpha}),"stroke-width":t.borderthickness},e.getDimension()),container:{label:"group",id:"group"},component:e,label:"carpet"})},r.getName=function(){return"toolbar"},r.getType=function(){return"Toolbar"},t}(i.SmartRenderer);t["default"]=c},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=function(e){function t(){var t,r=t=e.call(this)||this;return r._toggle=function(){r.isEnabled()&&r.zoomOut()},t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomResetButton"},r.configure=function(){e.prototype.configure.call(this);var t=this,r=t.getLinkedParent();t.configureButton(),t.disable(),r.registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:t.dependancyFn,component:t}])},r.configureButton=function(){var e=this;!e.config.skipGraphics&&e.setLinkedItem("button",e.createButton({icon:"resetIcon",handlers:{click:e._toggle},tooltext:e.config.tooltext,state:"disabled"})),e.disable()},r.enable=function(){this.config.state="activated",e.prototype.enable.call(this)},r.zoomOut=function(){var e,t,r,n,a,i,o,s=this,l=s.config.hookFn,c={};s.getFromEnv("axesObArr").forEach(function(u){e=s.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],(o=u.stack[0])&&(s.getFromEnv("chart").getFromEnv("animationManager").setAnimationState("zoomOut"),l&&l(o.minValue,o.maxValue),u.isY?(a=o.minValue,i=o.maxValue):(r=o.minValue,n=o.maxValue,c=s.constructor._getZoomInfo(r,n,u.axis)),u.axis.setVisibleConfig(o.minValue,o.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw(),u.stack.length=0)}),s._raiseZoomEvents("zoomout","zoomreset",Object.assign(c,{level:1,startX:r,endX:n,startY:a,endY:i})),s.disable()},r.dependancyFn=function(e){"zoomin"===e.type?this.enable():"zoomout"===e.type&&(this._checkStackLen()||this.disable())},t}(i["default"]);t["default"]=o},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=function(e){function t(){var t,r=t=e.call(this)||this;return r._toggle=function(){r.isEnabled()&&r.zoomOut()},t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomOutButton"},r.configureButton=function(){var e=this;!e.config.skipGraphics&&e.setLinkedItem("button",e.createButton({icon:"zoomOutIcon",handlers:{click:e._toggle},tooltext:e.config.tooltext,state:"activated"}))},r.zoomOut=function(){var e,t,r,n,a,i,o,s,l=this,c=l.config.hookFn,u={},d=0;l.getFromEnv("axesObArr").forEach(function(h){e=l.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],r=h.stack.pop(),n=h.stack.length,d+=n,r&&(h.isY?(o=r.minValue,s=r.maxValue):(a=r.minValue,i=r.maxValue,u=l.constructor._getZoomInfo(a,i,h.axis)),c&&c(r.minValue,r.maxValue),h.axis.setVisibleConfig(r.minValue,r.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw())}),l._raiseZoomEvents("zoomout","zoomedout",Object.assign(u,{level:n,startX:a,endX:i,startY:o,endY:s})),d||this.disable()},t}(n(r(441))["default"]);t["default"]=i},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=function(e){function t(){var t,r=t=e.call(this)||this;return r._toggle=function(){r.isEnabled()&&r.zoom()},t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"zoomInButton"},r.configure=function(){e.prototype.configure.call(this);var t=this,r=t.config;r.stepZoom=r.stepZoom||5.33,!r.skipGraphics&&t.setLinkedItem("button",t.createButton({icon:"zoomInIcon",handlers:{click:t._toggle},tooltext:t.config.tooltext,state:"activated"})),t.enable()},r.zoom=function(){var e,t,r,n,a,i,o,s,l,c=this,u={},d=c.config,h=d.hookFn,f=!1,p=Math.pow(10,d.zoomDecimalLimit)||1;c.getFromEnv("animationManager").setAnimationState("zoom"),c.getFromEnv("axesObArr").forEach(function(g){r=g.axis,e=r.getVisibleConfig(),(t=Math.round((e.maxValue-e.minValue)/d.stepZoom*p)/p)>Number.EPSILON&&(g.stack.push(e),g.isY?(i=e.minValue+t,o=e.maxValue-t):(n=e.minValue+t,a=e.maxValue-t,u=c.constructor._getZoomInfo(n,a,r)),s=g.stack.length+1,h&&h(e.minValue,e.maxValue),l=r.setVisibleConfig(e.minValue+t,e.maxValue-t),f=f||l)}),f&&c._raiseZoomEvents("zoomin","zoomedin",Object.assign(u,{level:s,startX:n,endX:a,startY:i,endY:o}))},t}(n(r(424))["default"]);t["default"]=i},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=r(281),s=function(e){function t(){var t,r=t=e.call(this)||this;return r.controlArr=[{nativeInteraction:["fc-dbclick"],callback:r.zoom.bind(r),component:r}],t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dbTapZoom"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.setControl=function(){var e=this,t=e.controlArr,r=e.getLinkedParent();r.releaseControl(t),e.isEnabled()&&r.getControl(t)},r.zoom=function(e){var t,r,n,a,i,s,l,c,u,d,h=this,f=h.getFromEnv("chart"),p=(0,o.getMouseCoordinate)(f.getLinkedItem("container"),e,f),g=h.config,m=g.hookFn,v={},b=!1,y=Math.pow(10,g.zoomDecimalLimit)||1;f.getFromEnv("animationManager").setAnimationState("zoom"),h.getFromEnv("axesObArr").forEach(function(e){t=e.axis,r=t.getValue(e.isY?p.chartY:p.chartX),a=t.getVisibleConfig(),n=function(e,t,r,n){var a=t-e.minValue,i=e.maxValue-t;return{min:Math.round((t-a/r*(r-1))*n)/n,max:Math.round((t+i/r*(r-1))*n)/n}}(a,r,g.stepzoom,y),e.isY?(c=n.min,u=n.max):(s=n.min,l=n.max,v=h.constructor._getZoomInfo(s,l,t)),t.getZoom()<=y&&(m&&"function"==typeof g.hookFn&&m(n.min,n.max),i=t.setVisibleConfig(n.min,n.max),b=b||i,e.stack.push(a),d=e.stack.length+1)}),b&&h._raiseZoomEvents("zoomin","zoomedin",Object.assign(v,{level:d,startX:s,endX:l,startY:c,endY:u},e.originalEvent))},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=r(281),s=r(293),l=r(289),c="activated",u=Math,d=u.min,h=u.max,f=u.abs,p="rgba(255,0,0,"+(o.isIE?.002:1e-6)+")",g=function(e){function t(){var t,r=t=e.call(this)||this;return r.controlArr=[{nativeInteraction:["fc-dragstart"],callback:r.dragstart.bind(r),component:r},{nativeInteraction:["fc-dragmove"],callback:r.dragmove.bind(r),component:r},{nativeInteraction:["fc-dragend"],callback:r.dragend.bind(r),component:r}],r.toggle=r.toggle.bind(r),t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"dragPin"},r.configure=function(){e.prototype.configure.call(this);var t=this,r=t.getFromEnv("chartConfig"),n=t.getFromEnv("dataSource").chart,a=t.config;a.attr=a.attr||{stroke:"#3399ff",fill:"#b9d5f1","stroke-width":0},a.pinAttr=a.pinAttr||{"stroke-width":0,stroke:"none",fill:"#b9d5f1","shape-rendering":"crisp"},a.borderWidth=r.borderWidth||(r.borderWidth=(0,o.pluckNumber)(n.showborder,1)?(0,o.pluckNumber)(n.borderthickness,1):0),!t.config.skipGraphics&&t.setLinkedItem("button",t.createButton({icon:"pinModeIcon",tooltext:(0,o.pluckNumber)(n.showtoolbarbuttontooltext,1)?(0,o.pluck)(t.config.tooltext,"Pin mode"):"",handlers:{click:t.toggle},state:c})),t.getLinkedParent().registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:t.dependancyFn,component:t}]),t.disable(undefined,!1)},r.enable=function(e,t){var r=this,n=r.config;!0!==n.enabled&&(n.enabled=!0,n.state="pressed",r.fireEvent("pinenabled"),r.setControl(),!t&&r.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!0},e&&e.originalEvent))},r.dependancyFn=function(e){"zoomin"!==e.type&&"zoomout"!==e.type||this.disable(e)},r.draw=function(){var e,t=this,r=t.config;t.createPin(),t.config.pinElemVisible&&t.addJob("resizePinElem",function(){e=t.getFromEnv("xAxis")[0],t.pinRangePixels(e.getPixel(r.boxStartValue),e.getPixel(r.boxEndValue))},s.priorityList.postRender)},r._setConfig=function(){var e=this,t=e.getFromEnv("chart"),r=e.getFromEnv("chartConfig"),n=e.config,a=Object.assign({},n.attr||{}),i=a["stroke-width"]=(0,o.pluckNumber)(a.strokeWidth,a["stroke-width"],1),s=(0,o.getPosition)(t.getFromEnv("chart-container"),t);n.zoomX="horizontal"===n.orientation||"both"===n.orientation,n.zoomY="vertical"===n.orientation||"both"===n.orientation,n.canvasY=r.canvasTop,n.canvasX=r.canvasLeft,n.canvasW=r.canvasWidth,n.canvasH=r.canvasHeight,n.canvasX2=r.canvasLeft+r.canvasWidth,n.canvasY2=r.canvasTop+r.canvasHeight,n.strokeWidth=i,n.chartPosLeft=s.left,n.chartPosTop=s.top},r.disable=function(e,t){var r=this,n=r.config,a=r.getContainer("pingroup"),i=r.getGraphicalElement("pintracker");!1!==n.enabled&&(n.enabled=!1,n.state=c,a&&a.hide(),i&&i.hide(),r.fireEvent("pindisabled"),!t&&r.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!1},e&&e.originalEvent),r.setControl(),n.pinElemVisible=!1)},r.setControl=function(){var e=this,t=e.getLinkedParent(),r=e.controlArr,n=e.getLinkedItem("button");t.releaseControl(r),e.isEnabled()&&t.getControl(r),n&&n.setCurrentState(e.config.state)},r.createPin=function(){var e,t,r,n,a,i=this,s=i.getFromEnv("chart"),c=i.getFromEnv("chartConfig"),u=i.getFromEnv("animationManager"),d=c.canvasTop,h=c.canvasBottom,f=c.canvasHeight,g=c.canvasLeft,m=i.config.borderWidth,v=c["clip-pinrect"],b=i.getContainer("pingroup"),y=i.getContainer("pinElemGroup"),w=i.getGraphicalElement("pinrect"),x=i.getGraphicalElement("pintracker");n=c._visw=c.canvasWidth,a=c._visx=c.canvasLeft,e=(0,l.getDep)("redraphael","plugin").crispBound(0,d-h,0,f,m),v=c["clip-pinrect"]=[e.x,d,e.width,e.height],b||i.addContainer("pingroup",b=u.setAnimation({el:"group",finalAttr:{name:"zoompin"},component:i,label:"group"}).insertBefore(s.getChildContainer("plotGroup")).hide()),b.transform(c._pingrouptransform=["T",a,h]),y||i.addContainer("pinElemGroup",y=u.setAnimation({el:"group",attr:{name:"zoompinelements"},component:i,container:b,label:"group"})),i.config.pinAttr.x=0,i.config.pinAttr.y=d-h,i.config.pinAttr.width=n,i.config.pinAttr.height=f,t=u.setAnimation({el:w||"rect",attr:i.config.pinAttr,container:b,component:i}),w||i.addGraphicalElement("pinrect",t),r=u.setAnimation({el:x||"rect",attr:{transform:b.transform(),x:0,y:d-h,width:0,height:f,stroke:"none",fill:p,cursor:o.hasSVG?"ew-resize":"e-resize"},container:s.getChildContainer("trackerGroup"),component:i}).hide(),x||i.addGraphicalElement("pintracker",r),r.undrag(),r.drag(function(e){var t=e.data[0],n=a+t+this.__pindragdelta,s=this.__pinboundleft,l=this.__pinboundright,c=this.data("cliprect").slice(0);n<s?n=s:n>l&&(n=l),b.transform(["T",n,h]),r.transform(b.transform()),o.hasSVG||(c[0]=c[0]+n-a-this.__pindragdelta,u.setAnimation({el:b,attr:{"clip-rect":c},component:i})),this.__pindragoffset=t},function(){this.__pinboundleft=0-v[0]+a+g,this.__pinboundright=this.__pinboundleft+n-v[2],this.data("cliprect",b.attr("clip-rect")),b._.clipispath=!0},function(){b._.clipispath=!1,this.__pindragdelta+=this.__pindragoffset,delete this.__pindragoffset,delete this.__pinboundleft,delete this.__pinboundright})},r.pinRangePixels=function(e,t,r){var n,a,i,o,s,l=this,c=l.getFromEnv("chart"),u=c.config,d=u.canvasLeft,h=l.getFromEnv("xAxis")[0],f=h.getLimit(),p=f.max,g=f.min,m=l.getContainer("pingroup"),v=u["clip-pinrect"],b=l.getFromEnv("animationManager"),y=u._pingrouptransform,w=[],x=t-e,_=l.getGraphicalElement("pintracker");if(c.iterateComponents(function(e){e.getType&&"dataset"===e.getType()&&w.push(e)}),m&&l.getGraphicalElement("pinrect")){for(e===t&&(m.hide(),_.hide()),s=w.length;s--;)w[s].fireEvent("createpinelements",{group:l.getContainer("pinElemGroup")});v[0]=e+d,v[2]=x,b.setAnimation({el:m,attr:{"clip-rect":v,transform:y},component:l}).show(),_.__pindragdelta=0,_.show(),b.setAnimation({el:_,attr:{transform:y,x:e,width:x},component:l}),l.config.pinElemVisible=!0,n=(n=Math.round(h.getValue(e+d,{wrtVisible:!0})))<g?g:n,a=(a=Math.round(h.getValue(t+d,{wrtVisible:!0})))>p?p:a,i=h.getLabel(n).label,o=h.getLabel(a).label,r&&c.fireChartInstanceEvent("pinned",{startIndex:n||Math.abs(n),endIndex:a||Math.abs(a),startLabel:i,endLabel:o},r.originalEvent)}},r.dragstart=function(e){this._setConfig();var t,r,n=this,a=n.getFromEnv("animationManager"),i=n.getFromEnv("chart-container"),s=n.config,l=s.attr,c=n.getGraphicalElement("resizeBox"),u=e.originalEvent,d=s.layerX=(u.pageX||u.data[0])-s.chartPosLeft,h=s.layerY=(u.pageY||u.data[1])-s.chartPosTop,f=s.canvasY,p=s.canvasX,g=s.canvasX2,m=s.canvasY2;t=(0,o.getPosition)(i),s.chartPosLeft=t.left,s.chartPosTop=t.top,s.oy=h,s.ox=d,s.allowMove=!1,l.x=0,l.y=0,l.width=0,l.height=0,r=a.setAnimation({el:c||"rect",attr:l,container:n.getFromEnv("chart").getChildContainer("trackerGroup"),component:n,callback:function(){this.show()}}),c||n.addGraphicalElement("resizeBox",r),d>p&&d<g&&h>f&&h<m&&(s.allowMove=!0),s.dragstartFn&&"function"==typeof s.dragstartFn&&s.dragstartFn(e)},r.dragmove=function(e){this._setConfig();var t=this,r=t.config,n=t.getFromEnv("animationManager"),a=e.originalEvent,i=a.pageX||a.data[2],o=a.page||a.data[3],s=r.layerX=i-r.chartPosLeft,l=r.layerY=o-r.chartPosTop,c=s-r.ox,u=l-r.oy,p=r.ox,g=r.oy,m=r.zoomX,v=r.zoomY,b=r.strokeWidth,y=r.canvasW,w=r.canvasH,x=r.canvasY,_=r.canvasX,S=r.canvasX2,k=r.canvasY2;n.setAnimationState("dragMove"),r.allowMove&&(r.isDragged||(r.isDragged=1),c=-(p-d(p-(p-h(p+c,_)),S)),u=-(g-d(g-(g-h(g+u,x)),k)),n.setAnimation({el:t.getGraphicalElement("resizeBox"),attr:{x:(m?d(p,p+c):_)+.5*b,y:(v?d(g,g+u):x)+.5*b,width:m?f(c):y,height:v?f(u):w},component:t}),r.dragmoveFn&&"function"==typeof r.dragmoveFn&&r.dragmoveFn(e))},r.dragend=function(e){this._setConfig();var t,r,n=this,a=n.getFromEnv("chart"),i=n.config,o=n.getFromEnv("xAxis")[0],s=n.getGraphicalElement("resizeBox"),l=i.bBox;a.getFromEnv("animationManager").setAnimationState("dragEnd"),l=s.getBBox(),i.isDragged&&(i.dragendFn&&"function"==typeof i.dragendFn&&i.dragendFn(e,{chart:a,selectionLeft:l.x,selectionTop:l.y,selectionHeight:l.height,selectionWidth:l.width,originalEvent:e.originalEvent}),i.isDragged=0),s.hide(),delete i.oy,delete i.ox,(t=l.x-a.config.canvasLeft)!==(r=t+l.width)&&(i.boxStartValue=o.getValue(t),i.boxEndValue=o.getValue(r),n.pinRangePixels(t,r,e))},t}(i["default"]);t["default"]=g},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=r(281),s=function(e){function t(){var r,n=r=e.call(this)||this;return n.controlArr=[{nativeInteraction:["fc-dragstart","fc-dragmove"],callback:n.onDrag.bind(n),component:n},{nativeInteraction:["fc-dragend"],callback:n.onDragEnd.bind(n),component:n}],n.toggle=n.toggle.bind(n),o.isFirefox&&n.controlArr.push({nativeInteraction:["fc-mousedown"],callback:t.mousedown,component:n}),r}(0,a["default"])(t,e),t.mousedown=function(e){e&&e.preventDefault()};var r=t.prototype;return r.configure=function(){e.prototype.configure.call(this);var t=this;!t.config.skipGraphics&&t.setLinkedItem("button",t.createButton({icon:"panModeIcon",tooltext:t.config.tooltext,handlers:{click:t.toggle},state:"activated"})),t.getLinkedParent().registerDependancy([{derivedInteraction:["zoomin","zoomout","dragzoomenabled","dragzoomdisabled"],callback:t.dependancyFn,component:t}]),t.disable(o.UNDEF,!1)},r.getName=function(){return"dragPan"},r.enable=function(e,t){var r=this;r._checkStackLen()&&!0!==r.config.enabled&&(r.config.enabled=!0,r.config.state="pressed",r.fireEvent("panenabled"),!t&&r.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{panModeActive:!0},e&&e.originalEvent),r.setControl())},r.disable=function(e,t){var r=this;!1!==r.config.enabled&&(r.config.enabled=!1,r.config.state=r._checkStackLen()?"activated":"disabled",r.fireEvent("pandisabled"),!t&&r.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{panModeActive:!1},e&&e.originalEvent),r.setControl())},r.setControl=function(){var e=this,t=e.getLinkedParent(),r=e.getLinkedItem("button"),n=e.controlArr;t.releaseControl(n),e.isEnabled()&&t.getControl(n),r&&r.setCurrentState(e.isEnabled()?e.config.state:"disabled")},r.setDrag=function(e){this.config.isDragging=!!e},r.isDragging=function(){return!!this.config.isDragging},r.onDragEnd=function(){this.setDrag(!1),this.getFromEnv("chart").getContainer("parentgroup").attr({cursor:"default"})},r.onDrag=function(e){var t,r,n,a,i,o,s,l,c,u,d,h=this,f=function(e){var t=e;return t.originalEvent&&(t=t.originalEvent),t.type.match(/touch/)?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.type.match(/mouse|pointer/)?{x:t.pageX,y:t.pageY}:void 0}(e.originalEvent);(function(e){return!e.touches||1===e.touches.length})(e.originalEvent)&&(h.getFromEnv("chart").getContainer("parentgroup").attr({cursor:"move"}),this.getFromEnv("animationManager").setAnimationState("drag"),h.isDragging()?h.getFromEnv("axesObArr").forEach(function(e){var h,p;if(t=e.origConfig.minValue,r=e.origConfig.maxValue,i=e.axis,o=i.config.axisRange,s=i.getScale(),l=s.getRange(),c=s.getDomain(),u=(l[1]-l[0])/(c[1]-c[0]),h=f,p=e.startCoord,d={x:h.x-p.x,y:h.y-p.y},a=r-t,(n=-(n=e.isY?d.y/u:d.x/u))>0)n=Math.min(o.max-r,n);else{if(!(n<0))return;n=-Math.min(t-o.min,-n)}r=(t+=n)+a,i.setVisibleConfig(t,r)}):(h.getFromEnv("axesObArr").forEach(function(e){e.origConfig=e.axis.getVisibleConfig(),e.startCoord=f}),h.setDrag(!0)))},r.dependancyFn=function(e){var t=this;"zoomout"===e.type?!t._checkStackLen()&&t.disable():"zoomin"===e.type?t.enable(e):"dragzoomdisabled"===e.type?t._checkStackLen()&&t.enable(e):"dragzoomenabled"===e.type&&t.disable(e)},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=r(281),s=function(e){return e<0?-e:e},l=function(e){function t(){var t,r=t=e.call(this)||this;return r.controlArr=[{nativeInteraction:["fc-pinchstart"],callback:r.pinchstart.bind(r),component:r},{nativeInteraction:["fc-pinchmove"],callback:r.pinchmove.bind(r),component:r}],t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"pinchZoom"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.getCenter=function(e,t){var r=this.getFromEnv("chart"),n=(0,o.getMouseCoordinate)(r.getLinkedItem("container"),{pageX:(e.pageX+t.pageX)/2,pageY:(e.pageY+t.pageY)/2},r);return{x:n.chartX,y:n.chartY}},r.pinchmove=function(e){var t,r,n,a,i,o,l,c,u=this,d=e.originalEvent.data,h=d.distanceX,f=d.distanceY,p=u.config,g=p.touchConfig,m={},v=!1,b={},y=u.getFromEnv("chart"),w=u.getFromEnv("axesObArr"),x=Math.pow(10,p.zoomDecimalLimit)||1,_=y.getChildContainer().plotGroup;t=s(h/g.distanceX),r=s(f/g.distanceY),w.forEach(function(){_.transform(""),_.scale(t,r,g.center.x,g.center.y)}),clearTimeout(p.chartDraw),p.chartDraw=setTimeout(function(){_.transform(""),w.forEach(function(e){var s=e.axis,d=function(e,t,r,n,a){var i=e.getVisibleConfig(),o=e.getValue(t[n?"y":"x"]+e.getTranslation()),s=o-i.minValue,l=i.maxValue-o,c=e.config.axisRange;return{min:Math.round(Math.max(c.min,o-s/r)*a)/a,max:Math.round(Math.min(c.max,o+l/r)*a)/a}}(s,g.center,e.isY?r:t,e.isY,x),h=d.min,f=d.max,p=e.stack,y=s.getVisibleConfig(),w=s.getLimit(),_=p.length-1,S=p[_],k=Math.floor(h)===w.min&&Math.ceil(f)===w.max,C=s.getZoom()>=x;if(S)if(k)e.stack=[],m.zoomout=!0;else if(S.minValue>h&&S.maxValue<f){for(;S&&S.minValue>h&&S.maxValue<f;)p.pop(),S=p[--_];m.zoomout=!0}else C||(p.push(y),m.zoomin=!0);else k||C||(p.push(y),m.zoomin=!0);e.isY?(o=h,l=f):(a=h,i=f,b=u.constructor._getZoomInfo(a,i,s)),c=e.stack.length+1,n=s.setVisibleConfig(h,f),v=v||n}),v&&(m.zoomout&&u._raiseZoomEvents("zoomout","zoomedout",Object.assign(b,{level:c,startX:a,endX:i,startY:o,endY:l})),m.zoomin&&u._raiseZoomEvents("zoomin","zoomedin",Object.assign(b,{level:c,startX:a,endX:i,startY:o,endY:l}))),p.chartDraw=null},250)},r.pinchstart=function(e){var t,r=this,n=e.originalEvent.data,a=n;this.getFromEnv("animationManager").setAnimationState("touch"),a.center=r.getCenter(n.finger0,n.finger1),r.config.touchConfig=n,r.getFromEnv("axesObArr").forEach(function(e){t=e.axis,e.visibleConfig=t.getVisibleConfig(),e.centerVal=t.getValue(e.isY?a.center.y:a.center.x)})},r.setControl=function(){var e=this,t=e.getLinkedParent(),r=e.controlArr;t.releaseControl(r),e.isEnabled()&&t.getControl(r)},t}(i["default"]);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(424)),o=r(281),s=function(e){function t(){var t,r=t=e.call(this)||this;return r.controlArr=[{nativeInteraction:["fc-dragend"],callback:r.end.bind(r),component:r},{nativeInteraction:["fc-dragmove"],callback:r.move.bind(r),component:r},{nativeInteraction:["fc-dragstart"],callback:r.start.bind(r),component:r}],t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"swipeGesture"},r.configure=function(){e.prototype.configure.call(this),this.enable()},r.getPresentScrollValue=function(){var e=this.config.xAxis,t=e.getVisibleConfig(),r=e.getLimit(),n=t.maxValue-t.minValue,a=r.max-r.min;return(t.minValue-r.min)/(a-n)},r.start=function(e){var t,r,n=this,a=n.getFromEnv("chart"),i=n.config;t=(0,o.getMouseCoordinate)(a.getFromEnv("chart-container"),e.originalEvent,a),i.previousX=t.chartX,i.previousY=t.chartY,i.presentScrollValue=r=n.getPresentScrollValue(),a.fireChartInstanceEvent("scrollStart",{scrollPosition:r})},r.move=function(e){var t,r=this,n=r.config,a=r.getFromEnv("chart"),i=n.xAxis,s=a.getChildren("scrollBar")&&a.getChildren("scrollBar")[0],l=s&&s.getChildren("scrollAnchor")[0],c=i.config.axisRange,u=(0,o.getMouseCoordinate)(a.getFromEnv("chart-container"),e.originalEvent,a),d=u.chartX,h=u.chartY,f=s&&s.config&&!s.config.isHorizontal?(h-n.previousY)/n.plotDifference:(d-n.previousX)/n.plotDifference,p=i.getVisibleConfig(),g=n.previousScrollValue=n.presentScrollValue,m=p.minValue-f,v=n.axisMin,b=n.axisMax,y=p.maxValue-f;m<v&&v===p.minValue||y>b&&b===p.maxValue||(m<v?(y+=f,y-=f=p.minValue-v,m=v):b<y&&(m+=f,m+=f=b-p.maxValue,y=b),t=(m-c.min)/(c.max-c.min-(y-m)),l.config.scrollPosition=t,a.getFromEnv("animationManager").setAnimationState("scroll"),i.setVisibleConfig(m,y),a.setScrollBarDimension&&a.setScrollBarDimension(),s.asyncDraw(),a.fireChartInstanceEvent("onScroll",{scrollPosition:g}),a.fireEvent("onScroll",{scrollPosition:t}),n.previousX=d,n.previousY=h,n.presentScrollValue=r.getPresentScrollValue())},r.end=function(){var e=this.config;this.getFromEnv("chart").fireChartInstanceEvent("scrollEnd",{previousScrollPosition:e.previousScrollValue,scrollPosition:e.presentScrollValue})},r.setControl=function(){var e=this,t=e.getLinkedParent(),r=e.controlArr;t.releaseControl(r),e.isEnabled()&&t.getControl(r)},r.draw=function(){var e=this.config,t=this.getFromEnv("canvas").getAxes().filter(function(e){return!e.isY}),r=e.xAxis=t&&t[0]&&t[0].axis,n=r.config.axisRange;e.plotDifference=r.getPixel(1)-r.getPixel(0),e.axisMin=n.min,e.axisMax=n.max},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,r=window,a=r.navigator.userAgent,i=/msie/i.test(a)&&!r.opera,o=Math,s=o.min,l=o.round,c=r.parseFloat,u=String,d="none",h="stroke",f="rgba(192,192,192,"+(i?.002:1e-6)+")",p={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0};e.define&&e.define([{name:"button",button:function(t,r,n,a,i,o){var s,l=t,c=r,u=n,d=a,h=i,p=o,g=this,m=c,v=g.group("button",m),b=l.labelFill,y=l.symbolFill,w=l.fill,x=l.button[5],_=l.button[6],S=l.hoverFill,k=l.stroke,C=l["symbol-stroke"],A=l["stroke-width"],N=l["symbol-stroke-width"],E=l.config;if("object"==typeof l&&l.button){var L=l.button;l=L[0],c=L[1],u=L[2],d=L[3],h=L[4],m=L[5]}for(s in m=m||p,v._.button={bound:g.rect(v),tracker:g.rect(v).attr({fill:f,stroke:f,cursor:"pointer"}).data("compositeButton",v)},!e.is(h,"object")&&(h={}),e.fn.button.fn)v[s]=e.fn.button.fn[s];for(s in e.fn.button.ca)v.ca[s]=e.fn.button.ca[s];return E&&v.attr({config:E}),v.attr({"button-padding":[h.horizontalPadding,h.verticalPadding],"button-label":u,"button-label-size":x,"button-label-family":_,"button-symbol":d,"button-disabled":h.disabled||"false","button-symbol-position":h.symbolPosition,"button-symbol-padding":h.symbolPadding}).attr("button-repaint",[l,c,h.width,h.height,h.r]).attr({labelFill:b,symbolFill:y,fill:w,hoverFill:S,stroke:k,"symbol-stroke":C,"stroke-width":A,"stroke-linecap":"round","symbol-stroke-width":N})},data:{hoverin:function(){var e=this,t=e._.button,r=t.hoverbackIn,n=e._hover||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n.cursor&&t.tracker.attr("cursor",n.cursor),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),r&&r()):r&&!1===r(arguments)||e.attr("fill","hover"),e.hovered=!0},hoverout:function(){var e=this,t=e._.button,r=t.hoverbackOut,n=e._normal||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n.cursor&&t.tracker.attr("cursor",n.cursor),r&&r()):r&&!1===r(arguments)||e.attr("fill",e.pressed||e.active?"active":"normal"),e.hovered=!1},mousedown:function(){var e=this,t=e._.button,r=e._pressed||{};r.fill||r["fill-symbol"]||r.stroke||r["stroke-width"]||r.cursor||r.labelFill||r["symbol-stroke"]?(r.fill&&e.bottom.attr("fill",r.fill)&&!r["fill-symbol"]&&t.symbol.attr("fill",r.fill),r.stroke&&e.bottom.attr("stroke",r.stroke)&&t.symbol.attr("stroke",r.stroke),r["fill-symbol"]&&t.symbol.attr("fill",r["fill-symbol"]),r["stroke-width"]&&e.bottom.attr("stroke-width",r["stroke-width"])&&t.symbol.attr("stroke-width",r["stroke-width"]),r.labelFill&&t.label&&t.label.attr("fill",r.labelFill),r["symbol-stroke"]&&t.symbol.attr("stroke",r["symbol-stroke"]),r.cursor&&t.tracker.attr("cursor",r.cursor)):e.attr("fill","active"),e.pressed=!0},mouseup:function(){var e=this,t=e._.button,r=t.callback,n=e._normal||{};n.fill||n["fill-symbol"]||n.stroke||n["stroke-width"]||n.cursor||n.labelFill||n["symbol-stroke"]?(n.fill&&e.bottom.attr("fill",n.fill)&&!n["fill-symbol"]&&t.symbol.attr("fill",n.fill),n.stroke&&e.bottom.attr("stroke",n.stroke)&&t.symbol.attr("stroke",n.stroke),n["fill-symbol"]&&t.symbol.attr("fill",n["fill-symbol"]),n["stroke-width"]&&e.bottom.attr("stroke-width",n["stroke-width"])&&t.symbol.attr("stroke-width",n["stroke-width"]),n.labelFill&&t.label&&t.label.attr("fill",n.labelFill),n["symbol-stroke"]&&t.symbol.attr("stroke",n["symbol-stroke"]),n.cursor&&t.tracker.attr("cursor",n.cursor)):e.attr("fill",(e.hovered?"hover":e.active&&"active")||"normal"),e.pressed=!1,r&&r(arguments)},mousemove:function(){var e=this._.button.mousemove;e&&e(arguments)}},fn:{tooltip:function(){return e.el.tooltip&&e.el.tooltip.apply(this._.button.tracker,arguments),this},buttonclick:function(e,t){var r=t,n=this,a=n._.button;return r=r||n,a.callback=function(){return e.apply(r,arguments)},n},labelcss:function(){var e=this._.button,t=e.label;return e.cssArg=arguments,t&&t.css.apply(t,arguments),this.attr("button-repaint",this.attrs["button-repaint"])},buttonhover:function(e,t,r,n,a,i){var o=this,s=o._.button,l=r||o,c=n||o,u=i||o;return a&&(s.mousemove=function(){return a.apply(u,arguments)}),s.hoverbackIn=function(){return e.apply(l,arguments)},s.hoverbackOut=function(){return t.apply(c,arguments)},o},remove:function(){var t,r=this,n=r._.button;for(t in r.attr("button-disabled","true"),n)n[t]&&n[t].remove&&n[t].remove(),n[t]=null;delete r._.button,e.el.remove.apply(r,arguments)}},ca:{"button-active":function(e){var t=this;t.attr("fill",(t.active=!!e)?"active":t.hovered?"hover":"normal")},"button-disabled":function(e){var r=this,n=e,a=r.paper,i=r._.button,o=i.tracker,s=r.attrs["button-disabled"],l=a.button.data,c=r._disabled||{};if(s=p[s],(n=p[n])!==t&&n!==s)switch(n){case!0:c.fill||c.stroke||c["stroke-width"]||c.cursor?(c.fill&&r.bottom.attr("fill",c.fill)&&i.symbol.attr("fill",c.fill),c.stroke&&r.bottom.attr("stroke",c.stroke)&&i.symbol.attr("stroke",c.stroke),c["stroke-width"]&&r.bottom.attr("stroke-width",c["stroke-width"]&&i.symbol.attr("fill",c.fill)),c.cursor&&i.tracker.attr("cursor",c.cursor)):o.attr("fill","rgba(204,204,205,.5)"),o.off("fc-mousedown",l.mousedown).off("fc-unmouseup",l.mouseup).unhover(l.hoverin,l.hoverout).unmousemove(l.mousemove);break;case!1:o.attr("fill",f).on("fc-mousedown",l.mousedown,r).on("fc-mouseup",l.mouseup,r).hover(l.hoverin,l.hoverout,r,r).mousemove(l.mousemove,r)}},"button-label":function(e){var t=this,r=t._.button,n=t.attrs,a=e,i=r.label,o=r.cssArg,s=t.attrs["button-repaint"];(a=u(a||""))===d?i&&(r.label=i.remove()):a&&(!i&&(i=r.label=t.paper.text(t).insertBefore(r.tracker)),i.attr({text:a,"text-anchor":"middle","vertical-align":"middle"}),o&&o.length&&i.css.apply(i,o)),s&&n["button-label"]!==a&&t.attr("button-repaint",s)},"button-label-size":function(e){var t=this,r=t._.button,n=t.attrs,a=r.label,i=t.attrs["button-label-size"];a&&a.attr({"font-size":e}),i&&n["button-label-size"]!==e&&t.attr("button-label-size",i)},"button-label-family":function(e){var r=this,n=r._.button,a=r.attrs,i=e,o=n.label,s=r.attrs["button-label-family"];o&&(i===t&&(i="sans-serif"),o.attr({"font-family":i}),s&&a["button-label-family"]!==i&&r.attr("button-label-family",s))},"button-symbol":function(e){var t=this,r=t._.button,n=e,a=r.symbol,i=t.attrs["button-repaint"];(n=u(n||""))===d?(a&&(r.symbol=a.remove()),delete r.symbol):n&&!a&&(a=r.symbol=t.paper.symbol(t).insertAfter(r.bound)),i&&t.attr("button-repaint",i)},"button-symbol-position":function(e){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[u(e).toLowerCase()]||d}},"button-symbol-padding":function(e){return{"button-symbol-padding":c(e)}},"button-padding":function(e,r){var n=e,a=r;return{"button-padding":[(null===n||n===t)&&(n=5)||c(n),(null===a||a===t)&&n||c(a)]}},"button-repaint":function(r,a,i,o,c){var u,d,h,f,p,g,m,v=this._.button,b=r,y=a,w=i,x=o,_=c,S=v.bound,k=v.label,C=v.symbol,A=this.attrs,N=A["button-padding"],E=N[0],L=N[1];if(b===t&&(b=0),y===t&&(y=0),w!==t&&x!==t||(g=k&&k.getBBox()||{width:0,height:0},w===t&&(w=2*E+g.width),x===t&&(x=2*L+g.height)),(m=e.crispBound(b,y,w,x,S.attr("stroke-width"))).r=_=(0,n.pluck)(_,l(.1*s(x,w))),b=m.x,y=m.y,w=m.width,x=m.height,k&&k.attr({x:b+w/2,y:y+x/2}),C){switch(!e.is(p=A["button-symbol-padding"],"finite")&&(p=.2*x),f=.5*(h=x-L),A["button-symbol-position"]+(k?"+":"-")){case"right+":u=b+(w+=2*f+L)-f-E,d=y+.5*x,k.attr("transform",["t",-(h+p),0]);break;case"left+":w+=2*f+L,u=b+E+f,d=y+.5*x,k.attr("transform",["t",h+p,0]);break;case"top+":x+=2*f+p,u=b+.5*w,d=y+N[1]+f,k.attr("transform",["t",0,h+p]);break;case"bottom+":u=b+.5*w,d=y+(x+=2*f+p)-L-f,k.attr("transform",["t",0,-(h+p)]);break;default:u=b+.5*w,d=y+.5*x}C.attr("symbol",[A["button-symbol"],u,d,f,w,x])}v.bound.attr(m),v.tracker.attr(m)},fill:function(t,r){void 0===r&&(r=!0);var n=this,a=n._.button,i=a.bound,o=t,s={normal:a.gradient,active:a.gradientActive,hover:a.gradientHover}[o];return s||(r||((o=e.getRGB(o)).error&&(o=e.color("#cccccc")),o="opacity"in o?"rgba("+[o.r,o.g,o.b,o.opacity]+")":"rgb("+[o.r,o.g,o.b]+")"),a.gradient=r?o:[90,e.tintshade(o,-.8).rgba+":0",e.tintshade(o,.8).rgba+":100"].join("-"),a.gradientActive=[270,e.tintshade(o,-.8).rgba+":0",e.tintshade(o,.8).rgba+":100"].join("-"),s=(n.pressed||n.active)&&a.gradientActive||n.hovered&&a.gradienthover||a.gradient),i.attr("fill",s),!1},hoverFill:function(t){var r=this._.button,n=t;return n="opacity"in(n=e.getRGB(n))?"rgba("+[n.r,n.g,n.b,n.opacity]+")":"rgb("+[n.r,n.g,n.b]+")",r.gradientHover=n,!1},labelFill:function(e){var t=this._.button,r=t.label;return r&&e&&(t.labelFill=e,r.attr("fill",e)),!1},symbolFill:function(e){var t=this._.button,r=t.symbol;return r&&e&&(t.symbolFill=e,r.attr("fill",e)),!1},stroke:function(t){var r=this._.button,n=t;return(n=e.color(n)).error&&(n=e.color("#999999")),r.bound.attr(h,n),!1},"symbol-stroke":function(e){var t=this._.button.symbol;return t&&e&&t.attr(h,e),!1},"stroke-width":function(e){var t=this._.button;return t.bound.attr("stroke-width",e),t.tracker.attr("stroke-width",e),!1},"symbol-stroke-width":function(e){var t=this._.button.symbol;return t&&e&&t.attr("stroke-width",e),!1},config:function(e){var t=this;e.hover&&(t._hover={fill:e.hover.fill,stroke:e.hover.stroke,"stroke-width":e.hover["stroke-width"],cursor:e.hover.cursor,"fill-symbol":e.hover["fill-symbol"],"symbol-stroke":e.hover["symbol-stroke"],labelFill:e.hover.labelFill}),e.disabled&&(t._disabled={fill:e.disabled.fill,stroke:e.disabled.stroke,"stroke-width":e.disabled["stroke-width"],"symbol-stroke":e.disabled["symbol-stroke"],cursor:e.disabled.cursor,labelFill:e.disabled.labelFill}),e.pressed&&(t._pressed={fill:e.pressed.fill,stroke:e.pressed.stroke,"stroke-width":e.pressed["stroke-width"],cursor:e.pressed.cursor,"fill-symbol":e.pressed["fill-symbol"],"symbol-stroke":e.pressed["symbol-stroke"],labelFill:e.pressed.labelFill}),e.normal&&(t._normal={fill:e.normal.fill,stroke:e.normal.stroke,"stroke-width":e.normal["stroke-width"],cursor:e.normal.cursor,"fill-symbol":e.normal["fill-symbol"],"symbol-stroke":e.normal["symbol-stroke"],labelFill:e.normal.labelFill}),e.symbol&&(e.symbol={stroke:e.normal.stroke,"stroke-width":e.normal["stroke-width"]})}}}])};var n=r(281)},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281),a=function(e){s(e,"legendItemClicked")},i=function(e){s(e,"legendItemRollover")},o=function(e){s(e,"legendItemRollout")},s=function(e,t){var r=e.sender,a=r.getLinkedItem("owner"),i=r.getFromEnv("chart"),o=a&&a.getEventArgs?a.getEventArgs(r):r.config.eventArguments,s=(0,n.getMouseCoordinate)(r.getFromEnv("chart-container"),e,i);/click/gi.test(t)||undefined===o.visible||(o.visible=!o.visible),"timeseries"===i.getName().toLowerCase()&&(o.visible=/click/gi.test(t)?!i.config.legendMap[r.config.label].visibility:i.config.legendMap[r.config.label].visibility),o.chartX=s.chartX,o.chartY=s.chartY,o.pageX=s.pageX,o.pageY=s.pageY,o.id=i.getId(),o.legendItemId=r.getId(),o.legendItemIndex=r.config.index,i.fireChartInstanceEvent(t,o,e)};t["default"]={extension:function(e){var t;e.addEventListener("instantiated",function(e){var r;"legendItem"===(t=e.sender).getType()&&((r=t).addEventListener("fc-click",a),r.addEventListener("fc-mouseover",i),r.addEventListener("fc-mouseout",o))})},name:"legendEventManagerLinker",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(452));function i(e){void 0===e&&(e={});var t=this.apiInstance.getChildren("exportModule");return undefined!==(t=t&&t[0])&&(t.exportChart(e),!0)}t["default"]={extension:function(e){e.addEventListener("instantiated",function(e){var t=e.sender;(function(e){return"chartAPI"===e.getType()})(t)&&t.registerFactory("export",function(e){var r;t.getFromEnv("chartInstance").exportChart=i,Number(e.getFromEnv("dataSource").chart.exportenabled)&&(e.getChildren("exportModule")?r=e.getChildren("exportModule")[0]:(r=new a["default"],e.attachChild(r,"exportModule"),r.addToEnv("chartInstance",e.getFromEnv("chartInstance")),r.addToEnv("chartMenuList",e.getFromEnv("chartMenuList"))),r.configure({chartConfig:e.getFromEnv("dataSource").chart}))},["toolbox"])})},name:"Export",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(277)),i=n(r(295)),o=r(297),s=r(289),l=r(281),c=n(r(453)),u=r(454),d=r(457),h=r(455);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}
/** !
 * @license FusionCharts JavaScript Library
 * Copyright FusionCharts, Inc.
 * License Information at <http://www.fusioncharts.com/license>
 *
 * @version //? write(JSON.parse(require('fs').readFileSync('./package.json')).version);
 */
var p={english:"Export As ",french:"Exporter en tant que ",italian:"Esporta come ",german:"Exportieren als ",portuguese:"Exportar como ",spanish:"Exportar como ",catalan:"Exportar com "},g="IMAGE-DATA",m=/\s\bx\b=['"][^'"]+?['"]/gi,v=/\s\by\b=['"][^'"]+?['"]/gi,b=window,y=b.document,w="https:"===b.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",x="https:"===b.location.protocol?"https://export.api3.fusioncharts.com/api/v1.0/logs":"http://export.api3.fusioncharts.com/api/v1.0/logs",_=b.navigator.userAgent.match(/(iPad|iPhone|iPod)/g);t["default"]=function(e){function t(){var t;return(t=e.call(this)||this).config={exportOption:{},chartConfig:{caption:"",subcaption:"",width:"",height:""}},t}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"exportModule"},r.getType=function(){return"extension"},r.configureMenuBar=function(){var e,t,r,n,i,o,c,d,h,g,m=this,v=m.getFromEnv("toolbar"),y=null!=(e=this.getFromEnv("language"))?e:"english",w=!!b.btoa,x=p[y],_=m.getFromEnv("chart"),S=m.getFromEnv("chart-attrib").exportformats,k=v.getChild("hamburgerMenu-"+v.getId()+"-"+_.getId()+"-0"),C=(0,s.getDep)("Excelexport"),A={PNG:x+u.EXPORTFORMAT.PNG.toUpperCase(),JPG:x+u.EXPORTFORMAT.JPG.toUpperCase(),PDF:x+u.EXPORTFORMAT.PDF.toUpperCase(),SVG:x+u.EXPORTFORMAT.SVG.toUpperCase(),CSV:x+u.EXPORTFORMAT.CSV.toUpperCase(),XLSX:x+u.EXPORTFORMAT.XLSX.toUpperCase(),XLS:x+u.EXPORTFORMAT.XLS.toUpperCase()},N=[];if(m.config.exportOption.exportenabled){if(c=function(e){return function(){m.config.exportOption.exportformat=e,m.exportChart({})}},S)for(i=0,o=(t=S.split("|")).length;i<o;i++)r=t[i].split("="),(n=(0,l.trimString)(r[0].toUpperCase())).toLowerCase()===u.EXPORTFORMAT.XLSX&&(g=!0),A[n]&&(A[n]=r[1]||A[n]),A[n]&&(h||(h={}))&&(h[n]=!0);for(n in m.config.exportOption.exportformats=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,a["default"])(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},A),A)"XLSX"===n&&(!w||!C||C&&C.then)||h&&!h[n]||"XLS"!==n&&("CSV"!==n||w)&&(d={name:A[n],handler:c(n),action:"click"},N.push(d));k.appendInMenu(N),w&&C&&C.then&&C.then(function(){S&&!g||(k.appendInMenu([{name:A.XLSX,handler:c("XLSX"),action:"click"}]),k.asyncDraw())})}},r.configure=function(e){var t,r,n,a=this.getFromEnv("chartInstance"),i=this.config,o=i.chartConfig,s=i.exportOption,c=e.chartConfig;c.caption&&(o.caption=(0,l.pluck)(c.caption,"")),c.subcaption&&(o.subcaption=(0,l.pluck)(c.subcaption,"")),s.exportenabled=(0,l.pluckNumber)(c.exportenabled,0),s.exportshowmenuitem=(0,l.pluckNumber)(c.exportshowmenuitem,1),s.exportformat=(0,l.pluck)(c.exportformat,u.EXPORTFORMAT.PNG),s.exporthandler=(0,l.pluck)(c.html5exporthandler,c.exporthandler,w),s.exportaction=c.exportaction&&"string"==typeof c.exportaction?(t=c.exportaction.toLowerCase(),[u.EXPORTACTION.DOWNLOAD,u.EXPORTACTION.SAVE,u.EXPORTACTION.DOWNLOADSAVE].indexOf(t)>=0?t:u.EXPORTACTION.DOWNLOAD):u.EXPORTACTION.DOWNLOAD,s.exporttargetwindow=(0,l.pluck)(c.exporttargetwindow,_?"_parent":"_self"),s.exportfilename=(0,l.pluck)(c.exportfilename,"FusionCharts"),s.exportparameters=(0,l.pluck)(c.exportparameters,""),s.exportcallback=(0,l.pluck)(c.exportcallback,""),s.exportwithimages=(0,l.pluckNumber)(c.exportwithimages,1),s.exportmode=("undefined"!=typeof c.exportatclientside&&(r={1:u.EXPORTMODE.AUTO,0:u.EXPORTMODE.AUTO}[c.exportatclientside]),r=(r=c.exportmode||r||u.EXPORTMODE.AUTO).toLowerCase()),s.logenabled=(0,l.pluckNumber)(c.logenabled,0),s.loghandler=(0,l.pluck)(c.html5loghandler,c.loghandler,x),s.logmode=void 0!==(n=c.logmode)&&"string"==typeof n&&n.toUpperCase()in u.LOGMODE?u.LOGMODE[n.toUpperCase()]:u.LOGMODE.AUTO,s.bgcolor=function(e){return e.jsVars.transparent||0===(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)?l.BLANKSTRING:e.options.containerBackgroundColor||"#FFFFFF"}(a),s.bgalpha=function(e){return e.jsVars.transparent?0:(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)+""}(a),s.exportshowmenuitem&&this.configureMenuBar()},r.exportChart=function(e){var t,r,n,a,i=this,o=i.getFromEnv("chartInstance"),f=i.getFromEnv("chart"),p="object"==typeof e&&function(e){var t,r={};for(t in e)r[t.toLowerCase()]=e[t];return r}(e)||{},w=(0,l.extend2)((0,l.extend2)({},i.config.exportOption),p),x=(w.exportformat||u.EXPORTFORMAT.PNG).toLowerCase(),_=w.exporthandler,S=w.exportaction,k=w.exporttargetwindow||"",C=w.exportfilename,A=w.exportparameters,N=w.exportcallback,E=w.exportwithimages,L=w.exportmode,T=w.logenabled,M=w.loghandler,F=w.logmode,D=function(e){f.fireChartInstanceEvent("exportDataReady",e)};f.fireChartInstanceEvent("beforeExport",w,a,function(){var e,p,I,O,P,R,j,B,z,V=o.id,U=i.config.chartConfig.caption,H=i.config.chartConfig.subcaption,q=this.apiInstance.getFromEnv("paper"),G=this.apiInstance.getFromEnv("core-options")["export"].useCanvas,W=(0,c["default"])(f.getChildren("chartMenuBar"))?f.getChildren("chartMenuBar")[0]:f.getChildren("actionBar")[0],$=W.getChild("hamburgerMenu-"+W.getId()+"-"+f.getId()+"-0"),X={DOMId:V,height:q.height,width:q.width,fileName:C+"."+x,statusCode:a,statusMessage:a,notice:a},Y={exportAction:S,exportTargetWindow:k,exportCallback:N,fusionCharts:o,paper:q,chartId:V,exportHandler:_,logEnabled:T,logMode:F,logHandler:M},K=function(e,t,r){var n;return n=!!T,F===u.LOGMODE.CLIENT&&(n=!1),{charttype:o.chartType(),stream_type:e||"",stream:t||"",meta_bgColor:w.bgcolor||"",meta_bgAlpha:w.bgalpha||"1",meta_DOMId:o.id,meta_width:q.width||i.config.chartConfig.width,meta_height:q.height||i.config.chartConfig.height,chart_caption:U,chart_sub_caption:H,is_single_export:!0,is_full_version:!1,version:l.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:n,parameters:["exportfilename="+C,"exportformat="+x,"exportaction="+(0,u.createExportActionOldString)(S),"exportactionnew="+S,"configuredexportaction="+(r||S),"exportparameters="+A].join("|")}},J=function(){return{chartType:o.chartType(),chartCaption:U,chartSubCaption:H,isSingleExport:!0,isFullVersion:!1,exportAction:S,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[C,x].join("."),exportFormat:x,version:l.PROJECT_VERSION}},Z=function(e){(0,h.downloadCharts)(null,null,null,K(u.EXPORTFORMAT.SVG,e),Y)},Q=function(e,t,r){var n;(n=y.createElement("canvas")).width=q.width,n.height=q.height,(0,h.drawSvgOnCanvas)({svg:I,canvas:n,x:0,y:0,width:q.width,height:q.height,useCanvas:G},function(){switch(e){case u.EXPORTFORMAT.PNG:t(e,n.toDataURL("image/png"),C,r);break;case u.EXPORTFORMAT.JPEG:case u.EXPORTFORMAT.PDF:default:t(e,n.toDataURL("image/jpeg"),C,r)}})},ee=function(t,r,n){var a,i;x===u.EXPORTFORMAT.SVG?(a=(0,u.svgStrToDataUrl)(t),e=n===u.EXPORTMODE.AUTO?K(g,a):null,(0,h.downloadCharts)("url",a,C+"."+x,e,r)):(i=function(){!function(t,r,n,a,i){var o=r;t===u.EXPORTFORMAT.PDF&&((0,d.addImage)(o,q.height,q.width),o=(0,d.getDataUrl)()),e=i===u.EXPORTMODE.AUTO?K(g,o):null,(0,h.downloadCharts)("url",o,n+"."+t,e,a)}(arguments[0],arguments[1],arguments[2],arguments[3],n)},Q(x,i,r))},te=D,re=function(e){e===u.LOGMODE.CLIENT&&(0,u.logCharts)(J(),Y)},ne=function(r,n){if(P="undefined"!=typeof b.btoa&&("Chrome"===h.browserDetails.name||"Firefox"===h.browserDetails.name||"Safari"===h.browserDetails.name||"Edge"===h.browserDetails.name||"ie"===h.browserDetails.name),"server"!==L&&P){if(S===u.EXPORTACTION.DOWNLOAD||S===u.EXPORTACTION.DOWNLOADSAVE){if("xlsx"===x||"csv"===x)(0,h.downloadCharts)("blob",r,C+"."+x,null,Y);else if("xls"===x){var a="data:application/vnd.ms-excel;base64,"+(o="<html xmlns:o='urn:schemas-microsoft-com:office:office'xmlns:x='urn:schemas-microsoft-com:office:excel'xmlns='http://www.w3.org/TR/REC-html40'><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body>"+function(){var e,r,n,a,i,o;if(!t.length)return"";for(n=0,o=t.length;n<o;n+=1)if(0===n){for(e="<thead valign='top'><tr>",a=0,i=t[n].length;a<i;a+=1)e+="<th>"+t[n][a]+"</th>";e+="</tr></thead>",r="<tbody>"}else{for(r+="<tr>",a=0,i=t[n].length;a<i;a+=1)r+="<td>"+t[n][a]+"</td>";r+="</tr>"}return"<table align='center' >"+e+(r+="</tbody>")+"</table>"}()+"</body></html>",b.btoa(b.unescape(encodeURIComponent(o))));(0,h.downloadCharts)("url",a,C+"."+x,null,Y)}f.fireChartInstanceEvent("exported",X)}S===u.EXPORTACTION.SAVE||S===u.EXPORTACTION.DOWNLOADSAVE?(R=S,S===u.EXPORTACTION.DOWNLOADSAVE&&(S=u.EXPORTACTION.SAVE),e=K(g,r,R),(0,h.downloadCharts)(null,null,null,e,Y),re(F)):F!==u.LOGMODE.SERVER&&(0,u.logCharts)(J(),Y)}else{var i=new FileReader;i.onload=function(e){for(var t=l.BLANKSTRING,r=new Uint8Array(e.target.result),a=r.byteLength,i=0;i<a;i++)t+=String.fromCharCode(r[i]);t=n+b.btoa(t),(0,h.downloadCharts)(null,null,null,K(g,t),Y),re(F)},i.readAsArrayBuffer(r)}var o};if("xlsx"===x||"xls"===x){if("undefined"==typeof b.btoa)return f.fireChartInstanceEvent("exportCancelled",w),!1;r=o.getCSVData(),te(),z=0,t=[],r.replace(/[^\r\n]+/g,function(e){t[z]=[],t[z]=e.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/).map(function(e){return e.replace(/"/g,l.BLANKSTRING)}),z+=1}),(j=(0,s.getDep)("ExcelExport"))&&j(t).then(function(e){ne(e,"data:application/vnd.ms-excel;base64,")})}else if("csv"===x){if("undefined"==typeof b.btoa)return f.fireChartInstanceEvent("exportCancelled",w),!1;r=o.getCSVData(),te(),n=new Blob([r],{type:"text/csv;base64;"}),ne(n,"data:text/csv;base64,")}else(O=$.getChild("listContainer").getLinkedParent().getGraphicalElement("button","button"))&&O.attr("visibility","hidden"),p=q.toSVG(E),I=(I=q.toSVG(E&&(0,h.isCanvasElemSupported)())).replace(/&nbsp;/gi," "),O&&O.attr("visibility","visible"),p=(p=(p=p.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/NS\d+:/gi,"xlink:")).replace(/&nbsp;/gi," "),I=(I=(I=I.replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,""),p=(p=(p=(p=(p=(p=(p=(p=p.replace(/[\w\-]+\=\"undefined\"/gi,"")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,"")).replace(/rgba\(([^\)]+)\)/gi,function(e){return"#"+new l.RGBtoHex(e.split(","))})).replace(/<svg[^>]+/i,function(e){var t=e;return t.match(/height/i)||!q.height&&!i.config.chartConfig.height||(t+=' height="'+(q.height||i.config.chartConfig.height)+'"'),t.match(/width/i)||!q.width&&!i.config.chartConfig.width||(t+=' width="'+(q.width||i.config.chartConfig.width)+'"'),t})).replace(/(([\w]+\-)?opacity\s*=\s*)['"][\d\.]+e[\-\+][\d]+["']/gi,'$1"0.001"')).replace(/(([\w]+\-)?opacity\s*:\s*)[\d\.]+e[\-\+][\d]+/gi,"$10.001")).replace(/<text[^\>]+/gi,function(e){var t=e;return t=(t=(t=(t=(t=(t=(t=(t=t.replace(/stroke\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-width\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-width\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-opacity\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-opacity\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/(<text[^\>]+fill\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,'$1$2 stroke=$2 stroke-width="0.2"$3')).replace(/(<text[^\>]+fill-opacity\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,"$1$2 stroke-opacity=$2 $3")})).replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/gi,function(e,t){return e+"<"+t+(m.exec(e)||"")+(v.exec(e)||"")+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}),p=(0,u.makeImageUrlsAbsolute)(p),I=(0,u.makeImageUrlsAbsolute)(I),B=L===u.EXPORTMODE.SERVER,(0,u.cacheAllImages)(p,B,function(){e=K(u.EXPORTFORMAT.SVG,p),te(e),e=null;var t,r,n,a,i,o,s="undefined"!=typeof b.btoa&&("Chrome"===h.browserDetails.name||"Firefox"===h.browserDetails.name||"Safari"===h.browserDetails.name||"Edge"===h.browserDetails.name||"ie"===h.browserDetails.name);(L===u.EXPORTMODE.CLIENT||L===u.EXPORTMODE.AUTO&&!(0,u.hasUndownloadableImage)(p))&&s?(I=(0,u.replaceImagesWithNonDataUrl)(I),S!==u.EXPORTACTION.DOWNLOAD&&S!==u.EXPORTACTION.DOWNLOADSAVE||(ee(I,Y,L),f.fireChartInstanceEvent("exported",X)),S===u.EXPORTACTION.SAVE||S===u.EXPORTACTION.DOWNLOADSAVE?(t=S,S===u.EXPORTACTION.DOWNLOADSAVE&&(S=u.EXPORTACTION.SAVE),r=I,n=Y,a=function(r,n){e=K(g,r,t),(0,h.downloadCharts)(null,null,null,e,n),re(F)},x===u.EXPORTFORMAT.SVG?(i=(0,u.svgStrToDataUrl)(r),a(i,n)):(o=function(){a(arguments[1],n)},Q(x,o,n)),f.fireChartInstanceEvent("exported",X)):F!==u.LOGMODE.SERVER&&(0,u.logCharts)(J(),Y)):L===u.EXPORTMODE.AUTO?(!function(e){var t,r,n=e;h.browserDetails.hasCanvas&&"undefined"!=typeof b.btoa?((t=y.createElement("canvas")).width=q.width,t.height=q.height,n=(0,u.embedImagesWithNonDataURL)(n),I=(0,u.replaceImagesWithNonDataUrl)(I),(0,u.hasUndownloadableImage)(n)||x===u.EXPORTFORMAT.SVG?(r=K(u.EXPORTFORMAT.SVG,n),(0,h.downloadCharts)(null,null,null,r,Y)):(0,h.drawSvgOnCanvas)({svg:I,canvas:t,x:0,y:0,width:q.width,height:q.height,useCanvas:G},function(){var e;switch(x){case u.EXPORTFORMAT.PNG:e=t.toDataURL("image/png");break;case u.EXPORTFORMAT.JPEG:e=t.toDataURL("image/jpeg");break;case u.EXPORTFORMAT.PDF:(0,d.addImage)(t.toDataURL("image/jpeg"),q.height,q.width),e=(0,d.getDataUrl)();break;default:e=t.toDataURL("image/jpeg")}r=K(g,e),(0,h.downloadCharts)(null,null,null,r,Y)})):Z(n)}(p),re(F)):L===u.EXPORTMODE.SERVER&&(Z(p),re(F))})},function(){f.fireChartInstanceEvent("exportCancelled",w)})},t}(o.ComponentInterface)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(355));t["default"]=function(e){return(0,a["default"])(e)&&e.length}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.svgStrToDataUrl=t.replaceImagesWithNonDataUrl=t.removeImagesWithNonDataURL=t.parseUrl=t.objCacheFunctions=t.makeImageUrlsAbsolute=t.logCharts=t.isCacheAllImagesCompleted=t.hasUndownloadableImage=t.getImageCachedDetails=t.extractNonDataURLFromSVG=t.extractNonDataImageFromSVG=t.embedImagesWithNonDataURL=t.createExportActionOldString=t.cacheAllImages=t.LOGMODE=t.EXPORTMODE=t.EXPORTFORMAT=t.EXPORTACTION=void 0;var a,i=r(455),o=n(r(376)),s=r(281),l=n(r(305)),c=t.extractNonDataImageFromSVG=function(e){var t,r,n,a,i,o;t=/(<image [^\>]*href=["']([^\>'"]*)["'][^\>]*\>)/g,r=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,n=[];do{null!==(a=t.exec(e))&&(i=a[1],o=a[2],r.test(o)||n.push(i))}while(a&&null!==a);return n},u=t.removeImagesWithNonDataURL=function(e){var t,r,n,a=e;for(t=c(a),r=0;r<t.length;r++)n=t[r],a=a.replace(n,"");return a},d=t.extractNonDataURLFromSVG=function(e,t){var r,n,a,i,o;void 0===t&&(t=!0),r=/<image [^\>]*href=["']([^\>'"]*)["'][^\>]*\>/g,n=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,a=[];do{if(null!==(i=r.exec(e))){if(o=i[1],n.test(o))continue;t&&(o=h(o).href),a.push(o)}}while(i&&null!==i);return a},h=t.parseUrl=function(e){var t=document.createElement("div");return t.innerHTML=l["default"].createHTML("<a></a>"),t.firstChild.href=e,t.innerHTML=l["default"].createHTML(t.innerHTML),t.firstChild},f=t.EXPORTACTION={DOWNLOAD:"download",SAVE:"save",DOWNLOADSAVE:"download-save"},p=(t.EXPORTMODE={CLIENT:"client",SERVER:"server",AUTO:"auto"},t.EXPORTFORMAT={PNG:"png",SVG:"svg",JPEG:"jpeg",JPG:"jpg",PDF:"pdf",XLSX:"xlsx",XLS:"xls",CSV:"csv"},t.LOGMODE={CLIENT:"client",SERVER:"server",AUTO:"auto"}),g=(t.createExportActionOldString=function(e){return{download:f.DOWNLOAD,"download-save":f.DOWNLOAD,save:f.SAVE}[e]},t.objCacheFunctions=((a={}).cacheCompleted=!1,{cacheAllImages:function(e,t,r){var n,o,l,c;if(void 0===t&&(t=!1),n=d(e),o=n.length,(0,i.isCanvasElemSupported)()&&!t&&o)for(l=0,c=0;c<o;c++)(function(){var e,t;if((e=n[c])in a)return l++,void(o===l&&(a.cacheCompleted=!0,r()));(t=new Image).crossOrigin=s.BLANKSTRING,t.onload=function(){var n,i;(n=document.createElement("canvas")).width=t.width,n.height=t.height,n.getContext("2d").drawImage(this,0,0);try{i=n.toDataURL("image/png"),a[e]={loaded:!0,notCORS:!0,imageUri:i}}catch(s){a[e]={loaded:!0,notCORS:!1}}finally{l++,o===l&&(a.cacheCompleted=!0,r())}},t.onerror=function(){a[e]={loaded:!1},l++,o===l&&(a.cacheCompleted=!0,r())},t.src=e})();else r()},getImageCachedDetails:function(e){return a[e]},isCacheAllImagesCompleted:function(){return a.cacheCompleted}})),m=(t.cacheAllImages=g.cacheAllImages,t.getImageCachedDetails=g.getImageCachedDetails),v=(t.isCacheAllImagesCompleted=g.isCacheAllImagesCompleted,function(e){return e=e.replace(/(:href=")([^"]*)(")/gi,function(e,t,r,n){return t+h(r).href+n})}),b=t.makeImageUrlsAbsolute=function(e){return e.replace(/<image [^\>]*\>/gi,v)},y=t.embedImagesWithNonDataURL=function(e){var t,r,n,a,i=b(e);for(t=d(i),r=0;r<t.length;r++)n=t[r],(a=m(n))!==s.UNDEF&&a.loaded&&a.notCORS&&a.imageUri&&(i=i.replace(n,a.imageUri));return i};t.replaceImagesWithNonDataUrl=function(e){return u(y(e))},t.hasUndownloadableImage=function(e){var t=y(e);return t!==u(t)},t.logCharts=function(e,t){t.logEnabled&&t.logMode!==p.SERVER&&function(e,t){var r=new o["default"](s.stubFN,s.stubFN);for(var n in e)e.hasOwnProperty(n)&&(e[n]=encodeURIComponent(e[n]));r.post(t.logHandler,e)}(e,t)},t.svgStrToDataUrl=function(e){var t=function(e){return'<?xml version="1.0" standalone="no"?>\n      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n       "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> '+e}(e);return t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(t)))}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.isCanvasElemSupported=t.drawSvgOnCanvas=t.downloadCharts=t.browserDetails=void 0;var a,i=n(r(456)),o=r(281),s=r(288),l=n(r(376)),c=window,u=c.Image,d=document,h="download",f="download-save",p=t.isCanvasElemSupported=function(){var e=d.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},g=function(){var e,t=c.navigator.userAgent;return-1!==(e=t.indexOf("Edge"))?{name:"Edge",version:t.substring(e+5,e+11)}:-1!==(e=t.indexOf("Chrome"))?{name:"Chrome",version:t.substring(e+7,e+11)}:-1!==(e=t.indexOf("MSIE"))||-1!==(e=t.indexOf("rv"))&&-1!==t.indexOf("Trident")?{name:"ie",version:t.substring(e+5,e+9)}:-1!==(e=t.indexOf("Firefox"))?{name:"Firefox",version:t.substring(e+8,e+12)}:-1!==(e=t.indexOf("Safari"))?{name:"Safari",version:t.substring(e+7,e+11)}:{name:"default",version:"Not Known"}},m=t.browserDetails=g(),v=function(e,t){var r,n,i,u,p,g,m,v,b=t.exportAction,y=t.exportTargetWindow,w=t.exportCallback,x=t.fusionCharts.apiInstance,_=t.paper,S=t.chartId,k=t.exportHandler,C=e.parameters;if(b===h||b===f){for(r in/(webkit|gecko)/gi.test(c.navigator.userAgent)&&"_self"===y&&(y=i=S+"export_iframe",v||(v=u=(0,o.createElement)("IFRAME",{name:i,width:"1px",height:"1px"},d.body),u.style.cssText="position:absolute;left:-10px;top:-10px;",u.setAttribute("sandbox","allow-downloads allow-scripts allow-top-navigation"))),n=(0,o.createElement)("form",{method:"POST",action:k,target:y,style:"display:none;"},d.body),e)(0,o.createElement)("input",{type:"hidden",name:r,value:e[r]},n);return n.submit(),d.body.removeChild(n),n=a,g=C.match(/exportfilename=([^|]+)/)[1],m=C.match(/exportformat=([^|]+)/)[1],(0,s.triggerEvent)("exported",x,{DOMId:S,height:_.height,width:_.width,fileName:g+"."+m,statusCode:a,statusMessage:a,notice:a}),w&&c[w]&&"function"==typeof c[w]&&c[w]({statusCode:1,statusMessage:"success",DOMId:S,width:_&&_.width,height:_&&_.height}),!0}for(r in p=new l["default"](function(e){var t={};e.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(e,r,n,a){t[r]=a}),w&&c[w]&&"function"==typeof c[w]&&c[w](t),(0,s.triggerEvent)("exported",x,t)},function(e){var t={statusCode:0,statusMessage:"failure",error:e,DOMId:S,width:_&&_.width,height:_&&_.height};w&&c[w]&&"function"==typeof c[w]&&c[w](t),(0,s.triggerEvent)("exported",x,t,[t])}),e)e.hasOwnProperty(r)&&(e[r]=encodeURIComponent(e[r]));p.post(k,e)},b=function(e,t,r,n){void 0===n&&(n={});var a,i,o=g(),s=n.chartId,l=n.exportCallback,u=n.paper,h=t;"Chrome"===o.name||"Firefox"===o.name||"Safari"===o.name?("blob"===e&&(h=c.URL.createObjectURL(h)),(i=d.createElement("a")).download=r,i.href=h,d.body.appendChild(i),i.onclick=function(){l&&c[l]&&"function"==typeof c[l]&&c[l]({statusCode:1,statusMessage:"success",DOMId:s,width:u&&u.width,height:u&&u.height}),i.parentNode.removeChild(i)},i.click()):"ie"!==o.name&&"Edge"!==o.name||c.navigator.msSaveBlob&&(a="url"===e?function(e){var t,r,n,a;for(t=e.split(",")[0].indexOf("base64")>=0?c.atob(e.split(",")[1]):c.unescape(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length),a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return new c.Blob([n],{type:r})}(h):h,c.navigator.msSaveBlob(a,r)&&l&&c[l]&&"function"==typeof c[l]&&c[l]({statusCode:1,statusMessage:"success",DOMId:s,width:u&&u.width,height:u&&u.height}))},y=(t.downloadCharts=function(e,t,r,n,a){var i,o=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent),s=window.location.href.match(/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-\.0-9;-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/);"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform?v(n,a):o&&!s?y(e,t,r,n):!t||(i=t,m.name.toLowerCase()==="Chrome".toLowerCase()&&function(e){var t,r,n;for(t=e.length,n=e.length-1;n>=0;n--)(r=e.charCodeAt(n))>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--;return t}(i)>void 0)?n&&v(n,a):b(e,t,r,a)},function(e,t,r,n){if(t&&r)if("blob"===e){var a=new FileReader;a.readAsDataURL(t),a.onloadend=function(){var e=a.result;w(e,r)}}else w(t,r);else if(n){var i,o=n.parameters.split("|"),s=o[0].substr(o[0].indexOf("=")+1),l=o[1].substr(o[1].indexOf("=")+1),u=s+"."+l;i="svg"===l?"data:image/svg+xml;base64,"+c.btoa(c.unescape(encodeURIComponent(n.stream))):n.stream,w(i,u)}}),w=function(e,t){var r={edata:e,name:t,eventName:"download"};window.webViewBridge.send(null,r)};t.drawSvgOnCanvas=function(e,t){void 0===e&&(e={});var r,n,a,o,l=e,d=l.svg,h=l.canvas,f=l.x,p=l.y,g=l.width,v=l.height,b=l.useCanvas;"ie"===m.name||"Edge"===m.name||b?new i["default"](d,h,f,p,g,v,function(){t()}):(o=function(e){return'<?xml version="1.0" standalone="no"?>\n      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n       "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> '+e}(d),a="data:image/svg+xml;base64,"+c.btoa(c.unescape(encodeURIComponent(o))),r=h.getContext("2d"),(n=new u).onload=function(){r.drawImage(n,f,p,g,v),t()},n.onerror=function(){(0,s.raiseWarning)(this,"","run","libSVGToCanvas:drawSvgOnCanvas","Unable to load image for canvas drawing. Aborting attempt.")},n.src=a)};m.hasCanvas=p(),m.hasSvg=o.hasSVG},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r,n="undefined"!=typeof window?window:null,a=n.document,i={},o={};(r=function(e,t,n,a,i,o,s){var l={svg:"",context:"",callBack:"",imageArr:[],canvas:"",dimention:{}};if(!(this instanceof r))throw new Error("This function should be used as class");this._getStore=function(e){return"undefined"!=typeof l[e]&&l[e]},this._setStore=function(e,t){"undefined"!=typeof l[e]&&(l[e]=t)},this._setStore("dimention",{x:n,y:a,width:i,height:o}),e&&this.setSVG(e),t&&this.setContext(t),s&&this.setCallback(s),this.drawOnCanvas()}).prototype.setContext=function(e){var t;if(!e.getContext||!e.getContext("2d"))throw new Error("Please provide valid canvas");t=e.getContext("2d"),this._setStore("canvas",e),this._setStore("context",t)},r.prototype.getContext=function(){return this._getStore("context")},r.prototype.setSVG=function(e){var t;if("undefined"!=typeof e.documentElement)t=e,this._setStore("svg",t);else{if("<"!==e.substr(0,1))throw new Error("Please provide valid SVG");t=o.StrToDom(e),this._setStore("svg",t)}},r.prototype.getSVG=function(){return this._getStore("svg")},r.prototype.setCallback=function(e){"function"==typeof e&&this._setStore("callBack",e)},r.prototype.getCallback=function(){return this._getStore("callBack")},r.prototype.drawOnCanvas=function(e,t,r,n,a,i,s){var l,c,u,d,h,f,p,g;e&&this.setSVG(e),t&&this.setContext(t),s&&this.setCallback(s),t=t||this._getStore("canvas"),p=this._getStore("dimention"),s=this.getCallback(),l=this.getContext(),(c=this.getSVG())&&l&&(u=(g=o.getSvgDimention(c)).width,d=g.height,r=r||p.x||0,n=n||p.y||0,a=a||u||p.width,i=i||d||p.height,h=g.width?p.width/a:1,f=g.height?p.height/i:1,o.startTransform("translate("+r+","+n+") scale("+h+","+f+")",l),l.save(),l.fillStyle="#ffffff",l.fillRect(0,0,a,i),l.restore(),o.storeImagesInArr(this),o.drawNodes([c],[],this,l,function(){"function"==typeof s&&s(),o.resetTransform(l)}))},i.common=function(e,t,r,n,a){var s,l,c,u,d=e.childNodes,h=function(){e.attributes&&n.restore(),a&&a()};for(l in t)t.hasOwnProperty(l)&&"class"!==t[l].name&&"id"!==t[l].name&&"transform"!==t[l].name&&"clip-path"!==t[l].name&&"object"==typeof t[l]&&e.attributes&&!e.attributes[t[l].name]&&e.setAttribute([t[l].name],t[l].value);if(e.attributes&&e.attributes.style)for(l in c=e.attributes.style.value.replace(/;$/,"").split(";"))if(c.hasOwnProperty(l)&&(u=c[l].split(":")[0].trim(),!e.attributes[u]||"undefined"===e.attributes[u].value))try{e.setAttribute(u,c[l].split(":")[1].trim())}catch(f){}e.attributes&&(n.save(),e.attributes.transform&&o.startTransform(e.attributes.transform.value,n),e.attributes["clip-path"]&&o.applyClip(e.attributes["clip-path"].value,n,r)),0===d.length||1===d.length&&!d[0].tagName?"undefined"!=typeof e.tagName?(s="draw"+e.tagName,i[s]?e.attributes.display&&"none"===e.attributes.display.value?h():i[s](e,n,r,"draw",h):h()):h():o.drawNodes(d,"svg"===e.tagName?[]:e.attributes,r,n,h)},i.drawtext=function(e,t,r,n,a){this.drawtspan(e,t,r,n,a)},i.drawtspan=function(e,t,r,i,s){var l,c,u,d,h,f=e.innerHTML||e.textContent,p=e.attributes.x?e.attributes.x.value:0,g=e.attributes.y?e.attributes.y.value:0,m=e.attributes.dx?e.attributes.dx.value:0,v=e.attributes.dy?e.attributes.dy.value:0,b="serief",y="normal",w="16px",x=[];a.getElementsByTagName("body")[0]&&((l=n.getComputedStyle(a.getElementsByTagName("body")[0],null)).getPropertyValue("font-family")&&(b=l.getPropertyValue("font-family")),l.getPropertyValue("font-weight")&&(y=l.getPropertyValue("font-weight")),l.getPropertyValue("font-size")&&(w=l.getPropertyValue("font-size"))),c=e.attributes["font-family"]?e.attributes["font-family"].value:b,u=e.attributes["font-weight"]?e.attributes["font-weight"].value:y,d=e.attributes["text-anchor"]?e.attributes["text-anchor"].value:"start",h=e.attributes["font-size"]?e.attributes["font-size"].value:w,p=Number(p)+Number(m),g=Number(g)+Number(v),f=f.trim(),d="middle"===d?"center":d,t.save(),t.font=u+" "+h+" "+c,t.textAlign=d,"draw"===i&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(o.applyFillEffect(e,t,r,x),t.fillText(f,p,g),o.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(o.applyStrokeEffect(e,t,r,x),t.strokeText(f,p,g),o.endStrokeEffect(e,t))),t.restore(),"function"==typeof s&&s()},i.drawcircle=function(e,t,r,n,a){var i=Number(e.attributes.cx.value),s=Number(e.attributes.cy.value),l=Number(e.attributes.r.value),c=[];t.beginPath(),t.arc(i,s,l,0,2*Math.PI),o.bBoxFromPoint([i,1*i+1*l,1*i-1*l],[s,1*s+1*l,1*s-1*l],c),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(o.applyFillEffect(e,t,r,c),t.fill(),o.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(o.applyStrokeEffect(e,t,r,c),t.stroke(),o.endStrokeEffect(e,t))),t.closePath(),"function"==typeof a&&a()},i.drawrect=function(e,t,r,n,a){var i=e.attributes.x?Number(e.attributes.x.value):0,s=e.attributes.y?Number(e.attributes.y.value):0,l=e.attributes.rx?Number(e.attributes.rx.value):0,c=e.attributes.ry?Number(e.attributes.ry.value):0,u=Number(e.attributes.height.value),d=Number(e.attributes.width.value),h=[],f=t.lineCap;t.lineCap="square",o.bBoxFromPoint([i,i+d],[s,s+u],h),t.beginPath(),t.moveTo(i+l,s),t.lineTo(i+d-l,s),t.quadraticCurveTo(i+d,s,i+d,s+c),t.lineTo(i+d,s+u-c),t.quadraticCurveTo(i+d,s+u,i+d-l,s+u),t.lineTo(i+l,s+u),t.quadraticCurveTo(i,s+u,i,s+u-c),t.lineTo(i,s+c),t.quadraticCurveTo(i,s,i+l,s),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(o.applyFillEffect(e,t,r,h),t.fill(),o.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(o.applyStrokeEffect(e,t,r,h),t.stroke(),o.endStrokeEffect(e,t))),t.closePath(),t.lineCap=f,"function"==typeof a&&a()},i.drawellipse=function(e,t,r,n,a){var i=.5522848,s=Number(e.attributes.cx.value),l=Number(e.attributes.cy.value),c=Number(e.attributes.rx.value),u=Number(e.attributes.ry.value),d=c*i,h=u*i,f=s+c,p=l+u,g=[];t.beginPath(),t.moveTo(s-c,l),t.bezierCurveTo(s-c,l-h,s-d,l-u,s,l-u),t.bezierCurveTo(s+d,l-u,f,l-h,f,l),t.bezierCurveTo(f,l+h,s+d,p,s,p),t.bezierCurveTo(s-d,p,s-c,l+h,s-c,l),o.bBoxFromPoint([s+c,s-c],[l+u,l-u],g),"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(o.applyFillEffect(e,t,r,g),t.fill(),o.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(o.applyStrokeEffect(e,t,r,g),t.stroke(),o.endStrokeEffect(e,t))),t.closePath(),"function"==typeof a&&a()},i.drawimage=function(e,t,r,n,a){var i,o=e.attributes.x?Number(e.attributes.x.value):0,s=e.attributes.y?Number(e.attributes.y.value):0,l=e.attributes.height?Number(e.attributes.height.value):0,c=e.attributes.width?Number(e.attributes.width.value):0,u=r._getStore("imageArr");t.save(),e.attributes.opacity&&(t.globalAlpha=e.attributes.opacity.value),e.attributes["xlink:href"]?(i=e.attributes["xlink:href"].value,"complete"===u[i].status?(t.drawImage(u[i].obj,o,s,c,l),t.globalAlpha=1,t.restore(),"function"==typeof a&&a()):"error"===u[i].status?(t.globalAlpha=1,t.restore(),"function"==typeof a&&a()):"progress"===u[i].status?(u[i].callback=function(){t.drawImage(u[i].obj,o,s,c,l),t.globalAlpha=1,t.restore(),"function"==typeof a&&a()},u[i].errCallback=function(){t.globalAlpha=1,t.restore(),"function"==typeof a&&a()}):(t.globalAlpha=1,t.restore(),"function"==typeof a&&a())):(t.globalAlpha=1,t.restore(),"function"==typeof a&&a())},i.drawpath=function(e,t,r,n,a){var i,s,l,c,u=e.attributes.d.value.match(/[a-z][^a-z"]*/gi),d=[],h=0,f=0,p={};for(i in t.beginPath(),u)if(u.hasOwnProperty(i))switch(s=u[i].substring(0,1),l=o.getArgsAsArray(u[i].substring(1,u[i].length)),s){case"M":h=Number(l[0]),f=Number(l[1]),t.moveTo(h,f),p.cx=h,p.cy=f;break;case"m":h+=Number(l[0]),f+=Number(l[1]),t.moveTo(h,f),p.cx=h,p.cy=f;break;case"L":for(c=0;l[c];c+=2)o.bBoxFromPoint([h,l[c]],[f,l[c+1]],d),h=Number(l[c]),f=Number(l[c+1]),t.lineTo(h,f);break;case"l":for(c=0;l[c];c+=2)o.bBoxFromPoint([h,1*h+1*l[c]],[f,1*f+1*l[c+1]],d),h+=Number(l[c]),f+=Number(l[c+1]),t.lineTo(h,f);break;case"V":for(c=0;l[c];c+=1)o.bBoxFromPoint([h],[f,l[c]],d),f=Number(l[c]),t.lineTo(h,f);break;case"v":for(c=0;l[c];c+=1)o.bBoxFromPoint([h],[f,1*f+1*l[c]],d),f+=Number(l[c]),t.lineTo(h,f);break;case"H":for(c=0;l[c];c+=1)o.bBoxFromPoint([h,l[c]],[f],d),h=Number(l[c]),t.lineTo(h,f);break;case"h":for(c=0;l[c];c+=1)o.bBoxFromPoint([h,1*h+1*l[c]],[f],d),h+=Number(l[c]),t.lineTo(h,f);break;case"Q":for(c=0;l[c];c+=4)o.qBezierBBox(h,f,l[c],l[c+1],l[c+2],l[c+3],d),t.quadraticCurveTo(Number(l[c]),Number(l[c+1]),Number(l[c+2]),Number(l[c+3])),h=Number(l[c+2]),f=Number(l[c+3]);break;case"q":for(c=0;l[c];c+=4)o.qBezierBBox(h,f,h+1*l[c],f+1*l[c+1],1*h+1*l[c+2],1*f+1*l[c+3],d),t.quadraticCurveTo(h+1*l[c],f+1*l[c+1],h+=Number(l[c+2]),f+=Number(l[c+3]));break;case"C":for(c=0;l[c];c+=6)o.cBezierBBox(h,f,l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5],d),t.bezierCurveTo(l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5]),h=Number(l[c+4]),f=Number(l[c+5]);break;case"c":for(c=0;l[c];c+=6)o.cBezierBBox(h,f,h+1*l[c],1*f+1*l[c+1],h+1*l[c+2],1*f+1*l[c+3],h+1*l[c+4],1*f+1*l[c+5],d),t.bezierCurveTo(h+Number(l[c]),f+Number(l[c+1]),h+Number(l[c+2]),f+Number(l[c+3]),h+=Number(l[c+4]),f+=Number(l[c+5]));break;case"a":case"A":for(c=0;l[c];c+=7){var g,m,v,b,y,w,x,_,S,k,C,A,N,E,L,T,M,F,D=Number(l[c]),I=Number(l[c+1]);if(g=Number(l[c+2])*(Math.PI/180),m=Number(l[c+3]),v=Number(l[c+4]),b=Number(l[c+5]),y=Number(l[c+6]),w=Math.cos(g)*(h-b)/2+Math.sin(g)*(f-y)/2,x=-Math.sin(g)*(h-b)/2+Math.cos(g)*(f-y)/2,D=D<0?-D:D,I=I<0?-I:I,(L=Math.pow(w,2)/Math.pow(D,2)+Math.pow(x,2)/Math.pow(I,2))>1&&(D*=Math.sqrt(L),I*=Math.sqrt(L)),T=D>I?D:I,M=D>I?1:D/I,F=D>I?I/D:1,_=(m===v?-1:1)*Math.sqrt((Math.pow(D,2)*Math.pow(I,2)-Math.pow(D,2)*Math.pow(x,2)-Math.pow(I,2)*Math.pow(w,2))/(Math.pow(D,2)*Math.pow(x,2)+Math.pow(I,2)*Math.pow(w,2))),isNaN(_)&&(_=0),k=I*w*-_/D,C=(S=_*(D*x)/I)*Math.cos(g)-k*Math.sin(g)+(h+b)/2,A=S*Math.sin(g)+k*Math.cos(g)+(f+y)/2,N=o.angleBetweenVectors(1,0,(w-S)/D,(x-k)/I),E=o.angleBetweenVectors((w-S)/D,(x-k)/I,(-w-S)/D,(-x-k)/I),0===v&&E>0&&(E-=Math.PI/180*360),1===v&&E<0&&(E+=Math.PI/180*360),0===D&&0===I){t.lineTo(b,y);break}t.save();var O=o.combineTransformMatrix([[1,0,C,0,1,A],[Math.cos(g),Math.sin(g),0,Math.sin(g),Math.cos(g),0],[M,0,0,0,F,0]]);t.transform(O[0],O[3],O[1],O[4],O[2],O[5]),t.arc(0,0,T,N,N+E,1-v),t.restore(),o.arcBBox(0,0,T,N,N+E,1-v,[O[0],O[3],O[1],O[4],O[2],O[5]],d),"A"===s?(h=Number(l[c+5]),f=Number(l[c+6])):(h+=Number(l[c+5]),f+=Number(l[c+6]))}break;case"Z":case"z":t.closePath(),h=p.cx,f=p.cy}"draw"===n&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(o.applyFillEffect(e,t,r,d),t.fill(),o.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(o.applyStrokeEffect(e,t,r,d),t.stroke(),o.endStrokeEffect(e,t)),a())},o.drawNodes=function(e,t,r,n,a){var o=e.length,s=-1,l=0,c=0,u=function(){var d;(s+=1)<o?((d=e[s]).tagName&&"defs"===d.tagName&&(d=e[s+=1]),d.attributes&&(d.attributes.dy&&(c=d.attributes.dy.value=1*d.attributes.dy.value+1*c),d.attributes.dx&&(l=d.attributes.dx.value=1*d.attributes.dx.value+1*l)),i.common(d,t,r,n,u)):a&&a()};u()},o.getSvgDimention=function(e){var t,r={width:0,height:0};return t=e.childNodes&&e.childNodes[0]&&e.childNodes[0].attributes,r.width=Number(t.width&&t.width.value||0),r.height=Number(t.height&&t.height.value||0),r},o.storeImagesInArr=function(e){var t,r,n,a,i=e.getSVG();for(a in n=e._getStore("imageArr"),t=i.getElementsByTagName("image"))t.hasOwnProperty(a)&&t[a].attributes&&t[a].attributes["xlink:href"]&&(r=t[a].attributes["xlink:href"].value,n[r]||(n[r]=[],n[r].status="progress",n[r].callback=null,n[r].obj=new Image,n[r].obj.onload=function(e){return function(){var t=n[e].callback;t?(n[e].status="complete",t()):n[e].status="complete"}}(r),n[r].obj.onerror=function(e){return function(){var t=n[e].errCallback;t?(n[e].status="error",t()):n[e].status="error"}}(r),n[r].obj.src=r))},o.startTransform=function(e,t){var r,n,a=e.match(/[^\s][a-z,0-9.\-(\s]+\)/gi);for(n in a)a.hasOwnProperty(n)&&(a[n].indexOf("matrix")>-1&&(r=o.stringToArgs(a[n]),t.transform(r[0],r[1],r[2],r[3],r[4],r[5])),a[n].indexOf("translate")>-1&&(r=o.stringToArgs(a[n]),t.translate(r[0]||0,r[1]||0)),a[n].indexOf("rotate")>-1&&(3===(r=o.stringToArgs(a[n])).length?(t.translate(r[1],r[2]),t.rotate(r[0]*(Math.PI/180)),t.translate(-r[1],-r[2])):t.rotate(r[0]*(Math.PI/180))),a[n].indexOf("scale")>-1&&(1===(r=o.stringToArgs(a[n])).length?t.scale(r[0]||1,r[0]||1):t.scale(r[0]||1,r[1]||1)),a[n].indexOf("skewX")>-1&&(r=o.stringToArgs(a[n]),t.transform(1,0,Math.tan(r[0]*(Math.PI/180)),1,0,0)),a[n].indexOf("skewY")>-1&&(r=o.stringToArgs(a[n]),t.transform(1,Math.tan(r[0]*(Math.PI/180)),0,1,0,0)))},o.resetTransform=function(e){e.setTransform(1,0,0,1,0,0)},o.stringToArgs=function(e){var t=/\(([^)]+)/.exec(e)[1];return o.getArgsAsArray(t)},o.getArgsAsArray=function(e){var t;for(e=e.trim().split(/[\s,]+/),t=0;t<e.length;t++)e[t].trim(),0===e[t].length&&e.splice(t,1);return e},o.applyFillEffect=function(e,t,r,n){var a;e.attributes["fill-opacity"]&&"none"!==e.attributes["fill-opacity"].value?t.globalAlpha=e.attributes["fill-opacity"].value:t.globalAlpha=1,e.attributes.fill&&e.attributes.fill.value.indexOf("url(")>-1?(a=o.getFillStyleById(/url\(.*#([^)'"]+)/.exec(e.attributes.fill.value)[1],t,r,n),t.fillStyle=a):e.attributes.fill?t.fillStyle=e.attributes.fill.value:t.fillStyle="#000000"},o.endFillEffect=function(e,t){t.globalAlpha=1},o.applyStrokeEffect=function(e,t,r,n){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=e.attributes["stroke-opacity"].value),e.attributes["stroke-width"]&&(t.lineWidth=e.attributes["stroke-width"].value,"0"===e.attributes["stroke-width"].value&&(t.globalAlpha=0)),e.attributes["stroke-linecap"]&&"none"!==e.attributes["stroke-linecap"].value&&(t.lineCap=e.attributes["stroke-linecap"].value),e.attributes["stroke-linejoin"]&&"none"!==e.attributes["stroke-linejoin"].value&&(t.lineJoin=e.attributes["stroke-linejoin"].value),e.attributes["stroke-dasharray"]&&"none"!==e.attributes["stroke-dasharray"].value&&t.setLineDash&&t.setLineDash(o.getArgsAsArray(e.attributes["stroke-dasharray"].value)),e.attributes.stroke?t.strokeStyle=e.attributes.stroke.value:t.strokeStyle="#000000"},o.endStrokeEffect=function(e,t){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=1,t.setLineDash&&t.setLineDash([]),t.lineWidth=1),t.globalAlpha=1},o.applyClip=function(e,t,r){var n,a,s,l,c,u=r.getSVG();if(-1!==e.indexOf("url(")){for(l in n=/url\(.*#([^)'"]+)/.exec(e)[1],(a=u.getElementById(n)).attributes&&(t.save(),a.attributes.transform&&o.startTransform(a.attributes.transform.value,t)),s=a.childNodes)s.hasOwnProperty(l)&&s[l].tagName&&s[l].constructor!==Array&&(c="draw"+s[l].tagName,s[l].attributes&&(t.save(),s[l].attributes.transform&&o.startTransform(s[l].attributes.transform.value,t)),i[c]&&(i[c](s[l],t,r,"clip"),t.closePath()),s[l].attributes&&t.restore());a.attributes&&t.restore(),t.clip()}},o.getFillStyleById=function(e,t,r,n){var a=r.getSVG().getElementById(e);return"linearGradient"===a.tagName?o.getLinearGradient(a,t,n):"radialGradient"===a.tagName?o.getRadialGradient(a,t,n):"#FFFFFF"},o.getLinearGradient=function(e,t,r){var n,a,i,s,l,c=e.attributes.x1?o.getPercentValue(e.attributes.x1.value,r.xMax-r.xMin,r.xMin):0,u=e.attributes.y1?o.getPercentValue(e.attributes.y1.value,r.yMax-r.yMin,r.yMin):0,d=e.attributes.x2?o.getPercentValue(e.attributes.x2.value,r.xMax-r.xMin,r.xMin):0,h=e.attributes.y2?o.getPercentValue(e.attributes.y2.value,r.yMax-r.yMin,r.yMin):0;for(i in n=t.createLinearGradient(c,u,d,h),a=e.childNodes)a.hasOwnProperty(i)&&a[i].attributes&&a[i].attributes["stop-color"]&&(s=o.toRGB(a[i].attributes["stop-color"].value),l=a[i].attributes["stop-opacity"]?a[i].attributes["stop-opacity"].value:1,s.status?n.addColorStop(o.getPercentValue(a[i].attributes.offset.value,1,0),"rgba("+s.r+","+s.g+","+s.b+","+Number(l)+")"):n.addColorStop(o.getPercentValue(a[i].attributes.offset.value,1,0),a[i].attributes["stop-color"].value));return n},o.getRadialGradient=function(e,t,r){var n,a,i,s,l,c=e.attributes.cx?o.getPercentValue(e.attributes.cx.value,r.xMax-r.xMin,r.xMin):r.xMin+.5*(r.xMax-r.xMin),u=e.attributes.cy?o.getPercentValue(e.attributes.cy.value,r.yMax-r.yMin,r.yMin):r.yMin+.5*(r.yMax-r.yMin),d=e.attributes.fx?o.getPercentValue(e.attributes.fx.value,r.xMax-r.xMin,r.xMin):r.xMin+.5*(r.xMax-r.xMin),h=e.attributes.fy?o.getPercentValue(e.attributes.fy.value,r.yMax-r.yMin,r.yMin):r.yMin+.5*(r.yMax-r.yMin),f=e.attributes.r?o.getPercentValue(e.attributes.r.value,(r.yMax-r.yMin+r.xMax-r.xMin)/2,0):o.getPercentValue("50%",(r.yMax-r.yMin+r.xMax-r.xMin)/2,0);for(i in n=t.createRadialGradient(d,h,0,c,u,f),a=e.childNodes)a.hasOwnProperty(i)&&a[i].attributes&&a[i].attributes["stop-color"]&&(s=o.toRGB(a[i].attributes["stop-color"].value),l=a[i].attributes["stop-opacity"]?a[i].attributes["stop-opacity"].value:1,s.status?n.addColorStop(o.getPercentValue(a[i].attributes.offset.value,1,0),"rgba("+s.r+","+s.g+","+s.b+","+Number(l)+")"):n.addColorStop(o.getPercentValue(a[i].attributes.offset.value,1,0),a[i].attributes["stop-color"].value));return n},o.getPercentValue=function(e,t,r){var n;return-1!==e.indexOf("%")?((n=/(\d.*)%/.exec(e)[1])>100&&(n=100),n*t/100+1*r):e>1?e:e*t+1*r},o.bBoxFromPoint=function(e,t,r){"undefined"!=typeof r.xMin&&(e.push(r.xMin,r.xMax),t.push(r.yMin,r.yMax)),r.xMin=Math.min.apply(this,e),r.xMax=Math.max.apply(this,e),r.yMin=Math.min.apply(this,t),r.yMax=Math.max.apply(this,t)},o.arcBBox=function(e,t,r,n,a,i,o,s){var l,c,u,d,h,f,p,g,m,v,b;o instanceof Array&&(e=e*o[0]+e*o[2]+o[4],t=t*o[1]+t*o[3]+o[5]),b=function(e,t,r){return(e=(e+2*Math.PI)%(2*Math.PI))<=(t=(t+2*Math.PI)%(2*Math.PI))?e<=r&&r<=t:e>=t?!(e>=r&&r>=t):void 0},l=n%(2*Math.PI),c=a%(2*Math.PI),i&&(l=a%(2*Math.PI),c=n%(2*Math.PI)),u=e+r*Math.cos(l),d=t+r*Math.sin(l),m=[u,e+r*Math.cos(c)],v=[d,t+r*Math.sin(c)],b(l,c,0)&&(m.push(1*e+1*r),v.push(t)),b(l,c,.5*Math.PI)&&(m.push(e),v.push(1*t+1*r)),b(l,c,Math.PI)&&(m.push(e-1*r),v.push(t)),b(l,c,1.5*Math.PI)&&(m.push(e),v.push(t-1*r)),p=Math.max.apply(this,m),h=Math.min.apply(this,m),g=Math.max.apply(this,v),f=Math.min.apply(this,v),"undefined"!=typeof s.xMin?(s.xMin=Math.min(h,s.xMin),s.xMax=Math.max(p,s.xMax),s.yMin=Math.min(f,s.yMin),s.yMax=Math.max(g,s.yMax)):(s.xMin=h,s.xMax=p,s.yMin=f,s.yMax=g)},o.qBezierBBox=function(e,t,r,n,a,i,o){var s,l,c,u,d,h,f,p,g=1*e-2*r+1*a,m=1*t-2*n+1*i;0===g||0===m?(d=Math.max(e,a),c=Math.min(e,a),h=Math.max(t,i),u=Math.min(t,i)):(s=(e-r)/g,l=(t-n)/m,f=e*Math.pow(1-s,2)+2*r*(1-s)*s+a*Math.pow(s,2),p=t*Math.pow(1-l,2)+2*n*(1-l)*l+i*Math.pow(l,2),d=Math.max(e,a,f),c=Math.min(e,a,f),h=Math.max(t,i,p),u=Math.min(t,i,p)),"undefined"!=typeof o.xMin?(o.xMin=Math.min(c,o.xMin),o.xMax=Math.max(d,o.xMax),o.yMin=Math.min(u,o.yMin),o.yMax=Math.max(h,o.yMax)):(o.xMin=c,o.xMax=d,o.yMin=u,o.yMax=h)},o.cBezierBBox=function(e,t,r,n,a,i,o,s,l){var c,u,d,h,f,p,g,m,v,b,y,w,x;null===a&&null===i&&(a=t+2/3*(n-t),n=(r=e+2/3*(r-e))+1/3*(o-e),i=a+1/3*(s-t)),y=function(e,t,r,n,a){return e*Math.pow(1-a,3)+3*t*a*Math.pow(1-a,2)+3*r*a*a*(1-a)+n*a*a*a},f=3*o-9*a+9*r-3*e,p=6*e-12*r+6*a,g=3*r-3*e,o<(c=e)&&(c=o),o>(u=e)&&(u=o),(m=Math.pow(p,2)-4*f*g)>=0&&((v=(-p+Math.sqrt(m))/(2*f))>0&&v<1&&((w=y(e,r,a,o,v))<c&&(c=w),w>u&&(u=w)),(b=(-p-Math.sqrt(m))/(2*f))>0&&b<1&&((w=y(e,r,a,o,b))<c&&(c=w),w>u&&(u=w))),f=3*s-9*i+9*n-3*t,p=6*t-12*n+6*i,g=3*n-3*t,s<(d=t)&&(d=s),s>(h=t)&&(h=s),(m=Math.pow(p,2)-4*f*g)>=0&&((v=(-p+Math.sqrt(m))/(2*f))>0&&v<1&&((x=y(t,n,i,s,v))<d&&(d=x),x>h&&(h=x)),(b=(-p-Math.sqrt(m))/(2*f))>0&&b<1&&((x=y(t,n,i,s,b))<d&&(d=x),x>h&&(h=x))),"undefined"!=typeof l.xMin?(l.xMin=Math.min(c,l.xMin),l.xMax=Math.max(u,l.xMax),l.yMin=Math.min(d,l.yMin),l.yMax=Math.max(h,l.yMax)):(l.xMin=c,l.xMax=u,l.yMin=d,l.yMax=h)},o.combineTransformMatrix=function(e){var t,r,n=e.length-1;if(n<=0)return e[0];for(r=e[0],t=1;t<=n;t++)r[0]=r[0]*e[t][0]+r[1]*e[t][3],r[1]=r[0]*e[t][1]+r[1]*e[t][4],r[2]=r[0]*e[t][2]+r[1]*e[t][5]+1*r[2],r[3]=r[3]*e[t][0]+r[4]*e[t][3],r[4]=r[3]*e[t][1]+r[4]*e[t][4],r[5]=r[3]*e[t][2]+r[4]*e[t][5]+1*r[5];return r},o.angleBetweenVectors=function(e,t,r,n){var a=e*n<t*r?-1:1,i=e*r+t*n,o=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));return a*Math.acos(i/(o*s))},o.toRGB=function(e){var t,r,n,a={r:0,g:0,b:0,status:0};return r=function(e){for(n in e)e.hasOwnProperty(n)&&(e[n]<0||isNaN(e[n])?e[n]=0:e[n]>255&&(e[n]=255));return a={r:e[0],g:e[1],b:e[2],status:1}},(e=e.trim()).match(/^rgb\(|^rgba\(/i)?(t=/\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})/.exec(e),r([parseInt(t[1]),parseInt(t[2]),parseInt(t[3])])):e.match(/^#/)&&(t=/(\w{2})(\w{2})(\w{2})/.exec(e),r([parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)])),a},o.StrToDom=function(e){var t;return n.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new n.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e)),t};t["default"]=r},(e,t,r)=>{"use strict";t.__esModule=!0,t.addImage=function(e,t,r){s=t,l=r,n=o,a=o,i=o,n=s||c,a=l||u,i=e;var s,l},t.getDataUrl=function(){s=a>n?"l":"p";var e=new l.jsPDF(s,"px",[a,n]);return e.addImage(i,"JPEG",0,0,a,n),e.output("datauristring").replace("filename=generated.pdf;","")};var n,a,i,o,s,l=r(458),c=500,u=500},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AcroForm:()=>Le,AcroFormAppearance:()=>Ce,AcroFormButton:()=>be,AcroFormCheckBox:()=>_e,AcroFormChoiceField:()=>pe,AcroFormComboBox:()=>me,AcroFormEditBox:()=>ve,AcroFormListBox:()=>ge,AcroFormPasswordField:()=>ke,AcroFormPushButton:()=>ye,AcroFormRadioButton:()=>we,AcroFormTextField:()=>Se,GState:()=>P,ShadingPattern:()=>j,TilingPattern:()=>B,"default":()=>z,jsPDF:()=>z});var n=r(459),a=r(460),i=r(461),o=r(467),s=function(){return"undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:this}();function l(){s.console&&"function"==typeof s.console.log&&s.console.log.apply(s.console,arguments)}var c={log:l,warn:function(e){s.console&&("function"==typeof s.console.warn?s.console.warn.apply(s.console,arguments):l.call(null,arguments))},error:function(e){s.console&&("function"==typeof s.console.error?s.console.error.apply(s.console,arguments):l(e))}};function u(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){f(n.response,t,r)},n.onerror=function(){c.error("could not download file")},n.send()}function d(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(r){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var f=s.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,n["default"])(window))||window!==s?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=s.URL||s.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?d(a.href)?u(e,t,r):h(a,a.target="_blank"):h(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){h(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(d(e))u(e,t,r);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){h(a)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,n["default"])(t)&&(c.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return u(e,t,r);var i="application/octet-stream"===e.type,o=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,n["default"])(FileReader))){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},c.readAsDataURL(e)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(e);a?a.location=h:location.href=h,a=null,setTimeout(function(){d.revokeObjectURL(h)},4e4)}});
/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function p(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,i=r[n].process,o=a.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r}}var g=s.atob.bind(s),m=s.btoa.bind(s);
/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function v(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r=y(r,n,a,i,t[0],7,-680876936),i=y(i,r,n,a,t[1],12,-389564586),a=y(a,i,r,n,t[2],17,606105819),n=y(n,a,i,r,t[3],22,-1044525330),r=y(r,n,a,i,t[4],7,-176418897),i=y(i,r,n,a,t[5],12,1200080426),a=y(a,i,r,n,t[6],17,-1473231341),n=y(n,a,i,r,t[7],22,-45705983),r=y(r,n,a,i,t[8],7,1770035416),i=y(i,r,n,a,t[9],12,-1958414417),a=y(a,i,r,n,t[10],17,-42063),n=y(n,a,i,r,t[11],22,-1990404162),r=y(r,n,a,i,t[12],7,1804603682),i=y(i,r,n,a,t[13],12,-40341101),a=y(a,i,r,n,t[14],17,-1502002290),r=w(r,n=y(n,a,i,r,t[15],22,1236535329),a,i,t[1],5,-165796510),i=w(i,r,n,a,t[6],9,-1069501632),a=w(a,i,r,n,t[11],14,643717713),n=w(n,a,i,r,t[0],20,-373897302),r=w(r,n,a,i,t[5],5,-701558691),i=w(i,r,n,a,t[10],9,38016083),a=w(a,i,r,n,t[15],14,-660478335),n=w(n,a,i,r,t[4],20,-405537848),r=w(r,n,a,i,t[9],5,568446438),i=w(i,r,n,a,t[14],9,-1019803690),a=w(a,i,r,n,t[3],14,-187363961),n=w(n,a,i,r,t[8],20,1163531501),r=w(r,n,a,i,t[13],5,-1444681467),i=w(i,r,n,a,t[2],9,-51403784),a=w(a,i,r,n,t[7],14,1735328473),r=x(r,n=w(n,a,i,r,t[12],20,-1926607734),a,i,t[5],4,-378558),i=x(i,r,n,a,t[8],11,-2022574463),a=x(a,i,r,n,t[11],16,1839030562),n=x(n,a,i,r,t[14],23,-35309556),r=x(r,n,a,i,t[1],4,-1530992060),i=x(i,r,n,a,t[4],11,1272893353),a=x(a,i,r,n,t[7],16,-155497632),n=x(n,a,i,r,t[10],23,-1094730640),r=x(r,n,a,i,t[13],4,681279174),i=x(i,r,n,a,t[0],11,-358537222),a=x(a,i,r,n,t[3],16,-722521979),n=x(n,a,i,r,t[6],23,76029189),r=x(r,n,a,i,t[9],4,-640364487),i=x(i,r,n,a,t[12],11,-421815835),a=x(a,i,r,n,t[15],16,530742520),r=_(r,n=x(n,a,i,r,t[2],23,-995338651),a,i,t[0],6,-198630844),i=_(i,r,n,a,t[7],10,1126891415),a=_(a,i,r,n,t[14],15,-1416354905),n=_(n,a,i,r,t[5],21,-57434055),r=_(r,n,a,i,t[12],6,1700485571),i=_(i,r,n,a,t[3],10,-1894986606),a=_(a,i,r,n,t[10],15,-1051523),n=_(n,a,i,r,t[1],21,-2054922799),r=_(r,n,a,i,t[8],6,1873313359),i=_(i,r,n,a,t[15],10,-30611744),a=_(a,i,r,n,t[6],15,-1560198380),n=_(n,a,i,r,t[13],21,1309151649),r=_(r,n,a,i,t[4],6,-145523070),i=_(i,r,n,a,t[11],10,-1120210379),a=_(a,i,r,n,t[2],15,718787259),n=_(n,a,i,r,t[9],21,-343485551),e[0]=T(r,e[0]),e[1]=T(n,e[1]),e[2]=T(a,e[2]),e[3]=T(i,e[3])}function b(e,t,r,n,a,i){return t=T(T(t,e),T(n,i)),T(t<<a|t>>>32-a,r)}function y(e,t,r,n,a,i,o){return b(t&r|~t&n,e,t,a,i,o)}function w(e,t,r,n,a,i,o){return b(t&n|r&~n,e,t,a,i,o)}function x(e,t,r,n,a,i,o){return b(t^r^n,e,t,a,i,o)}function _(e,t,r,n,a,i,o){return b(r^(t|~n),e,t,a,i,o)}function S(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)v(n,k(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(v(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*r,v(n,a),n}function k(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var C="0123456789abcdef".split("");function A(e){for(var t="",r=0;r<4;r++)t+=C[e>>8*r+4&15]+C[e>>8*r&15];return t}function N(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function E(e){return S(e).map(N).join("")}var L="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=A(e[t]);return e.join("")}(S("hello"));function T(e,t){if(L){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}
/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function M(e,t){var r,n,a,i;if(e!==r){for(var o=(a=e,i=1+(256/e.length|0),new Array(i+1).join(a)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var d=t.length,h=0,f=0,p="";for(l=0;l<d;l++)f=(f+(u=s[h=(h+1)%256]))%256,s[h]=s[f],s[f]=u,o=s[(s[h]+s[f])%256],p+=String.fromCharCode(t.charCodeAt(l)^o);return p}
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var F={print:4,modify:8,copy:16,"annot-forms":32};function D(e,t,r,n){this.v=1,this.r=2;var a=192;e.forEach(function(e){if(void 0!==F.perm)throw new Error("Invalid permission: "+e);a+=F[e]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=E(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=M(this.encryptionKey,this.padding)}function I(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);t+=a<33||35===a||37===a||40===a||41===a||47===a||60===a||62===a||91===a||93===a||123===a||125===a||a>126?"#"+("0"+a.toString(16)).slice(-2):e[n]}return t}function O(e){if("object"!==(0,n["default"])(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,n){if(n=n||!1,"string"!=typeof e||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[r,!!n],a},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],0===Object.keys(t[r]).length&&delete t[r],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[r]){var o=t[r][i];try{o[0].apply(e,n)}catch(h){s.console&&c.error("jsPDF PubSub Error",h.message,h)}o[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function P(e){if(!(this instanceof P))return new P(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function R(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function j(e,t,r,n,a){if(!(this instanceof j))return new j(e,t,r,n,a);this.type="axial"===e?2:3,this.coords=t,this.colors=r,R.call(this,n,a)}function B(e,t,r,n,a){if(!(this instanceof B))return new B(e,t,r,n,a);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,R.call(this,n,a)}function z(e){var t,r="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],i=arguments[2],o=arguments[3],l=[],u=1,d=16,h="S",g=null;"object"===(0,n["default"])(e=e||{})&&(r=e.orientation,a=e.unit||a,i=e.format||i,o=e.compress||e.compressPdf||o,null!==(g=e.encryption||null)&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),u="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(d=e.floatPrecision),h=e.defaultPathOperation||"S"),l=e.filters||(!0===o?["FlateEncode"]:l),a=a||"mm",r=(""+(r||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=O;var w="1.3",x=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(e){w=e};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return _};var S=y.__private__.getPageFormat=function(e){return _[e]};i=i||"a4";var k="compat",C="advanced",A=k;function N(){this.saveGraphicsState(),ue(new qe(Ce,0,0,-Ce,0,xr()*Ce).toString()+" cm"),this.setFontSize(this.getFontSize()/Ce),h="n",A=C}function E(){this.restoreGraphicsState(),h="S",A=k}var L=y.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};y.advancedAPI=function(e){var t=A===k;return t&&N.call(this),"function"!=typeof e||(e(this),t&&E.call(this)),this},y.compatAPI=function(e){var t=A===C;return t&&E.call(this),"function"!=typeof e||(e(this),t&&N.call(this)),this},y.isAdvancedAPI=function(){return A===C};var T,M=function(e){if(A!==C)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},F=y.roundToPrecision=y.__private__.roundToPrecision=function(e,r){var n=t||r;if(isNaN(e)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(n).replace(/0+$/,"")};T=y.hpf=y.__private__.hpf="number"==typeof d?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,d)}:"smart"===d?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return F(e,16)};var R=y.f2=y.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return F(e,2)},V=y.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return F(e,3)},U=y.scale=y.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return A===k?e*Ce:A===C?e:void 0},H=function(e){return U(function(e){return A===k?xr()-e:A===C?e:void 0}(e))};y.__private__.setPrecision=y.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var q,G="00000000000000000000000000000000",W=y.__private__.getFileId=function(){return G},$=y.__private__.setFileId=function(e){return G=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==g&&(Mt=new D(g.userPermissions,g.userPassword,g.ownerPassword,G)),G};y.setFileId=function(e){return $(e),this},y.getFileId=function(){return W()};var X=y.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),r=t<0?"+":"-",n=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),i=[r,Q(n),"'",Q(a),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),i].join("")},Y=y.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),r=parseInt(e.substr(6,2),10)-1,n=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,r,n,a,i,o,0)},K=y.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=X(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return q=t},J=y.__private__.getCreationDate=function(e){var t=q;return"jsDate"===e&&(t=Y(q)),t};y.setCreationDate=function(e){return K(e),this},y.getCreationDate=function(e){return J(e)};var Z,Q=y.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=y.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,re=[],ne=[],ae=0,ie=[],oe=[],se=!1,le=ne;y.__private__.setCustomOutputDestination=function(e){se=!0,le=e};var ce=function(e){se||(le=e)};y.__private__.resetCustomOutputDestination=function(){se=!1,le=ne};var ue=y.__private__.out=function(e){return e=e.toString(),ae+=e.length+1,le.push(e),le},de=y.__private__.write=function(e){return ue(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},he=y.__private__.getArrayBuffer=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r);t--;)n[t]=e.charCodeAt(t);return r},fe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return fe};var pe=e.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(e){return pe=A===C?e/Ce:e,this};var ge,me=y.__private__.getFontSize=y.getFontSize=function(){return A===k?pe:pe*Ce},ve=e.R2L||!1;y.__private__.setR2L=y.setR2L=function(e){return ve=e,this},y.__private__.getR2L=y.getR2L=function(){return ve};var be,ye=y.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ge=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ge=e}else ge=parseInt(e,10)};y.__private__.getZoomMode=function(){return ge};var we,xe=y.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');be=e};y.__private__.getPageMode=function(){return be};var _e=y.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');we=e};y.__private__.getLayoutMode=function(){return we},y.__private__.setDisplayMode=y.setDisplayMode=function(e,t,r){return ye(e),_e(t),xe(r),this};var Se={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(e){if(-1===Object.keys(Se).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Se[e]},y.__private__.getDocumentProperties=function(){return Se},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(e){for(var t in Se)Se.hasOwnProperty(t)&&e[t]&&(Se[t]=e[t]);return this},y.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(Se).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Se[e]=t};var ke,Ce,Ae,Ne,Ee,Le={},Te={},Me=[],Fe={},De={},Ie={},Oe={},Pe=null,Re=0,je=[],Be=new O(y),ze=e.hotfixes||[],Ve={},Ue={},He=[],qe=function Sr(e,t,r,n,a,i){if(!(this instanceof Sr))return new Sr(e,t,r,n,a,i);isNaN(e)&&(e=1),isNaN(t)&&(t=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(a)&&(a=0),isNaN(i)&&(i=0),this._matrix=[e,t,r,n,a,i]};Object.defineProperty(qe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(qe.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(qe.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(qe.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(qe.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(qe.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(qe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(qe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(qe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(qe.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),qe.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(e)},qe.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,r=e.sx*this.shy+e.shy*this.sy,n=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,o=e.tx*this.shy+e.ty*this.sy+this.ty;return new qe(t,r,n,a,i,o)},qe.prototype.decompose=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty,o=Math.sqrt(e*e+t*t),s=(e/=o)*r+(t/=o)*n;r-=e*s,n-=t*s;var l=Math.sqrt(r*r+n*n);return s/=l,e*(n/=l)<t*(r/=l)&&(e=-e,t=-t,s=-s,o=-o),{scale:new qe(o,0,0,l,0,0),translate:new qe(1,0,0,1,a,i),rotate:new qe(e,t,-t,e,0,0),skew:new qe(1,0,s,1,0,0)}},qe.prototype.toString=function(e){return this.join(" ")},qe.prototype.inversed=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty,o=1/(e*n-t*r),s=n*o,l=-t*o,c=-r*o,u=e*o;return new qe(s,l,c,u,-s*a-c*i,-l*a-u*i)},qe.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,r=e.x*this.shy+e.y*this.sy+this.ty;return new pr(t,r)},qe.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),r=this.applyToPoint(new pr(e.x+e.w,e.y+e.h));return new gr(t.x,t.y,r.x-t.x,r.y-t.y)},qe.prototype.clone=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,a=this.tx,i=this.ty;return new qe(e,t,r,n,a,i)},y.Matrix=qe;var Ge=y.matrixMult=function(e,t){return t.multiply(e)},We=new qe(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=We;var $e=function(e,t){if(!De[e]){var r=(t instanceof j?"Sh":"P")+(Object.keys(Fe).length+1).toString(10);t.id=r,De[e]=r,Fe[r]=t,Be.publish("addPattern",t)}};y.ShadingPattern=j,y.TilingPattern=B,y.addShadingPattern=function(e,t){return M("addShadingPattern()"),$e(e,t),this},y.beginTilingPattern=function(e){M("beginTilingPattern()"),vr(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},y.endTilingPattern=function(e,t){M("endTilingPattern()"),t.stream=oe[Z].join("\n"),$e(e,t),Be.publish("endTilingPattern",t),He.pop().restore()};var Xe,Ye=y.__private__.newObject=function(){var e=Ke();return Je(e,!0),e},Ke=y.__private__.newObjectDeferred=function(){return te++,re[te]=function(){return ae},te},Je=function(e,t){return t="boolean"==typeof t&&t,re[e]=ae,t&&ue(e+" 0 obj"),e},Ze=y.__private__.newAdditionalObject=function(){var e={objId:Ke(),content:""};return ie.push(e),e},Qe=Ke(),et=Ke(),tt=y.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var r=parseFloat(t[0]);t=[r,r,r,"r"]}for(var n="#",a=0;a<3;a++)n+=("0"+Math.floor(255*parseFloat(t[a])).toString(16)).slice(-2);return n},rt=y.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var r=e.ch1,a=e.ch2,i=e.ch3,o=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var l=new p(r);if(l.ok)r=l.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var c=parseInt(r.substr(1),16);r=c>>16&255,a=c>>8&255,i=255&c}if(void 0===a||void 0===o&&r===a&&a===i)t="string"==typeof r?r+" "+s[0]:2===e.precision?R(r/255)+" "+s[0]:V(r/255)+" "+s[0];else if(void 0===o||"object"===(0,n["default"])(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof r?[r,a,i,s[1]].join(" "):2===e.precision?[R(r/255),R(a/255),R(i/255),s[1]].join(" "):[V(r/255),V(a/255),V(i/255),s[1]].join(" ")}else t="string"==typeof r?[r,a,i,o,s[2]].join(" "):2===e.precision?[R(r),R(a),R(i),R(o),s[2]].join(" "):[V(r),V(a),V(i),V(o),s[2]].join(" ");return t},nt=y.__private__.getFilters=function(){return l},at=y.__private__.putStream=function(e){var t=(e=e||{}).data||"",r=e.filters||nt(),n=e.alreadyAppliedFilters||[],a=e.addLength1||!1,i=t.length,o=e.objectId,s=function(e){return e};if(null!==g&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==g&&(s=Mt.encryptor(o,0));var l={};!0===r&&(r=["FlateEncode"]);var c=e.additionalKeyValues||[],u=(l=void 0!==z.API.processDataByFilters?z.API.processDataByFilters(t,r):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===a&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var d=0;d<c.length;d+=1)if("DecodeParms"===c[d].key){for(var h=[],f=0;f<l.reverseChain.split("/").length-1;f+=1)h.push("null");h.push(c[d].value),c[d].value="["+h.join(" ")+"]"}}ue("<<");for(var p=0;p<c.length;p++)ue("/"+c[p].key+" "+c[p].value);ue(">>"),0!==l.data.length&&(ue("stream"),ue(s(l.data)),ue("endstream"))},it=y.__private__.putPage=function(e){var t=e.number,r=e.data,n=e.objId,a=e.contentsObjId;Je(n,!0),ue("<</Type /Page"),ue("/Parent "+e.rootDictionaryObjId+" 0 R"),ue("/Resources "+e.resourceDictionaryObjId+" 0 R"),ue("/MediaBox ["+parseFloat(T(e.mediaBox.bottomLeftX))+" "+parseFloat(T(e.mediaBox.bottomLeftY))+" "+T(e.mediaBox.topRightX)+" "+T(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&ue("/CropBox ["+T(e.cropBox.bottomLeftX)+" "+T(e.cropBox.bottomLeftY)+" "+T(e.cropBox.topRightX)+" "+T(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&ue("/BleedBox ["+T(e.bleedBox.bottomLeftX)+" "+T(e.bleedBox.bottomLeftY)+" "+T(e.bleedBox.topRightX)+" "+T(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&ue("/TrimBox ["+T(e.trimBox.bottomLeftX)+" "+T(e.trimBox.bottomLeftY)+" "+T(e.trimBox.topRightX)+" "+T(e.trimBox.topRightY)+"]"),null!==e.artBox&&ue("/ArtBox ["+T(e.artBox.bottomLeftX)+" "+T(e.artBox.bottomLeftY)+" "+T(e.artBox.topRightX)+" "+T(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&ue("/UserUnit "+e.userUnit),Be.publish("putPage",{objId:n,pageContext:je[t],pageNumber:t,page:r}),ue("/Contents "+a+" 0 R"),ue(">>"),ue("endobj");var i=r.join("\n");return A===C&&(i+="\nQ"),Je(a,!0),at({data:i,filters:nt(),objectId:a}),ue("endobj"),n},ot=y.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=Re;e++)je[e].objId=Ke(),je[e].contentsObjId=Ke();for(e=1;e<=Re;e++)r.push(it({number:e,data:oe[e],objId:je[e].objId,contentsObjId:je[e].contentsObjId,mediaBox:je[e].mediaBox,cropBox:je[e].cropBox,bleedBox:je[e].bleedBox,trimBox:je[e].trimBox,artBox:je[e].artBox,userUnit:je[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:et}));Je(Qe,!0),ue("<</Type /Pages");var n="/Kids [";for(t=0;t<Re;t++)n+=r[t]+" 0 R ";ue(n+"]"),ue("/Count "+Re),ue(">>"),ue("endobj"),Be.publish("postPutPages")},st=function(e){Be.publish("putFont",{font:e,out:ue,newObject:Ye,putStream:at}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ye(),ue("<<"),ue("/Type /Font"),ue("/BaseFont /"+I(e.postScriptName)),ue("/Subtype /Type1"),"string"==typeof e.encoding&&ue("/Encoding /"+e.encoding),ue("/FirstChar 32"),ue("/LastChar 255"),ue(">>"),ue("endobj"))},lt=function(e){e.objectNumber=Ye();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[T(e.x),T(e.y),T(e.x+e.width),T(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var r=e.pages[1].join("\n");at({data:r,additionalKeyValues:t,objectId:e.objectNumber}),ue("endobj")},ct=function(e,t){t||(t=21);var r=Ye(),n=function(e,t){var r,n=[],a=1/(t-1);for(r=0;r<1;r+=a)n.push(r);if(n.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var s="",l=0,c=0;c<n.length;c++){for(r=n[c];r>e[l+1].offset;)l++;var u=e[l].offset,d=(r-u)/(e[l+1].offset-u),h=e[l].color,f=e[l+1].color;s+=ee(Math.round((1-d)*h[0]+d*f[0]).toString(16))+ee(Math.round((1-d)*h[1]+d*f[1]).toString(16))+ee(Math.round((1-d)*h[2]+d*f[2]).toString(16))}return s.trim()}(e.colors,t),a=[];a.push({key:"FunctionType",value:"0"}),a.push({key:"Domain",value:"[0.0 1.0]"}),a.push({key:"Size",value:"["+t+"]"}),a.push({key:"BitsPerSample",value:"8"}),a.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),a.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),at({data:n,additionalKeyValues:a,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ue("endobj"),e.objectNumber=Ye(),ue("<< /ShadingType "+e.type),ue("/ColorSpace /DeviceRGB");var i="/Coords ["+T(parseFloat(e.coords[0]))+" "+T(parseFloat(e.coords[1]))+" ";2===e.type?i+=T(parseFloat(e.coords[2]))+" "+T(parseFloat(e.coords[3])):i+=T(parseFloat(e.coords[2]))+" "+T(parseFloat(e.coords[3]))+" "+T(parseFloat(e.coords[4]))+" "+T(parseFloat(e.coords[5])),ue(i+="]"),e.matrix&&ue("/Matrix ["+e.matrix.toString()+"]"),ue("/Function "+r+" 0 R"),ue("/Extend [true true]"),ue(">>"),ue("endobj")},ut=function(e,t){var r=Ke(),n=Ye();t.push({resourcesOid:r,objectOid:n}),e.objectNumber=n;var a=[];a.push({key:"Type",value:"/Pattern"}),a.push({key:"PatternType",value:"1"}),a.push({key:"PaintType",value:"1"}),a.push({key:"TilingType",value:"1"}),a.push({key:"BBox",value:"["+e.boundingBox.map(T).join(" ")+"]"}),a.push({key:"XStep",value:T(e.xStep)}),a.push({key:"YStep",value:T(e.yStep)}),a.push({key:"Resources",value:r+" 0 R"}),e.matrix&&a.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),at({data:e.stream,additionalKeyValues:a,objectId:e.objectNumber}),ue("endobj")},dt=function(e){for(var t in e.objectNumber=Ye(),ue("<<"),e)switch(t){case"opacity":ue("/ca "+R(e[t]));break;case"stroke-opacity":ue("/CA "+R(e[t]))}ue(">>"),ue("endobj")},ht=function(e){Je(e.resourcesOid,!0),ue("<<"),ue("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in ue("/Font <<"),Le)Le.hasOwnProperty(e)&&(!1===v||!0===v&&b.hasOwnProperty(e))&&ue("/"+e+" "+Le[e].objectNumber+" 0 R");ue(">>")}(),function(){if(Object.keys(Fe).length>0){for(var e in ue("/Shading <<"),Fe)Fe.hasOwnProperty(e)&&Fe[e]instanceof j&&Fe[e].objectNumber>=0&&ue("/"+e+" "+Fe[e].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),ue(">>")}}(),function(e){if(Object.keys(Fe).length>0){for(var t in ue("/Pattern <<"),Fe)Fe.hasOwnProperty(t)&&Fe[t]instanceof y.TilingPattern&&Fe[t].objectNumber>=0&&Fe[t].objectNumber<e&&ue("/"+t+" "+Fe[t].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),ue(">>")}}(e.objectOid),function(){if(Object.keys(Ie).length>0){var e;for(e in ue("/ExtGState <<"),Ie)Ie.hasOwnProperty(e)&&Ie[e].objectNumber>=0&&ue("/"+e+" "+Ie[e].objectNumber+" 0 R");Be.publish("putGStateDict"),ue(">>")}}(),function(){for(var e in ue("/XObject <<"),Ve)Ve.hasOwnProperty(e)&&Ve[e].objectNumber>=0&&ue("/"+e+" "+Ve[e].objectNumber+" 0 R");Be.publish("putXobjectDict"),ue(">>")}(),ue(">>"),ue("endobj")},ft=function(e){Te[e.fontName]=Te[e.fontName]||{},Te[e.fontName][e.fontStyle]=e.id},pt=function(e,t,r,n,a){var i={id:"F"+(Object.keys(Le).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:a||!1,metadata:{}};return Be.publish("addFont",{font:i,instance:this}),Le[i.id]=i,ft(i),i.id},gt=y.__private__.pdfEscape=y.pdfEscape=function(e,t){return function(e,t){var r,n,a,i,o,s,l,c,u;if(a=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&Le[ke].metadata&&Le[ke].metadata[a]&&Le[ke].metadata[a].encoding&&(i=Le[ke].metadata[a].encoding,!o&&Le[ke].encoding&&(o=Le[ke].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(l=!1,s=[],r=0,n=e.length;r<n;r++)(c=o[e.charCodeAt(r)])?s.push(String.fromCharCode(c)):s.push(e[r]),s[r].charCodeAt(0)>>8&&(l=!0);e=s.join("")}for(r=e.length;void 0===l&&0!==r;)e.charCodeAt(r-1)>>8&&(l=!0),r--;if(!l)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r<n;r++){if((u=(c=e.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mt=y.__private__.beginPage=function(e){oe[++Re]=[],je[Re]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},yt(Re),ce(oe[Z])},vt=function(e,t){var n,a,o;switch(r=t||r,"string"==typeof e&&(n=S(e.toLowerCase()),Array.isArray(n)&&(a=n[0],o=n[1])),Array.isArray(e)&&(a=e[0]*Ce,o=e[1]*Ce),isNaN(a)&&(a=i[0],o=i[1]),(a>14400||o>14400)&&(c.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),a=Math.min(14400,a),o=Math.min(14400,o)),i=[a,o],r.substr(0,1)){case"l":o>a&&(i=[o,a]);break;case"p":a>o&&(i=[o,a])}mt(i),Jt(Yt),ue(ir),0!==dr&&ue(dr+" J"),0!==hr&&ue(hr+" j"),Be.publish("addPage",{pageNumber:Re})},bt=function(e){e>0&&e<=Re&&(oe.splice(e,1),je.splice(e,1),Re--,Z>Re&&(Z=Re),this.setPage(Z))},yt=function(e){e>0&&e<=Re&&(Z=e)},wt=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return oe.length-1},xt=function(e,t,r){var n,a=void 0;return r=r||{},e=void 0!==e?e:Le[ke].fontName,t=void 0!==t?t:Le[ke].fontStyle,n=e.toLowerCase(),void 0!==Te[n]&&void 0!==Te[n][t]?a=Te[n][t]:void 0!==Te[e]&&void 0!==Te[e][t]?a=Te[e][t]:!1===r.disableWarning&&c.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||r.noFallback||null==(a=Te.times[t])&&(a=Te.times.normal),a},_t=y.__private__.putInfo=function(){var e=Ye(),t=function(e){return e};for(var r in null!==g&&(t=Mt.encryptor(e,0)),ue("<<"),ue("/Producer ("+gt(t("jsPDF "+z.version))+")"),Se)Se.hasOwnProperty(r)&&Se[r]&&ue("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+gt(t(Se[r]))+")");ue("/CreationDate ("+gt(t(q))+")"),ue(">>"),ue("endobj")},St=y.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch(Ye(),ue("<<"),ue("/Type /Catalog"),ue("/Pages "+t+" 0 R"),ge||(ge="fullwidth"),ge){case"fullwidth":ue("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ue("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ue("/OpenAction [3 0 R /Fit]");break;case"original":ue("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+ge;"%"===r.substr(r.length-1)&&(ge=parseInt(ge)/100),"number"==typeof ge&&ue("/OpenAction [3 0 R /XYZ null null "+R(ge)+"]")}switch(we||(we="continuous"),we){case"continuous":ue("/PageLayout /OneColumn");break;case"single":ue("/PageLayout /SinglePage");break;case"two":case"twoleft":ue("/PageLayout /TwoColumnLeft");break;case"tworight":ue("/PageLayout /TwoColumnRight")}be&&ue("/PageMode /"+be),Be.publish("putCatalog"),ue(">>"),ue("endobj")},kt=y.__private__.putTrailer=function(){ue("trailer"),ue("<<"),ue("/Size "+(te+1)),ue("/Root "+te+" 0 R"),ue("/Info "+(te-1)+" 0 R"),null!==g&&ue("/Encrypt "+Mt.oid+" 0 R"),ue("/ID [ <"+G+"> <"+G+"> ]"),ue(">>")},Ct=y.__private__.putHeader=function(){ue("%PDF-"+w),ue("%ºß¬à")},At=y.__private__.putXRef=function(){var e="0000000000";ue("xref"),ue("0 "+(te+1)),ue("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof re[t]?ue((e+re[t]()).slice(-10)+" 00000 n "):void 0!==re[t]?ue((e+re[t]).slice(-10)+" 00000 n "):ue("0000000000 00000 n ")},Nt=y.__private__.buildDocument=function(){var e;te=0,ae=0,ne=[],re=[],ie=[],Qe=Ke(),et=Ke(),ce(ne),Be.publish("buildDocument"),Ct(),ot(),function(){Be.publish("putAdditionalObjects");for(var e=0;e<ie.length;e++){var t=ie[e];Je(t.objId,!0),ue(t.content),ue("endobj")}Be.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in Le)Le.hasOwnProperty(e)&&(!1===v||!0===v&&b.hasOwnProperty(e))&&st(Le[e])}(),function(){var e;for(e in Ie)Ie.hasOwnProperty(e)&&dt(Ie[e])}(),function(){for(var e in Ve)Ve.hasOwnProperty(e)&&lt(Ve[e])}(),function(e){var t;for(t in Fe)Fe.hasOwnProperty(t)&&(Fe[t]instanceof j?ct(Fe[t]):Fe[t]instanceof B&&ut(Fe[t],e))}(e),Be.publish("putResources"),e.forEach(ht),ht({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources"),null!==g&&(Mt.oid=Ye(),ue("<<"),ue("/Filter /Standard"),ue("/V "+Mt.v),ue("/R "+Mt.r),ue("/U <"+Mt.toHexString(Mt.U)+">"),ue("/O <"+Mt.toHexString(Mt.O)+">"),ue("/P "+Mt.P),ue(">>"),ue("endobj")),_t(),St();var t=ae;return At(),kt(),ue("startxref"),ue(""+t),ue("%%EOF"),ce(oe[Z]),ne.join("\n")},Et=y.__private__.getBlob=function(e){return new Blob([he(e)],{type:"application/pdf"})},Lt=y.output=y.__private__.output=(Xe=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Nt();case"save":y.save(t.filename);break;case"arraybuffer":return he(Nt());case"blob":return Et(Nt());case"bloburi":case"bloburl":if(void 0!==s.URL&&"function"==typeof s.URL.createObjectURL)return s.URL&&s.URL.createObjectURL(Et(Nt()))||void 0;c.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=Nt();try{r=m(n)}catch(g){r=m(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+t.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(s)){var a="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(a=t.pdfObjectUrl,i="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+a+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",l=s.open();return null!==l&&l.document.write(o),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(s)){var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',d=s.open();if(null!==d){d.document.write(u);var h=this;d.document.documentElement.querySelector("#pdfViewer").onload=function(){d.document.title=t.filename,d.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(h.output("bloburl"))}}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(s))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',p=s.open();if(null!==p&&(p.document.write(f),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return s.document.location.href=this.output("datauristring",t);default:return null}},Xe.foo=function(){try{return Xe.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var r="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!s.console)throw new Error(r);s.console.error(r,t),s.alert&&alert(r)}},Xe.foo.bar=Xe,Xe.foo),Tt=function(e){return!0===Array.isArray(ze)&&ze.indexOf(e)>-1};switch(a){case"pt":Ce=1;break;case"mm":Ce=72/25.4;break;case"cm":Ce=72/2.54;break;case"in":Ce=72;break;case"px":Ce=1==Tt("px_scaling")?.75:96/72;break;case"pc":case"em":Ce=12;break;case"ex":Ce=6;break;default:if("number"!=typeof a)throw new Error("Invalid unit: "+a);Ce=a}var Mt=null;K(),$();var Ft=y.__private__.getPageInfo=y.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:je[e].objId,pageNumber:e,pageContext:je[e]}},Dt=y.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in je)if(je[t].objId===e)break;return Ft(t)},It=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:je[Z].objId,pageNumber:Z,pageContext:je[Z]}};y.addPage=function(){return vt.apply(this,arguments),this},y.setPage=function(){return yt.apply(this,arguments),ce.call(this,oe[Z]),this},y.insertPage=function(e){return this.addPage(),this.movePage(Z,e),this},y.movePage=function(e,t){var r,n;if(e>t){r=oe[e],n=je[e];for(var a=e;a>t;a--)oe[a]=oe[a-1],je[a]=je[a-1];oe[t]=r,je[t]=n,this.setPage(t)}else if(e<t){r=oe[e],n=je[e];for(var i=e;i<t;i++)oe[i]=oe[i+1],je[i]=je[i+1];oe[t]=r,je[t]=n,this.setPage(t)}return this},y.deletePage=function(){return bt.apply(this,arguments),this},y.__private__.text=y.text=function(e,t,r,a,i){var o,s,l,c,u,d,h,f,p,g=(a=a||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var m=r;r=t,t=e,e=m}if(arguments[3]instanceof qe==0?(l=arguments[4],c=arguments[5],"object"===(0,n["default"])(h=arguments[3])&&null!==h||("string"==typeof l&&(c=l,l=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(l=h,h=null),a={flags:h,angle:l,align:c})):(M("The transform parameter of text() with a Matrix value"),p=i),isNaN(t)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var v,y="",w="number"==typeof a.lineHeightFactor?a.lineHeightFactor:Xt,x=g.internal.scaleFactor;function _(e){return e=e.split("\t").join(Array(a.TabLen||9).join(" ")),gt(e,h)}function S(e){for(var t,r=e.concat(),n=[],a=r.length;a--;)"string"==typeof(t=r.shift())?n.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?n.push(t[0]):n.push([t[0],t[1],t[2]]);return n}function k(e,t){var r;if("string"==typeof e)r=t(e)[0];else if(Array.isArray(e)){for(var n,a,i=e.concat(),o=[],s=i.length;s--;)"string"==typeof(n=i.shift())?o.push(t(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(a=t(n[0],n[1],n[2]),o.push([a[0],a[1],a[2]]));r=o}return r}var N=!1,E=!0;if("string"==typeof e)N=!0;else if(Array.isArray(e)){var L=e.concat();s=[];for(var F,D=L.length;D--;)("string"!=typeof(F=L.shift())||Array.isArray(F)&&"string"!=typeof F[0])&&(E=!1);N=E}if(!1===N)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var I=pe/g.internal.scaleFactor,O=I*(w-1);switch(a.baseline){case"bottom":r-=O;break;case"top":r+=I-O;break;case"hanging":r+=I-2*O;break;case"middle":r+=I/2-O}if((d=a.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,d):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(g.splitTextToSize(t,d))},[]))),o={text:e,x:t,y:r,options:a,mutex:{pdfEscape:gt,activeFontKey:ke,fonts:Le,activeFontSize:pe}},Be.publish("preProcessText",o),e=o.text,l=(a=o.options).angle,p instanceof qe==0&&l&&"number"==typeof l){l*=Math.PI/180,0===a.rotationDirection&&(l=-l),A===C&&(l=-l);var P=Math.cos(l),R=Math.sin(l);p=new qe(P,R,-R,P,0,0)}else l&&l instanceof qe&&(p=l);A!==C||p||(p=We),void 0!==(u=a.charSpace||cr)&&(y+=T(U(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(f=a.horizontalScale)&&(y+=T(100*f)+" Tz\n"),a.lang;var j=-1,B=void 0!==a.renderingMode?a.renderingMode:a.stroke,z=g.internal.getCurrentPageInfo().pageContext;switch(B){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var V=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==j?y+=j+" Tr\n":-1!==V&&(y+="0 Tr\n"),-1!==j&&(z.usedRenderingMode=j),c=a.align||"left";var H,q=pe*w,G=g.internal.pageSize.getWidth(),W=Le[ke];u=a.charSpace||cr,d=a.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},a.flags);var $=[],X=function(e){return g.getStringUnitWidth(e,{font:W,charSpace:u,fontSize:pe,doKerning:!1})*pe/x};if("[object Array]"===Object.prototype.toString.call(e)){var Y;s=S(e),"left"!==c&&(H=s.map(X));var K,J=0;if("right"===c){t-=H[0],e=[],D=s.length;for(var Z=0;Z<D;Z++)0===Z?(K=tr(t),Y=rr(r)):(K=U(J-H[Z]),Y=-q),e.push([s[Z],K,Y]),J=H[Z]}else if("center"===c){t-=H[0]/2,e=[],D=s.length;for(var Q=0;Q<D;Q++)0===Q?(K=tr(t),Y=rr(r)):(K=U((J-H[Q])/2),Y=-q),e.push([s[Q],K,Y]),J=H[Q]}else if("left"===c){e=[],D=s.length;for(var ee=0;ee<D;ee++)e.push(s[ee])}else if("justify"===c&&"Identity-H"===W.encoding){e=[],D=s.length,d=0!==d?d:G;for(var te=0,re=0;re<D;re++)if(Y=0===re?rr(r):-q,K=0===re?tr(t):te,re<D-1){var ne=U((d-H[re])/(s[re].split(" ").length-1)),ae=s[re].split(" ");e.push([ae[0]+" ",K,Y]),te=0;for(var ie=1;ie<ae.length;ie++){var oe=(X(ae[ie-1]+" "+ae[ie])-X(ae[ie]))*x+ne;ie==ae.length-1?e.push([ae[ie],oe,0]):e.push([ae[ie]+" ",oe,0]),te-=oe}}else e.push([s[re],K,Y]);e.push(["",te,0])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],D=s.length,d=0!==d?d:G,re=0;re<D;re++)Y=0===re?rr(r):-q,K=0===re?tr(t):0,re<D-1?$.push(T(U((d-H[re])/(s[re].split(" ").length-1)))):$.push(0),e.push([s[re],K,Y])}}!0===("boolean"==typeof a.R2L?a.R2L:ve)&&(e=k(e,function(e,t,r){return[e.split("").reverse().join(""),t,r]})),o={text:e,x:t,y:r,options:a,mutex:{pdfEscape:gt,activeFontKey:ke,fonts:Le,activeFontSize:pe}},Be.publish("postProcessText",o),e=o.text,v=o.mutex.isHex||!1;var se=Le[ke].encoding;"WinAnsiEncoding"!==se&&"StandardEncoding"!==se||(e=k(e,function(e,t,r){return[_(e),t,r]})),s=S(e),e=[];for(var le,ce,de,he=Array.isArray(s[0])?1:0,fe="",ge=function(e,t,r){var n="";return r instanceof qe?(r="number"==typeof a.angle?Ge(r,new qe(1,0,0,1,e,t)):Ge(new qe(1,0,0,1,e,t),r),A===C&&(r=Ge(new qe(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=T(e)+" "+T(t)+" Td\n",n},me=0;me<s.length;me++){switch(fe="",he){case 1:de=(v?"<":"(")+s[me][0]+(v?">":")"),le=parseFloat(s[me][1]),ce=parseFloat(s[me][2]);break;case 0:de=(v?"<":"(")+s[me]+(v?">":")"),le=tr(t),ce=rr(r)}void 0!==$&&void 0!==$[me]&&(fe=$[me]+" Tw\n"),0===me?e.push(fe+ge(le,ce,p)+de):0===he?e.push(fe+de):1===he&&e.push(fe+ge(le,ce,p)+de)}e=0===he?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var be="BT\n/";return be+=ke+" "+pe+" Tf\n",be+=T(pe*w)+" TL\n",be+=sr+"\n",be+=y,be+=e,ue(be+="ET"),b[ke]=!0,g};var Ot=y.__private__.clip=y.clip=function(e){return ue("evenodd"===e?"W*":"W"),this};y.clipEvenOdd=function(){return Ot("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ue("n"),this};var Pt=y.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(e){return Pt(e)&&(h=e),this};var Rt=y.__private__.getStyle=y.getStyle=function(e){var t=h;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},jt=y.close=function(){return ue("h"),this};y.stroke=function(){return ue("S"),this},y.fill=function(e){return Bt("f",e),this},y.fillEvenOdd=function(e){return Bt("f*",e),this},y.fillStroke=function(e){return Bt("B",e),this},y.fillStrokeEvenOdd=function(e){return Bt("B*",e),this};var Bt=function(e,t){"object"===(0,n["default"])(t)?Ut(t,e):ue(e)},zt=function(e){null===e||A===C&&void 0===e||(e=Rt(e),ue(e))};function Vt(e,t,r,n,a){var i=new B(t||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,a||this.matrix);i.stream=this.stream;var o=e+"$$"+this.cloneIndex+++"$$";return $e(o,i),i}var Ut=function(e,t){var r=De[e.key],n=Fe[r];if(n instanceof j)ue("q"),ue(Ht(t)),n.gState&&y.setGState(n.gState),ue(e.matrix.toString()+" cm"),ue("/"+r+" sh"),ue("Q");else if(n instanceof B){var a=new qe(1,0,0,-1,0,xr());e.matrix&&(a=a.multiply(e.matrix||We),r=Vt.call(n,e.key,e.boundingBox,e.xStep,e.yStep,a).id),ue("q"),ue("/Pattern cs"),ue("/"+r+" scn"),n.gState&&y.setGState(n.gState),ue(t),ue("Q")}},Ht=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},qt=y.moveTo=function(e,t){return ue(T(U(e))+" "+T(H(t))+" m"),this},Gt=y.lineTo=function(e,t){return ue(T(U(e))+" "+T(H(t))+" l"),this},Wt=y.curveTo=function(e,t,r,n,a,i){return ue([T(U(e)),T(H(t)),T(U(r)),T(H(n)),T(U(a)),T(H(i)),"c"].join(" ")),this};y.__private__.line=y.line=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Pt(a))throw new Error("Invalid arguments passed to jsPDF.line");return A===k?this.lines([[r-e,n-t]],e,t,[1,1],a||"S"):this.lines([[r-e,n-t]],e,t,[1,1]).stroke()},y.__private__.lines=y.lines=function(e,t,r,n,a,i){var o,s,l,c,u,d,h,f,p,g,m,v;if("number"==typeof e&&(v=r,r=t,t=e,e=v),n=n||[1,1],i=i||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Pt(a)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(qt(t,r),o=n[0],s=n[1],c=e.length,g=t,m=r,l=0;l<c;l++)2===(u=e[l]).length?(g=u[0]*o+g,m=u[1]*s+m,Gt(g,m)):(d=u[0]*o+g,h=u[1]*s+m,f=u[2]*o+g,p=u[3]*s+m,g=u[4]*o+g,m=u[5]*s+m,Wt(d,h,f,p,g,m));return i&&jt(),zt(a),this},y.path=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.c;switch(r.op){case"m":qt(n[0],n[1]);break;case"l":Gt(n[0],n[1]);break;case"c":Wt.apply(this,n);break;case"h":jt()}}return this},y.__private__.rect=y.rect=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Pt(a))throw new Error("Invalid arguments passed to jsPDF.rect");return A===k&&(n=-n),ue([T(U(e)),T(H(t)),T(U(r)),T(U(n)),"re"].join(" ")),zt(a),this},y.__private__.triangle=y.triangle=function(e,t,r,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i)||!Pt(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-e,n-t],[a-r,i-n],[e-a,t-i]],e,t,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(e,t,r,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i)||!Pt(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return a=Math.min(a,.5*r),i=Math.min(i,.5*n),this.lines([[r-2*a,0],[a*s,0,a,i-i*s,a,i],[0,n-2*i],[0,i*s,-a*s,i,-a,i],[2*a-r,0],[-a*s,0,-a,-i*s,-a,-i],[0,2*i-n],[0,-i*s,a*s,-i,a,-i]],e+a,t,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(e,t,r,n,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Pt(a))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return qt(e+r,t),Wt(e+r,t-o,e+i,t-n,e,t-n),Wt(e-i,t-n,e-r,t-o,e-r,t),Wt(e-r,t+o,e-i,t+n,e,t+n),Wt(e+i,t+n,e+r,t+o,e+r,t),zt(a),this},y.__private__.circle=y.circle=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||!Pt(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,r,r,n)},y.setFont=function(e,t,r){return r&&(t=L(t,r)),ke=xt(e,t,{disableWarning:!1}),this};var $t=y.__private__.getFont=y.getFont=function(){return Le[xt.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var e,t,r={};for(e in Te)if(Te.hasOwnProperty(e))for(t in r[e]=[],Te[e])Te[e].hasOwnProperty(t)&&r[e].push(t);return r},y.addFont=function(e,t,r,n,a){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?a=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(r=L(r,n)),pt.call(this,e,t,r,a=a||"Identity-H")};var Xt,Yt=e.lineWidth||.200025,Kt=y.__private__.getLineWidth=y.getLineWidth=function(){return Yt},Jt=y.__private__.setLineWidth=y.setLineWidth=function(e){return Yt=e,ue(T(U(e))+" w"),this};y.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map(function(e){return T(U(e))}).join(" "),t=T(U(t)),ue("["+e+"] "+t+" d"),this};var Zt=y.__private__.getLineHeight=y.getLineHeight=function(){return pe*Xt};y.__private__.getLineHeight=y.getLineHeight=function(){return pe*Xt};var Qt=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Xt=e),this},er=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return Xt};Qt(e.lineHeight);var tr=y.__private__.getHorizontalCoordinate=function(e){return U(e)},rr=y.__private__.getVerticalCoordinate=function(e){return A===C?e:je[Z].mediaBox.topRightY-je[Z].mediaBox.bottomLeftY-U(e)},nr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(e){return T(tr(e))},ar=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(e){return T(rr(e))},ir=e.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return tt(ir)},y.__private__.setStrokeColor=y.setDrawColor=function(e,t,r,n){return ir=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),ue(ir),this};var or=e.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return tt(or)},y.__private__.setFillColor=y.setFillColor=function(e,t,r,n){return or=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),ue(or),this};var sr=e.textColor||"0 g",lr=y.__private__.getTextColor=y.getTextColor=function(){return tt(sr)};y.__private__.setTextColor=y.setTextColor=function(e,t,r,n){return sr=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var cr=e.charSpace,ur=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(cr||0)};y.__private__.setCharSpace=y.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cr=e,this};var dr=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dr=t,ue(t+" J"),this};var hr=0;y.__private__.setLineJoin=y.setLineJoin=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hr=t,ue(t+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ue(T(U(e))+" M"),this},y.GState=P,y.setGState=function(e){(e="string"==typeof e?Ie[Oe[e]]:fr(null,e)).equals(Pe)||(ue("/"+e.id+" gs"),Pe=e)};var fr=function(e,t){if(!e||!Oe[e]){var r=!1;for(var n in Ie)if(Ie.hasOwnProperty(n)&&Ie[n].equals(t)){r=!0;break}if(r)t=Ie[n];else{var a="GS"+(Object.keys(Ie).length+1).toString(10);Ie[a]=t,t.id=a}return e&&(Oe[e]=t.id),Be.publish("addGState",t),t}};y.addGState=function(e,t){return fr(e,t),this},y.saveGraphicsState=function(){return ue("q"),Me.push({key:ke,size:pe,color:sr}),this},y.restoreGraphicsState=function(){ue("Q");var e=Me.pop();return ke=e.key,pe=e.size,sr=e.color,Pe=null,this},y.setCurrentTransformationMatrix=function(e){return ue(e.toString()+" cm"),this},y.comment=function(e){return ue("#"+e),this};var pr=function(e,t){var r=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var n=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var a="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return a},set:function(e){a=e.toString()}}),this},gr=function(e,t,r,n){pr.call(this,e,t),this.type="rect";var a=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var i=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},mr=function(){this.page=Re,this.currentPage=Z,this.pages=oe.slice(0),this.pagesContext=je.slice(0),this.x=Ae,this.y=Ne,this.matrix=Ee,this.width=yr(Z),this.height=xr(Z),this.outputDestination=le,this.id="",this.objectNumber=-1};mr.prototype.restore=function(){Re=this.page,Z=this.currentPage,je=this.pagesContext,oe=this.pages,Ae=this.x,Ne=this.y,Ee=this.matrix,wr(Z,this.width),_r(Z,this.height),le=this.outputDestination};var vr=function(e,t,r,n,a){He.push(new mr),Re=Z=0,oe=[],Ae=e,Ne=t,Ee=a,mt([r,n])};for(var br in y.beginFormObject=function(e,t,r,n,a){return vr(e,t,r,n,a),this},y.endFormObject=function(e){return function(e){if(Ue[e])He.pop().restore();else{var t=new mr,r="Xo"+(Object.keys(Ve).length+1).toString(10);t.id=r,Ue[e]=r,Ve[r]=t,Be.publish("addFormObject",t),He.pop().restore()}}(e),this},y.doFormObject=function(e,t){var r=Ve[Ue[e]];return ue("q"),ue(t.toString()+" cm"),ue("/"+r.id+" Do"),ue("Q"),this},y.getFormObject=function(e){var t=Ve[Ue[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},y.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(f(Et(Nt()),e),"function"==typeof f.unload&&s.setTimeout&&setTimeout(f.unload,911),this):new Promise(function(t,r){try{var n=f(Et(Nt()),e);"function"==typeof f.unload&&s.setTimeout&&setTimeout(f.unload,911),t(n)}catch(a){r(a.message)}})},z.API)z.API.hasOwnProperty(br)&&("events"===br&&z.API.events.length?function(e,t){var r,n,a;for(a=t.length-1;-1!==a;a--)r=t[a][0],n=t[a][1],e.subscribe.apply(e,[r].concat("function"==typeof n?[n]:n))}(Be,z.API.events):y[br]=z.API[br]);var yr=y.getPageWidth=function(e){return(je[e=e||Z].mediaBox.topRightX-je[e].mediaBox.bottomLeftX)/Ce},wr=y.setPageWidth=function(e,t){je[e].mediaBox.topRightX=t*Ce+je[e].mediaBox.bottomLeftX},xr=y.getPageHeight=function(e){return(je[e=e||Z].mediaBox.topRightY-je[e].mediaBox.bottomLeftY)/Ce},_r=y.setPageHeight=function(e,t){je[e].mediaBox.topRightY=t*Ce+je[e].mediaBox.bottomLeftY};return y.internal={pdfEscape:gt,getStyle:Rt,getFont:$t,getFontSize:me,getCharSpace:ur,getTextColor:lr,getLineHeight:Zt,getLineHeightFactor:er,getLineWidth:Kt,write:de,getHorizontalCoordinate:tr,getVerticalCoordinate:rr,getCoordinateString:nr,getVerticalCoordinateString:ar,collections:{},newObject:Ye,newAdditionalObject:Ze,newObjectDeferred:Ke,newObjectDeferredBegin:Je,getFilters:nt,putStream:at,events:Be,scaleFactor:Ce,pageSize:{getWidth:function(){return yr(Z)},setWidth:function(e){wr(Z,e)},getHeight:function(){return xr(Z)},setHeight:function(e){_r(Z,e)}},encryptionOptions:g,encryption:Mt,getEncryptor:function(e){return null!==g?Mt.encryptor(e,0):function(e){return e}},output:Lt,getNumberOfPages:wt,pages:oe,out:ue,f2:R,f3:V,getPageInfo:Ft,getPageInfoByObjId:Dt,getCurrentPageInfo:It,getPDFVersion:x,Point:pr,Rectangle:gr,Matrix:qe,hasHotfix:Tt},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return yr(Z)},set:function(e){wr(Z,e)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return xr(Z)},set:function(e){_r(Z,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,r=fe.length;t<r;t++){var n=pt.call(this,e[t][0],e[t][1],e[t][2],fe[t][3],!0);!1===v&&(b[n]=!0);var a=e[t][0].split("-");ft({id:n,fontName:a[0],fontStyle:a[1]||""})}Be.publish("addFonts",{fonts:Le,dictionary:Te})}.call(y,fe),ke="F1",vt(i,r),Be.publish("initialized"),y}D.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},D.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},D.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},D.prototype.processOwnerPassword=function(e,t){return M(E(t).substr(0,5),e)},D.prototype.encryptor=function(e,t){var r=E(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return M(r,e)}},P.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||(0,n["default"])(e)!==(0,n["default"])(this))return!1;var a=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;a++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&a--;return 0===a},z.API={events:[]},z.version="3.0.2";var V=z.API,U=1,H=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},q=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},G=function(e){return e.toFixed(2)},W=function(e){return e.toFixed(5)};V.__acroform__={};var $=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},X=function(e){return e*U},Y=function(e){var t=new de,r=Ce.internal.getHeight(e)||0,n=Ce.internal.getWidth(e)||0;return t.BBox=[0,0,Number(G(n)),Number(G(r))],t},K=V.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},J=V.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Z=V.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Q=V.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Z(e,t-1)},ee=V.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return K(e,t-1)},te=V.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return J(e,t-1)},re=V.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=e[0],i=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(a)||0,l.lowerLeft_Y=n(i+s)||0,l.upperRight_X=r(a+o)||0,l.upperRight_Y=n(i)||0,[Number(G(l.lowerLeft_X)),Number(G(l.lowerLeft_Y)),Number(G(l.upperRight_X)),Number(G(l.upperRight_Y))]},ne=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=ae(e,r),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+G(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Y(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},ae=function(e,t){var r=0===e.fontSize?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},a=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map(function(e){return e.split("\n")}):a.map(function(e){return[e]});var i=r,o=Ce.internal.getHeight(e)||0;o=o<0?-o:o;var s=Ce.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(t,r,n){if(t+1<a.length){var i=r+" "+a[t+1][0];return ie(i,e,n).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var c,u,d=ie("3",e,i).height,h=e.multiline?o-i:(o-d)/2,f=h+=2,p=0,g=0,m=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+ie(t,e,i=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<a.length;y++)if(a.hasOwnProperty(y)){var w=!1;if(1!==a[y].length&&m!==a[y].length-1){if((d+2)*(b+2)+2>o)continue e;v+=a[y][m],w=!0,g=y,y--}else{v=" "==(v+=a[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),_=l(x,v,i),S=y>=a.length-1;if(_&&!S){v+=" ",m=0;continue}if(_||S){if(S)g=x;else if(e.multiline&&(d+2)*(b+2)+2>o)continue e}else{if(!e.multiline)continue e;if((d+2)*(b+2)+2>o)continue e;g=x}}for(var k="",C=p;C<=g;C++){var A=a[C];if(e.multiline){if(C===g){k+=A[m]+" ",m=(m+1)%A.length;continue}if(C===p){k+=A[A.length-1]+" ";continue}}k+=A[0]+" "}switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,u=ie(k,e,i).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=G(c)+" "+G(f)+" Td\n",t+="("+H(k)+") Tj\n",t+=-G(c)+" 0 Td\n",f=-(i+2),u=0,p=w?g:g+1,b++,v=""}break}return n.text=t,n.fontSize=i,n},ie=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},oe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},se=function(e,t){var r={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===r.type&&e.object===r.object})&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},le=V.__acroform__.arrayToPdfArray=function(e,t,r){var a=function(e){return e};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(0!==o&&(i+=" "),(0,n["default"])(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":"/"!==e[o].substr(0,1)?(void 0!==t&&r&&(a=r.internal.getEncryptor(t)),i+="("+H(a(e[o].toString()))+")"):i+=e[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ce=function(e,t,r){var n=function(e){return e};return void 0!==t&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+H(n(e))+")"},ue=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ue.prototype.toString=function(){return this.objId+" 0 R"},ue.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},ue.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var r in t)if(!1===Object.getOwnPropertyDescriptor(this,t[r]).configurable){var n=t[r],a=this[n];a&&(Array.isArray(a)?e.push({key:n,value:le(a,this.objId,this.scope)}):a instanceof ue?(a.scope=this.scope,e.push({key:n,value:a.objId+" 0 R"})):"function"!=typeof a&&e.push({key:n,value:a}))}return e};var de=function(){ue.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};$(de,ue);var he=function(){ue.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+H(t(e))+")"}},set:function(t){e=t}})};$(he,ue);var fe=function Pt(){ue.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(e,3))},set:function(t){!0===Boolean(t)?this.F=ee(e,3):this.F=te(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');t=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof xe)return;a="FieldObject"+Pt.FieldNum++}var e=function(e){return e};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+H(e(a))+")"},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(e){i=e}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/U:l},set:function(e){l=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof xe||this instanceof Se))return ce(u,this.objId,this.scope)},set:function(e){e=e.toString(),u=e}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof be==0?ce(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof be==0?"("===e.substr(0,1)?q(e.substr(1,e.length-2)):q(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?q(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof be==1?"/"+e:e}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof be==0?ce(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof be==0?"("===e.substr(0,1)?q(e.substr(1,e.length-2)):q(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?q(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof be==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var f,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){e=Boolean(e),p=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(e){f=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,3):this.Ff=te(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};$(fe,ue);var pe=function(){fe.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return le(t,this.objId,this.scope)},set:function(e){var r,n;n=[],"string"==typeof(r=e)&&(n=function(e,t,r){r||(r=1);for(var n,a=[];n=t.exec(e);)a.push(n[r]);return a}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=ee(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=ee(this.Ff,20),t.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};$(pe,fe);var ge=function(){pe.call(this),this.fontName="helvetica",this.combo=!1};$(ge,pe);var me=function(){ge.call(this),this.combo=!0};$(me,ge);var ve=function(){me.call(this),this.edit=!0};$(ve,me);var be=function(){fe.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,26):this.Ff=te(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+H(e(t[r]))+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"===(0,n["default"])(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};$(be,fe);var ye=function(){be.call(this),this.pushButton=!0};$(ye,be);var we=function(){be.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};$(we,be);var xe=function(){var e,t;fe.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,r=[];for(t in r.push("<<"),a)r.push("/"+t+" ("+H(e(a[t]))+")");return r.push(">>"),r.join("\n")},set:function(e){"object"===(0,n["default"])(e)&&(a=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(e){"string"==typeof e&&(a.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ce.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};$(xe,fe),we.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},we.prototype.createOption=function(e){var t=new xe;return t.Parent=this,t.optionName=e,this.Kids.push(t),Ae.call(this.scope,t),t};var _e=function(){be.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ce.CheckBox.createAppearanceStream()};$(_e,be);var Se=function(){fe.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,26):this.Ff=te(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};$(Se,fe);var ke=function(){Se.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Q(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=ee(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};$(ke,Se);var Ce={CheckBox:{createAppearanceStream:function(){return{N:{On:Ce.CheckBox.YesNormal},D:{On:Ce.CheckBox.YesPushDown,Off:Ce.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),i=ae(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+G(Ce.internal.getWidth(e))+" "+G(Ce.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+G(i.fontSize)+" Tf "+a),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=Y(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=[],i=Ce.internal.getHeight(e),o=Ce.internal.getWidth(e),s=ae(e,e.caption);return a.push("1 g"),a.push("0 0 "+G(o)+" "+G(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+G(o-1)+" "+G(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+G(s.fontSize)+" Tf "+n),a.push(s.text),a.push("ET"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+G(Ce.internal.getWidth(e))+" "+G(Ce.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Ce.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Ce.RadioButton.Circle.YesNormal,t.D[e]=Ce.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Y(e);t.scope=e.scope;var r=[],n=Ce.internal.getWidth(e)<=Ce.internal.getHeight(e)?Ce.internal.getWidth(e)/4:Ce.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Ce.internal.Bezier_C,i=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+W(Ce.internal.getWidth(e)/2)+" "+W(Ce.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=[],n=Ce.internal.getWidth(e)<=Ce.internal.getHeight(e)?Ce.internal.getWidth(e)/4:Ce.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*Ce.internal.Bezier_C).toFixed(5)),o=Number((n*Ce.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(Ce.internal.getWidth(e)/2)+" "+W(Ce.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+W(Ce.internal.getWidth(e)/2)+" "+W(Ce.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=[],n=Ce.internal.getWidth(e)<=Ce.internal.getHeight(e)?Ce.internal.getWidth(e)/4:Ce.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*Ce.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(Ce.internal.getWidth(e)/2)+" "+W(Ce.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Ce.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Ce.RadioButton.Cross.YesNormal,t.D[e]=Ce.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Y(e);t.scope=e.scope;var r=[],n=Ce.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+G(Ce.internal.getWidth(e)-2)+" "+G(Ce.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(G(n.x1.x)+" "+G(n.x1.y)+" m"),r.push(G(n.x2.x)+" "+G(n.x2.y)+" l"),r.push(G(n.x4.x)+" "+G(n.x4.y)+" m"),r.push(G(n.x3.x)+" "+G(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=Ce.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+G(Ce.internal.getWidth(e))+" "+G(Ce.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+G(Ce.internal.getWidth(e)-2)+" "+G(Ce.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(G(r.x1.x)+" "+G(r.x1.y)+" m"),n.push(G(r.x2.x)+" "+G(r.x2.y)+" l"),n.push(G(r.x4.x)+" "+G(r.x4.y)+" m"),n.push(G(r.x3.x)+" "+G(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Y(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+G(Ce.internal.getWidth(e))+" "+G(Ce.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};Ce.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Ce.internal.getWidth(e),r=Ce.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Ce.internal.getWidth=function(e){var t=0;return"object"===(0,n["default"])(e)&&(t=X(e.Rect[2])),t},Ce.internal.getHeight=function(e){var t=0;return"object"===(0,n["default"])(e)&&(t=X(e.Rect[3])),t};var Ae=V.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(fe.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(oe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");U=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new he,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),e.internal.events.subscribe("buildDocument",function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];n.objId=void 0,n.hasAnnotation&&se(n,e)}}(e)}),e.internal.events.subscribe("putCatalog",function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)}),e.internal.events.subscribe("postPutPages",function(t){!function(e,t){var r=!e;for(var a in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(a)){var i=e[a],o=[],s=i.Rect;if(i.Rect&&(i.Rect=re(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Ce.createDefaultAppearanceStream(i),"object"===(0,n["default"])(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=ne(i);o.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var d=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var a in d)if(d.hasOwnProperty(a)){var h=d[a];"function"==typeof h&&(h=h.call(t,i)),c+="/"+a+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=d)&&(h=h.call(t,i)),c+="/"+a+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:i.objId}),t.internal.out("endobj")}r&&function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var a=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,n["default"])(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[a]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof fe))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=pe,V.AcroFormListBox=ge,V.AcroFormComboBox=me,V.AcroFormEditBox=ve,V.AcroFormButton=be,V.AcroFormPushButton=ye,V.AcroFormRadioButton=we,V.AcroFormCheckBox=_e,V.AcroFormTextField=Se,V.AcroFormPasswordField=ke,V.AcroFormAppearance=Ce,V.AcroForm={ChoiceField:pe,ListBox:ge,ComboBox:me,EditBox:ve,Button:be,PushButton:ye,RadioButton:we,CheckBox:_e,TextField:Se,PasswordField:ke,Appearance:Ce},z.AcroForm={ChoiceField:pe,ListBox:ge,ComboBox:me,EditBox:ve,Button:be,PushButton:ye,RadioButton:we,CheckBox:_e,TextField:Se,PasswordField:ke,Appearance:Ce};var Ne,Ee,Le=z.AcroForm;function Te(e){return e.reduce(function(e,t,r){return e[t]=r,e},{})}!function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",a={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(e,t){var n,i,o,s,l,c=r;if("RGBA"===(t=t||r)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(k(e))for(l in a)for(o=a[l],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==e[i]){s=!1;break}if(!0===s){c=l;break}}else for(l in a)for(o=a[l],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==e.charCodeAt(i)){s=!1;break}if(!0===s){c=l;break}}return c===r&&t!==r&&(c=t),c},o=function L(e){for(var t=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===y.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===y.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var i="",o=0,s=e.transparency.length;o<s;o++)i+=e.transparency[o]+" "+e.transparency[o]+" ";a.push({key:"Mask",value:"["+i+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:l,objectId:e.objectId}),t("endobj"),"sMask"in e&&void 0!==e.sMask){var c=(null!=e.predictor?"/Predictor "+e.predictor:"")+" /Colors 1 /BitsPerComponent 8 /Columns "+e.width,u={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(u.filter=e.filter),L.call(this,u)}if(e.colorSpace===y.INDEXED){var d=this.internal.newObject();r({data:A(new Uint8Array(e.palette)),objectId:d}),t("endobj")}},s=function(){var e=this.internal.collections[t+"images"];for(var r in e)o.call(this,e[r])},l=function(){var e,r=this.internal.collections[t+"images"],n=this.internal.write;for(var a in r)n("/I"+(e=r[a]).index,e.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var e=this.internal.collections[t+"images"];return c.call(this),e},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(t){return"function"==typeof e["process"+t.toUpperCase()]},f=function(e){return"object"===(0,n["default"])(e)&&1===e.nodeType},p=function(t,r){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return g(unescape(n).split("base64,").pop());var a=e.loadFile(n,!0);if(void 0!==a)return a}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(r){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return g(t.toDataURL(i,1).split("base64,").pop())}},m=function(e){var r=this.internal.collections[t+"images"];if(r)for(var n in r)if(e===r[n].alias)return r[n]},v=function(e,t,r){return e||t||(e=-96,t=-96),e<0&&(e=-1*r.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.height*72/t/this.internal.scaleFactor),0===e&&(e=t*r.width/r.height),0===t&&(t=e*r.height/r.width),[e,t]},b=function(e,t,r,n,a,i){var o=v.call(this,r,n,a),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(r=o[0],n=o[1],c[a.index]=a,i){i*=Math.PI/180;var d=Math.cos(i),h=Math.sin(i),f=function(e){return e.toFixed(4)},p=[f(d),f(h),f(-1*h),f(d),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(e),l(t+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(e),l(t+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+a.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=e.__addimage__.sHashCode=function(e){var t,r,n=0;if("string"==typeof e)for(r=e.length,t=0;t<r;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;else if(k(e))for(r=e.byteLength/2,t=0;t<r;t++)n=(n<<5)-n+e[t],n|=0;return n},_=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},S=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var k=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},A=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",r=k(e)?e:new Uint8Array(e),n=0;n<r.length;n+=8192)t+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return t};e.addImage=function(){var e,t,a,i,o,s,l,u,d;if("number"==typeof arguments[1]?(t=r,a=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],l=arguments[5],u=arguments[6],d=arguments[7]):(t=arguments[1],a=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7],d=arguments[8]),"object"===(0,n["default"])(e=arguments[0])&&!f(e)&&"imageData"in e){var h=e;e=h.imageData,t=h.format||t||r,a=h.x||a||0,i=h.y||i||0,o=h.w||h.width||o,s=h.h||h.height||s,l=h.alias||l,u=h.compression||u,d=h.rotation||h.angle||d}var p=this.internal.getFilters();if(void 0===u&&-1!==p.indexOf("FlateEncode")&&(u="SLOW"),isNaN(a)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var g=N.call(this,e,t,l,u);return b.call(this,a,i,o,s,g,d),this};var N=function(t,n,a,o){var s,l,c;if("string"==typeof t&&i(t)===r){t=unescape(t);var u=E(t,!1);(""!==u||void 0!==(u=e.loadFile(t,!0)))&&(t=u)}if(f(t)&&(t=p(t,n)),n=i(t,n),!h(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(c=a)||0===c.length)&&(a=function(e){return"string"==typeof e||k(e)?x(e):k(e.data)?x(e.data):null}(t)),(s=m.call(this,a))||(t instanceof Uint8Array||"RGBA"===n||(l=t,t=C(t)),s=this["process"+n.toUpperCase()](t,d.call(this),a,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:w.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var r,n="";if("string"==typeof e){var a;r=null!==(a=S(e))&&void 0!==a?a:e;try{n=g(r)}catch(i){if(t)throw _(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+i.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};e.getImageProperties=function(t){var n,a,o="";if(f(t)&&(t=p(t)),"string"==typeof t&&i(t)===r&&(""===(o=E(t,!1))&&(o=e.loadFile(t)||""),t=o),a=i(t),!h(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(t instanceof Uint8Array||(t=C(t)),!(n=this["process"+a.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=a,n}}(z.API),
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
Ne=z.API,Ee=function(e){if(void 0!==e&&""!=e)return!0},z.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),Ne.events.push(["putPage",function(e){for(var t,r,n,a=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),s=e.pageContext.annotations,l=!1,c=0;c<s.length&&!l;c++)switch((t=s[c]).type){case"link":(Ee(t.options.url)||Ee(t.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<s.length;u++){t=s[u];var d=this.internal.pdfEscape,h=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(f.objId),m=t.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+a(t.bounds.x)+" "+i(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y)+"] ")+"/Contents ("+d(g(t.contents))+")",n+=" /Popup "+p.objId+" 0 R",n+=" /P "+o.objId+" 0 R",n+=" /T ("+d(g(m))+") >>",f.content=n;var v=f.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+a(t.bounds.x+30)+" "+i(t.bounds.y+t.bounds.h)+" "+a(t.bounds.x+t.bounds.w+30)+" "+i(t.bounds.y)+"] ")+" /Parent "+v,t.open&&(n+=" /Open true"),n+=" >>",p.content=n,this.internal.write(f.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+a(t.bounds.x)+" "+i(t.bounds.y)+" "+a(t.bounds.x+t.bounds.w)+" "+i(t.bounds.y+t.bounds.h)+"] ";var b=t.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(h(t.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(t.options.name){var y=this.annotations._nameMap[t.options.name];t.options.pageNumber=y.page,t.options.top=y.y}else t.options.top||(t.options.top=0);if(r="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",n="",t.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(h(t.options.url))+") >>";else if(t.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,n+=" /FitV "+t.options.left+"]";break;default:var w=i(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),n+=" /XYZ "+t.options.left+" "+w+" "+t.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),Ne.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},Ne.link=function(e,t,r,n,a){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+r),h:s(t+n)},options:a,type:"link"})},Ne.textWithLink=function(e,t,r,n){var a,i,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){i=n.maxWidth;var l=this.splitTextToSize(e,i).length;a=Math.ceil(s*l)}else i=o,a=s;return this.text(e,t,r,n),r+=.2*s,"center"===n.align&&(t-=o/2),"right"===n.align&&(t-=o),this.link(t,r-s,i,a,n),o},Ne.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},o=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&a.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&i(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,a="",i=0;for(t=0;t<e.length;t+=1)void 0!==n[e.charCodeAt(t)]?(i++,"number"==typeof(n=n[e.charCodeAt(t)])&&(a+=String.fromCharCode(n),n=r,i=0),t===e.length-1&&(n=r,a+=e.charAt(t-(i-1)),t-=i-1,i=0)):(n=r,a+=e.charAt(t-i),t-=i,i=0);return a};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==n[e.charCodeAt(0)]};var h=e.__arabicParser__.getCorrectForm=function(e,t,r){return o(e)?!1===i(e)?-1:!c(e)||!o(t)&&!o(r)||!o(r)&&s(t)||s(e)&&!o(t)||s(e)&&l(t)||s(e)&&s(t)?0:u(e)&&o(t)&&!s(t)&&o(r)&&c(r)?3:s(e)||!o(r)?1:2:-1},f=function(e){var r=0,n=0,a=0,i="",s="",l="",c=(e=e||"").split("\\s+"),u=[];for(r=0;r<c.length;r+=1){for(u.push(""),n=0;n<c[r].length;n+=1)i=c[r][n],s=c[r][n-1],l=c[r][n+1],o(i)?(a=h(i,s,l),u[r]+=-1!==a?String.fromCharCode(t[i.charCodeAt(0)][a]):i):u[r]+=i;u[r]=d(u[r])}return u.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(t)){var n=0;for(r=[],n=0;n<t.length;n+=1)Array.isArray(t[n])?r.push([f(t[n][0]),t[n][1],t[n][2]]):r.push([f(t[n])]);e=r}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(z.API),z.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(z.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,a=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var a=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return a.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){a.call(this);var r=(t=t||{}).fontSize||this.getFontSize(),n=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(c.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)o<(l=this.getStringUnitWidth(e[d],{font:n})*r)&&(o=l);return 0!==o&&(s=e.length),{w:o/=i,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){a.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var n=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===e.lineNumber?(e.x=(n.x||0)+(n.width||0),e.y=n.y||0):n.y+n.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=n.y+n.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===r?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,r,c,u,d){if(a.call(this),!c)throw new Error("No data for PDF table.");var h,f,p,g,m=[],v=[],b=[],y={},w={},x=[],_=[],S=(d=d||{}).autoSize||!1,k=!1!==d.printHeaders,C=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,A=d.margins||Object.assign({width:this.getPageWidth()},t),N="number"==typeof d.padding?d.padding:3,E=d.headerBackgroundColor||"#c8c8c8",L=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=C,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=E,this.internal.__cell__.headerTextColor=L,this.setFontSize(C),null==u)v=m=Object.keys(c[0]),b=m.map(function(){return"left"});else if(Array.isArray(u)&&"object"===(0,n["default"])(u[0]))for(m=u.map(function(e){return e.name}),v=u.map(function(e){return e.prompt||e.name||""}),b=u.map(function(e){return e.align||"left"}),h=0;h<u.length;h+=1)w[u[h].name]=.7499990551181103*u[h].width;else Array.isArray(u)&&"string"==typeof u[0]&&(v=m=u,b=m.map(function(){return"left"}));if(S||Array.isArray(u)&&"string"==typeof u[0])for(h=0;h<m.length;h+=1){for(y[g=m[h]]=c.map(function(e){return e[g]}),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=y[g],this.setFont(void 0,"normal"),p=0;p<f.length;p+=1)x.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,x)+N+N,x=[]}if(k){var T={};for(h=0;h<m.length;h+=1)T[m[h]]={},T[m[h]].text=v[h],T[m[h]].align=b[h];var M=l.call(this,T,w);_=m.map(function(t){return new o(e,r,w[t],M,T[t].text,void 0,T[t].align)}),this.setTableHeaderRow(_),this.printHeaderRow(1,!1)}var F=u.reduce(function(e,t){return e[t.name]=t.align,e},{});for(h=0;h<c.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:c[h]},this);var D=l.call(this,c[h],w);for(p=0;p<m.length;p+=1){var I=c[h][m[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:I},this),s.call(this,new o(e,r,w[m[p]],D,I,h+2,F[m[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=r,this};var l=function(e,t){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,a=this.internal.scaleFactor;return Object.keys(e).map(function(n){var a=e[n];return this.splitTextToSize(a.hasOwnProperty("text")?a.text:a,t[n]-r-r)},this).map(function(e){return this.getLineHeightFactor()*e.length*n/a+r+r},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){a.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){n=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,l.push(n)),n.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,n),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),r=!1}}(z.API);var Me={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Fe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],De=Te(Fe),Ie=[100,200,300,400,500,600,700,800,900],Oe=Te(Ie);function Pe(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(e){return Me[e=e||"normal"]?e:"normal"}(e.style),n=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),a=function(e){return"number"==typeof De[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,r,n].join(" ")}}}function Re(e,t,r,n){var a;for(a=r;a>=0&&a<t.length;a+=n)if(e[t[a]])return e[t[a]];for(a=r;a>=0&&a<t.length;a-=n)if(e[t[a]])return e[t[a]]}var je={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Be={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ze(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Ve(e){return e.trimLeft()}function Ue(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function He(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var qe,Ge,We,$e,Xe,Ye,Ke,Je,Ze=["times"];function Qe(e,t,r,n){var i=4,o=rt;switch(n){case z.API.image_compression.FAST:i=1,o=tt;break;case z.API.image_compression.MEDIUM:i=6,o=nt;break;case z.API.image_compression.SLOW:i=9,o=at}e=function(e,t,r,n){for(var a,i=e.length/t,o=new Uint8Array(e.length+i),s=[et,tt,rt,nt,at],l=0;l<i;l+=1){var c=l*t,u=e.subarray(c,c+t);if(n)o.set(n(u,r,a),c+l);else{for(var d=s.length,h=[],f=0;f<d;f+=1)h[f]=s[f](u,r,a);var p=ot(h.concat());o.set(h[p],c+l)}a=u}return o}(e,t,r,o);var s=(0,a.zlibSync)(e,{level:i});return z.API.__addimage__.arrayBufferToBinaryString(s)}function et(e){var t=Array.apply([],e);return t.unshift(0),t}function tt(e,t){var r=e.length,n=[];n[0]=1;for(var a=0;a<r;a+=1){var i=e[a-t]||0;n[a+1]=e[a]-i+256&255}return n}function rt(e,t,r){var n=e.length,a=[];a[0]=2;for(var i=0;i<n;i+=1){var o=r&&r[i]||0;a[i+1]=e[i]-o+256&255}return a}function nt(e,t,r){var n=e.length,a=[];a[0]=3;for(var i=0;i<n;i+=1){var o=e[i-t]||0,s=r&&r[i]||0;a[i+1]=e[i]+256-(o+s>>>1)&255}return a}function at(e,t,r){var n=e.length,a=[];a[0]=4;for(var i=0;i<n;i+=1){var o=it(e[i-t]||0,r&&r[i]||0,r&&r[i-t]||0);a[i+1]=e[i]-o+256&255}return a}function it(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),a=Math.abs(e-r),i=Math.abs(e+t-r-r);return n<=a&&n<=i?e:a<=i?t:r}function ot(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function st(e,t,r){var n=t*r,a=Math.floor(n/8),i=16-(n-8*a+r),o=(1<<r)-1;return ct(e,a)>>i&o}function lt(e,t,r,n){var a=r*n,i=Math.floor(a/8),o=16-(a-8*i+n),s=(1<<n)-1,l=(t&s)<<o;!function(e,t,r){if(t+1<e.byteLength)e.setUint16(t,r,!1);else{var n=r>>8&255;e.setUint8(t,n)}}
/**
   * @license
   * (c) Dean McNamee <dean@gmail.com>, 2013.
   *
   * https://github.com/deanm/omggif
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   *
   * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
   * including animation and compression.  It does not rely on any specific
   * underlying system, so should run in the browser, Node, or Plask.
   */(e,i,ct(e,i)&~(s<<o)&65535|l)}function ct(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function ut(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,a=e[t++],i=a>>7,o=1<<1+(7&a);e[t++],e[t++];var s=null,l=null;i&&(s=t,l=o,t+=3*o);var c=!0,u=[],d=0,h=null,f=0,p=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var g=e[t++];d=e[t++]|e[t++]<<8,h=e[t++],1&g||(h=null),f=g>>2&7,t++;break;case 254:for(;;){if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++],x=w>>6&1,_=1<<1+(7&w),S=s,k=l,C=!1;w>>7&&(C=!0,S=t,k=_,t+=3*_);var A=t;for(t++;;){var N;if(!((N=e[t++])>=0))throw Error("Invalid block size");if(0===N)break;t+=N}u.push({x:m,y:v,width:b,height:y,has_local_palette:C,palette_offset:S,palette_size:k,data_offset:A,data_length:t-A,transparent_index:h,interlaced:!!x,delay:d,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,n){var a=this.frameInfo(t),i=a.width*a.height,o=new Uint8Array(i);dt(e,a.data_offset,o,i);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=r-c,d=c,h=4*(a.y*r+a.x),f=4*((a.y+a.height)*r+a.x),p=h,g=4*u;!0===a.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===d&&(d=c,(p+=g)>=f&&(g=4*u+4*r*(m-1),p=h+(c+u)*(m<<1),m>>=1)),y===l)p+=4;else{var w=e[s+3*y],x=e[s+3*y+1],_=e[s+3*y+2];n[p++]=_,n[p++]=x,n[p++]=w,n[p++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,n){var a=this.frameInfo(t),i=a.width*a.height,o=new Uint8Array(i);dt(e,a.data_offset,o,i);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=r-c,d=c,h=4*(a.y*r+a.x),f=4*((a.y+a.height)*r+a.x),p=h,g=4*u;!0===a.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===d&&(d=c,(p+=g)>=f&&(g=4*u+4*r*(m-1),p=h+(c+u)*(m<<1),m>>=1)),y===l)p+=4;else{var w=e[s+3*y],x=e[s+3*y+1],_=e[s+3*y+2];n[p++]=w,n[p++]=x,n[p++]=_,n[p++]=255}--d}}}function dt(e,t,r,n){for(var a=e[t++],i=1<<a,o=i+1,s=o+1,l=a+1,u=(1<<l)-1,d=0,h=0,f=0,p=e[t++],g=new Int32Array(4096),m=null;;){for(;d<16&&0!==p;)h|=e[t++]<<d,d+=8,1===p?p=e[t++]:--p;if(d<l)break;var v=h&u;if(h>>=l,d-=l,v!==i){if(v===o)break;for(var b=v<s?v:m,y=0,w=b;w>i;)w=g[w]>>8,++y;var x=w;if(f+y+(b!==v?1:0)>n)return void c.log("Warning, gif stream longer than expected.");r[f++]=x;var _=f+=y;for(b!==v&&(r[f++]=x),w=b;y--;)w=g[w],r[--_]=255&w,w>>=8;null!==m&&s<4096&&(g[s++]=m<<8|x,s>=u+1&&l<12&&(++l,u=u<<1|1)),m=v}else s=o+1,u=(1<<(l=a+1))-1,m=null}return f!==n&&c.log("Warning, gif stream shorter than expected."),r
/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/}function ht(e){var t,r,n,a,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),h=new Array(65535),f=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),_=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],M=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function F(e,t){for(var r=0,n=0,a=new Array,i=1;i<=16;i++){for(var o=1;o<=e[i];o++)a[t[n]]=[],a[t[n]][0]=r,a[t[n]][1]=i,n++,r++;r*=2}return a}function D(e){for(var t=e[0],r=e[1]-1;r>=0;)t&1<<r&&(m|=1<<v),r--,--v<0&&(255==m?(I(255),I(0)):I(m),v=7,m=0)}function I(e){g.push(e)}function O(e){I(e>>8&255),I(255&e)}function P(e,t,r,n,a){for(var i,o=a[0],s=a[240],l=function(e,t){var r,n,a,i,o,s,l,c,u,d,h=0;for(u=0;u<8;++u){r=e[h],n=e[h+1],a=e[h+2],i=e[h+3],o=e[h+4],s=e[h+5],l=e[h+6];var p=r+(c=e[h+7]),g=r-c,m=n+l,v=n-l,b=a+s,y=a-s,w=i+o,x=i-o,_=p+w,S=p-w,k=m+b,C=m-b;e[h]=_+k,e[h+4]=_-k;var A=.707106781*(C+S);e[h+2]=S+A,e[h+6]=S-A;var N=.382683433*((_=x+y)-(C=v+g)),E=.5411961*_+N,L=1.306562965*C+N,T=.707106781*(k=y+v),M=g+T,F=g-T;e[h+5]=F+E,e[h+3]=F-E,e[h+1]=M+L,e[h+7]=M-L,h+=8}for(h=0,u=0;u<8;++u){r=e[h],n=e[h+8],a=e[h+16],i=e[h+24],o=e[h+32],s=e[h+40],l=e[h+48];var D=r+(c=e[h+56]),I=r-c,O=n+l,P=n-l,R=a+s,j=a-s,B=i+o,z=i-o,V=D+B,U=D-B,H=O+R,q=O-R;e[h]=V+H,e[h+32]=V-H;var G=.707106781*(q+U);e[h+16]=U+G,e[h+48]=U-G;var W=.382683433*((V=z+j)-(q=P+I)),$=.5411961*V+W,X=1.306562965*q+W,Y=.707106781*(H=j+P),K=I+Y,J=I-Y;e[h+40]=J+$,e[h+24]=J-$,e[h+8]=K+X,e[h+56]=K-X,h++}for(u=0;u<64;++u)d=e[u]*t[u],f[u]=d>0?d+.5|0:d-.5|0;return f}(e,t),c=0;c<64;++c)p[S[c]]=l[c];var u=p[0]-r;r=p[0],0==u?D(n[0]):(D(n[h[i=32767+u]]),D(d[i]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return D(o),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)D(s);y&=15}i=32767+p[v],D(a[(y<<4)+h[i]]),D(d[i]),v++}return 63!=g&&D(o),r}function R(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((t[r]*e+50)/100);n=Math.min(Math.max(n,1),255),s[S[r]]=n}for(var a=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var d=o((a[i]*e+50)/100);d=Math.min(Math.max(d,1),255),l[S[i]]=d}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var g=0;g<8;g++)c[f]=1/(s[S[f]]*h[p]*h[g]*8),u[f]=1/(l[S[f]]*h[p]*h[g]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&R(i),g=new Array,m=0,v=7,O(65496),O(65504),O(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),O(1),O(1),I(0),I(0),function(){O(65499),O(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(l[t])}(),function(e,t){O(65472),O(17),I(8),O(t),O(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){O(65476),O(418),I(0);for(var e=0;e<16;e++)I(k[e+1]);for(var t=0;t<=11;t++)I(C[t]);I(16);for(var r=0;r<16;r++)I(A[r+1]);for(var n=0;n<=161;n++)I(N[n]);I(1);for(var a=0;a<16;a++)I(E[a+1]);for(var i=0;i<=11;i++)I(L[i]);I(17);for(var o=0;o<16;o++)I(T[o+1]);for(var s=0;s<=161;s++)I(M[s])}(),O(65498),O(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,d=0,h=0;m=0,v=7,this.encode.displayName="_encode_";for(var f,p,x,S,F,j,B,z,V,U=e.data,H=e.width,q=e.height,G=4*H,W=0;W<q;){for(f=0;f<G;){for(F=G*W+f,B=-1,z=0,V=0;V<64;V++)j=F+(z=V>>3)*G+(B=4*(7&V)),W+z>=q&&(j-=G*(W+1+z-q)),f+B>=G&&(j-=f+B-G+4),p=U[j++],x=U[j++],S=U[j++],b[V]=(_[p]+_[x+256|0]+_[S+512|0]>>16)-128,y[V]=(_[p+768|0]+_[x+1024|0]+_[S+1280|0]>>16)-128,w[V]=(_[p+1280|0]+_[x+1536|0]+_[S+1792|0]>>16)-128;o=P(b,c,o,t,n),d=P(y,u,d,r,a),h=P(w,u,h,r,a),f+=32}W+=8}if(v>=0){var $=[];$[1]=v+1,$[0]=(1<<v+1)-1,D($)}return O(65497),new Uint8Array(g)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=F(k,C),r=F(E,L),n=F(A,N),a=F(T,M),function(){for(var e=1,t=2,r=1;r<=15;r++){for(var n=e;n<t;n++)h[32767+n]=r,d[32767+n]=[],d[32767+n][1]=r,d[32767+n][0]=n;for(var a=-(t-1);a<=-e;a++)h[32767+a]=r,d[32767+a]=[],d[32767+a][1]=r,d[32767+a][0]=t-1+a;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)_[e]=19595*e,_[e+256|0]=38470*e,_[e+512|0]=7471*e+32768,_[e+768|0]=-11059*e,_[e+1024|0]=-21709*e,_[e+1280|0]=32768*e+8421375,_[e+1536|0]=-27439*e,_[e+1792|0]=-5329*e}(),R(e)}
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function ft(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function pt(e){function t(e){if(!e)throw Error("assert :P")}function r(e,t,r){for(var n=0;4>n;n++)if(e[t+n]!=r.charCodeAt(n))return!0;return!1}function n(e,t,r,n,a){for(var i=0;i<a;i++)e[t+i]=r[n+i]}function a(e,t,r,n){for(var a=0;a<n;a++)e[t+a]=r}function i(e){return new Int32Array(e)}function o(e,t){for(var r=[],n=0;n<e;n++)r.push(new t);return r}function s(e,t){var r=[];return function n(e,r,a){for(var i=a[r],o=0;o<i&&(e.push(a.length>r+1?[]:new t),!(a.length<r+1));o++)n(e[o],r+1,a)}(r,0,e),r}var l=function(){var e=this;function l(e,t){for(var r=1<<t-1>>>0;e&r;)r>>>=1;return r?(e&r-1)+r:e}function c(e,r,n,a,i){t(!(a%n));do{e[r+(a-=n)]=i}while(0<a)}function u(e,r,n,a,o){if(t(2328>=o),512>=o)var s=i(512);else if(null==(s=i(o)))return 0;return function(e,r,n,a,o,s){var u,h,f=r,p=1<<n,g=i(16),m=i(16);for(t(0!=o),t(null!=a),t(null!=e),t(0<n),h=0;h<o;++h){if(15<a[h])return 0;++g[a[h]]}if(g[0]==o)return 0;for(m[1]=0,u=1;15>u;++u){if(g[u]>1<<u)return 0;m[u+1]=m[u]+g[u]}for(h=0;h<o;++h)u=a[h],0<a[h]&&(s[m[u]++]=h);if(1==m[15])return(a=new d).g=0,a.value=s[0],c(e,f,1,p,a),p;var v,b=-1,y=p-1,w=0,x=1,_=1,S=1<<n;for(h=0,u=1,o=2;u<=n;++u,o<<=1){if(x+=_<<=1,0>(_-=g[u]))return 0;for(;0<g[u];--g[u])(a=new d).g=u,a.value=s[h++],c(e,f+w,o,S,a),w=l(w,u)}for(u=n+1,o=2;15>=u;++u,o<<=1){if(x+=_<<=1,0>(_-=g[u]))return 0;for(;0<g[u];--g[u]){if(a=new d,(w&y)!=b){for(f+=S,v=1<<(b=u)-n;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=S=1<<(v=b-n),e[r+(b=w&y)].g=v+n,e[r+b].value=f-r-b}a.g=u-n,a.value=s[h++],c(e,f+(w>>n),o,S,a),w=l(w,u)}}return x!=2*m[15]-1?0:p}(e,r,n,a,o,s)}function d(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=o(5,d),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Rr,h)}function p(e,r,n,a){t(null!=e),t(null!=r),t(2147483648>a),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=r,e.pa=n,e.Jd=r,e.Yc=n+a,e.Zc=4<=a?n+a-4+1:n,A(e)}function g(e,t){for(var r=0;0<t--;)r|=E(e,128)<<t;return r}function m(e,t){var r=g(e,t);return N(e)?-r:r}function v(e,r,n,a){var i,o=0;for(t(null!=e),t(null!=r),t(4294967288>a),e.Sb=a,e.Ra=0,e.u=0,e.h=0,4<a&&(a=4),i=0;i<a;++i)o+=r[n+i]<<8*i;e.Ra=o,e.bb=a,e.oa=r,e.pa=n}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<zr-8>>>0,++e.bb,e.u-=8;S(e)&&(e.h=1,e.u=0)}function y(e,r){if(t(0<=r),!e.h&&r<=Br){var n=_(e)&jr[r];return e.u+=r,b(e),n}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(e){return e.Ra>>>(e.u&zr-1)>>>0}function S(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>zr}function k(e,t){e.u=t,e.h=S(e)}function C(e){e.u>=Vr&&(t(e.u>=Vr),b(e))}function A(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function N(e){return g(e,1)}function E(e,t){var r=e.Ca;0>e.b&&A(e);var n=e.b,a=r*t>>>8,i=(e.I>>>n>a)+0;for(i?(r-=a,e.I-=a+1<<n>>>0):r=a+1,n=r,a=0;256<=n;)a+=8,n>>=8;return n=7^a+Ur[n],e.b-=n,e.Ca=(r<<n)-1,i}function L(e,t,r){e[t+0]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function T(e,t){return e[t+0]|e[t+1]<<8}function M(e,t){return T(e,t)|e[t+2]<<16}function F(e,t){return T(e,t)|T(e,t+2)<<16}function D(e,r){var n=1<<r;return t(null!=e),t(0<r),e.X=i(n),null==e.X?0:(e.Mb=32-r,e.Xa=r,1)}function I(e,r){t(null!=e),t(null!=r),t(e.Xa==r.Xa),n(r.X,0,e.X,0,1<<r.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function P(e,r,n,a){t(null!=n),t(null!=a);var i=n[0],o=a[0];return 0==i&&(i=(e*o+r/2)/r),0==o&&(o=(r*i+e/2)/e),0>=i||0>=o?0:(n[0]=i,a[0]=o,1)}function R(e,t){return e+(1<<t)-1>>>t}function j(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function B(t,r){e[r]=function(r,n,a,i,o,s,l){var c;for(c=0;c<o;++c){var u=e[t](s[l+c-1],a,i+c);s[l+c]=j(r[n+c],u)}}}function z(){this.ud=this.hd=this.jd=0}function V(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function U(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function H(e,t){return U(e+(e-t+.5>>1))}function q(e,t,r){return Math.abs(t-r)-Math.abs(e-r)}function G(e,t,r,n,a,i,o){for(n=i[o-1],r=0;r<a;++r)i[o+r]=n=j(e[t+r],n)}function W(e,t,r,n,a){var i;for(i=0;i<r;++i){var o=e[t+i],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));n[a+i]=(4278255360&o)+l>>>0}}function $(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function X(e,t,r,n,a,i){var o;for(o=0;o<n;++o){var s=t[r+o],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),a[i+o]=(4278255360&s)+(u<<16)+c}}function Y(t,r,n,a,i){e[r]=function(e,t,r,n,o,s,l,c,u){for(n=l;n<c;++n)for(l=0;l<u;++l)o[s++]=i(r[a(e[t++])])},e[t]=function(t,r,o,s,l,c,u){var d=8>>t.b,h=t.Ea,f=t.K[0],p=t.w;if(8>d)for(t=(1<<t.b)-1,p=(1<<d)-1;r<o;++r){var g,m=0;for(g=0;g<h;++g)g&t||(m=a(s[l++])),c[u++]=i(f[m&p]),m>>=d}else e["VP8LMapColor"+n](s,l,f,p,c,u,r,o,h)}}function K(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=i>>16&255,n[a++]=i>>8&255,n[a++]=255&i}}function J(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=i>>16&255,n[a++]=i>>8&255,n[a++]=255&i,n[a++]=i>>24&255}}function Z(e,t,r,n,a){for(r=t+r;t<r;){var i=(o=e[t++])>>16&240|o>>12&15,o=240&o|o>>28&15;n[a++]=i,n[a++]=o}}function Q(e,t,r,n,a){for(r=t+r;t<r;){var i=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[a++]=i,n[a++]=o}}function ee(e,t,r,n,a){for(r=t+r;t<r;){var i=e[t++];n[a++]=255&i,n[a++]=i>>8&255,n[a++]=i>>16&255}}function te(e,t,r,a,i,o){if(0==o)for(r=t+r;t<r;)L(a,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else n(a,i,e,t,r)}function re(t,r){e[r][0]=e[t+"0"],e[r][1]=e[t+"1"],e[r][2]=e[t+"2"],e[r][3]=e[t+"3"],e[r][4]=e[t+"4"],e[r][5]=e[t+"5"],e[r][6]=e[t+"6"],e[r][7]=e[t+"7"],e[r][8]=e[t+"8"],e[r][9]=e[t+"9"],e[r][10]=e[t+"10"],e[r][11]=e[t+"11"],e[r][12]=e[t+"12"],e[r][13]=e[t+"13"],e[r][14]=e[t+"0"],e[r][15]=e[t+"0"]}function ne(e){return e==Un||e==Hn||e==qn||e==Gn}function ae(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function oe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ae,this.f.kb=new ie,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var r=e.T,a=t.ba.f.RGBA,i=a.eb,o=a.fb+e.ka*a.A,s=ma[t.ba.S],l=e.y,c=e.O,u=e.f,d=e.N,h=e.ea,f=e.W,p=t.cc,g=t.dc,m=t.Mc,v=t.Nc,b=e.ka,y=e.ka+e.T,w=e.U,x=w+1>>1;for(0==b?s(l,c,null,null,u,d,h,f,u,d,h,f,i,o,null,null,w):(s(t.ec,t.fc,l,c,p,g,m,v,u,d,h,f,i,o-a.A,i,o,w),++r);b+2<y;b+=2)p=u,g=d,m=h,v=f,d+=e.Rc,f+=e.Rc,o+=2*a.A,s(l,(c+=2*e.fa)-e.fa,l,c,p,g,m,v,u,d,h,f,i,o-a.A,i,o,w);return c+=e.fa,e.j+y<e.o?(n(t.ec,t.fc,l,c,w),n(t.cc,t.dc,u,d,x),n(t.Mc,t.Nc,h,f,x),r--):1&y||s(l,c,null,null,u,d,h,f,u,d,h,f,i,o+a.A,null,null,w),r}function de(e,r,n){var a=e.F,i=[e.J];if(null!=a){var o=e.U,s=r.ba.S,l=s==Bn||s==qn;r=r.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var d=r.eb;u=r.fb+u*r.A,e=kn(a,i[0],e.width,o,c,d,u+(l?0:3),r.A),t(n==c),e&&ne(s)&&_n(d,u,l,o,c,r.A)}return 0}function he(e){var t=e.ma,r=t.ba.S,n=11>r,a=r==Pn||r==jn||r==Bn||r==zn||12==r||ne(r);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Ir(t.Oa,e,a?11:12))return 0;if(a&&ne(r)&&vr(),e.da)alert("todo:use_scaling");else{if(n){if(t.Ib=ce,e.Kb){if(r=e.U+1>>1,t.memory=i(e.U+2*r),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+r,t.Ib=ue,vr()}}else alert("todo:EmitYUV");a&&(t.Jb=de,n&&gr())}if(n&&!Ta){for(e=0;256>e;++e)Ma[e]=89858*(e-128)+Ca>>ka,Ia[e]=-22014*(e-128)+Ca,Da[e]=-45773*(e-128),Fa[e]=113618*(e-128)+Ca>>ka;for(e=Aa;e<Na;++e)t=76283*(e-16)+Ca>>ka,Oa[e-Aa]=Ge(t,255),Pa[e-Aa]=Ge(t+8>>4,15);Ta=1}return 1}function fe(e){var r=e.ma,n=e.U,a=e.T;return t(!(1&e.ka)),0>=n||0>=a?0:(n=r.Ib(e,r),null!=r.Jb&&r.Jb(e,r,n),r.Dc+=n,1)}function pe(e){e.ma.memory=null}function ge(e,t,r,n){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,r[0]=y(e,14)+1,n[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var r=e-2>>1;return(2+(1&e)<<r)+y(t,r)+1}function ve(e,t){return 120<t?t-120:1<=(r=((r=Jn[t-1])>>4)*e+(8-(15&r)))?r:1;var r}function be(e,t,r){var n=_(r),a=e[t+=255&n].g-8;return 0<a&&(k(r,r.u+8),n=_(r),t+=e[t].value,t+=n&(1<<a)-1),k(r,r.u+e[t].g),e[t].value}function ye(e,r,n){return n.g+=e.g,n.value+=e.value<<r>>>0,t(8>=n.g),e.g}function we(e,r,n){var a=e.xc;return t((r=0==a?0:e.vc[e.md*(n>>a)+(r>>a)])<e.Wb),e.Ya[r]}function xe(e,r,a,i){var o=e.ab,s=e.c*r,l=e.C;r=l+r;var c=a,u=i;for(i=e.Ta,a=e.Ua;0<o--;){var d=e.gc[o],h=l,f=r,p=c,g=u,m=(u=i,c=a,d.Ea);switch(t(h<f),t(f<=d.nc),d.hc){case 2:Gr(p,g,(f-h)*m,u,c);break;case 0:var v=h,b=f,y=u,w=c,x=(A=d).Ea;0==v&&(Hr(p,g,null,null,1,y,w),G(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++v);for(var _=1<<A.b,S=_-1,k=R(x,A.b),C=A.K,A=A.w+(v>>A.b)*k;v<b;){var N=C,E=A,L=1;for(qr(p,g,y,w-x,1,y,w);L<x;){var T=(L&~S)+_;T>x&&(T=x),(0,Kr[N[E++]>>8&15])(p,g+ +L,y,w+L-x,T-L,y,w+L),L=T}g+=x,w+=x,++v&S||(A+=k)}f!=d.nc&&n(u,c-m,u,c+(f-h-1)*m,m);break;case 1:for(m=p,b=g,x=(p=d.Ea)-(w=p&~(y=(g=1<<d.b)-1)),v=R(p,d.b),_=d.K,d=d.w+(h>>d.b)*v;h<f;){for(S=_,k=d,C=new z,A=b+w,N=b+p;b<A;)$(S[k++],C),Jr(C,m,b,g,u,c),b+=g,c+=g;b<N&&($(S[k++],C),Jr(C,m,b,x,u,c),b+=x,c+=x),++h&y||(d+=v)}break;case 3:if(p==u&&g==c&&0<d.b){for(b=u,p=m=c+(f-h)*m-(w=(f-h)*R(d.Ea,d.b)),g=u,y=c,v=[],w=(x=w)-1;0<=w;--w)v[w]=g[y+w];for(w=x-1;0<=w;--w)b[p+w]=v[w];Wr(d,h,f,u,m,u,c)}else Wr(d,h,f,p,g,u,c)}c=i,u=a}u!=a&&n(i,a,c,u,s)}function _e(e,r){var n=e.V,a=e.Ba+e.c*e.C,i=r-e.C;if(t(r<=e.l.o),t(16>=i),0<i){var o=e.l,s=e.Ta,l=e.Ua,c=o.width;if(xe(e,i,n,a),i=l=[l],t((n=e.C)<(a=r)),t(o.v<o.va),a>o.o&&(a=o.o),n<o.j){var u=o.j-n;n=o.j,i[0]+=u*c}if(n>=a?n=0:(i[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=a-n,n=1),n){if(l=l[0],11>(n=e.ca).S){var d=n.f.RGBA,h=(a=n.S,i=o.U,o=o.T,u=d.eb,d.A),f=o;for(d=d.fb+e.Ma*d.A;0<f--;){var p=s,g=l,m=i,v=u,b=d;switch(a){case On:Zr(p,g,m,v,b);break;case Pn:Qr(p,g,m,v,b);break;case Un:Qr(p,g,m,v,b),_n(v,b,0,m,1,0);break;case Rn:rn(p,g,m,v,b);break;case jn:te(p,g,m,v,b,1);break;case Hn:te(p,g,m,v,b,1),_n(v,b,0,m,1,0);break;case Bn:te(p,g,m,v,b,0);break;case qn:te(p,g,m,v,b,0),_n(v,b,1,m,1,0);break;case zn:en(p,g,m,v,b);break;case Gn:en(p,g,m,v,b),Sn(v,b,m,1,0);break;case Vn:tn(p,g,m,v,b);break;default:t(0)}l+=c,d+=h}e.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=n.height)}}e.C=r,t(e.C<=e.i)}function Se(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var r=e.Ya[t].G,n=e.Ya[t].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function ke(e,r,n,a,i,o){if(0!=e.Z){var s=e.qd,l=e.rd;for(t(null!=ga[e.Z]);r<n;++r)ga[e.Z](s,l,a,i,a,i,o),s=a,l=i,i+=o;e.qd=s,e.rd=l}}function Ce(e,r){var n=e.l.ma,a=0==n.Z||1==n.Z?e.l.j:e.C;if(a=e.C<a?a:e.C,t(r<=e.l.o),r>a){var i=e.l.width,o=n.ca,s=n.tb+i*a,l=e.V,c=e.Ba+e.c*a,u=e.gc;t(1==e.ab),t(3==u[0].hc),Xr(u[0],a,r,l,c,o,s),ke(n,a,r,o,s,i)}e.C=e.Ma=r}function Ae(e,r,n,a,i,o,s){var l=e.$/a,c=e.$%a,u=e.m,d=e.s,h=n+e.$,f=h;i=n+a*i;var p=n+a*o,g=280+d.ua,m=e.Pb?l:16777216,v=0<d.ua?d.Wa:null,b=d.wc,y=h<p?we(d,c,l):null;t(e.C<o),t(p<=i);var w=!1;e:for(;;){for(;w||h<p;){var x=0;if(l>=m){var A=h-n;t((m=e).Pb),m.wd=m.m,m.xd=A,0<m.s.ua&&I(m.s.Wa,m.s.vb),m=l+Qn}if(c&b||(y=we(d,c,l)),t(null!=y),y.Qb&&(r[h]=y.qb,w=!0),!w)if(C(u),y.jc){x=u,A=r;var N=h,E=y.pd[_(x)&Rr-1];t(y.jc),256>E.g?(k(x,x.u+E.g),A[N]=E.value,x=0):(k(x,x.u+E.g-256),t(256<=E.value),x=E.value),0==x&&(w=!0)}else x=be(y.G[0],y.H[0],u);if(u.h)break;if(w||256>x){if(!w)if(y.nd)r[h]=(y.qb|x<<8)>>>0;else{if(C(u),w=be(y.G[1],y.H[1],u),C(u),A=be(y.G[2],y.H[2],u),N=be(y.G[3],y.H[3],u),u.h)break;r[h]=(N<<24|w<<16|x<<8|A)>>>0}if(w=!1,++h,++c>=a&&(c=0,++l,null!=s&&l<=o&&!(l%16)&&s(e,l),null!=v))for(;f<h;)x=r[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=me(x-256,u),A=be(y.G[4],y.H[4],u),C(u),A=ve(a,A=me(A,u)),u.h)break;if(h-n<A||i-h<x)break e;for(N=0;N<x;++N)r[h+N]=r[h+N-A];for(h+=x,c+=x;c>=a;)c-=a,++l,null!=s&&l<=o&&!(l%16)&&s(e,l);if(t(h<=i),c&b&&(y=we(d,c,l)),null!=v)for(;f<h;)x=r[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break e;for(w=x-280,t(null!=v);f<h;)x=r[f++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=h,t(!(w>>>(A=v).Xa)),r[x]=A.X[w],w=!0}w||t(u.h==S(u))}if(e.Pb&&u.h&&h<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&I(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=s&&s(e,l>o?o:l),e.a=0,e.$=h-n}return 1}return e.a=3,0}function Ne(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var r=e.Wa;null!=r&&(r.X=null),e.vb=null,t(null!=e)}function Ee(){var t=new ir;return null==t?null:(t.a=0,t.xb=pa,re("Predictor","VP8LPredictors"),re("Predictor","VP8LPredictors_C"),re("PredictorAdd","VP8LPredictorsAdd"),re("PredictorAdd","VP8LPredictorsAdd_C"),Gr=W,Jr=X,Zr=K,Qr=J,en=Z,tn=Q,rn=ee,e.VP8LMapColor32b=$r,e.VP8LMapColor8b=Yr,t)}function Le(e,r,n,s,l){var c=1,h=[e],p=[r],g=s.m,m=s.s,v=null,b=0;e:for(;;){if(n)for(;c&&y(g,1);){var w=h,x=p,S=s,A=1,N=S.m,E=S.gc[S.ab],L=y(N,2);if(S.Oc&1<<L)c=0;else{switch(S.Oc|=1<<L,E.hc=L,E.Ea=w[0],E.nc=x[0],E.K=[null],++S.ab,t(4>=S.ab),L){case 0:case 1:E.b=y(N,3)+2,A=Le(R(E.Ea,E.b),R(E.nc,E.b),0,S,E.K),E.K=E.K[0];break;case 3:var T,M=y(N,8)+1,F=16<M?0:4<M?1:2<M?2:3;if(w[0]=R(E.Ea,F),E.b=F,T=A=Le(M,1,0,S,E.K)){var I,O=M,P=E,B=1<<(8>>P.b),z=i(B);if(null==z)T=0;else{var V=P.K[0],U=P.w;for(z[0]=P.K[0][0],I=1;I<1*O;++I)z[I]=j(V[U+I],z[I-1]);for(;I<4*B;++I)z[I]=0;P.K[0]=null,P.K[0]=z,T=1}}A=T;break;case 2:break;default:t(0)}c=A}}if(h=h[0],p=p[0],c&&y(g,1)&&!(c=1<=(b=y(g,4))&&11>=b)){s.a=3;break e}var H;if(H=c)t:{var q,G,W,$=s,X=h,Y=p,K=b,J=n,Z=$.m,Q=$.s,ee=[null],te=1,re=0,ne=Zn[K];r:for(;;){if(J&&y(Z,1)){var ae=y(Z,3)+2,ie=R(X,ae),oe=R(Y,ae),se=ie*oe;if(!Le(ie,oe,0,$,ee))break r;for(ee=ee[0],Q.xc=ae,q=0;q<se;++q){var le=ee[q]>>8&65535;ee[q]=le,le>=te&&(te=le+1)}}if(Z.h)break r;for(G=0;5>G;++G){var ce=Xn[G];!G&&0<K&&(ce+=1<<K),re<ce&&(re=ce)}var ue=o(te*ne,d),de=te,he=o(de,f);if(null==he)var fe=null;else t(65536>=de),fe=he;var pe=i(re);if(null==fe||null==pe||null==ue){$.a=1;break r}var ge=ue;for(q=W=0;q<te;++q){var me=fe[q],ve=me.G,be=me.H,we=0,xe=1,_e=0;for(G=0;5>G;++G){ce=Xn[G],ve[G]=ge,be[G]=W,!G&&0<K&&(ce+=1<<K);n:{var Se,ke=ce,Ce=$,Ee=pe,Te=ge,Me=W,Fe=0,De=Ce.m,Ie=y(De,1);if(a(Ee,0,0,ke),Ie){var Oe=y(De,1)+1,Pe=y(De,1),Re=y(De,0==Pe?1:8);Ee[Re]=1,2==Oe&&(Ee[Re=y(De,8)]=1);var je=1}else{var Be=i(19),ze=y(De,4)+4;if(19<ze){Ce.a=3;var Ve=0;break n}for(Se=0;Se<ze;++Se)Be[Kn[Se]]=y(De,3);var Ue=void 0,He=void 0,qe=Ce,Ge=Be,We=ke,$e=Ee,Xe=0,Ye=qe.m,Ke=8,Je=o(128,d);a:for(;u(Je,0,7,Ge,19);){if(y(Ye,1)){var Ze=2+2*y(Ye,3);if((Ue=2+y(Ye,Ze))>We)break a}else Ue=We;for(He=0;He<We&&Ue--;){C(Ye);var Qe=Je[0+(127&_(Ye))];k(Ye,Ye.u+Qe.g);var et=Qe.value;if(16>et)$e[He++]=et,0!=et&&(Ke=et);else{var tt=16==et,rt=et-16,nt=$n[rt],at=y(Ye,Wn[rt])+nt;if(He+at>We)break a;for(var it=tt?Ke:0;0<at--;)$e[He++]=it}}Xe=1;break a}Xe||(qe.a=3),je=Xe}(je=je&&!De.h)&&(Fe=u(Te,Me,8,Ee,ke)),je&&0!=Fe?Ve=Fe:(Ce.a=3,Ve=0)}if(0==Ve)break r;if(xe&&1==Yn[G]&&(xe=0==ge[W].g),we+=ge[W].g,W+=Ve,3>=G){var ot,st=pe[0];for(ot=1;ot<ce;++ot)pe[ot]>st&&(st=pe[ot]);_e+=st}}if(me.nd=xe,me.Qb=0,xe&&(me.qb=(ve[3][be[3]+0].value<<24|ve[1][be[1]+0].value<<16|ve[2][be[2]+0].value)>>>0,0==we&&256>ve[0][be[0]+0].value&&(me.Qb=1,me.qb+=ve[0][be[0]+0].value<<8)),me.jc=!me.Qb&&6>_e,me.jc){var lt,ct=me;for(lt=0;lt<Rr;++lt){var ut=lt,dt=ct.pd[ut],ht=ct.G[0][ct.H[0]+ut];256<=ht.value?(dt.g=ht.g+256,dt.value=ht.value):(dt.g=0,dt.value=0,ut>>=ye(ht,8,dt),ut>>=ye(ct.G[1][ct.H[1]+ut],16,dt),ut>>=ye(ct.G[2][ct.H[2]+ut],0,dt),ye(ct.G[3][ct.H[3]+ut],24,dt))}}}Q.vc=ee,Q.Wb=te,Q.Ya=fe,Q.yc=ue,H=1;break t}H=0}if(!(c=H)){s.a=3;break e}if(0<b){if(m.ua=1<<b,!D(m.Wa,b)){s.a=1,c=0;break e}}else m.ua=0;var ft=s,pt=h,gt=p,mt=ft.s,vt=mt.xc;if(ft.c=pt,ft.i=gt,mt.md=R(pt,vt),mt.wc=0==vt?-1:(1<<vt)-1,n){s.xb=fa;break e}if(null==(v=i(h*p))){s.a=1,c=0;break e}c=(c=Ae(s,v,0,h,p,p,null))&&!g.h;break e}return c?(null!=l?l[0]=v:(t(null==v),t(n)),s.$=0,n||Ne(m)):Ne(m),c}function Te(e,r){var n=e.c*e.i,a=n+r+16*r;return t(e.c<=r),e.V=i(a),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+n+r,1)}function Me(e,r){var n=e.C,a=r-n,i=e.V,o=e.Ba+e.c*n;for(t(r<=e.l.o);0<a;){var s=16<a?16:a,l=e.l.ma,c=e.l.width,u=c*s,d=l.ca,h=l.tb+c*n,f=e.Ta,p=e.Ua;xe(e,s,i,o),Cn(f,p,d,h,u),ke(l,n,n+s,d,h,c),a-=s,i+=s*e.c,n+=s}t(n==r),e.C=e.Ma=r}function Fe(){this.ub=this.yd=this.td=this.Rb=0}function De(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ie(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Oe(){this.Yb=function(){var e=[];return function t(e,r,n){for(var a=n[r],i=0;i<a&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));i++)t(e[i],r+1,n)}(e,0,[3,11]),e}()}function Pe(){this.jb=i(3),this.Wc=s([4,8],Oe),this.Xc=s([4,17],Oe)}function Re(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function je(){this.ld=this.La=this.dd=this.tc=0}function Be(){this.Na=this.la=0}function ze(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ve(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ue(){this.uc=this.M=this.Nb=0,this.wa=Array(new je),this.Y=0,this.ya=Array(new Ve),this.aa=0,this.l=new We}function He(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Fe,this.Kc=new De,this.ed=new Re,this.Qa=new Ie,this.Ic=this.$c=this.Aa=0,this.D=new Ue,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,ze),this.Pa=new Pe,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new He),this.Hd=0,this.rb=Array(new Be),this.sb=0,this.wa=Array(new je),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ve),this.L=this.aa=0,this.gd=s([4,2],je),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ge(e,t){return 0>e?0:e>t?t:e}function We(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function $e(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ra||(ra=Je)),e}function Xe(e,t,r){return 0==e.a&&(e.a=t,e.sc=r,e.cb=0),0}function Ye(e,t,r){return 3<=r&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ke(e,r){if(null==e)return 0;if(e.a=0,e.sc="OK",null==r)return Xe(e,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,i=r.w,o=r.ha;if(4>o)return Xe(e,7,"Truncated header.");var s=n[i+0]|n[i+1]<<8|n[i+2]<<16,l=e.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Xe(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Xe(e,4,"Frame not displayable.");i+=3,o-=3;var c=e.Kc;if(l.Rb){if(7>o)return Xe(e,7,"cannot parse picture header");if(!Ye(n,i,o))return Xe(e,3,"Bad code word");c.c=16383&(n[i+4]<<8|n[i+3]),c.Td=n[i+4]>>6,c.i=16383&(n[i+6]<<8|n[i+5]),c.Ud=n[i+6]>>6,i+=7,o-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,r.width=c.c,r.height=c.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,a((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,a(s.Zb,0,0,s.Zb.length),a(s.Lb,0,0,s.Lb)}if(l.ub>o)return Xe(e,7,"bad partition length");p(s=e.m,n,i,l.ub),i+=l.ub,o-=l.ub,l.Rb&&(c.Ld=N(s),c.Kd=N(s)),c=e.Qa;var u,d=e.Pa;if(t(null!=s),t(null!=c),c.Cb=N(s),c.Cb){if(c.Bb=N(s),N(s)){for(c.Fb=N(s),u=0;4>u;++u)c.Zb[u]=N(s)?m(s,7):0;for(u=0;4>u;++u)c.Lb[u]=N(s)?m(s,6):0}if(c.Bb)for(u=0;3>u;++u)d.jb[u]=N(s)?g(s,8):255}else c.Bb=0;if(s.Ka)return Xe(e,3,"cannot parse segment header");if((c=e.ed).zd=N(s),c.Tb=g(s,6),c.wb=g(s,3),c.Pc=N(s),c.Pc&&N(s)){for(d=0;4>d;++d)N(s)&&(c.vd[d]=m(s,6));for(d=0;4>d;++d)N(s)&&(c.od[d]=m(s,6))}if(e.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Xe(e,3,"cannot parse filter header");var h=o;if(o=u=i,i=u+h,c=h,e.Xb=(1<<g(e.m,2))-1,h<3*(d=e.Xb))n=7;else{for(u+=3*d,c-=3*d,h=0;h<d;++h){var f=n[o+0]|n[o+1]<<8|n[o+2]<<16;f>c&&(f=c),p(e.Jc[+h],n,u,f),u+=f,c-=f,o+=3}p(e.Jc[+d],n,u,c),n=u<i?0:5}if(0!=n)return Xe(e,n,"cannot parse partitions");for(n=g(u=e.m,7),o=N(u)?m(u,4):0,i=N(u)?m(u,4):0,c=N(u)?m(u,4):0,d=N(u)?m(u,4):0,u=N(u)?m(u,4):0,h=e.Qa,f=0;4>f;++f){if(h.Cb){var v=h.Zb[f];h.Fb||(v+=n)}else{if(0<f){e.pb[f]=e.pb[0];continue}v=n}var b=e.pb[f];b.Sc[0]=ea[Ge(v+o,127)],b.Sc[1]=ta[Ge(v+0,127)],b.Eb[0]=2*ea[Ge(v+i,127)],b.Eb[1]=101581*ta[Ge(v+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ea[Ge(v+d,117)],b.Qc[1]=ta[Ge(v+u,127)],b.lc=v+u}if(!l.Rb)return Xe(e,4,"Not a key frame.");for(N(s),l=e.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)d=E(s,la[n][o][i][c])?g(s,8):oa[n][o][i][c],l.Wc[n][o].Yb[i][c]=d;for(o=0;17>o;++o)l.Xc[n][o]=l.Wc[n][ca[o]]}return e.kc=N(s),e.kc&&(e.Bd=g(s,8)),e.cb=1}function Je(e,t,r,n,a,i,o){var s=t[a].Yb[r];for(r=0;16>a;++a){if(!E(e,s[r+0]))return a;for(;!E(e,s[r+1]);)if(s=t[++a].Yb[0],r=0,16==a)return 16;var l=t[a+1].Yb;if(E(e,s[r+2])){var c=e,u=0;if(E(c,(h=s)[(d=r)+3]))if(E(c,h[d+6])){for(s=0,d=2*(u=E(c,h[d+8]))+(h=E(c,h[d+9+u])),u=0,h=na[d];h[s];++s)u+=u+E(c,h[s]);u+=3+(8<<d)}else E(c,h[d+7])?(u=7+2*E(c,165),u+=E(c,145)):u=5+E(c,159);else u=E(c,h[d+4])?3+E(c,h[d+5]):2;s=l[2]}else u=1,s=l[1];l=o+aa[a],0>(c=e).b&&A(c);var d,h=c.b,f=(d=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(d+1&f)<<h,i[l]=((u^f)-f)*n[(0<a)+0]}return 16}function Ze(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,a(e.zc,0,0,e.zc.length),e.ja=0}function Qe(e,t,r,n,a){a=e[t+r+32*n]+(a>>3),e[t+r+32*n]=-256&a?0>a?0:255:a}function et(e,t,r,n,a,i){Qe(e,t,0,r,n+a),Qe(e,t,1,r,n+i),Qe(e,t,2,r,n-i),Qe(e,t,3,r,n-a)}function tt(e){return(20091*e>>16)+e}function rt(e,t,r,n){var a,o=0,s=i(16);for(a=0;4>a;++a){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-tt(e[t+12]),d=tt(e[t+4])+(35468*e[t+12]>>16);s[o+0]=l+d,s[o+1]=c+u,s[o+2]=c-u,s[o+3]=l-d,o+=4,t++}for(a=o=0;4>a;++a)l=(e=s[o+0]+4)+s[o+8],c=e-s[o+8],u=(35468*s[o+4]>>16)-tt(s[o+12]),Qe(r,n,0,0,l+(d=tt(s[o+4])+(35468*s[o+12]>>16))),Qe(r,n,1,0,c+u),Qe(r,n,2,0,c-u),Qe(r,n,3,0,l-d),o++,n+=32}function nt(e,t,r,n){var a=e[t+0]+4,i=35468*e[t+4]>>16,o=tt(e[t+4]),s=35468*e[t+1]>>16;et(r,n,0,a+o,e=tt(e[t+1]),s),et(r,n,1,a+i,e,s),et(r,n,2,a-i,e,s),et(r,n,3,a-o,e,s)}function at(e,t,r,n,a){rt(e,t,r,n),a&&rt(e,t+16,r,n+4)}function it(e,t,r,n){an(e,t+0,r,n,1),an(e,t+32,r,n+128,1)}function ot(e,t,r,n){var a;for(e=e[t+0]+4,a=0;4>a;++a)for(t=0;4>t;++t)Qe(r,n,t,a,e)}function st(e,t,r,n){e[t+0]&&ln(e,t+0,r,n),e[t+16]&&ln(e,t+16,r,n+4),e[t+32]&&ln(e,t+32,r,n+128),e[t+48]&&ln(e,t+48,r,n+128+4)}function lt(e,t,r,n){var a,o=i(16);for(a=0;4>a;++a){var s=e[t+0+a]+e[t+12+a],l=e[t+4+a]+e[t+8+a],c=e[t+4+a]-e[t+8+a],u=e[t+0+a]-e[t+12+a];o[0+a]=s+l,o[8+a]=s-l,o[4+a]=u+c,o[12+a]=u-c}for(a=0;4>a;++a)s=(e=o[0+4*a]+3)+o[3+4*a],l=o[1+4*a]+o[2+4*a],c=o[1+4*a]-o[2+4*a],u=e-o[3+4*a],r[n+0]=s+l>>3,r[n+16]=u+c>>3,r[n+32]=s-l>>3,r[n+48]=u-c>>3,n+=64}function ct(e,t,r){var n,a=t-32,i=Dn,o=255-e[a-1];for(n=0;n<r;++n){var s,l=i,c=o+e[t-1];for(s=0;s<r;++s)e[t+s]=l[c+e[a+s]];t+=32}}function ut(e,t){ct(e,t,4)}function dt(e,t){ct(e,t,8)}function ht(e,t){ct(e,t,16)}function ft(e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,e,t-32,16)}function pt(e,t){var r;for(r=16;0<r;--r)a(e,t,e[t-1],16),t+=32}function gt(e,t,r){var n;for(n=0;16>n;++n)a(t,r+32*n,e,16)}function mt(e,t){var r,n=16;for(r=0;16>r;++r)n+=e[t-1+32*r]+e[t+r-32];gt(n>>5,e,t)}function vt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t-1+32*r];gt(n>>4,e,t)}function bt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t+r-32];gt(n>>4,e,t)}function yt(e,t){gt(128,e,t)}function wt(e,t,r){return e+2*t+r+2>>2}function xt(e,t){var r,a=t-32;for(a=new Uint8Array([wt(e[a-1],e[a+0],e[a+1]),wt(e[a+0],e[a+1],e[a+2]),wt(e[a+1],e[a+2],e[a+3]),wt(e[a+2],e[a+3],e[a+4])]),r=0;4>r;++r)n(e,t+32*r,a,0,a.length)}function _t(e,t){var r=e[t-1],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96];L(e,t+0,16843009*wt(e[t-1-32],r,n)),L(e,t+32,16843009*wt(r,n,a)),L(e,t+64,16843009*wt(n,a,i)),L(e,t+96,16843009*wt(a,i,i))}function St(e,t){var r,n=4;for(r=0;4>r;++r)n+=e[t+r-32]+e[t-1+32*r];for(n>>=3,r=0;4>r;++r)a(e,t+32*r,n,4)}function kt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1-32],o=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=wt(n,a,e[t-1+96]),e[t+1+96]=e[t+0+64]=wt(r,n,a),e[t+2+96]=e[t+1+64]=e[t+0+32]=wt(i,r,n),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=wt(o,i,r),e[t+3+64]=e[t+2+32]=e[t+1+0]=wt(s,o,i),e[t+3+32]=e[t+2+0]=wt(l,s,o),e[t+3+0]=wt(c,l,s)}function Ct(e,t){var r=e[t+1-32],n=e[t+2-32],a=e[t+3-32],i=e[t+4-32],o=e[t+5-32],s=e[t+6-32],l=e[t+7-32];e[t+0+0]=wt(e[t+0-32],r,n),e[t+1+0]=e[t+0+32]=wt(r,n,a),e[t+2+0]=e[t+1+32]=e[t+0+64]=wt(n,a,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=wt(a,i,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=wt(i,o,s),e[t+3+64]=e[t+2+96]=wt(o,s,l),e[t+3+96]=wt(s,l,l)}function At(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1-32],o=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=i+o+1>>1,e[t+1+0]=e[t+2+64]=o+s+1>>1,e[t+2+0]=e[t+3+64]=s+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=wt(a,n,r),e[t+0+64]=wt(n,r,i),e[t+0+32]=e[t+1+96]=wt(r,i,o),e[t+1+32]=e[t+2+96]=wt(i,o,s),e[t+2+32]=e[t+3+96]=wt(o,s,l),e[t+3+32]=wt(s,l,c)}function Nt(e,t){var r=e[t+0-32],n=e[t+1-32],a=e[t+2-32],i=e[t+3-32],o=e[t+4-32],s=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=r+n+1>>1,e[t+1+0]=e[t+0+64]=n+a+1>>1,e[t+2+0]=e[t+1+64]=a+i+1>>1,e[t+3+0]=e[t+2+64]=i+o+1>>1,e[t+0+32]=wt(r,n,a),e[t+1+32]=e[t+0+96]=wt(n,a,i),e[t+2+32]=e[t+1+96]=wt(a,i,o),e[t+3+32]=e[t+2+96]=wt(i,o,s),e[t+3+64]=wt(o,s,l),e[t+3+96]=wt(s,l,c)}function Et(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96];e[t+0+0]=r+n+1>>1,e[t+2+0]=e[t+0+32]=n+a+1>>1,e[t+2+32]=e[t+0+64]=a+i+1>>1,e[t+1+0]=wt(r,n,a),e[t+3+0]=e[t+1+32]=wt(n,a,i),e[t+3+32]=e[t+1+64]=wt(a,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Lt(e,t){var r=e[t-1+0],n=e[t-1+32],a=e[t-1+64],i=e[t-1+96],o=e[t-1-32],s=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=r+o+1>>1,e[t+0+32]=e[t+2+64]=n+r+1>>1,e[t+0+64]=e[t+2+96]=a+n+1>>1,e[t+0+96]=i+a+1>>1,e[t+3+0]=wt(s,l,c),e[t+2+0]=wt(o,s,l),e[t+1+0]=e[t+3+32]=wt(r,o,s),e[t+1+32]=e[t+3+64]=wt(n,r,o),e[t+1+64]=e[t+3+96]=wt(a,n,r),e[t+1+96]=wt(i,a,n)}function Tt(e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,e,t-32,8)}function Mt(e,t){var r;for(r=0;8>r;++r)a(e,t,e[t-1],8),t+=32}function Ft(e,t,r){var n;for(n=0;8>n;++n)a(t,r+32*n,e,8)}function Dt(e,t){var r,n=8;for(r=0;8>r;++r)n+=e[t+r-32]+e[t-1+32*r];Ft(n>>4,e,t)}function It(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t+r-32];Ft(n>>3,e,t)}function Ot(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t-1+32*r];Ft(n>>3,e,t)}function Pt(e,t){Ft(128,e,t)}function Rt(e,t,r){var n=e[t-r],a=e[t+0],i=3*(a-n)+Mn[1020+e[t-2*r]-e[t+r]],o=Fn[112+(i+4>>3)];e[t-r]=Dn[255+n+Fn[112+(i+3>>3)]],e[t+0]=Dn[255+a-o]}function jt(e,t,r,n){var a=e[t+0],i=e[t+r];return In[255+e[t-2*r]-e[t-r]]>n||In[255+i-a]>n}function Bt(e,t,r,n){return 4*In[255+e[t-r]-e[t+0]]+In[255+e[t-2*r]-e[t+r]]<=n}function zt(e,t,r,n,a){var i=e[t-3*r],o=e[t-2*r],s=e[t-r],l=e[t+0],c=e[t+r],u=e[t+2*r],d=e[t+3*r];return 4*In[255+s-l]+In[255+o-c]>n?0:In[255+e[t-4*r]-i]<=a&&In[255+i-o]<=a&&In[255+o-s]<=a&&In[255+d-u]<=a&&In[255+u-c]<=a&&In[255+c-l]<=a}function Vt(e,t,r,n){var a=2*n+1;for(n=0;16>n;++n)Bt(e,t+n,r,a)&&Rt(e,t+n,r)}function Ut(e,t,r,n){var a=2*n+1;for(n=0;16>n;++n)Bt(e,t+n*r,1,a)&&Rt(e,t+n*r,1)}function Ht(e,t,r,n){var a;for(a=3;0<a;--a)Vt(e,t+=4*r,r,n)}function qt(e,t,r,n){var a;for(a=3;0<a;--a)Ut(e,t+=4,r,n)}function Gt(e,t,r,n,a,i,o,s){for(i=2*i+1;0<a--;){if(zt(e,t,r,i,o))if(jt(e,t,r,s))Rt(e,t,r);else{var l=e,c=t,u=r,d=l[c-2*u],h=l[c-u],f=l[c+0],p=l[c+u],g=l[c+2*u],m=27*(b=Mn[1020+3*(f-h)+Mn[1020+d-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[c-3*u]=Dn[255+l[c-3*u]+b],l[c-2*u]=Dn[255+d+v],l[c-u]=Dn[255+h+m],l[c+0]=Dn[255+f-m],l[c+u]=Dn[255+p-v],l[c+2*u]=Dn[255+g-b]}t+=n}}function Wt(e,t,r,n,a,i,o,s){for(i=2*i+1;0<a--;){if(zt(e,t,r,i,o))if(jt(e,t,r,s))Rt(e,t,r);else{var l=e,c=t,u=r,d=l[c-u],h=l[c+0],f=l[c+u],p=Fn[112+(4+(g=3*(h-d))>>3)],g=Fn[112+(g+3>>3)],m=p+1>>1;l[c-2*u]=Dn[255+l[c-2*u]+m],l[c-u]=Dn[255+d+g],l[c+0]=Dn[255+h-p],l[c+u]=Dn[255+f-m]}t+=n}}function $t(e,t,r,n,a,i){Gt(e,t,r,1,16,n,a,i)}function Xt(e,t,r,n,a,i){Gt(e,t,1,r,16,n,a,i)}function Yt(e,t,r,n,a,i){var o;for(o=3;0<o;--o)Wt(e,t+=4*r,r,1,16,n,a,i)}function Kt(e,t,r,n,a,i){var o;for(o=3;0<o;--o)Wt(e,t+=4,1,r,16,n,a,i)}function Jt(e,t,r,n,a,i,o,s){Gt(e,t,a,1,8,i,o,s),Gt(r,n,a,1,8,i,o,s)}function Zt(e,t,r,n,a,i,o,s){Gt(e,t,1,a,8,i,o,s),Gt(r,n,1,a,8,i,o,s)}function Qt(e,t,r,n,a,i,o,s){Wt(e,t+4*a,a,1,8,i,o,s),Wt(r,n+4*a,a,1,8,i,o,s)}function er(e,t,r,n,a,i,o,s){Wt(e,t+4,1,a,8,i,o,s),Wt(r,n+4,1,a,8,i,o,s)}function tr(){this.ba=new oe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function nr(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ar(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new d}function ir(){this.xb=this.a=0,this.l=new We,this.ca=new oe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ar,this.ab=0,this.gc=o(4,nr),this.Oc=0}function or(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new We,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sr(e,t,r,n,a,i,o){for(e=null==e?0:e[t+0],t=0;t<o;++t)a[i+t]=e+r[n+t]&255,e=a[i+t]}function lr(e,t,r,n,a,i,o){var s;if(null==e)sr(null,null,r,n,a,i,o);else for(s=0;s<o;++s)a[i+s]=e[t+s]+r[n+s]&255}function cr(e,t,r,n,a,i,o){if(null==e)sr(null,null,r,n,a,i,o);else{var s,l=e[t+0],c=l,u=l;for(s=0;s<o;++s)c=u+(l=e[t+s])-c,u=r[n+s]+(-256&c?0>c?0:255:c)&255,c=l,a[i+s]=u}}function ur(e,r,a,o){var s=r.width,l=r.o;if(t(null!=e&&null!=r),0>a||0>=o||a+o>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new or,(c=null==e.ga)||(c=r.width*r.o,t(0==e.Gb.length),e.Gb=i(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,d=e.P,h=e.qc,f=e.mb,p=e.nb,g=d+1,m=h-1,b=c.l;if(t(null!=u&&null!=f&&null!=r),ga[0]=null,ga[1]=sr,ga[2]=lr,ga[3]=cr,c.ca=f,c.tb=p,c.c=r.width,c.i=r.height,t(0<c.c&&0<c.i),1>=h)r=0;else if(c.$a=3&u[d+0],c.Z=u[d+0]>>2&3,c.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||d)r=0;else if(b.put=fe,b.ac=he,b.bc=pe,b.ma=c,b.width=r.width,b.height=r.height,b.Da=r.Da,b.v=r.v,b.va=r.va,b.j=r.j,b.o=r.o,c.$a)e:{t(1==c.$a),r=Ee();t:for(;;){if(null==r){r=0;break e}if(t(null!=c),c.mc=r,r.c=c.c,r.i=c.i,r.l=c.l,r.l.ma=c,r.l.width=c.c,r.l.height=c.i,r.a=0,v(r.m,u,g,m),!Le(c.c,c.i,1,r,null))break t;if(1==r.ab&&3==r.gc[0].hc&&Se(r.s)?(c.ic=1,u=r.c*r.i,r.Ta=null,r.Ua=0,r.V=i(u),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(c.ic=0,r=Te(r,c.c)),!r)break t;r=1;break e}c.mc=null,r=0}else r=m>=c.c*c.i;c=!r}if(c)return null;1!=e.ga.Lc?e.Ga=0:o=l-a}t(null!=e.ga),t(a+o<=l);e:{if(r=(u=e.ga).c,l=u.l.o,0==u.$a){if(g=e.rc,m=e.Vc,b=e.Fa,d=e.P+1+a*r,h=e.mb,f=e.nb+a*r,t(d<=e.P+e.qc),0!=u.Z)for(t(null!=ga[u.Z]),c=0;c<o;++c)ga[u.Z](g,m,b,d,h,f,r),g=h,m=f,f+=r,d+=r;else for(c=0;c<o;++c)n(h,f,b,d,r),g=h,m=f,f+=r,d+=r;e.rc=g,e.Vc=m}else{if(t(null!=u.mc),r=a+o,t(null!=(c=u.mc)),t(r<=c.i),c.C>=r)r=1;else if(u.ic||gr(),u.ic){u=c.V,g=c.Ba,m=c.c;var y=c.i,w=(b=1,d=c.$/m,h=c.$%m,f=c.m,p=c.s,c.$),x=m*y,_=m*r,k=p.wc,A=w<_?we(p,h,d):null;t(w<=x),t(r<=y),t(Se(p));t:for(;;){for(;!f.h&&w<_;){if(h&k||(A=we(p,h,d)),t(null!=A),C(f),256>(y=be(A.G[0],A.H[0],f)))u[g+w]=y,++w,++h>=m&&(h=0,++d<=r&&!(d%16)&&Ce(c,d));else{if(!(280>y)){b=0;break t}y=me(y-256,f);var N,E=be(A.G[4],A.H[4],f);if(C(f),!(w>=(E=ve(m,E=me(E,f)))&&x-w>=y)){b=0;break t}for(N=0;N<y;++N)u[g+w+N]=u[g+w+N-E];for(w+=y,h+=y;h>=m;)h-=m,++d<=r&&!(d%16)&&Ce(c,d);w<_&&h&k&&(A=we(p,h,d))}t(f.h==S(f))}Ce(c,d>r?r:d);break t}!b||f.h&&w<x?(b=0,c.a=f.h?5:3):c.$=w,r=b}else r=Ae(c,c.V,c.Ba,c.c,c.i,r,Me);if(!r){o=0;break e}}a+o>=l&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&(null!=(o=e.ga)&&(o.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+a*s}function dr(e,t,r,n,a,i){for(;0<a--;){var o,s=e,l=t+(r?1:0),c=e,u=t+(r?0:3);for(o=0;o<n;++o){var d=c[u+4*o];255!=d&&(d*=32897,s[l+4*o+0]=s[l+4*o+0]*d>>23,s[l+4*o+1]=s[l+4*o+1]*d>>23,s[l+4*o+2]=s[l+4*o+2]*d>>23)}t+=i}}function hr(e,t,r,n,a){for(;0<n--;){var i;for(i=0;i<r;++i){var o=e[t+2*i+0],s=15&(c=e[t+2*i+1]),l=4369*s,c=(240&c|c>>4)*l>>16;e[t+2*i+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,e[t+2*i+1]=240&c|s}t+=a}}function fr(e,t,r,n,a,i,o,s){var l,c,u=255;for(c=0;c<a;++c){for(l=0;l<n;++l){var d=e[t+l];i[o+4*l]=d,u&=d}t+=r,o+=s}return 255!=u}function pr(e,t,r,n,a){var i;for(i=0;i<a;++i)r[n+i]=e[t+i]>>8}function gr(){_n=dr,Sn=hr,kn=fr,Cn=pr}function mr(r,n,a){e[r]=function(e,r,i,o,s,l,c,u,d,h,f,p,g,m,v,b,y){var w,x=y-1>>1,_=s[l+0]|c[u+0]<<16,S=d[h+0]|f[p+0]<<16;t(null!=e);var k=3*_+S+131074>>2;for(n(e[r+0],255&k,k>>16,g,m),null!=i&&(k=3*S+_+131074>>2,n(i[o+0],255&k,k>>16,v,b)),w=1;w<=x;++w){var C=s[l+w]|c[u+w]<<16,A=d[h+w]|f[p+w]<<16,N=_+C+S+A+524296,E=N+2*(C+S)>>3;k=E+_>>1,_=(N=N+2*(_+A)>>3)+C>>1,n(e[r+2*w-1],255&k,k>>16,g,m+(2*w-1)*a),n(e[r+2*w-0],255&_,_>>16,g,m+(2*w-0)*a),null!=i&&(k=N+S>>1,_=E+A>>1,n(i[o+2*w-1],255&k,k>>16,v,b+(2*w-1)*a),n(i[o+2*w+0],255&_,_>>16,v,b+(2*w+0)*a)),_=C,S=A}1&y||(k=3*_+S+131074>>2,n(e[r+y-1],255&k,k>>16,g,m+(y-1)*a),null!=i&&(k=3*S+_+131074>>2,n(i[o+y-1],255&k,k>>16,v,b+(y-1)*a)))}}function vr(){ma[On]=va,ma[Pn]=ya,ma[Rn]=ba,ma[jn]=wa,ma[Bn]=xa,ma[zn]=_a,ma[Vn]=Sa,ma[Un]=ya,ma[Hn]=wa,ma[qn]=xa,ma[Gn]=_a}function br(e){return e&~La?0>e?0:255:e>>Ea}function yr(e,t){return br((19077*e>>8)+(26149*t>>8)-14234)}function wr(e,t,r){return br((19077*e>>8)-(6419*t>>8)-(13320*r>>8)+8708)}function xr(e,t){return br((19077*e>>8)+(33050*t>>8)-17685)}function _r(e,t,r,n,a){n[a+0]=yr(e,r),n[a+1]=wr(e,t,r),n[a+2]=xr(e,t)}function Sr(e,t,r,n,a){n[a+0]=xr(e,t),n[a+1]=wr(e,t,r),n[a+2]=yr(e,r)}function kr(e,t,r,n,a){var i=wr(e,t,r);t=i<<3&224|xr(e,t)>>3,n[a+0]=248&yr(e,r)|i>>5,n[a+1]=t}function Cr(e,t,r,n,a){var i=240&xr(e,t)|15;n[a+0]=240&yr(e,r)|wr(e,t,r)>>4,n[a+1]=i}function Ar(e,t,r,n,a){n[a+0]=255,_r(e,t,r,n,a+1)}function Nr(e,t,r,n,a){Sr(e,t,r,n,a),n[a+3]=255}function Er(e,t,r,n,a){_r(e,t,r,n,a),n[a+3]=255}function Ge(e,t){return 0>e?0:e>t?t:e}function Lr(t,r,n){e[t]=function(e,t,a,i,o,s,l,c,u){for(var d=c+(-2&u)*n;c!=d;)r(e[t+0],a[i+0],o[s+0],l,c),r(e[t+1],a[i+0],o[s+0],l,c+n),t+=2,++i,++s,c+=2*n;1&u&&r(e[t+0],a[i+0],o[s+0],l,c)}}function Tr(e,t,r){return 0==r?0==e?0==t?6:5:0==t?4:0:r}function Mr(e,t,r,n,a){switch(e>>>30){case 3:an(t,r,n,a,0);break;case 2:on(t,r,n,a);break;case 1:ln(t,r,n,a)}}function Fr(e,t){var r,i,o=t.M,s=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,d=e.pc+584,h=e.oc,f=e.pc+600;for(r=0;16>r;++r)l[c+32*r-1]=129;for(r=0;8>r;++r)u[d+32*r-1]=129,h[f+32*r-1]=129;for(0<o?l[c-1-32]=u[d-1-32]=h[f-1-32]=129:(a(l,c-32-1,127,21),a(u,d-32-1,127,9),a(h,f-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(r=-1;16>r;++r)n(l,c+32*r-4,l,c+32*r+12,4);for(r=-1;8>r;++r)n(u,d+32*r-4,u,d+32*r+4,4),n(h,f+32*r-4,h,f+32*r+4,4)}var g=e.Gd,m=e.Hd+i,v=p.ad,b=p.Hc;if(0<o&&(n(l,c-32,g[m].y,0,16),n(u,d-32,g[m].f,0,8),n(h,f-32,g[m].ea,0,8)),p.Za){var y=l,w=c-32+16;for(0<o&&(i>=e.za-1?a(y,w,g[m].y[15],4):n(y,w,g[m+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,b<<=2)y=l,w=c+Ra[r],da[p.Ob[r]](y,w),Mr(b,v,16*+r,y,w)}else if(y=Tr(i,o,p.Ob[0]),ua[y](l,c),0!=b)for(r=0;16>r;++r,b<<=2)Mr(b,v,16*+r,l,c+Ra[r]);for(r=p.Gc,y=Tr(i,o,p.Dd),ha[y](u,d),ha[y](h,f),b=v,y=u,w=d,255&(p=0|r)&&(170&p?sn(b,256,y,w):cn(b,256,y,w)),p=h,b=f,255&(r>>=8)&&(170&r?sn(v,320,p,b):cn(v,320,p,b)),o<e.Ub-1&&(n(g[m].y,0,l,c+480,16),n(g[m].f,0,u,d+224,8),n(g[m].ea,0,h,f+224,8)),r=8*s*e.B,g=e.sa,m=e.ta+16*i+16*s*e.R,v=e.qa,p=e.ra+8*i+r,b=e.Ha,y=e.Ia+8*i+r,r=0;16>r;++r)n(g,m+r*e.R,l,c+32*r,16);for(r=0;8>r;++r)n(v,p+r*e.B,u,d+32*r,8),n(b,y+r*e.B,h,f+32*r,8)}}function Dr(e,n,a,i,o,s,l,c,u){var d=[0],h=[0],f=0,p=null!=u?u.kd:0,g=null!=u?u:new rr;if(null==e||12>a)return 7;g.data=e,g.w=n,g.ha=a,n=[n],a=[a],g.gb=[g.gb];e:{var m=n,b=a,y=g.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!r(e,m[0],"RIFF")){if(r(e,m[0]+8,"WEBP")){y=3;break e}var w=F(e,m[0]+4);if(12>w||4294967286<w){y=3;break e}if(p&&w>b[0]-8){y=7;break e}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],a=a[0];;){e:{var _=e;b=n,y=a;var S=d,k=h,C=m=[0];if((E=f=[f])[0]=0,8>y[0])y=7;else{if(!r(_,b[0],"VP8X")){if(10!=F(_,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var A=F(_,b[0]+8),N=1+M(_,b[0]+12);if(2147483648<=N*(_=1+M(_,b[0]+15))){y=3;break e}null!=C&&(C[0]=A),null!=S&&(S[0]=N),null!=k&&(k[0]=_),b[0]+=18,y[0]-=18,E[0]=1}y=0}}if(f=f[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&f)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=b),null!=c&&(c[0]=0),l=d[0],m=h[0],f&&b&&null==u){y=0;break}if(4>a){y=7;break}if(w&&f||!w&&!f&&!r(e,n[0],"ALPH")){a=[a],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];e:{A=e,y=n,w=a;var E=g.gb;S=g.na,k=g.P,C=g.Sa,N=22,t(null!=A),t(null!=w),_=y[0];var L=w[0];for(t(null!=S),t(null!=C),S[0]=null,k[0]=null,C[0]=0;;){if(y[0]=_,w[0]=L,8>L){y=7;break e}var T=F(A,_+4);if(4294967286<T){y=3;break e}var D=8+T+1&-2;if(N+=D,0<E&&N>E){y=3;break e}if(!r(A,_,"VP8 ")||!r(A,_,"VP8L")){y=0;break e}if(L[0]<D){y=7;break e}r(A,_,"ALPH")||(S[0]=A,k[0]=_+8,C[0]=T),_+=D,L-=D}}if(a=a[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}a=[a],g.Ja=[g.Ja],g.xa=[g.xa];e:if(E=e,y=n,w=a,S=g.gb[0],k=g.Ja,C=g.xa,A=y[0],_=!r(E,A,"VP8 "),N=!r(E,A,"VP8L"),t(null!=E),t(null!=w),t(null!=k),t(null!=C),8>w[0])y=7;else{if(_||N){if(E=F(E,A+4),12<=S&&E>S-12){y=3;break e}if(p&&E>w[0]-8){y=7;break e}k[0]=E,y[0]+=8,w[0]-=8,C[0]=N}else C[0]=5<=w[0]&&47==E[A+0]&&!(E[A+4]>>5),k[0]=w[0];y=0}if(a=a[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==c||b||(c[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>a){y=7;break}c=l,p=m,b=s,null==e||5>a?e=0:5<=a&&47==e[n+0]&&!(e[n+4]>>5)?(w=[0],E=[0],S=[0],v(k=new x,e,n,a),ge(k,w,E,S)?(null!=c&&(c[0]=w[0]),null!=p&&(p[0]=E[0]),null!=b&&(b[0]=S[0]),e=1):e=0):e=0}else{if(10>a){y=7;break}c=m,null==e||10>a||!Ye(e,n+3,a-3)?e=0:(p=e[n+0]|e[n+1]<<8|e[n+2]<<16,b=16383&(e[n+7]<<8|e[n+6]),e=16383&(e[n+9]<<8|e[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!e?e=0:(l&&(l[0]=b),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],m=m[0],f&&(d[0]!=l||h[0]!=m))return 3;null!=u&&(u[0]=g,u.offset=n-u.w,t(4294967286>n-u.w),t(u.offset==u.ha-a));break}return 0==y||7==y&&f&&null==u?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=l),null!=o&&(o[0]=m),0):y}function Ir(e,t,r){var n=t.width,a=t.height,i=0,o=0,s=n,l=a;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,l=e.bd,i=e.v,o=e.j,11>r||(i&=-2,o&=-2),0>i||0>o||0>=s||0>=l||i+s>n||o+l>a))return 0;if(t.v=i,t.j=o,t.va=i+s,t.o=o+l,t.U=s,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!P(s,l,r=[e.ib],i=[e.hb]))return 0;t.ib=r[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*n/4&&t.hb<3*a/4,t.Kb=0),1}function Or(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Pr(e,t,r,n){if(null==n||0>=e||0>=t)return 2;if(null!=r){if(r.Da){var a=r.cd,o=r.bd,s=-2&r.v,l=-2&r.j;if(0>s||0>l||0>=a||0>=o||s+a>e||l+o>t)return 2;e=a,t=o}if(r.da){if(!P(e,t,a=[r.ib],o=[r.hb]))return 2;e=a[0],t=o[0]}}n.width=e,n.height=t;e:{var c=n.width,u=n.height;if(e=n.S,0>=c||0>=u||!(e>=On&&13>e))e=2;else{if(0>=n.Rd&&null==n.sd){s=o=a=t=0;var d=(l=c*za[e])*u;if(11>e||(o=(u+1)/2*(t=(c+1)/2),12==e&&(s=(a=c)*u)),null==(u=i(d+2*o+s))){e=1;break e}n.sd=u,11>e?((c=n.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=d):((c=n.f.kb).y=u,c.O=0,c.fa=l,c.Fd=d,c.f=u,c.N=0+d,c.Ab=t,c.Cd=o,c.ea=u,c.W=0+d+o,c.Db=t,c.Ed=o,12==e&&(c.F=u,c.J=0+d+2*o),c.Tc=s,c.lb=a)}if(t=1,a=n.S,o=n.width,s=n.height,a>=On&&13>a)if(11>a)e=n.f.RGBA,t&=(l=Math.abs(e.A))*(s-1)+o<=e.size,t&=l>=o*za[a],t&=null!=e.eb;else{e=n.f.kb,l=(o+1)/2,d=(s+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var h=Math.abs(e.Db),f=Math.abs(e.lb),p=f*(s-1)+o;t&=c*(s-1)+o<=e.Fd,t&=u*(d-1)+l<=e.Cd,t=(t&=h*(d-1)+l<=e.Ed)&c>=o&u>=l&h>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==a&&(t&=f>=o,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=r&&r.fd&&(e=Or(n)),e}var Rr=64,jr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Br=24,zr=32,Vr=8,Ur=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,r){return t[r+0]},e.Predictor3=function(e,t,r){return t[r+1]},e.Predictor4=function(e,t,r){return t[r-1]},e.Predictor5=function(e,t,r){return V(V(e,t[r+1]),t[r+0])},e.Predictor6=function(e,t,r){return V(e,t[r-1])},e.Predictor7=function(e,t,r){return V(e,t[r+0])},e.Predictor8=function(e,t,r){return V(t[r-1],t[r+0])},e.Predictor9=function(e,t,r){return V(t[r+0],t[r+1])},e.Predictor10=function(e,t,r){return V(V(e,t[r-1]),V(t[r+0],t[r+1]))},e.Predictor11=function(e,t,r){var n=t[r+0];return 0>=q(n>>24&255,e>>24&255,(t=t[r-1])>>24&255)+q(n>>16&255,e>>16&255,t>>16&255)+q(n>>8&255,e>>8&255,t>>8&255)+q(255&n,255&e,255&t)?n:e},e.Predictor12=function(e,t,r){var n=t[r+0];return(U((e>>24&255)+(n>>24&255)-((t=t[r-1])>>24&255))<<24|U((e>>16&255)+(n>>16&255)-(t>>16&255))<<16|U((e>>8&255)+(n>>8&255)-(t>>8&255))<<8|U((255&e)+(255&n)-(255&t)))>>>0},e.Predictor13=function(e,t,r){var n=t[r-1];return(H((e=V(e,t[r+0]))>>24&255,n>>24&255)<<24|H(e>>16&255,n>>16&255)<<16|H(e>>8&255,n>>8&255)<<8|H(255&e,255&n))>>>0};var Hr=e.PredictorAdd0;e.PredictorAdd1=G,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var qr=e.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var Gr,Wr=e.ColorIndexInverseTransform,$r=e.MapARGB,Xr=e.VP8LColorIndexInverseTransformAlpha,Yr=e.MapAlpha,Kr=e.VP8LPredictorsAdd=[];Kr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Jr,Zr,Qr,en,tn,rn,nn,an,on,sn,ln,cn,un,dn,hn,fn,pn,gn,mn,vn,bn,yn,wn,xn,_n,Sn,kn,Cn,An=i(511),Nn=i(2041),En=i(225),Ln=i(767),Tn=0,Mn=Nn,Fn=En,Dn=Ln,In=An,On=0,Pn=1,Rn=2,jn=3,Bn=4,zn=5,Vn=6,Un=7,Hn=8,qn=9,Gn=10,Wn=[2,3,7],$n=[3,3,11],Xn=[280,256,256,256,40],Yn=[0,1,1,1,0],Kn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Qn=8,ea=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ta=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ra=null,na=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],aa=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ia=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],oa=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],sa=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],la=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ca=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ua=[],da=[],ha=[],fa=1,pa=2,ga=[],ma=[];mr("UpsampleRgbLinePair",_r,3),mr("UpsampleBgrLinePair",Sr,3),mr("UpsampleRgbaLinePair",Er,4),mr("UpsampleBgraLinePair",Nr,4),mr("UpsampleArgbLinePair",Ar,4),mr("UpsampleRgba4444LinePair",Cr,2),mr("UpsampleRgb565LinePair",kr,2);var va=e.UpsampleRgbLinePair,ba=e.UpsampleBgrLinePair,ya=e.UpsampleRgbaLinePair,wa=e.UpsampleBgraLinePair,xa=e.UpsampleArgbLinePair,_a=e.UpsampleRgba4444LinePair,Sa=e.UpsampleRgb565LinePair,ka=16,Ca=1<<ka-1,Aa=-227,Na=482,Ea=6,La=(256<<Ea)-1,Ta=0,Ma=i(256),Fa=i(256),Da=i(256),Ia=i(256),Oa=i(Na-Aa),Pa=i(Na-Aa);Lr("YuvToRgbRow",_r,3),Lr("YuvToBgrRow",Sr,3),Lr("YuvToRgbaRow",Er,4),Lr("YuvToBgraRow",Nr,4),Lr("YuvToArgbRow",Ar,4),Lr("YuvToRgba4444Row",Cr,2),Lr("YuvToRgb565Row",kr,2);var Ra=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ja=[0,2,8],Ba=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,r,s,l,c){var u=Pn,d=new tr,h=new oe;d.ba=h,h.S=u,h.width=[h.width],h.height=[h.height];var f=h.width,p=h.height,g=new se;if(null==g||null==e)var m=2;else t(null!=g),m=Dr(e,r,s,g.width,g.height,g.Pd,g.Qd,g.format,null);if(0!=m?f=0:(null!=f&&(f[0]=g.width[0]),null!=p&&(p[0]=g.height[0]),f=1),f){h.width=h.width[0],h.height=h.height[0],null!=l&&(l[0]=h.width),null!=c&&(c[0]=h.height);e:{if(l=new We,(c=new rr).data=e,c.w=r,c.ha=s,c.kd=1,r=[0],t(null!=c),(0==(e=Dr(c.data,c.w,c.ha,null,null,null,r,null,c))||7==e)&&r[0]&&(e=4),0==(r=e)){if(t(null!=d),l.data=c.data,l.w=c.w+c.offset,l.ha=c.ha-c.offset,l.put=fe,l.ac=he,l.bc=pe,l.ma=d,c.xa){if(null==(e=Ee())){d=1;break e}if(function(e,r){var n=[0],a=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==r)return e.a=2,0;if(e.l=r,e.a=0,v(e.m,r.data,r.w,r.ha),!ge(e.m,n,a,i)){e.a=3;break t}if(e.xb=pa,r.width=n[0],r.height=a[0],!Le(n[0],a[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,l)){if(l=0==(r=Pr(l.width,l.height,d.Oa,d.ba))){t:{l=e;r:for(;;){if(null==l){l=0;break t}if(t(null!=l.s.yc),t(null!=l.s.Ya),t(0<l.s.Wb),t(null!=(s=l.l)),t(null!=(c=s.ma)),0!=l.xb){if(l.ca=c.ba,l.tb=c.tb,t(null!=l.ca),!Ir(c.Oa,s,jn)){l.a=2;break r}if(!Te(l,s.width))break r;if(s.da)break r;if((s.da||ne(l.ca.S))&&gr(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&gr()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!D(l.s.vb,l.s.Wa.Xa)){l.a=1;break r}l.xb=0}if(!Ae(l,l.V,l.Ba,l.c,l.i,s.o,_e))break r;c.Dc=l.Ma,l=1;break t}t(0!=l.a),l=0}l=!l}l&&(r=e.a)}else r=e.a}else{if(null==(e=new $e)){d=1;break e}if(e.Fa=c.na,e.P=c.P,e.qc=c.Sa,Ke(e,l)){if(0==(r=Pr(l.width,l.height,d.Oa,d.ba))){if(e.Aa=0,s=d.Oa,t(null!=(c=e)),null!=s){if(0<(f=0>(f=s.Md)?0:100<f?255:255*f/100)){for(p=g=0;4>p;++p)12>(m=c.pb[p]).lc&&(m.ia=f*Ba[0>m.lc?0:m.lc]>>3),g|=m.ia;g&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=s.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(e,r){if(null==e)return 0;if(null==r)return Xe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ke(e,r))return 0;if(t(e.cb),null==r.ac||r.ac(r)){r.ob&&(e.L=0);var s=ja[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=r.v-s>>4,e.zb=r.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=r.o+15+s>>4,e.Hb=r.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(s=0;4>s;++s){var c;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var d=e.gd[s][c],h=u;if(l.Pc&&(h+=l.vd[0],c&&(h+=l.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<l.wb&&(f=4<l.wb?f>>2:f>>1)>9-l.wb&&(f=9-l.wb),1>f&&(f=1),d.dd=f,d.tc=2*h+f,d.ld=40<=h?2:15<=h?1:0}else d.tc=0;d.La=c}}}s=0}else Xe(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=1);t:{s=e.Ic,l=4*(f=e.za);var p=32*f,g=f+1,m=0<e.L?f*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*f;if((d=l+832+(c=3*(16*s+ja[e.L])/2*p)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)s=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=i(d),e.Fc=0,null==e.Ec){s=Xe(e,1,"no memory during frame initialization.");break t}e.Vb=d}d=e.Ec,h=e.Fc,e.Ac=d,e.Bc=h,h+=l,e.Gd=o(p,He),e.Hd=0,e.rb=o(g+1,Be),e.sb=1,e.wa=m?o(m,je):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=d,e.pc=h,h+=832,e.ya=o(v,Ve),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(p=ja[e.L])*e.R,p=p/2*e.B,e.sa=d,e.ta=h+f,e.qa=e.sa,e.ra=e.ta+16*s*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+p,e.$c=0,h+=c,e.mb=u?d:null,e.nb=u?h:null,t(h+u<=e.Fc+e.Vb),Ze(e),a(e.Ac,e.Bc,0,l),s=1}}if(s){if(r.ka=0,r.y=e.sa,r.O=e.ta,r.f=e.qa,r.N=e.ra,r.ea=e.Ha,r.Vd=e.Ia,r.fa=e.R,r.Rc=e.B,r.F=null,r.J=0,!Tn){for(s=-255;255>=s;++s)An[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Nn[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)En[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Ln[255+s]=0>s?0:255<s?255:s;Tn=1}nn=lt,an=at,sn=it,ln=ot,cn=st,on=nt,un=$t,dn=Xt,hn=Jt,fn=Zt,pn=Yt,gn=Kt,mn=Qt,vn=er,bn=Vt,yn=Ut,wn=Ht,xn=qt,da[0]=St,da[1]=ut,da[2]=xt,da[3]=_t,da[4]=kt,da[5]=At,da[6]=Ct,da[7]=Nt,da[8]=Lt,da[9]=Et,ua[0]=mt,ua[1]=ht,ua[2]=ft,ua[3]=pt,ua[4]=vt,ua[5]=bt,ua[6]=yt,ha[0]=Dt,ha[1]=dt,ha[2]=Tt,ha[3]=Mt,ha[4]=Ot,ha[5]=It,ha[6]=Pt,s=1}else s=0}s&&(s=function(e,r){for(e.M=0;e.M<e.Va;++e.M){var o,s=e.Jc[e.M&e.Xb],l=e.m,c=e;for(o=0;o<c.za;++o){var u=l,d=c,h=d.Ac,f=d.Bc+4*o,p=d.zc,g=d.ya[d.aa+o];if(d.Qa.Bb?g.$b=E(u,d.Pa.jb[0])?2+E(u,d.Pa.jb[2]):E(u,d.Pa.jb[1]):g.$b=0,d.kc&&(g.Ad=E(u,d.Bd)),g.Za=!E(u,145)+0,g.Za){var m=g.Ob,v=0;for(d=0;4>d;++d){var b,y=p[0+d];for(b=0;4>b;++b){y=sa[h[f+b]][y];for(var w=ia[E(u,y[0])];0<w;)w=ia[2*w+E(u,y[w])];y=-w,h[f+b]=y}n(m,v,h,f,4),v+=4,p[0+d]=y}}else y=E(u,156)?E(u,128)?1:3:E(u,163)?2:0,g.Ob[0]=y,a(h,f,y,4),a(p,0,y,4);g.Dd=E(u,142)?E(u,114)?E(u,183)?1:3:2:0}if(c.m.Ka)return Xe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=s,u=(l=e).rb[l.sb-1],h=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],f=l.kc?o.Ad:0)u.la=h.la=0,o.Za||(u.Na=h.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,_;if(u=h,h=c,f=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],d=p.ad,m=0,v=l.rb[l.sb-1],y=b=0,a(d,m,0,384),p.Za)var S=0,k=f[3];else{w=i(16);var C=u.Na+v.Na;if(C=ra(h,f[1],C,g.Eb,0,w,0),u.Na=v.Na=(0<C)+0,1<C)nn(w,0,d,m);else{var A=w[0]+3>>3;for(w=0;256>w;w+=16)d[m+w]=A}S=1,k=f[0]}var N=15&u.la,L=15&v.la;for(w=0;4>w;++w){var T=1&L;for(A=_=0;4>A;++A)N=N>>1|(T=(C=ra(h,k,C=T+(1&N),g.Sc,S,d,m))>S)<<7,_=_<<2|(3<C?3:1<C?2:0!=d[m+0]),m+=16;N>>=4,L=L>>1|T<<7,b=(b<<8|_)>>>0}for(k=N,S=L>>4,x=0;4>x;x+=2){for(_=0,N=u.la>>4+x,L=v.la>>4+x,w=0;2>w;++w){for(T=1&L,A=0;2>A;++A)C=T+(1&N),N=N>>1|(T=0<(C=ra(h,f[2],C,g.Qc,0,d,m)))<<3,_=_<<2|(3<C?3:1<C?2:0!=d[m+0]),m+=16;N>>=2,L=L>>1|T<<5}y|=_<<4*x,k|=N<<4<<x,S|=(240&L)<<x}u.la=k,v.la=S,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,f=!(b|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!f),c.Ka)return Xe(e,7,"Premature end-of-file encountered.")}if(Ze(e),l=r,c=1,o=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=u,Fr(s,o),c=1,o=(_=s.D).Nb,u=(y=ja[s.L])*s.R,h=y/2*s.B,w=16*o*s.R,A=8*o*s.B,f=s.sa,p=s.ta-u+w,g=s.qa,d=s.ra-h+A,m=s.Ha,v=s.Ia-h+A,L=0==(N=_.M),b=N>=s.Va-1,2==s.Aa&&Fr(s,_),_.uc)for(T=(C=s).D.M,t(C.D.uc),_=C.yb;_<C.Hb;++_){S=_,k=T;var M=(F=(V=C).D).Nb;x=V.R;var F=F.wa[F.Y+S],D=V.sa,I=V.ta+16*M*x+16*S,O=F.dd,P=F.tc;if(0!=P)if(t(3<=P),1==V.L)0<S&&yn(D,I,x,P+4),F.La&&xn(D,I,x,P),0<k&&bn(D,I,x,P+4),F.La&&wn(D,I,x,P);else{var R=V.B,j=V.qa,B=V.ra+8*M*R+8*S,z=V.Ha,V=V.Ia+8*M*R+8*S;M=F.ld,0<S&&(dn(D,I,x,P+4,O,M),fn(j,B,z,V,R,P+4,O,M)),F.La&&(gn(D,I,x,P,O,M),vn(j,B,z,V,R,P,O,M)),0<k&&(un(D,I,x,P+4,O,M),hn(j,B,z,V,R,P+4,O,M)),F.La&&(pn(D,I,x,P,O,M),mn(j,B,z,V,R,P,O,M))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(_=16*N,N=16*(N+1),L?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+A,l.ea=s.Ha,l.W=s.Ia+A):(_-=y,l.y=f,l.O=p,l.f=g,l.N=d,l.ea=m,l.W=v),b||(N-=y),N>l.o&&(N=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&_<N&&(l.J=ur(s,l,_,N-_),l.F=s.mb,null==l.F&&0==l.F.length)){c=Xe(s,3,"Could not decode alpha data.");break t}_<l.j&&(y=l.j-_,_=l.j,t(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),_<N&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=_-l.j,l.U=l.va-l.v,l.T=N-_,c=l.put(l))}o+1!=s.Ic||b||(n(s.sa,s.ta-u,f,p+16*s.R,u),n(s.qa,s.ra-h,g,d+8*s.B,h),n(s.Ha,s.Ia-h,m,v+8*s.B,h))}if(!c)return Xe(e,6,"Output aborted.")}return 1}(e,r)),null!=r.bc&&r.bc(r),s&=1}return s?(e.cb=0,s):0})(e,l)||(r=e.a)}}else r=e.a}0==r&&null!=d.Oa&&d.Oa.fd&&(r=Or(d.ba))}d=r}u=0!=d?null:11>u?h.f.RGBA.eb:h.f.kb.y}else u=null;return u};var za=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(e[t++]);return r}function u(e,t){return e[t+0]|e[t+1]<<8}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function h(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var f=[0],p=[0],g=[],m=new l,v=e,b=function(e,t){var r={},n=0,a=!1,i=0,o=0;if(r.frames=[],!
/** @license
         * Copyright (c) 2017 Dominik Homberger
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        https://webpjs.appspot.com
        WebPRiffParser dominikhlbg@gmail.com
        */
function(e,t){for(var r=0;r<4;r++)if(e[t+r]!="RIFF".charCodeAt(r))return!0;return!1}(e,t)){for(h(e,t+=4),t+=8;t<e.length;){var s=c(e,t),l=h(e,t+=4);t+=4;var f=l+(1&l);switch(s){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(m=r.frames[n]).src_off=a?o:t-8,m.src_size=i+l+8,n++,a&&(a=!1,i=0,o=0);break;case"VP8X":(m=r.header={}).feature_flags=e[t];var p=t+4;m.canvas_width=1+d(e,p),p+=3,m.canvas_height=1+d(e,p),p+=3;break;case"ALPH":a=!0,i=f+8,o=t-8;break;case"ANIM":(m=r.header).bgcolor=h(e,t),p=t+4,m.loop_count=u(e,p),p+=2;break;case"ANMF":var g,m;(m=r.frames[n]={}).offset_x=2*d(e,t),t+=3,m.offset_y=2*d(e,t),t+=3,m.width=1+d(e,t),t+=3,m.height=1+d(e,t),t+=3,m.duration=d(e,t),t+=3,g=e[t++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=s&&(t+=f)}return r}}(v,0);b.response=v,b.rgbaoutput=!0,b.dataurl=!1;var y=b.header?b.header:null,w=b.frames?b.frames:null;if(y){y.loop_counter=y.loop_count,f=[y.canvas_height],p=[y.canvas_width];for(var x=0;x<w.length&&0!=w[x].blend;x++);}var _=w[0],S=m.WebPDecodeRGBA(v,_.src_off,_.src_size,p,f);_.rgba=S,_.imgwidth=p[0],_.imgheight=f[0];for(var k=0;k<p[0]*f[0]*4;k++)g[k]=S[k];return this.width=p,this.height=f,this.data=g,this}!function(e){var t,r,a,i,o,s,l,u,d,h=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,d=new h}]);var f=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var a=0;Object.defineProperty(this,"posX",{get:function(){return a},set:function(e){isNaN(e)||(a=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),d.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(e){e instanceof h&&(d=e)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(e){d.path=e}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=g(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=g(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var u=null,f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(e){u=null,f=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var r=t[1];t[2];var n=t[3],a=t[4];t[5];var i=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(a)[2];a="px"===o?Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(a)*this.pdf.getFontSize()):Math.floor(parseFloat(a)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(a);var s=function(e){var t,r,n=[],a=e.trim();if(""===a)return Ze;if(a in Be)return[Be[a]];for(;""!==a;){switch(r=null,t=(a=Ve(a)).charAt(0)){case'"':case"'":r=Ue(a.substring(1),t);break;default:r=He(a)}if(null===r)return Ze;if(n.push(r[0]),""!==(a=Ve(r[1]))&&","!==a.charAt(0))return Ze;a=a.replace(/^,/,"")}return n}(i);if(this.fontFaces){var l=function(e,t){if(null===u){var r=function(e){var t=[];return Object.keys(e).forEach(function(r){e[r].forEach(function(e){var n=null;switch(e){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:e},t.push(n))})}),t}(e.getFontList());u=function(e){for(var t={},r=0;r<e.length;++r){var n=Pe(e[r]),a=n.family,i=n.stretch,o=n.style,s=n.weight;t[a]=t[a]||{},t[a][i]=t[a][i]||{},t[a][i][o]=t[a][i][o]||{},t[a][i][o][s]=n}return t}(r.concat(t))}return u}(this.pdf,this.fontFaces),c=s.map(function(e){return{family:e,stretch:"normal",weight:n,style:r}}),d=function(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",a=Object.assign({},je,r.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(a[(i=Pe(t[s])).family]&&(i.family=a[i.family]),e.hasOwnProperty(i.family)){o=e[i.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+ze(i)+"' and default family '"+n+"'.");if(o=function(e,t){if(t[e])return t[e];var r=De[e],n=r<=De.normal?-1:1,a=Re(t,Fe,r,n);if(!a)throw new Error("Could not find a matching font-stretch value for "+e);return a}(i.stretch,o),o=function(e,t){if(t[e])return t[e];for(var r=Me[e],n=0;n<r.length;++n)if(t[r[n]])return t[r[n]];throw new Error("Could not find a matching font-style for "+e)}(i.style,o),!(o=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var r=Oe[e],n=Re(t,Ie,r,e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+ze(i)+"'.");return o}(l,c);this.pdf.setFont(d.ref.name,d.ref.style)}else{var h="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(h="bold"),"italic"===r&&(h+="italic"),0===h.length&&(h="normal");for(var f="",p={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},g=0;g<s.length;g++){if(void 0!==this.pdf.internal.getFont(s[g],h,{noFallback:!0,disableWarning:!0})){f=s[g];break}if("bolditalic"===h&&void 0!==this.pdf.internal.getFont(s[g],"bold",{noFallback:!0,disableWarning:!0}))f=s[g],h="bold";else if(void 0!==this.pdf.internal.getFont(s[g],"normal",{noFallback:!0,disableWarning:!0})){f=s[g],h="normal";break}}if(""===f)for(var m=0;m<s.length;m++)if(p[s[m]]){f=p[s[m]];break}f=""===f?"Times":f,this.pdf.setFont(f,h)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,z.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,z.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};f.prototype.setLineDash=function(e){this.lineDash=e},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){S.call(this,"fill",!1)},f.prototype.stroke=function(){S.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(e,t)},f.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,n["default"])(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},f.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},f.prototype.quadraticCurveTo=function(e,t,r,n){if(isNaN(r)||isNaN(n)||isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new s(r,n)),i=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},f.prototype.bezierCurveTo=function(e,t,r,n,a,i){if(isNaN(a)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(a,i)),l=this.ctx.transform.applyToPoint(new s(e,t)),u=this.ctx.transform.applyToPoint(new s(r,n));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},f.prototype.arc=function(e,t,r,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a))throw c.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(e,t));e=o.x,t=o.y;var l=this.ctx.transform.applyToPoint(new s(0,r)),u=this.ctx.transform.applyToPoint(new s(0,0));r=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(a-n)>=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:a,counterclockwise:i})},f.prototype.arcTo=function(e,t,r,n,a){throw new Error("arcTo not implemented.")},f.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},f.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},f.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},f.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,n))},f.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},f.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(e){var t,r,n,a;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,r=0,n=0,a=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),a=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),r=parseInt(i[2]),n=parseInt(i[3]),a=parseFloat(i[4]);else{if(a=1,"string"==typeof e&&"#"!==e.charAt(0)){var o=new p(e);e=o.ok?o.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,r=e.substring(2,3),r+=r,n=e.substring(3,4),n+=n):(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7)),t=parseInt(t,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:t,g:r,b:n,a:a,style:e}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw c.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!m.call(this)){var a=R(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;M.call(this,{text:e,x:t,y:r,scale:i,angle:a,align:this.textAlign,maxWidth:n})}},f.prototype.strokeText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw c.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var a=R(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;M.call(this,{text:e,x:t,y:r,scale:i,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:n})}},f.prototype.measureText=function(e){if("string"!=typeof e)throw c.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,r=this.pdf.internal.scaleFactor,n=t.internal.getFontSize(),a=t.getStringUnitWidth(e)*n/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:a*=Math.round(96*r/72*1e4)/1e4})},f.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},f.prototype.rotate=function(e){if(isNaN(e))throw c.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},f.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(r)},f.prototype.transform=function(e,t,r,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(i))throw c.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new u(e,t,r,n,a,i);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(e,t,r,n,a,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?1:n,a=isNaN(a)?0:a,i=isNaN(i)?0:i,this.ctx.transform=new u(e,t,r,n,a,i)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(e,t,r,n,a,i,o,s,c){var d=this.pdf.getImageProperties(e),h=1,f=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=c/a,h=d.width/n*s/n,f=d.height/a*c/a),void 0===i&&(i=t,o=r,t=0,r=0),void 0!==n&&void 0===s&&(s=n,c=a),void 0===n&&void 0===s&&(s=d.width,c=d.height);for(var m,v=this.ctx.transform.decompose(),w=R(v.rotate.shx),S=new u,C=(S=(S=(S=S.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new l(i-t*p,o-r*g,n*h,a*f)),A=y.call(this,C),N=[],E=0;E<A.length;E+=1)-1===N.indexOf(A[E])&&N.push(A[E]);if(_(N),this.autoPaging)for(var L=N[0],T=N[N.length-1],M=L;M<T+1;M++){this.pdf.setPage(M);var F=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=1===M?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],O=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===M?0:I+(M-2)*O;if(0!==this.ctx.clip_path.length){var j=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(m,this.posX+this.margin[3],-P+D+this.ctx.prevPageLastElemOffset),k.call(this,"fill",!0),this.path=j}var B=JSON.parse(JSON.stringify(C));B=x([B],this.posX+this.margin[3],-P+D+this.ctx.prevPageLastElemOffset)[0];var z=(M>L||M<T)&&b.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],F,O,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",B.x,B.y,B.w,B.h,null,null,w),z&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",C.x,C.y,C.w,C.h,null,null,w)};var y=function(e,t,r){var n=[];t=t||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var a=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":n.push(Math.floor((e.y+a)/r)+1);break;case"arc":n.push(Math.floor((e.y+a-e.radius)/r)+1),n.push(Math.floor((e.y+a+e.radius)/r)+1);break;case"qct":var i=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);n.push(Math.floor((i.y+a)/r)+1),n.push(Math.floor((i.y+i.h+a)/r)+1);break;case"bct":var o=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);n.push(Math.floor((o.y+a)/r)+1),n.push(Math.floor((o.y+o.h+a)/r)+1);break;case"rect":n.push(Math.floor((e.y+a)/r)+1),n.push(Math.floor((e.y+e.h+a)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)w.call(this);return n},w=function(){var e=this.fillStyle,t=this.strokeStyle,r=this.font,n=this.lineCap,a=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=r,this.lineCap=n,this.lineWidth=a,this.lineJoin=i},x=function(e,t,r){for(var n=0;n<e.length;n++)switch(e[n].type){case"bct":e[n].x2+=t,e[n].y2+=r;case"qct":e[n].x1+=t,e[n].y1+=r;default:e[n].x+=t,e[n].y+=r}return e},_=function(e){return e.sort(function(e,t){return e-t})},S=function(e,t){for(var r,n,a=this.fillStyle,i=this.strokeStyle,o=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<d.length;f++)if(void 0!==d[f].x)for(var p=y.call(this,d[f]),g=0;g<p.length;g+=1)-1===h.indexOf(p[g])&&h.push(p[g]);for(var m=0;m<h.length;m++)for(;this.pdf.internal.getNumberOfPages()<h[m];)w.call(this);if(_(h),this.autoPaging)for(var v=h[0],S=h[h.length-1],C=v;C<S+1;C++){this.pdf.setPage(C),this.fillStyle=a,this.strokeStyle=i,this.lineCap=o,this.lineWidth=l,this.lineJoin=c;var A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===C?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===C?0:E+(C-2)*L;if(0!==this.ctx.clip_path.length){var M=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(r,this.posX+this.margin[3],-T+N+this.ctx.prevPageLastElemOffset),k.call(this,e,!0),this.path=M}if(n=JSON.parse(JSON.stringify(u)),this.path=x(n,this.posX+this.margin[3],-T+N+this.ctx.prevPageLastElemOffset),!1===t||0===C){var F=(C>v||C<S)&&b.call(this);F&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],A,L,null).clip().discardPath()),k.call(this,e,t),F&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,k.call(this,e,t),this.lineWidth=s;this.path=u},k=function(e,t){if(("stroke"!==e||t||!v.call(this))&&("stroke"===e||t||!m.call(this))){for(var r,n,a=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":a.push({begin:!0});break;case"close":a.push({close:!0});break;case"mt":a.push({start:s,deltas:[],abs:[]});break;case"lt":var l=a.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(r=[s.x-i[o-1].x,s.y-i[o-1].y],l>0))for(;l>=0;l--)if(!0!==a[l-1].close&&!0!==a[l-1].begin){a[l-1].deltas.push(r),a[l-1].abs.push(s);break}break;case"bct":r=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],a[a.length-1].deltas.push(r);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),d=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),f=s.x,p=s.y;r=[c-i[o-1].x,u-i[o-1].y,d-i[o-1].x,h-i[o-1].y,f-i[o-1].x,p-i[o-1].y],a[a.length-1].deltas.push(r);break;case"arc":a.push({deltas:[],abs:[],arc:!0}),Array.isArray(a[a.length-1].abs)&&a[a.length-1].abs.push(s)}}n=t?null:"stroke"===e?"stroke":"fill";for(var g=!1,b=0;b<a.length;b++)if(a[b].arc)for(var y=a[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?N.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!g):F.call(this,x.x,x.y),g=!0}else if(!0===a[b].close)this.pdf.internal.out("h"),g=!1;else if(!0!==a[b].begin){var _=a[b].start.x,S=a[b].start.y;D.call(this,a[b].deltas,_,S),g=!0}n&&E.call(this,n),t&&L.call(this)}},C=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-r;case"top":return e+t-r;case"hanging":return e+t-2*r;case"middle":return e+t/2-r;default:return e}},A=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(e,t,r,n,a,i,o,s,l){for(var c=O.call(this,r,n,a,i),u=0;u<c.length;u++){var d=c[u];0===u&&(l?T.call(this,d.x1+e,d.y1+t):F.call(this,d.x1+e,d.y1+t)),I.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?L.call(this):E.call(this,o)},E=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},L=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(e,t){this.pdf.internal.out(r(e)+" "+a(t)+" m")},M=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var r=this.pdf.getTextDimensions(e.text),n=C.call(this,e.y),a=A.call(this,n)-r.h,i=this.ctx.transform.applyToPoint(new s(e.x,n)),o=this.ctx.transform.decompose(),c=new u;c=(c=(c=c.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var d,h,f,p=this.ctx.transform.applyToRectangle(new l(e.x,n,r.w,r.h)),g=c.applyToRectangle(new l(e.x,a,r.w,r.h)),m=y.call(this,g),v=[],w=0;w<m.length;w+=1)-1===v.indexOf(m[w])&&v.push(m[w]);if(_(v),this.autoPaging)for(var S=v[0],N=v[v.length-1],E=S;E<N+1;E++){this.pdf.setPage(E);var L=1===E?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[2],F=M-this.margin[0],D=this.pdf.internal.pageSize.width-this.margin[1],I=D-this.margin[3],O=1===E?0:T+(E-2)*F;if(0!==this.ctx.clip_path.length){var P=this.path;d=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(d,this.posX+this.margin[3],-1*O+L),k.call(this,"fill",!0),this.path=P}var R=x([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale);var j="text"!==this.autoPaging;if(j||R.y+R.h<=M){if(j||R.y>=L&&R.x<=D){var B=j?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||D-R.x)[0],z=x([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0],V=j&&(E>S||E<N)&&b.call(this);V&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,F,null).clip().discardPath()),this.pdf.text(B,z.x,z.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),V&&this.pdf.restoreGraphicsState()}}else R.y<M&&(this.ctx.prevPageLastElemOffset+=M-R.y);e.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)}else e.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*e.scale),f=this.lineWidth,this.lineWidth=f*e.scale),this.pdf.text(e.text,i.x+this.posX,i.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)},F=function(e,t,n,i){n=n||0,i=i||0,this.pdf.internal.out(r(e+n)+" "+a(t+i)+" l")},D=function(e,t,r){return this.pdf.lines(e,t,r,null,null)},I=function(e,r,n,a,s,l,c,u){this.pdf.internal.out([t(i(n+e)),t(o(a+r)),t(i(s+e)),t(o(l+r)),t(i(c+e)),t(o(u+r)),"c"].join(" "))},O=function(e,t,r,n){for(var a=2*Math.PI,i=Math.PI/2;t>r;)t-=a;var o=Math.abs(r-t);o<a&&n&&(o=a-o);for(var s=[],l=n?-1:1,c=t;o>1e-5;){var u=c+l*Math.min(o,i);s.push(P.call(this,e,c,u)),o-=Math.abs(u-c),c=u}return s},P=function(e,t,r){var n=(r-t)/2,a=e*Math.cos(n),i=e*Math.sin(n),o=a,s=-i,l=o*o+s*s,c=l+o*a+s*i,u=4/3*(Math.sqrt(2*l*c)-c)/(o*i-s*a),d=o-u*s,h=s+u*o,f=d,p=-h,g=n+t,m=Math.cos(g),v=Math.sin(g);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*m-h*v,y2:d*v+h*m,x3:f*m-p*v,y3:f*v+p*m,x4:e*Math.cos(r),y4:e*Math.sin(r)}},R=function(e){return 180*e/Math.PI},j=function(e,t,r,n,a,i){var o=e+.5*(r-e),s=t+.5*(n-t),c=a+.5*(r-a),u=i+.5*(n-i),d=Math.min(e,a,o,c),h=Math.max(e,a,o,c),f=Math.min(t,i,s,u),p=Math.max(t,i,s,u);return new l(d,f,h-d,p-f)},B=function(e,t,r,n,a,i,o,s){var c,u,d,h,f,p,g,m,v,b,y,w,x,_,S=r-e,k=n-t,C=a-r,A=i-n,N=o-a,E=s-i;for(u=0;u<41;u++)v=(g=(d=e+(c=u/40)*S)+c*((f=r+c*C)-d))+c*(f+c*(a+c*N-f)-g),b=(m=(h=t+c*k)+c*((p=n+c*A)-h))+c*(p+c*(i+c*E-p)-m),0==u?(y=v,w=b,x=v,_=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),_=Math.max(_,b));return new l(Math.round(y),Math.round(w),Math.round(x-y),Math.round(_-w))},z=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,r=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(z.API),
/**
 * @license
 * jsPDF filters PlugIn
 * Copyright (c) 2014 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){var t,r,n,a,i,o,s,l,c,u;for(/[^\x00-\xFF]/.test(e),r=[],n=0,a=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;a>n;n+=4)0!==(i=(e.charCodeAt(n)<<24)+(e.charCodeAt(n+1)<<16)+(e.charCodeAt(n+2)<<8)+e.charCodeAt(n+3))?(o=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(l=i%85))/85)-(s=i%85))/85)%85,r.push(o+33,s+33,l+33,c+33,u+33)):r.push(122);return function(e,t){for(var r=t;r>0;r--)e.pop()}(r,t.length),String.fromCharCode.apply(String,r)+"~>"},r=function(e){var t,r,n,a,i,o=String,s="length",l=255,c="charCodeAt",u="slice",d="replace";for(e[u](-2),e=e[u](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),n=[],a=0,i=(e+=t="uuuuu"[u](e[s]%5||5))[s];i>a;a+=5)r=52200625*(e[c](a)-33)+614125*(e[c](a+1)-33)+7225*(e[c](a+2)-33)+85*(e[c](a+3)-33)+(e[c](a+4)-33),n.push(l&r>>24,l&r>>16,l&r>>8,l&r);return function(e,t){for(var r=t;r>0;r--)e.pop()}(n,t[s]),o.fromCharCode.apply(o,n)},n=function(e){return e.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n<e.length;n+=2)r+=String.fromCharCode("0x"+(e[n]+e[n+1]));return r},o=function(e){for(var t=new Uint8Array(e.length),r=e.length;r--;)t[r]=e.charCodeAt(r);return(t=(0,a.zlibSync)(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,a){var s=0,l=e||"",c=[];for("string"==typeof(a=a||[])&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=i(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=n(l),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=o(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(z.API),
/**
 * @license
 * jsPDF fileloading PlugIn
 * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.loadFile=function(e,t,r){return function(e,t,r){t=!1!==t,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(e,t,r){var n=new XMLHttpRequest,a=0,i=function(e){var t=e.length,r=[],n=String.fromCharCode;for(a=0;a<t;a+=1)r.push(n(255&e.charCodeAt(a)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(n.onload=function(){200===n.status?r(i(this.responseText)):r(void 0)}),n.send(null),t&&200===n.status)return i(n.responseText)}(e,t,r)}catch(s){}return n}(e,t,r)},e.loadImageFile=e.loadFile}(z.API),function(e){function t(){return(s.html2canvas?Promise.resolve(s.html2canvas):r.e(3).then(r.t.bind(r,1693,23)))["catch"](function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e["default"]?e["default"]:e})}function a(){return(s.DOMPurify?Promise.resolve(s.DOMPurify):r.e(3).then(r.bind(r,1694)))["catch"](function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e["default"]?e["default"]:e})}var i=function(e){var t=(0,n["default"])(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},o=function(e,t){var r=document.createElement(e);for(var n in t.className&&(r.className=t.className),t.innerHTML&&t.dompurify&&(r.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)r.style[n]=t.style[n];return r},l=function u(e,t){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==t&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(u(n,t));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r},c=function d(e){var t=Object.assign(d.convert(Promise.resolve()),JSON.parse(JSON.stringify(d.template))),r=d.convert(Promise.resolve(),t);return(r=r.setProgress(1,d,1,[d])).set(e)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.then(a).then(function(t){return this.set({src:o("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},c.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=l(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},c.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then(function(e){var t=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,a=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete a.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=r,r)for(var i=0;i<r.length;++i){var o=r[i],s=o.src.find(function(e){return"truetype"===e.format});s&&t.addFont(s.url,o.ref.name,o.ref.style)}return a.windowHeight=a.windowHeight||0,a.windowHeight=0==a.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):a.windowHeight,t.context2d.save(!0),e(this.prop.container,a)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},c.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},c.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},c.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in c.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},c.prototype.get=function(e,t){return this.then(function(){var r=e in c.template.prop?this.prop[e]:this.opt[e];return t?t(r):r})},c.prototype.setMargin=function(e){return this.then(function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},c.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},c.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,function(e,t){return r.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return r.updateProgress(null,e),t}).then(e,t).then(function(e){return r.updateProgress(1),e})})},c.prototype.thenCore=function(e,t,r){r=r||Promise.prototype.then;var n=this;e&&(e=e.bind(n)),t&&(t=t.bind(n));var a=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?n:c.convert(Object.assign({},n),Promise.prototype),i=r.call(a,e,t);return c.convert(i,n.__proto__)},c.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},c.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},c.prototype["catch"]=function(e){e&&(e=e.bind(this));var t=Promise.prototype["catch"].call(this,e);return c.convert(t,this)},c.prototype.catchExternal=function(e){return Promise.prototype["catch"].call(this,e)},c.prototype.error=function(e){return this.then(function(){throw new Error(e)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype["export"]=c.prototype.output,c.prototype.run=c.prototype.then,z.getPageSize=function(e,t,r){if("object"===(0,n["default"])(e)){var a=e;e=a.orientation,t=a.unit||t,r=a.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var i,o=(""+r).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var l,c=0,u=0;if(s.hasOwnProperty(o))c=s[o][1]/i,u=s[o][0]/i;else try{c=r[1],u=r[0]}catch(p){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e)e="p",u>c&&(l=u,u=c,c=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c>u&&(l=u,u=c,c=l)}return{width:u,height:c,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Pe):null;var r=new c(t);return t.worker?r:r.from(e).doCallback()}}(z.API),z.API.addJS=function(e){return We=e,this.internal.events.subscribe("postPutResources",function(){qe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qe+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ge=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+We+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==qe&&void 0!==Ge&&this.internal.out("/Names <</JavaScript "+qe+" 0 R>>")}),this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t;e.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),a=0;a<n.length;a++){var i=n[a],o=r.exec(i);if(null!=o){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(a=0;a<l;a++){var u=e.internal.newObject();c.push(u);var d=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<c.length;a++)e.internal.write("(page_"+(a+1)+")"+c[a]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,r){var n={title:t,options:r,children:[]};return null==e&&(e=this.root),e.children.push(n),n},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var r=0;r<t.children.length;r++)this.genIds_r(t.children[r])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var a=t.children[n];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),n>0&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var i=this.count=this.count_r({count:0},a);if(i>0&&this.line("/Count "+i),a.options&&a.options.pageNumber){var o=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r<t.children.length;r++)e.count++,this.count_r(e,t.children[r]);return e.count}}])}(z.API),
/**
 * @license
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,r,n,a,i,o){var s,l=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,s=function(e){for(var r,n=256*e.charCodeAt(4)+e.charCodeAt(5),a=e.length,i={width:0,height:0,numcomponents:1},o=4;o<a;o+=2){if(o+=n,-1!==t.indexOf(e.charCodeAt(o+1))){r=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),i={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:r,numcomponents:e.charCodeAt(o+9)};break}n=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),s.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:e,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:r,alias:n}}return c}}(z.API),z.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var s,l=(0,o.decode)(e,{checkCrc:!0}),c=l.width,u=l.height,d=l.channels,h=l.palette,f=l.depth;s=h&&1===d?function(e){for(var t=e.width,r=e.height,n=e.data,a=e.palette,o=e.depth,s=!1,l=[],c=[],u=void 0,d=!1,h=0,f=0;f<a.length;f++){var p=(0,i["default"])(a[f],4),g=p[0],m=p[1],v=p[2],b=p[3];l.push(g,m,v),null!=b&&(0===b?(h++,c.length<1&&c.push(f)):b<255&&(d=!0))}if(d||h>1){s=!0,c=void 0;var y=t*r;u=new Uint8Array(y);for(var w=new DataView(n.buffer),x=0;x<y;x++){var _=st(w,x,o),S=(0,i["default"])(a[_],4)[3];u[x]=S}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:n,alphaBytes:u,needSMask:s,palette:l,mask:c}}(l):2===d||4===d?function(e){for(var t=e.data,r=e.width,n=e.height,a=e.channels,i=e.depth,o=2===a?"DeviceGray":"DeviceRGB",s=a-1,l=r*n,c=s,u=l*c,d=1*l,h=Math.ceil(u*i/8),f=Math.ceil(d*i/8),p=new Uint8Array(h),g=new Uint8Array(f),m=new DataView(t.buffer),v=new DataView(p.buffer),b=new DataView(g.buffer),y=!1,w=0;w<l;w++){for(var x=w*a,_=0;_<c;_++)lt(v,st(m,x+_,i),w*c+_,i);var S=st(m,x+c,i);S<(1<<i)-1&&(y=!0),lt(b,S,1*w,i)}return{colorSpace:o,colorsPerPixel:s,colorBytes:p,alphaBytes:g,needSMask:y}}(l):function(e){var t=e.data,r=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:r,colorsPerPixel:"DeviceGray"===r?1:3,colorBytes:t instanceof Uint8Array?t:new Uint8Array(t.buffer),needSMask:!1}}(l);var p,g,m,v=s,b=v.colorSpace,y=v.colorsPerPixel,w=v.colorBytes,x=v.alphaBytes,_=v.needSMask,S=v.palette,k=v.mask,C=null;return n!==z.API.image_compression.NONE&&"function"==typeof a.zlibSync?(C=function(e){var t;switch(e){case z.API.image_compression.FAST:t=11;break;case z.API.image_compression.MEDIUM:t=13;break;case z.API.image_compression.SLOW:t=14;break;default:t=12}return t}(n),p=this.decode.FLATE_DECODE,g="/Predictor ".concat(C," "),e=Qe(w,c*y,y,n),_&&(m=Qe(x,c,1,n))):(p=void 0,g="",e=w,_&&(m=x)),g+="/Colors ".concat(y," /BitsPerComponent ").concat(f," /Columns ").concat(c),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:r,data:e,index:t,filter:p,decodeParameters:g,transparency:k,palette:S,sMask:m,predictor:C,width:c,height:u,bitsPerComponent:f,colorSpace:b}}},function(e){e.processGIF89A=function(t,r,n,a){var i=new ut(t),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new ht(100).encode(c,100);return e.processJPEG.call(this,u,r,n,a)},e.processGIF87A=e.processGIF89A}(z.API),ft.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ft.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){c.log("bit decode error:"+r)}},ft.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},ft.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<e;a++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*a*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},ft.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*n;if(a<this.palette.length){var o=this.palette[a];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},ft.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,c=i>>15?255:0,u=n*this.width*4+4*a;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},ft.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,u=a*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},ft.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=i,this.data[o+1]=a,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},ft.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=i,this.data[s+1]=a,this.data[s+2]=n,this.data[s+3]=o}},ft.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2018 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processBMP=function(t,r,n,a){var i=new ft(t,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new ht(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}}(z.API),pt.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2019 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processWEBP=function(t,r,n,a){var i=new pt(t),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new ht(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}}(z.API),z.API.processRGBA=function(e,t,r){for(var n=e.data,a=n.length,i=new Uint8Array(a/4*3),o=new Uint8Array(a/4),s=0,l=0,c=0;c<a;c+=4){var u=n[c],d=n[c+1],h=n[c+2],f=n[c+3];i[s++]=u,i[s++]=d,i[s++]=h,o[l++]=f}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},z.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},$e=z.API,Xe=$e.getCharWidthsArray=function(e,t){var r,a,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,h=!1!==t.doKerning,f=0,p=e.length,g=0,m=l[0]||c,v=[];for(r=0;r<p;r++)a=e.charCodeAt(r),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(a))+s*(1e3/o)||0)/1e3):(f=h&&"object"===(0,n["default"])(u[a])&&!isNaN(parseInt(u[a][g],10))?u[a][g]/d:0,v.push((l[a]||m)/c+f)),g=a;return v},Ye=$e.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return $e.processArabic&&(e=$e.processArabic(e)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(e,r,a)/r:Xe.apply(this,arguments).reduce(function(e,t){return e+t},0)},Ke=function(e,t,r,n){for(var a=[],i=0,o=e.length,s=0;i!==o&&s+t[i]<r;)s+=t[i],i++;a.push(e.slice(0,i));var l=i;for(s=0;i!==o;)s+t[i]>n&&(a.push(e.slice(l,i)),s=0,l=i),s+=t[i],i++;return l!==i&&a.push(e.slice(l,i)),a},Je=function(e,t,r){r||(r={});var n,a,i,o,s,l,c,u=[],d=[u],h=r.textIndent||0,f=0,p=0,g=e.split(" "),m=Xe.apply(this,[" ",r])[0];if(l=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(l).join(" "),b=[];g.map(function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):b.push(e[0])}),g=b,l=Ye.apply(this,[v,r])}for(i=0,o=g.length;i<o;i++){var y=0;if(n=g[i],l&&"\n"==n[0]&&(n=n.substr(1),y=1),h+f+(p=(a=Xe.apply(this,[n,r])).reduce(function(e,t){return e+t},0))>t||y){if(p>t){for(s=Ke.apply(this,[n,a,t-(h+f),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);p=a.slice(n.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[n];d.push(u),h=p+l,f=m}else u.push(n),h+=f+p,f=m}return c=l?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},d.map(c)},$e.splitTextToSize=function(e,t,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),r="Unicode";return t.metadata[r]?{widths:t.metadata[r].widths||{0:1},kerning:t.metadata[r].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/a;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(Je.apply(this,[n[s],o,i]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",a={},i={},o=0;o<16;o++)a[r[o]]=t[o],i[t[o]]=r[o];var s=function(e){return"0x"+parseInt(e,10).toString(16)},l=e.__fontmetrics__.compress=function(e){var t,r,a,o,c=["{"];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?r="'"+u+"'":(u=parseInt(u,10),r=(r=s(u).slice(2)).slice(0,-1)+i[r.slice(-1)]),"number"==typeof t)t<0?(a=s(t).slice(3),o="-"):(a=s(t).slice(2),o=""),a=o+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==(0,n["default"])(t))throw new Error("Don't know what to do with value type "+(0,n["default"])(t)+".");a=l(t)}c.push(r+a)}return c.push("}"),c.join("")},c=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,n,i,o={},s=1,l=o,c=[],u="",d="",h=e.length-1,f=1;f<h;f+=1)"'"==(i=e[f])?t?(n=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(c.push([l,n]),l={},n=void 0):"}"==i?((r=c.pop())[0][r[1]]=l,n=void 0,l=r[0]):"-"==i?s=-1:void 0===n?a.hasOwnProperty(i)?(u+=a[i],n=parseInt(u,16)*s,s=1,u=""):u+=i:a.hasOwnProperty(i)?(d+=a[i],l[n]=parseInt(d,16)*s,s=1,n=void 0,d=""):d+=i;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,r=h.Unicode[t.postScriptName];r&&(t.metadata.Unicode={},t.metadata.Unicode.widths=r.widths,t.metadata.Unicode.kerning=r.kerning);var n=d.Unicode[t.postScriptName];n&&(t.metadata.Unicode.encoding=n,t.encoding=n.codePages[0])}])}(z.API),
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r};e.API.events.push(["addFont",function(r){var n=void 0,a=r.font,i=r.instance;if(!a.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if("string"!=typeof(n=!1===i.existsFileInVFS(a.postScriptName)?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?t(n):t(g(n)),r.metadata=e.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(a,n)}}])}(z),z.API.addSvgAsImage=function(e,t,n,a,i,o,l,u){if(isNaN(t)||isNaN(n))throw c.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(i))throw c.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var d=document.createElement("canvas");d.width=a,d.height=i;var h=d.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,d.width,d.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(s.canvg?Promise.resolve(s.canvg):r.e(3).then(r.bind(r,1695)))["catch"](function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e["default"]?e["default"]:e}).then(function(t){return t.fromString(h,e,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(f)}).then(function(){p.addImage(d.toDataURL("image/jpeg",1),t,n,a,i,l,u)})},z.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,r);return this},z.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var a,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),c=[],u=0,d=0,h=0;function f(e,t){var r,n=!1;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=l.length;for(h=0;h<p;h+=1)r[l[h]].value=r[l[h]].defaultValue,r[l[h]].explicitSet=!1}if("object"===(0,n["default"])(e))for(i in e)if(o=e[i],f(l,i)&&void 0!==o){if("boolean"===r[i].type&&"boolean"==typeof o)r[i].value=o;else if("name"===r[i].type&&f(r[i].valueSet,o))r[i].value=o;else if("integer"===r[i].type&&Number.isInteger(o))r[i].value=o;else if("array"===r[i].type){for(u=0;u<o.length;u+=1)if(a=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)"number"!=typeof o[u][d]&&(a=!1);!0===a&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}r[i].value="["+c.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in r)!0===r[e].explicitSet&&("name"===r[e].type?t.push("/"+e+" /"+r[e].value):t.push("/"+e+" "+r[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},
/** ====================================================================
 * @license
 * jsPDF XMP metadata plugin
 * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=r.length+n.length+a.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+a+i),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(z.API),function(e){var t=e.API,r=t.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,a=["","0","00","000","0000"],i=[""],o=0,s=e.length;o<s;++o){if(r=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(r),t.metadata.toUnicode[r]=e.charCodeAt(o),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(t.metadata.widthOfGlyph(r),10)])),"0"==r)return i.join("");r=r.toString(16),i.push(a[4-r.length],r)}return i.join("")},n=function(e){var t,r,n,a,i,o,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],o=0,s=(r=Object.keys(e).sort(function(e,t){return e-t})).length;o<s;o++)t=r[o],n.length>=100&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(a=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),n.push("<"+t+"><"+a+">"));return n.length&&(i+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var r=t.font,a=t.out,i=t.newObject,o=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,l=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var d=i();o({data:c,addLength1:!0,objectId:d}),a("endobj");var h=i();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),a("endobj");var f=i();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+I(r.fontName)),a("/FontFile2 "+d+" 0 R"),a("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),a("/Flags "+r.metadata.flags),a("/StemV "+r.metadata.stemV),a("/ItalicAngle "+r.metadata.italicAngle),a("/Ascent "+r.metadata.ascender),a("/Descent "+r.metadata.decender),a("/CapHeight "+r.metadata.capHeight),a(">>"),a("endobj");var p=i();a("<<"),a("/Type /Font"),a("/BaseFont /"+I(r.fontName)),a("/FontDescriptor "+f+" 0 R"),a("/W "+e.API.PDFObject.convert(s)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+r.encoding+")"),a(">>"),a(">>"),a("endobj"),r.objectNumber=i(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+h+" 0 R"),a("/BaseFont /"+I(r.fontName)),a("/Encoding /"+r.encoding),a("/DescendantFonts ["+p+" 0 R]"),a(">>"),a("endobj"),r.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var r=t.font,a=t.out,i=t.newObject,o=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=i();o({data:l,addLength1:!0,objectId:u}),a("endobj");var d=i();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:d}),a("endobj");var h=i();a("<<"),a("/Descent "+r.metadata.decender),a("/CapHeight "+r.metadata.capHeight),a("/StemV "+r.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+u+" 0 R"),a("/Flags 96"),a("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),a("/FontName /"+I(r.fontName)),a("/ItalicAngle "+r.metadata.italicAngle),a("/Ascent "+r.metadata.ascender),a(">>"),a("endobj"),r.objectNumber=i();for(var f=0;f<r.metadata.hmtx.widths.length;f++)r.metadata.hmtx.widths[f]=parseInt(r.metadata.hmtx.widths[f]*(1e3/r.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+I(r.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),a("endobj"),r.isAlreadyPutted=!0}}(t)}]);var a=function(e){var t,n=e.text||"",a=e.x,i=e.y,o=e.options||{},s=e.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,d=c,h="",f=0,p="",g=u[d].encoding;if("Identity-H"!==u[d].encoding)return{text:n,x:a,y:i,options:o,mutex:s};for(p=n,d=c,Array.isArray(n)&&(p=n[0]),f=0;f<p.length;f+=1)u[d].metadata.hasOwnProperty("cmap")&&(t=u[d].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),t||p[f].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty("Unicode")?h+=p[f]:h+="";var m="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===g?m=l(h,d).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===g&&(m=r(h,u[d])),s.isHex=!0,{text:m,x:a,y:i,options:o,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",r=[],n={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?r.push([a(Object.assign({},n,{text:t[i][0]})).text,t[i][1],t[i][2]]):r.push(a(Object.assign({},n,{text:t[i]})).text);e.text=r}else e.text=a(Object.assign({},n,{text:t})).text}])}(z),
/**
 * @license
 * jsPDF virtual FileSystem functionality
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(z.API),
/**
 * @license
 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
 * MIT License
 */
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var r,n,a,i,o,s,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),r=t>>8,n=f[r];return void 0!==n?c[256*n+(255&t)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(e){for(var t,r=0;r<e.length;r++){if("L"===(t=b(e.charAt(r))))return!1;if("R"===t)return!0}return!1},w=function(e,t,o,s){var l,c,u,d,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(h="AN");break;case"AL":m=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?h="N":m&&(c="AN"),h=c===l?c:"N";break;case"ES":h="EN"===(l=s>0?o[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){h="EN";break}if(m){h="N";break}for(u=s+1,d=t.length;u<d&&"ET"===t[u];)u++;h=u<d&&"EN"===t[u]?"EN":"N";break;case"NSM":if(a&&!i){for(d=t.length,u=s+1;u<d&&"NSM"===t[u];)u++;if(u<d){var f=e[s],p=f>=1425&&f<=2303||64286===f;if(l=t[u],p&&("R"===l||"AL"===l)){h="R";break}}}h=s<1||"B"===(l=t[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,h=v;break;case"S":n=!0,h="N"}return h},x=function(e,t,r){var n=e.split("");return r&&_(n,r,{hiLevel:v}),n.reverse(),t&&t.reverse(),n.join("")},_=function(e,t,a){var i,o,s,l,c,f=-1,p=e.length,g=0,y=[],x=v?d:u,_=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)_[o]=b(e[o]);for(s=0;s<p;s++){if(c=g,y[s]=w(e,_,y,s),i=240&(g=x[c][h[y[s]]]),g&=15,t[s]=l=x[g][5],i>0)if(16===i){for(o=f;o<s;o++)t[o]=1;f=-1}else f=-1;if(x[g][6])-1===f&&(f=s);else if(f>-1){for(o=f;o<s;o++)t[o]=l;f=-1}"B"===_[s]&&(t[s]=0),a.hiLevel|=l}n&&function(e,t,r){for(var n=0;n<r;n++)if("S"===e[n]){t[n]=v;for(var a=n-1;a>=0&&"WS"===e[a];a--)t[a]=v}}(_,t,p)},S=function(e,t,n,a,i){if(!(i.hiLevel<e)){if(1===e&&1===v&&!r)return t.reverse(),void(n&&n.reverse());for(var o,s,l,c,u=t.length,d=0;d<u;){if(a[d]>=e){for(l=d+1;l<u&&a[l]>=e;)l++;for(c=d,s=l-1;c<s;c++,s--)o=t[c],t[c]=t[s],t[s]=o,n&&(o=n[c],n[c]=n[s],n[s]=o);d=l}d++}}},k=function(e,t,r){var n=e.split(""),a={hiLevel:v};return r||(r=[]),_(n,r,a),function(e,t,r){if(0!==r.hiLevel&&l)for(var n,a=0;a<e.length;a++)1===t[a]&&(n=p.indexOf(e[a]))>=0&&(e[a]=p[n+1])}(n,r,a),S(2,n,t,r,a),S(1,n,t,r,a),n.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,r){if(function(e,t){if(t)for(var r=0;r<e.length;r++)t[r]=r;void 0===i&&(i=y(e)),void 0===s&&(s=y(e))}(e,t),a||!o||s)if(a&&o&&i^s)v=i?1:0,e=x(e,t,r);else if(!a&&o&&s)v=i?1:0,e=k(e,t,r),e=x(e,t);else if(!a||i||o||s){if(a&&!o&&i^s)e=x(e,t),i?(v=0,e=k(e,t,r)):(v=1,e=k(e,t,r),e=x(e,t));else if(a&&i&&!o&&s)v=1,e=k(e,t,r),e=x(e,t);else if(!a&&!o&&i^s){var n=l;i?(v=1,e=k(e,t,r),v=0,l=!1,e=k(e,t,r),l=n):(v=0,e=k(e,t,r),e=x(e,t),v=1,l=!1,e=k(e,t,r),l=n,e=x(e,t))}}else v=0,e=k(e,t,r);else v=i?1:0,e=k(e,t,r);return e},this.__bidiEngine__.setOptions=function(e){e&&(a=e.isInputVisual,o=e.isOutputVisual,i=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var n=e.options||{};e.mutex,n.lang;var a=[];if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(a=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?a.push([r.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):a.push([r.doBidiReorder(t[i])]);e.text=a}else e.text=r.doBidiReorder(t);r.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new mt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Ot(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new vt(this.contents),this.head=new wt(this),this.name=new Nt(this),this.cmap=new _t(this),this.toUnicode={},this.hhea=new St(this),this.maxp=new Et(this),this.hmtx=new Lt(this),this.post=new Ct(this),this.os2=new kt(this),this.loca=new It(this),this.glyf=new Mt(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,r,n,a;for(a=[],t=0,r=(n=this.bbox).length;t<r;t++)e=n[t],a.push(Math.round(e*this.scaleFactor));return a}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(a=this.familyClass)||2===a||3===a||4===a||5===a||7===a,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,r){var n,a,i,o;for(i=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)n=e.charCodeAt(a),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var r;return null==t&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},e}();var gt,mt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,r,n,a,i,o,s;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*a+65536*i+256*o+s},e.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(e){var t,r,n,a;for(a=[],r=0,n=e.length;r<n;r++)t=e[r],a.push(this.writeByte(t));return a},e}(),vt=function(){var e;function t(e){var t,r,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var r,n,a,i,o,s,l,c,u,d,h,f,p;for(p in h=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),i=Math.floor(u/s),c=16*h-u,(n=new mt).writeInt(this.scalarType),n.writeShort(h),n.writeShort(u),n.writeShort(i),n.writeShort(c),a=16*h,l=n.pos+a,o=null,f=[],t)for(d=t[p],n.writeString(p),n.writeInt(e(d)),n.writeInt(l),n.writeInt(d.length),f=f.concat(d),"head"===p&&(o=l),l+=d.length;l%4;)f.push(0),l++;return n.write(f),r=2981146554-e(n.data),n.pos=o+8,n.writeUInt32(r),n.data},e=function(e){var t,r,n,a;for(e=Tt.call(e);e.length%4;)e.push(0);for(n=new mt(e),r=0,t=0,a=e.length;t<a;t=t+=4)r+=n.readUInt32();return 4294967295&r},t}(),bt={}.hasOwnProperty,yt=function(e,t){for(var r in t)bt.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};gt=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var wt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new mt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),xt=function(){function e(e,t){var r,n,a,i,o,s,l,c,u,d,h,f,p,g,m,v,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),d=h/2,e.pos+=6,a=function(){var t,r;for(r=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)r.push(e.readUInt16());return r}(),e.pos+=2,p=function(){var t,r;for(r=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)r.push(e.readUInt16());return r}(),l=function(){var t,r;for(r=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)r.push(e.readUInt16());return r}(),c=function(){var t,r;for(r=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)r.push(e.readUInt16());return r}(),n=(this.length-e.pos+this.offset)/2,o=function(){var t,r;for(r=[],s=t=0;0<=n?t<n:t>n;s=0<=n?++t:--t)r.push(e.readUInt16());return r}(),s=m=0,b=a.length;m<b;s=++m)for(g=a[s],r=v=f=p[s];f<=g?v<=g:v>=g;r=f<=g?++v:--v)0===c[s]?i=r+l[s]:0!==(i=o[c[s]/2+(r-f)-(d-s)]||0)&&(i+=l[s]),this.codeMap[r]=65535&i}e.pos=u}return e.encode=function(e,t){var r,n,a,i,o,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,S,k,C,A,N,E,L,T,M,F,D,I,O,P,R,j,B,z,V,U,H,q,G,W,$;switch(L=new mt,i=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(p=0,g=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),v={0:0},a={},T=0,I=i.length;T<I;T++)null==v[q=e[n=i[T]]]&&(v[q]=++p),a[n]={old:e[n],"new":v[e[n]]},g[n]=v[e[n]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(g),{charMap:a,subtable:L.data,maxGlyphID:p+1};case"unicode":for(N=[],u=[],b=0,v={},r={},m=l=null,M=0,O=i.length;M<O;M++)null==v[w=e[n=i[M]]]&&(v[w]=++b),r[n]={old:w,"new":v[w]},o=v[w]-n,null!=m&&o===l||(m&&u.push(m),N.push(n),l=o),m=n;for(m&&u.push(m),u.push(65535),N.push(65535),C=2*(k=N.length),S=2*Math.pow(Math.log(k)/Math.LN2,2),d=Math.log(S/2)/Math.LN2,_=2*k-S,s=[],x=[],h=[],f=F=0,P=N.length;F<P;f=++F){if(A=N[f],c=u[f],65535===A){s.push(0),x.push(0);break}if(A-(E=r[A]["new"])>=32768)for(s.push(0),x.push(2*(h.length+k-f)),n=D=A;A<=c?D<=c:D>=c;n=A<=c?++D:--D)h.push(r[n]["new"]);else s.push(E-A),x.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*k+2*h.length),L.writeUInt16(0),L.writeUInt16(C),L.writeUInt16(S),L.writeUInt16(d),L.writeUInt16(_),U=0,R=u.length;U<R;U++)n=u[U],L.writeUInt16(n);for(L.writeUInt16(0),H=0,j=N.length;H<j;H++)n=N[H],L.writeUInt16(n);for(G=0,B=s.length;G<B;G++)o=s[G],L.writeUInt16(o);for(W=0,z=x.length;W<z;W++)y=x[W],L.writeUInt16(y);for($=0,V=h.length;$<V;$++)p=h[$],L.writeUInt16(p);return{charMap:r,subtable:L.data,maxGlyphID:b+1}}},e}(),_t=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new xt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var r,n;return null==t&&(t="macroman"),r=xt.encode(e,t),(n=new mt).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e}(),St=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),kt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),Ct=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="post",e.prototype.parse=function(e){var t,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(r=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=function(){var t,r,n;for(n=[],a=t=0,r=this.file.maxp.numGlyphs;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt32());return n}.call(this)}},e}(),At=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Nt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="name",e.prototype.parse=function(e){var t,r,n,a,i,o,s,l,c,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),r=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(s={},a=c=0,u=r.length;c<u;a=++c)n=r[a],e.pos=n.offset,l=e.readString(n.length),i=new At(l,n),null==s[d=n.nameID]&&(s[d]=[]),s[n.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(g){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),Et=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Lt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,r,n,a,i,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,a;for(a=[],t=r=0;0<=n?r<n:r>n;t=0<=n?++r:--r)a.push(e.readInt16());return a}(),this.widths=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.metrics).length;e<t;e++)a=r[e],n.push(a.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],t=i=0;0<=n?i<n:i>n;t=0<=n?++i:--i)s.push(this.widths.push(r));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),Tt=[].slice,Mt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,r,n,a,i,o,s,l,c,u;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,r=a.indexOf(e),0===(n=a.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+r,i=(o=new mt(t.read(n))).readShort(),l=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[e]=-1===i?new Dt(o,l,u,s,c):new Ft(o,i,l,u,s,c),this.cache[e]))},e.prototype.encode=function(e,t,r){var n,a,i,o,s;for(i=[],a=[],o=0,s=t.length;o<s;o++)n=e[t[o]],a.push(i.length),n&&(i=i.concat(n.encode(r)));return a.push(i.length),{table:i,offsets:a}},e}(),Ft=function(){function e(e,t,r,n,a,i){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Dt=function(){function e(e,t,r,n,a){var i,o;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,r;for(t=new mt(Tt.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),It=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,gt),e.prototype.tag="loca",e.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=2)n.push(2*e.readUInt16());return n}.call(this):function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=4)n.push(e.readUInt32());return n}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),n=0,a=0,i=0;i<r.length;++i)if(r[i]=n,a<t.length&&t[a]==i){++a,r[i]=n;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(n+=s)}for(var l=new Array(4*r.length),c=0;c<r.length;++c)l[4*c+3]=255&r[c],l[4*c+2]=(65280&r[c])>>8,l[4*c+1]=(16711680&r[c])>>16,l[4*c]=(4278190080&r[c])>>24;return l},e}(),Ot=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,r,n,a;for(t in n=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[t],e[t]=n[r];return e},e.prototype.glyphsFor=function(e){var t,r,n,a,i,o,s;for(n={},i=0,o=e.length;i<o;i++)n[a=e[i]]=this.font.glyf.glyphFor(a);for(a in t=[],n)(null!=(r=n[a])?r.compound:void 0)&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(a in s=this.glyphsFor(t))r=s[a],n[a]=r;return n},e.prototype.encode=function(e,t){var r,n,a,i,o,s,l,c,u,d,h,f,p,g,m;for(n in r=_t.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),h={0:0},m=r.charMap)h[(s=m[n]).old]=s["new"];for(f in d=r.maxGlyphID,i)f in h||(h[f]=d++);return c=function(e){var t,r;for(t in r={},e)r[e[t]]=t;return r}(h),u=Object.keys(c).sort(function(e,t){return e-t}),p=function(){var e,t,r;for(r=[],e=0,t=u.length;e<t;e++)o=u[e],r.push(c[o]);return r}(),a=this.font.glyf.encode(i,p,h),l=this.font.loca.encode(a.offsets,p),g={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();z.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(r){var n,a,i,o;if(Array.isArray(r))return"["+function(){var e,a,i;for(i=[],e=0,a=r.length;e<a;e++)n=r[e],i.push(t.convert(n));return i}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(a in i=["<<"],r)o=r[a],i.push("/"+a+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+r},t}()},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.r(t),r.d(t,{"default":()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncCompress:()=>Fe,AsyncDecompress:()=>Xe,AsyncDeflate:()=>ke,AsyncGunzip:()=>Pe,AsyncGzip:()=>Fe,AsyncInflate:()=>Ee,AsyncUnzipInflate:()=>xt,AsyncUnzlib:()=>qe,AsyncZipDeflate:()=>gt,AsyncZlib:()=>ze,Compress:()=>Me,DecodeUTF8:()=>rt,Decompress:()=>$e,Deflate:()=>Se,EncodeUTF8:()=>nt,FlateErrorCode:()=>F,Gunzip:()=>Oe,Gzip:()=>Me,Inflate:()=>Ne,Unzip:()=>_t,UnzipInflate:()=>wt,UnzipPassThrough:()=>yt,Unzlib:()=>He,Zip:()=>mt,ZipDeflate:()=>pt,ZipPassThrough:()=>ft,Zlib:()=>Be,compress:()=>De,compressSync:()=>Ie,decompress:()=>Ye,decompressSync:()=>Ke,deflate:()=>Ce,deflateSync:()=>Ae,gunzip:()=>Re,gunzipSync:()=>je,gzip:()=>De,gzipSync:()=>Ie,inflate:()=>Le,inflateSync:()=>Te,strFromU8:()=>it,strToU8:()=>at,unzip:()=>kt,unzipSync:()=>Ct,unzlib:()=>Ge,unzlibSync:()=>We,zip:()=>vt,zipSync:()=>bt,zlib:()=>Ve,zlibSync:()=>Ue});var n={},a=Uint8Array,i=Uint16Array,o=Int32Array,s=new a([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var r=new i(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var a=new o(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)a[s]=s-r[n]<<5|n;return{b:r,r:a}},d=u(s,2),h=d.b,f=d.r;h[28]=258,f[258]=28;for(var p=u(l,0),g=p.b,m=p.r,v=new i(32768),b=0;b<32768;++b){var y=(43690&b)>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>2|(13107&y)<<2))>>4|(3855&y)<<4,v[b]=((65280&y)>>8|(255&y)<<8)>>1}var w=function(e,t,r){for(var n=e.length,a=0,o=new i(t);a<n;++a)e[a]&&++o[e[a]-1];var s,l=new i(t);for(a=1;a<t;++a)l[a]=l[a-1]+o[a-1]<<1;if(r){s=new i(1<<t);var c=15-t;for(a=0;a<n;++a)if(e[a])for(var u=a<<4|e[a],d=t-e[a],h=l[e[a]-1]++<<d,f=h|(1<<d)-1;h<=f;++h)s[v[h]>>c]=u}else for(s=new i(n),a=0;a<n;++a)e[a]&&(s[a]=v[l[e[a]-1]++]>>15-e[a]);return s},x=new a(288);for(b=0;b<144;++b)x[b]=8;for(b=144;b<256;++b)x[b]=9;for(b=256;b<280;++b)x[b]=7;for(b=280;b<288;++b)x[b]=8;var _=new a(32);for(b=0;b<32;++b)_[b]=5;var S=w(x,9,0),k=w(x,9,1),C=w(_,5,0),A=w(_,5,1),N=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},E=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},L=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},T=function(e){return(e+7)/8|0},M=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new a(e.subarray(t,r))},F={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(e,t,r){var n=new Error(t||D[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,I),!r)throw n;return n},O=function(e,t,r,n){var i=e.length,o=n?n.length:0;if(!i||t.f&&!t.l)return r||new a(0);var u=!r,d=u||2!=t.i,f=t.i;u&&(r=new a(3*i));var p=function(e){var t=r.length;if(e>t){var n=new a(Math.max(2*t,e));n.set(r),r=n}},m=t.f||0,v=t.p||0,b=t.b||0,y=t.l,x=t.d,_=t.m,S=t.n,C=8*i;do{if(!y){m=E(e,v,1);var F=E(e,v+1,3);if(v+=3,!F){var D=e[(G=T(v)+4)-4]|e[G-3]<<8,O=G+D;if(O>i){f&&I(0);break}d&&p(b+D),r.set(e.subarray(G,O),b),t.b=b+=D,t.p=v=8*O,t.f=m;continue}if(1==F)y=k,x=A,_=9,S=5;else if(2==F){var P=E(e,v,31)+257,R=E(e,v+10,15)+4,j=P+E(e,v+5,31)+1;v+=14;for(var B=new a(j),z=new a(19),V=0;V<R;++V)z[c[V]]=E(e,v+3*V,7);v+=3*R;var U=N(z),H=(1<<U)-1,q=w(z,U,1);for(V=0;V<j;){var G,W=q[E(e,v,H)];if(v+=15&W,(G=W>>4)<16)B[V++]=G;else{var $=0,X=0;for(16==G?(X=3+E(e,v,3),v+=2,$=B[V-1]):17==G?(X=3+E(e,v,7),v+=3):18==G&&(X=11+E(e,v,127),v+=7);X--;)B[V++]=$}}var Y=B.subarray(0,P),K=B.subarray(P);_=N(Y),S=N(K),y=w(Y,_,1),x=w(K,S,1)}else I(1);if(v>C){f&&I(0);break}}d&&p(b+131072);for(var J=(1<<_)-1,Z=(1<<S)-1,Q=v;;Q=v){var ee=($=y[L(e,v)&J])>>4;if((v+=15&$)>C){f&&I(0);break}if($||I(2),ee<256)r[b++]=ee;else{if(256==ee){Q=v,y=null;break}var te=ee-254;if(ee>264){var re=s[V=ee-257];te=E(e,v,(1<<re)-1)+h[V],v+=re}var ne=x[L(e,v)&Z],ae=ne>>4;ne||I(3),v+=15&ne;K=g[ae];if(ae>3){re=l[ae];K+=L(e,v)&(1<<re)-1,v+=re}if(v>C){f&&I(0);break}d&&p(b+131072);var ie=b+te;if(b<K){var oe=o-K,se=Math.min(K,ie);for(oe+b<0&&I(3);b<se;++b)r[b]=n[oe+b]}for(;b<ie;++b)r[b]=r[b-K]}}t.l=y,t.p=Q,t.b=b,t.f=m,y&&(m=1,t.m=_,t.d=x,t.n=S)}while(!m);return b!=r.length&&u?M(r,0,b):r.subarray(0,b)},P=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},R=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},j=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,s=r.slice();if(!o)return{t:G,l:0};if(1==o){var l=new a(r[0].s+1);return l[r[0].s]=1,{t:l,l:1}}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var c=r[0],u=r[1],d=0,h=1,f=2;for(r[0]={s:-1,f:c.f+u.f,l:c,r:u};h!=o-1;)c=r[r[d].f<r[f].f?d++:f++],u=r[d!=h&&r[d].f<r[f].f?d++:f++],r[h++]={s:-1,f:c.f+u.f,l:c,r:u};var p=s[0].s;for(n=1;n<o;++n)s[n].s>p&&(p=s[n].s);var g=new i(p+1),m=B(r[h-1],g,0);if(m>t){n=0;var v=0,b=m-t,y=1<<b;for(s.sort(function(e,t){return g[t.s]-g[e.s]||e.f-t.f});n<o;++n){var w=s[n].s;if(!(g[w]>t))break;v+=y-(1<<m-g[w]),g[w]=t}for(v>>=b;v>0;){var x=s[n].s;g[x]<t?v-=1<<t-g[x]++-1:++n}for(;n>=0&&v;--n){var _=s[n].s;g[_]==t&&(--g[_],++v)}m=t}return{t:new a(g),l:m}},B=function(e,t,r){return-1==e.s?Math.max(B(e.l,t,r+1),B(e.r,t,r+1)):t[e.s]=r},z=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new i(++t),n=0,a=e[0],o=1,s=function(e){r[n++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=e[l]}return{c:r.subarray(0,n),n:t}},V=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},U=function(e,t,r){var n=r.length,a=T(t+2);e[a]=255&n,e[a+1]=n>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var i=0;i<n;++i)e[a+i+4]=r[i];return 8*(a+4+n)},H=function(e,t,r,n,a,o,u,d,h,f,p){P(t,p++,r),++a[256];for(var g=j(a,15),m=g.t,v=g.l,b=j(o,15),y=b.t,k=b.l,A=z(m),N=A.c,E=A.n,L=z(y),T=L.c,M=L.n,F=new i(19),D=0;D<N.length;++D)++F[31&N[D]];for(D=0;D<T.length;++D)++F[31&T[D]];for(var I=j(F,7),O=I.t,B=I.l,H=19;H>4&&!O[c[H-1]];--H);var q,G,W,$,X=f+5<<3,Y=V(a,x)+V(o,_)+u,K=V(a,m)+V(o,y)+u+14+3*H+V(F,O)+2*F[16]+3*F[17]+7*F[18];if(h>=0&&X<=Y&&X<=K)return U(t,p,e.subarray(h,h+f));if(P(t,p,1+(K<Y)),p+=2,K<Y){q=w(m,v,0),G=m,W=w(y,k,0),$=y;var J=w(O,B,0);P(t,p,E-257),P(t,p+5,M-1),P(t,p+10,H-4),p+=14;for(D=0;D<H;++D)P(t,p+3*D,O[c[D]]);p+=3*H;for(var Z=[N,T],Q=0;Q<2;++Q){var ee=Z[Q];for(D=0;D<ee.length;++D){var te=31&ee[D];P(t,p,J[te]),p+=O[te],te>15&&(P(t,p,ee[D]>>5&127),p+=ee[D]>>12)}}}else q=S,G=x,W=C,$=_;for(D=0;D<d;++D){var re=n[D];if(re>255){R(t,p,q[(te=re>>18&31)+257]),p+=G[te+257],te>7&&(P(t,p,re>>23&31),p+=s[te]);var ne=31&re;R(t,p,W[ne]),p+=$[ne],ne>3&&(R(t,p,re>>5&8191),p+=l[ne])}else R(t,p,q[re]),p+=G[re]}return R(t,p,q[256]),p+G[256]},q=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new a(0),W=function(e,t,r,n,c,u){var d=u.z||e.length,h=new a(n+d+5*(1+Math.ceil(d/7e3))+c),p=h.subarray(n,h.length-c),g=u.l,v=7&(u.r||0);if(t){v&&(p[0]=u.r>>3);for(var b=q[t-1],y=b>>13,w=8191&b,x=(1<<r)-1,_=u.p||new i(32768),S=u.h||new i(x+1),k=Math.ceil(r/3),C=2*k,A=function(t){return(e[t]^e[t+1]<<k^e[t+2]<<C)&x},N=new o(25e3),E=new i(288),L=new i(32),F=0,D=0,I=u.i||0,O=0,P=u.w||0,R=0;I+2<d;++I){var j=A(I),B=32767&I,z=S[j];if(_[B]=z,S[j]=B,P<=I){var V=d-I;if((F>7e3||O>24576)&&(V>423||!g)){v=H(e,p,0,N,E,L,D,O,R,I-R,v),O=F=D=0,R=I;for(var G=0;G<286;++G)E[G]=0;for(G=0;G<30;++G)L[G]=0}var W=2,$=0,X=w,Y=B-z&32767;if(V>2&&j==A(I-Y))for(var K=Math.min(y,V)-1,J=Math.min(32767,I),Z=Math.min(258,V);Y<=J&&--X&&B!=z;){if(e[I+W]==e[I+W-Y]){for(var Q=0;Q<Z&&e[I+Q]==e[I+Q-Y];++Q);if(Q>W){if(W=Q,$=Y,Q>K)break;var ee=Math.min(Y,Q-2),te=0;for(G=0;G<ee;++G){var re=I-Y+G&32767,ne=re-_[re]&32767;ne>te&&(te=ne,z=re)}}}Y+=(B=z)-(z=_[B])&32767}if($){N[O++]=268435456|f[W]<<18|m[$];var ae=31&f[W],ie=31&m[$];D+=s[ae]+l[ie],++E[257+ae],++L[ie],P=I+W,++F}else N[O++]=e[I],++E[e[I]]}}for(I=Math.max(I,P);I<d;++I)N[O++]=e[I],++E[e[I]];v=H(e,p,g,N,E,L,D,O,R,I-R,v),g||(u.r=7&v|p[v/8|0]<<3,v-=7,u.h=S,u.p=_,u.i=I,u.w=P)}else{for(I=u.w||0;I<d+g;I+=65535){var oe=I+65535;oe>=d&&(p[v/8|0]=g,oe=d),v=U(p,v+1,e.subarray(I,oe))}u.i=d}return M(h,0,n+T(v)+c)},$=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-306674912)^r>>>1;e[t]=r}return e}(),X=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=$[255&r^t[n]]^r>>>8;e=r},d:function(){return~e}}},Y=function(){var e=1,t=0;return{p:function(r){for(var n=e,a=t,i=0|r.length,o=0;o!=i;){for(var s=Math.min(o+2655,i);o<s;++o)a+=n+=r[o];n=(65535&n)+15*(n>>16),a=(65535&a)+15*(a>>16)}e=n,t=a},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},K=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new a(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return W(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,r,n,i)},J=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Z=function(e,t,r){for(var n=e(),a=e.toString(),i=a.slice(a.indexOf("[")+1,a.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<n.length;++o){var s=n[o],l=i[o];if("function"==typeof s){t+=";"+l+"=";var c=s.toString();if(s.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,s.prototype)t+=";"+l+".prototype."+d+"="+s.prototype[d].toString();else t+=c}else r[l]=s}return t},Q=[],ee=function(e,t,r,a){if(!Q[r]){for(var i="",o={},s=e.length-1,l=0;l<s;++l)i=Z(e[l],i,o);Q[r]={c:Z(e[s],i,o),e:o}}var c=J({},Q[r].e);return function(e,t,r,a,i){var o=new Worker(n[t]||(n[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var n=new Error(r[0]);n.code=r[1],n.stack=r[2],i(n,null)}else i(null,t)},o.postMessage(r,a),o}(Q[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,c,function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t}(c),a)},te=function(){return[a,i,o,s,l,c,h,g,k,A,v,D,w,N,E,L,T,M,I,O,Te,se,le]},re=function(){return[a,i,o,s,l,c,f,m,S,x,C,_,v,q,G,w,P,R,j,B,z,V,U,H,T,M,W,K,Ae,se]},ne=function(){return[me,ye,ge,X,$]},ae=function(){return[ve,be]},ie=function(){return[we,ge,Y]},oe=function(){return[xe]},se=function(e){return postMessage(e,[e.buffer])},le=function(e){return e&&{out:e.size&&new a(e.size),dictionary:e.dictionary}},ce=function(e,t,r,n,a,i){var o=ee(r,n,a,function(e,t){o.terminate(),i(e,t)});return o.postMessage([e,t],t.consume?[e.buffer]:[]),function(){o.terminate()}},ue=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data.length?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush()}},de=function(e,t,r,n,a,i,o){var s,l=ee(e,n,a,function(e,r){e?(l.terminate(),t.ondata.call(t,e)):Array.isArray(r)?1==r.length?(t.queuedSize-=r[0],t.ondrain&&t.ondrain(r[0])):(r[1]&&l.terminate(),t.ondata.call(t,e,r[0],r[1])):o(r)});l.postMessage(r),t.queuedSize=0,t.push=function(e,r){t.ondata||I(5),s&&t.ondata(I(4,0,1),null,!!r),t.queuedSize+=e.length,l.postMessage([e,s=r],[e.buffer])},t.terminate=function(){l.terminate()},i&&(t.flush=function(){l.postMessage([])})},he=function(e,t){return e[t]|e[t+1]<<8},fe=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},pe=function(e,t){return fe(e,t)+4294967296*fe(e,t+4)},ge=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},me=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ge(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},ve=function(e){31==e[0]&&139==e[1]&&8==e[2]||I(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=2+(e[10]|e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},be=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ye=function(e){return 10+(e.filename?e.filename.length+1:0)},we=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=Y();a.p(t.dictionary),ge(e,2,a.d())}},xe=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&I(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&I(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function _e(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var Se=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new a(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return e.prototype.p=function(e,t){this.ondata(K(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||I(5),this.s.l&&I(4);var r=e.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var n=new a(-32768&r);n.set(this.b.subarray(0,this.s.z)),this.b=n}var i=this.b.length-this.s.z;this.b.set(e.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(i),32768),this.s.z=e.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),ke=function(){return function(e,t){de([re,function(){return[ue,Se]}],this,_e.call(this,e,t),function(e){var t=new Se(e.data);onmessage=ue(t)},6,1)}}();function Ce(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[re],function(e){return se(Ae(e.data[0],e.data[1]))},0,r)}function Ae(e,t){return K(e,t||{},0,0)}var Ne=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var r=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:r?r.length:0},this.o=new a(32768),this.p=new a(0),r&&this.o.set(r)}return e.prototype.e=function(e){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(e.length){var t=new a(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,r=O(this.p,this.s,this.o);this.ondata(M(r,t,this.s.b),this.d),this.o=M(r,this.s.b-32768),this.s.b=this.o.length,this.p=M(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Ee=function(){return function(e,t){de([te,function(){return[ue,Ne]}],this,_e.call(this,e,t),function(e){var t=new Ne(e.data);onmessage=ue(t)},7,0)}}();function Le(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[te],function(e){return se(Te(e.data[0],le(e.data[1])))},1,r)}function Te(e,t){return O(e,{i:2},t&&t.out,t&&t.dictionary)}var Me=function(){function e(e,t){this.c=X(),this.l=0,this.v=1,Se.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,Se.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=K(e,this.o,this.v&&ye(this.o),t&&8,this.s);this.v&&(me(r,this.o),this.v=0),t&&(ge(r,r.length-8,this.c.d()),ge(r,r.length-4,this.l)),this.ondata(r,t)},e.prototype.flush=function(){Se.prototype.flush.call(this)},e}(),Fe=function(){return function(e,t){de([re,ne,function(){return[ue,Se,Me]}],this,_e.call(this,e,t),function(e){var t=new Me(e.data);onmessage=ue(t)},8,1)}}();function De(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[re,ne,function(){return[Ie]}],function(e){return se(Ie(e.data[0],e.data[1]))},2,r)}function Ie(e,t){t||(t={});var r=X(),n=e.length;r.p(e);var a=K(e,t,ye(t),8),i=a.length;return me(a,t),ge(a,i-8,r.d()),ge(a,i-4,n),a}var Oe=function(){function e(e,t){this.v=1,this.r=0,Ne.call(this,e,t)}return e.prototype.push=function(e,t){if(Ne.prototype.e.call(this,e),this.r+=e.length,this.v){var r=this.p.subarray(this.v-1),n=r.length>3?ve(r):4;if(n>r.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-r.length);this.p=r.subarray(n),this.v=0}Ne.prototype.c.call(this,t),!this.s.f||this.s.l||t||(this.v=T(this.s.p)+9,this.s={i:0},this.o=new a(0),this.push(new a(0),t))},e}(),Pe=function(){return function(e,t){var r=this;de([te,ae,function(){return[ue,Ne,Oe]}],this,_e.call(this,e,t),function(e){var t=new Oe(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ue(t)},9,0,function(e){return r.onmember&&r.onmember(e)})}}();function Re(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[te,ae,function(){return[je]}],function(e){return se(je(e.data[0],e.data[1]))},3,r)}function je(e,t){var r=ve(e);return r+8>e.length&&I(6,"invalid gzip data"),O(e.subarray(r,-8),{i:2},t&&t.out||new a(be(e)),t&&t.dictionary)}var Be=function(){function e(e,t){this.c=Y(),this.v=1,Se.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),Se.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var r=K(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(we(r,this.o),this.v=0),t&&ge(r,r.length-4,this.c.d()),this.ondata(r,t)},e.prototype.flush=function(){Se.prototype.flush.call(this)},e}(),ze=function(){return function(e,t){de([re,ie,function(){return[ue,Se,Be]}],this,_e.call(this,e,t),function(e){var t=new Be(e.data);onmessage=ue(t)},10,1)}}();function Ve(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[re,ie,function(){return[Ue]}],function(e){return se(Ue(e.data[0],e.data[1]))},4,r)}function Ue(e,t){t||(t={});var r=Y();r.p(e);var n=K(e,t,t.dictionary?6:2,4);return we(n,t),ge(n,n.length-4,r.d()),n}var He=function(){function e(e,t){Ne.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(Ne.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(xe(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Ne.prototype.c.call(this,t)},e}(),qe=function(){return function(e,t){de([te,oe,function(){return[ue,Ne,He]}],this,_e.call(this,e,t),function(e){var t=new He(e.data);onmessage=ue(t)},11,0)}}();function Ge(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),ce(e,t,[te,oe,function(){return[We]}],function(e){return se(We(e.data[0],le(e.data[1])))},5,r)}function We(e,t){return O(e.subarray(xe(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var $e=function(){function e(e,t){this.o=_e.call(this,e,t)||{},this.G=Oe,this.I=Ne,this.Z=He}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,r){e.ondata(t,r)}},e.prototype.push=function(e,t){if(this.ondata||I(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var r=new a(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}(),Xe=function(){function e(e,t){$e.call(this,e,t),this.queuedSize=0,this.G=Pe,this.I=Ee,this.Z=qe}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,r,n){e.ondata(t,r,n)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,$e.prototype.push.call(this,e,t)},e}();function Ye(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&I(7),31==e[0]&&139==e[1]&&8==e[2]?Re(e,t,r):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Le(e,t,r):Ge(e,t,r)}function Ke(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?je(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Te(e,t):We(e,t)}var Je=function(e,t,r,n){for(var i in e){var o=e[i],s=t+i,l=n;Array.isArray(o)&&(l=J(n,o[1]),o=o[0]),o instanceof a?r[s]=[o,l]:(r[s+="/"]=[new a(0),l],Je(o,s,r,n))}},Ze="undefined"!=typeof TextEncoder&&new TextEncoder,Qe="undefined"!=typeof TextDecoder&&new TextDecoder,et=0;try{Qe.decode(G,{stream:!0}),et=1}catch(At){}var tt=function(e){for(var t="",r=0;;){var n=e[r++],a=(n>127)+(n>223)+(n>239);if(r+a>e.length)return{s:t,r:M(e,r-1)};a?3==a?(n=((15&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,t+=String.fromCharCode(55296|n>>10,56320|1023&n)):t+=1&a?String.fromCharCode((31&n)<<6|63&e[r++]):String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]):t+=String.fromCharCode(n)}},rt=function(){function e(e){this.ondata=e,et?this.t=new TextDecoder:this.p=G}return e.prototype.push=function(e,t){if(this.ondata||I(5),t=!!t,this.t)return this.ondata(this.t.decode(e,{stream:!0}),t),void(t&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var r=new a(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length);var n=tt(r),i=n.s,o=n.r;t?(o.length&&I(8),this.p=null):this.p=o,this.ondata(i,t)},e}(),nt=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||I(5),this.d&&I(4),this.ondata(at(e),this.d=t||!1)},e}();function at(e,t){if(t){for(var r=new a(e.length),n=0;n<e.length;++n)r[n]=e.charCodeAt(n);return r}if(Ze)return Ze.encode(e);var i=e.length,o=new a(e.length+(e.length>>1)),s=0,l=function(e){o[s++]=e};for(n=0;n<i;++n){if(s+5>o.length){var c=new a(s+8+(i-n<<1));c.set(o),o=c}var u=e.charCodeAt(n);u<128||t?l(u):u<2048?(l(192|u>>6),l(128|63&u)):u>55295&&u<57344?(l(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++n))>>18),l(128|u>>12&63),l(128|u>>6&63),l(128|63&u)):(l(224|u>>12),l(128|u>>6&63),l(128|63&u))}return M(o,0,s)}function it(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}if(Qe)return Qe.decode(e);var a=tt(e),i=a.s;return(r=a.r).length&&I(8),i}var ot=function(e){return 1==e?3:e<6?2:9==e?1:0},st=function(e,t){return t+30+he(e,t+26)+he(e,t+28)},lt=function(e,t,r){var n=he(e,t+28),a=it(e.subarray(t+46,t+46+n),!(2048&he(e,t+8))),i=t+46+n,o=fe(e,t+20),s=r&&4294967295==o?ct(e,i):[o,fe(e,t+24),fe(e,t+42)],l=s[0],c=s[1],u=s[2];return[he(e,t+10),l,c,a,i+he(e,t+30)+he(e,t+32),u]},ct=function(e,t){for(;1!=he(e,t);t+=4+he(e,t+2));return[pe(e,t+12),pe(e,t+4),pe(e,t+20)]},ut=function(e){var t=0;if(e)for(var r in e){var n=e[r].length;n>65535&&I(9),t+=n+4}return t},dt=function(e,t,r,n,a,i,o,s){var l=n.length,c=r.extra,u=s&&s.length,d=ut(c);ge(e,t,null!=o?33639248:67324752),t+=4,null!=o&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(i<0&&8),e[t++]=a&&8,e[t++]=255&r.compression,e[t++]=r.compression>>8;var h=new Date(null==r.mtime?Date.now():r.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&I(10),ge(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=i&&(ge(e,t,r.crc),ge(e,t+4,i<0?-i-2:i),ge(e,t+8,r.size)),ge(e,t+12,l),ge(e,t+14,d),t+=16,null!=o&&(ge(e,t,u),ge(e,t+6,r.attrs),ge(e,t+10,o),t+=14),e.set(n,t),t+=l,d)for(var p in c){var g=c[p],m=g.length;ge(e,t,+p),ge(e,t+2,m),e.set(g,t+4),t+=4+m}return u&&(e.set(s,t),t+=u),t},ht=function(e,t,r,n,a){ge(e,t,101010256),ge(e,t+8,r),ge(e,t+10,r),ge(e,t+12,n),ge(e,t+16,a)},ft=function(){function e(e){this.filename=e,this.c=X(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||I(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),pt=function(){function e(e,t){var r=this;t||(t={}),ft.call(this,e),this.d=new Se(t,function(e,t){r.ondata(null,e,t)}),this.compression=8,this.flag=ot(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(At){this.ondata(At,null,t)}},e.prototype.push=function(e,t){ft.prototype.push.call(this,e,t)},e}(),gt=function(){function e(e,t){var r=this;t||(t={}),ft.call(this,e),this.d=new ke(t,function(e,t,n){r.ondata(e,t,n)}),this.compression=8,this.flag=ot(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){ft.prototype.push.call(this,e,t)},e}(),mt=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var r=at(e.filename),n=r.length,i=e.comment,o=i&&at(i),s=n!=e.filename.length||o&&i.length!=o.length,l=n+ut(e.extra)+30;n>65535&&this.ondata(I(11,0,1),null,!1);var c=new a(l);dt(c,0,e,r,s,-1);var u=[c],d=function(){for(var e=0,r=u;e<r.length;e++){var n=r[e];t.ondata(null,n,!1)}u=[]},h=this.d;this.d=0;var f=this.u.length,p=J(e,{f:r,u:s,o:o,t:function(){e.terminate&&e.terminate()},r:function(){if(d(),h){var e=t.u[f+1];e?e.r():t.d=1}h=1}}),g=0;e.ondata=function(r,n,i){if(r)t.ondata(r,n,i),t.terminate();else if(g+=n.length,u.push(n),i){var o=new a(16);ge(o,0,134695760),ge(o,4,e.crc),ge(o,8,g),ge(o,12,e.size),u.push(o),p.c=g,p.b=l+g+16,p.crc=e.crc,p.size=e.size,h&&p.r(),h=1}else h&&d()},this.u.push(p)}},e.prototype.end=function(){var e=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},e.prototype.e=function(){for(var e=0,t=0,r=0,n=0,i=this.u;n<i.length;n++){r+=46+(c=i[n]).f.length+ut(c.extra)+(c.o?c.o.length:0)}for(var o=new a(r+22),s=0,l=this.u;s<l.length;s++){var c=l[s];dt(o,e,c,c.f,c.u,-c.c-2,t,c.o),e+=46+c.f.length+ut(c.extra)+(c.o?c.o.length:0),t+=c.b}ht(o,e,this.u.length,r,t),this.ondata(null,o,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++){t[e].t()}this.d=2},e}();function vt(e,t,r){r||(r=t,t={}),"function"!=typeof r&&I(7);var n={};Je(e,"",n,t);var i=Object.keys(n),o=i.length,s=0,l=0,c=o,u=new Array(o),d=[],h=function(){for(var e=0;e<d.length;++e)d[e]()},f=function(e,t){St(function(){r(e,t)})};St(function(){f=r});var p=function(){var e=new a(l+22),t=s,r=l-s;l=0;for(var n=0;n<c;++n){var i=u[n];try{var o=i.c.length;dt(e,l,i,i.f,i.u,o);var d=30+i.f.length+ut(i.extra),h=l+d;e.set(i.c,h),dt(e,s,i,i.f,i.u,o,l,i.m),s+=16+d+(i.m?i.m.length:0),l=h+o}catch(At){return f(At,null)}}ht(e,s,u.length,r,t),f(null,e)};o||p();for(var g=function(e){var t=i[e],r=n[t],a=r[0],c=r[1],g=X(),m=a.length;g.p(a);var v=at(t),b=v.length,y=c.comment,w=y&&at(y),x=w&&w.length,_=ut(c.extra),S=0==c.level?0:8,k=function(r,n){if(r)h(),f(r,null);else{var a=n.length;u[e]=J(c,{size:m,crc:g.d(),c:n,f:v,m:w,u:b!=t.length||w&&y.length!=x,compression:S}),s+=30+b+_+a,l+=76+2*(b+_)+(x||0)+a,--o||p()}};if(b>65535&&k(I(11,0,1),null),S)if(m<16e4)try{k(null,Ae(a,c))}catch(At){k(At,null)}else d.push(Ce(a,c,k));else k(null,a)},m=0;m<c;++m)g(m);return h}function bt(e,t){t||(t={});var r={},n=[];Je(e,"",r,t);var i=0,o=0;for(var s in r){var l=r[s],c=l[0],u=l[1],d=0==u.level?0:8,h=(k=at(s)).length,f=u.comment,p=f&&at(f),g=p&&p.length,m=ut(u.extra);h>65535&&I(11);var v=d?Ae(c,u):c,b=v.length,y=X();y.p(c),n.push(J(u,{size:c.length,crc:y.d(),c:v,f:k,m:p,u:h!=s.length||p&&f.length!=g,o:i,compression:d})),i+=30+h+m+b,o+=76+2*(h+m)+(g||0)+b}for(var w=new a(o+22),x=i,_=o-i,S=0;S<n.length;++S){var k=n[S];dt(w,k.o,k,k.f,k.u,k.c.length);var C=30+k.f.length+ut(k.extra);w.set(k.c,k.o+C),dt(w,i,k,k.f,k.u,k.c.length,k.o,k.m),i+=16+C+(k.m?k.m.length:0)}return ht(w,i,n.length,_,x),w}var yt=function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}(),wt=function(){function e(){var e=this;this.i=new Ne(function(t,r){e.ondata(null,t,r)})}return e.prototype.push=function(e,t){try{this.i.push(e,t)}catch(At){this.ondata(At,null,t)}},e.compression=8,e}(),xt=function(){function e(e,t){var r=this;t<32e4?this.i=new Ne(function(e,t){r.ondata(null,e,t)}):(this.i=new Ee(function(e,t,n){r.ondata(e,t,n)}),this.terminate=this.i.terminate)}return e.prototype.push=function(e,t){this.i.terminate&&(e=M(e,0)),this.i.push(e,t)},e.compression=8,e}(),_t=function(){function e(e){this.onfile=e,this.k=[],this.o={0:yt},this.p=G}return e.prototype.push=function(e,t){var r=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var n=Math.min(this.c,e.length),i=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(i,!this.c):this.k[0].push(i),(e=e.subarray(n)).length)return this.push(e,t)}else{var o=0,s=0,l=void 0,c=void 0;this.p.length?e.length?((c=new a(this.p.length+e.length)).set(this.p),c.set(e,this.p.length)):c=this.p:c=e;for(var u=c.length,d=this.c,h=d&&this.d,f=function(){var e,t=fe(c,s);if(67324752==t){o=1,l=s,p.d=null,p.c=0;var n=he(c,s+6),a=he(c,s+8),i=2048&n,h=8&n,f=he(c,s+26),g=he(c,s+28);if(u>s+30+f+g){var m=[];p.k.unshift(m),o=2;var v,b=fe(c,s+18),y=fe(c,s+22),w=it(c.subarray(s+30,s+=30+f),!i);4294967295==b?(e=h?[-2]:ct(c,s),b=e[0],y=e[1]):h&&(b=-1),s+=g,p.c=b;var x={name:w,compression:a,start:function(){if(x.ondata||I(5),b){var e=r.o[a];e||x.ondata(I(14,"unknown compression type "+a,1),null,!1),(v=b<0?new e(w):new e(w,b,y)).ondata=function(e,t,r){x.ondata(e,t,r)};for(var t=0,n=m;t<n.length;t++){var i=n[t];v.push(i,!1)}r.k[0]==m&&r.c?r.d=v:v.push(G,!0)}else x.ondata(null,G,!0)},terminate:function(){v&&v.terminate&&v.terminate()}};b>=0&&(x.size=b,x.originalSize=y),p.onfile(x)}return"break"}if(d){if(134695760==t)return l=s+=12+(-2==d&&8),o=3,p.c=0,"break";if(33639248==t)return l=s-=4,o=3,p.c=0,"break"}},p=this;s<u-4;++s){if("break"===f())break}if(this.p=G,d<0){var g=o?c.subarray(0,l-12-(-2==d&&8)-(134695760==fe(c,l-16)&&4)):c.subarray(0,s);h?h.push(g,!!o):this.k[+(2==o)].push(g)}if(2&o)return this.push(c.subarray(s),t);this.p=c.subarray(s)}t&&(this.c&&I(13),this.p=null)},e.prototype.register=function(e){this.o[e.compression]=e},e}(),St="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function kt(e,t,r){r||(r=t,t={}),"function"!=typeof r&&I(7);var n=[],i=function(){for(var e=0;e<n.length;++e)n[e]()},o={},s=function(e,t){St(function(){r(e,t)})};St(function(){s=r});for(var l=e.length-22;101010256!=fe(e,l);--l)if(!l||e.length-l>65558)return s(I(13,0,1),null),i;var c=he(e,l+8);if(c){var u=c,d=fe(e,l+16),h=4294967295==d||65535==u;if(h){var f=fe(e,l-12);(h=101075792==fe(e,f))&&(u=c=fe(e,f+32),d=fe(e,f+48))}for(var p=t&&t.filter,g=function(t){var r=lt(e,d,h),u=r[0],f=r[1],g=r[2],m=r[3],v=r[4],b=r[5],y=st(e,b);d=v;var w=function(e,t){e?(i(),s(e,null)):(t&&(o[m]=t),--c||s(null,o))};if(!p||p({name:m,size:f,originalSize:g,compression:u}))if(u)if(8==u){var x=e.subarray(y,y+f);if(g<524288||f>.8*g)try{w(null,Te(x,{out:new a(g)}))}catch(l){w(l,null)}else n.push(Le(x,{size:g},w))}else w(I(14,"unknown compression type "+u,1),null);else w(null,M(e,y,y+f));else w(null,null)},m=0;m<u;++m)g()}else s(null,{});return i}function Ct(e,t){for(var r={},n=e.length-22;101010256!=fe(e,n);--n)(!n||e.length-n>65558)&&I(13);var i=he(e,n+8);if(!i)return{};var o=fe(e,n+16),s=4294967295==o||65535==i;if(s){var l=fe(e,n-12);(s=101075792==fe(e,l))&&(i=fe(e,l+32),o=fe(e,l+48))}for(var c=t&&t.filter,u=0;u<i;++u){var d=lt(e,o,s),h=d[0],f=d[1],p=d[2],g=d[3],m=d[4],v=d[5],b=st(e,v);o=m,c&&!c({name:g,size:f,originalSize:p,compression:h})||(h?8==h?r[g]=Te(e.subarray(b,b+f),{out:new a(p)}):I(14,"unknown compression type "+h):r[g]=M(e,b,b+f))}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{"default":()=>s});var n=r(462),a=r(463),i=r(464),o=r(466);function s(e,t){return(0,n["default"])(e)||(0,a["default"])(e,t)||(0,i["default"])(e,t)||(0,o["default"])()}},(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.r(t),r.d(t,{"default":()=>n})},(e,t,r)=>{"use strict";function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r["return"]&&(o=r["return"](),Object(o)!==o))return}finally{if(c)throw a}}return s}}r.r(t),r.d(t,{"default":()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{"default":()=>a});var n=r(465);function a(e,t){if(e){if("string"==typeof e)return(0,n["default"])(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n["default"])(e,t):void 0}}},(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{"default":()=>n})},(e,t,r)=>{"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.r(t),r.d(t,{"default":()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResolutionUnitSpecifier:()=>o.ResolutionUnitSpecifier,convertIndexedToRgb:()=>s.convertIndexedToRgb,decode:()=>l,decodeApng:()=>u,encode:()=>c,hasPngSignature:()=>i.hasPngSignature});var n=r(468),a=r(480),i=r(477),o=r(481),s=r(482);function l(e,t){return new n["default"](e,t).decode()}function c(e,t){return new a["default"](e,t).encode()}function u(e,t){return new n["default"](e,t).decodeApng()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{"default":()=>h});var n=r(469),a=r(471),i=r(472),o=r(473),s=r(476),l=r(477),c=r(478),u=r(479);function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(t,r){var n;void 0===r&&(r={}),(n=e.call(this,t)||this)._checkCrc=void 0,n._inflator=void 0,n._png=void 0,n._apng=void 0,n._end=void 0,n._hasPalette=void 0,n._palette=void 0,n._hasTransparency=void 0,n._transparency=void 0,n._compressionMethod=void 0,n._filterMethod=void 0,n._interlaceMethod=void 0,n._colorType=void 0,n._isAnimated=void 0,n._numberOfFrames=void 0,n._numberOfPlays=void 0,n._frames=void 0,n._writingDataChunks=void 0;var i=r.checkCrc,o=void 0!==i&&i;return n._checkCrc=o,n._inflator=new a.Inflate,n._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},n._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},n._end=!1,n._hasPalette=!1,n._palette=[],n._hasTransparency=!1,n._transparency=new Uint16Array(0),n._compressionMethod=u.CompressionMethod.UNKNOWN,n._filterMethod=u.FilterMethod.UNKNOWN,n._interlaceMethod=u.InterlaceMethod.UNKNOWN,n._colorType=u.ColorType.UNKNOWN,n._isAnimated=!1,n._numberOfFrames=1,n._numberOfPlays=0,n._frames=[],n._writingDataChunks=!1,n.setBigEndian(),n}var r,n;n=e,(r=t).prototype=Object.create(n.prototype),r.prototype.constructor=r,d(r,n);var h=t.prototype;return h.decode=function(){for((0,l.checkSignature)(this);!this._end;){var e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png},h.decodeApng=function(){for((0,l.checkSignature)(this);!this._end;){var e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng},h.decodeChunk=function(e,t){var r=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case c.textChunkName:(0,c.decodetEXt)(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-r!==e)throw new Error("Length mismatch while decoding chunk "+t);this._checkCrc?(0,i.checkCrc)(this,e+4,t):this.skip(4)},h.decodeApngChunk=function(e,t){var r=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=r+e}if(this.offset-r!==e)throw new Error("Length mismatch while decoding chunk "+t);this._checkCrc?(0,i.checkCrc)(this,e+4,t):this.skip(4)},h.decodeIHDR=function(){var e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error("invalid bit depth: "+e);return e}(this.readUint8());var t,r=this.readUint8();switch(this._colorType=r,r){case u.ColorType.GREYSCALE:t=1;break;case u.ColorType.TRUECOLOUR:t=3;break;case u.ColorType.INDEXED_COLOUR:t=1;break;case u.ColorType.GREYSCALE_ALPHA:t=2;break;case u.ColorType.TRUECOLOUR_ALPHA:t=4;break;case u.ColorType.UNKNOWN:default:throw new Error("Unknown color type: "+r)}if(this._png.channels=t,this._compressionMethod=this.readUint8(),this._compressionMethod!==u.CompressionMethod.DEFLATE)throw new Error("Unsupported compression method: "+this._compressionMethod);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()},h.decodeACTL=function(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0},h.decodeFCTL=function(){var e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)},h.decodePLTE=function(e){if(e%3!=0)throw new RangeError("PLTE field length must be a multiple of 3. Got "+e);var t=e/3;this._hasPalette=!0;var r=[];this._palette=r;for(var n=0;n<t;n++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])},h.decodeIDAT=function(e){this._writingDataChunks=!0;var t=e,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,t)),this._inflator.err)throw new Error("Error while decompressing the data: "+this._inflator.err);this.skip(e)},h.decodeFDAT=function(e){this._writingDataChunks=!0;var t=e,r=this.offset+this.byteOffset;if(r+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,r,t)),this._inflator.err)throw new Error("Error while decompressing the data: "+this._inflator.err);this.skip(e)},h.decodetRNS=function(e){switch(this._colorType){case u.ColorType.GREYSCALE:case u.ColorType.TRUECOLOUR:if(e%2!=0)throw new RangeError("tRNS chunk length must be a multiple of 2. Got "+e);if(e/2>this._png.width*this._png.height)throw new Error("tRNS chunk contains more alpha values than there are pixels ("+e/2+" vs "+this._png.width*this._png.height+")");this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(var t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case u.ColorType.INDEXED_COLOUR:if(e>this._palette.length)throw new Error("tRNS chunk contains more alpha values than there are palette colors ("+e+" vs "+this._palette.length+")");for(var r=0;r<e;r++){var n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break;case u.ColorType.UNKNOWN:case u.ColorType.GREYSCALE_ALPHA:case u.ColorType.TRUECOLOUR_ALPHA:default:throw new Error("tRNS chunk is not supported for color type "+this._colorType)}},h.decodeiCCP=function(e){var t=(0,c.readKeyword)(this),r=this.readUint8();if(r!==u.CompressionMethod.DEFLATE)throw new Error("Unsupported iCCP compression method: "+r);var n=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:(0,a.inflate)(n)}},h.decodepHYs=function(){var e=this.readUint32(),t=this.readUint32(),r=this.readByte();this._png.resolution={x:e,y:t,unit:r}},h.decodeApngImage=function(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(var e=0;e<this._numberOfFrames;e++){var t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(e);if(r){if(r.data=(0,s.decodeInterlaceNull)({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===e||0===r.xOffset&&0===r.yOffset&&r.width===this._png.width&&r.height===this._png.height)t.data=r.data;else{var n=this._apng.frames.at(e-1);this.disposeFrame(r,n,t),this.addFrameDataToCanvas(t,r)}this._apng.frames.push(t)}}return this._apng},h.disposeFrame=function(e,t,r){switch(e.disposeOp){case u.DisposeOpType.NONE:break;case u.DisposeOpType.BACKGROUND:for(var n=0;n<this._png.height;n++)for(var a=0;a<this._png.width;a++)for(var i=(n*e.width+a)*this._png.channels,o=0;o<this._png.channels;o++)r.data[i+o]=0;break;case u.DisposeOpType.PREVIOUS:r.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}},h.addFrameDataToCanvas=function(e,t){var r=this,n=1<<this._png.depth,a=function(e,n){return{index:((e+t.yOffset)*r._png.width+t.xOffset+n)*r._png.channels,frameIndex:(e*t.width+n)*r._png.channels}};switch(t.blendOp){case u.BlendOpType.SOURCE:for(var i=0;i<t.height;i++)for(var o=0;o<t.width;o++)for(var s=a(i,o),l=s.index,c=s.frameIndex,d=0;d<this._png.channels;d++)e.data[l+d]=t.data[c+d];break;case u.BlendOpType.OVER:for(var h=0;h<t.height;h++)for(var f=0;f<t.width;f++)for(var p=a(h,f),g=p.index,m=p.frameIndex,v=0;v<this._png.channels;v++){var b=t.data[m+this._png.channels-1]/n,y=v%(this._png.channels-1)==0?1:t.data[m+v],w=Math.floor(b*y+(1-b)*e.data[g+v]);e.data[g+v]+=w}break;default:throw new Error("Unknown blendOp")}},h.decodeImage=function(){var e;if(this._inflator.err)throw new Error("Error while decompressing the data: "+this._inflator.err);var t=this._isAnimated?(null==(e=this._frames)?void 0:e.at(0)).data:this._inflator.result;if(this._filterMethod!==u.FilterMethod.ADAPTIVE)throw new Error("Filter method "+this._filterMethod+" not supported");if(this._interlaceMethod===u.InterlaceMethod.NO_INTERLACE)this._png.data=(0,s.decodeInterlaceNull)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==u.InterlaceMethod.ADAM7)throw new Error("Interlace method "+this._interlaceMethod+" not supported");this._png.data=(0,o.decodeInterlaceAdam7)({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)},h.pushDataToFrame=function(){var e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:u.DisposeOpType.NONE,blendOp:u.BlendOpType.SOURCE,data:e}),this._inflator=new a.Inflate,this._writingDataChunks=!1},t}(n.IOBuffer)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{IOBuffer:()=>s});var n,a=r(470),i=(n=new Uint8Array(4),!((new Uint32Array(n.buffer)[0]=1)&n[0])),o={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},s=function(){function e(t,r){void 0===t&&(t=8192),void 0===r&&(r={}),this.buffer=void 0,this.byteLength=void 0,this.byteOffset=void 0,this.length=void 0,this.offset=void 0,this.lastWrittenByte=void 0,this.littleEndian=void 0,this._data=void 0,this._mark=void 0,this._marks=void 0;var n=!1;"number"==typeof t?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);var a=r.offset?r.offset>>>0:0,i=t.byteLength-a,o=a;(ArrayBuffer.isView(t)||t instanceof e)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+a),t=t.buffer),this.lastWrittenByte=n?i:0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,i),this._mark=0,this._marks=[]}var t=e.prototype;return t.available=function(e){return void 0===e&&(e=1),this.offset+e<=this.length},t.isLittleEndian=function(){return this.littleEndian},t.setLittleEndian=function(){return this.littleEndian=!0,this},t.isBigEndian=function(){return!this.littleEndian},t.setBigEndian=function(){return this.littleEndian=!1,this},t.skip=function(e){return void 0===e&&(e=1),this.offset+=e,this},t.back=function(e){return void 0===e&&(e=1),this.offset-=e,this},t.seek=function(e){return this.offset=e,this},t.mark=function(){return this._mark=this.offset,this},t.reset=function(){return this.offset=this._mark,this},t.pushMark=function(){return this._marks.push(this.offset),this},t.popMark=function(){var e=this._marks.pop();if(e===undefined)throw new Error("Mark stack empty");return this.seek(e),this},t.rewind=function(){return this.offset=0,this},t.ensureAvailable=function(e){if(void 0===e&&(e=1),!this.available(e)){var t=2*(this.offset+e),r=new Uint8Array(t);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this},t.readBoolean=function(){return 0!==this.readUint8()},t.readInt8=function(){return this._data.getInt8(this.offset++)},t.readUint8=function(){return this._data.getUint8(this.offset++)},t.readByte=function(){return this.readUint8()},t.readBytes=function(e){return void 0===e&&(e=1),this.readArray(e,"uint8")},t.readArray=function(e,t){var r=o[t].BYTES_PER_ELEMENT*e,n=this.byteOffset+this.offset,a=this.buffer.slice(n,n+r);if(this.littleEndian===i&&"uint8"!==t&&"int8"!==t){var s=new Uint8Array(this.buffer.slice(n,n+r));s.reverse();var l=new o[t](s.buffer);return this.offset+=r,l.reverse(),l}var c=new o[t](a);return this.offset+=r,c},t.readInt16=function(){var e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e},t.readUint16=function(){var e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e},t.readInt32=function(){var e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e},t.readUint32=function(){var e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e},t.readFloat32=function(){var e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e},t.readFloat64=function(){var e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e},t.readBigInt64=function(){var e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e},t.readBigUint64=function(){var e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e},t.readChar=function(){return String.fromCharCode(this.readInt8())},t.readChars=function(e){void 0===e&&(e=1);for(var t="",r=0;r<e;r++)t+=this.readChar();return t},t.readUtf8=function(e){return void 0===e&&(e=1),(0,a.decode)(this.readBytes(e))},t.decodeText=function(e,t){return void 0===e&&(e=1),void 0===t&&(t="utf8"),(0,a.decode)(this.readBytes(e),t)},t.writeBoolean=function(e){return this.writeUint8(e?255:0),this},t.writeInt8=function(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this},t.writeUint8=function(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this},t.writeByte=function(e){return this.writeUint8(e)},t.writeBytes=function(e){this.ensureAvailable(e.length);for(var t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this},t.writeInt16=function(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this},t.writeUint16=function(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this},t.writeInt32=function(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this},t.writeUint32=function(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this},t.writeFloat32=function(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this},t.writeFloat64=function(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this},t.writeBigInt64=function(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this},t.writeBigUint64=function(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this},t.writeChar=function(e){return this.writeUint8(e.charCodeAt(0))},t.writeChars=function(e){for(var t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this},t.writeUtf8=function(e){return this.writeBytes((0,a.encode)(e))},t.toArray=function(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)},t.getWrittenByteLength=function(){return this.lastWrittenByte-this.byteOffset},t._updateLastWrittenByte=function(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)},e}()},(e,t,r)=>{"use strict";function n(e,t){return void 0===t&&(t="utf8"),new TextDecoder(t).decode(e)}r.r(t),r.d(t,{decode:()=>n,encode:()=>i});var a=new TextEncoder;function i(e){return a.encode(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Deflate:()=>yr,Inflate:()=>Sr,constants:()=>Nr,"default":()=>Er,deflate:()=>wr,deflateRaw:()=>xr,gzip:()=>_r,inflate:()=>kr,inflateRaw:()=>Cr,ungzip:()=>Ar});function n(e){let t=e.length;for(;--t>=0;)e[t]=0}const a=256,i=286,o=30,s=15,l=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),c=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),u=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=new Array(576);n(h);const f=new Array(60);n(f);const p=new Array(512);n(p);const g=new Array(256);n(g);const m=new Array(29);n(m);const v=new Array(o);function b(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}let y,w,x;function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(v);const S=e=>e<256?p[e]:p[256+(e>>>7)],k=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},C=(e,t,r)=>{e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,k(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},A=(e,t,r)=>{C(e,r[2*t],r[2*t+1])},N=(e,t)=>{let r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},E=(e,t,r)=>{const n=new Array(16);let a,i,o=0;for(a=1;a<=s;a++)o=o+r[a-1]<<1,n[a]=o;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=N(n[t]++,t))}},L=e=>{let t;for(t=0;t<i;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},T=e=>{e.bi_valid>8?k(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},M=(e,t,r,n)=>{const a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]},F=(e,t,r)=>{const n=e.heap[r];let a=r<<1;for(;a<=e.heap_len&&(a<e.heap_len&&M(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!M(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n},D=(e,t,r)=>{let n,i,o,s,u=0;if(0!==e.sym_next)do{n=255&e.pending_buf[e.sym_buf+u++],n+=(255&e.pending_buf[e.sym_buf+u++])<<8,i=e.pending_buf[e.sym_buf+u++],0===n?A(e,i,t):(o=g[i],A(e,o+a+1,t),s=l[o],0!==s&&(i-=m[o],C(e,i,s)),n--,o=S(n),A(e,o,r),s=c[o],0!==s&&(n-=v[o],C(e,n,s)))}while(u<e.sym_next);A(e,256,t)},I=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,i=t.stat_desc.elems;let o,l,c,u=-1;for(e.heap_len=0,e.heap_max=573,o=0;o<i;o++)0!==r[2*o]?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[2*o+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=u<2?++u:0,r[2*c]=1,e.depth[c]=0,e.opt_len--,a&&(e.static_len-=n[2*c+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)F(e,r,o);c=i;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],F(e,r,1),l=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=l,r[2*c]=r[2*o]+r[2*l],e.depth[c]=(e.depth[o]>=e.depth[l]?e.depth[o]:e.depth[l])+1,r[2*o+1]=r[2*l+1]=c,e.heap[1]=c++,F(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const r=t.dyn_tree,n=t.max_code,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,h,f,p,g,m=0;for(f=0;f<=s;f++)e.bl_count[f]=0;for(r[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)d=e.heap[u],f=r[2*r[2*d+1]+1]+1,f>c&&(f=c,m++),r[2*d+1]=f,d>n||(e.bl_count[f]++,p=0,d>=l&&(p=o[d-l]),g=r[2*d],e.opt_len+=g*(f+p),i&&(e.static_len+=g*(a[2*d+1]+p)));if(0!==m){do{for(f=c-1;0===e.bl_count[f];)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,m-=2}while(m>0);for(f=c;0!==f;f--)for(d=e.bl_count[f];0!==d;)h=e.heap[--u],h>n||(r[2*h+1]!==f&&(e.opt_len+=(f-r[2*h+1])*r[2*h],r[2*h+1]=f),d--)}})(e,t),E(r,u,e.bl_count)},O=(e,t,r)=>{let n,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4))},P=(e,t,r)=>{let n,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<c){do{A(e,a,e.bl_tree)}while(0!==--s)}else 0!==a?(a!==i&&(A(e,a,e.bl_tree),s--),A(e,16,e.bl_tree),C(e,s-3,2)):s<=10?(A(e,17,e.bl_tree),C(e,s-3,3)):(A(e,18,e.bl_tree),C(e,s-11,7));s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4)}};let R=!1;const j=(e,t,r,n)=>{C(e,0+(n?1:0),3),T(e),k(e,r),k(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r};var B=(e,t,r,n)=>{let i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),I(e,e.l_desc),I(e,e.d_desc),s=(e=>{let t;for(O(e,e.dyn_ltree,e.l_desc.max_code),O(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?j(e,t,r,n):4===e.strategy||o===i?(C(e,2+(n?1:0),3),D(e,h,f)):(C(e,4+(n?1:0),3),((e,t,r,n)=>{let a;for(C(e,t-257,5),C(e,r-1,5),C(e,n-4,4),a=0;a<n;a++)C(e,e.bl_tree[2*d[a]+1],3);P(e,e.dyn_ltree,t-1),P(e,e.dyn_dtree,r-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),D(e,e.dyn_ltree,e.dyn_dtree)),L(e),n&&T(e)},z={_tr_init:e=>{R||((()=>{let e,t,r,n,a;const d=new Array(16);for(r=0,n=0;n<28;n++)for(m[n]=r,e=0;e<1<<l[n];e++)g[r++]=n;for(g[r-1]=n,a=0,n=0;n<16;n++)for(v[n]=a,e=0;e<1<<c[n];e++)p[a++]=n;for(a>>=7;n<o;n++)for(v[n]=a<<7,e=0;e<1<<c[n]-7;e++)p[256+a++]=n;for(t=0;t<=s;t++)d[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,d[8]++;for(;e<=255;)h[2*e+1]=9,e++,d[9]++;for(;e<=279;)h[2*e+1]=7,e++,d[7]++;for(;e<=287;)h[2*e+1]=8,e++,d[8]++;for(E(h,287,d),e=0;e<o;e++)f[2*e+1]=5,f[2*e]=N(e,5);y=new b(h,l,257,i,s),w=new b(f,c,0,o,s),x=new b(new Array(0),u,0,19,7)})(),R=!0),e.l_desc=new _(e.dyn_ltree,y),e.d_desc=new _(e.dyn_dtree,w),e.bl_desc=new _(e.bl_tree,x),e.bi_buf=0,e.bi_valid=0,L(e)},_tr_stored_block:j,_tr_flush_block:B,_tr_tally:(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+a+1)]++,e.dyn_dtree[2*S(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{C(e,2,3),A(e,256,h),(e=>{16===e.bi_valid?(k(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var V=(e,t,r,n)=>{let a=65535&e,i=e>>>16&65535,o=0;for(;0!==r;){o=r>2e3?2e3:r,r-=o;do{a=a+t[n++]|0,i=i+a|0}while(--o);a%=65521,i%=65521}return a|i<<16};const U=new Uint32Array((()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t})());var H=(e,t,r,n)=>{const a=U,i=n+r;e^=-1;for(let r=n;r<i;r++)e=e>>>8^a[255&(e^t[r])];return-1^e},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},G={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:W,_tr_stored_block:$,_tr_flush_block:X,_tr_tally:Y,_tr_align:K}=z,{Z_NO_FLUSH:J,Z_PARTIAL_FLUSH:Z,Z_FULL_FLUSH:Q,Z_FINISH:ee,Z_BLOCK:te,Z_OK:re,Z_STREAM_END:ne,Z_STREAM_ERROR:ae,Z_DATA_ERROR:ie,Z_BUF_ERROR:oe,Z_DEFAULT_COMPRESSION:se,Z_FILTERED:le,Z_HUFFMAN_ONLY:ce,Z_RLE:ue,Z_FIXED:de,Z_DEFAULT_STRATEGY:he,Z_UNKNOWN:fe,Z_DEFLATED:pe}=G,ge=258,me=262,ve=42,be=113,ye=666,we=(e,t)=>(e.msg=q[t],t),xe=e=>2*e-(e>4?9:0),_e=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Se=e=>{let t,r,n,a=e.w_size;t=e.hash_size,n=t;do{r=e.head[--n],e.head[n]=r>=a?r-a:0}while(--t);t=a,n=t;do{r=e.prev[--n],e.prev[n]=r>=a?r-a:0}while(--t)};let ke=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const Ce=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},Ae=(e,t)=>{X(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ce(e.strm)},Ne=(e,t)=>{e.pending_buf[e.pending++]=t},Ee=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Le=(e,t,r,n)=>{let a=e.avail_in;return a>n&&(a=n),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),r),1===e.state.wrap?e.adler=V(e.adler,t,a,r):2===e.state.wrap&&(e.adler=H(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)},Te=(e,t)=>{let r,n,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-me?e.strstart-(e.w_size-me):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+ge;let f=c[i+o-1],p=c[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,c[r+o]===p&&c[r+o-1]===f&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<h);if(n=ge-(h-i),i=h-ge,n>o){if(e.match_start=t,o=n,n>=s)break;f=c[i+o-1],p=c[i+o]}}}while((t=d[t&u])>l&&0!==--a);return o<=e.lookahead?o:e.lookahead},Me=e=>{const t=e.w_size;let r,n,a;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-me)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Se(e),n+=t),0===e.strm.avail_in)break;if(r=Le(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=ke(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=ke(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<me&&0!==e.strm.avail_in)},Fe=(e,t)=>{let r,n,a,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a)break;if(a=e.strm.avail_out-a,n=e.strstart-e.block_start,r>n+e.strm.avail_in&&(r=n+e.strm.avail_in),r>a&&(r=a),r<i&&(0===r&&t!==ee||t===J||r!==n+e.strm.avail_in))break;o=t===ee&&r===n+e.strm.avail_in?1:0,$(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ce(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(Le(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(0===o);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==J&&t!==ee&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Le(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,i=a>e.w_size?e.w_size:a,n=e.strstart-e.block_start,(n>=i||(n||t===ee)&&t!==J&&0===e.strm.avail_in&&n<=a)&&(r=n>a?a:n,o=t===ee&&0===e.strm.avail_in&&r===n?1:0,$(e,e.block_start,r,o),e.block_start+=r,Ce(e.strm)),o?3:1)},De=(e,t)=>{let r,n;for(;;){if(e.lookahead<me){if(Me(e),e.lookahead<me&&t===J)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-me&&(e.match_length=Te(e,r)),e.match_length>=3)if(n=Y(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ke(e,e.ins_h,e.window[e.strstart+1]);else n=Y(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Ae(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===ee?(Ae(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ae(e,!1),0===e.strm.avail_out)?1:2},Ie=(e,t)=>{let r,n,a;for(;;){if(e.lookahead<me){if(Me(e),e.lookahead<me&&t===J)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-me&&(e.match_length=Te(e,r),e.match_length<=5&&(e.strategy===le||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,n=Y(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(Ae(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(n=Y(e,0,e.window[e.strstart-1]),n&&Ae(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Y(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===ee?(Ae(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ae(e,!1),0===e.strm.avail_out)?1:2};function Oe(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}const Pe=[new Oe(0,0,0,0,Fe),new Oe(4,4,8,4,De),new Oe(4,5,16,8,De),new Oe(4,6,32,32,De),new Oe(4,4,16,16,Ie),new Oe(8,16,32,32,Ie),new Oe(8,16,128,128,Ie),new Oe(8,32,128,256,Ie),new Oe(32,128,258,1024,Ie),new Oe(32,258,258,4096,Ie)];function Re(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=pe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),_e(this.dyn_ltree),_e(this.dyn_dtree),_e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),_e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),_e(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const je=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ve&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==be&&t.status!==ye?1:0},Be=e=>{if(je(e))return we(e,ae);e.total_in=e.total_out=0,e.data_type=fe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?ve:be,e.adler=2===t.wrap?0:1,t.last_flush=-2,W(t),re},ze=e=>{const t=Be(e);var r;return t===re&&((r=e.state).window_size=2*r.w_size,_e(r.head),r.max_lazy_match=Pe[r.level].max_lazy,r.good_match=Pe[r.level].good_length,r.nice_match=Pe[r.level].nice_length,r.max_chain_length=Pe[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),t},Ve=(e,t,r,n,a,i)=>{if(!e)return ae;let o=1;if(t===se&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>9||r!==pe||n<8||n>15||t<0||t>9||i<0||i>de||8===n&&1!==o)return we(e,ae);8===n&&(n=9);const s=new Re;return e.state=s,s.strm=e,s.status=ve,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=i,s.method=r,ze(e)};var Ue={deflateInit:(e,t)=>Ve(e,t,pe,15,8,he),deflateInit2:Ve,deflateReset:ze,deflateResetKeep:Be,deflateSetHeader:(e,t)=>je(e)||2!==e.state.wrap?ae:(e.state.gzhead=t,re),deflate:(e,t)=>{if(je(e)||t>te||t<0)return e?we(e,ae):ae;const r=e.state;if(!e.output||0!==e.avail_in&&!e.input||r.status===ye&&t!==ee)return we(e,0===e.avail_out?oe:ae);const n=r.last_flush;if(r.last_flush=t,0!==r.pending){if(Ce(e),0===e.avail_out)return r.last_flush=-1,re}else if(0===e.avail_in&&xe(t)<=xe(n)&&t!==ee)return we(e,oe);if(r.status===ye&&0!==e.avail_in)return we(e,oe);if(r.status===ve&&0===r.wrap&&(r.status=be),r.status===ve){let t=pe+(r.w_bits-8<<4)<<8,n=-1;if(n=r.strategy>=ce||r.level<2?0:r.level<6?1:6===r.level?2:3,t|=n<<6,0!==r.strstart&&(t|=32),t+=31-t%31,Ee(r,t),0!==r.strstart&&(Ee(r,e.adler>>>16),Ee(r,65535&e.adler)),e.adler=1,r.status=be,Ce(e),0!==r.pending)return r.last_flush=-1,re}if(57===r.status)if(e.adler=0,Ne(r,31),Ne(r,139),Ne(r,8),r.gzhead)Ne(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ne(r,255&r.gzhead.time),Ne(r,r.gzhead.time>>8&255),Ne(r,r.gzhead.time>>16&255),Ne(r,r.gzhead.time>>24&255),Ne(r,9===r.level?2:r.strategy>=ce||r.level<2?4:0),Ne(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ne(r,255&r.gzhead.extra.length),Ne(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=H(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ne(r,0),Ne(r,0),Ne(r,0),Ne(r,0),Ne(r,0),Ne(r,9===r.level?2:r.strategy>=ce||r.level<2?4:0),Ne(r,3),r.status=be,Ce(e),0!==r.pending)return r.last_flush=-1,re;if(69===r.status){if(r.gzhead.extra){let t=r.pending,n=(65535&r.gzhead.extra.length)-r.gzindex;for(;r.pending+n>r.pending_buf_size;){let a=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>t&&(e.adler=H(e.adler,r.pending_buf,r.pending-t,t)),r.gzindex+=a,Ce(e),0!==r.pending)return r.last_flush=-1,re;t=0,n-=a}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+n),r.pending),r.pending+=n,r.gzhead.hcrc&&r.pending>t&&(e.adler=H(e.adler,r.pending_buf,r.pending-t,t)),r.gzindex=0}r.status=73}if(73===r.status){if(r.gzhead.name){let t,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=H(e.adler,r.pending_buf,r.pending-n,n)),Ce(e),0!==r.pending)return r.last_flush=-1,re;n=0}t=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ne(r,t)}while(0!==t);r.gzhead.hcrc&&r.pending>n&&(e.adler=H(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=91}if(91===r.status){if(r.gzhead.comment){let t,n=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=H(e.adler,r.pending_buf,r.pending-n,n)),Ce(e),0!==r.pending)return r.last_flush=-1,re;n=0}t=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ne(r,t)}while(0!==t);r.gzhead.hcrc&&r.pending>n&&(e.adler=H(e.adler,r.pending_buf,r.pending-n,n))}r.status=103}if(103===r.status){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(Ce(e),0!==r.pending))return r.last_flush=-1,re;Ne(r,255&e.adler),Ne(r,e.adler>>8&255),e.adler=0}if(r.status=be,Ce(e),0!==r.pending)return r.last_flush=-1,re}if(0!==e.avail_in||0!==r.lookahead||t!==J&&r.status!==ye){let n=0===r.level?Fe(r,t):r.strategy===ce?((e,t)=>{let r;for(;;){if(0===e.lookahead&&(Me(e),0===e.lookahead)){if(t===J)return 1;break}if(e.match_length=0,r=Y(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ae(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ee?(Ae(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ae(e,!1),0===e.strm.avail_out)?1:2})(r,t):r.strategy===ue?((e,t)=>{let r,n,a,i;const o=e.window;for(;;){if(e.lookahead<=ge){if(Me(e),e.lookahead<=ge&&t===J)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(a=e.strstart-1,n=o[a],n===o[++a]&&n===o[++a]&&n===o[++a])){i=e.strstart+ge;do{}while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i);e.match_length=ge-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=Y(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Y(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ae(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ee?(Ae(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Ae(e,!1),0===e.strm.avail_out)?1:2})(r,t):Pe[r.level].func(r,t);if(3!==n&&4!==n||(r.status=ye),1===n||3===n)return 0===e.avail_out&&(r.last_flush=-1),re;if(2===n&&(t===Z?K(r):t!==te&&($(r,0,0,!1),t===Q&&(_e(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ce(e),0===e.avail_out))return r.last_flush=-1,re}return t!==ee?re:r.wrap<=0?ne:(2===r.wrap?(Ne(r,255&e.adler),Ne(r,e.adler>>8&255),Ne(r,e.adler>>16&255),Ne(r,e.adler>>24&255),Ne(r,255&e.total_in),Ne(r,e.total_in>>8&255),Ne(r,e.total_in>>16&255),Ne(r,e.total_in>>24&255)):(Ee(r,e.adler>>>16),Ee(r,65535&e.adler)),Ce(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?re:ne)},deflateEnd:e=>{if(je(e))return ae;const t=e.state.status;return e.state=null,t===be?we(e,ie):re},deflateSetDictionary:(e,t)=>{let r=t.length;if(je(e))return ae;const n=e.state,a=n.wrap;if(2===a||1===a&&n.status!==ve||n.lookahead)return ae;if(1===a&&(e.adler=V(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){0===a&&(_e(n.head),n.strstart=0,n.block_start=0,n.insert=0);let e=new Uint8Array(n.w_size);e.set(t.subarray(r-n.w_size,r),0),t=e,r=n.w_size}const i=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,Me(n);n.lookahead>=3;){let e=n.strstart,t=n.lookahead-2;do{n.ins_h=ke(n,n.ins_h,n.window[e+3-1]),n.prev[e&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=e,e++}while(--t);n.strstart=e,n.lookahead=2,Me(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=o,e.input=s,e.avail_in=i,n.wrap=a,re},deflateInfo:"pako deflate (from Nodeca project)"};const He=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var qe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const t in r)He(r,t)&&(e[t]=r[t])}}return e},Ge=e=>{let t=0;for(let r=0,n=e.length;r<n;r++)t+=e[r].length;const r=new Uint8Array(t);for(let t=0,n=0,a=e.length;t<a;t++){let a=e[t];r.set(a,n),n+=a.length}return r};let We=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Lr){We=!1}const $e=new Uint8Array(256);for(let e=0;e<256;e++)$e[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;$e[254]=$e[254]=1;var Xe=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,r,n,a,i,o=e.length,s=0;for(a=0;a<o;a++)r=e.charCodeAt(a),55296==(64512&r)&&a+1<o&&(n=e.charCodeAt(a+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),i=0,a=0;i<s;a++)r=e.charCodeAt(a),55296==(64512&r)&&a+1<o&&(n=e.charCodeAt(a+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),a++)),r<128?t[i++]=r:r<2048?(t[i++]=192|r>>>6,t[i++]=128|63&r):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|63&r):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|63&r);return t},Ye=(e,t)=>{const r=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let n,a;const i=new Array(2*r);for(a=0,n=0;n<r;){let t=e[n++];if(t<128){i[a++]=t;continue}let o=$e[t];if(o>4)i[a++]=65533,n+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&n<r;)t=t<<6|63&e[n++],o--;o>1?i[a++]=65533:t<65536?i[a++]=t:(t-=65536,i[a++]=55296|t>>10&1023,i[a++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&We)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r})(i,a)},Ke=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let r=t-1;for(;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+$e[e[r]]>t?r:t};var Je=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ze=Object.prototype.toString,{Z_NO_FLUSH:Qe,Z_SYNC_FLUSH:et,Z_FULL_FLUSH:tt,Z_FINISH:rt,Z_OK:nt,Z_STREAM_END:at,Z_DEFAULT_COMPRESSION:it,Z_DEFAULT_STRATEGY:ot,Z_DEFLATED:st}=G;function lt(e){this.options=qe({level:it,method:st,chunkSize:16384,windowBits:15,memLevel:8,strategy:ot},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Je,this.strm.avail_out=0;let r=Ue.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==nt)throw new Error(q[r]);if(t.header&&Ue.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Xe(t.dictionary):"[object ArrayBuffer]"===Ze.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=Ue.deflateSetDictionary(this.strm,e),r!==nt)throw new Error(q[r]);this._dict_set=!0}}function ct(e,t){const r=new lt(t);if(r.push(e,!0),r.err)throw r.msg||q[r.err];return r.result}lt.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let a,i;if(this.ended)return!1;for(i=t===~~t?t:!0===t?rt:Qe,"string"==typeof e?r.input=Xe(e):"[object ArrayBuffer]"===Ze.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(i===et||i===tt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(a=Ue.deflate(r,i),a===at)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ue.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===nt;if(0!==r.avail_out){if(i>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},lt.prototype.onData=function(e){this.chunks.push(e)},lt.prototype.onEnd=function(e){e===nt&&(this.result=Ge(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ut={Deflate:lt,deflate:ct,deflateRaw:function(e,t){return(t=t||{}).raw=!0,ct(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,ct(e,t)},constants:G};const dt=16209;var ht=function(e,t){let r,n,a,i,o,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,S,k,C;const A=e.state;r=e.next_in,k=e.input,n=r+(e.avail_in-5),a=e.next_out,C=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),s=A.dmax,l=A.wsize,c=A.whave,u=A.wnext,d=A.window,h=A.hold,f=A.bits,p=A.lencode,g=A.distcode,m=(1<<A.lenbits)-1,v=(1<<A.distbits)-1;e:do{f<15&&(h+=k[r++]<<f,f+=8,h+=k[r++]<<f,f+=8),b=p[h&m];t:for(;;){if(y=b>>>24,h>>>=y,f-=y,y=b>>>16&255,0===y)C[a++]=65535&b;else{if(!(16&y)){if(64&y){if(32&y){A.mode=16191;break e}e.msg="invalid literal/length code",A.mode=dt;break e}b=p[(65535&b)+(h&(1<<y)-1)];continue t}for(w=65535&b,y&=15,y&&(f<y&&(h+=k[r++]<<f,f+=8),w+=h&(1<<y)-1,h>>>=y,f-=y),f<15&&(h+=k[r++]<<f,f+=8,h+=k[r++]<<f,f+=8),b=g[h&v];;){if(y=b>>>24,h>>>=y,f-=y,y=b>>>16&255,16&y){if(x=65535&b,y&=15,f<y&&(h+=k[r++]<<f,f+=8,f<y&&(h+=k[r++]<<f,f+=8)),x+=h&(1<<y)-1,x>s){e.msg="invalid distance too far back",A.mode=dt;break e}if(h>>>=y,f-=y,y=a-i,x>y){if(y=x-y,y>c&&A.sane){e.msg="invalid distance too far back",A.mode=dt;break e}if(_=0,S=d,0===u){if(_+=l-y,y<w){w-=y;do{C[a++]=d[_++]}while(--y);_=a-x,S=C}}else if(u<y){if(_+=l+u-y,y-=u,y<w){w-=y;do{C[a++]=d[_++]}while(--y);if(_=0,u<w){y=u,w-=y;do{C[a++]=d[_++]}while(--y);_=a-x,S=C}}}else if(_+=u-y,y<w){w-=y;do{C[a++]=d[_++]}while(--y);_=a-x,S=C}for(;w>2;)C[a++]=S[_++],C[a++]=S[_++],C[a++]=S[_++],w-=3;w&&(C[a++]=S[_++],w>1&&(C[a++]=S[_++]))}else{_=a-x;do{C[a++]=C[_++],C[a++]=C[_++],C[a++]=C[_++],w-=3}while(w>2);w&&(C[a++]=C[_++],w>1&&(C[a++]=C[_++]))}break}if(64&y){e.msg="invalid distance code",A.mode=dt;break e}b=g[(65535&b)+(h&(1<<y)-1)]}}break}}while(r<n&&a<o);w=f>>3,r-=w,f-=w<<3,h&=(1<<f)-1,e.next_in=r,e.next_out=a,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=a<o?o-a+257:257-(a-o),A.hold=h,A.bits=f};const ft=15,pt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),gt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),vt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var bt=(e,t,r,n,a,i,o,s)=>{const l=s.bits;let c,u,d,h,f,p,g=0,m=0,v=0,b=0,y=0,w=0,x=0,_=0,S=0,k=0,C=null;const A=new Uint16Array(16),N=new Uint16Array(16);let E,L,T,M=null;for(g=0;g<=ft;g++)A[g]=0;for(m=0;m<n;m++)A[t[r+m]]++;for(y=l,b=ft;b>=1&&0===A[b];b--);if(y>b&&(y=b),0===b)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(v=1;v<b&&0===A[v];v++);for(y<v&&(y=v),_=1,g=1;g<=ft;g++)if(_<<=1,_-=A[g],_<0)return-1;if(_>0&&(0===e||1!==b))return-1;for(N[1]=0,g=1;g<ft;g++)N[g+1]=N[g]+A[g];for(m=0;m<n;m++)0!==t[r+m]&&(o[N[t[r+m]]++]=m);if(0===e?(C=M=o,p=20):1===e?(C=pt,M=gt,p=257):(C=mt,M=vt,p=0),k=0,m=0,g=v,f=i,w=y,x=0,d=-1,S=1<<y,h=S-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){E=g-x,o[m]+1<p?(L=0,T=o[m]):o[m]>=p?(L=M[o[m]-p],T=C[o[m]-p]):(L=96,T=0),c=1<<g-x,u=1<<w,v=u;do{u-=c,a[f+(k>>x)+u]=E<<24|L<<16|T}while(0!==u);for(c=1<<g-1;k&c;)c>>=1;if(0!==c?(k&=c-1,k+=c):k=0,m++,0===--A[g]){if(g===b)break;g=t[r+o[m]]}if(g>y&&(k&h)!==d){for(0===x&&(x=y),f+=v,w=g-x,_=1<<w;w+x<b&&(_-=A[w+x],!(_<=0));)w++,_<<=1;if(S+=1<<w,1===e&&S>852||2===e&&S>592)return 1;d=k&h,a[d]=y<<24|w<<16|f-i}}return 0!==k&&(a[f+k]=g-x<<24|64<<16),s.bits=y,0};const{Z_FINISH:yt,Z_BLOCK:wt,Z_TREES:xt,Z_OK:_t,Z_STREAM_END:St,Z_NEED_DICT:kt,Z_STREAM_ERROR:Ct,Z_DATA_ERROR:At,Z_MEM_ERROR:Nt,Z_BUF_ERROR:Et,Z_DEFLATED:Lt}=G,Tt=16180,Mt=16190,Ft=16191,Dt=16192,It=16194,Ot=16199,Pt=16200,Rt=16206,jt=16209,Bt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function zt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Vt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Tt||t.mode>16211?1:0},Ut=e=>{if(Vt(e))return Ct;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Tt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,_t},Ht=e=>{if(Vt(e))return Ct;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Ut(e)},qt=(e,t)=>{let r;if(Vt(e))return Ct;const n=e.state;return t<0?(r=0,t=-t):(r=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ct:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Ht(e))},Gt=(e,t)=>{if(!e)return Ct;const r=new zt;e.state=r,r.strm=e,r.window=null,r.mode=Tt;const n=qt(e,t);return n!==_t&&(e.state=null),n};let Wt,$t,Xt=!0;const Yt=e=>{if(Xt){Wt=new Int32Array(512),$t=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(bt(1,e.lens,0,288,Wt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;bt(2,e.lens,0,32,$t,0,e.work,{bits:5}),Xt=!1}e.lencode=Wt,e.lenbits=9,e.distcode=$t,e.distbits=5},Kt=(e,t,r,n)=>{let a;const i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(r-i.wsize,r),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>n&&(a=n),i.window.set(t.subarray(r-n,r-n+a),i.wnext),(n-=a)?(i.window.set(t.subarray(r-n,r),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0};var Jt={inflateReset:Ht,inflateReset2:qt,inflateResetKeep:Ut,inflateInit:e=>Gt(e,15),inflateInit2:Gt,inflate:(e,t)=>{let r,n,a,i,o,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,S,k=0;const C=new Uint8Array(4);let A,N;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vt(e)||!e.output||!e.input&&0!==e.avail_in)return Ct;r=e.state,r.mode===Ft&&(r.mode=Dt),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,d=s,h=l,S=_t;e:for(;;)switch(r.mode){case Tt:if(0===r.wrap){r.mode=Dt;break}for(;u<16;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(2&r.wrap&&35615===c){0===r.wbits&&(r.wbits=15),r.check=0,C[0]=255&c,C[1]=c>>>8&255,r.check=H(r.check,C,2,0),c=0,u=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=jt;break}if((15&c)!==Lt){e.msg="unknown compression method",r.mode=jt;break}if(c>>>=4,u-=4,_=8+(15&c),0===r.wbits&&(r.wbits=_),_>15||_>r.wbits){e.msg="invalid window size",r.mode=jt;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=512&c?16189:Ft,c=0,u=0;break;case 16181:for(;u<16;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(r.flags=c,(255&r.flags)!==Lt){e.msg="unknown compression method",r.mode=jt;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=jt;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&4&r.wrap&&(C[0]=255&c,C[1]=c>>>8&255,r.check=H(r.check,C,2,0)),c=0,u=0,r.mode=16182;case 16182:for(;u<32;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.head&&(r.head.time=c),512&r.flags&&4&r.wrap&&(C[0]=255&c,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,r.check=H(r.check,C,4,0)),c=0,u=0,r.mode=16183;case 16183:for(;u<16;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&4&r.wrap&&(C[0]=255&c,C[1]=c>>>8&255,r.check=H(r.check,C,2,0)),c=0,u=0,r.mode=16184;case 16184:if(1024&r.flags){for(;u<16;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&4&r.wrap&&(C[0]=255&c,C[1]=c>>>8&255,r.check=H(r.check,C,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&(f=r.length,f>s&&(f=s),f&&(r.head&&(_=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(i,i+f),_)),512&r.flags&&4&r.wrap&&(r.check=H(r.check,n,f,i)),s-=f,i+=f,r.length-=f),r.length))break e;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(0===s)break e;f=0;do{_=n[i+f++],r.head&&_&&r.length<65536&&(r.head.name+=String.fromCharCode(_))}while(_&&f<s);if(512&r.flags&&4&r.wrap&&(r.check=H(r.check,n,f,i)),s-=f,i+=f,_)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(0===s)break e;f=0;do{_=n[i+f++],r.head&&_&&r.length<65536&&(r.head.comment+=String.fromCharCode(_))}while(_&&f<s);if(512&r.flags&&4&r.wrap&&(r.check=H(r.check,n,f,i)),s-=f,i+=f,_)break e}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;u<16;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(4&r.wrap&&c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=jt;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ft;break;case 16189:for(;u<32;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}e.adler=r.check=Bt(c),c=0,u=0,r.mode=Mt;case Mt:if(0===r.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=c,r.bits=u,kt;e.adler=r.check=1,r.mode=Ft;case Ft:if(t===wt||t===xt)break e;case Dt:if(r.last){c>>>=7&u,u-=7&u,r.mode=Rt;break}for(;u<3;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}switch(r.last=1&c,c>>>=1,u-=1,3&c){case 0:r.mode=16193;break;case 1:if(Yt(r),r.mode=Ot,t===xt){c>>>=2,u-=2;break e}break;case 2:r.mode=16196;break;case 3:e.msg="invalid block type",r.mode=jt}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=jt;break}if(r.length=65535&c,c=0,u=0,r.mode=It,t===xt)break e;case It:r.mode=16195;case 16195:if(f=r.length,f){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;a.set(n.subarray(i,i+f),o),s-=f,i+=f,l-=f,o+=f,r.length-=f;break}r.mode=Ft;break;case 16196:for(;u<14;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(r.nlen=257+(31&c),c>>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=jt;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.lens[E[r.have++]]=7&c,c>>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},S=bt(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,S){e.msg="invalid code lengths set",r.mode=jt;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;k=r.lencode[c&(1<<r.lenbits)-1],m=k>>>24,v=k>>>16&255,b=65535&k,!(m<=u);){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(b<16)c>>>=m,u-=m,r.lens[r.have++]=b;else{if(16===b){for(N=m+2;u<N;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(c>>>=m,u-=m,0===r.have){e.msg="invalid bit length repeat",r.mode=jt;break}_=r.lens[r.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===b){for(N=m+3;u<N;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}c>>>=m,u-=m,_=0,f=3+(7&c),c>>>=3,u-=3}else{for(N=m+7;u<N;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}c>>>=m,u-=m,_=0,f=11+(127&c),c>>>=7,u-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=jt;break}for(;f--;)r.lens[r.have++]=_}}if(r.mode===jt)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=jt;break}if(r.lenbits=9,A={bits:r.lenbits},S=bt(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,S){e.msg="invalid literal/lengths set",r.mode=jt;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},S=bt(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,S){e.msg="invalid distances set",r.mode=jt;break}if(r.mode=Ot,t===xt)break e;case Ot:r.mode=Pt;case Pt:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=c,r.bits=u,ht(e,h),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,r.mode===Ft&&(r.back=-1);break}for(r.back=0;k=r.lencode[c&(1<<r.lenbits)-1],m=k>>>24,v=k>>>16&255,b=65535&k,!(m<=u);){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(v&&!(240&v)){for(y=m,w=v,x=b;k=r.lencode[x+((c&(1<<y+w)-1)>>y)],m=k>>>24,v=k>>>16&255,b=65535&k,!(y+m<=u);){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}c>>>=y,u-=y,r.back+=y}if(c>>>=m,u-=m,r.back+=m,r.length=b,0===v){r.mode=16205;break}if(32&v){r.back=-1,r.mode=Ft;break}if(64&v){e.msg="invalid literal/length code",r.mode=jt;break}r.extra=15&v,r.mode=16201;case 16201:if(r.extra){for(N=r.extra;u<N;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;k=r.distcode[c&(1<<r.distbits)-1],m=k>>>24,v=k>>>16&255,b=65535&k,!(m<=u);){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(!(240&v)){for(y=m,w=v,x=b;k=r.distcode[x+((c&(1<<y+w)-1)>>y)],m=k>>>24,v=k>>>16&255,b=65535&k,!(y+m<=u);){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}c>>>=y,u-=y,r.back+=y}if(c>>>=m,u-=m,r.back+=m,64&v){e.msg="invalid distance code",r.mode=jt;break}r.offset=b,r.extra=15&v,r.mode=16203;case 16203:if(r.extra){for(N=r.extra;u<N;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=jt;break}r.mode=16204;case 16204:if(0===l)break e;if(f=h-l,r.offset>f){if(f=r.offset-f,f>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=jt;break}f>r.wnext?(f-=r.wnext,p=r.wsize-f):p=r.wnext-f,f>r.length&&(f=r.length),g=r.window}else g=a,p=o-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do{a[o++]=g[p++]}while(--f);0===r.length&&(r.mode=Pt);break;case 16205:if(0===l)break e;a[o++]=r.length,l--,r.mode=Pt;break;case Rt:if(r.wrap){for(;u<32;){if(0===s)break e;s--,c|=n[i++]<<u,u+=8}if(h-=l,e.total_out+=h,r.total+=h,4&r.wrap&&h&&(e.adler=r.check=r.flags?H(r.check,a,h,o-h):V(r.check,a,h,o-h)),h=l,4&r.wrap&&(r.flags?c:Bt(c))!==r.check){e.msg="incorrect data check",r.mode=jt;break}c=0,u=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break e;s--,c+=n[i++]<<u,u+=8}if(4&r.wrap&&c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=jt;break}c=0,u=0}r.mode=16208;case 16208:S=St;break e;case jt:S=At;break e;case 16210:return Nt;default:return Ct}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=c,r.bits=u,(r.wsize||h!==e.avail_out&&r.mode<jt&&(r.mode<Rt||t!==yt))&&Kt(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,r.total+=h,4&r.wrap&&h&&(e.adler=r.check=r.flags?H(r.check,a,h,e.next_out-h):V(r.check,a,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ft?128:0)+(r.mode===Ot||r.mode===It?256:0),(0===d&&0===h||t===yt)&&S===_t&&(S=Et),S},inflateEnd:e=>{if(Vt(e))return Ct;let t=e.state;return t.window&&(t.window=null),e.state=null,_t},inflateGetHeader:(e,t)=>{if(Vt(e))return Ct;const r=e.state;return 2&r.wrap?(r.head=t,t.done=!1,_t):Ct},inflateSetDictionary:(e,t)=>{const r=t.length;let n,a,i;return Vt(e)?Ct:(n=e.state,0!==n.wrap&&n.mode!==Mt?Ct:n.mode===Mt&&(a=1,a=V(a,t,r,0),a!==n.check)?At:(i=Kt(e,t,r,r),i?(n.mode=16210,Nt):(n.havedict=1,_t)))},inflateInfo:"pako inflate (from Nodeca project)"};var Zt=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Qt=Object.prototype.toString,{Z_NO_FLUSH:er,Z_FINISH:tr,Z_OK:rr,Z_STREAM_END:nr,Z_NEED_DICT:ar,Z_STREAM_ERROR:ir,Z_DATA_ERROR:or,Z_MEM_ERROR:sr}=G;function lr(e){this.options=qe({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Je,this.strm.avail_out=0;let r=Jt.inflateInit2(this.strm,t.windowBits);if(r!==rr)throw new Error(q[r]);if(this.header=new Zt,Jt.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Xe(t.dictionary):"[object ArrayBuffer]"===Qt.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Jt.inflateSetDictionary(this.strm,t.dictionary),r!==rr)))throw new Error(q[r])}function cr(e,t){const r=new lr(t);if(r.push(e),r.err)throw r.msg||q[r.err];return r.result}lr.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let i,o,s;if(this.ended)return!1;for(o=t===~~t?t:!0===t?tr:er,"[object ArrayBuffer]"===Qt.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),i=Jt.inflate(r,o),i===ar&&a&&(i=Jt.inflateSetDictionary(r,a),i===rr?i=Jt.inflate(r,o):i===or&&(i=ar));r.avail_in>0&&i===nr&&r.state.wrap>0&&0!==e[r.next_in];)Jt.inflateReset(r),i=Jt.inflate(r,o);switch(i){case ir:case or:case ar:case sr:return this.onEnd(i),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||i===nr))if("string"===this.options.to){let e=Ke(r.output,r.next_out),t=r.next_out-e,a=Ye(r.output,e);r.next_out=t,r.avail_out=n-t,t&&r.output.set(r.output.subarray(e,e+t),0),this.onData(a)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(i!==rr||0!==s){if(i===nr)return i=Jt.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},lr.prototype.onData=function(e){this.chunks.push(e)},lr.prototype.onEnd=function(e){e===rr&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ge(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ur={Inflate:lr,inflate:cr,inflateRaw:function(e,t){return(t=t||{}).raw=!0,cr(e,t)},ungzip:cr,constants:G};const{Deflate:dr,deflate:hr,deflateRaw:fr,gzip:pr}=ut,{Inflate:gr,inflate:mr,inflateRaw:vr,ungzip:br}=ur;var yr=dr,wr=hr,xr=fr,_r=pr,Sr=gr,kr=mr,Cr=vr,Ar=br,Nr=G,Er={Deflate:dr,deflate:hr,deflateRaw:fr,gzip:pr,Inflate:gr,inflate:mr,inflateRaw:vr,ungzip:br,constants:G}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkCrc:()=>c,writeCrc:()=>u});for(var n=[],a=0;a<256;a++){for(var i=a,o=0;o<8;o++)1&i?i=3988292384^i>>>1:i>>>=1;n[a]=i}var s=4294967295;function l(e,t){return(function(e,t,r){for(var a=e,i=0;i<r;i++)a=n[255&(a^t[i])]^a>>>8;return a}(s,e,t)^s)>>>0}function c(e,t,r){var n=e.readUint32(),a=l(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==n)throw new Error("CRC mismatch for chunk "+r+". Expected "+n+", found "+a)}function u(e,t){e.writeUint32(l(new Uint8Array(e.buffer,e.byteOffset+e.offset-t,t),t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{decodeInterlaceAdam7:()=>o});var n=r(474),a=new Uint16Array([255]),i=255===new Uint8Array(a.buffer)[0];function o(e){for(var t=e.data,r=e.width,a=e.height,o=e.channels,l=e.depth,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],u=Math.ceil(l/8)*o,d=new Uint8Array(a*r*u),h=0,f=0;f<7;f++){var p=c[f],g=Math.ceil((r-p.x)/p.xStep),m=Math.ceil((a-p.y)/p.yStep);if(!(g<=0||m<=0))for(var v=g*u,b=new Uint8Array(v),y=0;y<m;y++){var w=t[h++],x=t.subarray(h,h+v);h+=v;var _=new Uint8Array(v);(0,n.applyUnfilter)(w,x,_,b,v,u),b.set(_);for(var S=0;S<g;S++){var k=p.x+S*p.xStep,C=p.y+y*p.yStep;if(!(k>=r||C>=a))for(var A=0;A<u;A++)d[(C*r+k)*u+A]=_[S*u+A]}}}if(16===l){var N=new Uint16Array(d.buffer);if(i)for(var E=0;E<N.length;E++)N[E]=s(N[E]);return N}return d}function s(e){return(255&e)<<8|e>>8&255}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyUnfilter:()=>a});var n=r(475);function a(e,t,r,a,i,o){switch(e){case 0:(0,n.unfilterNone)(t,r,i);break;case 1:(0,n.unfilterSub)(t,r,i,o);break;case 2:(0,n.unfilterUp)(t,r,a,i);break;case 3:(0,n.unfilterAverage)(t,r,a,i,o);break;case 4:(0,n.unfilterPaeth)(t,r,a,i,o);break;default:throw new Error("Unsupported filter: "+e)}}},(e,t,r)=>{"use strict";function n(e,t,r){for(var n=0;n<r;n++)t[n]=e[n]}function a(e,t,r,n){for(var a=0;a<n;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-n]&255}function i(e,t,r,n){var a=0;if(0===r.length)for(;a<n;a++)t[a]=e[a];else for(;a<n;a++)t[a]=e[a]+r[a]&255}function o(e,t,r,n,a){var i=0;if(0===r.length){for(;i<a;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+(t[i-a]>>1)&255}else{for(;i<a;i++)t[i]=e[i]+(r[i]>>1)&255;for(;i<n;i++)t[i]=e[i]+(t[i-a]+r[i]>>1)&255}}function s(e,t,r,n,a){var i=0;if(0===r.length){for(;i<a;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-a]&255}else{for(;i<a;i++)t[i]=e[i]+r[i]&255;for(;i<n;i++)t[i]=e[i]+l(t[i-a],r[i],r[i-a])&255}}function l(e,t,r){var n=e+t-r,a=Math.abs(n-e),i=Math.abs(n-t),o=Math.abs(n-r);return a<=i&&a<=o?e:i<=o?t:r}r.r(t),r.d(t,{unfilterAverage:()=>o,unfilterNone:()=>n,unfilterPaeth:()=>s,unfilterSub:()=>a,unfilterUp:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{decodeInterlaceNull:()=>s});var n=r(475),a=new Uint16Array([255]),i=255===new Uint8Array(a.buffer)[0],o=new Uint8Array(0);function s(e){for(var t,r,a=e.data,s=e.width,c=e.height,u=e.channels,d=e.depth,h=Math.ceil(d/8)*u,f=Math.ceil(d/8*u*s),p=new Uint8Array(c*f),g=o,m=0,v=0;v<c;v++){switch(t=a.subarray(m+1,m+1+f),r=p.subarray(v*f,(v+1)*f),a[m]){case 0:(0,n.unfilterNone)(t,r,f);break;case 1:(0,n.unfilterSub)(t,r,f,h);break;case 2:(0,n.unfilterUp)(t,r,g,f);break;case 3:(0,n.unfilterAverage)(t,r,g,f,h);break;case 4:(0,n.unfilterPaeth)(t,r,g,f,h);break;default:throw new Error("Unsupported filter: "+a[m])}g=r,m+=f+1}if(16===d){var b=new Uint16Array(p.buffer);if(i)for(var y=0;y<b.length;y++)b[y]=l(b[y]);return b}return p}function l(e){return(255&e)<<8|e>>8&255}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkSignature:()=>i,hasPngSignature:()=>o,writeSignature:()=>a});var n=Uint8Array.of(137,80,78,71,13,10,26,10);function a(e){e.writeBytes(n)}function i(e){if(!o(e.readBytes(n.length)))throw new Error("wrong PNG signature")}function o(e){if(e.length<n.length)return!1;for(var t=0;t<n.length;t++)if(e[t]!==n[t])return!1;return!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{decodetEXt:()=>u,encodetEXt:()=>d,readKeyword:()=>h,readLatin1:()=>f,textChunkName:()=>a});var n=r(472),a="tEXt",i=0,o=new TextDecoder("latin1");function s(e){if(c(e),0===e.length||e.length>79)throw new Error("keyword length must be between 1 and 79")}var l=/^[\u0000-\u00FF]*$/;function c(e){if(!l.test(e))throw new Error("invalid latin1 text")}function u(e,t,r){var n=h(t);e[n]=f(t,r-n.length-1)}function d(e,t,r){s(t),c(r);var o=t.length+1+r.length;e.writeUint32(o),e.writeChars(a),e.writeChars(t),e.writeByte(i),e.writeChars(r),(0,n.writeCrc)(e,o+4)}function h(e){for(e.mark();e.readByte()!==i;);var t=e.offset;e.reset();var r=o.decode(e.readBytes(t-e.offset-1));return e.skip(1),s(r),r}function f(e,t){return o.decode(e.readBytes(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlendOpType:()=>l,ColorType:()=>n,CompressionMethod:()=>a,DisposeOpType:()=>s,FilterMethod:()=>i,InterlaceMethod:()=>o});var n={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},a={UNKNOWN:-1,DEFLATE:0},i={UNKNOWN:-1,ADAPTIVE:0},o={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},s={NONE:0,BACKGROUND:1,PREVIOUS:2},l={SOURCE:0,OVER:1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{"default":()=>p});var n=r(469),a=r(471),i=r(472),o=r(477),s=r(478),l=r(479);function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var f={level:3},p=function(e){function t(t,r){var n,a;return void 0===r&&(r={}),(a=e.call(this)||this)._png=void 0,a._zlibOptions=void 0,a._colorType=void 0,a._interlaceMethod=void 0,a._colorType=l.ColorType.UNKNOWN,a._zlibOptions=d({},f,r.zlib),a._png=a._checkData(t),a._interlaceMethod=null!=(n="Adam7"===r.interlace?l.InterlaceMethod.ADAM7:l.InterlaceMethod.NO_INTERLACE)?n:l.InterlaceMethod.NO_INTERLACE,a.setBigEndian(),a}var r,u;u=e,(r=t).prototype=Object.create(u.prototype),r.prototype.constructor=r,h(r,u);var p=t.prototype;return p.encode=function(){if((0,o.writeSignature)(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),4===this._png.palette[0].length&&this.encodeTRNS()),this.encodeData(),this._png.text)for(var e=0,t=Object.entries(this._png.text);e<t.length;e++){var r=t[e],n=r[0],a=r[1];(0,s.encodetEXt)(this,n,a)}return this.encodeIEND(),this.toArray()},p.encodeIHDR=function(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(l.CompressionMethod.DEFLATE),this.writeByte(l.FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),(0,i.writeCrc)(this,17)},p.encodeIEND=function(){this.writeUint32(0),this.writeChars("IEND"),(0,i.writeCrc)(this,4)},p.encodePLTE=function(){var e,t=3*(null==(e=this._png.palette)?void 0:e.length);this.writeUint32(t),this.writeChars("PLTE");for(var r,n=c(this._png.palette);!(r=n()).done;){var a=r.value;this.writeByte(a[0]),this.writeByte(a[1]),this.writeByte(a[2])}(0,i.writeCrc)(this,4+t)},p.encodeTRNS=function(){var e=this._png.palette.filter(function(e){return 255!==e.at(-1)});this.writeUint32(e.length),this.writeChars("tRNS");for(var t,r=c(e);!(t=r()).done;){var n=t.value;this.writeByte(n.at(-1))}(0,i.writeCrc)(this,4+e.length)},p.encodeIDAT=function(e){this.writeUint32(e.length),this.writeChars("IDAT"),this.writeBytes(e),(0,i.writeCrc)(this,e.length+4)},p.encodeData=function(){var e=this._png,t=e.width,r=e.height,i=e.channels,o=e.depth,s=e.data,u=o<=8?Math.ceil(t*o/8)*i:Math.ceil(t*o/8*i/2),d=(new n.IOBuffer).setBigEndian(),h=0;if(this._interlaceMethod===l.InterlaceMethod.NO_INTERLACE)for(var f=0;f<r;f++)d.writeByte(0),h=16===o?v(s,d,u,h):m(s,d,u,h);else this._interlaceMethod===l.InterlaceMethod.ADAM7&&(h=function(e,t,r,n){var a=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],i=e.width,o=e.height,s=e.channels,l=e.depth,u=0;u=16===l?s*l/8/2:s*l/8;for(var d=0;d<7;d++){var h=a[d],f=Math.floor((i-h.x+h.xStep-1)/h.xStep),p=Math.floor((o-h.y+h.yStep-1)/h.yStep);if(!(f<=0||p<=0))for(var g=f*u,m=0;m<p;m++){for(var v=h.y+m*h.yStep,b=l<=8?new Uint8Array(g):new Uint16Array(g),y=0,w=0;w<f;w++){var x=h.x+w*h.xStep;if(x<i&&v<o)for(var _=(v*i+x)*u,S=0;S<u;S++)b[y++]=t[_+S]}if(r.writeByte(0),8===l)r.writeBytes(b);else if(16===l)for(var k,C=c(b);!(k=C()).done;){var A=k.value;r.writeByte(A>>8&255),r.writeByte(255&A)}}}return n}(this._png,s,d,h));var p=d.toArray(),g=(0,a.deflate)(p,this._zlibOptions);this.encodeIDAT(g)},p._checkData=function(e){var t=function(e,t){var r=e.channels,n=void 0===r?4:r,a=e.depth,i=void 0===a?8:a;if(4!==n&&3!==n&&2!==n&&1!==n)throw new RangeError("unsupported number of channels: "+n);var o={channels:n,depth:i,colorType:l.ColorType.UNKNOWN};switch(n){case 4:o.colorType=l.ColorType.TRUECOLOUR_ALPHA;break;case 3:o.colorType=l.ColorType.TRUECOLOUR;break;case 1:o.colorType=t?l.ColorType.INDEXED_COLOUR:l.ColorType.GREYSCALE;break;case 2:o.colorType=l.ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return o}(e,e.palette),r=t.colorType,n=t.channels,a=t.depth,i={width:g(e.width,"width"),height:g(e.height,"height"),channels:n,data:e.data,depth:a,text:e.text,palette:e.palette};this._colorType=r;var o=a<8?Math.ceil(i.width*a/8)*i.height*n:i.width*i.height*n;if(i.data.length!==o)throw new RangeError("wrong data size. Found "+i.data.length+", expected "+o);return i},t}(n.IOBuffer);function g(e,t){if(Number.isInteger(e)&&e>0)return e;throw new TypeError(t+" must be a positive integer")}function m(e,t,r,n){for(var a=0;a<r;a++)t.writeByte(e[n++]);return n}function v(e,t,r,n){for(var a=0;a<r;a++)t.writeUint16(e[n++]);return n}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ResolutionUnitSpecifier:()=>n}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"}(n||(n={}))},(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){var t=e.palette,r=e.depth;if(!t)throw new Error("Color palette is undefined.");!function(e){var t=e.depth<8?Math.ceil(e.width*e.depth/8)*e.height*e.channels:e.width*e.height*e.channels;if(e.data.length!==t)throw new RangeError("wrong data size. Found "+e.data.length+", expected "+t)}(e);var a=e.width*e.height,i=a*t[0].length,o=new Uint8Array(i),s=0,l=0,c=new Uint8Array(a),u=255;switch(r){case 1:u=128;break;case 2:u=192;break;case 4:u=240;break;case 8:u=255;break;default:throw new Error("Incorrect depth value")}for(var d,h=n(e.data);!(d=h()).done;)for(var f=d.value,p=u,g=8;p&&(g-=r,c[s++]=(f&p)>>g,p>>=r,s%e.width!==0););if(e.palette)for(var m,v=n(c);!(m=v()).done;){var b=m.value,y=e.palette.at(b);if(!y)throw new Error("Incorrect index of palette color");o.set(y,l),l+=y.length}return o}r.r(t),r.d(t,{convertIndexedToRgb:()=>i})},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n,a,i=r(455),o=r(457),s=r(281),l=r(454),c=r(288),u=window,d=Math.max,h=u.Image,f=u.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),p="IMAGE-DATA",g="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/api/v1.0/logs":"http://export.api3.fusioncharts.com/api/v1.0/logs",m="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",v=function(e,t,r,n){var a=e,i=t;return isNaN(a)&&(a=(0,s.pluckNumber)(t,n)*(r/n)),isNaN(i)&&(i=(0,s.pluckNumber)(e,r)*(n/r)),{width:a,height:i}},b=function(){(0,c.triggerEvent)("exportcancelled")};function y(){var e,t,r,y,w,x,_,S,k,C,A,N,E,L=arguments[0]||{},T=0,M=!1,F={exportTargetWindow:(0,s.pluck)(L.exportTargetWindow,f?"_parent":"_self"),exportAction:L.exportAction&&"string"==typeof L.exportAction?(N=L.exportAction.toLowerCase(),[l.EXPORTACTION.DOWNLOAD,l.EXPORTACTION.SAVE,l.EXPORTACTION.DOWNLOADSAVE].indexOf(N)>=0?N:l.EXPORTACTION.DOWNLOAD):l.EXPORTACTION.DOWNLOAD,exportFileName:(0,s.pluck)(L.exportFileName,"FusionCharts"),exportHandler:(0,s.pluck)(L.exportHandler,m),exportParameters:(0,s.pluck)(L.exportParameters,""),exportFormat:(0,s.pluck)(L.exportFormat,l.EXPORTFORMAT.PNG),exportCallback:(0,s.pluck)(L.exportCallback,""),exportAtClientSide:(0,s.pluckNumber)(L.exportAtClientSide,1),exportMode:("undefined"!=typeof L.exportAtClientSide&&(A={1:l.EXPORTMODE.AUTO,0:l.EXPORTMODE.SERVER}[L.exportAtClientSide]),A=(A=L.exportMode||A||l.EXPORTMODE.AUTO).toLowerCase()),logEnabled:(0,s.pluckNumber)(L.logEnabled,0),logMode:(C=L.logMode,void 0!==C&&"string"==typeof C&&C.toUpperCase()in l.LOGMODE?l.LOGMODE[C.toUpperCase()]:l.LOGMODE.AUTO),logHandler:(0,s.pluck)(L.logHandler,g)},D=F.exportFormat.toLowerCase(),I=0,O=0,P=a.items,R=v,j=function(e,t,r){var n;return n=!!F.logEnabled,F.logMode===l.LOGMODE.CLIENT&&(n=!1),{charttype:"combined",stream_type:e||"",stream:t||"",is_single_export:!1,is_full_version:!1,version:s.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:n,parameters:["exportfilename="+F.exportFileName,"exportformat="+F.exportFormat,"exportaction="+(0,l.createExportActionOldString)(F.exportAction),"exportactionnew="+F.exportAction,"configuredexportaction="+(r||F.exportAction),"exportparameters="+F].join("|")}},B=function(){return{chartType:"combined",isSingleExport:!1,isFullVersion:!1,exportAction:F.exportAction,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[F.exportFileName,F.exportFormat].join("."),exportFormat:F.exportFormat,version:s.PROJECT_VERSION}},z=function(e){e===l.LOGMODE.CLIENT&&(0,l.logCharts)(B(),F)},V=function(e){var t,r,a;(0,c.triggerEvent)("beforeexport",n,n,n,function(){r="undefined"!=typeof u.btoa&&("Chrome"===i.browserDetails.name||"Firefox"===i.browserDetails.name||"Safari"===i.browserDetails.name||"Edge"===i.browserDetails.name||"ie"===i.browserDetails.name),F.exportMode===l.EXPORTMODE.CLIENT||F.exportMode===l.EXPORTMODE.AUTO&&r?(F.exportAction!==l.EXPORTACTION.DOWNLOAD&&F.exportAction!==l.EXPORTACTION.DOWNLOADSAVE||(t=F.exportMode===l.EXPORTMODE.AUTO?j(p,e):null,(0,i.downloadCharts)("url",e,F.exportFileName+"."+D,t,F),(0,c.triggerEvent)("exported",n,{fileName:F.exportFileName+"."+D})),F.exportAction===l.EXPORTACTION.SAVE||F.exportAction===l.EXPORTACTION.DOWNLOADSAVE?(a=F.exportAction,F.exportAction===l.EXPORTACTION.DOWNLOADSAVE&&(F.exportAction=l.EXPORTACTION.SAVE),t=j(p,e,a),F.paper={width:n,height:n},F.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,F),delete F.paper,delete F.fusioncharts,z(F.logMode)):F.logMode!==l.LOGMODE.SERVER&&(0,l.logCharts)(B(),F)):(t=j(p,e),F.paper={width:n,height:n},F.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,F),delete F.paper,delete F.fusioncharts,z(F.logMode))},b)},U=function(){if(0===(T-=1)&&M)switch(D){case"png":default:V(r.toDataURL("image/png"));break;case"jpeg":V(r.toDataURL("image/jpeg"));break;case"pdf":(0,o.addImage)(r.toDataURL("image/jpeg"),I,O),V((0,o.getDataUrl)())}},H=function(){var e=this;(0,i.drawSvgOnCanvas)({svg:arguments[0],canvas:r,x:e.x,y:e.y,width:e.width,height:e.height,useCanvas:arguments[1]},U)},q=function(t,r){var n,i;(e=a.items[t]).jsVars.instanceAPI&&(w=(w=(w=(w=e.jsVars.instanceAPI.getFromEnv("paper").toSVG(!0)).replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,""),T+=1,n=w,i=a.options["export"].useCanvas,(0,l.cacheAllImages)(n,!1,function(){n=(0,l.replaceImagesWithNonDataUrl)(n),H.call(r||e,n,i)}))};if((E={})[l.EXPORTMODE.CLIENT]=1,E[l.EXPORTMODE.AUTO]=0,E[l.EXPORTMODE.SERVER]=0,F.exportatclientside=E[F.exportMode],i.browserDetails.hasCanvas){for(function(){var e,r,n,a,i,o,s=L.charts;if(t=[],s)for(n in s)s.hasOwnProperty(n)&&(e=P[s[n].id])&&(r=s[n],i=e.width,o=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(o))&&(o=e.apiInstance.getFromEnv("chartHeight")),a=R(Number(r.width),Number(r.height),i,o),t.push({id:e.id,width:a.width,height:a.height,x:r.x,y:r.y}));else for(n in P)P.hasOwnProperty(n)&&(i=(e=P[n]).width,o=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(o))&&(o=e.apiInstance.getFromEnv("chartHeight")),t.push({id:e.id,width:i,height:o}))}(),k=0,x=t.length;k<x;k+=1)(S=t[k]).x=(0,s.pluckNumber)(S.x,5),S.y=(0,s.pluckNumber)(S.y,I+5),S.height=(0,s.pluckNumber)(S.height),S.width=(0,s.pluckNumber)(S.width),I=d(I,S.y+S.height),O=d(O,S.x+S.width);var G,W,$;I=L.imageHeight||I+5,O=L.imageWidth||O+5,G=function(){for(k=0,x=t.length;k<x;k+=1)S=t[k],k===x-1&&(M=!0),q(S.id,S)},$=L.background,(r=u.document.createElement("canvas")).id="newCanvas",r.width=O,r.height=I,r.style.border="1px solid black",(y=r.getContext("2d")).fillStyle=$&&$.bgColor||"#ffffff",y.fillRect(0,0,O,I),!$||!$.bgImage||(W=$.bgImage).match(/http:\/\/|https:\/\//)&&/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(W)[2]&&u.location.hostname!==/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(W)[2]?G():((_=new h).src=$.bgImage,_._userData=$,y.globalAlpha=(0,s.pluckNumber)($.bgImageAlpha,100)/100,_.onload=function(){var e=this._userData,t=(0,s.pluckNumber)(e.bgImageX,0),r=(0,s.pluckNumber)(e.bgImageY,0),n=R(Number(e.bgImageWidth),Number(e.bgImageHeight),this.width,this.height);try{y.drawImage(this,t,r,n.width,n.height)}finally{y.globalAlpha=1,G()}},_.onerror=function(){G()})}}t["default"]={extension:function(e){e.batchExport=y,a=e},name:"batchExportLinker",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(485)),i=r(281),o=function(e){var t=e.sender;(function(e,t){return e.getType()===t})(t,"chartAPI")&&t.registerFactory("logo",function(e){var t=e.getFromEnv("chart-attrib");(0,i.componentFactory)(e,a["default"],"logo",(0,i.getValidValue)(t.logourl,"")?1:0,[t])})};t["default"]={extension:function(e){e.addEventListener("instantiated",o)},name:"LogoExtension",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s="bottom",l="middle",c="right",u="left",d="pointer",h="tl",f={vAlign:"top",hAlign:u},p={link:{cursor:d,_cursor:d},normal:{cursor:"default",_cursor:"normal"}},g={tr:{vAlign:"top",hAlign:c},bl:{vAlign:s,hAlign:u},br:{vAlign:s,hAlign:c},cc:{vAlign:l,hAlign:l}},m=!(!window.SVGAngle&&!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),v=function(e){function t(){var t,r=t=e.call(this)||this;return r.config._context={},r.config.handler=function(e){var t=e.config;return{load:function(){var r,n=e.getGraphicalElement("logoImage"),a=e.getFromEnv("chartConfig"),i=a.borderWidth||0,s=t.logoPosition,l=t.logoScale,c=t.logoLeftMargin,u=t.logoTopMargin,d=t.logoURL,h=t.logoAlpha,f=t.logoPositionSTR,p=t.logoLink;n.show(),r=(0,o.setImageDisplayMode)("none",s.vAlign,s.hAlign,l,i,a.width,a.height,n._.RefImg),m&&(r.w=r.width||0,r.h=r.height||0),r.transform="T"+c+","+u,n.attr(r),e.getFromEnv("chart").fireChartInstanceEvent("LogoLoaded",{logoURL:d,logoAlpha:h,logoPosition:f,logoScale:l,logoLink:p})},error:function(r){var n=t.logoURL,a=t.logoAlpha,i=t.logoPositionSTR,o=t.logoScale,s=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoLoadError",{logoURL:n,logoAlpha:a,logoPosition:i,logoScale:o,logoLink:s,error:r})},mouseover:function(r){var n=(0,o.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,s=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoRollover",{logoURL:a,logoAlpha:i,logoPosition:s||h,logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY})},mouseout:function(r){var n=(0,o.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,s=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoRollout",{logoURL:a,logoAlpha:i,logoPosition:s||h,logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY})},click:function(r){var n=(0,o.getMouseCoordinate)(e.getFromEnv("chartInstance").ref,r),a=t.logoURL,i=t.logoAlpha,s=t.logoPositionSTR,l=t.logoScale,c=t.logoLink;e.getFromEnv("chart").fireChartInstanceEvent("LogoClick",{logoURL:a,logoAlpha:i,logoPosition:s||h,logoScale:l,logoLink:c,chartX:n.chartX,chartY:n.chartY,pageX:n.pageX,pageY:n.pageY},void 0,t.linkClickFN)}}}(r),r.config.linkClickFN=function(){var e=r.config.logoLink;e&&r.getFromEnv("linkClickFN").call({link:e},!0)},t}(0,a["default"])(t,e);var r=t.prototype;return r.configureAttributes=function(){var e=this,t=e.config,r=e.getFromEnv("chart-attrib");t.logoURL=(0,o.getValidValue)(r.logourl,""),t.logoPositionSTR=(0,o.pluck)(r.logoposition,h).toLowerCase(),t.logoPosition=g[t.logoPositionSTR]||f,t.logoAlpha=(0,o.pluckNumber)(r.logoalpha,100),t.logoLink=(0,o.getValidValue)(r.logolink),t.logoScale=(0,o.pluckNumber)(r.logoscale,100),t.logoLeftMargin=(0,o.pluckNumber)(r.logoleftmargin,0),t.logoTopMargin=(0,o.pluckNumber)(r.logotopmargin,0),e.setState("dirty",!0)},r._contextChanged=function(){var e,t=this.config,r=this.getFromEnv("chartConfig"),n=r.borderWidth,a=r.width,i=r.height;return n!==t._context.chartBorderWidth&&(t._context.chartBorderWidth=n,e=!0),a!==t._context.chartWidth&&(t._context.chartWidth=a,e=!0),i!==t._context.chartHeight&&(t._context.chartHeight=i,e=!0),e},r.draw=function(){var e=this,t=e.config,r=e.getGraphicalElement("logoImage"),n=t.logoURL,a=!e.getState("removed");(!a||e.getState("dirty")||e._contextChanged())&&n&&a&&(r=e.getFromEnv("animationManager").setAnimation({el:r||"image",attr:{opacity:.01*t.logoAlpha||1,src:n},component:e,container:e.getLinkedParent().getChildContainer("logoGroup")}),e.getGraphicalElement("logoImage")||(e.addGraphicalElement("logoImage",r),r.on("load",t.handler.load),r.on("error",t.handler.error),r.on("fc-click",t.handler.click),r.on("fc-mouseover",t.handler.mouseover),r.on("fc-mouseout",t.handler.mouseout)),r.css(p[t.logoLink?"link":"normal"]))},t}(i.ComponentInterface);t["default"]=v},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r="Theme";t["default"]={extension:function(e){e.addEventListener("register",function(t,n){var a,i=n[0],o=n[1];if(i&&"string"==typeof i&&"theme"===i&&o&&"object"==typeof o){if(o instanceof Array)for(a=0;a<o.length;a++)e.addDep({extension:o[a],name:o[a].name+r,type:"theme"});else e.addDep({extension:o,name:o.name+r,type:"theme"});t.preventDefault()}})},name:"ThemeEngine",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n,a,i=r(288),o="debugger";(a={outputHelpers:{text:function(e,t){a.outputTo("#"+e.eventId+" ["+(e.sender.id||e.sender).toString()+'] fired "'+e.eventType+'" event. '+("error"===e.eventType||"warning"===e.eventType?t.message:""))},event:function(e,t){this.outputTo(e,t)},verbose:function(e,t){a.outputTo(e.eventId,e.sender.id,e.eventType,t)}},outputHandler:function(e,t){"function"==typeof a.outputTo&&a.currentOutputHelper(e,t)},currentOutputHelper:n,outputTo:n,enabled:!1}).currentOutputHelper=a.outputHelpers.text;t["default"]={extension:function(e){e["debugger"]={outputFormat:function(e){var t=e;return!(!t||"function"!=typeof t.toLowerCase||"function"!=typeof a.outputHelpers[t=t.toLowerCase()])&&(a.currentOutputHelper=a.outputHelpers[t],!0)},outputTo:function(t){"function"==typeof t?a.outputTo=t:null===t&&(e[o].enable(!1),delete a.outputTo)},enable:function(t,r,n){var s,l=t,c=r,u=n;return"object"==typeof l&&1===arguments.length&&(l=(s=l).state,c=s.outputTo,u=s.outputFormat),"function"==typeof l&&("string"!=typeof c||2!==arguments.length&&!s||(u=c),c=l,l=!0),"boolean"==typeof l&&l!==a.enabled&&(a.enabled=l,a.enabled?(0,i.addListener)("*",a.outputHandler):(0,i.removeListener)("*",a.outputHandler)),"function"==typeof c&&(a.outputTo=c),e[o].outputFormat(u),a.enabled}}},name:"Debugger",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(489)),o=r(281),s=r(293),l=0;function c(e,t){var r=this.apiInstance,n=e||a,c=t||a,u=r.getChildren("dataset")[0],d=u.getChildren(),h=d.centerLabel&&d.centerLabel[0],f=r.config;h===a&&((0,o.componentFactory)(u,i["default"],"centerLabel",1,[f]),h=d.centerLabel&&d.centerLabel[0]),r.addJob("eiMethods-center-lebel"+l++,function(){var e,t,i=r.getDatasets()[0],o=i.config.piePlotOptions.innerSize;if(e=h.config,"object"!=typeof c)c=e;else{for(t in e)c[t]===a&&(c[t]=e[t]);e=Object.assign(e,c)}c.label=n,e.label=n,i.centerLabelConfig=e,o&&h&&h.draw(n||"")},s.priorityList.postRender)}t["default"]={extension:function(e){e.addEventListener("instantiated",function(e){var t=e.sender;(function(e){var t=e.getName().toLowerCase();return("doughnut2d"===t||"multilevelpie"===t)&&"dataset"===e.getType()})(t)&&t.registerFactory("centerLabel",function(){var e=t.getFromEnv("chartConfig"),r=!(!e.centerlabel&&!e.defaultcenterlabel);t.getFromEnv("chartInstance").centerLabel=c,(0,o.componentFactory)(t,i["default"],"centerLabel",r?1:0,[e])})})},name:"CenterLabelExtension",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=n(r(295)),o=r(297),s=r(281),l=r(289),c=n(r(490)),u="hidden",d="visible";(0,l.addDep)({name:"centerLabelAnimation",type:"animationRule",extension:c["default"]});t["default"]=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var r=t.prototype;return r.getName=function(){return"centerLabel"},r.getType=function(){return"centerLabel"},r.configure=function(e){var t=this.getFromEnv("chart-attrib"),r=this.getFromEnv("number-formatter"),n=e.dataLabelStyle,a=this;a.config={label:(0,s.parseUnsafeString)((0,s.pluck)(t.defaultcenterlabel,"")),font:(0,s.pluck)(t.centerlabelfont,n.fontFamily),fontSize:(0,s.pluckNumber)(t.centerlabelfontsize,parseInt(n.fontSize,10)),color:(0,s.getFirstColor)((0,s.pluck)(t.centerlabelcolor,t.valuefontcolor,e.style.inCanvasStyle.color,"555555")),alpha:(0,s.pluckNumber)(t.centerlabelalpha,100),bold:(0,s.pluckNumber)(t.centerlabelbold,n.fontWeight),italic:(0,s.pluckNumber)(t.centerlabelitalic,n.style),bgColor:(0,s.pluck)(t.centerlabelbgcolor,""),bgAlpha:(0,s.pluckNumber)(t.centerlabelbgalpha,100),borderColor:(0,s.pluck)(t.centerlabelbordercolor,n.borderColor),borderAlpha:(0,s.pluckNumber)(t.centerlabelborderalpha,100),borderThickness:(0,s.pluckNumber)(t.centerlabelborderthickness,n.borderThickness),borderRadius:(0,s.pluckNumber)(t.centerlabelborderradius,n.borderRadius),textPadding:(0,s.pluckNumber)(t.centerlabeltextpadding,n.borderPadding),padding:(0,s.pluckNumber)(t.centerlabelpadding,2),bgOval:(0,s.pluckNumber)(t.centerlabelbgoval,0),shadow:(0,s.pluckNumber)(t.showcenterlabelshadow,0),hoverColor:t.centerlabelhovercolor&&(0,s.getFirstColor)((0,s.pluck)(t.centerlabelhovercolor)),hoverAlpha:(0,s.pluckNumber)(t.centerlabelhoveralpha),toolText:(0,s.parseUnsafeString)((0,s.pluck)(t.centerlabeltooltext,s.BLANKSTRING),!1)},a.addExtEventListener("datasetrollover",function(e){var t=e.data,n=(0,s.pluck)(function(e,t,r){var n=e;if(n)for(var a,i=t.length||0;i--;)a=new RegExp(t[i],"gi"),n=n.replace(a,r[i]);return n}((0,s.parseUnsafeString)(e.sender.getFromEnv("dataSource").chart.centerlabel),["\\$value","\\$percentValue","\\$displayValue","\\$label"],[r.scale(t.value),t.pValue,t.displayValue,t.label]),"");a.draw(n,!1)},this.getFromEnv("chart").getDatasets()[0]),a.addExtEventListener("datasetrollout",function(e){a.draw((0,s.pluck)(e.sender.config.label,""),!1)},this.getFromEnv("chart").getDatasets()[0])},r.draw=function(e){var t,r,n=this,a=n.getFromEnv("chart"),i=a.config.canvasLeft+.5*a.config.canvasWidth,o=a.config.canvasTop+.5*a.config.canvasHeight,l=a.getDatasets()[0].config.innerSize,c=a.getDatasets()[0].config.innerSize,h=a.getDatasets()[0].config,f=this.config,p=n.getFromEnv("animationManager"),g=n.getFromEnv("smartLabel"),m=this.getGraphicalElement("centerLabel"),v=m,b=this.getGraphicalElement("centerLabelBg"),y=a.getChildContainer("plotGroup"),w=f.padding,x=2*f.textPadding,_={fontFamily:f.font,fontSize:f.fontSize+"px",lineHeight:1.2*f.fontSize+"px",fontWeight:f.bold?"bold":"",fontStyle:f.italic?"italic":""},S=1.414*(.5*l-w)-x,k=1.414*(.5*c-w)-x,C=n.getFromEnv("toolTipController");t=(0,s.pluck)(e,f.label),g.setStyle(_),g.useEllipsesOnOverflow(a.config.useEllipsesWhenOverflow),r=g.getSmartText(t,S,k),t?(f.bgOval&&(b=p.setAnimation({el:b||"circle",attr:{cx:i,cy:o,r:.5*l-w,visibility:d,container:y,fill:(0,s.hashify)(f.bgColor),"fill-opacity":f.bgAlpha/100,stroke:(0,s.hashify)(f.borderColor),"stroke-width":f.borderThickness,"stroke-opacity":f.borderAlpha/100},component:n})),v=p.setAnimation({el:m||"text",component:n,container:y,css:_,attr:{x:i,y:o,text:r.text,visibility:d,direction:a.config.textDirection,fill:(0,s.toRaphaelColor)({FCcolor:{color:f.color,alpha:f.alpha}}),"text-bound":f.bgOval?"none":[(0,s.toRaphaelColor)({FCcolor:{color:f.bgColor,alpha:f.bgAlpha}}),(0,s.toRaphaelColor)({FCcolor:{color:f.borderColor,alpha:f.borderAlpha}}),f.borderThickness,f.textPadding,f.borderRadius]},label:"text"}),C.enableToolTip(v,f.toolText||r.tooltext)):(v&&p.setAnimation({el:v,attr:{visibility:u},component:n}),b&&p.setAnimation({el:b,attr:{visibility:u},component:n})),m?v.attr("text")!==t&&n.centerLabelChange(t):(n.addEventListener("fc-mouseover",function(){n._centerLabelRollover(a)}),n.addEventListener("fc-mouseout",function(){n._centerLabelRollout(a)}),n.addEventListener("fc-click",function(){n._centerLabelClick(a)}),n.addGraphicalElement("centerLabel",v),n.addGraphicalElement("centerLabelBg",b)),h.lastCenterLabelConfig=f,h.centerLabelConfig=f},r.centerLabelChange=function(e){var t=this.getFromEnv("chart"),r=t.config,n=this.getFromEnv("chartInstance"),a={height:r.height,width:r.width,pixelHeight:t.getFromEnv("chartWidth"),pixelWidth:t.getFromEnv("chartHeight"),id:n.id,renderer:n.args.renderer,container:n.options.containerElement,centerLabelText:e};t.fireChartInstanceEvent("centerLabelChanged",a)},r._centerLabelRollover=function(e){var t=e.config,r=e.getFromEnv("chartInstance"),n=this.config,i={height:t.height,width:t.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:r.id,renderer:r.args.renderer,container:r.options.containerElement,centerLabelText:n&&n.label};this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelRollover",i,a,this.hoverOnCenterLabel.bind(this,e))},r._centerLabelRollout=function(e){var t=e.config,r=e.getFromEnv("chartInstance"),n=this.config,i={height:t.height,width:t.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:r.id,renderer:r.args.renderer,container:r.options.containerElement,centerLabelText:n&&n.label};this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelRollout",i,a,this.hoverOffCenterLabel.bind(this,e))},r._centerLabelClick=function(e){var t,r=e.config,n=e.getFromEnv("chartInstance"),a={height:r.height,width:r.width,pixelHeight:e.getFromEnv("chartWidth"),pixelWidth:e.getFromEnv("chartHeight"),id:n.id,renderer:n.args.renderer,container:n.options.containerElement};t=this.config,a.centerLabelText=t&&t.label,this.getFromEnv("paper").attr("text")&&e.fireChartInstanceEvent("centerLabelClick",a)},r.hoverOnCenterLabel=function(e){var t=e.getChildren("dataset")[0].config.lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.getGraphicalElement("centerLabel").attr({fill:(0,s.toRaphaelColor)({FCcolor:{color:t.hoverColor||t.color,alpha:t.hoverAlpha||t.alpha}})})},r.hoverOffCenterLabel=function(e){var t=e.getChildren("dataset")[0].config.lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.getGraphicalElement("centerLabel").attr({fill:(0,s.toRaphaelColor)({FCcolor:{color:t.color,alpha:t.alpha}})})},t}(o.ComponentInterface)},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.centerLabel.centerLabel.text.appearing":function(e){if(e.attr)return[{initialAttr:{x:e.attr.x,y:e.attr.y}}]}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(281),i=n(r(492)),o=n(r(494)),s={dragnode:!0,hlineargauge:!0,column3d:!0,mscolumn3d:!0,bar3d:!0,pareto3d:!0,msbar3d:!0,stackedcolumn3d:!0,stackedbar3d:!0,mscombi3d:!0,mscolumnline3d:!0,stackedcolumn3dline:!0,mscolumn3dlinedy:!0,stackedcolumn3dlinedy:!0,realtimearea:!0,realtimecolumn:!0,realtimeline:!0,realtimestackedarea:!0,realtimestackedcolumn:!0,angulargauge:!0,realtimelinedy:!0,kagi:!0,treemap:!0,heatmap:!0,boxandwhisker2d:!0,scatter:!0,timeseries:!0,bubble:!0,errorscatter:!0,sparkwinloss:!0,zoomscatter:!0,zoomline:!0,zoomlinedy:!0,chord:!0},l=function(e){if("chartAPI"===e.sender.getType()){var t=e.sender,r=t.getFromEnv("chartInstance");r.drawCrossline=function(e){r.drawConsolidatedToolTip(e),t.iterateComponents(function(t){"crossline-manager"===t.getType()&&(e!==a.UNDEF?t.show({value:e}):t.hide())})}}},c=function(e){var t,r,n,a=e.sender.apiInstance.getChildren("canvas");for(n=0;n<a.length;n++)(t=(t=a[n].getChildren("crosslineManagerBand"))&&t[0])&&(r=t._handlerAPI,t.config.axisScrolling=!0,r.onhoverout(e))},u=function(e){var t,r,n=e.sender.apiInstance.getChildren("canvas");for(r=0;r<n.length;r++)(t=n[r].getChildren("crosslineManagerBand"))&&t[0]&&(t[0].config.axisScrolling=!1)},d=function(e){if("canvas"===e.sender.getName()){var t,r,n=e.sender;n.registerFactory("crossLineManager",function(){var l=e.sender.getFromEnv("chart"),c=l&&l.getName();c&&!s[c.toLowerCase()]&&((0,a.componentFactory)(n,o["default"],"crosslineManagerBand"),t=n.getChildren("crosslineManagerBand")[0],r=t._handlerAPI,t.configure(),(0,a.componentFactory)(t,i["default"],"crossline"),t.addExtEventListener("fc-mouseover",r.onhover,n),t.addExtEventListener("fc-mousemove",r.onhover,n),t.addExtEventListener("fc-mouseout",r.onhoverout,n))})}};t["default"]={extension:function(e){e.addEventListener("preconfigure",l),e.addEventListener("scrollstart",c),e.addEventListener("scrollend",u),e.addEventListener("instantiated",d)},name:"crossline-manager",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s=r(289),l=n(r(493)),c=function(e){function t(){var t;return t=e.call(this)||this,(0,s.addDep)({name:"crosslineAnimation",type:"animationRule",extension:l["default"]}),t}(0,a["default"])(t,e);var r=t.prototype;return r.getName=function(){return"crossline"},r.getType=function(){return"crossline"},r.show=function(e){void 0===e&&(e={});var t=this,r=!!e.onTop,n=e.type;r!==t.config.prevRenderedOnTop&&t.hide(),!t[n]&&(n="band"),t[n](e),t.config.prevRenderedOnTop=r},r.band=function(e){void 0===e&&(e={});var t,r,n=this,a=e.managerId,i=e.x1,s=e.y1,l=e.x2,c=e.y2,u=(0,o.toRaphaelColor)({color:(0,o.pluck)(e.fillcolor,"#EEEEEE"),alpha:(0,o.pluckNumber)(e.alpha,50)}),d=n.getLinkedParent().getLinkedParent().getEffectiveDimensions(),h=[d.left,d.top,d.width,d.height].toString(),f=n.getLinkedParent().getChildContainer("crosslineBottom"),p=n.getLinkedParent().getChildContainer("crosslineTop");r=e.onTop?p:f,(t=n.getGraphicalElement("crosslineBand"+a))?e.animDuration?t.animate({path:["M",i,s,"L",l,c]},e.animDuration,"ease-in"):t.attr({path:["M",i,s,"L",l,c],"clip-rect":h}):n.addGraphicalElement("crosslineBand"+a,n.getFromEnv("paper").path({path:["M",i,s,"L",l,c],"clip-rect":h,stroke:u,fill:u,"stroke-width":e.thickness,"stroke-linecap":"butt"},r))},r.hide=function(){for(var e=this.getGraphicalElement(),t=Object.keys(e),r=t.length-1;r>-1;r--)e[t[r]].stop(o.UNDEF,!0,!0),e[t[r]].remove(),delete e[t[r]]},t}(i.ComponentInterface);t["default"]=c},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={crossline:{crossline:{path:{updating:function(e){return[{initialAttr:{path:e.el.attr("path")},finalAttr:{path:e.attr.path}}]}}}}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(281),o=r(297),s=i.hasSVG?0:.5,l=function(e,t,r){return r.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:r,label:"group"})},c=function(e){function t(){var t,r;return(t=e.call(this)||this)._handlerAPI=(r=t,{onhover:function(e,t){!r.config.axisScrolling&&r.show(t.axes?{axesInfo:t.axes}:{event:e})},onhoverout:function(e){r.hide({event:e})}}),t.mouseOutTimer=i.UNDEF,t}(0,a["default"])(t,e);var r=t.prototype;return r.getAttachedAxisInfo=function(e){void 0===e&&(e={});var t,r,n,a,o=this,s=o.getLinkedParent().getAxes(),l=e.originalEvent&&(0,i.getMouseCoordinate)(o.getLinkedParent().getFromEnv("chart-container"),e.originalEvent,o.getFromEnv("chart")),c=l&&l.chartX||0,u=l&&l.chartY||0;for(t=s.length-1;t>=0;t--)if(r=s[t].axis,!s[t].isY)return n=!!r.config.isVertical,a=r.getTranslation(),{value:n?r.getValue(u+a):r.getValue(c+a),axis:r,isVertical:n,isY:!1}},r.configure=function(){var e=this,t=e.config,r=e.getFromEnv("chartConfig"),n=e.getFromEnv("chart-attrib");t.drawCrossLine=(0,i.pluckNumber)(n.drawcrossline,r.drawcrossline,1),t.bandStyle={fillcolor:(0,i.pluck)(n.crosslinecolor,r.crosslinecolor,"#EEEEEE"),alpha:(0,i.pluckNumber)(n.crosslinealpha,r.crosslinealpha,50),thickness:(0,i.pluckNumber)(r.defaultcrosslinethickness),managerId:e.getId(),onTop:(0,i.pluckNumber)(n.drawcrosslineontop,r.drawcrosslineontop,0),cursor:"pointer",animDuration:(0,i.pluckNumber)(n.crosslineanimation,0)&&1e3*(0,i.pluckNumber)(n.crosslineanimationduration,.09)}},r.createGroup=function(){var e=this,t=e.getLinkedParent().getChildContainer("crosslineBottom"),r=e.getLinkedParent().getChildContainer("crosslineTop");!e.getChildContainer("crosslineTop")&&e.addChildContainer("crosslineTop",l("crosslineTop",r,e)),!e.getChildContainer("crosslineBottom")&&e.addChildContainer("crosslineBottom",l("crosslineBottom",t,e))},r.show=function(e){void 0===e&&(e={});var t=this,r=e.event;clearTimeout(this.mouseOutTimer),t.config.attachedCanvasAxisInfo=t.getAttachedAxisInfo(r),t._setAptAxesInfo(e.axesInfo,e.value),t._show(r)},r._setAptAxesInfo=function(e,t){void 0===e&&(e=[]);var r,n,a=e.length,o=this.config.attachedCanvasAxisInfo;if(e.length)for(n=0;n<a;n++)if((r=e[n]).axis===o.axis){o.value=r.value;break}t!==i.UNDEF&&(o.value=t)},r._show=function(e){var t,r,n,a,o,l,c=this,u=c.config,d=c.getFromEnv("chartConfig"),h=c.getChildren("crossline")[0],f=u.attachedCanvasAxisInfo,p=f.axis,g=p.getLimit().max-p.config.endPad,m=Math.round(f.value),v=f.axis.getPixel(m)-f.axis.getTranslation(),b=Object.assign({},u.bandStyle),y=c.getFromEnv("canvasConfig"),w=y.canvasTop,x=y.canvasLeft;m<0||m>g||c.config.lastIndex!==m&&u.drawCrossLine&&((n=b.thickness)===i.UNDEF&&(!1===d._hascolumn?n=1:(t=p.getPixel(0),r=p.getPixel(1),n=Math.abs(r-t))),o=v,l=n,a=Math.round(o+(l%2/2+s))-(l%2/2+s),c.createGroup(),b.thickness=n,b=f.isVertical?Object.assign(b,{x1:x,y1:a,x2:x+y.canvasWidth,y2:a}):Object.assign(b,{x1:a,y1:w,x2:a,y2:w+y.canvasHeight}),h.show(b),c.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{currentIndex:m,lastIndex:c.config.lastIndex,source:e?"mouse interaction":"public API"}),c.config.lastIndex=m)},r.hide=function(e){var t=this;void 0===e&&(e={});var r=this;this.mouseOutTimer=setTimeout(function(){r.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{lastIndex:r.config.lastIndex,source:e.event?"mouse interaction":"public API"}),delete t.config.lastIndex,t.getChildren("crossline")[0].hide()},20)},r.getType=function(){return"crossline-manager"},r.getName=function(){return"crossline-manager-band-category-axis"},t}(o.ComponentInterface);t["default"]=c},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=r(297),o=r(281),s={candlestick:!0},l=function(e){if(e.sender.getType&&"chartAPI"===e.sender.getType()&&s[e.sender.getName&&e.sender.getName()]){var t,r,n=e.sender;n.registerFactory("multiCanvasCrossline",function(){(0,o.componentFactory)(n,c,"multiCanvasCrosslineManager"),t=n.getChildren("multiCanvasCrosslineManager")[0],r=t._handlers,n.iterateComponents(function(e){"canvas"===e.getName()&&(e.addEventListener("fc-mouseover",r.onhover),e.addEventListener("fc-mousemove",r.onhover),e.addEventListener("fc-mouseout",r.onhoverout))})},["canvas"])}},c=function(e){function t(){var t,r;return(t=e.call(this)||this)._handlers=(r=t,{onhover:function(e){e.originalEvent&&r.show(e)},onhoverout:function(e){e.originalEvent&&r.hide(e)}}),t}(0,a["default"])(t,e);var r=t.prototype;return r.getAxesInfo=function(e,t){void 0===e&&(e={});var r,n,a,i,s=t.getAxes(),l=[],c=(0,o.getMouseCoordinate)(this.getFromEnv("chart-container"),e.originalEvent,this.getFromEnv("chart")),u=c.chartX||0,d=c.chartY||0;for(r=s.length-1;r>=0;r--)n=s[r].axis,a=s[r].isY,i=!!n.config.isVertical,l.push({value:i?n.getValue(d):n.getValue(u),axis:n,isVertical:i,isY:a});return l},r.getName=function(){return"multiCanvasCrosslineManager"},r.getType=function(){return"multiCanvasCrosslineManager"},r.show=function(e){var t=this,r=e.sender;this.getFromEnv("chart").iterateComponents(function(n){"canvas"===n.getName()&&n!==r&&n.fireEvent("fc-mousemove",{axes:t.getAxesInfo(e,r)})})},r.hide=function(e){var t=e.sender,r=(0,o.getMouseCoordinate)(t.getFromEnv("chart-container"),e&&e.originalEvent,t.getFromEnv("chart"));t.isWithinCanvas(r.chartX,r.chartY)||this.getFromEnv("chart").iterateComponents(function(e){"canvas"===e.getName()&&e!==t&&e.fireEvent("fc-mouseout")})},t}(i.ComponentInterface);t["default"]={extension:function(e){e.addEventListener("instantiated",l)},name:"multi-canvas-crossline-manager",type:"extension",requiresFusionCharts:!0}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(497),i=n(r(498)),o=function(){function e(e){this.alternateTexts=i["default"]}var t=e.prototype;return t.buildAriaTexts=function(e,t,r){var n=this,a=e&&this.alternateTexts&&this.alternateTexts[e]||{},i=function(e){for(var t in n.alternateTexts["default"]&&n.alternateTexts["default"][e])a.hasOwnProperty(t)||(a[t]=n.alternateTexts["default"][e][t])};return r&&i(r),t&&i(t),i("base"),a},t.setAlternateTexts=function(e){this.alternateTexts=(0,a.mergeDeep)(this.alternateTexts,e)},t.getAlternateTexts=function(e){return this.alternateTexts},e}();t["default"]={extension:function(e){var t=new o(e),r={setAlternateTexts:t.setAlternateTexts.bind(t),getAlternateTexts:t.getAlternateTexts.bind(t)};e.accesibilityTexts=t,e.Accessibility=r},name:"ResourceString",type:"extension",requiresFusionCharts:!0}},(e,t)=>{"use strict";t.__esModule=!0,t.mergeDeep=function n(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];if(!a.length)return e;var o=a.shift();if(r(e)&&r(o))for(var s in o){var l,c;if(r(o[s]))e[s]||Object.assign(e,((l={})[s]={},l)),n(e[s],o[s]);else Object.assign(e,((c={})[s]=o[s],c))}return n.apply(void 0,[e].concat(a))};var r=function(e){return e&&"object"==typeof e&&!Array.isArray(e)}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"default":{base:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. Title of the chart is {caption}. {xAxisName} is plotted on x-axis and {yAxisName} is plotted on y-axis",legendItem:"Toggle the visibility of {legendText}.",exportMenu:"View export options",exportMenuItems:["Export to PNG","Export to JPG","Export to PDF","Export to SVG","Export to XLS"]},singleSeries:{plot:"{yAxisName} for {xAxisName} {label} is {formattedValue}. Plot {plotIndex} of {totalPlots}."},multiSeries:{plot:"{yAxisName} of {seriesName} for {xAxisName} {label} is {formattedValue}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}",exportMenu:"View export options",exportMenuItems:["Export to PNG","Export to JPG","Export to PDF","Export to SVG","Export to XLS"]},nonCartesian:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. {caption} for {subcaption} is plotted.",plot:"{plotIndex}. {label} {formattedValue}.",legendItem:"Toggle the slicing of {legendText}"},scatter:{plot:"X Value : {xValue}, Y Value : {yValue} for {seriesName}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}"},bubble:{plot:"X Value : {xValue}, Y Value : {yValue}, Z Value : {zValue}, Name of the bubble : {bubbleName}, Series : {seriesName}. Plot {plotIndex} of {totalPlots}. Series {seriesIndex} of {totalSeries}"},funnel:{chart:"This is a {chartType} chart created with FusionCharts Suite XT. Title of the chart is {caption}. {plot-0-label} is {plot-0-value}"},heatmap:{plot:"{xAxisLabel} for {yAxisLabel} is {formattedValue}.",upperRange:"Change the upper limit to filter the data. Current range is {currentStartValue} to {currentEndValue}",lowerRange:"Change the lower limit to filter the data. Current range is {currentStartValue} to {currentEndValue}"}}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(500)),i=r(507);t.getConfig=i.getConfig,t.setConfig=i.setConfig;t["default"]=a["default"]},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(501));t["default"]=a["default"]},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(502)),i=r(509),o=r(503);t["default"]=function(){function e(e,t,r){this.dataTables={},this._defaultDataTable=null,this._id=+new Date+"",e&&t&&e.constructor===Array&&t.constructor===Array&&this.createDataTable(e,t,r)}var t=e.prototype;return t.createDataTable=function(e,t,r,n){if(!e||!t)throw new Error("Both data and schema must be provided to build DataTable");if(e.constructor!==Array)throw new Error("Data must be provided in 2D array format or array of json objects");if(t.constructor!==Array||0===t.length)throw new Error("Input schema is not in a correct format - schema must be an array of column configurations");var i,s,l={},c=n;if(s=Object.keys(this.dataTables),c){if(s.includes(c))throw new Error("A table with the id "+c+" already exists in the DataStore. Please use a different id.")}else c=(0,o.createTableID)(s);return Object.assign(l,{enableIndex:!0,enableUTC:!1},r),i=new a["default"](this,(0,o.parseAndIndexData)(e,t,l),t,l,null,null,c),0===s.length&&(this._defaultDataTable=i),this.dataTables[c]=i,i},t.appendRows=function(e,t){var r,n,a,i=this.getDataTable(t),s=i.getSchema();a=(0,o.buildDateColumnsFormatter)(s),n=(0,o.parseData)(e,s,a),(r=i._data).push.apply(r,n),(0,o.indexData)(i._data,s,i._config,a),i.flushResults(),this.trigger("itemsAdded",{rows:e,parsedRows:n,tableID:t})},t.deleteRows=function(e,t){var r=this.getDataTable(t),n=r.query(e),a=n.getData().data,i=r.indexOf("_row_id"),o=n.indexOf("_row_id"),s=a.map(function(e){return e[o]});r._data=r._data.filter(function(e){return!s.includes(e[i])}),r.flushResults(),this.trigger("itemsRemoved",{rows:a,tableID:t}),n.dispose()},t.getDataTable=function(e){if(e){if(!this.dataTables[e])throw new Error("DataTable with id "+e+" is not found in the DataStore.");return this.dataTables[e]}return this._defaultDataTable},t.on=function(e,t){(0,i.addHandler)(e,t,this)},t.off=function(e,t){(0,i.removeHandler)(e,t,this)},t.trigger=function(e,t){(0,i.triggerEvent)(e,this,t)},t.dispose=function(){var e=this;for(var t in e.dataTables)e.dataTables.hasOwnProperty(t)&&(e.dataTables[t].dispose(),delete e.dataTables[t]);delete e._id,delete e.dataTables,delete e._defaultDataTable,this.trigger("disposed"),e=null},t._propagate=function(e){var t=this;for(var r in this.trigger("payloadReceived",e),t.dataTables)t.dataTables.hasOwnProperty(r)&&t.dataTables[r]._payloadReceiver(e)},e}()},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a,i=r(503),o=r(509),s=n(r(510));t["default"]=function(){function e(e,t,r,n,a,i,o){this._dataStore=e,this._parentTable=a,this._children=[],this._childrenTableIDs=[],this._opsFunnel=i,this._data=t||[],this._schema=r,this._config=n,this._id=o;var s,l=1;if(this._id||(s=this._parentTable&&this._parentTable._id?this._parentTable._id:"table_1",this._id=s+"_"+l),this._parentTable){for(;this._parentTable._childrenTableIDs.includes(this._id);)this._id=s?s+"_"+ ++l:this._id+"_1";this._parentTable._children.push(this),this._parentTable._childrenTableIDs.push(this._id)}this._result=null}var t=e.prototype;return t.count=function(){return this._executeFunnel().data.length},t.getSchema=function(){return this._executeFunnel().schema},t.getID=function(){return this._id},t.getDataStore=function(){return this._dataStore},t.getChildren=function(e){if(e){for(var t=0;t<this._children.length;t++)if(this._children[t]._id===e)return this._children[t];return null}return this._children},t.getData=function(e,t){var r,n=e,i=t;return n=n||0,i=i&&("string"==typeof i||i instanceof String)||null===i?a:i,{data:(r=this._executeFunnel()).data&&r.data.slice(n,i&&i>0?n+i:i),schema:r.schema}},t.dispose=function(){var e=this;if(e._parentTable&&e._parentTable._children){var t;for(t=0;t<e._parentTable._children.length&&("undefined"==typeof e._id||e._id!==e._parentTable._children[t]._id);t++);t!==e._parentTable._children.length&&e._parentTable._children.splice(t,1)}delete e._dataStore,delete e._parentTable,delete e._opsFunnel,delete e._data,delete e._schema,delete e._config,delete e._result,delete e._id,e.disposeChildren(),delete e._children,delete e._childrenTableIDs,e._trigger("disposed"),delete e._evtHandlers,e.disposed=!0,e=null},t.disposeChildren=function(){for(var e=this,t=(e._children&&e._children.length||0)-1;t>=0;t--)e._children[t].dispose();e._children=[],e._childrenTableIDs=[]},t.min=function(e){var t=this.getData();return(0,i.columnMinValue)(e,t.data,t.schema)},t.max=function(e){var t=this.getData();return(0,i.columnMaxValue)(e,t.data,t.schema)},t.unique=function(e){var t=this.getData();return(0,i.columnUnique)(e,t.data,t.schema)},t.extents=function(e){var t=this.getData();return(0,i.columnExtents)(e,t.data,t.schema)},t.addColumns=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=t.length,o=[],l=0;l<i;l++)(0,s["default"])(t[l])&&o.push(t[l]);n=o.length,this._calcColumns=this._calcColumns||[];for(var c=0;c<n;c++){if(!o[c].name)throw new Error("name is required in column "+(c+1));if(o[c].calcFn&&!(o[c].calcFn instanceof Function))throw new Error("calcFn must be a function in column "+(c+1));o[c].calcFn||(o[c].calcFn=function(){return a}),this._calcColumns.push(Object.assign({},o[c]))}this._trigger("updated",o)},t.query=function(t){var r=t;return r&&r.constructor!==Array&&(r=[r]),new e(this._dataStore,this._data,this._schema,this._config,this,r)},t.indexOf=function(e){var t=this._executeFunnel();return(0,i.columnIndexOf)(e,t.schema)},t.on=function(e,t){(0,o.addHandler)(e,t,this)},t.off=function(e,t){(0,o.removeHandler)(e,t,this)},t._trigger=function(e,t){(0,o.triggerEvent)(e,this,t)},t._executeFunnel=function(){if(!this._result)if(this._opsFunnel){var e,t,r,n,o;t=(e=this._parentTable._executeFunnel()).data.slice(0),r=e.schema.slice(0),n=Object.assign({},e.config),o=this._opsFunnel.length;for(var s=0;s<o;s++)if(this._opsFunnel[s]&&this._opsFunnel[s].fn){var l=this._opsFunnel[s].fn(t,r,n);t=l.generatorFn?l.generatorFn():l.data,r=l.schema,(n=Object.assign(n,l.config)).indexBy===a&&(n.enableIndex=!1)}this._result={data:t,schema:r,config:n}}else this._result={data:this._data,schema:this._schema,config:this._config};if(this._calcColumns&&this._calcColumns.length>0){var c=(0,i.addColumnsSchema)(this._result.schema,this._calcColumns);this._result.schema=c.schema,this._result.data=(0,i.addColumnsData)(this._result.data,this._result.schema,c.calcColumns),delete this._calcColumns}return this._result},t.flushResults=function(){var e=this._result&&this._result.schema.length||0,t=this._children&&this._children.length||0;e&&(this._calcColumns=[]);for(var r=0;r<e;r++)this._result.schema[r].calcFn&&this._calcColumns.push(this._result.schema[r]);this._result&&(this._result=null);for(var n=0;n<t;n++)this._children[n].flushResults()},t.propagate=function(e){this.getDataStore()._propagate({trigger:this,payload:e})},t._payloadReceiver=function(e){var t=this._children&&this._children.length||0;e&&e.trigger&&e.trigger!==this&&this._trigger("payloadReceived",e);for(var r=0;r<t;r++)this._children[r]._payloadReceiver(e)},t.getMinDiff=function(e){var t=this.getData();return(0,i.columnMinDiff)(e,t.data,t.schema,this._config.indexBy)},t.isUTCEnabled=function(e){return(0,i.isUTCEnabled)(e,this.getSchema())},e}()},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.addColumnsData=function(e,t,r){for(var n,a=e.length,i=r.length,o=t.length,s={},l=f(r),c=0;c<o;c++)s[t[c].name]=c;for(var u=0;u<a;u++)for(var d=0;d<i;d++)r[d].calcFn&&(n=r[d].calcFn(e[u],s,u),n=h(r[d],n,l),e[u][r[d].columnIndex]=n);return e},t.addColumnsSchema=function(e,t){for(var r=t.length,n=e.slice(0),a=0;a<r;a++){var i=n.length;t[a].originalName=t[a].name;for(var o=0;o<i;o++)t[a].name===n[o].name&&(t[a].i=t[a].i&&++t[a].i||1,t[a].name=t[a].originalName+" "+t[a].i),t[a].type&&-1!==["string","number","date"].indexOf(t[a].type)||(t[a].type="string");delete t[a].originalName,delete t[a].i,n.push({name:t[a].name,type:t[a].type||"string"}),t[a].calcFn&&(n[n.length-1].calcFn=t[a].calcFn),t[a].format&&(n[n.length-1].format=t[a].format),t[a].enableUTC&&(n[n.length-1].enableUTC=t[a].enableUTC),t[a].columnIndex=n.length-1}return{schema:n,calcColumns:t}},t.buildDateColumnsFormatter=f,t.columnExtents=function(e,t,r){var n,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=d(e,r);if(null===s||-1===s)return null;if(t&&t.length>0)for(var l=0;l<t.length;l++)n="interval"===r[s].type?t[l][s]?t[l][s].start:null:t[l][s],(0,i.isNumber)(n)&&n<a&&(a=n),n="interval"===r[s].type?t[l][s]?t[l][s].end:null:t[l][s],(0,i.isNumber)(n)&&n>o&&(o=n);return{min:a,max:o}},t.columnIndexOf=d,t.columnMaxValue=function(e,t,r){var n,a;if(null===(n=d(e,r))||-1===n)return null;if(t&&t.length>0){var o;a=Number.NEGATIVE_INFINITY;for(var s=0;s<t.length;s++)o="interval"===r[n].type?t[s][n]?t[s][n].end:null:t[s][n],(0,i.isNumber)(o)&&o>a&&(a=o)}return a},t.columnMinDiff=function(e,t,r,n){var a,s,l=t,c=t.length;if(null===(a=d(e,r))||-1===a)return null;if(r[a]&&["date","number"].indexOf(r[a].type)<0)throw new Error("Operation valid only on date or number columns");n&&e===n||(l=t.slice(0)).sort(function(e,t){return(0,o.numberComparator)(e[a],t[a])});if(l&&c>0){var u,h,f;s=Number.POSITIVE_INFINITY;for(var p=0;p<l.length-1&&(h=l[p][a],f=l[p+1][a],(0,i.isNumber)(f)&&(0,i.isNumber)(h))&&(u=f-h,0!==(s=(0,i.isNumber)(u)&&u>=0&&u<s?u:s));p++);}return s===Number.POSITIVE_INFINITY?null:s},t.columnMinValue=function(e,t,r){var n,a;if(null===(n=d(e,r))||-1===n)return null;if(t&&t.length>0){var o;a=Number.POSITIVE_INFINITY;for(var s=0;s<t.length;s++)o="interval"===r[n].type?t[s][n]?t[s][n].start:null:t[s][n],(0,i.isNumber)(o)&&o<a&&(a=o)}return a},t.columnUnique=function(e,t,r){var n,a=d(e,r),i=[];if(null===a||-1===a)return[];for(var o=0;o<t.length;o++)i.push(t[o][a]);if(t&&t.length>0)return 1===(n=Array.from(new Set(i))).length&&"undefined"==typeof n[0]?[]:n;return[]},t.createTableID=function(e){var t=e.length+1;for(;e.includes("table-"+t);)t++;return"table-"+t},t.indexData=g,t.isUTCEnabled=function(e,t){var r;if(null===(r=d(e,t))||-1===r||"date"!==t[r].type&&"interval"!==t[r].type)return null;return t[r].enableUTC!==a?t[r].enableUTC:(0,l.getConfig)("enableUTC")},t.parseAndIndexData=function(e,t,r){var n=f(t),a=p(e,t,n);return g(a,t,r,n),a},t.parseData=p;var a,i=r(504),o=r(505),s=n(r(506)),l=r(507),c=n(r(356)),u=n(r(508));function d(e,t){if(!t||!e)return null;for(var r=0;r<t.length;r++)if(t[r]&&t[r].hasOwnProperty("name")&&t[r].name===e)return r;return-1}function h(e,t,r){return r[e.name]!==a&&t?r[e.name]?+r[e.name].parse(t):+new Date(t):"number"===e.type?(0,i.isNumber)(t)?t:t?parseFloat(t):null:t}function f(e){for(var t={},r=0;r<e.length;r++){if(!e[r].name)throw new Error("Input schema is not in a correct format - each column must have a name");e[r].type&&"date"===e[r].type&&(t[e[r].name]=e[r].format?(e[r].enableUTC!==a?e[r].enableUTC:(0,l.getConfig)("enableUTC"))?c["default"].utcParser(e[r].format):c["default"].parser(e[r].format):null)}return t}function p(e,t,r){var n=[];if(e.length>0){var a,i=r,o=t.findIndex(function(e){return"_row_id"===e.name});i||(i=f(t)),-1===o&&(o=t.push({name:"_row_id",type:"string"})-1);for(var s=0;s<e.length;s++)e[s][o]=(0,u["default"])();try{for(var l,c,d,p=t.length,g=0;g<e.length;g++){if(l=[],(c=e[g]).constructor===Array)for(d=Math.min(p,c.length),a=0;a<d;a++)l[a]=h(t[a],c[a],i);else{if("object"!=typeof c)continue;for(a=0;a<p;a++)c[t[a].name]&&(l[a]=h(t[a],c[t[a].name],i))}n.push(l)}}catch(m){throw new Error("Error while parsing the data - "+m)}}return n}function g(e,t,r,n){if(r.enableIndex){var a,i,l;if(!r.indexBy){(l=n)||(l=f(t));var c=Object.keys(l);if(c.length>0)r.indexBy=c[0];else{for(a=0;a<t.length;a++)if(t[a].type&&"number"===t[a].type){r.indexBy=t[a].name;break}a===t.length&&(r.indexBy=t[0].name)}}for(a=0;a<t.length&&(!t[a]||t[a].name!==r.indexBy);a++);if(a===t.length)throw new Error("Index column is not found in schema");switch(t[a].type){case"number":case"date":i=o.numberComparator;break;default:i=o.stringComparator}var u=JSON.parse(JSON.stringify(e));(0,s["default"])(u,function(e,t){return i(e[a],t[a])})}}},(e,t)=>{"use strict";t.__esModule=!0,t.isNumber=void 0;t.isNumber=function(e){return"number"==typeof e&&!isNaN(e-e)}},(e,t,r)=>{"use strict";t.__esModule=!0,t.stringComparator=t.numberComparator=void 0;var n=r(504);t.numberComparator=function(e,t){return null==e?t===e?0:1:(0,n.isNumber)(t)?e-t:isNaN(e)&&isNaN(t)?0:-1},t.stringComparator=function(e,t){return null==e?t===e?0:1:(0,n.isNumber)(t)?(0,n.isNumber)(e)?e-t:-1:e===t?0:e<t?-1:1}},(e,t)=>{"use strict";function r(e,t,r,n,a){var i=r||0,o=n||e.length,s=a||i+1,l=t;for(l||(l=function(e,t){return e-t}),i===s&&++s;s<o;++s){var c=i,u=s,d=e[u];do{var h=c+(u-c>>1);l(d,e[h])<0?u=h:c=h+1}while(c<u);for(var f=s;f>c;--f)e[f]=e[f-1];e[c]=d}}t.__esModule=!0,t.binaryInsertionSort=r,t["default"]=void 0,t.mergeSort=function s(e,t){var r,n,a,i=t;if(e.constructor!==Array)throw new TypeError("Merge sort can only be applied on Array.");if(1===e.length)return e;i||(i=function(e,t){return e-t});return r=Math.floor(e.length/2),n=e.slice(0,r),a=e.slice(r),function(e,t,r){var n=[],a=0,i=0;for(;a<e.length&&i<t.length;)r(e[a],t[i])<=0?(n.push(e[a]),a++):(n.push(t[i]),i++);return n.concat(e.slice(a)).concat(t.slice(i))}(s(n,i),s(a,i),i)};function n(e,t,r,n){var a=r+1;if(a===n)return 1;if(t(e[a++],e[r])<0){for(;a<n&&t(e[a],e[a-1])<0;)a++;!function(e,t,r){var n=r,a=t;for(--n;a<n;){var i=e[a];e[a++]=e[n],e[n--]=i}}(e,r,a)}else for(;a<n&&t(e[a],e[a-1])>=0;)a++;return a-r}function a(e,t,r,n,a,i){var o,s,l=0,c=0,u=1;if(i(e,t[r+a])>0){for(c=n-a;u<c&&i(e,t[r+a+u])>0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=a,u+=a}else{for(c=a+1;u<c&&i(e,t[r+a-u])<=0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),o=l,l=a-u,u=a-o}for(l++;l<u;)i(e,t[r+(s=l+(u-l>>>1))])>0?l=s+1:u=s;return u}function i(e,t,r,n,a,i){var o,s,l=0,c=0,u=1;if(i(e,t[r+a])<0){for(c=a+1;u<c&&i(e,t[r+a-u])<0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),o=l,l=a-u,u=a-o}else{for(c=n-a;u<c&&i(e,t[r+a+u])>=0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=a,u+=a}for(l++;l<u;)i(e,t[r+(s=l+(u-l>>>1))])<0?u=s:l=s+1;return u}var o=function(){function e(e,t){this.arr=e,this.comparer=t,this.length=e.length,this.tmpStorageLen=this.length<512?this.length>>>1:256,this.tmp=new Array(this.tmpStorageLen),this.runBaseArr=new Array(40),this.runLenArr=new Array(40),this.minGallop=7,this.stackSize=0}var t=e.prototype;return t.pushRun=function(e,t){this.runBaseArr[this.stackSize]=e,this.runLenArr[this.stackSize]=t,this.stackSize++},t.mergeCollapse=function(){for(var e;this.stackSize>1;){if((e=this.stackSize-2)>=1&&this.runLenArr[e-1]<=this.runLenArr[e]+this.runLenArr[e+1]||e>=2&&this.runLenArr[e-2]<=this.runLenArr[e]+this.runLenArr[e-1])this.runLenArr[e-1]<this.runLenArr[e+1]&&e--;else if(this.runLenArr[e]>this.runLenArr[e+1])break;this.mergeAt(e)}},t.mergeForceCollapse=function(){for(var e;this.stackSize>1;)(e=this.stackSize-2)>0&&this.runLenArr[e-1]<this.runLenArr[e+1]&&e--,this.mergeAt(e)},t.mergeAt=function(e){var t,r=this.comparer,n=this.arr,o=this.runBaseArr[e],s=this.runLenArr[e],l=this.runBaseArr[e+1],c=this.runLenArr[e+1];this.runLenArr[e]=s+c,e===this.stackSize-3&&(this.runBaseArr[e+1]=this.runBaseArr[e+2],this.runLenArr[e+1]=this.runLenArr[e+2]),this.stackSize--,o+=t=i(n[l],n,o,s,0,r),0!==(s-=t)&&0!==(c=a(n[o+s-1],n,l,c,c-1,r))&&(s<=c?this.mergeLo(o,s,l,c):this.mergeHi(o,s,l,c))},t.mergeLo=function(e,t,r,n){var o,s,l,c,u=0,d=0,h=r,f=e,p=t,g=n;for(u=0;u<p;u++)this.tmp[u]=this.arr[e+u];if(this.arr[f++]=this.arr[h++],0!==--g)if(1!==p){for(o=this.minGallop;;){s=0,l=0,c=!1;do{if(this.comparer(this.arr[h],this.tmp[d])<0){if(this.arr[f++]=this.arr[h++],l++,s=0,0===--g){c=!0;break}}else if(this.arr[f++]=this.tmp[d++],s++,l=0,1===--p){c=!0;break}}while((s|l)<o);if(c)break;do{if(0!==(s=i(this.arr[h],this.tmp,d,p,0,this.comparer))){for(u=0;u<s;u++)this.arr[f+u]=this.tmp[d+u];if(f+=s,d+=s,(p-=s)<=1){c=!0;break}}if(this.arr[f++]=this.arr[h++],0===--g){c=!0;break}if(0!==(l=a(this.tmp[d],this.arr,h,g,0,this.comparer))){for(u=0;u<l;u++)this.arr[f+u]=this.arr[h+u];if(f+=l,h+=l,0===(g-=l)){c=!0;break}}if(this.arr[f++]=this.tmp[d++],1===--p){c=!0;break}o--}while(s>=7||l>=7);if(c)break;o<0&&(o=0),o+=2}if(this.minGallop=o,o<1&&(this.minGallop=1),1===p){for(u=0;u<g;u++)this.arr[f+u]=this.arr[h+u];this.arr[f+g]=this.tmp[d]}else for(u=0;u<p;u++)this.arr[f+u]=this.tmp[d+u]}else{for(u=0;u<g;u++)this.arr[f+u]=this.arr[h+u];this.arr[f+g]=this.tmp[d]}else for(u=0;u<p;u++)this.arr[f+u]=this.tmp[d+u]},t.mergeHi=function(e,t,r,n){var o,s,l,c,u=0,d=t,h=n,f=e+d-1,p=h-1,g=r+h-1,m=0,v=0;for(u=0;u<h;u++)this.tmp[u]=this.arr[r+u];if(this.arr[g--]=this.arr[f--],0!==--d)if(1!==h){for(o=this.minGallop;;){s=0,l=0,c=!1;do{if(this.comparer(this.tmp[p],this.arr[f])<0){if(this.arr[g--]=this.arr[f--],s++,l=0,0===--d){c=!0;break}}else if(this.arr[g--]=this.tmp[p--],l++,s=0,1===--h){c=!0;break}}while((s|l)<o);if(c)break;do{if(0!==(s=d-i(this.tmp[p],this.arr,e,d,d-1,this.comparer))){for(d-=s,v=(g-=s)+1,m=(f-=s)+1,u=s-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];if(0===d){c=!0;break}}if(this.arr[g--]=this.tmp[p--],1===--h){c=!0;break}if(0!==(l=h-a(this.arr[f],this.tmp,0,h,h-1,this.comparer))){for(h-=l,v=(g-=l)+1,m=(p-=l)+1,u=0;u<l;u++)this.arr[v+u]=this.tmp[m+u];if(h<=1){c=!0;break}}if(this.arr[g--]=this.arr[f--],0===--d){c=!0;break}o--}while(s>=7||l>=7);if(c)break;o<0&&(o=0),o+=2}if(this.minGallop=o,o<1&&(this.minGallop=1),1===h){for(v=(g-=d)+1,m=(f-=d)+1,u=d-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[p]}else for(m=g-(h-1),u=0;u<h;u++)this.arr[m+u]=this.tmp[u]}else{for(v=(g-=d)+1,m=(f-=d)+1,u=d-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[p]}else for(m=g-(h-1),u=0;u<h;u++)this.arr[m+u]=this.tmp[u]},e}();t["default"]=function(e,t,a,i){var s,l,c,u,d,h=a,f=i,p=t;if(e.constructor!==Array)throw new TypeError("Sorting can only be applied on arrays.");if(h=h||0,p||(p=function(e,t){return e-t}),!((s=(f=f||e.length)-h)<2))if(s<64)r(e,p,h,f,h+(l=n(e,p,h,f)));else{c=function(e){for(var t=0,r=e;r>=64;)t|=1&r,r>>=1;return r+t}(s),u=new o(e,p);do{(l=n(e,p,h,h+s))<c&&(r(e,p,h,h+(d=s<=c?s:c),h+l),l=d),u.pushRun(h,l),u.mergeCollapse(),s-=l,h+=l}while(0!==s);u.mergeForceCollapse()}}},(e,t)=>{"use strict";t.__esModule=!0,t.getConfig=function(e){if(!e)throw new Error("configName is missing");return r[e]},t.setConfig=function(e,t){if(!e)throw new Error("configName is missing");r[e]=t};var r={enableUTC:!1}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var r=0;t["default"]=function(e){return void 0===e&&(e=""),e+""+r++}},(e,t)=>{"use strict";function r(e,t){if("string"!=typeof e)throw new Error("eventName must be a non-empty string");if(!(t instanceof Object))throw new Error("sender must be an object");return t._evtHandlers&&t._evtHandlers[e]||[]}t.__esModule=!0,t.addHandler=function n(e,t,r){var a;if(t instanceof Array){for(var i=[],o=t.length,s=0;s<o;s+=1)i.push(n(e,t[s],r));return i}if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if("function"!=typeof t)throw new Error("handler must be a function");if(!(r instanceof Object))throw new Error("sender must be an object");r._evtHandlers=r._evtHandlers||{},r._evtHandlers[e]&&r._evtHandlers[e]instanceof Array||(r._evtHandlers[e]=[]);a=r._evtHandlers[e].length;for(var l=0;l<a;l++)if(r._evtHandlers[e][l]===t)return!1;return r._evtHandlers[e].push(t),!0},t.getHanlders=r,t.removeHandler=function a(e,t,n){var i,o;if(t instanceof Array){for(var s=[],l=t.length,c=0;c<l;c+=1)s.push(a(e,t[c],n));return s}if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if(t&&"function"!=typeof t)throw new Error("handler must be a function");if(!(n instanceof Object))throw new Error("sender must be an object");if(!((i=r(e,n))instanceof Array)||0===i.length)return;if(!t)return delete n._evtHandlers[e],!0;o=i.length;for(var u=0;u<o;u++)i[u]===t&&i.splice(u,1);return!0},t.triggerEvent=function(e,t,n){var a,i,o;if(!e||"string"!=typeof e)throw new Error("eventName must be a non-empty string");if(!(t instanceof Object))throw new Error("sender must be an object");if(a=r(e,t),o={eventName:e,sender:t,data:n},!(a instanceof Array)||0===a.length)return;i=a.length;for(var s=0;s<i;s++)a[s](o);return!0}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}},(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(512);t.between=n.between,t.equals=n.equals,t.less=n.less,t.lessEquals=n.lessEquals,t.greater=n.greater,t.greaterEquals=n.greaterEquals,t.filter=n.filter,t.select=n.select,t.groupBy=n.groupBy,t.pipe=n.pipe,t.sort=n.sort,t.pivot=n.pivot},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0;var a=r(513);t.indexColBetween=a.indexColBetween,t.between=a.between,t.indexColEquals=a.indexColEquals,t.equals=a.equals,t.indexColLess=a.indexColLess,t.less=a.less,t.indexColLessEquals=a.indexColLessEquals,t.lessEquals=a.lessEquals,t.indexColGreater=a.indexColGreater,t.greater=a.greater,t.indexColGreaterEquals=a.indexColGreaterEquals,t.greaterEquals=a.greaterEquals;var i=r(516);t.filter=i.filter,t.select=i.select;var o=n(r(517));t.groupBy=o["default"];var s=n(r(534));t.pipe=s["default"];var l=n(r(535));t.sort=l["default"];var c=n(r(536));t.pivot=c["default"]},(e,t,r)=>{"use strict";t.__esModule=!0,t.between=function(e,t,r){var n=t,o=r;return{ops:"between",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e,t){n=e,o=t},fn:function(t,r,i,l){var c,u,d=t;if(l&&(d=l.call()),(c=(0,a.columnIndexOf)(e,r))>=0)return u=f(r,c),i&&i.indexBy===e?s(c,n,o,u).fn(d,r,i):{data:d,schema:r,config:i,generatorFn:function(){return d.filter(function(e){return u(e,n)>=0&&u(e,o)<=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.equals=function(e,t){var r=t;return{ops:"equals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,c,u=t;if(o&&(u=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return c=f(n,s),i&&i.indexBy===e?l(s,r,c).fn(u,n,i):{data:u,schema:n,config:i,generatorFn:function(){return u.filter(function(e){return 0===c(e,r)})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.greater=function(e,t){var r=t;return{ops:"greater",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=f(n,s),i&&i.indexBy===e?d(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter(function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,r)>0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.greaterEquals=function(e,t){var r=t;return{ops:"greaterEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=f(n,s),i&&i.indexBy===e?h(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter(function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,r)>=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColBetween=s,t.indexColEquals=l,t.indexColGreater=d,t.indexColGreaterEquals=h,t.indexColLess=c,t.indexColLessEquals=u,t.less=function(e,t){var r=t;return{ops:"less",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,u=t;if(o&&(u=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=f(n,s),i&&i.indexBy===e?c(s,r,l).fn(u,n,i):{data:u,schema:n,config:i,generatorFn:function(){return u.filter(function(e){return l(e,r)<0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.lessEquals=function(e,t){var r=t;return{ops:"lessEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){r=e},fn:function(t,n,i,o){var s,l,c=t;if(o&&(c=o.call()),(s=(0,a.columnIndexOf)(e,n))>=0)return l=f(n,s),i&&i.indexBy===e?u(s,r,l).fn(c,n,i):{data:c,schema:n,config:i,generatorFn:function(){return c.filter(function(e){return l(e,r)<=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}};var n=r(514),a=r(503),i=r(515),o=r(505);function s(e,t,r,a){var s=t,l=r,c=a;return{ops:"indexColBetween",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e,t){s=e,l=t},fn:function(t,r,a,i){var u,d,h,p=t;return i&&(p=i.call()),c||(c=f(r,e)),h="interval"===r[e].type?function(t,r){return(0,o.numberComparator)(t[e].end,r)}:c,u=(0,n.leftMostExactOrGreater)(s,p,c,0,p.length),d=(0,n.rightMostExactOrLesser)(l,p,h,u,p.length),{data:p,schema:r,config:a,generatorFn:function(){return p.slice(u,d+1)}}}}}function l(e,t,r){var a=t,o=r;return{ops:"indexColEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=f(r,e)),(l=(0,n.leftMostExactOrGreater)(a,u,o,0,u.length))>=u.length||0!==o(u[l],a)?{data:[],schema:r,config:i}:(c=(0,n.rightMostExactOrLesser)(a,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l,c+1)}})}}}function c(e,t,r){var a=t,o=r;return{ops:"indexColLess",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c=t;return s&&(c=s.call()),o||(o=f(r,e)),l=(0,n.leftMostExactOrGreater)(a,c,o,0,c.length),{data:c,schema:r,config:i,generatorFn:function(){return c.slice(0,l)}}}}}function u(e,t,r){var a=t,o=r;return{ops:"indexColLessEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c=t;return s&&(c=s.call()),o||(o=f(r,e)),l=(0,n.rightMostExactOrLesser)(a,c,o,0,c.length),{data:c,schema:r,config:i,generatorFn:function(){return c.slice(0,l+1)}}}}}function d(e,t,r){var a=t,o=r;return{ops:"indexColGreater",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=f(r,e)),l=(0,n.rightMostExactOrLesser)(a,u,o,0,u.length),c=(0,n.leftMostExactOrGreater)(null,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l+1,c)}}}}}function h(e,t,r){var a=t,o=r;return{ops:"indexColGreaterEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){a=e},fn:function(t,r,i,s){var l,c,u=t;return s&&(u=s.call()),o||(o=f(r,e)),l=(0,n.leftMostExactOrGreater)(a,u,o,0,u.length),c=(0,n.leftMostExactOrGreater)(null,u,o,l,u.length),{data:u,schema:r,config:i,generatorFn:function(){return u.slice(l,c)}}}}}var f=function(e,t){switch(e[t].type){case"interval":return function(e,r){return(0,o.numberComparator)(e[t].start,r)};case"number":case"date":return function(e,r){return(0,o.numberComparator)(e[t],r)};default:return function(e,r){return(0,o.stringComparator)(String(e[t]).toLowerCase(),String(r).toLowerCase())}}}},(e,t)=>{"use strict";t.__esModule=!0,t.leftMostExactOrGreater=function(e,t,r,n,a){var i=n,o=a;for(;i<o;){var s=i+Math.floor((o-i)/2);r(t[s],e)<0?i=s+1:o=s}return i},t.rightMostExactOrLesser=function(e,t,r,n,a){var i=n,o=a;for(;i<o;){var s=i+Math.floor((o-i)/2);r(t[s],e)>0?o=s:i=s+1}return i-1}},(e,t)=>{"use strict";t.__esModule=!0,t.OperatorTypes=void 0;t.OperatorTypes={IndexOpsFilter:0,GenericFilter:1,GroupBy:2,Sort:3,Select:4}},(e,t,r)=>{"use strict";t.__esModule=!0,t.filter=function(e){var t=this;return{ops:"filter",type:n.OperatorTypes.GenericFilter,fn:function(r,n,a,i){var o=r;return{data:o,schema:n,config:a,generatorFn:function(){i&&(o=i.call());for(var r={},a=0;a<n.length;a++)r[n[a].name]=a;return o.filter(function(n){return e.call(t,n,r)})}}}}},t.select=function(e,t){var r=e,i=t;return r=r&&r.constructor!==Array?[r]:r,{ops:"select",type:n.OperatorTypes.Select,fn:function(e,t,n,o){var s,l,c=[],u=[];if(r)if((i=i||{exclude:!1}).exclude)for(s=0;s<t.length;s++)r.includes(t[s].name)||(c.push(t[s]),u.push(s));else for(s=0;s<r.length;s++)(l=(0,a.columnIndexOf)(r[s],t))>-1&&!u.includes(l)&&(c.push(t[l]),u.push(l));else c=t;return{data:e,schema:c,config:n,generatorFn:function(){var t=u.length;if(t>0){var r,n,a,i=[];for(r=0;r<e.length;r++){for(a=[],n=0;n<t;n++)a[n]=e[r][u[n]];i[r]=a}return i}return e.slice(0)}}}}};var n=r(515),a=r(503)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t._singleSortedAddRow=m,t._singleSortedAddRowDate=v,t["default"]=void 0;var a,i=r(503),o=r(518),s=r(531),l=r(532),c=n(r(343)),u=r(507),d=r(515),h=r(514),f=r(505),p=n(r(533));function g(e,t,r,n){var i,o,s,l,u,d=[],h=t,f=r,g=h.length,m=f.length;for(h=h instanceof Array?h:[h],f=f instanceof Array?f:[f],s=0;s<g;s++)i=n(h[s].column,e),u={name:h[s].outputAs||h[s].column,type:"date"===i.type?"interval":i.type},i.enableUTC!==a&&(u.enableUTC=i.enableUTC),d.push(u);for(s=0;s<m;s++){if(l=f[s].operation||"avg",i=n(f[s].column,e),!c["default"].resolve(l))throw new Error(l+" is not a defined operation");switch(l){case"first":case"last":o=i.type;break;case"count":o="number";break;default:if("number"!==i.type)throw new Error(l+" can apply only on numbers");o="number"}d.push({name:f[s].outputAs||f[s].column+(l?p["default"]+l:""),type:o})}return d}function m(e,t,r){var n=t;return n&&r===n[0]||(n=[r],e.push(n)),n}function v(e,t,r,n,a){var i=t;if(r>=i[0].end){var s;switch(n.duration.Unit){case"Month":case"Quarter":case"Year":s=(0,o.getDateStart)(r,n.duration,n.enableUTC,n.weekStartFrom,a);break;default:s=r-(r-a)%n.duration.ms}i=[(0,l.interval)(s,n)],e.push(i)}return i}function b(){var e={};return function(t,r,n){if(!e[t]){var o=(0,i.columnIndexOf)(t,r),s=r[o];if(s===a)throw new Error("incorrect column name in config - "+t);e[t]=s,e[t].column=t,e[t].index=o,"date"===s.type&&n&&(e[t].peaks=(0,i.columnExtents)(t,n,r))}return e[t]}}function y(e,t,r,n,a,i,s,c,u,d){var h,f,p,g,m="",v=[],b=r.length,y=c;if(e.length>0){for(h=0;h<b;h++)if("date"===(f=a(r[h].column,t)).type){if(i[h].startValFloorVal>e[f.index])return y;switch(r[h].timeUnit.name){case"Month":case"Quarter":case"Year":i[h].value=(0,o.getDateStart)(e[f.index],i[h].intervalConfig.duration,i[h].intervalConfig.enableUTC,i[h].intervalConfig.weekStartFrom,i[h].startValFloorVal);break;default:i[h].value=e[f.index]-(e[f.index]-i[h].startValFloorVal)%i[h].intervalConfig.duration.ms}m+=i[h].value+"-"}else v[h]=e[f.index],m+=e[f.index]+"-";if(s[m=m.slice(0,-1)]>=0)v=u[s[m]],p=s[m];else{for(var x in s[m]=y++,i)g=(0,l.interval)(i[x].value,i[x].intervalConfig),v[x]=g;u.push(v),p=u.length-1}return d[p]=d[p]||{},v&&w(e,t,v,b,n,a,d[p]),y}}function w(e,t,r,n,i,o,s){var l,u,d,h,f=i.length;for(h=0;h<f;h++)if(e[(l=o(i[h].column,t)).index]!==a&&null!==e[l.index]){switch(u=i[h].operation||"avg"){case"sum":case"min":case"max":case"first":case"last":d=null;break;default:d=s[h]=s[h]&&s[h]+1||1}r[n+h]="count"===u?d:c["default"].resolve(u)(r[n+h]!==a?r[n+h]:null,e[l.index],d)}}t["default"]=function(e,t){var r=e,n=t;return{ops:"groupBy",type:d.OperatorTypes.GroupBy,_updateArgs:function(e,t){r=e,n=t},fn:function(e,t,c,d){var p=e;if(d&&(p=d.call()),!r||0===r.length)throw new Error("groupConfigArray cannot be empty");if(!n||0===n.length)throw new Error("aggrConfigArray cannot be empty");return!(r instanceof Array)&&r instanceof Object&&(r=[r]),!(n instanceof Array)&&n instanceof Object&&(n=[n]),1===r.length&&c&&r[0].column===c.indexBy?function(e,t,r,n,c){var d,p,y,x,_,S,k,C,A=[],N=[],E=e.length,L=0,T=b(),M=[];if(d=T(n.column,t),d.outputAs=n.outputAs,N=g(t,[d],c,T),E>0){if(k=d.enableUTC||(0,u.getConfig)("enableUTC"),"date"===d.type){var F,D,I;if(y=(0,s.duration)(n.timeUnit,Math.abs(n.binSize)||1),e[0]&&e[0][d.index]&&e[E-1]&&e[E-1][d.index]||(F=(0,i.columnExtents)(n.column,e,t,r.indexBy)),D=e[0]&&e[0][d.index]||F.min,(I=n.startValue&&parseInt(n.startValue,10))&&"Week"!==n.timeUnit.name)if(I>=D){var O=function(e,t){return(0,f.numberComparator)(e[d.index],t)};x=(0,o.getDateStart)(I,(0,s.duration)(n.timeUnit,1),k,n.weekStartFrom),L=(0,h.leftMostExactOrGreater)(x,e,O,0,e.length)}else x=(0,o.getDateStart)(D,y,k,n.weekStartFrom,I);else x=(0,o.getDateStart)(D,(0,s.duration)(n.timeUnit,1),k,n.weekStartFrom);p=e[E-1]&&e[E-1][d.index]||F.max}if(x===a||x<=p){var P={duration:y,outputFormat:n.outputFormat,enableUTC:k,weekStartFrom:n.weekStartFrom};for(x!==a&&(_=[(0,l.interval)(x,P)],A.push(_)),C=L;C<E;C++)e[C].length>0&&("date"===d.type?_=v(A,_,e[C][d.index],P,x):"string"!==d.type&&"number"!==d.type||(_=m(A,_,e[C][d.index])),M[S=A.length-1]=M[S]||{},_&&w(e[C],t,_,1,c,T,M[S]))}}return{data:A,schema:N,config:{indexBy:n.outputAs||n.column}}}(p,t,c,r[0],n):function(e,t,r,n,a){var i,l,c,d,h=[],f=[],p=[],m=!0,v=e.length,w=n.length,x={},_=[],S=b(),k={},C=0;for(d=0;d<w;d++)(i=S(n[d].column,t,e)).outputAs=n[d].outputAs,"date"===i.type&&(x[d]||(n[d].startValue>=i.peaks.max&&(m=!1),x[d]=Object.assign({},i),x[d].intervalConfig={duration:(0,s.duration)(n[d].timeUnit,Math.abs(n[d].binSize)||1),outputFormat:n[d].outputFormat,enableUTC:i.enableUTC||(0,u.getConfig)("enableUTC"),weekStartFrom:n[d].weekStartFrom},l=parseInt(n[d].startValue,10)||i.peaks.min,x[d].startValFloorVal=l&&(0,o.getDateStart)(l,(0,s.duration)(n[d].timeUnit,1),x[d].intervalConfig.enableUTC,x[d].intervalConfig.weekStartFrom,parseInt(n[d].startValue,10)),x[d].max=i.peaks.max)),p[d]=i,c||n[d].column!==r.indexBy||(c=n[d].outputAs||n[d].column);if(f=g(t,p,a,S),m&&v>0)for(d=0;d<v;d++)C=y(e[d],t,n,a,S,x,k,C,h,_);return{data:h,schema:f,config:{indexBy:c}}}(p,t,c,r,n)}}}},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t.dateIntervalToString=function(){var e,t=this.config;switch(e="undefined"!=typeof t.enableUTC&&t.enableUTC?l["default"].utcFormatter(t.outputFormat):l["default"].formatter(t.outputFormat),t.duration.Unit){case"Millisecond":case"Second":case"Minute":case"Hour":case"Day":case"Month":case"Year":return e.format(new Date(this.start))+(t.duration.number>1?" - "+e.format(new Date(this.end-1)):"");case"Week":case"Quarter":return e.format(new Date(this.start))+" - "+e.format(new Date(this.end-1))}},t.dateRangeCaclulator=function(e,t,r,n,a){void 0===a&&(a=!1);var i,o,s;i=e,a&&((s=Object.assign({},t)).number=1,i=f(i,s,r,n));return o=p(i,t.Unit,t.number,r,n),{startDate:i,endDate:o}},t.getDateOffset=p,t.getDateStart=f,t.getDefaultOutputFormat=function(e){switch(e){case"Millisecond":case"Second":case"Minute":case"Hour":case"Day":case"Month":case"Year":return u[e];case"Week":return u.Day;case"Quarter":return u.Month}};var i=c(r(519)),o=c(r(526)),s=r(364),l=n(r(356));function c(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s})(e,t)}var u={Year:"%Y",Month:"%b %Y",Day:"%b %d, %Y",Hour:"%b %d, %Y %H hrs",Minute:"%b %d, %Y %H:%M",Second:"%b %d, %Y %H:%M:%S",Millisecond:"%b %d, %Y %H:%M:%S:%L"},d={Millisecond:i.timeMillisecond,Second:i.timeSecond,Minute:i.timeMinute,Hour:i.timeHour,Day:i.timeDay,Week:{0:i.timeSunday,1:i.timeMonday,2:i.timeTuesday,3:i.timeWednesday,4:i.timeThursday,5:i.timeFriday,6:i.timeSaturday},Month:i.timeMonth,Quarter:i.timeQuarter,Year:i.timeYear},h={Millisecond:o.utcMillisecond,Second:o.utcSecond,Minute:o.utcMinute,Hour:o.utcHour,Day:o.utcDay,Week:{0:o.utcSunday,1:o.utcMonday,2:o.utcTuesday,3:o.utcWednesday,4:o.utcThursday,5:o.utcFriday,6:o.utcSaturday},Month:o.utcMonth,Quarter:o.utcQuarter,Year:o.utcYear};function f(e,t,r,n,a){var i,o=void 0!==r&&r?h[t.Unit]:d[t.Unit],l=n;if(l&&!s.Weekdays[l.name])throw new Error("Invalid weekStartFrom provided: "+l);return 1===t.number?"Week"===t.Unit?+o[(l=l||s.Weekdays.Sunday).id].floor(new Date(e)):+o.floor(new Date(e)):a?"Week"===t.Unit?(i=o[(l=l||s.Weekdays.Sunday).id].count(a,e)%t.number)?p(+o[l.id].floor(e),t.Unit,-i,r,l):+o[l.id].floor(e):(i=o.count(a,e)%t.number)?p(+o.floor(e),t.Unit,-i,r,l):+o.floor(e):"Week"===t.Unit?+o[(l=l||s.Weekdays.Sunday).id].every(t.number).floor(new Date(e)):+o.every(t.number).floor(new Date(e))}function p(e,t,r,n,a){switch(t){case"Month":case"Quarter":case"Year":return+(void 0!==n&&n?h[t]:d[t]).offset(new Date(e),r);default:return e+s.DatetimeUnits[t].ms*r}}},(e,t,r)=>{"use strict";var n=r(276);t.__esModule=!0;var a=f(r(520));t.timeMillisecond=a["default"],t.millisecondObj=a.millisecondObj;var i=f(r(522));t.timeSecond=i["default"],t.secondObj=i.secondObj;var o=f(r(523));t.timeMinute=o["default"],t.minuteObj=o.minuteObj;var s=f(r(368));t.timeHour=s["default"],t.hourObj=s.hourObj;var l=f(r(360));t.timeDay=l["default"],t.dayObj=l.dayObj;var c=f(r(367));t.timeWeek=c["default"],t.timeSunday=c.sunday,t.timeMonday=c.monday,t.timeTuesday=c.tuesday,t.timeWednesday=c.wednesday,t.timeThursday=c.thursday,t.timeFriday=c.friday,t.timeSaturday=c.saturday,t.weekObj=c.weekObj;var u=f(r(524));t.timeQuarter=u["default"],t.quarterObj=u.quarterObj;var d=f(r(525));t.timeMonth=d["default"],t.monthObj=d.monthObj;var h=f(r(369));function f(e,t){if("function"==typeof WeakMap)var r=new WeakMap,a=new WeakMap;return(f=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=n({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?a:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s})(e,t)}t.timeYear=h["default"],t.yearObj=h.yearObj},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.millisecondObj=t["default"]=void 0;var a=n(r(521)),i=r(363),o=t.millisecondObj={name:"millisecond",floor:function(e){return e},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setTime(Number(s)+Number(t)))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setTime(Number(s)+Number(t)))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,o=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(o,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t-e-a}},s=new a["default"](o);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=n(r(295)),i=n(r(361)),o=r(363),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?t>1?new i["default"]({name:"millisecond",floor:function(e,r,n){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/t)*t))),r,n)))},offset:function(e,r,n,a){var i=r>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+r*t))),n,a):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+r*t))),n,a)))},count:function(e,r,n){var a=(0,o.getValidDatesWithin)(n,e,r),i=0,s=(0,o.getClampRangesAround)(n,r);return(a=(0,o.getClipArray)(s,a)).forEach(function(e){i+=Number(e.to)-Number(e.from)}),r-e-Math.floor(i/t)}}):this:null},t}(i["default"]);t["default"]=s},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.secondObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.secondObj={name:"second",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationSecond)*i.durationSecond))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e)/i.durationSecond-Math.floor(a/i.durationSecond)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCSeconds(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCSeconds()-n.getUTCSeconds()-l/i.durationSecond}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.minuteObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.minuteObj={name:"minute",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationMinute)*i.durationMinute))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e)/i.durationMinute-Math.floor(a/i.durationMinute)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMinutes(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getMinutes()-n.getMinutes()-Math.floor(l/i.durationMinute)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.quarterObj=t["default"]=void 0;var a=n(r(361)),i=r(363),o=r(362),s=t.quarterObj={name:"quarter",floor:function(e,t,r){return e.setMonth(e.getMonth()-(e.getMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t.getMonth()-(t.getMonth()+3)%3-(e.getMonth()-(e.getMonth()+3)%3)-Math.floor(a/o.durationMonth))/3+4*(t.getFullYear()-e.getFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),Math.floor((e.getMonth()-n.getMonth()-Math.floor(l/o.durationMonth))/3)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.monthObj=t["default"]=void 0;var a=n(r(361)),i=r(363),o=r(362),s=t.monthObj={name:"month",floor:function(e,t,r){return e.setDate(1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setMonth(s.getMonth()+t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t.getMonth()-e.getMonth()-Math.floor(a/o.durationMonth)+12*(t.getFullYear()-e.getFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getMonth()-n.getMonth()-Math.floor(l/o.durationMonth)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(276);t.__esModule=!0,t["default"]=void 0;var a=f(r(520));t.utcMillisecond=a["default"],t.millisecondObj=a.millisecondObj;var i=f(r(522));t.utcSecond=i["default"],t.secondObj=i.secondObj;var o=f(r(527));t.utcMinute=o["default"],t.utcMinuteObj=o.utcMinuteObj;var s=f(r(528));t.utcHour=s["default"],t.utcHourObj=s.utcHourObj;var l=f(r(365));t.utcDay=l["default"],t.utcDayObj=l.utcDayObj;var c=f(r(366));t.utcWeek=c["default"],t.utcSunday=c.utcSunday,t.utcMonday=c.utcMonday,t.utcTuesday=c.utcTuesday,t.utcWednesday=c.utcWednesday,t.utcThursday=c.utcThursday,t.utcFriday=c.utcFriday,t.utcSaturday=c.utcSaturday,t.utcWeekObj=c.utcWeekObj;var u=f(r(529));t.utcQuarter=u["default"],t.utcQuarterObj=u.utcQuarterObj;var d=f(r(530));t.utcMonth=d["default"],t.utcMonthObj=d.utcMonthObj;var h=f(r(371));function f(e,t){if("function"==typeof WeakMap)var r=new WeakMap,a=new WeakMap;return(f=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=n({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?a:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s})(e,t)}t.utcYear=h["default"],t.utcYearObj=h.utcYearObj;t["default"]={getInterval:function(e){switch(e+""){case"millisecond":return a["default"];case"second":return i["default"];case"minute":return o["default"];case"hour":return s["default"];case"day":return l["default"];case"week":return c["default"];case"sunday":return c.utcSunday;case"monday":return c.utcMonday;case"tuesday":return c.utcTuesday;case"wednesday":return c.utcWednesday;case"thursday":return c.utcThursday;case"friday":return c.utcFriday;case"saturday":return c.utcSaturday;case"quarter":return u["default"];case"month":return d["default"];case"year":return h["default"]}}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcMinuteObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.utcMinuteObj={name:"minute",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCSeconds(0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(e)},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e)/i.durationMinute-Math.floor(a/i.durationMinute)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMinutes(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCMinutes()-n.getUTCMinutes()-Math.floor(l/i.durationMinute)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcHourObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.utcHourObj={name:"hour",floor:function(e,t,r){return new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCMinutes(0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n):(0,o.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t-e)/i.durationHour-Math.floor(a/i.durationHour)},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTChours(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCHours()-n.getUTCHours()-Math.floor(l/i.durationHour)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcQuarterObj=t["default"]=void 0;var a=n(r(361)),i=r(363),o=r(362),s=t.utcQuarterObj={name:"quarter",floor:function(e,t,r){return e.setUTCMonth(e.getUTCMonth()-(e.getUTCMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,o={date:new Date(Number(e))},s=new Date(Number(o.date));return new Date(Number(a?(0,i.clampDownDateWithinClip)(o.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),r,n):(0,i.clampUpDateWithinClip)(o.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),r,n)))},count:function(e,t,r){var n=(0,i.getValidDatesWithin)(r,e,t),a=0,s=(0,i.getClampRangesAround)(r,t);return(n=(0,i.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),(t.getUTCMonth()-(t.getUTCMonth()+3)%3-(e.getUTCMonth()-(e.getUTCMonth()+3)%3)-Math.floor(a/o.durationMonth))/3+4*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMonth(0),n=(0,i.getFloor)(new Date(Number(s)),t,r),(0,i.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),Math.floor(e.getUTCMonth()-n.getUTCMonth()-Math.floor(l/o.durationMonth))}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.utcMonthObj=t["default"]=void 0;var a=n(r(361)),i=r(362),o=r(363),s=t.utcMonthObj={name:"month",floor:function(e,t,r){return e.setUTCDate(1),new Date(Number((0,o.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,r)))},offset:function(e,t,r,n){var a=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(a?(0,o.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),r,n):(0,o.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),r,n)))},count:function(e,t,r){var n=(0,o.getValidDatesWithin)(r,e,t),a=0,s=(0,o.getClampRangesAround)(r,t);return(n=(0,o.getClipArray)(s,n)).forEach(function(e){a+=Number(e.to)-Number(e.from)}),t.getUTCMonth()-e.getUTCMonth()-Math.floor(a/i.durationMonth)+12*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,r){var n,a={date:new Date(Number(e))},s=new Date(Number(a.date)),l=0;return s.setUTCMonth(0),n=(0,o.getFloor)(new Date(Number(s)),t,r),(0,o.getValidDatesWithin)(t,new Date(Number(n)),a.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCMonth()-n.getUTCMonth()-Math.floor(l/i.durationMonth)}},l=new a["default"](s);t["default"]=l},(e,t,r)=>{"use strict";t.__esModule=!0,t.duration=function(e,t){var r=t;if(!e||!n.DatetimeUnits[e.name])throw new Error("Invalid Unit provided: "+e);return r=Math.abs(r)||1,{Unit:e.name,number:r,ms:e.ms*r}};var n=r(364)},(e,t,r)=>{"use strict";t.__esModule=!0,t.interval=function(e,t,r){void 0===r&&(r=!1);if(t.duration.ms){var i=(0,a.dateRangeCaclulator)(e,t.duration,t.enableUTC,t.weekStartFrom||n.Weekdays.Sunday,r),o=i.startDate,s=i.endDate;return t.outputFormat=t.outputFormat||(0,a.getDefaultOutputFormat)(t.duration.Unit),{start:o,end:s,config:t,toString:a.dateIntervalToString}}};var n=r(364),a=r(518)},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=" --fcsep-- "},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=function(){for(var e,t=[],r=[],i=[],o=function(e,t){for(var r=[],n=e.length,i=0;i<n;i++)t[i]||r.push(e[i]);return r&&r.length>0&&(0,a.binaryInsertionSort)(r,function(e,t){return e.type-t.type}),r},s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];e=l.length;for(var u=0;u<e;u++)switch(l[u].type){case n.OperatorTypes.IndexOpsFilter:case n.OperatorTypes.GenericFilter:t.push(l[u]),r.push(!1);break;case n.OperatorTypes.Select:case n.OperatorTypes.Sort:t.push(l[u]),r.push(!0);break;case n.OperatorTypes.GroupBy:i=i.concat(o(t,r),l[u]),t=[],r=[]}return i=i.concat(function(e){var t=[],r=e.length;(0,a.binaryInsertionSort)(e,function(e,t){return e.type-t.type}),t.push(e[0]);for(var n=1;n<r;n++)e[n].type>=3&&e[n].type===t[t.length-1].type&&t.pop(),t.push(e[n]);return t}(t))};var n=r(515),a=r(506)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t["default"]=void 0;var a=r(515),i=r(503),o=r(505),s=n(r(506));t["default"]=function(e){var t=e;return{ops:"sort",type:a.OperatorTypes.Sort,_updateArgs:function(e){t=e},fn:function(e,r,n,a){var l=e;return{data:l,schema:r,config:t.constructor===Array&&t.length?{indexBy:t[0].column}:t.constructor===Object?{indexBy:t.column}:undefined,generatorFn:function(){var e;if(a&&(l=a.call()),t.constructor===Function)e=t;else{t.constructor!==Array&&(t=[t]);var n,c,u,d=[],h=[];for(n=0;n<t.length;n++)if(t[n].column){if(c=(0,i.columnIndexOf)(t[n].column,r),h.push(c),-1===c)throw new Error("Sort column is not found in schema - "+t[n].column);switch(r[c].type){case"number":case"interval":case"date":d.push(o.numberComparator);break;default:d.push(o.stringComparator)}}e=function(e,a){for(n=0;n<t.length;n++){if(0!==(u="interval"===r[h[n]].type?"desc"===t[n].order?d[n](a[h[n]].start,e[h[n]].start):d[n](e[h[n]].start,a[h[n]].start):"desc"===t[n].order?d[n](a[h[n]],e[h[n]]):d[n](e[h[n]],a[h[n]])))return u;if(n===t.length-1)return 0}}}return(0,s["default"])(l,e),l}}}}}},(e,t,r)=>{"use strict";var n=r(272),a=r(276);t.__esModule=!0,t["default"]=void 0;var i,o=r(503),s=r(518),l=r(531),c=r(532),u=n(r(343)),d=r(507),h=r(515),f=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,s=a({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?i(s,l,o):s[l]=e[l]);return s}(e,t)}(r(517)),p=r(505),g=r(514),m=n(r(533));function v(e,t,r,n,a,o,s,l,c){var d,h,f,p,g,v=a.length;for(p=0;p<v;p++)if(e[d=l(a[p].column,t)]!==i&&null!==e[d]){switch(h=a[p].operation||"avg",g=s[e[o]+m["default"]+(a[p].outputAs||a[p].column+(h?m["default"]+h:""))],h){case"sum":case"min":case"max":case"first":case"last":f=null;break;default:f=c[g]=c[g]&&c[g]+1||1}r[n+g]="count"===h?f:u["default"].resolve(h)(r[n+g]!==i?r[n+g]:null,e[d],f)}}t["default"]=function(e,t,r){var n=e,a=t,b=r;return{ops:"pivot",type:h.OperatorTypes.GroupBy,_updateArgs:function(e,t,r){n=e,a=t,b=r},fn:function(e,t,r,h){if(0===n.length)throw new Error("groupConfigArray cannot be empty");if(0===b.length)throw new Error("aggrConfigArray cannot be empty");if(!a)throw new Error("pivotCol cannot be empty");return!(n instanceof Array)&&n instanceof Object&&(n=[n]),!(b instanceof Array)&&b instanceof Object&&(b=[b]),1===n.length&&r&&n[0].column===r.indexBy?function(e,t,r,n,a,h){var b,y,w,x,_,S,k,C,A,N,E,L,T,M=[],F=[],D={},I=e.length,O=0,P=(j={},function(e,t){return j[e]||(j[e]=(0,o.columnIndexOf)(e,t)),j[e]}),R=[];var j;if(y=(0,o.columnIndexOf)(n.column,t),-1===y)throw new Error("incorrect column name in groupConfigArr - "+n);if(x=(0,o.columnIndexOf)(h,t),-1===x)throw new Error("incorrect pivot column name");if(w=t[y],_=t[x],(k=Object.assign({},n)).type=w.type,k.outputAs=n.outputAs,b=function(e,t,r,n,a){var s,l,c,d,h,f,g,v,b,y,w,x,_,S=[],k={},C=0,A=r,N=n;for(A=A instanceof Array?A:[A],N=N instanceof Array?N:[N],d=A.length,h=N.length,y=0;y<d;y++){if(g=t[f=(0,o.columnIndexOf)(A[y].column,t)],-1===f)throw new Error("incorrect column name in groupConfigArr - "+A[y].column);_={name:A[y].outputAs||A[y].column,type:"date"===g.type?"interval":g.type},g.enableUTC!==i&&(_.enableUTC=g.enableUTC),S.push(_)}switch(a.type){case"number":case"date":s=p.numberComparator;break;default:s=p.stringComparator}for((l=(0,o.columnUnique)(a.name,e,t)).sort(function(e,t){return s(e,t)}),c=l.length,y=0;y<h;y++){if(x=N[y].operation||"avg",g=t[f=(0,o.columnIndexOf)(N[y].column,t)],-1===f)throw new Error("incorrect column name in aggrConfigArr - "+N[y].column);if(!u["default"].resolve(x))throw new Error(x+" is not a defined operation");switch(x){case"first":case"last":v=g.type;break;case"count":v="number";break;default:if("number"!==g.type)throw new Error(x+" can apply only on numbers");v="number"}for(w=0;w<c;w++)k[b=l[w]+m["default"]+(N[y].outputAs||N[y].column+(x?m["default"]+x:""))]=C++,S.push({name:b,type:v})}return{schema:S,pivots:k}}(e,t,k,a,_),F=b.schema,D=b.pivots,I>0){if(L=w.enableUTC||(0,d.getConfig)("enableUTC"),"date"===w.type){var B,z,V;if(C=(0,l.duration)(n.timeUnit,Math.abs(n.binSize)||1),e[0]&&e[0][y]&&e[I-1]&&e[I-1][y]||(B=(0,o.columnExtents)(n.column,e,t,r.indexBy)),z=e[0]&&e[0][y]||B.min,(V=n.startValue&&parseInt(n.startValue,10))&&"Week"!==n.timeUnit.name)if(V>=z){var U=function(e,t){return(0,p.numberComparator)(e[y],t)};A=(0,s.getDateStart)(V,(0,l.duration)(n.timeUnit,1),L,n.weekStartFrom),O=(0,g.leftMostExactOrGreater)(A,e,U,0,e.length)}else A=(0,s.getDateStart)(z,C,L,n.weekStartFrom,V);else A=(0,s.getDateStart)(z,(0,l.duration)(n.timeUnit,1),L,n.weekStartFrom);S=e[I-1]&&e[I-1][y]||B.max}if(A===i||A<=S){var H={duration:C,outputFormat:n.outputFormat,enableUTC:L,weekStartFrom:n.weekStartFrom};for(A!==i&&(N=[(0,c.interval)(A,H)],M.push(N)),T=O;T<I;T++)e[T].length>0&&("date"===w.type?N=(0,f._singleSortedAddRowDate)(M,N,e[T][y],H,A):"string"!==w.type&&"number"!==w.type||(N=(0,f._singleSortedAddRow)(M,N,e[T][y])),R[E=M.length-1]=R[E]||{},N&&v(e[T],t,N,1,a,x,D,P,R[E]))}}return{data:M,schema:F,config:{indexBy:n.outputAs||n.column}}}(e,t,r,n[0],b,a):function(e,t,r,n,a,s,l){var c,u,d,h,g,v,b,y,w,x={},_={},S=function(e){return _.hasOwnProperty(e)?_[e]:-1},k=function(e,t){_[e]=t},C=function(e,t,r,n){return e+m["default"]+(t||r+(n?m["default"]+n:""))},A=function(){for(var e,t=[],r=function(r){if(w.includes(v[r].name))t.push(v[r]),x[v[r].name]=r;else{e=s.filter(function(e){return(e.outputAs||e.column+(e.operation?m["default"]+e.operation:""))===v[r].name})[0];for(var n=0;n<g.length;n++)t.push({name:C(g[n],e.outputAs,e.column,e.operation),type:v[r].type})}},n=0;n<y;n++)r(n);return t},N=function(e){var t,r,n,a,i,o=[],c=e.length,d={},h={},f="";for(t=0;t<c;t++)d[e[t].name]=t;for(t=0;t<u.data.length;t++){for(h={},f="",r=0;r<u.schema.length;r++)x.hasOwnProperty(u.schema[r].name)?(h[d[u.schema[r].name]]=u.data[t][r],"interval"===u.schema[r].type?f+=u.data[t][r].start:f+=u.data[t][r]):u.schema[r].name!==l&&(a=s.filter(function(e){return(e.outputAs||e.column+(e.operation?m["default"]+e.operation:""))===u.schema[r].name})[0],(i=d[C(u.data[t][b],a.outputAs,a.column,a.operation)])&&(h[i]=u.data[t][r]));if((n=S(f))>-1){var p=o[n];for(var g in h)p[g]=h[g]}else{var v=new Array(c);for(var y in h)v[y]=h[y];o.push(v),k(f,o.length-1)}}return o},E=[],L=[];switch(c=(0,f["default"])(a.concat({column:l}),s),u=c.fn(e,t,r,n),h=(0,o.columnUnique)(l,e,t),b=(0,o.columnIndexOf)(l,u.schema),u.schema[b].type){case"number":case"date":d=p.numberComparator;break;default:d=p.stringComparator}g=h&&h.sort(function(e,t){return d(e,t)})||[],v=u.schema.filter(function(e){return e.name!==l}),y=v.length,w=a.map(function(e){return e.outputAs||e.column}),E=A(),u.data.length>0&&(L=N(E));return{data:L,schema:E,config:{indexBy:u.config.indexBy===l?i:u.config.indexBy}}}(e,t,r,h,n,b,a)}}}},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0;var a=n(r(343));t.aggregatorStore=a["default"]},(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(539);t.before=n.before,t.after=n.after;var a=r(540);t.parseDate=a.parseDate,t.formatDate=a.formatDate;var i=r(531);t.duration=i.duration;var o=r(364);t.DatetimeUnits=o.DatetimeUnits,t.Weekdays=o.Weekdays},(e,t,r)=>{"use strict";t.__esModule=!0,t.after=function(e,t,r,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,n.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,e.number,r,i||a.Weekdays.Sunday)},t.before=function(e,t,r,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,n.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,-e.number,r,i||a.Weekdays.Sunday)};var n=r(518),a=r(364)},(e,t,r)=>{"use strict";var n=r(272);t.__esModule=!0,t.formatDate=function(e,t,r){var n,o,s=t;if(isNaN(parseInt(e,10)))throw new Error("Timestamp must be a number: "+e);s||(s=i);if(n=void 0!==r&&r?a["default"].utcFormatter(s):a["default"].formatter(s),!(o=n.format(new Date(e))))throw new Error("Incorrect format provided: "+s);return o},t.parseDate=function(e,t,r){var n;t&&(n=(n=(void 0!==r&&r?a["default"].utcParser(t):a["default"].parser(t)).parse(e))&&n.getTime());n||(n=void 0!==r&&r?+new Date(e+"Z"):+new Date(e));if(!n)throw new Error("Incorrect string or format provided");return n};var a=n(r(356)),i="%a, %-d %b %Y, %H:%M:%S:%L"},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={column2d:"charts",column3d:"charts",bar2d:"charts",bar3d:"charts",pie2d:"charts",pie3d:"charts",line:"charts",area2d:"charts",doughnut2d:"charts",doughnut3d:"charts",pareto2d:"charts",pareto3d:"charts",mscolumn2d:"charts",mscolumn3d:"charts",msline:"charts",msarea:"charts",msbar2d:"charts",msbar3d:"charts",stackedcolumn2d:"charts",marimekko:"charts",stackedcolumn3d:"charts",stackedarea2d:"charts",stackedcolumn2dline:"charts",stackedcolumn3dline:"charts",stackedbar2d:"charts",stackedbar3d:"charts",msstackedcolumn2d:"charts",msstackedbar2d:"charts",mscombi2d:"charts",mscombi3d:"charts",mscolumnline3d:"charts",mscombidy2d:"charts",mscombidy3d:"charts",mscolumn3dlinedy:"charts",stackedcolumn2dlinedy:"charts",stackedarea2dlinedy:"charts",stackedcolumn3dlinedy:"charts",msstackedcolumn2dlinedy:"charts",scatter:"charts",bubble:"charts",ssgrid:"charts",scrollbar2d:"charts",scrollcolumn2d:"charts",scrollcolumn3d:"charts",scrollline2d:"charts",scrollarea2d:"charts",scrollstackedcolumn2d:"charts",scrollstackedbar2d:"charts",scrollcombi2d:"charts",scrollmsstackedcolumn2d:"charts",scrollmsstackedcolumn2dlinedy:"charts",scrollcombidy2d:"charts",spline:"charts",splinearea:"charts",msspline:"charts",mssplinearea:"charts",mssplinedy:"charts",multiaxisline:"powercharts",multilevelpie:"powercharts",sunburst:"powercharts",waterfall2d:"powercharts",msstepline:"powercharts",inversemsline:"powercharts",inversemscolumn2d:"powercharts",inversemsarea:"powercharts",errorbar2d:"powercharts",errorscatter:"powercharts",errorline:"powercharts",logmsline:"powercharts",logmscolumn2d:"powercharts",logstackedcolumn2d:"powercharts",radar:"powercharts",chord:"powercharts",dragnode:"powercharts",candlestick:"powercharts",selectscatter:"powercharts",dragcolumn2d:"powercharts",dragline:"powercharts",dragarea:"powercharts",boxandwhisker2d:"powercharts",kagi:"powercharts",heatmap:"powercharts",sankey:"powercharts",angulargauge:"widgets",bulb:"widgets",cylinder:"widgets",drawingpad:"widgets",funnel:"widgets",hbullet:"widgets",hled:"widgets",hlineargauge:"widgets",vlineargauge:"widgets",pyramid:"widgets",realtimearea:"widgets",realtimecolumn:"widgets",realtimeline:"widgets",realtimelinedy:"widgets",realtimestackedarea:"widgets",realtimestackedcolumn:"widgets",sparkcolumn:"widgets",sparkline:"widgets",sparkwinloss:"widgets",thermometer:"widgets",vbullet:"widgets",vled:"widgets",radialbar:"widgets",zoomline:"zoomline",zoomlinedy:"zoomline",gantt:"gantt",treemap:"treemap",zoomscatter:"zoomscatter",overlappedbar2d:"overlappedbar2d",overlappedcolumn2d:"overlappedcolumn2d",msstackedcolumn2dsplinedy:"msstackedcolumn2dsplinedy",timeseries:"timeseries"}},(e,t,r)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=r(281),a=12e4,i={};t["default"]=function(e){var t=e;if(!i[t]){var r=document.getElementsByTagName("head")[0],o=document.createElement("script"),s=setTimeout(function(){o.onerror({type:"timeout",target:o})},a);o.charset="utf-8",o.timeout=a,i[t]=new Promise(function(e,t){o.onreadystatechange=function(){"loaded"===o.readyState&&o.onload({})},o.onload=function(t){o.onerror=o.onload=null,clearTimeout(s),e(t)},o.onerror=function(e){o.onerror=o.onload=null,clearTimeout(s),t(e)}}),(0,n.isXSSSafe)(t,!1)||(t="function"==typeof window.encodeURIComponent?window.encodeURIComponent(t):window.escape(t)),o.src=t,r.appendChild(o)}return i[t]}}],o={};function s(e){var t=o[e];if(t!==undefined)return t.exports;var r=o[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.amdO={},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);s.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&n&&r;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>i[e]=()=>r[e]);return i["default"]=()=>r,s.d(a,i),a},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>({1:"fusioncharts.accessibility",2:"fusioncharts.charts",3:"fusioncharts.common",4:"fusioncharts.excelexport",5:"fusioncharts.gantt",6:"fusioncharts.maps",7:"fusioncharts.msstackedcolumn2dsplinedy",8:"fusioncharts.overlappedbar2d",9:"fusioncharts.overlappedcolumn2d",10:"fusioncharts.powercharts",11:"fusioncharts.timeseries",12:"fusioncharts.treemap",13:"fusioncharts.vml",14:"fusioncharts.widgets",15:"fusioncharts.zoomline",16:"fusioncharts.zoomscatter"}[e]+".js"),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="FusionCharts:",s.l=(e,t,a,i)=>{if(r[e])r[e].push(t);else{var o,l;if(a!==undefined)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+a){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",n+a),o.src=s.tu(e)),r[e]=[t];var h=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach(e=>e(n)),t)return t(n)},f=setTimeout(h.bind(null,undefined,{type:"timeout",target:o}),12e4);o.onerror=h.bind(null,o.onerror),o.onload=h.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(a===undefined&&(a={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(a=trustedTypes.createPolicy("fusionChartsScriptPolicy#webpack",a))),a),s.tu=e=>s.tt().createScriptURL(e),s.p="",(()=>{var e={0:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:undefined;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise((r,a)=>n=e[t]=[r,a]);r.push(n[2]=a);var i=s.p+s.u(t),o=new Error;s.l(i,r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=undefined),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,n[1](o)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,o,l]=r,c=0;if(i.some(t=>0!==e[t])){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(l)l(s)}for(t&&t(r);c<i.length;c++)a=i[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l={};return(()=>{"use strict";s(1),s(71),s(73),s(75),s(81),s(83),s(88),s(99),s(102),s(104),s(109),s(111),s(113),s(119),s(158);window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var r=/(\-([a-z]){1})/g,n=t;return"float"===n&&(n="styleFloat"),r.test(n)&&(n=n.replace(r,function(){return arguments[2].toUpperCase()})),e.currentStyle[n]?e.currentStyle[n]:null},this}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0})})(),(()=>{"use strict";s(160),s(165),s(183),s(185),s(188),s(190),s(192),s(199),s(202),s(204),s(206),s(209),s(212),s(214),s(216),s(219),s(221),s(258),s(263),s(267),Element.prototype.remove||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})})(),function(){"use strict";function e(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})}function t(e){return new this(function(t,r){function n(e,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,function(t){n(e,t)},function(r){a[e]={status:"rejected",reason:r},0==--i&&t(a)})}a[e]={status:"fulfilled",value:r},0==--i&&t(a)}if(!e||"undefined"==typeof e.length)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var i=a.length,o=0;a.length>o;o++)n(o,a[o])})}function r(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function n(e){var t=this;return new t(function(n,a){if(!e||"undefined"==typeof e.length)return a(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return a();for(var o=[],s=0;i.length>s;s++)try{t.resolve(i[s]).then(n)["catch"](function(e){o.push(e),o.length===i.length&&a(new r(o,"All promises were rejected"))})}catch(c){a(c)}})}function a(e){return!(!e||"undefined"==typeof e.length)}function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],h(e,this)}function l(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var n;try{n=r(e._value)}catch(a){return void u(t.promise,a)}c(t.promise,n)}else(1===e._state?c:u)(t.promise,e._value)})):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof o)return e._state=3,e._value=t,void d(e);if("function"==typeof r)return void h(function(e,t){return function(){e.apply(t,arguments)}}(r,t),e)}e._state=1,e._value=t,d(e)}catch(n){u(e,n)}}function u(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;r>t;t++)l(e,e._deferreds[t]);e._deferreds=null}function h(e,t){var r=!1;try{e(function(e){r||(r=!0,c(t,e))},function(e){r||(r=!0,u(t,e))})}catch(n){if(r)return;r=!0,u(t,n)}}r.prototype=Error.prototype;var f=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var r=new this.constructor(i);return l(this,new function(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}(e,t,r)),r},o.prototype["finally"]=e,o.all=function(e){return new o(function(t,r){function n(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){n(e,t)},r)}i[e]=a,0==--o&&t(i)}catch(c){r(c)}}if(!a(e))return r(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var o=i.length,s=0;i.length>s;s++)n(s,i[s])})},o.any=n,o.allSettled=t,o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,r){r(e)})},o.race=function(e){return new o(function(t,r){if(!a(e))return r(new TypeError("Promise.race accepts an array"));for(var n=0,i=e.length;i>n;n++)o.resolve(e[n]).then(t,r)})},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){f(e,0)},o._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof s.g)return s.g;throw Error("unable to locate global object")}();"function"!=typeof p.Promise?p.Promise=o:(p.Promise.prototype["finally"]||(p.Promise.prototype["finally"]=e),p.Promise.allSettled||(p.Promise.allSettled=t),p.Promise.any||(p.Promise.any=n))}(),(()=>{"use strict";var e=l,t=s(272);e.__esModule=!0,e["default"]=void 0;var r=t(s(273)),n=t(s(541)),a=t(s(542)),i=t(s(347)),o=s(281);r["default"].addDep(i["default"]);var c,u=(c={},function(e){var t=e;return t=t&&t.replace(/(^\s*)|(\s*$)/g,"")||"",c[t]||(c[t]={key:t,subject:t.replace(/[^\/]*?$/gi,""),predicate:t.replace(/^.*\//gi,"")})});function d(e){switch(n["default"][e]){case"charts":return Promise.all([s.e(3),s.e(2)]).then(s.bind(s,543));case"timeseries":return Promise.all([s.e(3),s.e(11)]).then(s.bind(s,828));case"powercharts":return Promise.all([s.e(3),s.e(10)]).then(s.bind(s,1338));case"widgets":return Promise.all([s.e(3),s.e(14)]).then(s.bind(s,1503));case"zoomline":return Promise.all([s.e(3),s.e(15)]).then(s.bind(s,1601));case"gantt":return Promise.all([s.e(3),s.e(5)]).then(s.bind(s,1612));case"treemap":return Promise.all([s.e(3),s.e(12)]).then(s.bind(s,1641));case"zoomscatter":return Promise.all([s.e(3),s.e(16)]).then(s.bind(s,1647));case"msstackedcolumn2dsplinedy":return Promise.all([s.e(3),s.e(7)]).then(s.bind(s,1651));case"overlappedbar2d":return Promise.all([s.e(3),s.e(8)]).then(s.bind(s,1655));case"overlappedcolumn2d":return Promise.all([s.e(3),s.e(9)]).then(s.bind(s,1660));default:return(0,a["default"])(""+r["default"].getScriptBaseURI()+function(e){var t,n=r["default"].options,a=e;return a=function(e){return void 0===e&&(e=""),""===e?e:e.replace(/^[\s\S]*\//gi,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")}((t=u(a)).predicate),t.subject+n.html5ScriptNamePrefix+a+n.html5ScriptNameSuffix}(e))}}r["default"].addEventListener("resourceRequested",function(e){var t=e.sender,n=t.chartType(),a=t.options.chartTypeSourcePath||"";r["default"].getDep(n,"chartapi")||r["default"].getDep(n,"maps")||r["default"].addDep({name:n,type:"dependency",extension:d(a+n)})}),r["default"].addEventListener("preconfigure",function(e){var t=e.sender;if("chartAPI"===t.getType()){var n=t.getFromEnv("dataSource");n&&n.chart&&(0,o.pluck)(n.chart.exportenabled,0)&&!r["default"].getDep("ExcelExport")&&r["default"].addDep({name:"ExcelExport",extension:s.e(4).then(s.bind(s,1664)).then(function(e){var t=e["default"];r["default"].addDep(t)})}),n&&n.chart&&(0,o.pluckNumber)(n.chart.accessibility,0)&&!r["default"].getDep("AccessibilityExtension")&&r["default"].addDep({name:"AccessibilityExtension",extension:Promise.all([s.e(3),s.e(1)]).then(s.bind(s,1669)).then(function(e){var t=e["default"];r["default"].addDep(t)})})}}),window&&s.amdO&&(window.FusionCharts=r["default"]);e["default"]=r["default"]})(),l=l["default"]})());
//# sourceMappingURL=http://localhost:3052/4.2.0/map/eval/fusioncharts.js.map
(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[3],Array(546).concat([(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(547)),i=A(n(623)),o=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",i["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"SSCartesian"};var n=t.prototype;return n.getName=function(){return"SSCartesian"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!1,t.linethickness=4},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").data;if(!e||!e.length)return!0},n._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),n=e.dataset,A=e.data||n&&n[0].data;t[0].setTickValues(A)},t}(a["default"]);t["default"]=o},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a,i=A(n(295)),o=A(n(548)),l=n(281),s=A(n(564)),c=A(n(565)),u=A(n(616)),h=A(n(619)),d=A(n(621)),g=A(n(428)),p=n(426),f=n(601),m="WaterFall2D",v=Math.max,b=Math.min,B=function(e,t){return e<t&&t>0?t-e:0},y=function(e){var t=e.sender,n=e.data.scrollPosition,A=t.config,i=t.getChildren("scrollBar")&&t.getChildren("scrollBar")[0],o=t.getChildren("xAxis")[0],l=o.config,c=o.getVisibleConfig(),u=c.maxValue-c.minValue,h=l.axisRange.max-u,d=(0,s["default"])(l.axisRange.min,h),g=l.isReverse?d(1-n):d(n);r={visibleStart:g,visibleRange:u},a=n,o.setVisibleConfig(g,g+u),i&&t.getName()===m&&f.shiftLabels.call(o,NaN,A.shift)},C={wrtVisible:!0},x=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",c["default"],["canvas"]),t.registerFactory("canvas",u["default"]),t.registerFactory("vCanvas",h["default"],["axis"]),t.registerFactory("mouseTracker",d["default"],["canvas"]),t.addEventListener("onScroll",y),t}(0,i["default"])(t,e),t.getName=function(){return"Cartesian"};var n=t.prototype;return n.getName=function(){return"Cartesian"},n.getType=function(){return"chartAPI"},n._allocateXAxisLabelSpace=function(e){var t,n=this.config,A=e.getAxisEndLabelDisplaySpace(),r=A.left,a=A.right,i=A.top,o=A.bottom,l=n.availableWidth,s=n.availableHeight,c=n.canvasLeft,u=n.canvasRight,h=n.canvasTop,d=n.canvasBottom,g=n.width,p=n.height;i+o>s&&(i=s*i/(t=i+o),o=s*o/t),r+a>l&&(r=l*r/(t=r+a),a=l*a/t),r=B(c,r),a=B(g-u,a),i=B(h,i),o=B(p-d,o),this._allocateSpace({left:r,right:a,top:i,bottom:o})},n._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),n=e.categories&&e.categories.length&&e.categories[0].category;t&&t[0].setTickValues(n)},n._feedAxesRawData=function(){var e,t,n=this,A=n.config,r=n.getFromEnv("dataSource");return e=n.getSpecificxAxisConf(),t=n.getSpecificyAxisConf(),e.vtrendlines=(0,l.extend2)([],r.vtrendlines),t.trendlines=(0,l.extend2)([],r.trendlines),A.isstacked&&(t.isPercent=(0,l.pluckNumber)(A.stack100percent,0)),{yAxisConf:[t],xAxisConf:[e]}},n.allocatePosition=function(){this.setScrollBarDimension()},n.setScrollBarDimension=function(){var e=this;(e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0]&&e.getChildren("scrollBar")[0].setDimension(e.getScrollbarDimension()),r&&a&&e.config.scrollType)&&(e.getChildren("xAxis")[0].setVisibleConfig(r.visibleStart,r.visibleStart+r.visibleRange),e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0]&&e.getChildren("scrollBar")[0].config&&(e.getChildren("scrollBar")[0].config.scrollPosition=a))},n.getSpecificxAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.config,A=e.config.is3D,r=e.getBasexAxisConf();return r.isReverse=n.reverseXAxis,r.axisLineColor=(0,l.pluck)(t.xaxislinecolor,t.axislinecolor,"#000000"),r.showAlternateGridColor=(0,l.pluckNumber)(t.showalternatevgridcolor,0),r.numDivLines=(0,l.pluckNumber)(t.numvdivlines,n.numVDivLines),r.axisName=t.xaxisname,r.setAdaptiveMin=(0,l.pluckNumber)(t.setadaptivexmin,n.setadaptivexmin,n.setadaptivexmin),r.showLimits=(0,l.pluckNumber)(t.showvlimits,n.showvlimits),r.showDivLineValues=(0,l.pluckNumber)(t.showvdivlinevalues,t.showvdivlinevalues,n.showvdivlinevalues),r.zeroPlaneThickness=(0,l.pluckNumber)(t.vzeroplanethickness,t.vdivlinethickness,n.zeroplanethickness,2),r.zeroPlaneAlpha=(0,l.pluckNumber)(t.vzeroplanealpha,t.vdivlinealpha,n.zeroplanealpha),r.showZeroPlaneValue=(0,l.pluckNumber)(t.showvzeroplanevalue,n.showzeroplanevalue),r.showAxisLine=A?0:(0,l.pluckNumber)(t.showxaxisline,t.showaxislines,t.drawAxisLines,n.showxaxisline,0),r.maxLabelHeight=t.maxlabelheight,r.showZeroPlane=(0,l.pluckNumber)(t.showvzeroplane,n.showzeroplane),r},n.getSpecificyAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.config,A=e.config.is3D,r=A?l.chartPaletteStr.chart3D:l.chartPaletteStr.chart2D,a=n.isInverse||n.reverseYAxis,i=e.getFromEnv("color-manager"),o=(0,l.pluckNumber)(t.showzeroplane,n.showzeroplane,1),s=(0,l.pluckNumber)(t.showzeroplanevalue,n.showzeroplanevalue),c=(0,l.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,t.basefontsize,10);return o||undefined!==s||(s=0),this.getName()===m&&(t.yaxisnamepadding=25),{isVertical:!0,isReverse:!a,isOpposit:(0,g["default"])(t.yaxisposition,"right"),outCanfontFamily:(0,l.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(c),outCanfontSizeWithUnit:c,outCancolor:(0,l.pluck)(t.outcnvbasefontcolor,t.basefontcolor,i.getColor(r.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisBreaks:t.yaxisbreaks,axisNamePadding:t.yaxisnamepadding,axisValuePadding:t.yaxisvaluespadding,axisNameFont:t.yaxisnamefont,axisNameFontSize:this.computeFontSize(t.yaxisnamefontsize),axisNameFontSizeWithUnit:t.yaxisnamefontsize,axisNameFontColor:t.yaxisnamefontcolor,axisNameFontBold:t.yaxisnamefontbold,axisNameFontItalic:t.yaxisnamefontitalic,axisNameBgColor:t.yaxisnamebgcolor,axisNameBorderColor:t.yaxisnamebordercolor,axisNameAlpha:t.yaxisnamealpha,axisNameFontAlpha:t.yaxisnamefontalpha,axisNameBgAlpha:t.yaxisnamebgalpha,axisNameBorderAlpha:t.yaxisnameborderalpha,axisNameBorderPadding:t.yaxisnameborderpadding,axisNameBorderRadius:t.yaxisnameborderradius,axisNameBorderThickness:t.yaxisnameborderthickness,axisNameBorderDashed:t.yaxisnameborderdashed,axisNameBorderDashLen:t.yaxisnameborderdashlen,axisNameBorderDashGap:t.yaxisnameborderdashgap,axisNameWidth:t.yaxisnamewidth,useEllipsesWhenOverflow:t.useellipseswhenoverflow,rotateAxisName:(0,l.pluckNumber)(t.rotateyaxisname,1),axisName:t.yaxisname,divLineColor:(0,l.pluck)(t.divlinecolor,i.getColor(r.divLineColor)),divLineAlpha:(0,l.pluck)(t.divlinealpha,A?i.getColor("divLineAlpha3D"):i.getColor("divLineAlpha")),divLineThickness:(0,l.pluckNumber)(t.divlinethickness,1),divLineIsDashed:Boolean((0,l.pluckNumber)(t.divlinedashed,t.divlineisdashed,0)),divLineDashLen:(0,l.pluckNumber)(t.divlinedashlen,4),divLineDashGap:(0,l.pluckNumber)(t.divlinedashgap,2),showAlternateGridColor:(0,l.pluckNumber)(t.showalternatehgridcolor,1),alternateGridColor:(0,l.pluck)(t.alternatehgridcolor,i.getColor("altHGridColor")),alternateGridAlpha:(0,l.pluck)(t.alternatehgridalpha,i.getColor("altHGridAlpha")),numDivLines:(0,l.pluckNumber)(t.numdivlines,n.numDivLines),axisMinValue:n.yRangeMin||t.yaxisminvalue,axisMaxValue:n.yRangeMax||t.yaxismaxvalue,setAdaptiveMin:(0,l.pluckNumber)(t.setadaptivesymin,t.setadaptiveymin,n.setAdaptiveMin),adjustDiv:t.adjustdiv,labelStep:t.yaxisvaluesstep,showAxisValues:(0,l.pluckNumber)(t.showyaxisvalues,t.showyaxisvalue,n.showyaxisvalues),showLimits:(0,l.pluckNumber)(t.showyaxislimits,t.showlimits,e.showLimits),showDivLineValues:(0,l.pluckNumber)(t.showdivlinevalues,t.showdivlinevalue,n.showdivlinevalues),showZeroPlane:o,zeroPlaneColor:t.zeroplanecolor,zeroPlaneThickness:(0,l.pluckNumber)(t.zeroplanethickness,t.divlinethickness,n.zeroplanethickness,2),zeroPlaneAlpha:(0,l.pluckNumber)(t.zeroplanealpha,t.divlinealpha,n.zeroplanealpha),showZeroPlaneValue:s,showZeroPlaneOnTop:n.showzeroplaneontop,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,showAxisLine:A?0:(0,l.pluckNumber)(t.showyaxisline,t.showaxislines,t.drawAxisLines,n.showyaxisline,0),axisLineThickness:(0,l.pluckNumber)(t.yaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,l.pluckNumber)(t.yaxislinealpha,t.axislinealpha,100),axisLineColor:(0,l.pluck)(t.yaxislinecolor,t.axislinecolor,"#000000"),forceTrendBelow:!!n.is3D,labelFont:t.yaxisvaluefont,labelFontSize:this.computeFontSize(t.yaxisvaluefontsize),labelFontSizeWithUnit:t.yaxisvaluefontsize,labelFontColor:t.yaxisvaluefontcolor,labelAlpha:t.yaxisvaluealpha,labelFontBold:t.yaxisvaluefontbold,labelFontItalic:t.yaxisvaluefontitalic,labelBdrColor:t.yaxisvaluebordercolor,labelBdrAlpha:t.yaxisvalueborderalpha,labelBgAlpha:t.yaxisvaluebgalpha,labelLink:t.yaxisvaluelink,labelBgColor:t.yaxisvaluebgcolor,labelBdrThickness:t.yaxisvalueborderthickness,labelBdrPadding:t.yaxisvalueborderpadding,labelBdrRadius:t.yaxisvalueborderradius,labelBdrDashed:t.yaxisvalueborderdashed,labelBdrDashLen:t.yaxisvalueborderdashlen,labelBdrDashGap:t.yaxisvalueborderdashgap}},n.getBasexAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.config.is3D,A=n?l.chartPaletteStr.chart3D:l.chartPaletteStr.chart2D,r=e.getFromEnv("color-manager"),a=(0,l.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,t.basefontsize,10);return{isVertical:!1,isOpposit:(0,g["default"])(t.xaxisposition,"top"),outCanfontFamily:(0,l.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(a),outCanfontSizeWithUnit:a,outCancolor:(0,l.pluck)(t.outcnvbasefontcolor,t.basefontcolor,r.getColor(A.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:t.xaxisnamepadding,axisValuePadding:t.labelpadding,axisNameFont:t.xaxisnamefont,axisNameFontSize:this.computeFontSize(t.xaxisnamefontsize),axisNameFontSizeWithUnit:t.xaxisnamefontsize,axisNameFontColor:t.xaxisnamefontcolor,axisNameFontBold:t.xaxisnamefontbold,axisNameFontItalic:t.xaxisnamefontitalic,axisNameBgColor:t.xaxisnamebgcolor,axisNameBorderColor:t.xaxisnamebordercolor,axisNameAlpha:t.xaxisnamealpha,axisNameFontAlpha:t.xaxisnamefontalpha,axisNameBgAlpha:t.xaxisnamebgalpha,axisNameBorderAlpha:t.xaxisnameborderalpha,axisNameBorderPadding:t.xaxisnameborderpadding,axisNameBorderRadius:t.xaxisnameborderradius,axisNameBorderThickness:t.xaxisnameborderthickness,axisNameBorderDashed:t.xaxisnameborderdashed,axisNameBorderDashLen:t.xaxisnameborderdashlen,axisNameBorderDashGap:t.xaxisnameborderdashgap,useEllipsesWhenOverflow:t.useellipseswhenoverflow,divLineColor:(0,l.pluck)(t.vdivlinecolor,t.divlinecolor,r.getColor(A.divLineColor)),divLineAlpha:(0,l.pluck)(t.vdivlinealpha,t.divlinealpha,n?r.getColor("divLineAlpha3D"):r.getColor("divLineAlpha")),divLineThickness:(0,l.pluckNumber)(t.vdivlinethickness,t.divlinethickness,1),divLineIsDashed:Boolean((0,l.pluckNumber)(t.vdivlinedashed,t.vdivlineisdashed,t.divlinedashed,t.divlineisdashed,0)),divLineDashLen:(0,l.pluckNumber)(t.vdivlinedashlen,t.divlinedashlen,4),divLineDashGap:(0,l.pluckNumber)(t.vdivlinedashgap,t.divlinedashgap,2),alternateGridColor:(0,l.pluck)(t.alternatevgridcolor,r.getColor("altVGridColor")),alternateGridAlpha:(0,l.pluck)(t.alternatevgridalpha,r.getColor("altVGridAlpha")),labelFont:t.labelfont,labelFontSize:this.computeFontSize(t.labelfontsize),labelFontSizeWithUnit:t.labelfontsize,labelFontColor:t.labelfontcolor,labelAlpha:t.labelalpha,labelFontBold:t.labelfontbold,labelFontItalic:t.labelfontitalic,labelBdrColor:t.labelbordercolor,labelBdrAlpha:t.labelborderalpha,labelLink:t.labellink,labelBgColor:t.labelbgcolor,labelBdrThickness:t.labelborderthickness,labelBdrPadding:t.labelborderpadding,labelBdrRadius:t.labelborderradius,labelBdrDashed:t.labelborderdashed,labelBgAlpha:t.labelbgalpha,labelBdrDashLen:t.labelborderdashlen,labelBdrDashGap:t.labelborderdashgap,axisMinValue:t.xaxisminvalue,axisMaxValue:t.xaxismaxvalue,adjustDiv:t.adjustvdiv,labelDisplay:t.labeldisplay,showLabels:t.showlabels,rotateLabels:t.rotatelabels,slantLabel:(0,l.pluckNumber)(t.slantlabels,t.slantlabel),labelStep:(0,l.pluckNumber)(t.labelstep,t.xaxisvaluesstep),showAxisValues:(0,l.pluckNumber)(t.showxaxisvalues,t.showxaxisvalue),zeroPlaneColor:t.vzeroplanecolor,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,axisLineThickness:(0,l.pluckNumber)(t.xaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,l.pluckNumber)(t.xaxislinealpha,t.axislinealpha,100)}},n.getConfig=function(e){return e?this.config[e]:this.config},n._getSumValueSpace=function(e){var t,n=this,A={},r=n.config,a=n.isBar,i=n.getFromEnv("dataSource").chart,o=r.showSum=(0,l.pluckNumber)(i.showsum,r.showSum,0),s=(0,l.pluckNumber)(r.stack100percent),c=r.isstacked,u=0,h=[],d=0;if(n.iterateComponents(function(e){"cartesianStackGroup"!==e.getName()&&"marimekkoStackgroup"!==e.getName()||h.push(e)}),o&&s&&c&&h.length){for(t=h.length-1;t>=0;t--)A=h[t].getMaxSumValueSpace(),a?u=Math.max(u,A.maxWidth):d=Math.max(d,A.maxHeight);d>e&&(d=e),u>e&&(u=e)}return{top:d,right:u}},n.setAxisDimention=function(){var e,t,n=this,A=n.getChildren("xAxis")&&n.getChildren("xAxis")[0],r=n.getChildren("yAxis")&&n.getChildren("yAxis")[0],a=n.getChildren("scrollBar")&&n.getChildren("scrollBar")[0]&&n.getChildren("scrollBar")[0].config,i=n.config,o=i.xDepth||0,s=n.getFromEnv("chart-attrib"),c=(0,l.pluckNumber)(s.canvasleftpadding),u=(0,l.pluckNumber)(s.canvasrightpadding),h=n.getChildren("canvas")&&n.getChildren("canvas")[0].config,d=h&&h.canvasBorderWidth,g=n.isScrollEnabled(),p=(g||i.is3D)&&i.shift||0,f=h.canvasPadding,m=h.canvasLeft,v=m+h.canvasWidth,b=h.canvasPaddingLeft,B=h.canvasPaddingRight,y=h.canvasTop,C=i.sumValueSpace&&i.sumValueSpace.top||0,x=h.canvasPaddingTop;e=null==c?Math.max(b,f):c,t=null==u?Math.max(B,f):u,A&&A.setAxisConfig({canvasPaddingLeft:e,canvasPaddingRight:t}),A&&A.setAxisDimention({x:m+o+e,y:A.config.isOpposit?y-d-(g&&+a.isOpposite===A.config.isOpposit?p:0)-C:i.canvasBottom+(i.is3D||g&&+a.isOpposite===A.config.isOpposit?p:0)+d,opposite:A.config.isOpposit?i.canvasBottom+p+d:y-d-p,axisLength:h.canvasWidth-o-e-t}),r&&r.setAxisDimention({x:r.config.isOpposit?v+d:m-d,y:y+x,opposite:r.config.isOpposit?m-d:v+d,axisLength:h.canvasHeight-x-h.canvasPaddingBottom})},n._getTrendLineMinMax=function(e,t){var n,A,r,a,i,o=t,l="v"===e?this.getFromEnv("dataSource").vtrendlines:this.getFromEnv("dataSource").trendlines,s={max:-Infinity,min:Infinity};if(o=o||"p",l)for(A=0,a=l.length;A<a;A+=1)for(r=0,i=l[A].line?l[A].line.length:0;r<i;r+=1)n=l[A].line[r],"s"===o&&"s"!==n.parentyaxis||"s"!==o&&"s"===n.parentyaxis||(s.max=v(n.startvalue||-Infinity,n.endvalue||-Infinity,s.max),s.min=b(n.startvalue||Infinity,n.endvalue||Infinity,s.min));return s},n.setScrollType=function(e){"none"!==e&&"smart"!==e&&"always"!==e||(this.config.scrollType=e,"none"===e?this.disableScroll():this.enableScroll())},n.getScrollType=function(){return this.config.scrollType},n._createScrollBar=function(){var e,t=this,n=t.getFromEnv("animationManager"),A=t.getChildren("scrollBar")&&t.getChildren("scrollBar")[0];A||(A=t.attachChild(new p.ScrollBar,"scrollBar")),A.configure({isHorizontal:!t.isBar}),A.attachEventHandlers({scrollStart:function(n){e=n,t.fireChartInstanceEvent("scrollstart",{persistedScroll:a})},scroll:function(e){n.setAnimationState("scroll"),t.fireChartInstanceEvent("onScroll",{scrollPosition:e}),t.fireEvent("onScroll",{scrollPosition:e})},scrollEnd:function(){t.fireChartInstanceEvent("scrollend",{persistedScroll:a,prevScrollPosition:e})}})},n._disposeScrollBar=function(){var e=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0];e&&e.remove()},n.getScrollbarDimension=function(){var e,t,n,A,r,a,i,o,s,c,u,h,d,g,p,f,m,v=this,b=v.getChildren("xAxis")[0],B=b.config,y=B.axisRange,x=B.scrollOptions||(B.scrollOptions={}),w=y.max,F=y.min,S=x.vxLength,E=v.getChildren("scrollBar")[0],Q=v.getChildren("canvas")[0].config;if(E)return e=E.config,t=Q.canvasLeft,n=Q.canvasTop,A=Q.canvasHeight,r=Q.canvasWidth,a=Q.canvasBorderWidth,i=B.showAxisLine&&B.axisLineThickness||0,o=(0,l.pluckNumber)(a,B.lineStartExtension),s=(0,l.pluckNumber)(a,B.lineEndExtension),x.viewPortMin=F,x.viewPortMax=w,c=(p=(d=b.getVisibleConfig()).maxValue-(g=d.minValue))/(f=y.max-y.min),m=(g-y.min)/(f-p),u=x.windowedCanvasWidth=b.getPixel(S,C),h=x.fullCanvasWidth=b.getPixel(w-F,C)-u,e.scrollRatio=c,e.roundEdges=Q.isRoundEdges,e.fullCanvasWidth=h,e.windowedCanvasWidth=u,e.scrollPosition=m,e.isHorizontal?(e.scrollPosition=m,{x:t-o,y:e.isOpposite?n-a-i-(v.config.shift||0)-(e.padding||0):n+A+a+i,width:r+o+s}):(e.scrollPosition=B.isReverse?1-m:m,{x:e.isOpposite?t+r+a+(e.padding||0):t-v.config.shift-a,y:n-a-(e.padding||0),height:A+2*a})},n.enableScroll=function(){this._createScrollBar()},n.disableScroll=function(){this._disposeScrollBar()},n.isScrollEnabled=function(){var e=this.getChildren("scrollBar");return!(!e||!e[0]||e[0].getState("removed"))},n.decideScroll=function(){var e=this,t=e.getScrollType();"always"===t||"smart"===t&&1!==e.getFromEnv("axis").getZoom()?e.enableScroll():e.disableScroll()},t}(o["default"]);t["default"]=x},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(549)),i=n(281),o=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n._spaceManager=function(){var e,t,n,A,r,a,o,l,s,c,u,h,d,g,p=this,f=p.config,m=p.getChildren("xAxis")&&p.getChildren("xAxis")[0],v=f.legendposition?f.legendposition.split("-"):[],b=f.xDepth,B=f.yDepth,y=f.canvasBgDepth,C=f.canvasBaseDepth,x=f.canvasBasePadding,w=p.getChildren("canvas")[0],F=w.config.canvasBorderWidth,S=f.realTimeConfig&&f.realTimeConfig.showRTValue,E=f.borderWidth,Q=f.canvasMarginTop,k=f.canvasMarginBottom,L=f.canvasMarginLeft,U=f.canvasMarginRight,I=f.minCanvasHeight,T=f.minCanvasWidth,N=f.minChartWidth,D=f.minChartHeight,P=f.height,M=f.width,H=!1,O=!1,_=f.origCanvasTopMargin,R=f.origCanvasBottomMargin,V=f.origCanvasLeftMargin,G=f.origCanvasRightMargin;f.canvasWidth-2*E<N&&(c=(f.canvasWidth-N)/2),f.canvasHeight-2*E<D&&(s=(f.canvasHeight-D)/2),p._allocateSpace({top:s||E,bottom:s||E,left:c||E,right:c||E}),p._manageYAxisSpace(),p._allocateSpace(p._manageActionBarSpace&&p._manageActionBarSpace(.225*f.availableHeight)||{}),p._manageLegendSpace&&f.showLegend&&p._manageLegendSpace(undefined),e=v[0]===i.POSITION_TOP||v[0]===i.POSITION_BOTTOM?.6*f.availableHeight:.6*f.availableWidth,B&&(p._allocateSpace({bottom:B}),f.shift=b+x+C),y&&p._allocateSpace({right:y}),f.canvasWidth-2*F<T&&(h=(f.canvasWidth-T)/2),p._allocateSpace({left:h||F,right:h||F}),T>M-L-U&&(O=!0,t=f.canvasWidth-T,g=L+U,L=f.canvasMarginLeft=t*L/g,U=f.canvasMarginRight=t*U/g),r=L>f.canvasLeft?L-f.canvasLeft:0,a=U>M-f.canvasRight?U+f.canvasRight-M:0,p._allocateSpace({left:r,right:a}),O&&(g=V+G,(l=f.canvasWidth)>T&&(r=(t=l-T)*V/g,a=t*G/g),p._allocateSpace({left:r,right:a})),f.actualCanvasMarginRight=a,f.actualCanvasMarginBottom=A,p._manageChartMenuBar(e),e=.2*f.availableHeight,p._getSumValueSpace?(f.sumValueSpace=p._getSumValueSpace(e),p._allocateSpace(f.sumValueSpace)):f.sumValueSpace={top:0,right:0},e=.3*f.availableHeight,f.realtimeEnabled&&(S?p._allocateSpace(p._realTimeValuePositioning(e)):p._hideRealTimeValue()),p._resetViewPortConfig&&p._resetViewPortConfig(),p._setAxisScale&&p._setAxisScale(),e=.6*f.availableHeight,m&&p._calculateChartShift("xAxis"),f.xAxisSpaceAllocation=d=m&&m.placeAxis(e),m&&p._allocateSpace(d),f.canvasHeight-2*F<I&&(u=(f.canvasHeight-I)/2),p._allocateSpace({top:u||F,bottom:u||F}),p._allocateSpace({bottom:C}),I>P-Q-k&&(H=!0,t=f.canvasHeight-I,g=Q+k,Q=f.canvasMarginTop=t*Q/g,k=f.canvasMarginBottom=t*k/g),n=Q>f.canvasTop?Q-f.canvasTop:0,A=k>P-f.canvasBottom?k+f.canvasBottom-P:0,p._allocateSpace({top:n,bottom:A}),H&&(g=_+R,(o=f.canvasHeight)>I&&(n=(t=o-I)*_/g,A=t*R/g),p._allocateSpace({top:n,bottom:A})),f.actualCanvasMarginTop=n,f.actualCanvasMarginLeft=r,w.setDimension({top:f.canvasTop,left:f.canvasLeft,width:f.canvasWidth,height:f.canvasHeight})},n._manageYAxisSpace=function(){var e,t,n,A=this,r=A.config,a=A.getChildren("yAxis"),i=[];for(t=0;t<(a&&a.length);t++)(e=a[t])&&A._calculateChartShift("yAxis"),n=e&&e.placeAxis(.7*r.availableWidth)||{},i.push({axisIndex:t,spaceTaken:n}),e&&A._allocateSpace(n);r.yAxisSpaceAllocation=i},n._postSpaceManagement=function(){var e,t=this,n=t.config,A=t.getChildren(),r=A.xAxis&&A.xAxis[0],a=A.legend&&A.legend[0],i=n.xDepth,o=t.getChildren("canvas");for(t.setAxisDimention&&t.setAxisDimention(),r&&t._allocateXAxisLabelSpace(r),r&&r.shiftLabels(-i,0),a&&a.postSpaceManager(),e=0;e<(o&&o.length);e++)o[e].setCanvasPadding();t.setAxisDimention&&t.setAxisDimention(),t.allocateDimensionOfChartMenuBar()},n._calculateChartShift=function(e){var t,n=this,A=n.getChildren("scrollBar")&&n.getChildren("scrollBar")[0],r=n.getChildren(e)&&n.getChildren(e)[0],a=A&&A.config,i=r.config.isVertical,o={};A&&!A.getState("removed")&&(t=A.getLogicalSpace())&&(i&&!a.isHorizontal?(n.config.shift=t.width+a.conf.padding,o[a.isOpposite?"right":"left"]=n.config.shift,n._allocateSpace(o)):!i&&a.isHorizontal&&(n.config.shift=t.height+a.conf.padding,o[a.isOpposite?"top":"bottom"]=n.config.shift,n._allocateSpace(o)))},t}(a["default"]);t["default"]=o},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t._drawDataset=O,t.configurer=_,t["default"]=void 0;var r=A(n(295)),a=A(n(333)),i=A(n(550)),o=A(n(553)),l=n(289),s=A(n(554)),c=n(425),u=A(n(556)),h=A(n(558)),d=A(n(560)),g=A(n(311)),p=n(288),f=A(n(562)),m=n(281),v=A(n(283)),b=n(563),B=["line","circle","square"],y="english",C=(0,l.getDep)("redraphael","plugin"),x="VML"===C.type,w=Math.max,F=Math.min,S=Math.round,E={datalabelclick:!0,connectorclick:!0,categoryclick:!0,processclick:!0,milestoneclick:!0,labelclick:!0,dataplotclick:!0},Q=m.preDefStr.SEVENTYSTRING,k=m.preDefStr.AUTOSTRING,L="normal",U="onpointerover"in window.document,I=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,state:"appearing",component:n,label:"group"})},T=function(e){var t=e.data.config;t._containerMouseState="mousedown",t._mdx1=e.clientX!==m.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,t.mdy1=e.clientY!==m.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY,"touchstart"===e.type&&(t._touchStartedAt=(new Date).getTime())},N=function(e){var t=e.data.config,n=e.clientX!==m.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,A=e.clientY!==m.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(t._mdx1-n)>=2.5||Math.abs(t.mdy1-A)>=2.5)&&(e.data.config._containerMouseState=m.UNDEF)},D=function(e){(new Date).getTime()-e.data.config._touchStartedAt<500&&setTimeout(function(){P(e)})},P=function(e){var t,n=e.data,A=n.getFromEnv("chartInstance"),r=e.originalEvent,a=n.config,i=(0,m.getMouseCoordinate)(n.getFromEnv("chart-container"),r,n);A.ref&&"mousemove"!==a._containerMouseState&&(t=(0,m.extend2)({height:A.args.height,width:A.args.width,pixelHeight:n.getFromEnv("chartHeight"),pixelWidth:n.getFromEnv("chartWidth"),id:A.args.id,renderer:A.args.renderer,container:A.options.containerElement},i),n.fireChartInstanceEvent("chartclick",t),a.link&&(!a.hotElemClicked||a.clickURLOverridesPlotLinks)&&n.getFromEnv("linkClickFN").call({link:a.link}),a.hotElemClicked=!1)},M=function(e){var t=e.type,n=e.data,A=n.getFromEnv("eventListeners");if("mouseover"!==t&&"touchstart"!==t||!1!==n.config.mouseStateIn)"mouseout"!==t&&"touchend"!==t||(n.config.posOb=!1);else{if(R.hoverChart){var r=R.hoverChart;r.forceRollOut=!0,R.winMouseHover(r)}n.config.mouseStateIn=!0,R.onContainerRollOver(e),A.push(v["default"].listen(x?document:window,"mouseover",R.winMouseHover,n)),R.hoverChart=e}};function H(){var e,t,n,A,r=this,a=r,i=r.config,o="t"===i.toolbarVAlign?"chartMenuBar":"actionBar",l=r.getFromEnv("tool-config");e=r.getChildren(o)[0],t=i.printOption.enabled,n=a.config.realTimeConfig||{},A=e.attachChild(c.Hamburger,"tool","hamburgerMenu-"+e.getId()+"-"+r.getId()+"-0"),r.addToEnv("hamburger",A),A.configure(Object.assign({},l,{name:"ContextIcon"})),A._mouseOutEvent||(A._mouseOutEvent=function(){this.getChild("listContainer").hide()}),A._mouseOverEvent||(A._mouseOverEvent=function(){this.getChild("listContainer").show()}),A.addEventListener("fc-mouseover",A._mouseOverEvent),A.addEventListener("fc-mouseout",A._mouseOutEvent),t&&A.appendInMenu([{name:"Print",action:"click",handler:function(){r.getFromEnv("chartInstance").print()}}]),a._setRTmenu&&a._setRTmenu(n.showRTmenuItem,n.useMessageLog)}function O(){this.getChildren("canvas")[0]._mapChildren(function(e){e.syncDraw()})}function _(e){var t=this;t.config.skipConfigureIteration={},t.parseChartAttr(e),t.createComponent(e),t.setTooltipStyle(),t.configureChildren(),this.setState("allSeries",{}),this.setState("reRender",!1)}(0,l.addDep)({name:"commonAnimation",type:"animationRule",extension:f["default"]});var R=function(e){function t(){var t;return(t=e.call(this)||this).addToEnv("stringConstants",{COMPONENT:"component",CANVAS:"canvas",CAPTION:"caption"}),t.addToEnv("getMouseCoordinate",m.getMouseCoordinate),t._drawDataset=O,t.config.mouseStateIn=!1,t.registerFactory("toolbox",o["default"]),t.registerFactory("canvas",i["default"]),t._firstConfigure=!0,t}(0,r["default"])(t,e),t.getName=function(){return"CommonAPI"};var n=t.prototype;return n.plotEventHandler=function(e,t,n,A){void 0===t&&(t={});var r,a,i=this,o=t.type,l=n,s=(0,m.getMouseCoordinate)(i.getFromEnv("chart-container"),t,i),c=e&&e.data("eventArgs")||A,u=(0,m.extend2)(s,c),h=i.fireGroupEvent,d=e&&e.data("groupId"),g=function(e,n){t.FusionChartsPreventEvent=!0};"index"in u&&!("dataIndex"in u)&&(u.dataIndex=u.index),"value"in u&&!("dataValue"in u)&&(u.dataValue=u.value),"dataplotrollover"===(l=(0,m.pluck)(l,"dataplotclick").toLowerCase())?(t.FusionChartsPreventEvent=!1,h?(0,p.raiseEventGroup)(d,l,u,i.getFromEnv("chartInstance"),m.UNDEF,m.UNDEF,g):i.fireChartInstanceEvent(l,u,m.UNDEF,m.UNDEF,g)):h&&!E[l]?(0,p.raiseEventGroup)(d,l,u,i.getFromEnv("chartInstance")):i.fireChartInstanceEvent(l,u),"fc-click"!==o&&"click"!==o&&"mouseup"!==o&&"touchend"!==o||!/click/i.test(l)||(a=(r=i.getFromEnv())&&r.linkClickFN,u.link&&a&&a.call({link:u.link},!0))},n.getName=function(){return"Cartesian"},n.preConfigure=function(t){var n,A=this.getFromEnv("number-formatter"),r=null==(n=t.chart)?void 0:n.lang,a=r?r.toLowerCase():y;b.supportedLanguages.includes(a)||(a=y),this.addToEnv("chart-attrib",t.chart),this.addToEnv("language",a),A?A.configure():this.addToEnv("number-formatter",new g["default"](this)),e.prototype.preConfigure.call(this,t)},n.postConfigure=function(t){e.prototype.postConfigure.call(this,t),this._firstConfigure=!1},n.setDefaults=function(){e.prototype.setDefaults.call(this);var t=this.getFromEnv("number-formatter");t&&t.setDefaults&&t.setDefaults()},n.getType=function(){return"chartAPI"},n.parseChartAttr=function(e){var t,n,A,r,a,i,o,l,s,c,u,h,g,p,f,v,b=this,y=e||b.getFromEnv("dataSource"),C=b.config.is3D,x=C?m.chartPaletteStr.chart3D:m.chartPaletteStr.chart2D,S=b.isBar,E=b.getFromEnv("color-manager");E||(E=new d["default"](b),b.addToEnv("color-manager",E)),y.chart=y.chart||y.graph||y.map||{},delete y.map,delete y.graph,!(n=y.chart)&&(n=y.chart={}),A=b.config||(b.config={}),(0,m.parseConfiguration)(n,A,{},{showvalues:!0,crosslinecolor:!0,drawcrosslineontop:!0,crosslinealpha:!0,drawcrossline:!0}),A.showValues=(0,m.pluckNumber)(n.showvalues,A.showvalues),A.viewPortConfig={scaleY:1,scaleX:1,x:0,y:0},b.addToEnv("tool-config",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var A=t[0];return t.slice(1).forEach(function(e){for(var t in e)e.hasOwnProperty(t)&&e[t]!==m.UNDEF&&(A[t]=e[t])}),A}({},{scale:n.toolbarbuttonscale,width:n.toolbarbuttonwidth,height:n.toolbarbuttonheight,radius:n.toolbarbuttonradius,spacing:n.toolbarbuttonspacing,marginTop:n.toolbarbuttonmargintop,marginLeft:n.toolbarbuttonmarginleft,marginRight:n.toolbarbuttonmarginright,marginBottom:n.toolbarbuttonmarginbottom,fill:n.toolbarbuttoncolor,labelFill:n.toolbarlabelcolor,symbolFill:n.toolbarsymbolcolor,hoverFill:n.toolbarbuttonhovercolor,stroke:n.toolbarbuttonbordercolor,symbolStroke:n.toolbarsymbolbordercolor,strokeWidth:n.toolbarbuttonborderthickness,symbolStrokeWidth:n.toolbarsymbolborderthickness,bSymbolPadding:n.toolbarsymbolpadding,symbolHPadding:n.toolbarsymbolhpadding,symbolVPadding:n.toolbarsymbolvpadding,hAlign:n.toolbarhalign,vAlign:n.toolbarvalign}));var Q=(null==b?void 0:b.getName())||null,k=null==b||null==(t=b.config)?void 0:t.ignoredepthforlineplots;"MSColumn3DLineDy"!==Q&&"StackedColumn3DLineDy"!==Q||!k||(A.yDepthForLine=!0),C&&(S?(A.xDepth=5,A.yDepth=5):(A.xDepth=10,A.yDepth=10),A.showCanvasBase=v=Boolean((0,m.pluckNumber)(n.showcanvasbase,1)),A.canvasBasePadding=(0,m.pluckNumber)(n.canvasbasepadding,2),A.canvasBaseDepth=v?(0,m.pluckNumber)(n.canvasbasedepth,10):0,A.canvasBgDepth=(0,m.pluckNumber)(n.canvasbgdepth,3)),E&&E.configure(),A.placeAxisLabelsOnTop=(0,m.pluckNumber)(n.placexaxislabelsontop,0),A.enableAnimation=(0,m.pluckNumber)(n.animation,n.defaultanimation,1),A.showToolTip=(0,m.pluckNumber)(n.showtooltip,1),A.printOption={enabled:(0,m.pluckNumber)(n.printshowbutton,n.showprintmenuitem,0)},A.drawCrossLineOnTop=(0,m.pluckNumber)(n.drawcrosslineontop,1),s=A.style={},b.addToEnv("style",s),A.textDirection="1"===n.hasrtltext?"rtl":m.BLANKSTRING,s.inCanfontFamily=r=(0,m.pluck)(n.basefont,"Verdana,sans"),s.inCanfontSize=a=(0,m.pluckFontSize)(this.computeFontSize(n.basefontsize),10),s.inCanfontSizeWithUnit=i=(0,m.pluckFontSizeMaintainUnit)(n.basefontsize,10),s.inCancolor=o=(0,m.pluck)(n.basefontcolor,E.getColor(x.baseFontColor)),s.outCanfontFamily=(0,m.pluck)(n.outcnvbasefont,r),s.fontSize=l=(0,m.pluckFontSize)(this.computeFontSize(n.outcnvbasefontsize),a),s.fontSizeWithUnit=(0,m.pluckFontSizeMaintainUnit)(n.outcnvbasefontsize,i),s.outCanfontSize=l+m.PXSTRING,s.outCanfontSizeWithUnit=(0,m.pluckFontSizeMaintainUnit)(n.outcnvbasefontsize,i),s.outCancolor=(0,m.pluck)(n.outcnvbasefontcolor,o).replace(/^#? ([a-f0-9]+)/gi,"#$1"),s.baseFontSize=a,s.inCanfontSize=a+m.PXSTRING,s.inCancolor=o.replace(/^#? ([a-f0-9]+)/gi,"#$1"),s.inCanvasStyle=h={fontFamily:r,fontSize:a,fontSizeWithUnit:i,color:o},A.valueFontAlpha=(0,m.pluckNumber)(n.valuefontalpha,n.valuealpha,100),A.valueBgAlpha=(0,m.pluckNumber)(n.valuebgalpha,n.valuealpha,100),A.valueBorderAlpha=(0,m.pluckNumber)(n.valueborderalpha,n.valuealpha,100),A.valueFontColor=(0,m.pluck)(n.valuefontcolor,o),A.valueBgColor=(0,m.pluck)(n.valuebgcolor)||m.BLANKSTRING,s.inCanLineHeight=g=(0,m.setLineHeight)(h),f=(0,m.getFirstValue)(n.valuebordercolor,m.BLANKSTRING),f=A.valueBorderColor=f?(0,m.convertColor)(f,A.valueBorderAlpha):m.BLANKSTRING,A.reverseXAxis=b.config.allowreversexaxis&&(0,m.pluckNumber)(n.reversexaxis,0),A.reverseYAxis=b.config.allowreverseyaxis&&(0,m.pluckNumber)(n.reverseyaxis,0),A.showBorder=(0,m.pluckNumber)(n.showborder,A.showBorder,C?0:1),A.borderWidth=w(A.showBorder?(0,m.pluckNumber)(n.borderthickness,1):0,0),A.usePattern=(0,m.pluckNumber)(n.usepattern,A.usePattern),A.is3D&&(A.usePattern=0),A.patternType=B.includes(n.patterntype)?n.patterntype:A.patternType,A.patternDensity=(0,m.pluckNumber)(n.patterndensity,A.patternDensity),A.patternAlpha=(0,m.pluckNumber)(n.patternalpha,A.patternAlpha),A.patternBgColor=(0,m.pluck)(n.patternbgcolor,A.patternBgColor),A.useplotgradientcolor=(0,m.pluckNumber)(n.plotgradientcolor,A.useplotgradientcolor,0),A.useplotgradientcolor=A.usePattern?0:A.useplotgradientcolor,A.plotfillalpha=(0,m.pluck)(n.plotfillalpha,A.usePattern?m.HUNDREDSTRING:A.plotfillalpha),A.showplotborder=(0,m.pluckNumber)(n.showplotborder,A.usePattern?1:A.showplotborder),A.usePattern&&(A.showhovereffect=0,A.plothovereffect=0),A.valuefontbold=(0,m.pluckNumber)(n.valuefontbold,A.valuefontbold),A.dataLabelStyle=p={fontFamily:(0,m.pluck)(n.valuefont,r),fontSize:(0,m.pluck)(this.computeFontSize(n.valuefontsize),(0,m.pInt)(a,10))+m.PXSTRING,fontSizeWithUnit:(0,m.pluckFontSizeMaintainUnit)(n.valuefontsize,i),lineHeight:g,color:(0,m.convertColor)((0,m.pluck)(n.valuefontcolor,o),A.valueFontAlpha),fontWeight:A.valuefontbold?"bold":L,fontStyle:(0,m.pluckNumber)(n.valuefontitalic)?"italic":L,border:f||n.valuebgcolor?(0,m.pluckNumber)(n.valueborderthickness,1)+"px solid":m.BLANKSTRING,borderColor:f,borderThickness:(0,m.pluckNumber)(n.valueborderthickness,1),borderPadding:(0,m.pluckNumber)(n.valueborderpadding,2),borderRadius:(0,m.pluckNumber)(n.valueborderradius,0),backgroundColor:n.valuebgcolor?(0,m.convertColor)(n.valuebgcolor,A.valueBgAlpha):m.BLANKSTRING,borderDash:(0,m.pluckNumber)(n.valueborderdashed,0)?(0,m.getDashStyle)((0,m.pluckNumber)(n.valueborderdashlen,4),(0,m.pluckNumber)(n.valueborderdashgap,2)):m.DASH_DEF},(0,m.setLineHeight)(p),A.legendposition=(0,m.pluck)(n.legendposition,m.POSITION_BOTTOM),A.alignLegendWithCanvas=(0,m.pluckNumber)(n.alignlegendwithcanvas,1),A.origMarginTop=(0,m.pluckNumber)(n.charttopmargin,b.chartTopMargin,15),A.origMarginLeft=(0,m.pluckNumber)(n.chartleftmargin,b.chartLeftMargin,15),A.origMarginBottom=(0,m.pluckNumber)(n.chartbottommargin,b.chartBottomMargin,37),A.origMarginRight=(0,m.pluckNumber)(n.chartrightmargin,b.chartRightMargin,15),A.origCanvasLeftMargin=(0,m.pluckNumber)(n.canvasleftmargin,0),A.origCanvasRightMargin=(0,m.pluckNumber)(n.canvasrightmargin,0),A.origCanvasTopMargin=(0,m.pluckNumber)(n.canvastopmargin,0),A.origCanvasBottomMargin=(0,m.pluckNumber)(n.canvasbottommargin,0),A.minChartWidthPercent=(0,m.pluckNumber)(n.minchartwidth,b.minChartWidth,50)/100,A.minChartHeightPercent=(0,m.pluckNumber)(n.minchartheight,b.minChartHeight,50)/100,A.minCanvasWidthPercent=(0,m.pluckNumber)(n.mincanvaswidth,b.minCanvasWidth,60)/100,A.minCanvasHeightPercent=(0,m.pluckNumber)(n.mincanvasheight,b.minCanvasHeight,30)/100,c=(0,m.pluck)(n.zeroplanecolor,n.divlinecolor,E.getColor(x.divLineColor)),u=(0,m.pluck)(n.zeroplanealpha,n.divlinealpha,E.getColor("divLineAlpha")),A.zeroPlaneColor=(0,m.convertColor)(c,u),A.zeroPlaneBorderColor=(0,m.convertColor)((0,m.pluck)(n.zeroplanebordercolor,c),(0,m.pluckNumber)(n.zeroplaneshowborder,1)?u:0),A.zeroPlaneShowBorder=(0,m.pluckNumber)(n.zeroplaneshowborder,1),A.realtimeEnabled=(0,m.pluckNumber)(n.realtimeenabled,b.isRealTime),A.showLegend=(0,m.pluckNumber)(n.showlegend,b.showLegend,1),A.link=n.clickurl,A.transposeAxis=(0,m.pluckNumber)(b.transposeAxis,n.transposeaxis,0),A.useEllipsesWhenOverflow=(0,m.pluckNumber)(n.useellipseswhenoverflow,n.useellipsewhenoverflow,1),A.drawTrendRegion=(0,m.pluckNumber)(n.drawcrossline,1),A.plotcolorintooltip=(0,m.pluckNumber)(n.plotcolorintooltip,b.config.singleseries?0:1),A.plotbinsize=F((0,m.pluckNumber)(n.plotbinsize,b.plotbinsize,.5),1),A.labelbinsize=F((0,m.pluckNumber)(n.labelbinsize,1),1),A.labelbinsize=A.plotbinsize>A.labelbinsize?A.plotbinsize:A.labelbinsize,A.enableMouseOutEvent=(0,m.pluckNumber)(n.enablemouseoutevent,b.enableMouseOutEvent,1),A.plotSpacePercent=Math.max((0,m.pluckNumber)(n.plotspacepercent,b.plotSpacePercent),0),A.maxColWidth=Math.abs((0,m.pluckNumber)(n.maxcolwidth,50)),A.maxBarHeight=Math.abs((0,m.pluckNumber)(n.maxbarheight,50)),A.overlapColumns=(0,m.pluckNumber)(n.overlapcolumns,n.overlapbars,A.is3D?0:1),A.plotPaddingPercent=n.plotpaddingpercent,A.tooltipgrayoutcolor=(0,m.pluck)(n.tooltipgrayoutcolor,m.preDefStr.colors.AAAAAA),A.clickURLOverridesPlotLinks=(0,m.pluckNumber)(n.clickurloverridesplotlinks,0),A.toolbarX=(0,m.pluckNumber)(n.toolbarx),A.toolbarY=(0,m.pluckNumber)(n.toolbary),A.toolbarPosition=function(e){var t=e;switch(t){case"tr":case"rt":case"top right":case"right top":default:t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl"}return t}((0,m.pluck)(n.toolbarposition,"tr").toLowerCase()),A.toolbarHAlign="left"===(m.BLANKSTRING+n.toolbarhalign).toLowerCase()?"l":A.toolbarPosition.charAt(1),A.toolbarVAlign="bottom"===(m.BLANKSTRING+n.toolbarvalign).toLowerCase()?"b":A.toolbarPosition.charAt(0),A.toolbarVMargin=(0,m.pluckNumber)(n.toolbarvmargin,6),A.toolbarHMargin=(0,m.pluckNumber)(n.toolbarhmargin,10),b.addToEnv("chartConfig",A),b.addToEnv("linkClickFN",(0,m.getLinkAction)(b.getFromEnv("dataSource"),b)),b.addToEnv("dataLabelStyle",p)},n.createComponent=function(){var e,t=this;e=t.config.skipConfigureIteration,t.createBaseComponent(),t.getFromEnv("animationManager").setAnimationState(t._firstConfigure?"initial":"update"),(0,m.componentFactory)(t,s["default"],"caption"),e.caption=!0,(0,m.componentFactory)(t,u["default"],"subCaption"),e.subCaption=!0,(0,m.componentFactory)(t,h["default"],"background"),e.background=!0,t._createConfigurableComponents&&t._createConfigurableComponents(),t.config.realtimeEnabled&&t._realTimeConfigure&&t._realTimeConfigure()},n.configureChildren=function(){var e=this;e._mapChildren(function(t){!t.getState("removed")&&e.config.skipConfigureIteration[t.getName()]&&t.configure&&t.configure()})},n.attachMenuButtons=function(){H.call(this)},n.configureAttributes=function(e){_.call(this,e)},n.setTooltipStyle=function(){var e=this.config;this.getFromEnv("toolTipController").setStyle({backgroundColor:m.hasSVG?(0,m.convertColor)(e.tooltipbgcolor||"FFF",e.tooltipbgalpha||100):(e.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(e.tooltipcolor||e.basefontcolor||"545454").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:m.hasSVG?(0,m.convertColor)(e.tooltipbordercolor||"666",e.tooltipborderalpha||100):(e.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,m.pluckNumber)(e.tooltipborderthickness,1)+"px",showToolTipShadow:(0,m.pluckNumber)(e.showtooltipshadow,e.showshadow,1),borderRadius:(0,m.pluckNumber)(e.tooltipborderradius,0)+"px",fontSize:(0,m.pluckNumber)(this.computeFontSize(e.basefontsize),10)+"px",fontFamily:e.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,m.pluckNumber)(e.tooltippadding||3)+"px"})},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.zeroplanethickness=m.UNDEF,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=m.UNDEF,t.plothovereffect=m.UNDEF,t.anchorhovereffect=m.UNDEF,t.plotborderdashed=m.UNDEF,t.stack100percent=m.UNDEF,t.showpercentvalues=m.UNDEF,t.showpercentintooltip=m.UNDEF,t.plotbordercolor=m.UNDEF,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha=Q,t.showvalues=1,t.valueposition=k,t.drawcrossline=m.UNDEF,t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=m.UNDEF,t.plotfillratio=m.UNDEF,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.formatnumberscale=1,t.decimals=2,t.decimalprecision=10,t.tooltipbgcolor="FFF",t.tooltipcolor=m.UNDEF,t.tooltipbordercolor="666",t.tooltipbgalpha=100,t.tooltipborderthickness=1,t.showtooltipshadow=m.UNDEF,t.basefontsize=10,t.basefont="Verdana, sans",t.tooltipborderradius=0,t.tooltippadding=3,t.tooltipborderalpha=100,t.origw=m.UNDEF,t.origh=m.UNDEF,t.showBorder=m.UNDEF,t.usePattern=0,t.patternType=B[0],t.patternDensity=6,t.patternAlpha=100,t.patternBgColor=m.TRACKER_FILL},n.configure=function(t){var n=this,A=t;n.sanitizeData(A),n.addToEnv("dataSource",A),n.fireEvent("internal.dataSanitized",{}),A=n.getFromEnv("dataSource"),e.prototype.configure.call(this,A)},n._checkInvalidData=function(){var e=this,t=e.getFromEnv("dataSource"),n=e.getFromEnv("chartInstance");if(!(e.isWidget||e.isMap||t.data&&0!==t.data.length||t.dataset||t.value||t.lineset||t.annotations||t.category||t.tasks||t.process||t.axis))return n.__state.dataReady=!1,n.jsVars.hasNativeMessage=!0,n.jsVars.drawCount+=1,!0},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource"),t=e.dataset,n=e.categories;if(!t||!n||0===n.length||!n[0].category)return!0},n.sanitizeData=function(e){e.chart=e.chart||e.graph||e.map||{}},n.setChartEvents=function(){var e=this,n=e.getFromEnv("eventListeners"),A=e.getFromEnv("dataSource"),r=A&&A.chart,a=e.getFromEnv("paper")&&e.getFromEnv("paper").canvas,i=e.getFromEnv("chart-container"),o=r&&(0,m.pluckNumber)(r.enablechartmousemoveevent,0);(r||a)&&(v["default"].unlisten(i,U?"click":"touchend",U?P:D),n.push(v["default"].listen(i,"mousedown touchstart",T,e)),n.push(v["default"].listen(i,"mousemove touchmove",N,e)),n.push(v["default"].listen(i,U?"click":"touchend",U?P:D,e)),v["default"].unlisten(a,"mouseover",M,e),v["default"].unlisten(a,"touchstart",M,e),v["default"].unlisten(a,"mouseout",M,e),v["default"].unlisten(a,"touchend",M,e),n.push(v["default"].listen(a,"mouseover touchstart mouseout touchend",M,e)),v["default"].unlisten(i,"mousemove",t.onContainerMouseMove,e),v["default"].unlisten(i,"touchmove",t.onContainerMouseMove,e),o&&n.push(v["default"].listen(i,"mousemove touchmove",t.onContainerMouseMove,e)))},n.get=function(e,t){var n=this[e];return t?n&&n[t]:n},n.prepareAttributes=function(){this.config.hasChartMessage||e.prototype.prepareAttributes.call(this)},n.disposeChartStyleSheet=function(){var e=this.getFromEnv("paper");e&&e.cssClear()},n.createChartStyleSheet=function(){this.getFromEnv("paper").cssRender()},n._dispose=function(){var n=this.getFromEnv("eventListeners"),A=n&&n.length;for(t.hoverChart=m.UNDEF;A--;)n[A].unlisten();e.prototype._dispose.call(this)},n._allocateSpace=function(e){var t,n,A=this.getChildren("canvas"),r=A&&A[0].config,a=this.config,i=a.canvasHeight,o=a.canvasWidth,l=a.availableHeight,s=a.availableWidth;n=a.canvasLeft+=e.left||0,t=a.canvasTop+=e.top||0,o=a.canvasWidth=w(o-((e.left||0)+(e.right||0)),0),i=a.canvasHeight=w(i-((e.top||0)+(e.bottom||0)),0),a.availableHeight=w(l-((e.top||0)+(e.bottom||0)),0),a.availableWidth=w(s-((e.left||0)+(e.right||0)),0),a.canvasRight=n+o,a.canvasBottom=t+i,r&&(r.canvasPaddingLeft=w(r.canvasPaddingLeft,e.paddingLeft||0),r.canvasPaddingRight=w(r.canvasPaddingRight,e.paddingRight||0),r.canvasPaddingTop=w(r.canvasPaddingTop,e.paddingTop||0),r.canvasPaddingBottom=w(r.canvasPaddingBottom,e.paddingBottom||0)),A&&A[0].setDimension({top:t,left:n,width:o,height:i})},n._fetchCaptionPos=function(e){var t=this,n=t.config,A=n.width,r=t.getChildren("chartMenuBar")&&t.getChildren("chartMenuBar")[0],a=(r?r.getLogicalSpace():{}).width||0,i=(t.getChildren("caption")&&t.getChildren("caption")[0]).config,o=i.width,l="l"===n.toolbarHAlign,s=n.width-e,c=l?e:s,u=n.origMarginRight,h=n.origMarginLeft,d=l?h:u;return i.align===m.POSITION_MIDDLE?c-o/2-d-a:"start"===i.align?l?-1:A-n.canvasLeft-d-o-a+i.horizontalPadding:l?A-(u+h+a+o):-1},n._manageCaptionSpacing=function(e,t){return this.getChildren("caption")[0].manageSpace(e,t)},n._manageChartMenuBar=function(e){var t,n,A,r=this,a=r.config,i=r.getChildren("chartMenuBar")&&r.getChildren("chartMenuBar")[0],o=a.toolbarY!==m.UNDEF,l=i?i.getLogicalSpace():{height:0,width:0},s=(r.getChildren("caption")&&r.getChildren("caption")[0]).config,c=s.isOnTop,u=a.width/2,h=a.canvasRight,d=r.getFromEnv("gLegend")||{},g=!!(d.conf||{}).showLegend,p=0,f=h?(a.canvasLeft+h)/2:u,v=0,b=s.alignWithCanvas?f:u;return o&&(l.height=0),i&&i.setDimension({x:a.toolbarX!==m.UNDEF?a.toolbarX:(0,m.pluckNumber)("l"===a.toolbarHAlign?0:+a.width),y:a.toolbarY!==m.UNDEF?a.toolbarY:(0,m.pluckNumber)("t"===a.toolbarVAlign?0:+a.height),width:l.width,height:l.height}),delete s._offsetHeight,A=s.alignWithCanvas?a.canvasWidth:a.width-a.origMarginLeft-a.origMarginRight,c?(t=r._manageCaptionSpacing(e,A),v=r._fetchCaptionPos(b),s._offsetHeight=v<0?l.height:0,t.top=v<0?(0,m.pluckNumber)(t.top,0)+l.height:w(t.top,l.height),r._allocateSpace(t)):(r._allocateSpace({top:l.height}),t=r._manageCaptionSpacing(e,A),r._allocateSpace(t)),g&&r.config.gLegendEnabled&&(p=d.getCalculatedLogicalSpace().width-d.getLogicalSpace().width,"left"===(n=d.conf.legendPosition?d.conf.legendPosition.split("-"):[])[0]?r._allocateSpace({left:-p}):"right"===n[0]&&r._allocateSpace({right:-p})),{top:l?w(l.height,t.top):t.top,bottom:t.bottom}},n._manageSpace=function(){var e,t,n,A,r,a,i,o,l,s,c,u,h=this,d=h.getChildren("canvas")&&h.getChildren("canvas")[0],g=d&&d.config,p=h.config,f=h.getFromEnv("chartWidth"),m=h.getFromEnv("chartHeight");p.width=f,p.height=m,p.minChartHeight=l=p.minChartHeightPercent*m,p.minChartWidth=s=p.minChartWidthPercent*f,p.minCanvasWidth=e=p.minCanvasWidthPercent*s,p.minCanvasHeight=t=p.minCanvasHeightPercent*l,p.marginTop=n=p.origMarginTop,p.marginLeft=A=p.origMarginLeft,p.marginBottom=r=p.origMarginBottom,p.marginRight=a=p.origMarginRight,p.canvasMarginTop=p.origCanvasTopMargin,p.canvasMarginLeft=p.origCanvasLeftMargin,p.canvasMarginBottom=p.origCanvasBottomMargin,p.canvasMarginRight=p.origCanvasRightMargin,p.canvasHeight=i=p.height-p.marginTop-p.marginBottom,p.canvasWidth=o=p.width-p.marginLeft-p.marginRight,p.availableHeight=i-t,p.availableWidth=o-e,i<l&&(c=m-l,p.canvasHeight=l,u=n+r,p.marginTop=c*n/u,p.marginBottom=c*r/u,p.availableHeight=l-t),o<s&&(c=f-s,u=a+A,p.canvasWidth=s,p.marginLeft=c*A/u,p.marginRight=c*a/u,p.availableWidth=s-e),p.canvasLeft=p.marginLeft,p.canvasTop=p.marginTop,g&&(g.canvasPaddingLeft=F(g.origCanvasLeftPad,S(.1*p.height)),g.canvasPaddingRight=F(g.origCanvasRightPad,S(.1*p.height)),g.canvasPaddingTop=F(g.origCanvasTopPad,S(.1*p.height)),g.canvasPaddingBottom=F(g.origCanvasBottomPad,S(.1*p.height))),h._spaceManager()},n._preDraw=function(){var e=this;e._mapChildren(function(e){e.getState("removed")||e.preDraw&&e.preDraw()}),e._setAxisLimits&&e._setAxisLimits(),e._createToolBoxGantt&&e._createToolBoxGantt()},n._clearTimers=function(){var e,t=this,n=t.config&&t.config.realTimeConfig,A=t.config.timers,r=A&&A.setTimeout,a=A&&A.setInterval;for(e in n&&(n.refreshIntervalFlag=!1),r)clearTimeout(r[e]);for(e in a)clearInterval(a[e])},n.setChartCursor=function(){var e=this,t=e.config.link,n=e.getFromEnv("paper").canvas.style;C.svg?n.cursor=t?m.POINTER:"default":e.getFromEnv("paper").canvas.style.cursor=t?m.HAND:"default"},n._createLayers=function(){var e,t=this,n=t.getFromEnv("animationManager");e=t.getContainer("parentgroup")||t.addContainer("parentgroup",n.setAnimation({el:"group",attr:{name:"parentgroup"},component:t})),!t.getChildContainer("backgroundGroup")&&t.addChildContainer("backgroundGroup",I({name:"background"},e,t)),!t.getChildContainer("axisBottomGroup")&&t.addChildContainer("axisBottomGroup",I({name:"axisbottom"},e,t)),!t.getChildContainer("belowPlotGroup")&&t.addChildContainer("belowPlotGroup",I({name:"belowplot"},e,t)),!t.getChildContainer("plotGroup")&&t.addChildContainer("plotGroup",I({name:"plots"},e,t)),!t.getChildContainer("scrollbarContainer")&&t.addChildContainer("scrollbarContainer",I({name:"scrollbar-container"},e,t)),!t.getChildContainer("axisTopGroup")&&t.addChildContainer("axisTopGroup",I({name:"axistop"},e,t)),!t.getChildContainer("sumLabelsLayer")&&t.addChildContainer("sumLabelsLayer",I({name:"sumlabels","class":"fusioncharts-datalabels"},e,t)),!t.getChildContainer("datalabelsGroup")&&t.addChildContainer("datalabelsGroup",I({name:"datalabel"},e,t)),!t.getChildContainer("abovePlotGroup")&&t.addChildContainer("abovePlotGroup",I({name:"aboveplot"},e,t)),!t.getChildContainer("captionGroup")&&t.addChildContainer("captionGroup",I({name:"caption"},e,t)),!t.getChildContainer("defaultGroup")&&t.addChildContainer("defaultGroup",I({name:"chartdefault"},e,t)),!t.getChildContainer("defaultShadowGroup")&&t.addChildContainer("defaultShadowGroup",I({name:"chartdefault-shadow"},e,t)),!t.getChildContainer("trackerGroup")&&t.addChildContainer("trackerGroup",I({name:"tracker"},e,t)),!t.getChildContainer("logoGroup")&&t.addChildContainer("logoGroup",I({name:"logo"},e,t)),!t.getChildContainer("selectorGroup")&&t.addChildContainer("selectorGroup",I({name:"selectorGroup"},e,t)),t.getChildren("legend")!==m.UNDEF&&!t.getChildContainer("legendGroup")&&t.addChildContainer("legendGroup",I({name:"legend"},e,t)),!t.getChildContainer("toolbar-master")&&t.addChildContainer("toolbar-master",I({name:"toolbar-master"},e,t))},n._setDataLabelStyle=function(){var e=this.config.dataLabelStyle,t={fontFamily:e.fontFamily,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle};this.getChildContainer("datalabelsGroup").css(t)},n._manageCaptionPosition=function(){var e,t,n,A=this,r=A.config,a=A.getChildren(),i=a.caption&&a.caption[0],o=a.subCaption&&a.subCaption[0],l=i.config,s=l.widgetValueHeight||0,c=o.config,u=r.canvasWidth,h=l.align,d=l.text,g=l.alignWithCanvas,p=l.horizontalPadding,f=r.width,v=r.canvasLeft,b=r.canvasRight,B=r.marginRight,y=r.marginLeft,C=r.marginTop,x=(S(v)||0)+(0,m.pluckNumber)(u,f)/2,w=l.height,F=c.height,E=a.legend&&a.legend[0]&&a.legend[0].config||{},Q=E.height||0,k=E.legendPadding||0,L=r.legendposition?r.legendposition.toLowerCase().split("-"):[],U=A.getFromEnv("gLegend")||{},I=0,T=!!(U.conf||{}).showLegend,N=A.config.borderWidth,D=a.actionBar,P=0;switch(E.isActive||(Q=0),T&&A.config.gLegendEnabled&&(I=U.getCalculatedLogicalSpace().height),h){case"end":e=g?b-p:f-p;break;case"start":e=g?v+p:p;break;default:e=g?x:y+.5*(f-y-B)||f/2}l.isOnTop?t=(N||0)+(C||0):("left"!==L[0]&&"right"!==L[0]&&"top"!==L[0]&&"absolute"!==L[0]||(k=0,Q=0,I=0),D&&D.length&&((P=(D[0].getLogicalSpace&&D[0].getLogicalSpace()||{}).height)===m.UNDEF||P===Infinity||P<0)&&(P=0),t=A.config.height-A.config.marginBottom-w-(F||0)-(N||0)-(k||0)-(Q||0)-I-s-P),t+=l._offsetHeight||0,i.setDimention({x:e,y:t}),n=d?t+w+2:t||C||0,o.setDimention({x:e,y:n})},n.resizeCanvas=function(){var e=this,t=e.getFromEnv("paper"),n=e.config,A=e.getFromEnv("animationManager"),r=e.getFromEnv("chartWidth"),a=e.getFromEnv("chartHeight");m.hasSVG||!n._prevWidth&&!n._prevHeight||t.setSize(n._prevWidth,n._prevHeight),A.setAnimation({el:t,attr:{width:r,height:a},component:e})},n._updateVisuals=function(){var e=this,t=e.getFromEnv("core-options"),n=e.getFromEnv("paper"),A=e.config,r=e.getFromEnv("chartWidth"),a=e.getFromEnv("chartHeight");t&&!t._SVGDefinitionURLUpdated&&(/^\s*absolute\s*$/i.test(t.SVGDefinitionURL)&&(C._url=(C._g&&C._g.win||window).location.href.replace(/#.*?$/,m.BLANKSTRING)),t._SVGDefinitionURLUpdated=!0),n?e.resizeCanvas():((n=new C(e.getFromEnv("chart-container"),r,a)).setHTMLClassName("fusioncharts-div"),e.addToEnv("paper",n),n.setConfig("stroke-linecap",m.ROUND),e.setChartEvents()),A._prevWidth=r,A._prevHeight=a,e.setChartCursor(),e._createLayers(),e._setDataLabelStyle()},n.allocateDimensionOfChartMenuBar=function(){var e=this.config,t=this.getFromEnv("toolbar"),n=t.config,A=n.hDirection,r=n.vDirection,a=t.getLogicalSpace(),i=t.getDimension(),o=i.y,l=i.x;"t"===e.toolbarVAlign?(o+=e.toolbarVMargin*r+F(0,a.height*r),l+=e.toolbarHMargin*A-w(0,a.width*A),l="l"===e.toolbarHAlign?l+a.width:l-a.width):(o=e.height-e.marginBottom-a.height,l="b"===e.toolbarVAlign&&"r"===e.toolbarHAlign?e.width-e.marginRight-a.width:e.marginLeft),e.toolbarX!==m.UNDEF&&(l=e.toolbarX),e.toolbarY!==m.UNDEF&&(o=e.toolbarY),t.setDimension({x:l,y:o,width:a.width,height:a.height}),t.manageSpace()},n.draw=function(){var e=this,t=e.getFromEnv("chartInstance");e.config.hasChartMessage?(e._hide(),e.resizeCanvas(),e.drawChartMessage(),e.fireChartInstanceEvent("nodatatodisplay",{},[t.id]),t.jsVars.drawCount+=1,t.__state.dataReady=!1,t.jsVars.hasNativeMessage=!0):(e._hideChartMessage(),e._clearTimers&&e._clearTimers(),e.config.plotOverFlow=!1,e._show(),e._updateVisuals(),e.setState("initiated",!0),t.jsVars.drawCount+=1,t.jsVars.hasNativeMessage=!1),setTimeout(function(){window.blur()},1e3)},n.manageSpace=function(){var e,t,n,A=this,r=A.config,a=r.style,i=r.dataLabelStyle;r.hasChartMessage?A.getChildren("chartMessage")[0].manageSpace():(a.inCanfontSize=t=this.computeFontSize(a.inCanfontSizeWithUnit),a.fontSize=e=this.computeFontSize(a.fontSizeWithUnit),a.outCanfontSize=e+m.PXSTRING,a.baseFontSize=t,a.inCanfontSize=t+m.PXSTRING,a.inCanvasStyle.fontSize=t,a.inCanLineHeight=n=(0,m.setLineHeight)(a.inCanvasStyle),i.fontSize=this.computeFontSize(i.fontSizeWithUnit)+m.PXSTRING,i.lineHeight=n,(0,m.setLineHeight)(i),A.setTooltipStyle(),A._preDraw(),A.addToolbar&&A.addToolbar(),A._manageSpace(),A._postSpaceManagement&&A._postSpaceManagement())},n._show=function(){this.getContainer("parentgroup")&&this.getContainer("parentgroup").show()},n._manageActionBarSpace=function(){var e=this.config,t=this.getChildren("actionBar"),n=(t&&t[0]&&t[0].getLogicalSpace()||{}).height||0;return e.actionBarHeight=n,{bottom:n}},n._hide=function(){this.getContainer("parentgroup")&&this.getContainer("parentgroup").hide()},t.onContainerMouseMove=function(e){var t,n=e.data,A=n.getFromEnv("chartInstance"),r=e.originalEvent,a=(0,m.getMouseCoordinate)(n.getFromEnv("chart-container"),r,n);A.ref&&(t=(0,m.extend2)({height:A.args.height,width:A.args.width,pixelHeight:n.getFromEnv("chartHeight"),pixelWidth:n.getFromEnv("chartWidth"),id:A.args.id,renderer:A.args.renderer,container:A.options.containerElement},a),n.fireChartInstanceEvent("chartMouseMove",t))},t.onContainerRollOver=function(e){var t,n=e.data,A=n.getFromEnv("chartInstance"),r=e.originalEvent,a=(0,m.getMouseCoordinate)(n.getFromEnv("chart-container"),r,n);A.ref&&(t=(0,m.extend2)({height:A.args.height,width:A.args.width,pixelHeight:n.getFromEnv("chartHeight"),pixelWidth:n.getFromEnv("chartWidth"),id:A.args.id,renderer:A.args.renderer,container:A.options.containerElement},a),n.fireChartInstanceEvent("chartRollOver",t))},t.onContainerRollOut=function(e){var t,n=e.chart,A=n.getFromEnv("chartInstance"),r=e.event,a=(0,m.getMouseCoordinate)(n.getFromEnv("chart-container"),r,n);A.ref&&(t=(0,m.extend2)({height:A.args.height,width:A.args.width,pixelHeight:n.getFromEnv("chartHeight"),pixelWidth:n.getFromEnv("chartWidth"),id:A.args.id,renderer:A.args.renderer,container:A.options.containerElement},a),n.fireChartInstanceEvent("chartRollOut",t))},t.winMouseHover=function(e){var n=e.originalEvent,A=n.target||n.originalTarget||n.srcElement||n.relatedTarget||n.fromElement,r=e.data,a=r.getFromEnv("paper"),i={chart:r,event:e.originalEvent};x?a.getById(A.parentNode.raphaelid)||(t.onContainerRollOut(i),r.config.mouseStateIn=!1,v["default"].unlisten(document,"mouseover",t.winMouseHover)):null!=A&&A.viewportElement&&!e.forceRollOut||(r.config.mouseStateIn=!1,t.onContainerRollOut(i),t.hoverChart=m.UNDEF,v["default"].unlisten(window,"mouseover",t.winMouseHover),e.forceRollOut=!1)},t}(a["default"]);R.hoverChart=void 0;t["default"]=R},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t;(0,a.componentFactory)(e,r["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas");for(var n=0,A=t.length;n<A;n++)t[n].configure()};var r=A(n(551)),a=n(281)},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=n(281),o=n(289),l=A(n(552)),s=Math.max,c=i.preDefStr.miterStr,u=i.preDefStr.noneStr,h=i.preDefStr.ROUND,d="clip-sum-value",g="clip-canvas",p=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:n,label:"group"})};(0,o.addDep)({name:"canvasAnimation",type:"animationRule",extension:l["default"]});var f=function(e){function t(){var t,n=t=e.call(this)||this;return n.config={},n.config.axes=n.config.axes||[],n.setLinkedItem("axes",[]),n.setLinkedItem("primaryAxis",{}),n.addToEnv("canvasConfig",t.config),t}(0,r["default"])(t,e);var n=t.prototype;return n.getName=function(){return"canvas"},n.getType=function(){return"canvas"},n.createGroup=function(){var e=this,t=e.config,n=e.getFromEnv("chart"),A=n.getChildContainer(),r=n.getContainer("parentgroup"),a=e.getEffectiveDimensions(),o=e.getFromEnv("chart-attrib"),l=(0,i.pluckNumber)(o.areaovercolumns,1),s=e.getChildContainer("axisReferenceVisualsFloor"),c=e.getChildContainer("axisReferenceVisualsBottom"),u=e.getChildContainer("axisReferenceVisualsMiddle"),h=e.getChildContainer("axisReferenceVisualsTop"),d=e.getChildContainer("axisReferenceVisualsCeil"),g=e.getChildContainer("areaGroup"),f=e.getChildContainer("areaShadowGroup"),m=e.getChildContainer("columnGroup"),v=e.getChildContainer("columnShadowGroup"),b=A.plotGroup,B=[a.left,a.top,a.width,a.height].toString();!e.getContainer("canvasGroup")&&e.addContainer("canvasGroup",p("canvas",r,e)).insertAfter(A.backgroundGroup),c||(c=e.addChildContainer("axisReferenceVisualsBottom",p("axisReferenceVisualsBottom",r,e)).insertAfter(A.axisBottomGroup)),c.attr({"clip-rect":t.canvasBorderWidth>0?B:null}),s||(s=e.addChildContainer("axisReferenceVisualsFloor",p("axisReferenceVisualsFloor",r,e)).insertAfter(A.axisBottomGroup)),s.attr({"clip-rect":B}),!e.getChildContainer("crossline")&&e.addChildContainer("crossline",p("crossline",r,e)).insertBefore(A.plotGroup),!e.getChildContainer("crosslineBottom")&&e.addChildContainer("crosslineBottom",p("crosslineBottom",r,e)).insertBefore(A.plotGroup),!e.getChildContainer("crosslineTop")&&e.addChildContainer("crosslineTop",p("crosslineTop",r,e)).insertBefore(A.abovePlotGroup),!e.getChildContainer("datalabelsGroup")&&e.addChildContainer("datalabelsGroup",p("canvasdatalabel",n.getChildContainer("datalabelsGroup"),e)),u||(u=e.addChildContainer("axisReferenceVisualsMiddle",p("axisReferenceVisualsMiddle",r,e)).insertBefore(A.plotGroup)),u.attr({"clip-rect":B}),h||(h=e.addChildContainer("axisReferenceVisualsTop",p("axisReferenceVisualsTop",r,e)).insertBefore(A.datalabelsGroup)),!e.getChildContainer("quadrantGroup")&&e.addChildContainer("quadrantGroup",p("quadrant",r,e)).insertAfter(u),d||e.addChildContainer("axisReferenceVisualsCeil",p("axisReferenceVisualsCeil",r,e)).insertBefore(A.datalabelsGroup),!e.getChildContainer("sumLabelsLayer")&&e.addChildContainer("sumLabelsLayer",A.sumLabelsLayer),v||(v=e.addChildContainer("columnShadowGroup",p("column-shadow-group",b,e))),m||(m=e.addChildContainer("columnGroup",p("column",b,e))),f||(f=e.addChildContainer("areaShadowGroup",p("area-shadow-group",b,e))),g||(g=e.addChildContainer("areaGroup",p("area",b,e))),l?(v.insertBefore(f),m.insertBefore(f)):(f.insertBefore(v),g.insertBefore(v)),!e.getChildContainer("lineShadowGroup")&&e.addChildContainer("lineShadowGroup",p("line-shadow-group",b,e)),!e.getChildContainer("lineGroup")&&e.addChildContainer("lineGroup",p("line",b,e)),!e.getChildContainer("defaultShadowGroup")&&e.addChildContainer("defaultShadowGroup",p("default-shadow-group",b,e)),!e.getChildContainer("defaultGroup")&&e.addChildContainer("defaultGroup",p("default",b,e))},n.isWithinCanvas=function(e,t){var n=this.config,A=n.canvasLeft,r=A+n.canvasWidth,a=n.canvasTop,i=a+n.canvasHeight;return e>=A&&e<=r&&t>=a&&t<=i},n.setCanvasPadding=function(){var e,t=this.config;e=this.getCanvasPadding(),t.canvasPaddingLeft=s(t.canvasPaddingLeft,e.paddingLeft||0),t.canvasPaddingRight=s(t.canvasPaddingRight,e.paddingRight||0),t.canvasPaddingTop=s(t.canvasPaddingTop,e.paddingTop||0),t.canvasPaddingBottom=s(t.canvasPaddingBottom,e.paddingBottom||0)},n.getEffectiveDimensions=function(){var e=this.config;return{left:e.canvasLeft,top:e.canvasTop,width:e.canvasWidth,height:e.canvasHeight,paddingLeft:e.canvasPaddingLeft,paddingTop:e.canvasPaddingTop,paddingRight:e.canvasPaddingRight,paddingBottom:e.canvasPaddingBottom}},n.setDimension=function(e){var t=this.config;t.canvasTop=e.top,t.canvasLeft=e.left,t.canvasWidth=e.width,t.canvasHeight=e.height},n.getCanvasPadding=function(){var e,t,n,A,r=this,a=r.getFromEnv("chartConfig").canvasWidth,i=r.config.maxPaddingPercent*a/100,o={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return r._mapChildren(function(n){for(t in e=n.getCanvasPadding&&n.getCanvasPadding()||{})e.hasOwnProperty(t)&&(o[t]=s(e[t],o[t]))}),n=o.paddingLeft||0,A=o.paddingRight||0,i<n&&(o.paddingLeft=i),i<A&&(o.paddingRight=i),o},n.configureAttributes=function(e){void 0===e&&(e={});var t,n,A,r,a,o=this,l=o.getLinkedParent(),c=o.getFromEnv("chartConfig"),u=o.config,h=o.getFromEnv("chart-attrib"),d=o.getFromEnv("color-manager"),g=c.is3D,p=g?i.chartPaletteStr.chart3D:i.chartPaletteStr.chart2D,f=u.isRoundEdges=(0,i.pluckNumber)(h.useroundedges,0),m=(0,i.pluckNumber)(h.showxaxisline,h.showyaxisline,h.showaxislines,0)?0:1;u.canvasBorderRadius=(0,i.pluckNumber)(h.plotborderradius,f?2:0),A=u.showCanvasBorder=Boolean((0,i.pluckNumber)(h.showcanvasborder,m,t,f?0:1)),a=u.oriCanvasBorderThickness=s((0,i.pluckNumber)(h.canvasborderthickness,f?0:(0,i.pluckNumber)(l.config.canvasborderthickness,2),0)),t=u.canvasBorderWidth=g?0:A?a:0,u.canvasBorderColor=(0,i.convertColor)((0,i.pluck)(h.canvasbordercolor,d.getColor(i.canvasBorderColorStr)),(0,i.pluck)(h.canvasborderalpha,d.getColor("canvasBorderAlpha"))),n=u.canBGAlpha=(0,i.pluck)(h.canvasbgalpha,d.getColor(i.canvasBGAlphaStr)),u.canBGColor={FCcolor:{color:(0,i.pluck)(h.canvasbgcolor,d.getColor(p.canvasBgColor)),alpha:(0,i.pluck)(h.canvasbgalpha,100),angle:(0,i.pluck)(h.canvasbgangle,0),ratio:(0,i.pluck)(h.canvasbgratio)}},r=u.shadow=(0,i.pluckNumber)(h.showshadow,f,0)&&f?{enabled:!0,opacity:n/100}:0,u.shadowOnCanvasFill=r&&r.enabled,u.canvasPadding=(0,i.pluckNumber)(h.canvaspadding,0),u.origCanvasTopPad=(0,i.pluckNumber)(h.canvastoppadding,0),u.origCanvasBottomPad=(0,i.pluckNumber)(h.canvasbottompadding,0),u.origCanvasLeftPad=(0,i.pluckNumber)(h.canvasleftpadding,0),u.origCanvasRightPad=(0,i.pluckNumber)(h.canvasrightpadding,0),Object.assign(u,e),o.config.inputComponents=[],o.config.maxPaddingPercent=12.5,o._mapChildren(function(e){e.getState("removed")||e.getType&&"dataset"===e.getType()||"axisRefVisuals"===e.getType()||e.configure&&e.configure()})},n.disposeAllInputs=function(){this.config.inputComponents.forEach(function(e){e.dispose()}),this.config.inputComponents.length=0},n.axisExists=function(e){var t,n,A=this.getLinkedItem("axes"),r=!1;for(t=0,n=A.length;t<n;t++)if(A[t].axis===e){r=!0;break}return r},n.attachAxis=function(e,t,n){var A=this.getLinkedItem("axes"),r=t?"yAxis":"xAxis",a=this.getFromEnv(r)||[];return this.axisExists(e)||(A.push({axis:e,isY:t,config:n||{}}),a.push(e),this.addToEnv(r,a)),this},n.setPrimaryAxis=function(e,t){this.getLinkedItem("primaryAxis")[e]=this.getLinkedItem("axes").find(function(e){return e.axis===t})},n.getAxes=function(){var e;return Object.keys(e=this.getLinkedItem("primaryAxis")).length?[e.xAxis,e.yAxis]:this.getLinkedItem("axes").slice(0)},n.detachAxis=function(e,t){var n=this.getLinkedItem("axes"),A=Infinity;return t?n.splice(t,1):(n.forEach(function(t,n){t.axis===e&&(A=n)}),n.splice(A,1))},n.preDraw=function(){this._mapChildren(function(e){e.getState("removed")||e.preDraw&&e.preDraw()})},n.draw=function(){this.createGroup(),!this.getFromEnv("chart").config.skipCanvasDrawing&&this.drawCanvas()},n.drawCanvas=function(){var e,t,n,A,r,a,o,l=this,p=l.getFromEnv("chart"),f=p.isBar,m=l.getFromEnv("chart-attrib"),v=l.getFromEnv("animationManager"),b=p.config,B=l.config,y=B.clip={},C=p.getChildContainer("plotGroup"),x=p.getChildContainer("datalabelsGroup"),w=l.getGraphicalElement("canvasBorderElement"),F=l.getGraphicalElement("canvasElement"),S=B.canvasLeft||(B.canvasLeft=b.canvasLeft),E=B.canvasTop||(B.canvasTop=b.canvasTop),Q=B.canvasWidth||(B.canvasWidth=b.canvasWidth),k=B.canvasHeight||(B.canvasHeight=b.canvasHeight),L=B.xDepth=b.xDepth||0,U=B.yDepth=b.yDepth||0,I=l.getContainer("canvasGroup"),T=l.getChildContainer("quadrantGroup"),N=B.canvasBorderRadius,D=B.canvasBorderWidth,P=.5*D,M=B.canvasBorderColor,H=B.canBGColor,O=B.canBGAlpha,_=B.shadow,R=B.showCanvasBG=Boolean((0,i.pluckNumber)(m.showcanvasbg,1)),V=B.shadowOnCanvasFill,G=B.showCanvasBorder;A=H,r={x:S-P,y:E-P,width:Q+D,height:k+D,r:N,"stroke-width":D,stroke:M,"stroke-linejoin":D>2?h:c},G?(w&&w.show(),t=v.setAnimation({el:w||"rect",component:l,attr:{x:S-P,y:E-P,width:Q+D,height:k+D,r:N,"stroke-width":D,stroke:M,"stroke-linejoin":D>2?h:c},label:"rect",container:I}).shadow(_),w||l.addGraphicalElement("canvasBorderElement",t)):w&&(l.removeGraphicalElement(w),v.setAnimation({el:w,component:l,callback:function(){w.hide()}})),a=G?0:B.oriCanvasBorderThickness,y[g]=[s(0,S-L-a),s(0,E-U-a),s(1,Q+2*L+2*a),s(1,k+U+2*a)],y[d]=[s(0,S-L),f?E:0,s(1,f?b.width-S:Q+2*L),s(1,f?k+U:E+k)],y["clip-canvas-init"]=[s(0,S-L),s(0,E-U),1,s(1,k+2*U)],e=y[g].slice(0),o=function(e,t){v.setAnimation({el:e,attr:{"clip-rect":t},label:"container",component:l,state:e.attrs["clip-rect"]?"updating":"appearing"})},b.skipClipping||(o(C,e),o(x,e),o(T,e),o(l.getChildContainer("sumLabelsLayer"),y[d])),R?(r={x:S,y:E,width:Q,height:k,r:N,"stroke-width":0,stroke:u,fill:(0,i.toRaphaelColor)(A)},F&&F.show(),n=v.setAnimation({el:F||"rect",attr:r,label:"rect",container:I,component:l}),F||l.addGraphicalElement("canvasElement",n),V?n.shadow({opacity:O/100}):n.shadow(!1)):F&&v.setAnimation({el:F,component:l,callback:function(){F.hide()}})},t}(a.ComponentInterface);t["default"]=f},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.canvas.canvas":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]},"*":null}},"update.canvas.canvas":{"rect.updating":[{slot:"middle"}]}}},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,n=e,o=n.config,l=n.getFromEnv("chart-attrib"),s="t"===o.toolbarVAlign?"chartMenuBar":"actionBar",c="t"===o.toolbarVAlign?"actionBar":"chartMenuBar";(0,A.componentFactory)(n,r.ToolBar,c,0,[l]),(0,A.componentFactory)(n,r.ToolBar,s,1,[l]),t=n.getChildren(s)[0],n.addToEnv("toolbar",t),a.SymbolStore.register("ContextIcon",function(e,t,n){var A=e,r=t,a=2*n,o=i(a/4),l=.7*i(a/2),s=A-l,c=A+l,u=r+o,h=r-o;return["M",s,r,"L",c,r,"M",s,u,"L",c,u,"M",s,h,"L",c,h]}),n.attachMenuButtons()};var A=n(281),r=n(425),a=n(430),i=Math.round},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(281),i=n(297),o=n(289),l=A(n(555)),s=Math.max,c=Math.min,u=Math.ceil,h="px",d="top",g="middle";(0,o.addDep)({name:"captionAnimation",type:"animationRule",extension:l["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"caption"},n.getName=function(){return"caption"},n.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),n=this.config||{},A=e.getFromEnv("style"),r=A.outCanfontFamily,i=A.outCancolor,o=["top","center"];switch(this.config.text=(0,a.parseUnsafeString)(t.caption),n.style={fontFamily:(0,a.pluck)(t.captionfont,r),color:(0,a.convertColor)((0,a.pluck)(t.captionfontcolor,i).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,a.pluckNumber)(this.computeFontSize(t.captionfontsize),this.computeFontSize(A.fontSizeWithUnit)+3)+h,fontWeight:0===(0,a.pluckNumber)(t.captionfontbold)?a.NORMAL:a.BOLD},n.align||(n.align=a.BLANKSTRING),n.align=(0,a.pluck)(t.captionposition,t.captionalignment,"center"),n.align&&((o=n.align.split("-"))[0]&&(o[0]=o[0].toLowerCase()),o[1]&&(o[1]=o[1].toLowerCase()),o.length<2&&(o[1]=o[0])),o[0]){case d:n.isOnTop=1;break;case"bottom":n.isOnTop=0;break;default:n.isOnTop=(0,a.pluckNumber)(t.captionontop,1)}switch(o[1]){case"right":n.align="end";break;case"left":n.align="start";break;default:n.align=g}n.isOnLeft=!(0,a.pluckNumber)(t.captiononright,0),n.captionPosition=(0,a.getValidValue)(t.captionposition,d).toLowerCase(),n.alignWithCanvas=(0,a.pluckNumber)(t.aligncaptionwithcanvas,e.config.alignCaptionWithCanvas,1),n.horizontalPadding=(0,a.pluckNumber)(t.captionhorizontalpadding,n.alignWithCanvas?0:15),n.drawCaption=!0,(0,a.setLineHeight)(n.style)},n.allocatePosition=function(){this.getFromEnv("chart")._manageCaptionPosition()},n.draw=function(){var e,t=this,n=this.getFromEnv("chart"),A=n.config,r=n.getFromEnv("animationManager"),i=n.config.textDirection,o=n.getChildContainer().captionGroup,l=n.getFromEnv("smartLabel"),s=t.getGraphicalElement("captionElement"),c=t.getFromEnv("toolTipController"),u=t.config,h=u.style,p=u.text,f=u.x,m=u.align;p?(e={text:u.text,fill:h.color,x:f,y:u.y,"text-anchor":m||g,"vertical-align":u.verticalAlign||d,visibility:u.drawCaption?a.visibleStr:a.hiddenStr,direction:i},(s=t.addGraphicalElement("captionElement",r.setAnimation({el:s||"text",attr:e,container:o,state:undefined,component:t,label:"text"}))).css(h),A.showtooltip?c.enableToolTip(s,u.originalText):c.disableToolTip(s),l&&(l.useEllipsesOnOverflow(A.useEllipsesWhenOverflow),l.setStyle(h))):s&&r.setAnimation({el:s,component:t,callback:function(){this.hide()},doNotRemove:!0}),A.savedCaption=s},n.manageSpace=function(e,t){var n,A,r,i,o,l=this.getFromEnv("chart"),d=l.config,g=l.getChildren("caption")[0],p=l.getChildren("subCaption")[0],f=l.getFromEnv("style").fontSizeWithUnit,m=g.config,v=p.config,b=m.style,B=v.style,y=l.getFromEnv("dataSource").chart,C=l.getFromEnv("smartLabel"),x=e,w=(0,a.parseUnsafeString)(y.caption),F=(0,a.parseUnsafeString)(y.subcaption),S=(0,a.pluckNumber)(y.captionpadding,10),E=S,Q=!1,k=0,L=0,U=0,I=0,T=0,N=l.getChildren("canvas"),D=s(N&&N[0].config.canvasBorderThickness,0),P=0,M=0;return b.fontSize=(0,a.pluckNumber)(this.computeFontSize(y.captionfontsize),this.computeFontSize(f)+3)+h,(0,a.setLineHeight)(b),B.fontSize=(0,a.pluckNumber)(this.computeFontSize(y.subcaptionfontsize),(0,a.pluckNumber)(s((0,a.pluckNumber)(this.computeFontSize(y.captionfontsize))-3,-1),this.computeFontSize(f))+(0,a.pluckNumber)(l.subTitleFontSizeExtender,1))+h,(0,a.setLineHeight)(B),x>3?(S<D&&(S=D+2),w!==a.BLANKSTRING&&(r=m.style,I=u((0,a.pluckNumber)(parseFloat(r.fontHeight,10),parseFloat(r.lineHeight,10),12))),F!==a.BLANKSTRING&&(o=v.style,T=(0,a.pluckNumber)(parseInt(o.fontHeight,10),parseInt(o.lineHeight,10),12)),I>0||T>0?((k=I+T+S)>(x=s(x,0))?(Q=!0,(L=k-x)<S?S=s(L,5):(L-=S,S=0,T>L?(U=T-L+10,T=0,v._originalText=v.text,v.text=a.BLANKSTRING):(L-=T,T=0,I>L&&(U=I-L)))):U=x-k,C.useEllipsesOnOverflow(d.useEllipsesWhenOverflow),I>0&&(C.setStyle(r),U=(I+=U)-(n=C.getSmartText(w,t,I)).height,m.height=I=n.height,m.text=n.text,m.originalText=!!n.tooltext&&n.tooltext,P=n.width),T>0&&(C.setStyle(o),U=(T+=U)-(A=C.getSmartText(F,t,T)).height,T=A.height,v.text=A.text,v.height=A.height,v.originalText=!!A.tooltext&&A.tooltext,M=A.width),Q&&U>0&&(S+=c(E-S,U)),m.captionPadding=S,m.height=I,m.width=P,v.width=M,v.height=T,k=I+T+S):(m.height=0,v.height=0),k>d.canvasHeight?(k=0,m.drawCaption=!1):m.drawCaption=!0,i=m.isOnTop?{top:k}:{bottom:k,top:5}):(i={bottom:0,top:0},m.drawCaption=!1),i},n.setDimention=function(e){var t=this.config;t.x=e.x,t.y=e.y},t}(i.ComponentInterface);t["default"]=p},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.caption.caption":function(){return{"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(281),i=A(n(554)),o=n(289),l=A(n(557)),s=Math.max;(0,o.addDep)({name:"subcaptionAnimation",type:"animationRule",extension:l["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"caption"},n.getName=function(){return"subCaption"},n.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),n=this.config||{},A=e.getFromEnv("style"),r=e.getChildren("caption")[0],i=A.outCanfontFamily,o=A.outCancolor,l=A.fontSizeWithUnit,c=["top","center"];switch(n.text=(0,a.parseUnsafeString)(t.subcaption),n.align||(n.align=a.BLANKSTRING),n.align=(0,a.pluck)(t.captionposition,t.captionalignment,"center"),r.config.align&&((c=r.config.align.split("-"))[0]&&(c[0]=c[0].toLowerCase()),c[1]&&(c[1]=c[1].toLowerCase()),c.length<2&&(c[1]=c[0])),c[0]){case"top":n.isOnTop=1;break;case"bottom":n.isOnTop=0;break;default:n.isOnTop=(0,a.pluckNumber)(t.captionontop,1)}n.alignWithCanvas=(0,a.pluckNumber)(e.aligncaptionwithcanvas,t.aligncaptionwithcanvas,1),n.horizontalPadding=(0,a.pluckNumber)(t.captionhorizontalpadding,r.config.alignWithCanvas?0:15),n.style={fontFamily:(0,a.pluck)(t.subcaptionfont,t.captionfont,i),color:(0,a.convertColor)((0,a.pluck)(t.subcaptionfontcolor,t.captionfontcolor,o).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,a.pluckNumber)(this.computeFontSize(t.subcaptionfontsize),(0,a.pluckNumber)(s((0,a.pluckNumber)(this.computeFontSize(t.captionfontsize))-3,-1),this.computeFontSize(l))+(0,a.pluckNumber)(e.subTitleFontSizeExtender,1))+"px",fontWeight:0===(0,a.pluckNumber)(t.subcaptionfontbold,e.subTitleFontWeight,t.captionfontbold)?a.NORMAL:a.BOLD},(0,a.setLineHeight)(n.style)},n.draw=function(){var e,t=this,n=t.getFromEnv("chart"),A=n.getFromEnv("animationManager"),r=n.getChildren("caption")[0],i=n.config,o=i.textDirection,l=n.getChildContainer().captionGroup,s=t.getGraphicalElement("subCaptionElement"),c=t.getFromEnv("toolTipController"),u=t.config,h=u.style,d=u.text,g=r.config.align;d?(e={text:u.text,fill:h.color,x:u.x,y:u.y,"text-anchor":g||"middle","vertical-align":"top",direction:o,visibility:r.config.drawCaption?a.visibleStr:a.hiddenStr},(s=t.addGraphicalElement("subCaptionElement",A.setAnimation({el:s||"text",attr:e,container:l,state:undefined,component:t,hookFn:function(){this.css(h)},label:"text"}))).css(h),i.showtooltip?c.enableToolTip(s,u.originalText):c.disableToolTip(s)):s&&t.removeGraphicalElement(s),i.savedSubCaption=s},n.setDimention=function(e){this.config.x=e.x,this.config.y=e.y},t}(i["default"]);t["default"]=c},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(555));t["default"]={"initial.caption.subCaption":r["default"]["initial.caption.caption"]}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=n(281),o=n(289),l=A(n(559)),s="BackgroundLoaded",c="BackgroundLoadError",u="top",h="bottom",d="middle",g="right",p="left",f="none";(0,o.addDep)({name:"backgroundAnimation",type:"animationRule",extension:l["default"]});var m=function(e){function t(){var t,n,A;return(t=e.call(this)||this).config.handler=(A=(n=t).config,{load:function(){var e=A.bgImageDisplayMode,t=A.bgImageVAlign,r=A.bgImageHAlign,a=A.bgImageScale,i=A.bgSWFAlpha,o=A.bgSWF,l=n.getGraphicalElement("backgroundImage")._.RefImg;n.getFromEnv("chart").fireChartInstanceEvent(s,{url:o,bgImageAlpha:i,bgImageDisplayMode:e,bgImageVAlign:t,bgImageHAlign:r,bgImageScale:a,imageheight:l.height,imagewidth:l.width})},error:function(e){var t=A.bgImageDisplayMode,r=A.bgImageVAlign,a=A.bgImageHAlign,i=A.bgImageScale,o=A.bgSWFAlpha,l=A.bgSWF;n.getFromEnv("chart").fireChartInstanceEvent(c,{url:l,bgImageAlpha:o,error:e,bgImageDisplayMode:t,bgImageVAlign:r,bgImageHAlign:a,bgImageScale:i})}}),t}(0,r["default"])(t,e);var n=t.prototype;return n.getName=function(){return"background"},n.getType=function(){return"background"},n._getBackgroundCosmetics=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.getFromEnv("color-manager"),A=e.getFromEnv("chartConfig").is3D?i.chartPaletteStr.chart3D:i.chartPaletteStr.chart2D;return{FCcolor:{color:(0,i.pluck)(t.bgcolor,n.getColor(A.bgColor)),alpha:(0,i.pluck)(t.bgalpha,n.getColor(A.bgAlpha)),angle:(0,i.pluck)(t.bgangle,n.getColor(A.bgAngle)),ratio:(0,i.pluck)(t.bgratio,n.getColor(A.bgRatio))}}},n.configureAttributes=function(){var e,t,n,A=this,r=A.config,a=A.getFromEnv("chart-attrib"),o=A.getFromEnv("chartConfig"),l=o.is3D,s=A.getFromEnv("color-manager"),c=r.bgImageDisplayMode=(0,i.pluck)(a.bgimagedisplaymode,"none").toLowerCase();r.bgSWF=(0,i.pluck)(a.bgimage,a.bgswf),r.bgSWFAlpha=(0,i.pluckNumber)(a.bgimagealpha,a.bgswfalpha,100),e=r.showBorder=(0,i.pluckNumber)(a.showborder,o.showBorder,l?0:1),r.borderWidth=Math.max(e?(0,i.pluckNumber)(a.borderthickness,1):0,0),r.borderRadius=(0,i.pluckNumber)(a.borderradius,0),r.borderDashStyle=(0,i.pluckNumber)(a.borderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(a.borderdashlen,4),(0,i.pluckNumber)(a.borderdashgap,2),undefined):f,r.borderAlpha=(0,i.pluck)(a.borderalpha,l?"100":s&&s.getColor("borderAlpha")),r.borderColor=(0,i.convertColor)((0,i.pluck)(a.bordercolor,l?"#666666":s&&s.getColor("borderColor")),r.borderAlpha),r.bgImageVAlign=t=(0,i.getValidValue)(a.bgimagevalign,"").toLowerCase(),r.bgImageHAlign=n=(a.bgimagehalign||"").toLowerCase(),r.bgImageScale=(0,i.pluckNumber)(a.bgimagescale,100),r.containerBackgroundColor=(0,i.getContainerBackgroundColor)(A.getFromEnv("chartInstance")),r.backgroundColor=A._getBackgroundCosmetics(),"tile"===c||"fill"===c||"fit"===c?(t!==u&&t!==d&&t!==h&&(r.bgImageVAlign=d),n!==p&&n!==d&&n!==g&&(r.bgImageHAlign=d)):(t!==u&&t!==d&&t!==h&&(r.bgImageVAlign=u),n!==p&&n!==d&&n!==g&&(r.bgImageHAlign=p))},n.draw=function(){var e,t,n,A,r,a,o=this,l=o.getFromEnv("paper"),s=o.getGraphicalElement("backgroundElement"),c=o.getGraphicalElement("borderElement"),u=o.config,h=o.getFromEnv("chart"),d=o.getFromEnv("chartConfig"),g=u.backgroundColor,p=o.getFromEnv("animationManager"),f=o.getGraphicalElement("backgroundImage"),m=u.bgSWF,v=h.getChildContainer("backgroundGroup"),b=d.width,B=d.height,y=u.borderWidth||0,C=u.borderRadius,x=u.borderDashStyle,w=u.borderColor,F=u.bgSWFAlpha,S=y+","+y+","+(b-2*y)+","+(B-2*y),E=u.bgImageDisplayMode,Q=u.bgImageVAlign,k=u.bgImageHAlign,L=u.bgImageScale;l.canvas.style.backgroundColor=u.containerBackgroundColor,n={x:y,y:y,width:(a=b-2*y)<0?0:a,height:(r=B-2*y)>0?r:0,stroke:i.preDefStr.noneStr,fill:(0,i.toRaphaelColor)(g)},(e=p.setAnimation({el:s||"rect",attr:n,container:v,component:o,label:"rect"})).show(),s||o.addGraphicalElement("backgroundElement",e),n={x:y/2,y:y/2,width:(a=b-y)<0?0:a,height:(r=B-y)>0?r:0,stroke:w,"stroke-width":y,"stroke-dasharray":x,fill:i.preDefStr.noneStr,r:C||0},(t=p.setAnimation({el:c||"rect",attr:n,container:v,component:o,label:"rect"})).show(),c||o.addGraphicalElement("borderElement",t),m&&!o.getState("removed")?((A=p.setAnimation({el:f||"imagegrid",attr:{imagegrid:[E,Q,k,L,y,b,B],src:m,opacity:.01*F,"clip-rect":S},container:v,component:o,label:"imagegrid"})).show(),f||(o.addGraphicalElement("backgroundImage",A),A.on("load",u.handler.load),A.on("error",u.handler.error))):f&&o.removeGraphicalElement(f)},t}(a.ComponentInterface);t["default"]=m},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.background.background":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=n(281),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o}(e,t)}(n(561)),o=A(n(355));function l(e,t){var n,A,r,i,o,l,s,c,h,d,g,p=u.stringConstants,f=t.replace(/\s/g,p.BLANK).toLowerCase(),m=[];if(f===p.BLANK||null==f)m=[e];else for(r=f.split(p.COMMASTRING),i=e.split(p.COMMASTRING),o=Math.max(r.length,i.length,1),l=r[0],s=i[0],d=/[\{\}]/gi,g=0;g<o;g++)c=(r[g]||l).replace(d,""),h=i[g]||s,"color"===c?m.push(h):"light"===c.substr(0,5)?(A=100-(A=-1===(n=c.indexOf("-"))?1:c.substr(n+1,c.length-n)),m.push((0,a.getLightColor)(h,A))):"dark"===c.substr(0,4)?(A=100-(A=-1===(n=c.indexOf("-"))?1:c.substr(n+1,c.length-n)),m.push((0,a.getDarkColor)(h,A))):m.push(c);return m}function s(e,t){var n,A,r=e.toString().split(u.stringConstants.COMMASTRING),i=[],o=100;for(A=0;A<t;A++)n=(0,a.pluckNumber)(r[A]),u.defined(n)&&(o=n),i[A]=o;return i.join()}function c(e,t){var n,A,r=e.split(u.stringConstants.COMMASTRING),a=[],i=0;for(A=0;A<t;A++)n=r[A],n=(n=isNaN(n)||void 0===n?0:Math.abs(Number(n)))>100?100:n,a[A]=n,i+=n;if(i=i>100?100:i,r.length<t)for(A=r.length;A<t;A++)a[A]=(100-i)/(t-r.length);return a[-1]=0,a.join()}var u=function(){function e(e){this.parseColorMix=l,this.parseAlphaList=s,this.parseRatioList=c,this.linkedItems={iapi:e},this.configure(),this.paletteColors=["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"]}var t=e.prototype;return t.configure=function(){var t=this,n=e.stringConstants,A=t.linkedItems.iapi,r=A.getFromEnv("dataSource").chart||{},l=t.paletteOptions=(0,a.extend2)((0,a.extend2)({},i),A.defaultPaletteOptions||{},!1,!0),s=t.themeEnabled=r.palettethemecolor;t.paletteIndex=(r.palette>0&&r.palette<6?r.palette:(0,a.pluckNumber)(A.paletteIndex,1))-1,t.iterator=0,t.paletteColors=l.paletteColors[t.themeEnabled?0:t.paletteIndex],e.defined(r.palettecolors)&&r.palettecolors!==n.BLANK&&(t.paletteColors=(0,o["default"])(r.palettecolors)?r.palettecolors.slice():r.palettecolors.split(/\s*\,\s*/)),t.paletteLen=t.paletteColors.length,t.useFlatColors=(0,a.pluckNumber)(r.useflatdataplotcolor,A.useFlatColor,0),s&&(t.paletteIndex=5,l.bgColor[5]=(0,a.getLightColor)(s,35)+n.COMMASTRING+(0,a.getLightColor)(s,10),l.bgAngle[5]=270,l.bgRatio[5]=n.BGRATIOSTRING,l.bgAlpha[5]="50,50",l.canvasBgColor[5]=n.COLOR_WHITE,l.canvasBgAngle[5]=0,l.canvasBgAlpha[5]=n.HUNDREDSTRING,l.canvasBgRatio[5]=n.BLANK,l.canvasBorderColor[5]=(0,a.getDarkColor)(s,80),l.canvasBorderAlpha[5]=100,l.showShadow[5]=1,l.divLineColor[5]=(0,a.getDarkColor)(s,20),l.divLineAlpha[5]=40,l.altHGridColor[5]=(0,a.getLightColor)(s,20),l.altHGridAlpha[5]=15,l.altVGridColor[5]=(0,a.getLightColor)(s,80),l.altVGridAlpha[5]=10,l.anchorBgColor[5]=n.COLOR_WHITE,l.toolTipBgColor[5]=n.COLOR_WHITE,l.toolTipBorderColor[5]=(0,a.getDarkColor)(s,80),l.baseFontColor[5]=s.split&&s.split(n.COMMASTRING)[0],l.borderColor[5]=(0,a.getDarkColor)(s,60),l.borderAlpha[5]=50,l.legendBgColor[5]=n.COLOR_WHITE,l.legendBorderColor[5]=(0,a.getDarkColor)(s,80),l.plotGradientColor[5]=n.COLOR_WHITE,l.plotBorderColor[5]=(0,a.getDarkColor)(s,85),l.plotFillColor[5]=(0,a.getDarkColor)(s,85),l.bgColor3D[5]=n.COLOR_WHITE,l.bgAlpha3D[5]=n.HUNDREDSTRING,l.bgAngle3D[5]=90,l.bgRatio3D[5]=n.BLANK,l.canvasBgColor3D[5]=(0,a.getLightColor)(s,20),l.canvasBaseColor3D[5]=(0,a.getLightColor)(s,40),l.divLineColor3D[5]=(0,a.getDarkColor)(s,20),l.divLineAlpha3D[5]=40,l.legendBgColor3D[5]=n.COLOR_WHITE,l.legendBorderColor3D[5]=(0,a.getDarkColor)(s,80),l.toolTipbgColor3D[5]=n.COLOR_WHITE,l.toolTipBorderColor3D[5]=(0,a.getDarkColor)(s,80),l.baseFontColor3D[5]=s.split&&s.split(n.COMMASTRING)[0],l.anchorBgColor3D[5]=n.COLOR_WHITE,l.tickColor&&(l.tickColor[5]=(0,a.getDarkColor)(s,90)),l.trendDarkColor&&(l.trendDarkColor[5]=(0,a.getDarkColor)(s,90)),l.trendLightColor&&(l.trendLightColor[5]=(0,a.getLightColor)(s,l.TrendLightShadeOffset)),l.msgLogColor&&(l.msgLogColor[5]=(0,a.getLightColor)(s,80)),l.dialColor&&(l.dialColor[5]=(0,a.getDarkColor)(s,95)+",FFFFFF,"+(0,a.getDarkColor)(s,95)),l.dialBorderColor&&(l.dialBorderColor[5]=(0,a.getDarkColor)(s,95)+",FFFFFF,"+(0,a.getDarkColor)(s,95)),l.pivotColor&&(l.pivotColor[5]=(0,a.getLightColor)(s,95)+",FFFFFF,"+(0,a.getLightColor)(s,95)),l.pivotBorderColor&&(l.pivotBorderColor[5]=(0,a.getDarkColor)(s,95)+",FFFFFF,"+(0,a.getDarkColor)(s,95)),l.pointerBorderColor&&(l.pointerBorderColor[5]=(0,a.getDarkColor)(s,75)),l.pointerBgColor&&(l.pointerBgColor[5]=(0,a.getDarkColor)(s,75)),l.thmBorderColor&&(l.thmBorderColor[5]=(0,a.getDarkColor)(s,90)),l.thmFillColor&&(l.thmFillColor[5]=(0,a.getLightColor)(s,55)),l.gaugeBorderColor&&(l.gaugeBorderColor[5]=(0,a.getDarkColor)(s,90)),l.gaugeFillColor&&(l.gaugeFillColor[5]=(0,a.getLightColor)(s,55)),l.cylFillColor&&(l.cylFillColor[5]=(0,a.getLightColor)(s,55)),l.periodColor&&(l.periodColor[5]=(0,a.getLightColor)(s,10)),l.winColor&&(l.winColor[5]="666666"),l.lossColor&&(l.lossColor[5]="CC0000"),l.drawColor&&(l.drawColor[5]="666666"),l.scorelessColor&&(l.scorelessColor[5]="FF0000"),l.gridColor&&(l.gridColor[5]=(0,a.getLightColor)(s,30)),l.categoryBgColor&&(l.categoryBgColor[5]=(0,a.getLightColor)(s,10)),l.dataTableBgColor&&(l.dataTableBgColor[5]=(0,a.getLightColor)(s,10)),l.gridResizeBarColor&&(l.gridResizeBarColor[5]=(0,a.getDarkColor)(s,90)),l.scrollBarColor&&(l.scrollBarColor[5]=(0,a.getLightColor)(s,50)))},t.getColor=function(e){return this.paletteOptions[e][this.paletteIndex]},t.getPlotColor=function(e){var t=this,n=t.paletteColors,A=t.useFlatColors?t.getColor("plotFillColor"):n[e%t.paletteLen];return A||(t.iterator===t.paletteLen&&(t.iterator=0),A=n[t.iterator],t.iterator+=1),A},e}();u.stringConstants={BLANK:"",COMMASTRING:",",BGRATIOSTRING:"0,100",COLOR_WHITE:"FFFFFF",HUNDREDSTRING:"100"},u.defined=function(e){return null!=e};t["default"]=u},(e,t)=>{"use strict";t.__esModule=!0,t.toolTipbgColor3D=t.toolTipBorderColor3D=t.toolTipBorderColor=t.toolTipBgColor=t.showShadow=t.plotGradientColor=t.plotFillColor=t.plotBorderColor=t.paletteColors=t.legendBorderColor3D=t.legendBorderColor=t.legendBgColor3D=t.legendBgColor=t.divLineColor3D=t.divLineColor=t.divLineAlpha3D=t.divLineAlpha=t.canvasBorderColor=t.canvasBorderAlpha=t.canvasBgRatio=t.canvasBgColor3D=t.canvasBgColor=t.canvasBgAngle=t.canvasBgAlpha=t.canvasBaseColor3D=t.borderColor=t.borderAlpha=t.bgRatio3D=t.bgRatio=t.bgColor3D=t.bgColor=t.bgAngle3D=t.bgAngle=t.bgAlpha3D=t.bgAlpha=t.baseFontColor3D=t.baseFontColor=t.anchorBgColor3D=t.anchorBgColor=t.altVGridColor=t.altVGridAlpha=t.altHGridColor=t.altHGridAlpha=void 0;var n=["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],A="0,100",r="FFFFFF",a="100",i="",o=270,l=100;t.paletteColors=[n,n,n,n,n],t.bgColor=["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],t.bgAngle=[o,o,o,o,o],t.bgRatio=[A,A,A,A,A],t.bgAlpha=["50,50","60,50","40,20","20,10","30,30"],t.canvasBgColor=[r,r,r,r,r],t.canvasBgAngle=[0,0,0,0,0],t.canvasBgAlpha=[a,a,a,a,a],t.canvasBgRatio=[i,i,i,i,i],t.canvasBorderColor=["545454","545454","415D6F","845001","68001B"],t.canvasBorderAlpha=[l,l,l,90,l],t.showShadow=[0,1,1,1,1],t.divLineColor=["717170","7B7D6D","92CDD6","965B01","68001B"],t.divLineAlpha=[40,45,65,40,30],t.altHGridColor=["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.altHGridAlpha=[50,35,10,20,15],t.altVGridColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.altVGridAlpha=[10,20,10,15,10],t.anchorBgColor=[r,r,r,r,r],t.toolTipBgColor=[r,r,r,r,r],t.toolTipBorderColor=["545454","545454","415D6F","845001","68001B"],t.baseFontColor=["555555","60634E","025B6A","A15E01","68001B"],t.borderColor=["767575","545454","415D6F","845001","68001B"],t.borderAlpha=[50,50,50,50,50],t.legendBgColor=[r,r,r,r,r],t.legendBorderColor=["545454","545454","415D6F","845001","D55979"],t.plotGradientColor=[r,r,r,r,r],t.plotBorderColor=["333333","8A8A8A",r,r,r],t.plotFillColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.bgColor3D=[r,r,r,r,r],t.bgAlpha3D=[a,a,a,a,a],t.bgAngle3D=[90,90,90,90,90],t.bgRatio3D=[i,i,i,i,i],t.canvasBgColor3D=["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],t.canvasBaseColor3D=["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],t.divLineColor3D=["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],t.divLineAlpha3D=[l,l,l,l,l],t.legendBgColor3D=["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],t.legendBorderColor3D=["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],t.toolTipbgColor3D=[r,r,r,r,r],t.toolTipBorderColor3D=["49563A","666666","49351D","576373","681C09"],t.baseFontColor3D=["49563A","4A4A4A","49351D","48505A","681C09"],t.anchorBgColor3D=[r,r,r,r,r]},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"*.*.*":{"*.disappearing":[{finalAttr:{opacity:0},slot:"initial",callback:function(){this.hide()}}]}}},(e,t)=>{"use strict";t.__esModule=!0,t.weekLabelMap=t.weekDaysMap=t.toTestLanguage=t.timeUnitsMap=t.supportedLanguages=t.monthsMap=t.intervalMapPt=t.intervalMapIt=t.intervalMapFr=t.intervalMapEs=t.intervalMapEn=t.intervalMapDe=t.intervalMapCa=t.fullWeekDaysMap=t.dateBoxLabelMap=t.crsButtonLabelsMap=t.allButtonMap=t.abbreviatedMonthsMap=void 0;t.intervalMapEn={0:{unit:"year",multiplier:10,intervalName:"10Y"},1:{unit:"year",multiplier:5,intervalName:"5Y"},2:{unit:"year",multiplier:3,intervalName:"3Y"},3:{unit:"year",multiplier:2,intervalName:"2Y"},4:{unit:"year",multiplier:1,intervalName:"1Y",tilldateName:"YTD"},5:{unit:"month",multiplier:6,intervalName:"6M"},6:{unit:"month",multiplier:3,intervalName:"3M",tilldateName:"QTD"},7:{unit:"month",multiplier:1,intervalName:"1M",tilldateName:"MTD"},8:{unit:"day",multiplier:15,intervalName:"15D"},9:{unit:"day",multiplier:7,intervalName:"7D",tilldateName:"WTD"},10:{unit:"day",multiplier:1,intervalName:"1D"},11:{unit:"hour",multiplier:12,intervalName:"12H"},12:{unit:"hour",multiplier:6,intervalName:"6H"},13:{unit:"hour",multiplier:3,intervalName:"3H"},14:{unit:"hour",multiplier:1,intervalName:"1H"},15:{unit:"minute",multiplier:30,intervalName:"30m"}},t.intervalMapDe={0:{unit:"Jahr",multiplier:10,intervalName:"10J"},1:{unit:"Jahr",multiplier:5,intervalName:"5J"},2:{unit:"Jahr",multiplier:3,intervalName:"3J"},3:{unit:"Jahr",multiplier:2,intervalName:"2J"},4:{unit:"Jahr",multiplier:1,intervalName:"1J",tilldateName:"Bis heute"},5:{unit:"Monat",multiplier:6,intervalName:"6M"},6:{unit:"Monat",multiplier:3,intervalName:"3M",tilldateName:"Bis heute im Quartal"},7:{unit:"Monat",multiplier:1,intervalName:"1M",tilldateName:"Bis heute im Monat"},8:{unit:"Tag",multiplier:15,intervalName:"15T"},9:{unit:"Tag",multiplier:7,intervalName:"7T",tilldateName:"Bis heute in der Woche"},10:{unit:"Tag",multiplier:1,intervalName:"1T"},11:{unit:"Stunde",multiplier:12,intervalName:"12S"},12:{unit:"Stunde",multiplier:6,intervalName:"6S"},13:{unit:"Stunde",multiplier:3,intervalName:"3S"},14:{unit:"Stunde",multiplier:1,intervalName:"1S"},15:{unit:"Minute",multiplier:30,intervalName:"30m"}},t.intervalMapFr={0:{unit:"an",multiplier:10,intervalName:"10A"},1:{unit:"an",multiplier:5,intervalName:"5A"},2:{unit:"an",multiplier:3,intervalName:"3A"},3:{unit:"an",multiplier:2,intervalName:"2A"},4:{unit:"an",multiplier:1,intervalName:"1A",tilldateName:"Jusqu'à aujourd'hui"},5:{unit:"mois",multiplier:6,intervalName:"6M"},6:{unit:"mois",multiplier:3,intervalName:"3M",tilldateName:"Jusqu'à aujourd'hui dans le trimestre"},7:{unit:"mois",multiplier:1,intervalName:"1M",tilldateName:"Jusqu'à aujourd'hui dans le mois"},8:{unit:"jour",multiplier:15,intervalName:"15J"},9:{unit:"jour",multiplier:7,intervalName:"7J",tilldateName:"Jusqu'à aujourd'hui dans la semaine"},10:{unit:"jour",multiplier:1,intervalName:"1J"},11:{unit:"heure",multiplier:12,intervalName:"12H"},12:{unit:"heure",multiplier:6,intervalName:"6H"},13:{unit:"heure",multiplier:3,intervalName:"3H"},14:{unit:"heure",multiplier:1,intervalName:"1H"},15:{unit:"minute",multiplier:30,intervalName:"30m"}},t.intervalMapEs={0:{unit:"año",multiplier:10,intervalName:"10A"},1:{unit:"año",multiplier:5,intervalName:"5A"},2:{unit:"año",multiplier:3,intervalName:"3A"},3:{unit:"año",multiplier:2,intervalName:"2A"},4:{unit:"año",multiplier:1,intervalName:"1A",tilldateName:"Hasta la fecha"},5:{unit:"mes",multiplier:6,intervalName:"6M"},6:{unit:"mes",multiplier:3,intervalName:"3M",tilldateName:"Hasta la fecha en el trimestre"},7:{unit:"mes",multiplier:1,intervalName:"1M",tilldateName:"Hasta la fecha en el mes"},8:{unit:"día",multiplier:15,intervalName:"15D"},9:{unit:"día",multiplier:7,intervalName:"7D",tilldateName:"Hasta la fecha en la semana"},10:{unit:"día",multiplier:1,intervalName:"1D"},11:{unit:"hora",multiplier:12,intervalName:"12H"},12:{unit:"hora",multiplier:6,intervalName:"6H"},13:{unit:"hora",multiplier:3,intervalName:"3H"},14:{unit:"hora",multiplier:1,intervalName:"1H"},15:{unit:"minuto",multiplier:30,intervalName:"30m"}},t.intervalMapPt={0:{unit:"ano",multiplier:10,intervalName:"10A"},1:{unit:"ano",multiplier:5,intervalName:"5A"},2:{unit:"ano",multiplier:3,intervalName:"3A"},3:{unit:"ano",multiplier:2,intervalName:"2A"},4:{unit:"ano",multiplier:1,intervalName:"1A",tilldateName:"Até a presente data"},5:{unit:"mês",multiplier:6,intervalName:"6M"},6:{unit:"mês",multiplier:3,intervalName:"3M",tilldateName:"Até a presente data no trimestre"},7:{unit:"mês",multiplier:1,intervalName:"1M",tilldateName:"Até a presente data no mês"},8:{unit:"dia",multiplier:15,intervalName:"15D"},9:{unit:"dia",multiplier:7,intervalName:"7D",tilldateName:"Até a presente data na semana"},10:{unit:"dia",multiplier:1,intervalName:"1D"},11:{unit:"hora",multiplier:12,intervalName:"12H"},12:{unit:"hora",multiplier:6,intervalName:"6H"},13:{unit:"hora",multiplier:3,intervalName:"3H"},14:{unit:"hora",multiplier:1,intervalName:"1H"},15:{unit:"minuto",multiplier:30,intervalName:"30m"}},t.intervalMapIt={0:{unit:"anno",multiplier:10,intervalName:"10A"},1:{unit:"anno",multiplier:5,intervalName:"5A"},2:{unit:"anno",multiplier:3,intervalName:"3A"},3:{unit:"anno",multiplier:2,intervalName:"2A"},4:{unit:"anno",multiplier:1,intervalName:"1A",tilldateName:"Fino ad oggi"},5:{unit:"mese",multiplier:6,intervalName:"6M"},6:{unit:"mese",multiplier:3,intervalName:"3M",tilldateName:"Fino ad oggi nel trimestre"},7:{unit:"mese",multiplier:1,intervalName:"1M",tilldateName:"Fino ad oggi nel mese"},8:{unit:"giorno",multiplier:15,intervalName:"15G"},9:{unit:"giorno",multiplier:7,intervalName:"7G",tilldateName:"Fino ad oggi nella settimana"},10:{unit:"giorno",multiplier:1,intervalName:"1G"},11:{unit:"ora",multiplier:12,intervalName:"12O"},12:{unit:"ora",multiplier:6,intervalName:"6O"},13:{unit:"ora",multiplier:3,intervalName:"3O"},14:{unit:"ora",multiplier:1,intervalName:"1O"},15:{unit:"minuto",multiplier:30,intervalName:"30m"}},t.intervalMapCa={0:{unit:"any",multiplier:10,intervalName:"10A"},1:{unit:"any",multiplier:5,intervalName:"5A"},2:{unit:"any",multiplier:3,intervalName:"3A"},3:{unit:"any",multiplier:2,intervalName:"2A"},4:{unit:"any",multiplier:1,intervalName:"1A",tilldateName:"FAA"},5:{unit:"mes",multiplier:6,intervalName:"6M"},6:{unit:"mes",multiplier:3,intervalName:"3M",tilldateName:"FT"},7:{unit:"mes",multiplier:1,intervalName:"1M",tilldateName:"FAM"},8:{unit:"dia",multiplier:15,intervalName:"15D"},9:{unit:"dia",multiplier:7,intervalName:"7D",tilldateName:"FAS"},10:{unit:"dia",multiplier:1,intervalName:"1D"},11:{unit:"hora",multiplier:12,intervalName:"12H"},12:{unit:"hora",multiplier:6,intervalName:"6H"},13:{unit:"hora",multiplier:3,intervalName:"3H"},14:{unit:"hora",multiplier:1,intervalName:"1H"},15:{unit:"minut",multiplier:30,intervalName:"30m"}},t.timeUnitsMap={english:["year","quarter","month","week","day","hour","minute","second"],german:["Jahr","Quartal","Monat","Woche","Tag","Stunde","Minute","Sekunde"],french:["an","trimestre","mois","semaine","jour","heure","minute","seconde"],spanish:["año","trimestre","mes","semana","día","hora","minuto","segundo"],portuguese:["ano","trimestre","mês","semana","dia","hora","minuto","segundo"],italian:["anno","trimestre","mese","settimana","giorno","ora","minuto","secondo"],catalan:["any","trimestre","mes","setmana","dia","hora","minut","segon"]},t.allButtonMap={english:"All",german:"Alle",french:"Tous",spanish:"Todo",portuguese:"Todos",italian:"Tutti",catalan:"Tot"},t.weekDaysMap={english:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],french:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],italian:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],german:["So","Mo","Di","Mi","Do","Fr","Sa"],portuguese:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],spanish:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],catalan:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"]},t.fullWeekDaysMap={english:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],french:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],italian:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],german:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],portuguese:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],spanish:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],catalan:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},t.monthsMap={english:["January","February","March","April","May","June","July","August","September","October","November","December"],french:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],italian:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],german:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],portuguese:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],spanish:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],catalan:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},t.abbreviatedMonthsMap={english:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],french:["Janv","Fév","Mar","Avr","Mai","Juin","Juil","Août","Sep","Oct","Nov","Déc"],italian:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],german:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],portuguese:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],spanish:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],catalan:["Gen","Febr","Març","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"]},t.weekLabelMap={english:["S","M","T","W","T","F","S"],french:["D","L","M","M","J","V","S"],italian:["D","L","M","M","G","V","S"],german:["S","M","D","M","D","F","S"],portuguese:["D","S","T","Q","Q","S","S"],spanish:["D","L","M","M","J","V","S"],catalan:["D","L","M","X","J","V","S"]},t.dateBoxLabelMap={english:{From:"From: ",To:"To: "},french:{From:"De: ",To:"À: "},italian:{From:"Da: ",To:"A: "},german:{From:"Von: ",To:"Nach: "},portuguese:{From:"De: ",To:"Para: "},spanish:{From:"De: ",To:"A: "},catalan:{From:"Des de: ",To:"Fins a: "}},t.crsButtonLabelsMap={english:{apply:"Apply",cancel:"Cancel"},french:{apply:"Appliquer",cancel:"Annuler"},italian:{apply:"Applicare",cancel:"Annulla"},german:{apply:"Anwenden",cancel:"Abbrechen"},portuguese:{apply:"Aplicar",cancel:"Cancelar"},spanish:{apply:"Aplicar",cancel:"Cancelar"},catalan:{apply:"Aplicar",cancel:"Cancel·lar"}};var n=t.supportedLanguages=["english","french","italian","german","portuguese","spanish","catalan"];t.toTestLanguage=n},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=Number(e),A=Number(t)-n;return function(e){return A*e+n}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A=e.getChildren("canvas")[0],o=A.getChildren("axisRefVisualCartesian")[0],l={zoomable:!0,pannable:!0},s=e._feedAxesRawData(),c=function(e){var t=e.sender;o.addexplicitDrawItems(t.getId(),t),o.asyncDraw()};(0,r.componentFactory)(e,a["default"],"yAxis",1,s.yAxisConf),(0,r.componentFactory)(e,i["default"],"xAxis",1,s.xAxisConf),t=e.getChildren("yAxis")[0],n=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",A),n.setLinkedItem("canvas",A),o.setLinkedItem(t.getId(),t),o.setLinkedItem(n.getId(),n),o.addExtEventListener("visiblerangeset",c,n),o.addExtEventListener("visiblerangeset",c,t),A.attachAxis(n,!1,e.zoomX?l:{}),A.attachAxis(t,!0,e.zoomY?l:{}),e._setCategories()};var r=n(281),a=A(n(566)),i=A(n(614))},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=A(n(567)),o=A(n(570)),l=A(n(592)),s=A(n(593)),c=A(n(594)),u=n(601),h=n(281),d=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new o["default"],t}(0,a["default"])(t,e);var n=t.prototype;return n.getName=function(){return"numeric"},n.generateTicks=function(){var e,t,n,A=this.getScale(),r=this.config,a=r.numDivLines+1,i=A.getDomain(),o=i[0],c=i[1],u=r.axisRange,h=u.min,d=u.max,g=r.dataLimit;return o===h&&c===d?((0,s["default"])(g.min,g.max,A,r),r.ticks):(e=A.ticks(a),t=Math.abs(e[1]-e[0]),o===h&&-1===e.indexOf(h)&&e.unshift(h),c===d&&-1===e.indexOf(d)&&e.push(d),(n=Math.abs(h%t))&&(h-=n),(n=Math.abs(d%t))&&(d-=n),r._allTicks=(0,l["default"])(h,d,t).concat(d),u.tickInterval=t,e)},n.setTickValues=function(e){this.config.userTicks=e||[],this.config.tickValues={tickValue:[]}},n._parseTickValues=function(e){var t,n,A,r,a=this.getFromEnv("chart"),i=this.config,o=e&&e.length,l=0;for(i.tickValues={},t=i.tickValues.tickValue=[],A=0;A<o;A+=1)if(n=(0,h.extend2)({},e[A]),r=Number(n.x),!n.vline){if((0,u.extractStyleInfo)(n,a),!r&&0!==r)continue;n.x=r,i.irregularCatAxis=!0,t.push(n),t[l].label=(0,h.parseUnsafeString)(t[l].label),l+=1}i.oriCatLen=l},n.calculateTicksOnLabelMode=function(){var e,t,n,A,r,a,i,o=this,l=o.config,s=l.xAxisLabelMode,c=Object.assign([],l.userTicks),u=o.getFromEnv("number-formatter");if("mixed"===s||"auto"===s){if(t=[],e=u.xAxis,"mixed"===s)for(n=0,r=c.length;n<r;n+=1)t[c[n].x||c[n].y||n]=!0;else c=[];for(i=o.getAxisConfig(),a=l.ticks,A=0;A<a.length;++A)t[n=a[A]]||c.push({label:h.BLANKSTRING+e.call(u,n),x:n,showverticalline:0===n?i.showZeroPlane:1,isNumeric:!0,linecolor:0===n?i.zeroPlaneColor:i.divLineColor,linealpha:0===n?i.zeroPlaneAlpha:i.divLineAlpha,linethickness:0===n?i.zeroPlaneThickness:i.divLineThickness,linedashed:i.divLineIsDashed,linedashLen:i.divLineDashLen,linedashgap:i.divLineDashGap})}o._parseTickValues(c)},n.getInterval=function(){return this.config.axisRange.tickInterval},n._setAxisRange=function(e){var t,n,A,a=e.min,o=e.max,l=this.config,c=l.axisRange,u=l.dataLimit,h=l.dependentInfo;if(!(a>o))if(u.min===a&&u.max===o||(n=!0),l.visibleMin===r||l.setPadding||n){var d=(0,i["default"])([a,o,u.min,u.max]);if(a=d[0],o=d[1],u.min=a,u.max=o,this.fireEvent("dataLimitSet",Object.assign({},u)),h){if(h.limit){if(!(t=h.dataLimit))return;var g=(0,i["default"])([a,o,t.min,t.max]);a=g[0],o=g[1],l.isDataLimitSet=!0}if(h.count&&h.numDivLines===r)return}(0,s["default"])(a,o,this.getScale(),l),A=l.isZeroTickForced?3:2,this.fireEvent("divlinesSet",l.ticks.length-A),l.tickValues&&this.calculateTicksOnLabelMode(),this.setVisibleConfig(c.min,c.max)}else l.setPadding=!1},n.getTicks=function(){return this.config.ticks},t}(c["default"]);d.prototype.setDataLimit=u.setDataLimit;t["default"]=d},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(568)),a=A(n(569));t["default"]=function(e,t){return void 0===e&&(e=[]),[(0,r["default"])(e,t),(0,a["default"])(e,t)]}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){void 0===e&&(e=[]);var n,A,r=e.length,a=-1;if("function"==typeof t){for(;++a<r;)if(null!=(n=t(e[a],a,e))&&n<=n)for(A=n;++a<r;)null!=(n=t(e[a],a,e))&&n<A&&(A=n)}else for(;++a<r;)if(null!=(n=e[a])&&n<=n)for(A=n;++a<r;)null!=(n=e[a])&&n<A&&(A=n);return A}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){void 0===e&&(e=[]);var n,A,r=e.length,a=-1;if("function"==typeof t){for(;++a<r;)if(null!=(n=t(e[a],a,e))&&n>=n)for(A=n;++a<r;)null!=(n=t(e[a],a,e))&&n>A&&(A=n)}else for(;++a<r;)if(null!=(n=e[a])&&n>=n)for(A=n;++a<r;)null!=(n=e[a])&&n>A&&(A=n);return A}},(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=A(n(295)),i=c(n(571)),o=c(n(587)),l=A(n(564)),s=n(588);function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o})(e,t)}var u=function(e){function t(){return e.call(this,i.deInterpolateLinear,l["default"])||this}(0,a["default"])(t,e);var n=t.prototype;return n.ticks=function(e){void 0===e&&(e=7);var t=this.getDomain();return this.majorTicks=(0,o["default"])(t[0],t[t.length-1],e)},n.tickFormat=function(e,t){return(0,s.tickFormat)(this.getDomain(),e,t,this._localeConverter)},n.nice=function(e){void 0===e&&(e=7);var t,n=this.getDomain(),A=0,r=n.length-1,a=n[A],i=n[r];return i<a&&(t=a,a=i,i=t,t=A,A=r,r=t),(t=(0,o.tickIncrement)(a,i,e))>0?(a=Math.floor(a/t)*t,i=Math.ceil(i/t)*t,t=(0,o.tickIncrement)(a,i,e)):t<0&&(a=Math.ceil(a*t)/t,i=Math.floor(i*t)/t,t=(0,o.tickIncrement)(a,i,e)),t>0?(n[A]=Math.floor(a/t)*t,n[r]=Math.ceil(i/t)*t,this.setDomain(n)):t<0&&(n[A]=Math.ceil(a*t)/t,n[r]=Math.floor(i*t)/t,this.setDomain(n)),this},n.copy=function(){return(0,i.copyScale)(this,new t)},n.minorTicks=function(e,t){void 0===e&&(e=4),void 0===t&&(t=this.majorTicks||this.ticks());var n,A,r,a,i=t.length,o=t[1]-t[0],l=[];for(a=0;a<i-1;++a)for(r=t[a],A=o/(Number(e)+1),n=1;n<=e;n+=1)l.push(r+A*n);return l},n.contextTicks=function(){return this.contextTicksArr||[]},n.getType=function(){return"linear"},t}(i["default"]);t["default"]=u},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.bimap=u,t.copyScale=function(e,t){return t.setInterpolate(e.getInterpolate()).setClamp(e.getClamp()).setDomain(e.getDomain()).setRange(e.getRange())},t.deInterpolateLinear=h,t["default"]=void 0;var r=A(n(572)),a=A(n(574)),i=A(n(573)),o=A(n(575)),l=n(576),s=0,c=[0,1];function u(e,t,n,A){var r,a;return e[0]>e[1]?(r=n(e[1],e[0]),a=A(t[1],t[0])):(r=n(e[0],e[1]),a=A(t[0],t[1])),function(e){return a(r(e))}}function h(e,t){var n=Number(e),A=Number(t)-n;return A?function(e){return(e-n)/A}:(0,i["default"])(A)}var d=function(){function e(e,t){this.domain=c,this.range=c,this.deInterpolate=e,this.reInterpolate=t,this.interpolate=r["default"],this.clamp=!1,this.input=null,this.output=null,this.locale=o["default"],this._localeConverter=new l.NumberConverter(o["default"]),this._rescale(),this._id="scale_"+s++}var t=e.prototype;return t._rescale=function(){return this.input=null,this.output=null,this},t.setDomain=function(e){return void 0===e&&(e=c),this.domain=e.map(Number),this._rescale()},t.getDomain=function(){return this.domain.slice()},t.setRange=function(e){return void 0===e&&(e=c),this.range=e.slice(),this._rescale()},t.getRange=function(){return this.range.slice()},t.setInterpolate=function(e){return void 0===e&&(e=r["default"]),this.interpolate=e,this._rescale()},t.getInterpolate=function(){return this.interpolate},t.setClamp=function(e){return void 0===e&&(e=!1),this.clamp=!!e,this._rescale()},t.getClamp=function(){return this.clamp},t.rangeRound=function(e){return void 0===e&&(e=c),this.range=e.slice(),this.interpolate=a["default"],this._rescale()},t.getRangeValue=function(e){var t=null!==e?e:undefined,n=this.getClamp()?function(e){return function(t,n){var A=Number(t),r=Number(n),a=e(A,r);return function(e){return e<=A?0:e>=r?1:a(e)}}}(this.deInterpolate):this.deInterpolate;return this.output||(this.output=u(this.getDomain(),this.getRange(),n,this.interpolate)),this.output(Number(t))},t.getDomainValue=function(e){var t=this.getClamp()?function(e){return function(t,n){var A=Number(t),r=Number(n),a=e(A,r);return function(e){return e<=0?A:e>=1?r:a(e)}}}(this.reInterpolate):this.reInterpolate;return this.input||(this.input=u(this.getRange(),this.getDomain(),h,t)),this.input(Number(e))},t.setLocale=function(e){return void 0===e&&(e=o["default"]),this.locale=e,this._localeConverter=new l.NumberConverter(e),this},t.getLocale=function(){return this.locale},t.getId=function(){return this._id},e}();t["default"]=d},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(564)),a=A(n(573));function i(e){return null!=e}t["default"]=function(e,t){var n=r["default"];return i(t)&&i(e)&&"boolean"!=typeof t?n(e,t):(0,a["default"])(t)}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return function(){return e}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=Number(e),A=Number(t)-n;return function(e){return Math.round(A*e+n)}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={decimal:".",thousands:",",grouping:[3],prefix:"$",suffix:""}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=t.NumberConverter=void 0;var r=A(n(575)),a=A(n(577)),i=A(n(579)),o=A(n(585)),l=A(n(586)),s=A(n(580)),c=function(e){return e},u=t.NumberConverter=function(){function e(e){this.localeInfo={group:e.grouping&&e.thousands?(0,o["default"])(e.grouping,e.thousands):c,prefix:e.prefix,suffix:e.suffix,decimal:e.decimal,numerals:e.numerals?(0,l["default"])(e.numerals):c,percent:e.percent||"%",prefixes:e.prefixes||["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]}}var t=e.prototype;return t.formatter=function(e){return new i["default"](e,this.localeInfo)},t.formatPrefix=function(e,t){var n=new s["default"](e);n.type="f";var A=this.localeInfo.prefix,r=this.localeInfo.suffix,o=Object.assign({},this.localeInfo,{prefix:"",suffix:""}),l=new i["default"](n,o),c=3*Math.max(-8,Math.min(8,Math.floor((0,a["default"])(t)/3))),u=Math.pow(10,-c),h=this.localeInfo.prefixes[8+c/3];return{format:function(e){return A+l.format(u*e)+h+r},setCustomPrefix:function(e){return l.setCustomPrefix(e),this},getCustomPrefix:function(e){return l.getCustomPrefix(e)},setCustomSuffix:function(e){return l.setCustomSuffix(e),this},getCustomSuffix:function(e){return l.getCustomSuffix(e)}}},e}();t["default"]=new u(r["default"])},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(578));t["default"]=function(e){var t=(0,r["default"])(Math.abs(e));return t?t[1]:NaN}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n,A,r;return(n=(r=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0?null:[(A=r.slice(0,n)).length>1?A[0]+A.slice(2):A,+r.slice(n+1)]}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(580)),a=A(n(581)),i=A(n(584)),o=n(582),l=function(e){return null==e},s=function(){function e(e,t){this.specifier=new r["default"](e),this.localeInfo=t;var n=this.specifier.symbol;this.fill=this.specifier.fill,this.align=this.specifier.align,this.sign=this.specifier.sign,this.zero=this.specifier.zero,this.width=this.specifier.width,this.comma=this.specifier.comma,this.precision=this.specifier.precision,this.trim=this.specifier.trim,this.type=this.specifier.type,"n"===this.type?(this.comma=!0,this.type="g"):a["default"][this.type]||(l(this.precision)&&(this.precision=12),this.trim=!0,this.type="g"),(this.zero||"0"===this.fill&&"="===this.align)&&(this.zero=!0,this.fill="0",this.align="="),"$"===n?this.prefix=this.localeInfo.prefix:"#"===n&&/[boxX]/.test(this.type)?this.prefix="0"+this.type.toLowerCase():this.prefix="","$"===n?this.suffix=this.localeInfo.suffix:/[%p]/.test(this.type)?this.suffix=this.localeInfo.percent:this.suffix="",this.formatType=a["default"][this.type],this.mayHaveSuffix=/[defgprs%]/.test(this.type),l(this.precision)?this.precision=6:/[gprs]/.test(this.type)?this.precision=Math.max(1,Math.min(21,this.precision)):this.precision=Math.max(0,Math.min(20,this.precision)),this.setCustomPrefix(""),this.setCustomSuffix("")}var t=e.prototype;return t.format=function(e){var t,n,A,r,a,l,s=this.prefix,c=this.suffix,u=this.formatType,h=e;if("c"===this.type)c=u(h)+c,h="";else if(t=(h=+h)<0,h=u(Math.abs(h),this.precision),this.trim&&(h=(0,i["default"])(h)),t&&0===+h&&(t=!1),s=t?("("===this.sign?this.sign:"-")+s:"-"===this.sign||"("===this.sign?""+s:this.sign+s,c="s"===this.type?this.localeInfo.prefixes[8+o.prefixExponent/3]+c:""+c,c+=t&&"("===this.sign?")":"",this.mayHaveSuffix)for(r=-1,a=h.length;++r<a;)if((l=h.charCodeAt(r))<48||l>57){c=(46===l?this.localeInfo.decimal+h.slice(r+1):h.slice(r))+c,h=h.slice(0,r);break}switch(this.comma&&!this.zero&&(h=this.localeInfo.group(h,Infinity)),A=(n=s.length+h.length+c.length)<this.width?new Array(this.width-n+1).join(this.fill):"",this.comma&&this.zero&&(h=this.localeInfo.group(A+h,A.length?this.width-c.length:Infinity),A=""),this.align){case"<":h=s+h+c+A;break;case"=":h=s+A+h+c;break;case"^":n=A.length/2,h=A.slice(0,n)+s+h+c+A.slice(n);break;default:h=A+s+h+c}return this.getCustomPrefix()+this.localeInfo.numerals(h)+this.getCustomSuffix()},t.setCustomPrefix=function(e){return this._customPrefix=e+"",this},t.getCustomPrefix=function(){return this._customPrefix},t.setCustomSuffix=function(e){return this._customSuffix=e+"",this},t.getCustomSuffix=function(){return this._customSuffix},t.toString=function(){return this.specifier.toString()},e}();t["default"]=s},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,A=function(e){return null==e},r=function(){function e(e){var t=n.exec(e);if(!t)throw new Error("Invalid number format specifier: "+e);this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=Boolean(t[5]),this.width=t[6]&&Number(t[6]),this.comma=Boolean(t[7]),this.precision=t[8]&&Number(t[8].slice(1)),this.trim=Boolean(t[9]),this.type=t[10]||""}return e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(A(this.width)?"":Math.max(1,0|this.width))+(this.comma?",":"")+(A(this.precision)?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},e}();t["default"]=r},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(582)),a=A(n(583));t["default"]={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return(0,a["default"])(100*e,t)},r:a["default"],s:r["default"],X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.prefixExponent=t["default"]=void 0;var r=A(n(578));t["default"]=function(e,n){var A,a,i,o,l=(0,r["default"])(e,n);return l?(A=l[0],(i=(a=l[1])-(t.prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1)===(o=A.length)?A:i>o?A+new Array(i-o+1).join("0"):i>0?A.slice(0,i)+"."+A.slice(i):"0."+new Array(1-i).join("0")+(0,r["default"])(e,Math.max(0,n+i-1))[0]):e+""}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(578));t["default"]=function(e,t){var n,A,a=(0,r["default"])(e,t);return a?(n=a[0],A=a[1],Number(A)<0?"0."+new Array(-A).join("0")+n:n.length>A+1?n.slice(0,A+1)+"."+n.slice(A+1):n+new Array(A-n.length+2).join("0")):e+""}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){for(var t,n=e.length,A=1,r=-1;A<n;++A)if("."===e[A])r=t=A;else if("0"===e[A])0===r&&(r=A),t=A;else if(r>0){if(!+e[A])break;r=0}return r>0?e.slice(0,r)+e.slice(t+1):e}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){return function(n,A){for(var r=n.length,a=[],i=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>A&&(o=Math.max(1,A-l)),a.push(n.substring(r-=o,r+o)),!((l+=o+1)>A));)o=e[i=(i+1)%e.length];return a.reverse().join(t)}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0,t.tickIncrement=i,t.tickStep=function(e,t,a){void 0===e&&(e=0);void 0===t&&(t=1);void 0===a&&(a=7);var i=Math.abs(t-e)/Math.max(0,a),o=Math.floor(Math.log(i)/Math.LN10),l=Math.pow(10,o),s=i/l;s>=n?l*=10:s>=A?l*=5:s>=r&&(l*=2);return t<e?-l:l};var n=Math.sqrt(50),A=Math.sqrt(10),r=Math.sqrt(2);function a(e){return e>=n?10:e>=A?5:e>=r?2:1}function i(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var A=(t-e)/Math.max(0,n),r=Math.floor(Math.log(A)/Math.LN10),i=A/Math.pow(10,r);return r>=0?a(i)*Math.pow(10,r):-Math.pow(10,-r)/a(i)}t["default"]=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var A,r,a,o=-1,l=[],s=+t,c=+e,u=+n;if(c===s&&u>0)return[c];if((A=s<c)&&(r=c,c=s,s=r),0===(a=i(c,s,u))||!isFinite(a))return[];if(a>0)for(c=Math.ceil(c/a),s=Math.floor(s/a),r=Math.ceil(s-c+1);++o<r;)l[o]=(c+o)*a;else for(c=Math.floor(c*a),s=Math.ceil(s*a),r=Math.ceil(c-s+1);++o<r;)l[o]=(c-o)/a;return A&&l.reverse(),l}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0,t.tickFormat=function(e,t,n,A){void 0===A&&(A=r["default"]);var s,c,u,d=e[0],g=e[e.length-1],f=p(d,g,h(t)?7:t);switch((u=new o["default"](h(n)?",f":n)).type){case"s":return c=Math.max(Math.abs(d),Math.abs(g)),s=(0,l["default"])(f,c),h(u.precision)&&!isNaN(s)&&(u.precision=s),function(e){return A.formatPrefix(u,c).format(e)};case"":case"e":case"g":case"p":case"r":s=(0,i["default"])(f,Math.max(Math.abs(d),Math.abs(g))),h(u.precision)&&!isNaN(s)&&(u.precision=s-("e"===u.type));break;case"f":case"%":s=(0,a["default"])(f),h(u.precision)&&!isNaN(s)&&(u.precision=s-2*("%"===u.type))}return function(e){return A.formatter(u).format(e)}},t.tickIncrement=g,t.tickStep=p;var r=A(n(576)),a=A(n(589)),i=A(n(590)),o=A(n(580)),l=A(n(591)),s=Math.sqrt(50),c=Math.sqrt(10),u=Math.sqrt(2),h=function(e){return null==e};function d(e){return e>=s?10:e>=c?5:e>=u?2:1}function g(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var A=(t-e)/Math.max(0,n),r=Math.floor(Math.log(A)/Math.LN10),a=A/Math.pow(10,r);return r>=0?d(a)*Math.pow(10,r):-Math.pow(10,-r)/d(a)}function p(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var A=Math.abs(t-e)/Math.max(0,n),r=Math.floor(Math.log(A)/Math.LN10),a=Math.pow(10,r),i=A/a;return i>=s?a*=10:i>=c?a*=5:i>=u&&(a*=2),t<e?-a:a}t["default"]=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var A,r,a,i,o,l,s=-1,c=[];if(l=+n,(i=+e)===(o=+t)&&l>0)return[i];if((A=o<i)&&(r=i,i=o,o=r),0===(a=g(i,o,l))||!isFinite(a))return[];if(a>0)for(i=Math.ceil(i/a),o=Math.floor(o/a),r=Math.ceil(o-i+1);++s<r;)c[s]=(i+s)*a;else for(i=Math.floor(i*a),o=Math.ceil(o*a),r=Math.ceil(i-o+1);++s<r;)c[s]=(i-s)/a;return A&&c.reverse(),c}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(577));t["default"]=function(e){return Math.max(0,-(0,r["default"])(Math.abs(e)))}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(577));t["default"]=function(e,t){var n=Math.abs(e),A=Math.abs(t)-n;return Math.max(0,(0,r["default"])(A)-(0,r["default"])(n))+1}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(577));t["default"]=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r["default"])(t)/3)))-(0,r["default"])(Math.abs(e)))}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(){var e,t,n,A,r,a=[];if(arguments.length>2?(e=arguments.length<=0?undefined:arguments[0],t=arguments.length<=1?undefined:arguments[1],n=arguments.length<=2?undefined:arguments[2]):1===arguments.length?(e=0,t=arguments.length<=0?undefined:arguments[0],n=1):(e=arguments.length<=0?undefined:arguments[0],t=arguments.length<=1?undefined:arguments[1],n=1),A=Math.floor(Math.max(0,Math.ceil((t-e)/n))),isFinite(A))for(r=0;r<A;++r)a.push(n*r+e);return a}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(592)),a=n(571),i=A(n(564)),o=A(n(568)),l=n(281),s=(0,a.bimap)([2,100],[80,20],a.deInterpolateLinear,i["default"]);t["default"]=function(e,t,n,A){var a,i,c,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U=t,I=e,T=A.isPercent?0:A.axisMinValue,N=A.isPercent?100:A.axisMaxValue,D=!!A.adjustDiv,P=A.numDivLines,M=!!A.setAdaptiveMin,H=A.axisRange,O=Math.pow(2,-24),_=!0,R=.2,V=!0,G=A.xAxisLabelMode,K=A.dependentInfo;if(a=A.majorTMNumber!==l.UNDEF?Math.max(0,P-2):P,K&&K.count&&!K.limit&&K.numDivLines!==l.UNDEF&&(a=P=K.numDivLines,D=!1),i=a+1,I===l.UNDEF&&U===l.UNDEF&&(I=0,U=1,_=!1),U===I&&0===U&&(U=1,_=!1),"categories"!==G&&"mixed"!==G||(_=!1),_?(u=Math.floor(Math.log(Math.abs(U))/Math.LN10),c=Math.floor(Math.log(Math.abs(I))/Math.LN10),h=Math.max(c,u),d=Math.pow(10,h),Math.abs(U)/d<2&&Math.abs(I)/d<2&&(h--,d=Math.pow(10,h)),b=Math.floor(Math.log(U-I)/Math.LN10),B=Math.pow(10,b),U-I>0&&d/B>=10&&(d=B,h=b),p=(Math.floor(U/d)+1)*d,f=I<0?(Math.floor(Math.abs(I/d))+1)*d*-1:M?(f=Math.floor(Math.abs(I/d)-1)*d)<0?0:f:0,!M&&U<=0&&(p=0),m=!(!N&&0!==N),v=!(!T&&0!==T),A.freezeLimit||(!1===m||!0===m&&Number(N)<U&&U-Number(N)>O?(U=p,m=!1):U=Number(N),!1===v||!0===v&&Number(T)>I&&Number(T)-I>O?(I=f,v=!1):I=Number(T))):(v=!(!T&&0!==T),!0===(m=!(!N&&0!==N))&&(Number(N)>=U||t===l.UNDEF)?U=Number(N):m=!1,!0===v&&(Number(T)<=I||e===l.UNDEF)?I=Number(T):v=!1),v&&!m&&t===l.UNDEF&&(U=I<0?0:I+1),m&&!v&&e===l.UNDEF&&(I=U>0?0:U-1),w=[I,U],n.setDomain(w),D&&!A.freezeLimit)m||v?(E=function(e,t,n,A,r,a){for(var i,o,s,c,u,h,d,g,p,f,m,v,b=t-e,B=e,y=Math.ceil(n*(1-A)),C=Math.floor(n*(1+A)),x=[],w=-1,F=function(e){return function(e){var t,n,A=[10,5,2,1],r=A.length;for(t=0;t<r;++t)if(e%A[t]%1==0){n=!0;break}return n}(i=b/(e+1))?e:l.UNDEF};!(f&&m||((v=n+ ++w)>=C&&(m=!0),c=F(v))||((v=n-w)<=y&&(f=!0),c=F(v))););for(e<0&&t>0&&r&&(s=!0),o=0;o<c;o++)s&&B<0&&B+i>0&&(x.push(0),u=!0),B+=i,x.push(B);return c===l.UNDEF&&r&&((d=(x=a.ticks(n)).length)>1?(h=.2*(i=Math.abs(x[0]-x[1])),g=x[0],p=x[d-1],Math.abs(e-g)<=h&&0!==g&&x.shift(),Math.abs(t-p)<=h&&0!==p&&x.pop(),0!==g&&0!==p||(u=!0)):0===x[0]&&(u=!0)),s&&!u&&-1===x.indexOf(0)&&(e<0&&x[0]>0?x=[0].concat(x):t>0&&x[x.length-1]<0?x.push(0):x=[0],u=!0),{output:x,interval:i,isZeroTickForced:u}}(I,U,a,R=(L=a)>=100?.2:L<=1?0:s(L)/100,A.forceZeroTick,n),Q=(y=E.output).length,k=E.isZeroTickForced,Math.abs((a-Q+(k?1:0))/a)>R?g=(U-I)/i:(g=0===Q||1===Q&&k?U-I:E.interval,A.isZeroTickForced=k,A.ticks=k&&0===I?y.concat(U):[I].concat(y,U),V=!1)):(A.ticks=a?n.nice(i).ticks(i):n.getDomain(),g=Math.abs(A.ticks[1]-A.ticks[0]),V=!1);else if(m||v||A.freezeLimit)g=(U-I)/i;else{var z=n.nice(i).getDomain();C=z[0],g=function(e){if(e<=1)return 1;var t=[],n=Math.ceil(e);return t[2]=n%2,t[5]=n%5,t[10]=n%10,(0,o["default"])(t)+n}(d=((x=z[1])-C)/i),((x=C+g*i)-U)/U>R||(C-I)/I>R?(n.setDomain([I,U]),g=(U-I)/i):(I=C,U=x,n.setDomain([I,U]))}V&&(I<0&&U>0&&A.forceZeroTick?(0===(S=(F=(0,r["default"])(I,0,g))[F.length-1]+g)?S+=g:A.isZeroTickForced=!0,A.ticks=F.concat(0,(0,r["default"])(S,U,g),U)):A.ticks=(0,r["default"])(I,U,g).concat(U));var W=n.getDomain();I=W[0],U=W[1],A._allTicks=A.ticks.slice(),H.tickInterval=g,H.min=I,H.max=U}},(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=A(n(295)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o}(e,t)}(n(595)),o=n(281),l=n(601),s=A(n(569));var c=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var n=t.prototype;return n._getHMaxLabelDimention=function(e){var t,n,A,r,a,l,c,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P,M,H,O=this,_=e,R=O.config,V=O.getFromEnv("chart"),G=V.config,K=V.getFromEnv("smartLabel"),z=R.axisRange,W=R.labels,j=R.labelDisplay,X=R.slantLabel,Y=W.style,J=R.maxLabelHeight,q=O.getInterval(),Z=R.staggerLines,$=R.labelStep,ee=G.canvasLeft,te=G.canvasRight,ne=Z-2,Ae=z.max,re=z.min,ae=0,ie=R.tickValues&&R.tickValues.tickValue,oe=ie&&ie.length,le=V.distributedColumns,se=0,ce={text:o.UNDEF,width:0,style:o.UNDEF},ue=0,he=4,de=o.stubFN,ge=o.stubFN,pe=o.stubFN,fe="WWW",me={},ve=0,be=!1,Be=0,ye=!1,Ce=Number.POSITIVE_INFINITY,xe=R.ticks,we=Number.POSITIVE_INFINITY;if(le)for(b=0;b<oe;b++)ie[b+1]?ie[b].x&&(ie[b].plotWidth=O.getPixel(ie[b+1].x-ie[b].x)-O.getPixel(0)):ie[b].plotWidth=O.getPixel(G.canvasRight-ie[b].x)-O.getPixel(0);if(R.tickValues&&(!ie||0===ie.length))return{width:0,height:0};function Fe(e,t){switch(t.toLowerCase()){case"left":return Math.abs(O._getCustomPixel(e));case"right":return Math.abs(G.width-O._getCustomPixel(e))}}if("rotate"===j&&(R.rotateLabels=1),R.tickValues||(R.irregularCatAxis=!1),R.sWidthAdjstFactor=n=0===ne?1:1===ne?1.5:ne,K.useEllipsesOnOverflow(G.useEllipsesWhenOverflow),K.setStyle({fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight}),R.irregularCatAxis){for(ie.sort(function(e,t){return e.x-t.x}),b=0,se=ie.length;b<se;b++){if(a=ie[b],void 0!==F){if(we=Math.abs(a.x-F),E=Math.abs(O._getCustomPixel(re)-O._getCustomPixel(re+we)),K.setStyle(Object.assign({},a.style)),E<1.2*K.getOriSize("W").width){a.label=o.BLANKSTRING,we=Ce;continue}Q._individualIWR=E,a._individualIWL=E,Ce=we}Q=a,F=a.x}for(we===Number.POSITIVE_INFINITY&&(we=Math.floor(Math.min(a.x,Ae-a.x)),we=Math.max(we,4)),b=0,se=ie.length;b<se;b++)a=ie[b],b||(a._individualIWL=Infinity),b===se-1&&(a._individualIWR=Infinity),a.individualIW=Math.min(a._individualIWL,a._individualIWR);c=Math.abs(O._getCustomPixel(re)-O._getCustomPixel(re+we)),c=Math.min(2*Fe(ie[0].x,"left"),2*Fe(ie[se-1].x,"right"),c)}else c=Math.abs(O._getCustomPixel(re)-O._getCustomPixel(re+q));if(_=J||_,me.__root__={getHeight:function(e){var t=ie[e]._ovrStyle.lineHeight;return parseInt(t.replace(/(\d+)px/,"$1"),10)},getWidth:function(){return _},getCalculatedLabelStep:function(e){var t,n,A,r,a,i,h,d,g,p,f,m=0,v=e.length,b=Number.NEGATIVE_INFINITY,B={},y=0,C=R.rotateLabels,x="wrap"===j||"auto"===j;for(m=0;m<v;m++)(r=e[m]).style=r.style||{};if(R.irregularCatAxis)return R.labelStep;for(m=0;m<v;m++)(r=e[m])&&(r.label||(r.label=""),a=r.oriLabel||r.label,l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},y++,r.style=r.style||{},(0,o.extend2)(l,r.style),B[t=l.fontSize+l.fontFamily+l.lineHeight+l.fontWeight]?a.length>B[t].label.length&&(B[t].label=a):B[t]={label:a,style:l});for(i in B)B.hasOwnProperty(i)&&(n=B[i].style,A=B[i].label,n.lineHeight=(0,o.setLineHeight)(n),K.setStyle(n),C&&(g=parseInt(n.lineHeight,10)),u=K.getSmartText(A,o.UNDEF,g),(d=0===C?u.width>60?60:u.width:u.height)>b&&(b=d,p=B[i]));if((x&&(b=Math.min(M,b)),h=Math.floor(Math.abs(O._getCustomPixel(Ae)-O._getCustomPixel(re))/b),f=Math.max(Math.ceil(y/h),R.labelStep),c=Math.abs(O._getCustomPixel(re)-O._getCustomPixel(re+f)),x&&0===C)&&(K.setStyle(p.style),(0,s["default"])(Object.values(K.getOriSize(p.label).detailObj))>c-2*he))return f+=1,c=Math.abs(O._getCustomPixel(re)-O._getCustomPixel(re+f)),f;return y<=h?R.labelStep:f}},me._inProp={},me.getCopyById=function(e){var t,n=this._inProp,A=this.__root__,r=n.copyStore;return(t=(r=r||{})[e])||(0,o.extend2)(t=r[e]={},A),t},R.tickValues){switch(j){case"rotate":W.rotation=X?300:270,g=me.getCopyById("rotate");break;case"stagger":(g=me.getCopyById("stagger")).getHeight=function(e){var t,n;return n=(t=R.tickValues.tickValue[e])&&t.style||(t.style={}),l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},(0,o.extend2)(l,n),K.setStyle(l),K.getOriSize(t.label).height},g.getWidth=function(e){return he=1,e.individualIW?e.individualIW:2*c*n-he},pe=function(e){var t,n,A,r,a,i,o=e.length,l=0;if(K.setStyle(Y),A=K.getOriSize(fe).height,n=e[o-1],Math.floor(n._cumulativeSum)<=Math.ceil(o*(A+2)))a=Math.floor(_/A),Z=a-Z<0?a:Z;else{a=Math.floor(_/(A+4));do{for(l=0,r=(i=a)-1,o=e.length;r<o;){if(o-r<a&&(r=o-1),~~((t=e[r])._cumulativeSum-l)>-~_){be=!0;break}be=!1,l=t._cumulativeSum,r+=i}}while(a--&&be);a++,Z=Math.min(Z,a)}R.drawnStaggerLines=Z},de=function(e){var t,n,r,a,i=0;for(a=0,n=e.length;a<n;a++)(t=e[a]).stepSkipped||((r=(t&&t.style||{}).lineHeight)||(r=Y.lineHeight),A=i++%Z,t.labelPadding=A?r.replace(/px/i,"")*A:0)};break;case"none":(g=me.getCopyById("none")).getHeight=o.stubFN,g.getWidth=o.stubFN,ge=o.stubFN,R.rotateLabels&&(W.rotation=X?300:270,S=_),g.getCalculatedLabelStep=function(){return R.labelStep};break;default:(g=me.getCopyById("auto")).getHeight=function(){return _},g.getWidth=function(e){return e.individualIW?e.individualIW:c-2*he},K.setStyle(ce.style),H=K.getOriSize(fe),M=H.width,ge=function(e,t){var n,A,r,a;if(!R.irregularCatAxis&&(K.setStyle(e),H=K.getOriSize(fe),(M=H.width)>=c&&0!==R.rotateLabels)){for(W.rotation=X?300:270,W.forceRotate=!0,g=me.getCopyById("rotate"),h=g.getWidth,d=g.getHeight,ce.width=0,n=0,A=t.length;n<A;n++)(r=t[n])&&(r.label||r.oriLabel)&&0!==(0,o.pluckNumber)(r.showlabel,R.showLabels,1)&&!0!==r.stepSkipped&&(a=r._ovrStyle,K.setStyle({fontSize:a.fontSize,fontFamily:a.fontFamily,lineHeight:a.lineHeight,fontWeight:a.fontWeight}),u=K.getSmartText(r.oriLabel,h(r),d(n)),r.label=u.text,r.labelTooltext=u.tooltext,r._sLabel=u,ce.width<u.width&&(ce.text=u.text,ce.width=u.width,ce.height=u.height,ce.style=a));p=ce.text}}}for(h=g.getWidth,d=g.getHeight,$=R.labels.step=R.labelStep=R._oriLabelStep,$=R.labels.step=R.labelStep=g.getCalculatedLabelStep(ie),b=(0,i.minimumEnquiry)(ie),f=0,B=0,se=ie.length;b<se;b++,f++)(a=ie[b])&&(a.label||a.oriLabel)&&0!==(0,o.pluckNumber)(a.showlabel,R.showLabels,1)&&(ye=!0,l={fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight},(0,o.extend2)(l,a.style),l.lineHeight=(0,o.setLineHeight)(l),(N=l.fontSize+l.fontFamily+l.lineHeight+l.fontWeight)!==T&&(K.setStyle(l),T=N),f%$?(a.stepSkipped=!0,a.appliedSmartLabel=!1,Be++):(a.appliedSmartLabel=!0,a.stepSkipped=!1,a._ovrStyle=l,ie[b].plotWidth?t=Math.max("rotate"===j?ie[b].plotWidth-6:0,d(b)):("rotate"===j?b<se-1&&(r=O.getPixel(b+1)-O.getPixel(b)-10):r=0,"rotate"===j&&isNaN(+r)&&(r=G.canvasWidth/O.getVisibleLength()-3),t=Math.max(r,d(b))),ve+=(u=K.getSmartText(a.oriLabel||a.label,h(a),t)).height+2,O.components.labels[B++]={config:{width:u.width,height:u.height,props:{label:{}}}},a._cumulativeSum=ve,a.oriLabel=a.oriLabel||a.label,a.label=u.text,a.labelTooltext=u.tooltext,a._sLabel=u,ce.width<u.width&&((0,o.extend2)(ce,u),ce.style=l),ue<u.height&&(ue=u.height)));if(!ye)return{height:0,width:0};if(pe(ie,Be),de(ie,Be),ge(ce.style,ie),p=ce.text||"","mixed"===R.xAxisLabelMode)for(x=R.isPercent?V.getFromEnv("number-formatter").percentValue:V.getFromEnv("number-formatter").xAxis,ae=p.length,b=0,D=xe&&xe.length;b<D;++b)C=xe[b],(y=""+x.call(V.getFromEnv("number-formatter"),C,R.axisIndex)).length>ae&&(p=y,ae=y.length);for(ce.height=Math.max(ue,ce.height||0),U=ie.length,b=0,se=ie.length;b<se&&!(k=ie[b])._sLabel;b++);for(b=(se=ie.length)-1;b>=0&&!(L=ie[b])._sLabel;b--);I=1!==O.getZoom(),W.rotation||I||!k._sLabel?(R.axisEndLabelDisplaySpace.left=0,R.axisEndLabelDisplaySpace.right=0):(R.axisEndLabelDisplaySpace.left=Math.max(ee-(O._getCustomPixel(k.x||0)-k._sLabel.width/2),0),R.axisEndLabelDisplaySpace.right=Math.max(O._getCustomPixel(L.x||U-1)+L._sLabel.width/2-te,0)),w=ce}else{for(x=R.numberFormatterFn?V.getFromEnv("number-formatter")[R.numberFormatterFn]:R.isPercent?V.getFromEnv("number-formatter").percentValue:V.getFromEnv("number-formatter").xAxis,b=0,D=xe&&xe.length;b<D;++b)P=xe[b],C=(0,o.toPrecision)(P,10),y=""+x.call(V.getFromEnv("number-formatter"),C,R.axisIndex),P===re&&(m=y),P===Ae&&(v=y),w=K.getOriSize(y),O.components.labels[b]={config:{width:w.width,height:w.height,props:{label:{}}}},y.length>ae&&(p=y,ae=y.length);K.setStyle({fontSize:Y.fontSize,fontFamily:Y.fontFamily,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight}),w=K.getOriSize(p||""),"rotate"===j&&(W.rotation=270),R.rotateLabels&&(W.rotation=X?300:270),W.rotation||(m=K.getOriSize(m||""),v=K.getOriSize(v||""),R.axisEndLabelDisplaySpace.left=m.width/2+2,R.axisEndLabelDisplaySpace.right=v.width/2+2)}return R.tickValues&&"stagger"===j&&(w.height=Z*ce.height),w.width=S?Math.min(S,w.width):w.width,w.width=(0,o.pluckNumber)(w.width),w.maxWidth=(0,o.pluckNumber)(w.maxWidth),w},n._getVMaxLabelDimention=function(e){var t,n,A,r,a,i,l,s,c,u,h,d,g,p,f=this,m=e,v=f.config,b=f.getFromEnv("chart"),B=b.config,y=b.getFromEnv("smartLabel"),C=v.labels.style,x=v.useEllipsesWhenOverflow,w=v.maxLabelWidthPercent,F=v.minLabelWidthPercent,S=0,E=b.getFromEnv("dataSource").categories,Q={height:0,width:0},k=v.ticks,L={};if(y.useEllipsesOnOverflow(B.useEllipsesWhenOverflow),y.setStyle({fontSize:C.fontSize,fontFamily:C.fontFamily,lineHeight:C.lineHeight,fontWeight:C.fontWeight}),v.tickValues){for(E&&(L={fontFamily:E[0].font,fontSize:E[0].fontsize,color:E[0].fontcolor}),w&&(n=w/100*B.width)<m&&(m=n),F&&(A=F/100*B.width)>m&&(m=A),r=0,c=(s=v.tickValues.tickValue).length;r<c;r++)if(u=s[r],0!==(0,o.pluckNumber)(u.showlabel,v.showLabels)){g={fontFamily:(0,o.pluck)(u.font,u.labelfont,L.fontFamily,C.fontFamily),fontSize:(0,o.pluck)(this.computeFontSize(u.fontsize),u.labelfontsize,L.fontSize,C.fontSize).toString().replace(/px/i,"")+"px",fontWeight:"normal"===C.fontWeight?(0,o.pluckNumber)(u.fontbold,u.labelfontbold,0)?"bold":"normal":C.fontWeight,fontStyle:"normal"===C.fontStyle?(0,o.pluckNumber)(u.fontitalic,u.labelfontitalic,0)?"italic":"normal":C.fontStyle},(p={fontFamily:(0,o.pluck)(g.fontFamily,L.fontFamily,C.fontFamily),fontSize:(0,o.pluck)(g.fontSize,L.fontSize,C.fontSize),fontWeight:(0,o.pluck)(g.fontWeight,C.fontWeight),fontStyle:(0,o.pluck)(g.fontStyle,C.fontStyle)}).lineHeight=(0,o.setLineHeight)(p);var U=y.setStyle(p),I=U&&U.style&&U.style.lineHeight?U.style.lineHeight:C.lineHeight;h=y.getSmartText(u.oriLabel||u.label,m,I.toString().replace(/px/i,""),x),f.components.labels[r]={config:{width:h.width,height:h.height,props:{label:{}}}},u.oriLabel=u.oriLabel||u.label,u.label=l=h.text,u.labelTooltext=h.tooltext,h.width>S&&(Q=h,S=h.width)}return Q}for(d=v.numberFormatterFn?b.getFromEnv("number-formatter")[v.numberFormatterFn]:v.isPercent?b.getFromEnv("number-formatter").yAxisPercentValue:b.getFromEnv("number-formatter").yAxis,r=0,a=k&&k.length;r<a;++r)i=(0,o.toPrecision)(k[r],10),l=""+d.call(b.getFromEnv("number-formatter"),i,v.axisIndex),h=y.getSmartText(l),f.components.labels[r]={config:{width:h.width,height:h.height,props:{label:{}}}},l.length>S&&(t=l,S=l.length);return y.getOriSize(t)},n.getCleanValue=function(e,t){return this.getFromEnv("number-formatter").getCleanValue(e,t)},n.generateMinorTicks=function(){if(this)return[]},n.setCanvas=function(e){this.config.canvas=e},n._adjustNumberFormatter=function(e){var t,n,A=this.config,r=A.axisIndex,a=A.isVertical,i=this.getFromEnv("chart").getFromEnv("number-formatter"),l=A._defaultDecimalPrecision,s=A._defaultForceDecimal,c=0;n=a||"yAxis"===A.numberFormatterFn?(i.Y[r]||i.Y[0]).yAxisLabelConf:i.paramX,l!==o.UNDEF?n.decimalprecision=l:A._defaultDecimalPrecision=n.decimalprecision,s!==o.UNDEF?n.forcedecimals=s:A._defaultForceDecimal=n.forcedecimals,parseInt(e,10)>0||(t=e.toString().split(".")[1])&&((c=t.match(/^[0]*/)[0].length+1)>n.decimalprecision&&(n.forcedecimals=1),n.decimalprecision=Math.max(c,n.decimalprecision))},n.setLabelConfig=function(e){var t,n=this.config.labels;for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t])},t}(i["default"]);c.prototype._parseLabel=l._parseLabel,c.prototype._drawLabel=l._drawLabel,c.prototype.getTrendLineLimits=l.getTrendLineLimits,c.prototype.setAxisPadding=l.setAxisPadding,c.prototype.getLabel=l.getLabel;t["default"]=c},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.minimumEnquiry=t.getCrispPath=t["default"]=void 0;var r=A(n(295)),a=A(n(596)),i=n(281),o=A(n(597)),l=A(n(598)),s=A(n(599)),c=n(289),u=n(601),h="_trend",d="_label",g="axisLine",p=t.getCrispPath=function(e,t){var n,A,r=!1,a=t%2;return e[1]===e[4]&&(n=e[1],A=Math.round(n),e[1]=e[4]=a?A>n?A-.5:A+.5:A,r=!0),e[2]===e[5]&&(n=e[2],A=Math.round(n),e[2]=e[5]=a?A>n?A-.5:A+.5:A,r=!0),{path:e,isCrisped:r}},f=function(e){return function(t,n){return!!(e.minValue<=t&&e.maxValue>=t||e.minValue<=n&&e.maxValue>=n)}},m=function(e){return function(t){return!!(e.minValue<=t&&e.maxValue>=t)}},v={wrtVisible:!0},b=t.minimumEnquiry=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t].label||e[t].oriLabel)return t};(0,c.addDep)({name:"cartesianAxisAnimation",type:"animationRule",extension:o["default"]});var B=function(e){function t(){var t;return(t=e.call(this)||this).config.referenceInfo=[],t.config.prevTicks=[],t.config.prevIntervalArr=[],t.config.prevTrendLabels=[],t.config.prevCategoryIntervalArr=[],t}(0,r["default"])(t,e);var n=t.prototype;return n.placeAxis=function(e){var t=this,n=t.getScale(),A=t.getFromEnv("chart"),r=t.config,a=r.isVertical,o=r.isReverse,l=A.config,s=l.dataLabelStyle,c=r.name.style,u=r.trend.trendStyle,h=r.labels.style,d=r.parsedTrendLabels||[],g=r.parsedVlineInfo||[];return c.fontSize=this.computeFontSize(c.fontSizeWithUnit),c.lineHeight=(0,i.setLineHeight)(c),u.fontSize=this.computeFontSize(u.fontSizeWithUnit),u.lineHeight=(0,i.setLineHeight)(u),h.fontSize=this.computeFontSize(h.fontSizeWithUnit),h.lineHeight=(0,i.setLineHeight)(h),s.fontSize=this.computeFontSize(s.fontSizeWithUnit),(0,i.setLineHeight)(s),d.forEach(function(e){e.css.fontSize=u.fontSize,e.css.lineHeight=u.lineHeight}),g.forEach(function(e){e.text&&(e.text.css.fontSize=l.style.inCanfontSize,e.text.css.lineHeight=l.style.inCanLineHeight)}),a?(o?n.setRange([l.canvasBottom,l.canvasTop]):n.setRange([l.canvasTop,l.canvasBottom]),t._placeVerticalAxis(e)):(o?n.setRange([l.canvasRight,l.canvasLeft]):n.setRange([l.canvasLeft,l.canvasRight]),t._placeHorizontalAxis(e))},n._placeVerticalAxis=function(e){var t,n,A,r,a,o,l,s,c,u,h,d,g,p,f,m,v,b,B=this,y=e,C=B.config,x=B.getFromEnv("chart"),w=x.config,F=x.getFromEnv("smartLabel"),S=C.axisRange,E=C.minLabelWidthPercent,Q=C.name,k=C.isOpposit,L=B.getFromEnv("number-formatter"),U=w.canvasHeight,I=C.labelPadding=(0,i.pluckNumber)(C.rawAttr.axisValuePadding,4),T=(0,i.pluckNumber)(C.rawAttr.axisNamePadding,5),N=C.useEllipsesWhenOverflow,D=C.name.style,P=C.trend.trendStyle,M=C.axisName,H=C.trendLines,O=C.drawLabelsOpposit,_=C.drawAxisNameOpposit,R=0,V=0,G=0,K=0,z=0,W=0,j={left:0,right:0},X=i.BLANKSTRING,Y=i.BLANKSTRING,J=0,q=-1;if(E&&(q=E/100*w.width),C.oriCanvasHeight=U,I<0&&(C.labelPadding=2),m=C.drawTick&&C.tickLength?C.axisLineThickness+C.tickLength:C.axisLineThickness,C.showAxisLine?(C.labelPadding=(0,i.pluckNumber)(I,2)+m,C.labelPadding<0&&(C.labelPadding=(C.axisLineThickness<0?0:m)+2),y-=C.axisLineThickness):(C.labelPadding=(0,i.pluckNumber)(I,2),C.labelPadding<0&&(C.labelPadding=2)),c=S.max,u=S.min,C.name.rotation=0,C.labels.step=C.labelStep,C.labels.isDraw=1,C.labels.drawNormalVal=C.showDivLineValues,C.labels.drawLimitVal=C.showLimits,J=D.lineHeight,J=Number(J.replace(/px/i,"")),M&&J<y&&(y-=J),1!==C.showLimits&&1!==C.showDivLineValues&&(C.labels.isDraw=0),((d=C.drawLabels?B._getVMaxLabelDimention(y-C.labelPadding):{width:0,height:0}).width+C.labelPadding>y&&!C.tickValues||0===d.width)&&(C.labels.isDraw=0),C.labels.isDraw&&(C.labelMaxW=d.width>q?d.width:q,C.labelMaxH=d.height,G=R=C.labelMaxW+C.labelPadding),C.drawTrendLines&&C.drawTrendLabels&&H&&H.length){for(r=C.isPercent?L.percentValue:C.isVertical?L.yAxis:L.xAxis,F.useEllipsesOnOverflow(w.useEllipsesWhenOverflow),F.setStyle({fontSize:P.fontSize,fontFamily:P.fontFamily,lineHeight:P.lineHeight,fontWeight:P.fontWeight}),t=0,n=H.length;t<n;t+=1)for(s=0,g=H[t].line&&H[t].line.length;s<g;s+=1)p=H[t].line[s],v=L.getCleanValue((0,i.pluck)(p.startvalue,p.value,0)),b=(0,i.pluckNumber)(p.endvalue,v),v<=c&&v>=u&&b<=c&&b>=u&&(l=1===(f=(0,i.pluckNumber)(p.valueonright,k?1:0))?p.endvalue||p.startvalue:p.startvalue||p.endvalue,(h=(0,i.parseUnsafeString)(p.origText||p.displayvalue||l||""))===l&&(h=""+r.call(L,h)),f?h.length>Y.length&&(Y=h):h.length>X.length&&(X=h));for(W=(d=F.getOriSize(Y)).width?d.width+C.labelPadding:0,z=(d=F.getOriSize(X)).width?d.width+C.labelPadding:0,k?(W>G&&W>y&&(W=y),z>y-(G=Math.max(G,W+C.labelPadding))&&(z=Math.min(z,y-G))):(z>G&&z>y&&(z=y),W>y-(G=Math.max(G,z+C.labelPadding))&&(W=Math.min(W,y-G))),t=0,n=H.length;t<n;t+=1)for(s=0,g=H[t].line&&H[t].line.length;s<g;s+=1)p=H[t].line[s],v=L.getCleanValue((0,i.pluck)(p.startvalue,p.value,0)),b=(0,i.pluckNumber)(p.endvalue,v),h=1===Number(p.valueonright)?p.origText||p.displayvalue||""+b||"":p.origText||p.displayvalue||""+v||"",(h=(0,i.parseUnsafeString)(""+h))!==p.endvalue&&h!==p.startvalue||(h=""+r.call(L,h)),p.origText=h,o=(f=(0,i.pluckNumber)(p.valueonright,k?1:0))?F.getSmartText(h,W,x.config.canvasHeight,N):F.getSmartText(h,z,x.config.canvasHeight,N),(A=C.parsedTrendLabels[V++])&&(A.attr.text=p.displayvalue=o.text),o.tooltext?(p.valueToolText=o.tooltext,A&&(A.valueToolText=p.valueToolText)):(delete p.valueToolText,A&&delete A.valueToolText)}return y+=J,!C.drawAxisName||y-G-W<=0||""===M?(Q.isDraw=!1,Q.value=i.BLANKSTRING):(F.setStyle({fontSize:D.fontSize,fontFamily:D.fontFamily,lineHeight:D.lineHeight,fontWeight:D.fontWeight}),Q.isDraw=!0,C.rotateAxisName?(C.name.rotation=k?90:270,a=F.getSmartText(M,U,y-G-W),Q.value=M,C.nameMaxW=Math.min(a.height),K=C.nameMaxW+T):(a=F.getSmartText(M,y-G-W,U),Q.value=M,C.nameMaxW=Math.min(a.width,y-G),C.nameMaxH=a.height,C.axisNameWidth>=0&&(C.nameMaxW=Math.min(C.nameMaxW,C.axisNameWidth)),K=C.nameMaxW+T)),k?(O?(j.left+=Math.max(R,z),j.right+=W):(j.left+=z,j.right+=Math.max(R,W)),_?(C.axisNamePadding=j.left+T,j.left+=K):(C.axisNamePadding=j.right+T,j.right+=K)):(O?(j.left+=z,j.right+=Math.max(R,W)):(j.left+=Math.max(R,z),j.right+=W),_?(C.axisNamePadding=j.right+T,j.right+=K):(C.axisNamePadding=j.left+T,j.left+=K)),Q.isDraw&&C.axisNamePadding+C.nameMaxW>y&&(C.axisNamePadding=y-C.nameMaxW,K=C.nameMaxW+C.axisNamePadding-G),j},n._placeHorizontalAxis=function(e){var t,n,A,r,a,o,l,s,c,u,h,d,g,p,f,m,v,b,B=this,y=e,C=B.config,x=B.getFromEnv("chart"),w=x.config,F=x.getFromEnv("smartLabel"),S=C.axisRange,E=C.name,Q=C.isOpposit,k=x.getFromEnv("number-formatter"),L=C.drawLabelsOpposit,U=C.drawAxisNameOpposit,I=0,T=w.canvasWidth,N=C.labelPadding=(0,i.pluckNumber)(C.rawAttr.axisValuePadding,4),D=(0,i.pluckNumber)(C.rawAttr.axisNamePadding,5),P=C.useEllipsesWhenOverflow,M=C.name.style,H=C.trend.trendStyle,O=C.axisName,_=C.vTrendLines,R=0,V=0,G=0,K={top:0,bottom:0},z=0,W=0;if(N<0&&(C.labelPadding=2),m=C.drawTick&&C.tickLength?C.axisLineThickness+C.tickLength:C.axisLineThickness,C.showAxisLine?(C.labelPadding=(0,i.pluckNumber)(N,2)+m,C.labelPadding<0&&(C.labelPadding=(C.axisLineThickness<0?0:m)+2),y-=C.axisLineThickness):(C.labelPadding=(0,i.pluckNumber)(N,2),C.labelPadding<0&&(C.labelPadding=2)),l=S.max,s=S.min,C.labels.rotation=0,C.labels.step=C.labelStep,C.labels.isDraw=1,C.labels.drawNormalVal=C.showDivLineValues,C.labels.drawLimitVal=C.showLimits,W=M.lineHeight,W=Number(W.replace(/px/i,"")),O&&W<y&&(y-=W),C.rotateLabels&&"stagger"!==C.labelDisplay&&"none"!==C.labelDisplay&&(C.labelDisplay="rotate"),1!==C.showLimits&&1!==C.showDivLineValues&&(C.labels.isDraw=0),p=C.drawLabels?B._getHMaxLabelDimention(y-C.labelPadding):{width:0,height:0},C.labels.rotation?p.width+C.labelPadding>y&&!C.tickValues&&(C.labels.isDraw=0):p.height+C.labelPadding>y&&!C.tickValues&&(C.labels.isDraw=0),C.labels.isDraw&&(C.labels.rotation?(C.labelMaxW=p.height,C.labelMaxH=p.width,I=p.width+C.labelPadding):(C.labelMaxW=p.width,C.labelMaxH=p.height,I=p.height+C.labelPadding),R=I),h=(R=Math.max(R,C.labelPadding))<=y?y-R:y,C.drawTrendLines&&C.drawTrendLabels&&_&&C.isActive)for(f=C.isPercent?B.getFromEnv("number-formatter").percentValue:C.isVertical?B.getFromEnv("number-formatter").yAxis:B.getFromEnv("number-formatter").xAxis,F.useEllipsesOnOverflow(w.useEllipsesWhenOverflow),F.setStyle({fontSize:H.fontSize,fontFamily:H.fontFamily,lineHeight:H.lineHeight,fontWeight:H.fontWeight}),n=0,A=_.length;n<A;n+=1)for(o=0,u=_[n].line&&_[n].line.length;o<u;o+=1)d=_[n].line[o],v=k.getCleanValue((0,i.pluck)(d.startvalue,d.value,0)),b=(0,i.pluckNumber)(d.endvalue,v),v<=l&&v>=s&&b<=l&&b>=s&&(t=1===(0,i.pluckNumber)(d.valueonright,0)?d.endvalue||d.startvalue:d.startvalue||d.endvalue,(c=(0,i.parseUnsafeString)(d.origText||d.displayvalue||t||""))===t&&(c=""+f.call(x.getFromEnv("number-formatter"),c)),d.origText=c,h-((g=F.getSmartText(c,x.canvasWidth,H.lineHeight,P)).height+2)<0?d.displayvalue=i.BLANKSTRING:((r=C.parsedTrendLabels[V++])&&(r.attr.text=d.displayvalue=g.text),z=z<g.height?g.height:z),g.tooltext?(d.valueToolText=g.tooltext,r&&(r.valueToolText=d.valueToolText)):(delete d.valueToolText,r&&delete r.valueToolText));return h-=z,R+=Q?0:z,h+=W,y+=W,!C.drawAxisName||h<=0||""===O?(E.isDraw=!1,E.value=i.BLANKSTRING):(F.setStyle({fontSize:M.fontSize,fontFamily:M.fontFamily,lineHeight:M.lineHeight,fontWeight:M.fontWeight}),E.isDraw=!0,a=F.getSmartText(O,T,h),E.value=O,C.nameMaxW=T,C.nameMaxH=a.height,G=a.height+D,C.axisNamePadding=D+R,C.axisNamePadding+a.height>y&&(C.axisNamePadding=y-a.height,G=a.height+C.axisNamePadding-R)),Q?(L?K.bottom+=I+z:(K.top+=I,K.bottom+=z),C.trendBottomPadding=K.bottom-z+2,U?K.bottom+=G:K.top+=G):(L?(K.top+=I,K.bottom+=z):K.bottom+=I+z,C.trendBottomPadding=K.bottom-z+2,U?K.top+=G:K.bottom+=G),K},n._parseCategoryPlotLine=function(){var e,t,n,A=this,r=A.config,a=r.axisRange,o=r.tickValues.tickValue,l=(0,i.convertColor)(r.divLineColor,r.divLineAlpha),s=r.divLineThickness,c=r.divLineIsDashed?(0,i.getDashStyle)(r.divLineDashLen,r.divLineDashGap,s):i.DASH_DEF,u=m(A.getVisibleConfig()),h=r._allTicks,d=h.length;if(e={stroke:l,"stroke-width":s,"stroke-dasharray":c},(!o[0]||o[0].x===i.UNDEF&&o[0].y===i.UNDEF)&&r.lines.isDraw&&r.categoryNumDivLines)for(t=0;t<d;++t)u(n=h[t])&&n!==a.min&&n!==a.max&&A.setReferenceInfo({from:n,type:"line",layer:1,attr:e})},n._drawComponents=function(){var e=this,t=e.config;t.drawAxisName&&e._drawAxisName(),t.drawAxisLine&&e._drawAxisLine(),t.tickValues?t.drawLabels&&e._drawCategory():t.drawLabels&&e._drawLabel(),t.drawTrendLines&&e.drawTrendLabel()},n.drawTrendLabel=function(){var e,t,n,A,r,a,o,l,c,u,d,g,p,f,m,b,B=this,y=B.config,C=y.parsedTrendLabels,x=B.getFromEnv("animationManager"),w=this.getFromEnv("toolTipController"),F=y.axisTrendLabelContainer,S=y.isOpposit,E=y.labelPadding,Q=y.vTrendLines,k=y.trendLines,L=y.axisDimention,U=B.getVisibleConfig(),I=U.minValue,T=U.maxValue,N=!0;for(m=0,b=C.length;m<b;m++)C[m].id=m+h;for(Q?A=S?L.opposite+(y.trendBottomPadding||0):L.y+(y.trendBottomPadding||0):(A=S?L.opposite-(E||0):L.x-(E||0),r=S?L.x+(E||0):L.opposite+(E||0)),m=0,b=(p=(0,s["default"])(function(e,t){return e.attr.text===t.attr.text},y.prevTrendLabels,C)).length;m<b;m++)(g=B.getGraphicalElement(p[m].id))&&B.removeGraphicalElement(g);if(y.prevTrendLabels=(0,i.extend2)([],C),y.drawTrendLabels)for(m=0,b=C.length;m<b;m++)t=C[m],n=B.getGraphicalElement(m+h),o=+t.from,c=+t.to,N=!0,(f=!isNaN(c))?(I>(l=o+(c-o)/2)||T<l)&&(N=!1):(I>o||T<o)&&(N=!1),N?(Q?(u=B.getPixel(o,v),d=f?B.getPixel(c,v):0,a=(0,i.pluckNumber)(t.isTrendZone,y.isTrendZone,1),f&&c!==o&&a?(t.attr.x=u+(d-u)/2,t.attr.y=A):(t.attr.x=f?d:u,t.attr.y=A)):k&&(u=B.getPixel(o,v),d=f?B.getPixel(c,v):0,e=(0,i.pluckNumber)(t.valueOnRight,y.isOpposit?1:0),a=(0,i.pluckNumber)(t.isTrendZone,y.isTrendZone,0),f&&c!==o&&a?(t.attr.x=e?r:A,t.attr.y=u+(d-u)/2):(t.attr.x=e?r:A,t.attr.y=f&&e?d:u)),n=B.addGraphicalElement(m+h,x.setAnimation({container:F,el:n||"text",attr:t.attr,css:t.css,data:{value:l||o},component:B,label:"text"})),y.showTooltip&&t.valueToolText?w.enableToolTip(n,t.valueToolText):w.disableToolTip(n)):n&&B.removeGraphicalElement(n);else for(m=0,b=C.length;m<b;m++)(g=B.getGraphicalElement(C[m].id))&&B.removeGraphicalElement(g)},n._drawAxisName=function(){var e,t,n,A,r,a,o=this,l=o.config,s=this.getFromEnv("chart"),c=this.getFromEnv("toolTipController"),u=o.getLinkedItem("canvas").getEffectiveDimensions(),h=o.getFromEnv("animationManager"),d=u.left,g=u.top,p=u.width,f=u.height,m=g+f,v=d+p,b=o.getFromEnv("chart").config,B=l.name.style,y=l.name.value,C=l.isOpposit,x=l.isVertical,w=o.getFromEnv("smartLabel"),F=l.axisNameContainer,S=l.axisNamePadding,E=l.nameMaxH,Q=l.nameMaxW,k=l.axisDimention,L=x?k.x:k.y,U=k.opposite,I=o.getGraphicalElement("axisName"),T=(0,i.pluckNumber)(l.name.rotation,x?90:270),N=o.getFromEnv("paper"),D={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},P=o.getFromEnv("chart-attrib"),M=s.getChildren("scrollBar")&&s.getChildren("scrollBar")[0],H=M&&M.getLogicalSpace(),O="WaterFall2D"===s.getName();if(l.name.isDraw){if(e={fontFamily:B.fontFamily,fill:B.color,"vertical-align":"middle","font-size":B.fontSize,"line-height":B.lineHeight},w.useEllipsesOnOverflow(b.useEllipsesWhenOverflow),w.setStyle({fontSize:B.fontSize,fontFamily:B.fontFamily,lineHeight:B.lineHeight,fontWeight:B.fontWeight}),l.drawAxisNameOpposit&&(C=!C,L=U),x){if(S=Math.max(S,function(e,t){var n=0;return e.relativeAxis&&e.relativeAxis.config&&e.relativeAxis.config.axisNamePadding&&(n=Math.max(e.relativeAxis.config.axisNamePadding,n)),e.isOpposit&&t.canvasMarginRight&&(n=Math.max(n,t.canvasMarginRight-t.marginLeft-e.nameMaxW)),!e.isOpposit&&t.canvasMarginLeft&&(n=Math.max(n,t.canvasMarginLeft-t.marginRight-e.nameMaxW)),n}(l,b)),A=l.axisNameAlignCanvas||b.captionalignment&&"left"===b.captionalignment?f:Math.max(f,l.oriCanvasHeight||0),T?(n=(t=w.getSmartText(y,A,Q)).tooltext,r=t.width):(n=(t=w.getSmartText(y,Q,A)).tooltext,r=t.height),l.drawAxisNameFromBottom)a=m-r/2;else{var _=b.height/2;P.orientedtextalign&&"right"===P.orientedtextalign&&(e["text-anchor"]="end",_=g/4),P.orientedtextalign&&"left"===P.orientedtextalign&&(e["text-anchor"]="start",_=g+f+80,r-=20),a=r>f?_:g+f/2}e.text=t.text;var R=Q/2;0===l.rotateAxisName&&(P.orientedtextalign&&"right"===P.orientedtextalign&&(e["text-anchor"]="end",R=0),P.orientedtextalign&&"left"===P.orientedtextalign&&(e["text-anchor"]="start",R=Q)),e.x=C?(L||v)+S+Q/2:(L||d)-S-R,e.y=a}else{n=(t=w.getSmartText(y,p,E)).tooltext,C&&b.canvasMarginTop&&(S=Math.max(S,b.canvasMarginTop-b.marginTop-E)),!C&&b.canvasMarginBottom&&(S=Math.max(S,b.canvasMarginBottom-b.marginBottom-E)),e.text=t.text;var V=d+p/2;0===l.rotateAxisName&&(P.orientedtextalign&&"right"===P.orientedtextalign&&(e["text-anchor"]="end",V=d+p),P.orientedtextalign&&"left"===P.orientedtextalign&&(e["text-anchor"]="start",V=d)),e.x=V,e.y=C?(L||g)-S-E/2:(L||m)+S+E/2}e["text-bound"]=""===t.text?[]:[B.backgroundColor,B.borderColor,B.borderColor?B.borderThickness:0,B.borderPadding,B.borderRadius,B.borderDash],e.transform=N.getSuggestiveRotation(x?T:0,e.x,e.y),O&&M&&(e.y=e.y+H.height),I=o.addGraphicalElement("axisName",h.setAnimation({css:D,el:I||"text",attr:e,container:F,component:o,label:"text"})),l.showTooltip?c.enableToolTip(I,n):c.disableToolTip(I)}else I&&o.removeGraphicalElement(I)},n._drawAxisLine=function(){var e,t,n,A,r,a,o,s,c,u,h,d,f,m,b,B,y,C,x=this,w=x.config,F=w.isVertical,S=w.isOpposit,E=x.getFromEnv("chart"),Q=x.getLinkedItem("canvas").getEffectiveDimensions(),k=x.getFromEnv("animationManager"),L=Q.top,U=Q.left,I=L+Q.height,T=U+Q.width,N=w.axisDimention,D=F?N.x:N.y,P=w.drawAxisLineWRTCanvas,M=E.getFromEnv("chart-attrib"),H=w.axisAxisLineContainerBottom,O=x.getGraphicalElement(g),_=[];if(A=1===(0,i.pluckNumber)(M.showyaxisline,M.showyaxisline)?(0,i.pluckNumber)(M.yaxislinethickness,M.pyaxislinethickness,1):0,w.showAxisLine){if(F?(r=S?(D=P?T:D)+w.axisLineThickness/2:(D=P?U:D)-w.axisLineThickness/2,n=(B=p(["M",r,I,"L",r,L],w.axisLineThickness)).path):(r=S?(D=P?L:D)-w.axisLineThickness/2:(D=P?I:D)+w.axisLineThickness/2,n=(B=p(["M",U-A,r,"L",T,r],w.axisLineThickness)).path),s={path:n,stroke:w.axisLineColor,"stroke-linecap":"butt","stroke-width":w.axisLineThickness,"shape-rendering":B.isCrisped?"crisp":i.UNDEF},w.drawTick&&w.tickLength)for(e={stroke:w.tickColor,"stroke-width":w.tickWidth},a=F?S?r+w.tickLength:r-w.tickLength:S?r-w.tickLength:r+w.tickLength,b=0,C=(y=w.tickValues?w.tickValues.tickValue.map(function(e){return F?e.y:e.x}):w.ticks).length;b<C;b+=1)f=(d=y[b])+"_tick",u=x.getGraphicalElement(f),o=x.getPixel(d,v),e.path=p(F?["M",r,o,"L",a,o]:["M",o,r,"L",o,a],w.tickWidth).path,c=k.setAnimation({el:u||"path",attr:e,data:{value:d,path:e.path},container:H,component:x,label:"path"}),u||x.addGraphicalElement(f,c),_.push(f);t=k.setAnimation({el:O||"path",attr:s,container:H,component:x,label:"path"}),O||x.addGraphicalElement(g,t),_.push(g)}for(b=0,C=(m=(0,l["default"])(w.prevTicks,_)).length;b<C;b++)(h=x.getGraphicalElement(m[b]))&&x.removeGraphicalElement(h);w.prevTicks=_},n._parseCategory=function(){var e,t,n,A,r,a,o,l,s,c,u,h,d,g,p,f,m,b,B,y,C,x,w,F,S,E,Q,k,L,U=this,I=U.config,T=I.axisDimention||{},N=U.getFromEnv("chart"),D=N.getFromEnv("smartLabel"),P=U.components,M=P.labels,H=U.getLinkedItem("canvas").getEffectiveDimensions(),O=N.config,_=I.isOpposit,R=I.labels,V=R.style,G=I.isVertical,K=H.top,z=H.left,W=K+H.height,j=z+H.width,X=I.labelPadding,Y=G?T.x:T.y,J=T.opposite,q=N.getFromEnv("dataSource").categories,Z={},$=I.tickValues.tickValue,ee=I.axisRange.min,te=I.drawnStaggerLines,ne=(I.labelStep!==I.labels.step||1!==U.getZoom())&&"stagger"===I.labelDisplay;if(I.labels.isDraw)for(G&&(S=Math.abs(U.getPixel(0,v)-U.getPixel(0+I.axisRange.tickInterval,v)),I.labelMaxH>S&&(C=Math.ceil(I.labelMaxH/S)),C>I.labels.step&&(I.labels.step=C)),ne&&(F=2*Math.abs(U.getPixel(ee,v)-U.getPixel(ee+I.labels.step,v))*I.sWidthAdjstFactor-1),Q=(A=I.labels.rotation)?I.labelMaxH:I.labelMaxW,k=A?I.labelMaxW:I.labelMaxH,I.drawLabelsOpposit&&(_=!_,Y=J),q&&q[0]&&"auto"!==I.xAxisLabelMode&&(Z.fontFamily=q[0].font,Z.fontSize=q[0].fontsize,Z.color=q[0].fontcolor),I.ParentCss=d={fontFamily:(0,i.pluck)(Z.fontFamily,V.fontFamily),fontSize:(0,i.pluck)(Z.fontSize,this.computeFontSize(V.fontSizeWithUnit)+i.PXSTRING),fontWeight:(0,i.pluck)(V.fontWeight),fontStyle:(0,i.pluck)(V.fontStyle)},d.lineHeight=(0,i.setLineHeight)(d),B=U._getCategoryArr(),P.labelIndexArr=[],e=0,y=B.length;e<y;e+=1)t=$[L=B[e].index],m=B[e].value,P.labelIndexArr.push(L),s=(0,i.pluck)(t.font,t.labelfont),c=(0,i.pluck)(this.computeFontSize(t.fontsize),t.labelfontsize),u=(0,i.pluck)(t.fontbold,t.labelfontbold)?(0,i.pluckNumber)(t.fontbold,t.labelfontbold,0)?"bold":i.NORMAL:i.UNDEF,h=(0,i.pluck)(t.fontitalic,t.labelfontitalic)?(0,i.pluckNumber)(t.fontitalic,t.labelfontitalic,0)?"italic":i.NORMAL:i.UNDEF,p=(0,i.convertColor)((0,i.pluck)(t.fontcolor,t.labelfontcolor,Z.color,V.color),(0,i.pluckNumber)(t.labelalpha,I.rawAttr.labelAlpha,N.config.singleseries?i.UNDEF:t.alpha,100)),s||c||u||h?(l={},s&&(l.fontFamily=s),c&&(l.fontSize=c),u&&(l.fontWeight=u),h&&(l.fontStyle=h),l.lineHeight=c?(0,i.setLineHeight)(l):d.lineHeight):l=i.UNDEF,(l||d)&&-1!==(a=(l||d).lineHeight).indexOf("px")&&(r=a.replace(/px/i,""),r=parseFloat(r)),!1===t.appliedSmartLabel&&(D.setStyle(t._ovrStyle||d),E=D.getSmartText(t.oriLabel||t.label,Q,k),t.oriLabel=t.oriLabel||t.label,t.label=E.text,t.labelTooltext=E.labelTooltext,t.appliedSmartLabel=!0),f=U.getPixel(m,v),G?(n=t.label||"",o=Number(t.labelPadding)||0,g={fill:p,"line-height":r,opacity:1,"text-anchor":_?i.POSITION_START:i.POSITION_END,text:n,cursor:!O.singleseries&&t.link||t.labellink||V.labelLink?i.POINTER:"",x:_?(Y||j)+X:(Y||z)-X,y:o?f+o:f}):(n=t.label||"",o=Number(t.labelPadding)||0,g={fill:p,"line-height":r,opacity:1,text:n,cursor:!O.singleseries&&t.link||t.labellink||V.labelLink?i.POINTER:"",x:f,y:_?(Y||K)-X:(Y||W)+X},A?(g["text-anchor"]=_?i.POSITION_START:i.POSITION_END,g["vertical-align"]=i.POSITION_MIDDLE):(g["text-anchor"]=i.POSITION_MIDDLE,g["vertical-align"]=_?i.POSITION_BOTTOM:i.POSITION_TOP),ne?((x=t.labelCount%te)&&((r=t.style.lineHeight)||(r=I.labels.style.lineHeight),w=r.replace(/px/i,"")*x,g.y=_?g.y-w:g.y+w),D.setStyle(t._ovrStyle||d),E=D.getSmartText(t.oriLabel||t.label,F,k),t.oriLabel=t.oriLabel||t.label,g.text=t.label=E.text,t.labelTooltext=E.labelTooltext,t.appliedSmartLabel=!0):o&&(_?g.y-=o:g.y+=o)),b={label:t.label,lineHeight:a,border:(0,i.pluckNumber)(t.borderthickness,t.labelborderthickness)?(0,i.pluckNumber)(t.borderthickness,t.labelborderthickness,1)+"px solid":"",borderColor:t.bordercolor||t.labelbordercolor?(0,i.convertColor)(t.bordercolor||t.labelbordercolor,(0,i.pluckNumber)(t.borderalpha,t.labelborderalpha,t.alpha,t.labelalpha,100)):i.BLANKSTRING,borderThickness:(0,i.pluckNumber)(t.borderthickness,t.labelborderthickness),borderPadding:(0,i.pluckNumber)(t.borderpadding,t.labelborderpadding),borderRadius:(0,i.pluckNumber)(t.borderradius,t.labelborderradius),backgroundColor:t.bgcolor||t.labelbgcolor?(0,i.convertColor)(t.bgcolor||t.labelbgcolor,(0,i.pluckNumber)(t.bgalpha,t.labelbgalpha,t.alpha,t.labelalpha,I.rawAttr.labelAlpha,100)):i.BLANKSTRING,borderDash:(0,i.pluckNumber)(t.borderdashed,t.labelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(t.borderdashlen,t.labelborderdashlen,4),(0,i.pluckNumber)(t.borderdashgap,t.labelborderdashgap,2)):0===(0,i.pluckNumber)(t.borderdashed,t.labelborderdashed)?i.DASH_DEF:V.borderDash},t.label?g["text-bound"]=[(0,i.pluck)(b.backgroundColor,V.backgroundColor),(0,i.pluck)(b.borderColor,V.borderColor),(0,i.pluck)(b.borderThickness,V.borderThickness),(0,i.pluck)(b.borderPadding,V.borderPadding),(0,i.pluck)(b.borderRadius,V.borderRadius),(0,i.pluck)(b.borderDash,V.borderDash)]:g["text-bound"]=[],R.shiftX&&(g.x+=R.shiftX),R.shiftY&&(g.y+=R.shiftY),g.transform=(0,i.getSuggestiveRotation)(A,g.x,g.y),M[L]=M[L]||{config:{props:{label:{}}}},M[L].config.props.label.attr=g,M[L].config.props.label.css=l},n.allocatePosition=function(){var e=this,t=e.config;t.tickValues?t.drawLabels&&e._parseCategory():t.drawLabels&&e._parseLabel()},n._drawCategory=function(){var e,t,n,A,r,a,o,l,c,u,h,g=this,p=g.config,f=g.getFromEnv("chart"),m=f.config,v=p.labels,b=g.getFromEnv("animationManager"),B=v.style,y=this.getFromEnv("toolTipController"),C=p.axisContainer,x=g.config.categoryLabel||(g.config.categoryLabel=[]),w=function(e){return function(t){f.plotEventHandler(this,t,e)}},F=p.tickValues.tickValue,S=[];if(p.labels.isDraw){for(C.css(p.ParentCss),a=g._getCategoryArr(),e=0,l=(r=(0,s["default"])(function(e,t){return e.value===t.value},p.prevCategoryIntervalArr,a)).length;e<l;e++)(u=g.getGraphicalElement(""+r[e].value+d))&&g.removeGraphicalElement(u);for(p.prevCategoryIntervalArr=(0,i.extend2)([],a),e=0,l=a.length;e<l;e+=1)S[e]=""+a[e].value+d;for(e=0,l=a.length;e<l;e+=1)t=F[h=a[e].index],A=(c=g.components.labels[h].config).props.label.attr,o=g.getGraphicalElement(S[e]),n=b.setAnimation({el:o||"text",attr:A,container:C,data:{value:undefined},component:g,label:"text",css:c.props.label.css}),o||(g.addGraphicalElement(S[e],n),n.on("fc-click",w("dataLabelClick")).hover(w("dataLabelRollOver"),w("dataLabelRollOut"))),n.data("eventArgs",{link:!m.singleseries&&t.link||t.labellink||B.labelLink,text:A.text,index:h}),t.labelTooltext||n.abbrArr?y.enableToolTip(n,t.labelTooltext):y.disableToolTip(n),x[h]=n}else for(e=0,l=p.prevCategoryIntervalArr.length;e<l;e++)(u=g.getGraphicalElement(""+p.prevCategoryIntervalArr[e].value+d))&&g.removeGraphicalElement(u)},n._getCategoryArr=function(){var e,t,n,A,r,a,o,l,s,c,u=this,h=u.config,d=h.isVertical,g=0,p=0,f=[];for(e=h.tickValues.tickValue,A=b(e),n=e?e.length-1:0,d&&(s=Math.abs(u.getPixel(0,v)-u.getPixel(1,v)),h.labelMaxH>s&&(g=Math.ceil(h.labelMaxH/s)),g>h.labels.step&&(h.labels.step=g)),l=h.labels.step>0?h.labels.step:1,c=1!==u.getZoom(),a=this.getVisibleConfig(),t=A;t<=n;t+=l)(r=e[t])&&(o=(0,i.pluckNumber)(r.x,r.y,t),0!==(0,i.pluckNumber)(r.showlabel,h.showLabels,1)&&(c&&(o<a.minValue||o>a.maxValue)?r.labelCount=p++:("auto"!==h.xAxisLabelMode&&"mixed"!==h.xAxisLabelMode||0!==h.showZeroPlane&&0!==h.showZeroPlaneValue||0!==o)&&(h.labels.drawNormalVal||h.labels.drawLimitVal&&(t===A||t===n))&&(h.labels.drawNormalVal||t===A||t===n)&&(h.labels.drawLimitVal||t!==A&&t!==n)&&(r.labelCount=p++,f.push({index:t,value:o}))));return f},n.getValue=function(e,t){void 0===t&&(t={wrtVisible:!1});var n=this.getScale(),A=this.getTranslation();return n.getDomainValue(t.wrtVisible?e:e-A)},n.getPixel=function(e,t){void 0===t&&(t={wrtVisible:!1});var n=this.getScale(),A=this.getTranslation(),r=n.getRangeValue(e);return t.wrtVisible?r:r+A},n._getCustomPixel=function(e,t,n){if(void 0===n&&(n={wrtVisible:!1}),!t)return this.getPixel(e,n);var A=this.getScale().copy(),r=A.getRange(),a=r[0],i=r[1],o=Math.min(a,i),l=A.getRangeValue(e),s=this.getTranslation();return A.setRange([o,o+t]),n.wrtVisible?l:l+s},n.getTranslation=function(){return this.config.translation||0},n.setVisibleConfig=function(e,t){var n,A=this,r=A.config,a=A.getZoom(),i=A.getScale();return!(e>=t||e<r.axisRange.min||t>r.axisRange.max)&&(n=i.setDomain([e,t]).getDomain(),r.visibleMin=n[0],r.visibleMax=n[1],r.zoom=A._computeZoom(),r.translation=A._computeTranslation(),1===a&&1===A.getZoom()||(r.ticks=A.generateTicks(),r.minorTicks=A.generateMinorTicks(),r.tickValues&&A.calculateTicksOnLabelMode&&A.calculateTicksOnLabelMode()),A.clearReferenceInfo(),A._parseReferenceVisuals(),A.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),A.asyncDraw(),!0)},n.hide=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.hide(),e.axisContainer.hide(),e.axisNameContainer.hide(),e.axisTrendLabelContainer.hide(),e.axisAxisLineContainer.hide(),e.axisAxisLineContainerBottom.hide())},n.show=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.show(),e.axisContainer.show(),e.axisNameContainer.show(),e.axisTrendLabelContainer.show(),e.axisAxisLineContainer.show(),e.axisAxisLineContainerBottom.show())},n.getZoom=function(){return this.config.zoom||1},n._computeTranslation=function(){var e=this.config,t=this.getVisibleConfig(),n=(0,i.pluckNumber)(t.minValue,e.axisRange.min,0),A=(0,i.pluckNumber)(e.axisRange.min,t.minValue,0);return this.getPixel(n)-this.getPixel(A)},n._computeZoom=function(){var e=this.config,t=this.getVisibleConfig(),n=(0,i.pluckNumber)(t.minValue,e.axisRange.min,0),A=(0,i.pluckNumber)(t.maxValue,e.axisRange.max,1),r=(0,i.pluckNumber)(e.axisRange.min,t.minValue,0),a=(0,i.pluckNumber)(e.axisRange.max,t.maxValue,1),o=e.maxZoomLimit,l=(a-r)/(A-n);return l>o?o:l},n.getTickValues=function(){var e=this.config.tickValues;return e&&e.tickValue||[]},n.dataLabels=function(e){var t=this.config.axisIndex;return this.getFromEnv("number-formatter").dataLabels(e,t)},n.getAxisBase=function(){var e=this.getVisibleConfig(),t=e.minValue,n=e.maxValue;return t<0&&n>0?0:n<=0?n:t},n._parseReferenceVisuals=function(){var e,t,n=this,A=n.config,r=n.getTickValues(),a=r.length,i=n.getFromEnv("chartConfig").is3D;A.isActive||(e=A.lines.isDraw,t=A.band.isDraw,A.lines.isDraw=0,A.band.isDraw=0),A.tickValues?A.drawLabels&&n._parseCategoryLine(r,0,a):A.drawPlotlines&&n._parsePlotLine(),A.tickValues&&"auto"!==A.xAxisLabelMode?(A.drawPlotlines&&!i&&n._parseCategoryPlotLine(),A.drawPlotBands&&!i&&n._parseCategoryPlotBand(),"mixed"===A.xAxisLabelMode&&A.drawPlotBands&&!i&&n._parsePlotBand()):A.drawPlotBands&&!i&&n._parsePlotBand(),A.isActive||(A.lines.isDraw=e,A.band.isDraw=t),A.drawTrendLines&&n._parseTrendLine()},n._parseCategoryPlotBand=function(){var e,t,n,A,r,a=this,o=a.config,l=o.tickValues.tickValue,s=o.showAlternateGridColor,c=o.alternateGridColor,u=o.alternateGridAlpha,h=o._allTicks,d=a.getLimit(),g=d.min,p=d.max,m=f(a.getVisibleConfig());if((!l[0]||l[0].x===i.UNDEF&&l[0].y===i.UNDEF)&&s&&o.band.isDraw&&o.categoryNumDivLines)for(e={fill:(0,i.toRaphaelColor)((0,i.convertColor)(c,u)),"stroke-width":0},t=0,r=0;r<h.length;++t,++r)m(h[r],h[r+1])&&(n=h[r],t%2==0&&(A=h[r+1])!==i.UNDEF&&(n===g&&(n="canvasStart"),A===p&&(A="canvasEnd"),a.setReferenceInfo({from:n,to:A,layer:0,type:"band",attr:e})))},n._parseTrendLine=function(){var e,t,n,A,r,a,o,l,s,c,u,h,d,g,p,f,m,v,b,B,y=this,C=y.config,x=C.isVertical,w=C.axisIndex,F=y.getFromEnv("chart-attrib"),S=y.getFromEnv("number-formatter"),E=C.axisRange,Q=E.max,k=E.min,L=C.trend.trendStyle,U={fontFamily:L.fontFamily,fontSize:L.fontSize,lineHeight:L.lineHeight,fontWeight:L.fontWeight,fontStyle:L.fontStyle},I=C.vTrendLines,T=C.trendLines,N=0;if(o=T||I)for(n=0,A=o.length;n<A;n+=1)for(e=0,t=o[n].line&&o[n].line.length;e<t;e+=1)u=o[n].line[e],m=C.isPercent?"yAxisPercentValue":x?"yAxis":"xAxis",u.startvalue||u.value||0,g=S.getCleanValue((0,i.pluck)(u.startvalue,u.value,0)),p=isNaN(u.endvalue)||""===u.endvalue?i.UNDEF:u.endvalue,r=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(o[n].line[e].tooltext,o[0].tooltext,C.trendlineToolText),!1)),r=(0,i.parseTooltext)(r,[7,15,16,17,18,19],{startValue:g,startDataValue:S[m](g,w),endValue:p||g,endDataValue:S[m](p||g,w),axisName:C.axisName},u),g>Q||g<k||p>Q||p<k||(I?(h=(0,i.parseUnsafeString)(u.displayvalue||""),l=(0,i.pluckNumber)(u.istrendzone,C.isTrendZone,1),p!==i.UNDEF&&""!==p&&p!==g&&l?(s={fill:(0,i.convertColor)((0,i.pluck)(u.color,C.trendlineColor),(0,i.pluck)(u.alpha,C.trendlineAlpha,40)),"stroke-width":0},c={fill:(0,i.convertColor)((0,i.pluck)(u.color,L.color),(0,i.pluck)(u.valuealpha,F.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),"vertical-align":i.POSITION_TOP,text:h}):(f=(0,i.pluckNumber)(u.thickness,C.trendlineThickness,1),s={stroke:(0,i.convertColor)((0,i.pluck)(u.color,C.trendlineColor),(0,i.pluck)(u.alpha,C.trendlineAlpha,99)),"stroke-width":f,"stroke-dasharray":(0,i.pluck)(u.dashed,C.trendlinesAreDashed)===i.ONESTRING?(0,i.getDashStyle)((0,i.pluckNumber)(u.dashlen,C.trendlinesDashLen),(0,i.pluckNumber)(u.dashgap,C.trendlinesDashGap)):i.DASH_DEF},c={fill:(0,i.convertColor)((0,i.pluck)(u.color,L.color),(0,i.pluck)(u.valuealpha,F.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),"vertical-align":i.POSITION_TOP,text:h})):T&&(h=(0,i.pluck)((0,i.parseUnsafeString)(u.displayvalue),u.startvalue,""),d=(0,i.pluckNumber)(u.valueonright,C.isOpposit?1:0),l=(0,i.pluckNumber)(u.istrendzone,C.isTrendZone,0),p!==i.UNDEF&&""!==p&&p!==g&&l?(s={fill:(0,i.convertColor)((0,i.pluck)(u.color,C.trendlineColor),(0,i.pluck)(u.alpha,C.trendlineAlpha,40)),"stroke-width":0},c={"text-anchor":d?i.POSITION_START:i.POSITION_END,fill:(0,i.convertColor)((0,i.pluck)(u.color,L.color),(0,i.pluck)(u.valuealpha,F.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),text:h}):(f=(0,i.pluckNumber)(u.thickness,C.trendlineThickness,1),s={stroke:(0,i.convertColor)((0,i.pluck)(u.color,C.trendlineColor),(0,i.pluck)(u.alpha,C.trendlineAlpha,99)),"stroke-width":f,"stroke-dasharray":(0,i.pluck)(u.dashed,C.trendlinesAreDashed)===i.ONESTRING?(0,i.getDashStyle)((0,i.pluckNumber)(u.dashlen,C.trendlinesDashLen),(0,i.pluckNumber)(u.dashgap,C.trendlinesDashGap)):i.DASH_DEF},c={"text-anchor":d?i.POSITION_START:i.POSITION_END,fill:(0,i.convertColor)((0,i.pluck)(u.color,L.color),(0,i.pluck)(u.valuealpha,F.trendvaluealpha,u.alpha,C.trendlineAlpha,99)),text:h})),c["text-bound"]=c.text?[L.backgroundColor,L.borderColor,L.borderThickness,L.borderPadding,L.borderRadius,L.borderDash]:[],C.showTooltip&&r||(r=i.BLANKSTRING),a=C.forceTrendBelow?0:(0,i.pluckNumber)(u.showontop,F.showtrendlinesontop,0),x?(v=g,B=p!==i.UNDEF?p:g):(v=p!==i.UNDEF?p:g,B=g),b=l&&v!==B?"band":"line",v!==i.UNDEF&&y.setReferenceInfo({from:v,to:B,toolText:r,attr:s,layer:a?3:2,type:b,id:"trend"+N+b}),C.parsedTrendLabels.push({css:U,valueOnRight:d,isTrendZone:l,from:g,to:p,attr:c}),N+=1)},n._parsePlotLine=function(){var e,t,n,A,r,a=this,o=a.config,l=o.axisRange,s=l.max,c=l.min,u=m(a.getVisibleConfig()),h=o.showCanvasBorder,d=(0,i.convertColor)(o.divLineColor,o.divLineAlpha),g=o.divLineThickness,p=o.divLineIsDashed?(0,i.getDashStyle)(o.divLineDashLen,o.divLineDashGap):i.DASH_DEF,f=(0,i.convertColor)(o.zeroPlaneColor,o.zeroPlaneAlpha),v=o.zeroPlaneThickness,b=o._allTicks,B=b.length,y=o.showZeroPlaneOnTop,C=o.minorTicks,x=C&&C.length;if(o.lines.isDraw)for(t=0;t<B;++t)u(e=b[t])&&(A={"stroke-dasharray":p},0===o.showZeroPlane&&0===e||h&&(e===s||e===c)||(0===e&&e!==c&&e!==s?(A.stroke=f,A["stroke-width"]=v,y=o.showZeroPlaneOnTop):(y=0,A.stroke=d,A["stroke-width"]=g),a.setReferenceInfo({type:"line",from:e,layer:0===e&&y?3:1,attr:A})));for(r={stroke:o.minorDivlinecolor,"stroke-width":o.minorDivLineThickness,"stroke-dasharray":p},t=0;t<x;++t)n=C[t],a.setReferenceInfo({type:"line",from:n,layer:1,attr:r})},n._parseCategoryLine=function(e,t,n){var A,r,a,o,l,s,c=this,u=t,h=n,d=c.config,g=c.getFromEnv("color-manager"),p=c.getFromEnv("chartInstance").getJSONData().categories,f={};if(u=u||0,h=h||e?e.length-1:0,d.drawPlotlines)for(s=1!==c.getZoom(),a=this.getVisibleConfig(),p&&p[0]&&(f.verticalLineColor=p[0].verticallinecolor,f.verticalLineAlpha=p[0].verticallinealpha,f.verticalLineThickness=p[0].verticallinethickness,f.verticalLineDashed=p[0].verticallinedashed,f.verticalLineDashLen=p[0].verticallinedashlen,f.verticalLineDashGap=p[0].verticallinedashgap),A=u;A<=h;A+=1)(r=e[A])&&(l=(0,i.pluckNumber)(r.x,r.y,A),1===Number(r.showverticalline)&&(s&&(l<a.minValue||l>a.maxValue)||((o={stroke:(0,i.convertColor)((0,i.pluck)(r.linecolor,f.verticalLineColor,d.divLineColor,g.getColor("divLineColor")),(0,i.pluck)(r.linealpha,f.verticalLineAlpha,g.getColor("divLineAlpha"))),"stroke-width":(0,i.pluckNumber)(r.linethickness,f.verticalLineThickness,1)})["stroke-dasharray"]=(0,i.pluckNumber)(r.linedashed,f.verticalLineDashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(r.linedashLen,f.verticalLineDashLen,4),(0,i.pluckNumber)(r.linedashgap,f.verticalLineDashGap,2),o["stroke-width"]):i.DASH_DEF,c.setReferenceInfo({type:"line",from:l,layer:1,attr:o}))))},n._parsePlotBand=function(){var e,t,n,A,r,a,o=this,l=o.config,s=l.showAlternateGridColor,c=l.alternateGridColor,u=l.alternateGridAlpha,h=l._allTicks,d=f(o.getVisibleConfig()),g=l.isReverse;if(s&&l.band.isDraw)for(t=1,e={fill:(0,i.toRaphaelColor)((0,i.convertColor)(c,u)),"stroke-width":0},A=0,n=h.length;A<n;++A,++t)d(h[A],h[A+1])&&t%2==0&&h[A+1]!==i.UNDEF&&(a=g?Math.max(h[A],h[A+1]):Math.min(h[A],h[A+1]),r=g?Math.min(h[A],h[A+1]):Math.max(h[A],h[A+1]),o.setReferenceInfo({from:a,to:r,type:"band",layer:0,attr:e}))},n.getReferenceInfo=function(){return this.config.referenceInfo},n.setReferenceInfo=function(e){this.config.referenceInfo.push(e)},n.clearReferenceInfo=function(){var e=this.config;e.referenceInfo=[],e.parsedTrendLabels=[],e.parsedVlineInfo=[]},n.resetStoredLimits=function(){this.config.dataLimit={}},n.getAxisDimension=function(){var e=this.config.axisDimention;return{x:e.x,y:e.y,opposite:e.opposite,axisLength:e.axisLength}},t}(a["default"]);B.prototype.setAxisDimention=u.setAxisDimention,B.prototype.shiftLabels=u.shiftLabels,B.prototype._createContainer=u._createContainer;t["default"]=B},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=n(281),o=function(e,t){return e<t?t:e},l=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"axis"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.components={labels:[]};var t=this.config;t.setAdaptiveMin=0,t.adjustDiv=1,t.axisNameWidth=i.UNDEF,t.rotateAxisName=0,t.useEllipsesWhenOverflow=1,t.divLineColor=i.UNDEF,t.divLineAlpha=i.UNDEF,t.divLineThickness=i.UNDEF,t.divLineIsDashed=i.UNDEF,t.divLineDashLen=i.UNDEF,t.divLineDashGap=i.UNDEF,t.showAlternateGridColor=i.UNDEF,t.alternateGridColor=i.UNDEF,t.alternateGridAlpha=i.UNDEF,t.showZeroPlane=1,t.zeroPlaneAlpha=80,t.showZeroPlaneValue=1,t.showZeroPlaneOnTop=1,t.showAxisLine=i.UNDEF,t.axisLineThickness=i.UNDEF,t.axisLineAlpha=i.UNDEF,t.tickLength=0,t.trendlineToolText=i.UNDEF,t.trendlineColor="333333",t.trendlineThickness=1,t.trendlineAlpha=i.UNDEF,t.showTrendlinesOnTop=0,t.trendlinesAreDashed=0,t.trendlinesDashLen=5,t.trendlinesDashGap=2,t.isTrendZone=i.UNDEF,t.showTrendlines=1,t.showTrendlineLabels=1,t.showLabels=1,t.maxLabelHeight=i.UNDEF,t.rotateLabels=i.UNDEF,t.slantLabel=0,t.showAxisValues=1,t.showTooltip=1,t.isActive=!0,t.drawLabels=!0,t.drawOnlyCategoryLine=!1,t.drawLabelsOpposit=!1,t.drawPlotlines=!0,t.drawAxisLine=!0,t.drawPlotBands=!0,t.drawAxisName=!0,t.drawAxisNameOpposit=!1,t.axisNameAlignCanvas=!1,t.drawAxisNameFromBottom=!1,t.drawTrendLines=!0,t.drawTrendLabels=!0,t.drawTick=!0,t.drawTickMinor=!0,t.animateAxis=!0,t.drawAxisLineWRTCanvas=!0,t.isRelativeAxisInverse=!1,t.axisIndex=0,t.uniqueClassName=0,t.viewPortRatio={},t.canvas={},t.axisRange={},t.drawnStaggerLines=i.UNDEF,t.axisDimention={},t.forceZeroTick=!0,t.isZeroTickForced=!1,t.extremeLabels={firstLabel:{},lastLabel:{}},t._setRangeAgain=!1,t._defaultForceDecimal=i.UNDEF,t._defaultDecimalPrecision=i.UNDEF,t.rangeChanged=!1,t.dimensionChanged=!1,t.apparentScrollPos=0,t.visibleMin=i.UNDEF,t.visibleMax=i.UNDEF,t.setPadding=!1,t.trendLimits=i.UNDEF},n.configureAttributes=function(e){var t,n,A,r,a=this,l=a.config,s=a.getFromEnv("chart"),c=a.getFromEnv("dataSource"),u=s.config.is3D,h=c.chart,d=a.getFromEnv("number-formatter");t=l.rawAttr=e,l.referenceInfo=[],l.parsedTrendLabels=[],l.parsedVlineInfo=[],l.trendLines=t.trendlines,l.vTrendLines=t.vtrendlines,(0,i.parseConfiguration)(t,l),l.axisName=(0,i.parseUnsafeString)(t.axisName),l.axisValuePadding=l.axisNamePadding||(0,i.pluckNumber)(t.axisValuePadding,4),l.axisNamePadding=l.axisNamePadding||(0,i.pluckNumber)(t.axisNamePadding,5),l.maxLabelWidthPercent=(0,i.pluckNumber)(t.maxLabelWidthPercent),l.maxLabelWidthPercent=Math.abs(l.maxLabelWidthPercent),l.minLabelWidthPercent=Math.abs((0,i.pluckNumber)(t.minLabelWidthPercent)),l.numDivLines=(0,i.pluckNumber)(t.numDivLines,4),l.numDivLines=o(l.numDivLines,0),l.categoryNumDivLines=(0,i.pluckNumber)(t.numDivLines,0),l.axisValuePadding=o(l.axisValuePadding,0),l.isReverse=(0,i.pluckNumber)(t.isReverse,0),l.isOpposit=(0,i.pluckNumber)(t.isOpposit,0),l.isVertical=(0,i.pluckNumber)(t.isVertical,0),l.categoryDivLinesFromZero=1,l.axisMinValue=d.getCleanValue(t.axisMinValue),l.axisMaxValue=d.getCleanValue(t.axisMaxValue),l.zeroPlaneColor=(0,i.pluck)(t.zeroPlaneColor,t.divLineColor),l.zeroPlaneThickness=(0,i.pluck)(t.zeroPlaneThickness,t.divLineThickness),l.axisLineColor=(0,i.convertColor)(t.axisLineColor,t.axisLineAlpha),l.tickAlpha=(0,i.pluckNumber)(t.tickAlpha,l.axisLineAlpha),l.tickColor=(0,i.convertColor)((0,i.pluck)(t.tickColor,t.axisLineColor),l.tickAlpha),l.tickWidth=(0,i.pluckNumber)(t.tickWidth,l.axisLineThickness),l.maxZoomLimit=(0,i.pluckNumber)(h.maxzoomlimit,s.maxzoomlimit,1e3),l.showVLines=(0,i.pluckNumber)(h.showvlines,1),l.showVLinesOnTop=(0,i.pluckNumber)(h.showvlinesontop,0),l.showVLineLabels=(0,i.pluckNumber)(h.showvlinelabels,this.showVLineLabels,1),l.showVLineLabelBorder=(0,i.pluckNumber)(h.showvlinelabelborder,1),l.rotateVLineLabels=(0,i.pluckNumber)(h.rotatevlinelabels,0),l.vLineColor=(0,i.pluck)(h.vlinecolor,"333333"),l.vLineLabelColor=(0,i.pluck)(h.vlinelabelcolor),l.vLineThickness=(0,i.pluck)(h.vlinethickness,1),l.vLineAlpha=(0,i.pluckNumber)(h.vlinealpha,80),l.vLineLabelBgColor=(0,i.pluck)(h.vlinelabelbgcolor,"ffffff"),l.vLineLabelBgAlpha=(0,i.pluckNumber)(h.vlinelabelbgalpha,u?50:100),l.staggerLines=Math.max((0,i.pluckNumber)(h.staggerlines,2),2),l.staggerLines=o(l.staggerLines,1),l.trendlineValuesOnOpp=(0,i.pluck)(t.trendlineValuesOnOpp,t.trendlineValuesOnOpp,0),l.labelDisplay=(0,i.pluck)(t.labelDisplay,"auto").toLowerCase(),l.labelStep=(0,i.pluckNumber)(t.labelStep,1),l.labelStep=Math.round(l.labelStep),l.labelStep=o(l.labelStep,1),l.startPad=0,l.endPad=0,l._oriLabelStep=l.labelStep,l.showLimits=(0,i.pluckNumber)(t.showLimits,l.showAxisValues),l.showUpperLimit=t.showLimits,l.showDivLineValues=(0,i.pluckNumber)(t.showDivLineValues,l.showAxisValues),l.showCanvasBorder=s.getChildren("canvas")[0].config.showCanvasBorder?1:0,l.axisBreak=t.axisBreaks,l.isBreak=!!l.axisBreak,l.isBreak&&a._processAxisBreak(),n=(n=(0,i.getFirstValue)(t.axisNameBorderColor,i.BLANKSTRING))?(0,i.convertColor)(n,(0,i.pluckNumber)(t.axisNameBorderAlpha,t.axisNameAlpha,100)):i.BLANKSTRING,l.name=l.name||{},l.name.style={fontFamily:(0,i.pluck)(t.axisNameFont,t.outCanfontFamily),fontSize:(0,i.pluck)(t.axisNameFontSize,(0,i.pInt)(t.outCanfontSize))+i.PXSTRING,fontSizeWithUnit:(0,i.pluckFontSizeMaintainUnit)(t.axisNameFontSizeWithUnit,t.outCanfontSizeWithUnit),color:(0,i.convertColor)((0,i.pluck)(t.axisNameFontColor,t.outCancolor),(0,i.pluckNumber)(t.axisNameFontAlpha,t.axisNameAlpha,100)),fontWeight:(0,i.pluckNumber)(t.axisNameFontBold,1)?"bold":i.NORMAL,fontStyle:(0,i.pluckNumber)(t.axisNameFontItalic)?"italic":i.NORMAL,border:n||t.axisNameBgColor?(0,i.pluckNumber)(t.axisNameBorderThickness,1)+"px solid":i.UNDEF,borderColor:n,borderThickness:(0,i.pluckNumber)(t.axisNameBorderThickness,1),borderPadding:(0,i.pluckNumber)(t.axisNameBorderPadding,2),borderRadius:(0,i.pluckNumber)(t.axisNameBorderRadius,0),backgroundColor:t.axisNameBgColor?(0,i.convertColor)(t.axisNameBgColor,(0,i.pluckNumber)(t.axisNameBgAlpha,t.axisNameAlpha,100)):i.BLANKSTRING,borderDash:(0,i.pluckNumber)(t.axisNameBorderDashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(t.axisNameBorderDashLen,4),(0,i.pluckNumber)(t.axisNameBorderDashGap,2)):i.DASH_DEF},l.name.style.lineHeight=(0,i.setLineHeight)(l.name.style),A=(A=(0,i.getFirstValue)(h.trendvaluebordercolor,i.BLANKSTRING))?(0,i.convertColor)(A,(0,i.pluckNumber)(h.trendvalueborderalpha,h.trendvaluealpha,100)):i.BLANKSTRING,l.trend=l.trend||{},l.trend.trendStyle={fontFamily:(0,i.pluck)(h.trendvaluefont,t.outCanfontFamily),color:(0,i.pluck)(h.trendvaluefontcolor,t.trendlineColor,t.outCancolor,"333333"),valueAlpha:h.trendvaluealpha,fontSize:(0,i.pluckFontSize)(this.computeFontSize(h.trendvaluefontsize),(0,i.pInt)(t.outCanfontSize))+i.PXSTRING,fontSizeWithUnit:(0,i.pluckFontSizeMaintainUnit)(h.trendvaluefontsize,t.outCanfontSizeWithUnit),fontWeight:(0,i.pluckNumber)(h.trendvaluefontbold)?"bold":i.NORMAL,fontStyle:(0,i.pluckNumber)(h.trendvaluefontitalic)?"italic":i.NORMAL,border:A||h.trendvaluebgcolor?(0,i.pluckNumber)(h.trendvalueborderthickness,1)+"px solid":"",borderColor:A,borderThickness:(0,i.pluckNumber)(h.trendvalueborderthickness,1),borderPadding:(0,i.pluckNumber)(h.trendvalueborderpadding,2),borderRadius:(0,i.pluckNumber)(h.trendvalueborderradius,0),backgroundColor:h.trendvaluebgcolor?(0,i.convertColor)(h.trendvaluebgcolor,(0,i.pluckNumber)(h.trendvaluebgalpha,h.trendvaluealpha,100)):i.BLANKSTRING,borderDash:(0,i.pluckNumber)(h.trendvalueborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(h.trendvalueborderdashlen,4),(0,i.pluckNumber)(h.trendvalueborderdashgap,2)):i.DASH_DEF},l.trend.trendStyle.lineHeight=(0,i.setLineHeight)(l.trend.trendStyle),l.labels=l.labels||{},l.lines=l.lines||{},l.band=l.band||{},r=(r=(0,i.getFirstValue)(t.labelBdrColor,i.BLANKSTRING))?(0,i.convertColor)(r,(0,i.pluckNumber)(t.labelBdrAlpha,t.labelAlpha,100)):i.BLANKSTRING,l.labels.style={fontFamily:(0,i.pluck)(t.labelFont,t.outCanfontFamily),fontSize:(0,i.pluckNumber)(t.labelFontSize,(0,i.pInt)(t.outCanfontSize))+i.PXSTRING,fontSizeWithUnit:(0,i.pluckFontSizeMaintainUnit)(t.labelFontSizeWithUnit,t.outCanfontSizeWithUnit),fontWeight:(0,i.pluckNumber)(t.labelFontBold)?"bold":i.NORMAL,fontStyle:(0,i.pluckNumber)(t.labelFontItalic)?"italic":i.NORMAL,color:(0,i.convertColor)((0,i.pluck)(t.labelFontColor,t.outCancolor),(0,i.pluckNumber)(t.labelAlpha,100)),labelLink:t.labelLink,border:r||t.labelBgColor?(0,i.pluckNumber)(t.labelBdrThickness,1)+"px solid":"",borderColor:r,borderThickness:(0,i.pluckNumber)(t.labelBdrThickness,1),borderPadding:(0,i.pluckNumber)(t.labelBdrPadding,2),borderRadius:(0,i.pluckNumber)(t.labelBdrRadius,0),backgroundColor:t.labelBgColor?(0,i.convertColor)(t.labelBgColor,(0,i.pluckNumber)(t.labelBgAlpha,t.labelAlpha,100)):i.BLANKSTRING,borderDash:(0,i.pluckNumber)(t.labelBdrDashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(t.labelBdrDashLen,4),(0,i.pluckNumber)(t.labelBdrDashGap,2)):i.DASH_DEF},l.labels.style.lineHeight=(0,i.setLineHeight)(l.labels.style),l.numberFormatterFn=(0,i.pluck)(t.numberFormatterFn),l.apparentScrollPos=t.apparentScrollPos||l.apparentScrollPos,l.axisRange={},l.dataLimit={},l.axisEndLabelDisplaySpace={left:0,right:0,top:0,bottom:0},l.isConfigured=!0,l._defaultForceDecimal=i.UNDEF,l._defaultDecimalPrecision=i.UNDEF,l.lines.isDraw=(0,i.pluckNumber)(t.lines&&t.lines.isDraw,1),l.band.isDraw=(0,i.pluckNumber)(t.band&&t.band.isDraw,1)},n.createContainer=function(e,t,n){var A=this.getFromEnv("animationManager");return this.addContainer(e,A.setAnimation({container:n,attr:t,el:this.getContainer(e)||"group",component:this,label:"group"}))},n.createGroup=function(e,t,n,A){return void 0===A&&(A="group"),this.getFromEnv("animationManager").setAnimation({container:n,attr:t,el:this.config[e]||"group",component:this,label:A})},n.getValuePadding=function(){var e=this.config;return{left:e.startPad,right:e.endPad}},n.draw=function(){var e,t,n,A,r=this,a=r.config,i=r.getFromEnv("chart").config,o=a.isVertical,l=i.viewPortConfig,s=r.getChildren().limitUpdater,c=a.viewPortRatio||{};r._createContainer(),n=l.y*l.scaleY,A=l.x*l.scaleX,c.scaleX&&c.scaleY&&(c.scaleX!==l.scaleX||c.scaleY!==l.scaleY)?(c.scaleX=l.scaleX,c.scaleY=l.scaleY,r._drawComponents()):(o?(t=n-l.y*l.scaleY,a.axisContainer.transform("t0,"+t),a.axisLabelContainerTop.transform("t0,"+t)):(e=A-l.x*l.scaleX,a.axisContainer.transform("t"+e+",0"),a.axisLabelContainerTop.transform("t"+e+",0")),r._drawComponents()),r.addExtEventListener("animationcomplete",function(){s&&s.forEach(function(e){e.draw()})},r.getFromEnv("animationmanager")),r.addToEnv("prevScale",r.getScale().copy())},n.setScale=function(e){this.config.scale=e},n.getScale=function(){return this.config.scale},n.getLimit=function(){var e=this.config.axisRange;return{min:e.min,max:e.max,tickInterval:e.tickInterval}},n.getVisibleConfig=function(){var e=this.config;return{minValue:e.visibleMin,maxValue:e.visibleMax}},n.setAxisConfig=function(e){var t,n=this.config;for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t])},n.getAxisConfig=function(e){var t=this.config;return e?t[e]:t},n.getVisibleLength=function(){var e=this.getVisibleConfig();return Math.abs(e.maxValue-e.minValue)},n.getAxisEndLabelDisplaySpace=function(){return this.config.axisEndLabelDisplaySpace||{}},n.getTicksLen=function(){var e=this.config.tickValues;return e&&e.tickValue.length||0},t}(a.ComponentInterface);t["default"]=l},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=t.axisAnimationFinal=t.axisAnimationAxis=t.appearingFinal=t.appearingAxis=void 0;var n=t.appearingAxis=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}],A=t.appearingFinal=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],r=t.axisAnimationFinal={"text.appearing":A,"path.appearing":A,"rect.appearing":A},a=t.axisAnimationAxis={"text.appearing":n,"path.appearing":n,"rect.appearing":n,"scrollbar.appearing":n};t["default"]={"initial.axis.numeric":a,"initial.axis.category":a,"initial.axis.log":a,"update.axis.numeric":r,"update.axis.category":r,"update.axis.log":r}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){return e.filter(function(e){return t.indexOf(e)<0})}},(e,t,n)=>{var A=n(600),r=n(405)(function(e,t,n){for(var r=[],a=0,i=t.length;a<i;)A(e,t[a],n)||A(e,t[a],r)||r.push(t[a]),a+=1;return r});e.exports=r},e=>{e.exports=function(e,t,n){for(var A=0,r=n.length;A<r;){if(e(t,n[A]))return!0;A+=1}return!1}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.shiftLabels=t.setTickValues=t.setDataLimit=t.setAxisPadding=t.setAxisDimention=t.getTrendLineLimits=t.getPixel=t.getLabel=t.extractStyleInfo=t._parseLabel=t._drawLabel=t._createContainer=void 0;var r=A(n(602)),a=A(n(567)),i=n(281),o={wrtVisible:!0},l="normal",s=t.extractStyleInfo=function(e,t){var n,A,r,a,o,s,c,u={labelfont:["fontFamily"],labelfontcolor:["fontColor"],labelfontsize:["fontSize",function(e){return e?(0,i.pluckNumber)(e)+"px":i.UNDEF}],labelfontbold:["fontWeight",function(e){return e?"bold":l}],labelfontitalic:["fontStyle",function(e){return e?"italic":l}],labelfontalpha:["fontAlpha"]},h=t.getFromEnv("dataSource").categories,d=h&&h[0]||{},g=function(e){return e},p=!1,f={};for(n in d)"category"===n||n in e||(A=d[n],e[n]=A);for(n in u)o=(a=u[n])[0],s=a[1]||g,A=e[n],r=e[o.toLowerCase()],A===i.UNDEF&&r===i.UNDEF||(c=s(A))===i.UNDEF&&(c=s(r))===i.UNDEF||(f[o]=c,p=!0),p&&(e.style=f)};t.setAxisDimention=function(e){var t=this,n=t.getScale(),A=t.config,r=t.getFromEnv("chart").config,a=A.axisDimention||(A.axisDimention={}),o=A.isReverse;a.opposite=(0,i.pluckNumber)(e.opposite,a.opposite),a.x=(0,i.pluckNumber)(e.x,a.x,r.canvasLeft),a.y=(0,i.pluckNumber)(e.y,a.y,r.canvasTop),a.axisLength=(0,i.pluckNumber)(e.axisLength,a.axisLength),A.isVertical?o?n.setRange([a.y+a.axisLength,a.y]):n.setRange([a.y,a.y+a.axisLength]):o?n.setRange([a.x+a.axisLength,a.x]):n.setRange([a.x,a.x+a.axisLength]),A.translation=t._computeTranslation()},t.setDataLimit=function(e,t){var n,A,r,o,l=this,s=e,c=t,u=l.config,h=l.getFromEnv("dataSource").categories,d=h&&h[0]&&h[0].category,g=u.startPad||0,p=u.endPad||0,f=u.xAxisLabelMode;if("categories"===f||"mixed"===f){var m=(0,a["default"])(d,function(e){return Number(e.x)});n=m[0],A=m[1]}var v=l.getTrendLineLimits();r=v[0],o=v[1];var b=(0,a["default"])([r,o,n,A,c,s],function(e){return Number(e)});c=b[0],s=b[1],u.originalMax=s,u.originalMin=c,s=u.isPercent?100:s+p,c=u.isPercent?0:c-g,l._setAxisRange({min:c,max:s}),u.axisRange.tickInterval!==i.UNDEF&&l._adjustNumberFormatter(u.axisRange.tickInterval)},t.getTrendLineLimits=function(){var e,t,n,A,r=this.config,o=r.trendLines||r.vTrendLines||r.trendPoints,l=o&&o[0]&&o[0].line||o&&o.point;if(r.trendLimits)return r.trendLimits;var s=(0,a["default"])(l,function(e){return""===e.startvalue?i.UNDEF:Number(e.startvalue)});e=s[0],t=s[1];var c=(0,a["default"])(l,function(e){return""===e.endvalue?i.UNDEF:Number(e.endvalue)});return n=c[0],A=c[1],r.trendLimits=(0,a["default"])([e,t,n,A],function(e){return Number(e)}),r.trendLimits},t.getPixel=function(e){return this.getScale().getRangeValue(e)},t._drawLabel=function(){var e,t,n,A,a,i,o,l,s,c,u,h=this,d=h.config,g=h.getFromEnv("animationManager"),p=this.getFromEnv("toolTipController"),f=d.axisRange,m=d.labels.style,v=h.components,b=f.max,B=f.min,y=d.axisContainer,C=d.extremeLabels,x=d.ticks,w=[],F={fontFamily:m.fontFamily,fontSize:m.fontSize,fontWeight:m.fontWeight,fontStyle:m.fontStyle,lineHeight:m.lineHeight};if(d.labels.isDraw)for(u=v.labels,c=v.labelIndexArr,y.css(F),t=0,n=c&&c.length;t<n;t+=1)a=(l=x[e=c[t]])+"_label",A=h.getGraphicalElement(a),o=u[e].config.props.label.attr,A=h.addGraphicalElement(a,g.setAnimation({el:A||"text",attr:o,container:y,data:{value:l},component:h,label:"text"})),o.tooltext||A.abbrArr?p.enableToolTip(A,o.tooltext):p.disableToolTip(A),l===b?C.lastLabel.graphic=A:l===B&&(C.firstLabel.graphic=A),w.push(a);for(e=0,n=(s=(0,r["default"])(d.prevIntervalArr,w)).length;e<n;e++)(i=h.getGraphicalElement(s[e]))&&h.removeGraphicalElement(i);d.prevIntervalArr=w},t._parseLabel=function(){var e,t,n,A,r,a,l,s,c,u,h,d,g,p,f,m,v=this,b=v.config,B=v.getLinkedItem("canvas").getEffectiveDimensions(),y=b.axisDimention,C=v.getFromEnv("chart"),x=C.config,w=b.axisRange,F=b.isOpposit,S=b.labels,E=v.components,Q=E.labels,k=S.style,L=C.getFromEnv("smartLabel"),U=b.isVertical,I=w.max,T=w.min,N=v.getFromEnv("number-formatter"),D=B.top,P=B.left,M=D+B.height,H=P+B.width,O=b.labelPadding,_=b.extremeLabels,R=U?y.x:y.y,V=y.opposite,G=b.labelMaxH,K=b.labelMaxW,z=w.tickInterval,W=Math.abs(v.getPixel(T,o)-v.getPixel(T+z,o)),j=[],X=b.ticks,Y=0,J=b.isReverse,q=(0,i.pluckNumber)(v.getFromEnv("chart-attrib").showzeroplanevalue),Z=!0,$=v.getLimit();if(k.fontSize=this.computeFontSize(k.fontSizeWithUnit),k.lineHeight=(0,i.setLineHeight)(k),L.useEllipsesOnOverflow(x.useEllipsesWhenOverflow),L.setStyle({fontSize:k.fontSize,fontFamily:k.fontFamily,lineHeight:k.lineHeight,fontWeight:k.fontWeight}),(A=k.lineHeight)&&-1!==A.indexOf("px")&&(A=parseFloat(A.replace("px",""))),0===q&&(Z=!1),b.labels.isDraw){var ee;if(b.drawLabelsOpposit&&(F=!F,R=V),c={fill:k.color,"line-height":A,"font-size":k.fontSize,opacity:1,cursor:k.labelLink?"pointer":""},n=b.labels.rotation,U?(b.labelMaxH>W&&!b.tickValues&&(l=Math.ceil(b.labelMaxH/W)),c["text-anchor"]=F?i.POSITION_START:i.POSITION_END):(b.labelMaxW>W&&!b.tickValues&&(l=Math.ceil(b.labelMaxW/W)),n?(c["text-anchor"]=F?i.POSITION_START:i.POSITION_END,c["vertical-align"]="middle"):c["vertical-align"]=F?i.POSITION_BOTTOM:i.POSITION_TOP,h=P,d=x.width-H),l>b.labels.step&&(b.labels.step=l),s=b.numberFormatterFn?N[b.numberFormatterFn]:b.isPercent?N.yAxisPercentValue:U?N.yAxis:N.xAxis,_.firstLabel={},_.lastLabel={},m=X.filter(function(e,t,n){return 0!==e||b.showZeroPlaneValue?!(!U&&(b.isReverse?0!==t:t!==n.length-1)&&v.getPixel(e,o)+b.labelMaxW>H)&&!(t%b.labels.step!==0&&(!b.labels.drawLimitVal||0!==t&&t!==n.length-1)||(j[Y++]=t,0)):!(!Z||Z&&$.max!==e&&$.min!==e)&&(j[Y++]=t,!0)}),b.isZeroTickForced&&-1!==m.indexOf(0))Y=0,j=[],f=v.getPixel(0),m=m.filter(function(e,t,n){return ee=v.getPixel(e),0===n[t+1]||0===n[t-1]?U?!(ee+G>=f&&f>=ee-G)&&(j[Y++]=t,!0):!(ee+K>=f&&f>=ee-K)&&(j[Y++]=t,!0):(j[Y++]=t,!0)});for(r=(U?K:W/2)*b.labels.step,a=U?W/2:G,E.labelIndexArr=j.slice(),e=0,t=m.length;e<t;e+=1)g=m[e],Q[j[e]]=Q[j[e]]||{config:{props:{label:{}}}},u=Object.assign({},c),p=i.UNDEF,(b.labels.drawNormalVal||g===T||g===I)&&(b.labels.drawLimitVal||g!==T&&g!==I)?g===T&&b.lowerLimitDisplay&&b.labels.drawLimitVal?(p=L.getSmartText(b.lowerLimitDisplay,r,a+A/2),u.text=p.text,u.tooltext=p.tooltext):g===I&&b.upperLimitDisplay&&b.labels.drawLimitVal?(p=L.getSmartText(b.upperLimitDisplay,r,a+A/2),u.text=p.text,u.tooltext=p.tooltext):(u.text=i.BLANKSTRING+s.call(N,g,b.axisIndex),p=L.getOriSize(u.text)):u.text=i.BLANKSTRING,U?(u.x=F?(R||H)+O:(R||P)-O,u.y=v.getPixel(g,o),(J&&g===T&&b.lowerLimitDisplay||!J&&g===I&&b.upperLimitDisplay)&&p&&p.height>A&&(u["vertical-align"]=i.POSITION_BOTTOM),(J&&g===I&&b.upperLimitDisplay||!J&&g===T&&b.lowerLimitDisplay)&&p&&p.height>A&&(u["vertical-align"]=i.POSITION_TOP),b.placeValuesInside&&(u["text-anchor"]=F?i.POSITION_END:i.POSITION_START)):(u.x=v.getPixel(g,o),u.y=F?(R||D)-O:(R||M)+O,(!J&&g===T||J&&g===I)&&p&&p.width>2*h&&(u["text-anchor"]=i.POSITION_START),(!J&&g===I||J&&g===T)&&p&&p.width>2*d&&(u["text-anchor"]=i.POSITION_END),b.placeValuesInside?u["vertical-align"]=F?i.POSITION_TOP:i.POSITION_BOTTOM:u["vertical-align"]=F?i.POSITION_BOTTOM:i.POSITION_TOP),u["text-bound"]=void 0===g?[]:[(0,i.pluck)(k.backgroundColor,i.BLANKSTRING),(0,i.pluck)(k.borderColor,i.BLANKSTRING),(0,i.pluck)(k.borderThickness,i.BLANKSTRING),(0,i.pluck)(k.borderPadding,0),(0,i.pluck)(k.borderRadius,0),(0,i.pluck)(k.borderDash,"none")],S.shiftX&&(u.x+=S.shiftX),S.shiftY&&(u.y+=S.shiftY),u.transform=(0,i.getSuggestiveRotation)(n,u.x,u.y),Q[j[e]].config.props.label.attr=u}},t.setTickValues=function(e){var t,n,A,r=e&&e.length,a=this.config,o=a.startPad||0,l=this.getFromEnv("chart"),c=0,u=a.tickValues={},h=u.tickValue=[],d=u.vline=[],g=u.tickIdMap={},p=a.endPad||0;for(a.hasCategory=1,t=0;t<r;t+=1)(A=(n=(0,i.extend2)({},e[t])).id||""===n.id)&&(g[n.id.toLowerCase()]={tickObj:n,index:c}),(a.mapTickValuesById&&A||!a.mapTickValuesById)&&!n.vline&&(s(n,l),h.push(n),h[c].label=(0,i.parseUnsafeString)(h[c].label),c+=1),n.vline&&(n.startIndex=h.length-1,d.push(n));a.oriCatLen=c,this._setAxisRange({max:Number((0,i.toPrecision)(c-1+p,10)),min:Number((0,i.toPrecision)(0-o,10)),tickInterval:Number((0,i.toPrecision)(1,10))})},t.shiftLabels=function(e,t){var n=this.config.labels;n.shiftX=e,n.shiftY=t},t._createContainer=function(){var e,t,n,A,r,a=this,i=a.config,o=i.isVertical,l=a.getLinkedParent().getChildContainer(),s=l.axisBottomGroup,c=l.axisTopGroup,u=-a.getTranslation(),h=o?"T0,"+u:"T"+u+",0";t=a.createContainer("axisNameGroup",{name:"dataset-Name-group"},s),e=a.createContainer("axisLineGroup",{name:"axis-Line-group"},c),n=a.createContainer("axisTrendGroupTop",{name:"dataset-Trend-group-top"},c),A=a.createContainer("axisLabelGroup",{name:"dataset-Label-group"},s),r=a.createContainer("axisLabelGroupTop",{name:"dataset-Label-group"},c),i.axisContainer=a.createGroup("axisContainer",{name:"dataset-axis",transform:h},A),i.axisLabelContainerTop=a.createGroup("axisLabelContainerTop",{name:"dataset-top-label",transform:h},r),i.axisAxisLineContainer=a.createGroup("axisAxisLineContainer",{name:"axis-line-tick"},e),i.axisTrendLabelContainer=a.createGroup("axisTrendLabelContainer",{name:"dataset-axis-trend-label"},n),i.axisNameContainer=a.createGroup("axisNameContainer",{name:"dataset-axis-name"},t),i.axisAxisLineContainerBottom=a.createGroup("axisAxisLineContainerBottom",{name:"axis-line-tick-bottom"},s)},t.setAxisPadding=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n,A=this,r=A.config,a=e,i=t,o=A.getScale().getDomain(),l=o[0],s=o[1];1===r.oriCatLen&&(0===a&&(a=.5),0===i&&(i=.5)),n=a-r.startPad,r.startPad=Math.max(r.startPad,a),r.endPad=Math.max(r.endPad,i),n>0&&(r.setPadding=!0,A._setAxisRange({min:l-n,max:s+n})),r.tickValues||r.originalMax&&r.originalMin&&A.setDataLimit(r.originalMax,r.originalMin)},t.getLabel=function(e){var t=this.config,n=t.tickValues&&t.tickValues.tickValue[e],A={};return n&&n.tooltext&&(A.label=n.label,n.tooltext=(0,i.parseTooltext)(n.tooltext,[3],A)),{label:n&&(n.oriLabel||n.label),tooltext:n&&n.tooltext}}},(e,t,n)=>{var A=n(340),r=n(603),a=A(function(e,t){for(var n=[],A=0,a=e.length,i=t.length,o=new r,l=0;l<i;l+=1)o.add(t[l]);for(;A<a;)o.add(e[A])&&(n[n.length]=e[A]),A+=1;return n});e.exports=a},(e,t,n)=>{var A=n(604),r=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!a(e,!0,this)},e.prototype.has=function(e){return a(e,!1,this)},e}();function a(e,t,n){var r,a=typeof e;switch(a){case"string":case"number":return 0===e&&1/e===-Infinity?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):a in n._items?e in n._items[a]||(t&&(n._items[a][e]=!0),!1):(t&&(n._items[a]={},n._items[a][e]=!0),!1);case"boolean":if(a in n._items){var i=e?1:0;return!!n._items[a][i]||(t&&(n._items[a][i]=!0),!1)}return t&&(n._items[a]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):a in n._items?!!A(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1);case"undefined":return!!n._items[a]||(t&&(n._items[a]=!0),!1);case"object":if(null===e)return!!n._items["null"]||(t&&(n._items["null"]=!0),!1);default:return(a=Object.prototype.toString.call(e))in n._items?!!A(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1)}}e.exports=r},(e,t,n)=>{var A=n(605);e.exports=function(e,t){return A(t,e,0)>=0}},(e,t,n)=>{var A=n(606);e.exports=function(e,t,n){var r,a;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(a=e[n])&&1/a===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(a=e[n])&&a!=a)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(A(e[n],t))return n;n+=1}return-1}},(e,t,n)=>{var A=n(340),r=n(607),a=A(function(e,t){return r(e,t,[],[])});e.exports=a},(e,t,n)=>{var A=n(608),r=n(600),a=n(609),i=n(408),o=n(610),l=n(611),s=n(613);function c(e,t,n,a){var i=A(e),o=A(t);function l(e,t){return u(e,t,n.slice(),a.slice())}return!r(function(e,t){return!r(l,t,e)},o,i)}function u(e,t,n,A){if(o(e,t))return!0;var r=s(e);if(r!==s(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===a(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!o(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!o(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=n.length-1;h>=0;){if(n[h]===e)return A[h]===t;h-=1}switch(r){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),n.concat([e]),A.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),n.concat([e]),A.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=l(e);if(d.length!==l(t).length)return!1;var g=n.concat([e]),p=A.concat([t]);for(h=d.length-1;h>=0;){var f=d[h];if(!i(f,t)||!u(t[f],e[f],g,p))return!1;h-=1}return!0}e.exports=u},e=>{e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},e=>{e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},e=>{e.exports="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},(e,t,n)=>{var A=n(341),r=n(408),a=n(612),i=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),s=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},c="function"!=typeof Object.keys||l?A(function(e){if(Object(e)!==e)return[];var t,n,A=[],c=l&&a(e);for(t in e)!r(t,e)||c&&"length"===t||(A[A.length]=t);if(i)for(n=o.length-1;n>=0;)r(t=o[n],e)&&!s(A,t)&&(A[A.length]=t),n-=1;return A}):A(function(e){return Object(e)!==e?[]:Object.keys(e)});e.exports=c},(e,t,n)=>{var A=n(408),r=Object.prototype.toString,a=function(){return"[object Arguments]"===r.call(arguments)?function(e){return"[object Arguments]"===r.call(e)}:function(e){return A("callee",e)}}();e.exports=a},(e,t,n)=>{var A=n(341)(function(e){return null===e?"Null":e===undefined?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});e.exports=A},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(594)),i=A(n(592)),o=A(n(615)),l=n(281),s=n(601),c=l.preDefStr.POSITION_START,u=l.preDefStr.POSITION_MIDDLE,h=l.preDefStr.POSITION_TOP,d=l.preDefStr.POSITION_BOTTOM,g=l.preDefStr.POSITION_END,p={wrtVisible:!0},f=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new o["default"],t}(0,r["default"])(t,e);var n=t.prototype;return n.getName=function(){return"category"},n.getCategoryFromId=function(e){var t=this.config.tickValues;return(t&&t.tickIdMap)[e]||{}},n.generateTicks=function(){var e=this.getScale(),t=this.config,n=e.getDomain(),A=t.categoryNumDivLines+1,r=(n[1]-n[0])/A,a=t.axisRange,o=a.min,l=a.max,s=(l-o)/A;return t._allTicks=(0,i["default"])(o,l,s).concat(l),a.tickInterval=s,(0,i["default"])(n[0],n[1],r).concat(n[1])},n._parseCategoryVline=function(){var e,t,n,A,r,a,i,o,s,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P=this,M=P.config,H=M.axisRange,O=H.min,_=H.max,R=P.getFromEnv("chart").config,V=R.style||{},G=M.isVertical,K={fontFamily:R.style.inCanfontFamily,fontSize:R.style.inCanfontSize,color:R.style.inCancolor,lineHeight:R.style.inCanLineHeight};for(n=(t=M.tickValues.vline).length,I=1!==P.getZoom(),T=P.getVisibleConfig(),a=0;a<n;a++)A=t[a],r=(0,l.parseUnsafeString)(A.label),i=Boolean((0,l.pluckNumber)(A.showlabelborder,M.showVLineLabelBorder,1)),e=Boolean((0,l.pluckNumber)(A.showlabelbackground,1)),"center"===(o=(0,l.pluck)(A.labelhalign,G?c:u))?o=u:"left"===o?o=c:"right"===o&&(o=g),(s=(0,l.pluck)(A.labelvalign,G?u:d).toLowerCase())===u?s=u:s===h?s=d:s===d&&(s=h),p=(0,l.pluckNumber)(A.labelposition,0),f=(0,l.pluckNumber)(A.lineposition,.5),m=(0,l.pluckNumber)(A.showvlines,M.showVLines,1),v=(0,l.pluckNumber)(A.alpha,M.vLineAlpha,80),b=(0,l.pluck)(A.color,M.vLineColor).replace(/^#?/,"#"),B=e?(0,l.pluck)(A.labelbgcolor,M.vLineLabelBgColor,"333333").replace(/^#?/,"#"):l.BLANKSTRING,k=(0,l.pluck)(A.labelcolor,M.vLineLabelColor,A.color,V.inCancolor,M.vLineColor).replace(/^#?/,"#"),y=(0,l.pluckNumber)(A.thickness,M.vLineThickness,1),C=Boolean(Number((0,l.pluck)(A.dashed,0))),x=(0,l.pluckNumber)(A.dashlen,5),F=(0,l.pluckNumber)(A.dashgap,2),w=K.fontSize,w=parseInt(w.replace(/px/i,""),10),L=(0,l.pluckNumber)(A.rotatelabel,M.rotateVLineLabels)?270:0,f=f<0||f>1?.5:f,p=p<0||p>1?0:p,b=(0,l.convertColor)(b,m?v:"0"),D=A.animate&&!G?A.startIndex+1:A.startIndex,U=P._getVlinePos(D,f)-(A.animate?A.leftShift:0),I&&(U<T.minValue||U>T.maxValue)||U<O||U>_||(S={opacity:1,stroke:b,"stroke-width":y,"stroke-dasharray":C?(0,l.getDashStyle)(x,F):"none"},Q={opacity:1,text:r,"text-anchor":o,"vertical-align":s,"text-bound":[]},E={fontSize:K.fontSize,fontFamily:K.fontFamily,lineHeight:K.lineHeight},N={from:U,layer:(0,l.pluckNumber)(A.showontop,M.showVLinesOnTop,0)?3:2,attr:S,type:"line",startIndex:A.startIndex,linePosition:f},r&&(Q["text-bound"]=[B,m&&i?b:l.BLANKSTRING,m&&i?1:0,2,l.UNDEF,m&&i?"solid":l.BLANKSTRING],Q.fill=m?k:b,N.text={label:r,attr:Q,layer:4,labelRotation:L,labelPosition:p,css:E}),P.setReferenceInfo(N),P.config.parsedVlineInfo.push(N))},n._parseReferenceVisuals=function(){e.prototype._parseReferenceVisuals.call(this),this.config.drawPlotlines&&this._parseCategoryVline()},n.categoryInsert=function(e,t,n){var A,r,a,i,o,s=e,c=this.config,u=c.axisRange.min,h=t.length,d=c.endPad||0;for(A=c.tickValues.tickValue,a=c.tickValues.tickIdMap,r=c.tickValues.vline,i=0;i<h;i+=1)"true"!==(o=(0,l.extend2)({},t[i])).vline&&!0!==o.vline&&1!==o.vline&&"1"!==o.vline?(o.id&&(a[o.id]={tickObj:o,i:s}),A.splice(s,0,o),s+=1):(o.startIndex=s-2,r.push(o));n&&this._setAxisRange({min:u,max:Number((0,l.toPrecision)(A.length-1+d,10))})},n.categoryDelete=function(e,t,n){var A,r,a,i=this,o=i.config,l=o.axisRange,s=l.min;for(r=0,a=(A=o.tickValues.vline).length;r<a;r++)A[r].animate=!0,A[r].leftShift=t;o.tickValues.tickValue.splice(e,t),i._shiftVline(e,t,"left"),n&&i._setAxisRange({min:s,max:l.max-t})},n._shiftVline=function(e,t,n){var A,r,a=this.config,i=a.tickValues.vline,o=a.tickValues.tickValue.length,l=i.length;for(A=0;A<l;A+=1)(r=i[A]).startIndex>=e&&("right"===n?r.startIndex+=t:r.startIndex-=t,(r.startIndex<0||r.startIndex>=o)&&(i.splice(A,1),l-=1,A-=1))},n.categoryTranslate=function(e){var t,n=this,A=e,r=n.config;A=(A||0)*(n.getPixel(1,p)-n.getPixel(0,p)),r.isReverse&&(A=-A),t=["T",A,",","0"].join(""),n.realTimeTranslatableGroups=[{group:r.axisContainer,translationStr:t},{group:r.axisTrendLabelContainer,translationStr:t}]},n.updateTicksValues=function(e,t){var n,A,r,a,i,o,l,s=this,c=s.config,u=c.parsedVlineInfo;if((n=c.tickValues.tickValue)[e])for(l in t)t.hasOwnProperty(l)&&("x"===l&&(A=!0),n[e][l]=t[l]);if(A)for(a=0,i=u.length;a<i;++a)if((o=(r=u[a]).startIndex)===e)r.from=s._getVlinePos(o,r.linePosition);else if(o+1===e){r.from=s._getVlinePos(o,r.linePosition);break}},n._getVlinePos=function(e,t){var n,A,r,a=this.getTickValues(),i=this.config,o=this.getLimit(),s=o.min,c=o.max,u=a[e],h=a[e+1];return u?h||(n=a[0]&&a[0].x?c:i.oriCatLen-1,r=!0):(n=a[0]&&a[0].x?s:-1,r=!0),A=r?t:((n=(0,l.pluckNumber)(u.x,u.y,e))-(0,l.pluckNumber)(h.x,h.y,e+1))*t,n+Math.abs(A)},n.getInterval=function(){if(this)return 1},n._setAxisRange=function(e){var t,n,A=e.min,r=e.max,a=this.config,o=a.axisRange,s=a.periodLength,c=a.dataLimit,u=c.max,h=c.min;A>r||(u===r&&h===A||(t=!0),a.visibleMin===l.UNDEF||a.setPadding||t?(c.max=r,c.min=A,s&&(a.categoryNumDivLines=(r-A)/s-1),n=(r-A)/(a.categoryNumDivLines+1),this.getScale().setDomain([A,r]),a.ticks=(0,i["default"])(A,r,n).concat(r),a._allTicks=a.ticks.slice(),o.min=A,o.max=r,o.tickInterval=n,this.setVisibleConfig(o.min,o.max)):a.setPadding=!1)},t}(a["default"]);f.prototype.setTickValues=s.setTickValues;t["default"]=f},(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=A(n(295)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o}(e,t)}(n(571)),o=A(n(564));var l=function(e){function t(){return e.call(this,i.deInterpolateLinear,o["default"])||this}return(0,a["default"])(t,e),t.prototype.copy=function(){return(0,i.copyScale)(this,new t)},t}(i["default"]);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n=e._parseCanvasCosmetics&&e._parseCanvasCosmetics();if((0,i.componentFactory)(e,r["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas"))for(var A=0,o=t.length;A<o;A++)t[A].configure(n),(0,i.componentFactory)(t[A],a["default"],"axisRefVisualCartesian")};var r=A(n(551)),a=A(n(617)),i=n(281)},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(297),o=A(n(564)),l=A(n(598)),s=n(595),c=A(n(618)),u=n(289);(0,u.addDep)({name:"cartesianAxisRefAnimation",type:"animationRule",extension:c["default"]});var h=function(e){function t(){var t;return(t=e.call(this)||this).config.map={},t.config.explicitDrawItems={},t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"axisRefVisuals"},n.getName=function(){return"axisRefVisualsCartesian"},n.draw=function(){var e,t,n,A,r,a,i,o=this.getDrawingInfo(),l=this.getexplicitDrawItems(),s=this.config,c=s.map,u={},h=this.getLinkedParent(),d=h.getAxes(),g=[],p=h.getChildContainer("axisReferenceVisualsFloor"),f=h.getChildContainer("axisReferenceVisualsBottom"),m=h.getChildContainer("axisReferenceVisualsMiddle"),v=h.getChildContainer("axisReferenceVisualsTop"),b=h.getChildContainer("axisReferenceVisualsCeil");for(h.config.trendlines=[],h.config.vtrendlines=[],t=0;t<d.length;++t)g.push(d[t].axis.getId());for(A in s.containers=[p,f,m,v,b],o)if(o.hasOwnProperty(A)&&(r=this.getLinkedItem(A),g.indexOf(r.getId())>=0))for((a=u[A])||(a=u[A]=[]),e=o[A],t=0;t<e.length;++t)"band"===(n=(i=e[t]).type)?a.push.apply(a,this.createBand(i,r)):"line"===n&&a.push.apply(a,this.createLine(i,r));if(s.isSmartDrawing)for(A in c)c.hasOwnProperty(A)&&!l[A]&&this.getLinkedItem(A)&&(u[A]=c[A]);this.resetexplicitDrawItems(),this.removeExtraElements(u)},n.getDrawingInfo=function(){var e,t,n={},A=this.getexplicitDrawItems(),r=this.isCanvasChnaged(),a=(this.config.isSmartDrawing=Object.keys(A).length&&!r)?A:this.getLinkedItem();for(e in a)a.hasOwnProperty(e)&&(t=a[e],n[e]=t.getReferenceInfo());return n},n.createLine=function(e,t){var n,A,a,i,l=this.config.containers,c=l[e.layer],u=t.config,h=this.getFromEnv("paper"),d=this.getFromEnv("chart").getName(),g=this.getLinkedParent(),p=this.getFromEnv("animationManager"),f=this.getFromEnv("toolTipController"),m=g.config,v=m.trendlines,b=u.isVertical,B=m.canvasLeft,y=m.canvasTop,C=y+m.canvasHeight,x=B+m.canvasWidth,w=(0,o["default"])(B,x),F=(0,o["default"])(y,C),S=t.getScale(),E=S.getRangeValue(e.from),Q=e.to!==r&&S.getRangeValue(e.to)||E,k=b?["M",B,E,"L",x,Q]:["M",E,C,"L",Q,y],L=e.attr,U=e.text,I=U&&U.attr,T=U&&U.labelPosition||0,N=t.getId(),D=e.id||e.from,P=N+"_"+D,M=this.getGraphicalElement(P),H=e.handlers,O={start:e.from,end:e.to};for(a in L.path=(0,s.getCrispPath)(k,(i=L["stroke-width"],null!==i?L["stroke-width"]:1)).path.toString(),/trend/.test(e.id)&&v.push({x1:k[1],y1:k[2],x2:k[4],y2:k[5],tooltext:e.toolText,tolerance:L["stroke-width"]<5?2.5:L["stroke-width"]/2}),L["stroke-linecap"]="butt",(M=this.addGraphicalElement(P,p.setAnimation({container:c,el:M||"path",attr:L,component:this,axis:t,data:{value:O,path:k},label:"path"}))).data("data",O),U&&(n=N+"_"+D+I.text,A=this.getGraphicalElement(n),b?(I.x=w(T),I.y=E):(I.x=E,I.y=F(T)),I.text=U.label,I.transform=h.getSuggestiveRotation(U.labelRotation,I.x,I.y),(A=this.addGraphicalElement(n,p.setAnimation({container:l[U.layer],el:A||"text",attr:I,component:this,axis:t,data:{value:e.from},label:"text",css:U.css}))).data("data",e.from)),/zoomscatter/i.test(d)||(e.toolText?f.enableToolTip(M,e.toolText):f.disableToolTip(M)),H)H.hasOwnProperty(a)&&(M.on(a,H[a].bind(t)),A&&A.on(a,H[a].bind(t)));return U?[P,n]:[P]},n.createBand=function(e,t){var n,A,a,i,o,l,s=this.config.containers[e.layer],c=t.config,u=this.getFromEnv("animationManager"),h=this.getFromEnv("toolTipController"),d=this.getLinkedParent(),g=this.getFromEnv("chart").getName(),p=d.config,f=c.isVertical,m=p.canvasLeft,v=p.canvasTop,b=v+p.canvasHeight,B=m+p.canvasWidth,y=t.getScale(),C=e.from,x=e.to!==r?e.to:C,w=t.getId(),F=e.attr,S=e.handlers;for(o in n="canvasStart"===C?f?v:m:y.getRangeValue(C),A="canvasEnd"===x?f?b:B:y.getRangeValue(x),l=Math.abs(n-A),f?(F.x=m,F.y=Math.min(n,A),F.width=B-m,F.height=l):(F.x=Math.min(n,A),F.y=v,F.width=l,F.height=b-v),a=w+"_"+(e.id||F.x+"_"+F.y),i=this.getGraphicalElement(a),/trend/.test(e.id)&&d.config.vtrendlines.push({x1:F.x,y1:F.y,x2:F.x+F.width,y2:F.y+F.height,tooltext:e.toolText,tolerance:F["stroke-width"]<5?2.5:F["stroke-width"]/2,isTrendZone:1}),i=this.addGraphicalElement(a,u.setAnimation({container:s,el:i||"rect",attr:F,component:this,label:"rect"})),/zoomscatter/i.test(g)||(e.toolText?h.enableToolTip(i,e.toolText):h.disableToolTip(i)),S)S.hasOwnProperty(o)&&i.on(o,S[o].bind(t));return[a]},n.removeExtraElements=function(e){var t,n,A,r,a,i,o=this.config.map;for(t in o)if(e[t])for(r=(i=(0,l["default"])(o[t],e[t])).length,A=0;A<r;++A)(a=this.getGraphicalElement(i[A]))&&this.removeGraphicalElement(a);else for(r=(n=o[t]).length,A=0;A<r;++A)(a=this.getGraphicalElement(n[A]))&&this.removeGraphicalElement(a);this.config.map=e},n.setLinkedItem=function(t,n){e.prototype.setLinkedItem.call(this,t,n);var A,r=this;"axis"===n.getType()&&r.addExtEventListener("predraw",function(e){(A=e.sender).getState("removed")&&(r.removeLinkedItem(A.getId()),r.asyncDraw())},n)},n.addexplicitDrawItems=function(e,t){this.config.explicitDrawItems[e]=t},n.getexplicitDrawItems=function(){return this.config.explicitDrawItems},n.resetexplicitDrawItems=function(){this.config.explicitDrawItems={}},n.isCanvasChnaged=function(){var e,t=this.getLinkedParent().getEffectiveDimensions(),n=this.config;return e=JSON.stringify(t)!==JSON.stringify(n.canvasDim),n.canvasDim=t,e},t}(i.ComponentInterface);t["default"]=h},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var A=n(597);t["default"]={"initial.axisRefVisuals.axisRefVisualsCartesian":A.axisAnimationAxis,"update.axisRefVisuals.axisRefVisualsCartesian":A.axisAnimationFinal}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A,i,o,l,s,c=e.getChildren("canvas"),u=c.length,h=[],d=[];for(i=0;i<u;i++,h=[],d=[])if(!(t=c[i]).getState("removed")){for(A=t.getFromEnv("xAxis"),l=0;l<(A&&A.length);l++)A[l].getState("removed")||h.push(A[l]);for(A=t.getFromEnv("yAxis"),l=0;l<(A&&A.length);l++)A[l].getState("removed")||d.push(A[l]);for((0,a.componentFactory)(t,r["default"],"vCanvas",h.length*d.length),n=t.getChildren("vCanvas"),o=0,l=0;o<(h&&h.length);o++)for(s=0;s<(d&&d.length);s++,l++)n[l].xAxis(h[o]).yAxis(d[s]).canvas(t),n[l].configure(),n[l].addToEnv("vCanvas",n[l])}};var r=A(n(620)),a=n(281)},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(297),o=n(281),l=function(e,t){var n=e;return n="comp_"+n,t&&(this.config[n]=t),(t||!this.config[n])&&this||this.config[n]},s=function(e,t){return["T",e,",",t].join("")},c=function(e){return-e.getTranslation()},u=function(e,t){return{h:e,v:t}},h=["columnShadowVcanvasGroup","columnVcanvasGroup","areaShadowVcanvasGroup","areaVcanvasGroup","lineShadowVcanvasGroup","lineVcanvasGroup","defaultShadowVcanvasGroup","defaultVcanvasGroup","sumLabelsLayer","vcanvasLabelGroup"],d=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:n,label:"group"})},g=function(e){return!/category/i.test(e.getName())},p="visible",f="removed",m=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var n=t.prototype;return n.getName=function(){return"virtualCanvas"},n.getType=function(){return"canvas"},n.xAxis=function(e){var t=l.call(this,"xAxis",e);return e&&this.listenToAxis(e),e&&this.addToEnv("xAxis",e),t},n.yAxis=function(e){var t=l.call(this,"yAxis",e);return e&&this.listenToAxis(e),e&&this.addToEnv("yAxis",e),t},n.paper=function(e){return l.call(this,"paper",e)},n.canvas=function(e){return l.call(this,"canvas",e)},n.configure=function(e){void 0===e&&(e={});var t=this.getFromEnv("chartConfig"),n=this.config;Object.assign(n,e),n.transposeAxis=t.transposeAxis,this._mapChildren(function(e){e.getState(f)||"dataset"===e.getType()||e.configure&&e.configure()})},n.getHorizontalVerticalAxes=function(){var e=this.xAxis(),t=this.yAxis();return t.config.isVertical?u(e,t):u(t,e)},n.preDraw=function(){this._mapChildren(function(e){e.getState("removed")||"dataset"===e.getType()||e.setVisibility&&e.setVisibility()});var e,t=this.config.transposeAxis,n=this.getFromEnv("chart"),A=this.getAxisValuePadding(),a=A.left,i=A.right,o=A.top,l=A.bottom;(e=this.getDataLimits(!t)).min!==Infinity||e.max!==-Infinity?(this._setYAxisLimits(e.min,e.max),n._storeIntialLimit&&n._storeIntialLimit(e.min,e.max)):(this._setYAxisLimits(r,r),n._storeIntialLimit&&n._storeIntialLimit(r,r)),this._setXAxisLimits(e.xMin,e.xMax),this._setAxisValuePadding(a,i,o,l)},n.childChanged=function(e){void 0===e&&(e={});var t,n=this,A=n.config,a=A.transposeAxis;!1!==e.dataLimitChanged&&(t=n.getDataLimits(!a),!a||t.min===A.range.min&&t.max===A.range.max||(A.range.min=t.min,A.range.max=t.max,this.getFromEnv("yAxis").resetStoredLimits(),t.min!==Infinity||t.max!==-Infinity?n._setYAxisLimits(t.min,t.max):n._setYAxisLimits(r,r)),t.xMin===A.range.xMin&&t.xMax===A.range.xMax||(A.range.xMin=t.xMin,A.range.xMax=t.xMax,this.getFromEnv("xAxis").resetStoredLimits(),n._setXAxisLimits(t.xMin,t.xMax)),t.xMin!==Infinity&&t.xMax!==-Infinity||n._changeXAxisCordinates()),n.asyncDraw()},n._setAxisValuePadding=function(e,t,n,A){this.getFromEnv("xAxis").setAxisPadding(e,t),n&&A&&this.getFromEnv("yAxis").setAxisPadding(e,t)},n.getAxisValuePadding=function(){var e={},t=-Infinity,n=-Infinity,A=-Infinity,r=-Infinity;return this._mapChildren(function(a){a.getState(f)||(e=a.getAxisValuePadding&&a.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),n=Math.max(n,e.right||-Infinity),A=Math.max(A,e.top||-Infinity),r=Math.max(r,e.bottom||-Infinity))}),t===-Infinity&&(t=0),n===-Infinity&&(n=0),A===-Infinity&&(A=0),r===-Infinity&&(r=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n,this.config.padding.top=A,this.config.padding.bottom=r),{left:t,right:n,top:A,bottom:r}},n._setYAxisLimits=function(e,t){var n=this.getFromEnv("yAxis");g(n)&&n.setDataLimit(t,e)},n._setXAxisLimits=function(e,t){var n=this.getFromEnv("xAxis");g(n)&&(t!==-Infinity||e!==+Infinity?n.setDataLimit(t,e):n.setDataLimit(r,r))},n.getDataLimits=function(e){var t,n,A,r=this.getFromEnv("chart"),a=-Infinity,i=+Infinity,l=a,s=i,c=i,u=a;return this._mapChildren(function(r){var h;r.getDataLimits&&!r.getState(f)&&(e||r.getState(p))&&(t=r.getDataLimits(e),h=t,n=(0,o.pluck)(h.xMax,a),A=(0,o.pluck)(h.xMin,i),l=Math.max(l,h.max),s=Math.min(s,h.min),u=Math.max(u,n),c=Math.min(c,A))}),this.config.range||(this.config.range={},this.config.range.min=s,this.config.range.max=l,this.config.range.xMin=c,this.config.range.xMax=u),r.config.yMax=l,r.config.yMin=s,{min:s,max:l,xMin:c,xMax:u}},n.listenToAxis=function(e){var t,n=this;t=function(){n.getState("drawn")&&n.asyncDraw()},this.getState("visiblerangeset"+e.getId())||(this.setState("visiblerangeset"+e.getId(),!0),n.addExtEventListener("visiblerangeset",t,e))},n.createContainer=function(){var e=this,t=e.getLinkedParent();!e.getChildContainer("columnShadowVcanvasGroup")&&e.addChildContainer("columnShadowVcanvasGroup",d("vcanvas-column-shadow",t.getChildContainer("columnShadowGroup"),e)),!e.getChildContainer("columnVcanvasGroup")&&e.addChildContainer("columnVcanvasGroup",d("vcanvas-column-plot",t.getChildContainer("columnGroup"),e)),!e.getChildContainer("areaShadowVcanvasGroup")&&e.addChildContainer("areaShadowVcanvasGroup",d("vcanvas-area-shadow",t.getChildContainer("areaShadowGroup"),e)),!e.getChildContainer("areaVcanvasGroup")&&e.addChildContainer("areaVcanvasGroup",d("vcanvas-area-plot",t.getChildContainer("areaGroup"),e)),!e.getChildContainer("lineShadowVcanvasGroup")&&e.addChildContainer("lineShadowVcanvasGroup",d("vcanvas-line-shadow",t.getChildContainer("lineShadowGroup"),e)),!e.getChildContainer("lineVcanvasGroup")&&e.addChildContainer("lineVcanvasGroup",d("vcanvas-line-plot",t.getChildContainer("lineGroup"),e)),!e.getChildContainer("defaultShadowVcanvasGroup")&&e.addChildContainer("defaultShadowVcanvasGroup",d("vcanvas-default-shadow",t.getChildContainer("defaultShadowGroup"),e)),!e.getChildContainer("defaultVcanvasGroup")&&e.addChildContainer("defaultVcanvasGroup",d("vcanvas-default-plot",t.getChildContainer("defaultGroup"),e)),!e.getChildContainer("vcanvasLabelGroup")&&e.addChildContainer("vcanvasLabelGroup",d("vcanvas-label",t.getChildContainer("datalabelsGroup"),e)),!e.getChildContainer("columnTrendGroup")&&e.addChildContainer("columnTrendGroup",d("columnTrendGroup",e.getChildContainer("columnVcanvasGroup"),e)),!e.getChildContainer("sumLabelsLayer")&&e.addChildContainer("sumLabelsLayer",d("vcanvas-sumLabelsLayer",t.getChildContainer("sumLabelsLayer"),e))},n.applyTranslation=function(){var e=this,t=function(e){return s(c(e.h),c(e.v))}(e.getHorizontalVerticalAxes());e.createContainer(),h.forEach(function(n){var A;A=n,(A=e.getChildContainer(A)).attr({transform:t})})},n.draw=function(){this.applyTranslation(),this.setState("drawn",!0)},n.getCanvasPadding=function(){var e,t,n={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._mapChildren(function(A){if(A.getCanvasPadding&&!A.getState(f)&&A.getState(p))for(t in e=A.getCanvasPadding()||{})e.hasOwnProperty(t)&&(n[t]=Math.max(e[t],n[t]))}),n},n.rtShiftAnim=function(e,t){var n,A=this,r=e,a=t,i=A.getFromEnv("xAxis"),o=A.getFromEnv("yAxis"),l=i.getPixel(1)-i.getPixel(0),c=o.getPixel(1)-o.getPixel(0),u=A.getFromEnv("animationManager");n=s(r=(r||0)*l,a=(a||0)*c),h.forEach(function(e){A.getChildContainer(e).attr({transform:n}),u.setAnimation({el:A.getChildContainer(e),attrs:{transform:"T0,0"}})})},n._changeXAxisCordinates=function(){var e=this;if("marimekko"===this.getLinkedParent().getLinkedParent().config.defaultDatasetType){var t=[],n=this.getChildContainer("areaVcanvasGroup");if(n&&n.node&&n.node.lastElementChild&&n.node.lastElementChild.childNodes){var A=[];this.addEventListener("visualupdated",function(r){n.node.lastElementChild.childNodes.forEach(function(e,t){e.childNodes&&e.childNodes[t]&&e.childNodes[t].style&&"none"!==e.childNodes[t].style.display&&(A=e.childNodes)}),A.length&&(A.forEach(function(e){var n=e.attributes.x.value,A=e.attributes.width.value;t.push(Number(n)+Number(A)/2)}),e.getFromEnv("xAxis").components.labels.forEach(function(e,n){e.config.props.label.attr.x=t[n],e.config.props.label.attr.transform="r270,"+t[n]+","+e.config.props.label.attr.y}),e.getFromEnv("xAxis")._drawCategory())})}}},t}(i.ComponentInterface);t["default"]=m},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t;e.config.enablemousetracking?((0,a.componentFactory)(e,r["default"],"mouseTracker"),t=e.getChildren("mouseTracker")[0],e.config.mouseTrackerEventAdded||(t.addEvents(),e.config.mouseTrackerEventAdded=!0)):((t=e.getChildren("mouseTracker")&&e.getChildren("mouseTracker")[0])&&t._removeListners(),e.config.mouseTrackerEventAdded=!1)};var r=A(n(622)),a=n(281)},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i="fc-mouseover",o="fc-mousedown",l="fc-mouseup",s="fc-mousemove",c="fc-mouseout",u="fc-click",h=function(e){function t(){var t,n;return(t=e.call(this)||this).pIndex=1,t.handler=(n=t,function(e){e.originalEvent&&n.getFromEnv("chart")._mouseEvtHandler(e,n.config.evtData)}),t.eventsList=[o,l,s,u,i],t.config={},t.config.evtData={},t}(0,r["default"])(t,e);var n=t.prototype;return n.getMouseEvents=function(e,t,n){var A=this,r=A._lastDatasetIndex,a=A._lastPointIndex,h={fireOut:!1,events:[]};switch(e.type){case u:h.events.push(u);break;case s:r===t&&a===n?(clearTimeout(A.mouseoutTimer),h.events.push(s)):(h.events.push(i),h.fireOut=!0);break;case o:r===t&&a===n||(h.fireOut=!0,h.events.push(i)),h.events.push(o);break;case i:r===t&&a===n?clearTimeout(A.mouseoutTimer):(h.fireOut=!0,h.events.push(i));break;case l:A.hasTouchEvent=!1,h.events.push(l);break;case c:h.fireOut=!0}return h},n.addEvents=function(){var e,t,n,A=this,r=A.getFromEnv("chart"),a=r.getChildren("canvas"),i=A.config.evtData,o=A.eventsList;for(r.config.enableMouseOutEvent&&o.push(c),A._removeListners(),i.chart=r,i.mouseTracker=A,t=0;t<a.length;t++)for(n in e=a[t],o)e.addEventListener(o[n],A.handler)},n._removeListners=function(){var e,t,n,A=this,r=A.getFromEnv("chart").getChildren("canvas"),a=A.eventsList;for(n=0;n<r.length;n++)for(t in e=r[n],a)e.removeEventListener(a[t],A.handler);A._removeDocEvents()},n._removeDocEvents=function(){this.eventOutput&&this.eventOutput.unlisten(),this.eventOutput=undefined},n._dispose=function(){this._removeListners(),e.prototype._dispose.call(this)},t}(a.ComponentInterface);t["default"]=h},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A=e.getChildren(),r=A.canvas&&A.canvas[0],o=r&&r.getChildren("vCanvas"),c=o&&o[0]||r||e,u=e.getFromEnv("dataSource"),h=u.dataset,d=(0,i["default"])(h)&&h[0].data,g=u.data||d;n=d?l(l({},h[0]),s(g)):s(g);if(!g||0===g.length)return void e.setChartMessage();t=e.getDSdef(),(0,a.datasetFactory)(c,t,"dataset",1,[n])};var r=A(n(277)),a=n(281),i=A(n(453));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e){var t=[],n=[];return(0,a.fcEach)(e,function(e,A){"true"!==e.vline&&!0!==e.vline&&1!==e.vline&&"1"!==e.vline?t.push(e):n.push({index:A,data:e})}),{catData:n,data:t}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=t._removePlots=t.PATTERN_TYPES=void 0;var r,a=A(n(295)),i=n(281),o=n(297),l=n(289),s=A(n(625)),c=n(293),u=n(626),h=t.PATTERN_TYPES=["line","circle","square"],d=i.hasTouch?i.TOUCH_THRESHOLD_PIXELS:i.HOVER_THRESHOLD_PIXELS,g=i.regex.dropHash,p="pointer",f=i.preDefStr.DEFAULT,m=i.preDefStr.showHoverEffectStr,v=i.preDefStr.setRolloverAttrStr,b=i.preDefStr.setRolloutAttrStr,B=Math,y=B.min,C=B.max,x=B.abs,w={top:!0},F={right:!0},S={left:!0},E={bottom:!0},Q=B.ceil,k=B.round,L=function(e,t){if(void 0===e&&(e={}),"function"==typeof t){var n=function(n){if(e.hasOwnProperty(n)){var A=e[n];Array.isArray(A)?A.forEach(function(e){return t(e,n)}):e[n]&&t(e[n],n)}};for(var A in e)n(A)}},U=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:n,label:"group"})},I=t._removePlots=function(e,t){void 0===e&&(e=[]),e.forEach(function(e){return L(e&&e.graphics,t)}),e.length=0};(0,l.addDep)({name:"columnAnimation",type:"animationRule",extension:s["default"]});var T=function(e){function t(){var t,n=t=e.call(this)||this;return n.components={},n.components.removeDataArr=[],n.__hideElem=function(e,t){n._setRemoveAnim(e,"label"===t?"plotLabel":"rect")},n.__removeElem=function(e,t){n.__hideElem(e,t)},n.config.primitiveType="column",t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"column"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showvalues=r,t.includeinlegend=1,t.plotfillalpha=r,t.plotfillangle=r,t.ratio=r,t.patternBgColor=i.TRACKER_FILL},n.preConfigure=function(t){if(!t)return!1;this.trimData(t),this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},n.setSkippingInfo=function(e){this.addToEnv("skipInfo",e||{plotsPerBin:1,drawOnlyMap:[],draw:[],hide:[],skippingApplied:!1,dragHashMap:[]})},n.getSkippingInfo=function(){return this.getFromEnv("skipInfo")||{plotsPerBin:1,drawOnlyMap:[],draw:[],hide:[],skippingApplied:!1,dragHashMap:[]}},n.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},n.configureAttributes=function(){var e=this,t=e.getFromEnv("chart"),n=e.config;e.parseAttributes(),e._setConfigure(),e.getState("visible")&&!1===n.oldVisible&&(n.appearing=!0),n.oldVisible=e.getState("visible"),e._realTimeConfigure&&e._realTimeConfigure(),!1!==t.config.hasLegend&&t.config.showLegend&&e._addLegend(),e.ErrorValueConfigure&&e.ErrorValueConfigure(),e.config.YForStackUpdated=!1,e.setState("dirty",!0)},n.parseAttributes=function(){var e,t,n,A=this,r=A.getFromEnv("chart"),a=r.getChildren("yAxis")[0].config.isReverse,o=A.config,l=A.config.JSONData,s=r.config,c=s.singleseries,u=r.getFromEnv("chart-attrib"),d=A.getFromEnv("color-manager"),g=A.getJSONIndex(),p=o.plotColor=d.getPlotColor(g),f=(0,i.pluckNumber)(l.dashed,u.plotborderdashed,0),m=(0,i.pluckNumber)(s.useplotgradientcolor,1),v=r.isBar,b=s.is3D,B=s.isdual;o.showTextOutline=(0,i.pluckNumber)(u.textoutline,0),o.dashed=f,o.parentYAxis=B&&"s"===(0,i.pluck)(l.parentyaxis&&l.parentyaxis.toLowerCase(),"p")?1:0,o.maxValue=-Infinity,o.minValue=Infinity,o.minAbsNonZeroValue=Infinity,o.minAbsNonZeroData={},o.defaultPadding={left:.5,right:.5},(0,i.parseConfiguration)(l,o,s,{data:!0}),o.seriesname=(0,i.parseUnsafeString)(l.seriesname),o.showValues=(0,i.pluckNumber)(l.showvalues,u.showvalues,1),o.minplotheightforvalue=(0,i.pluckNumber)(l.minplotheightforvalue,u.minplotheightforvalue,0),o.showplotborder=(0,i.pluckNumber)(u.showplotborder,b?0:1),e=s.plotborderdashlen,t=s.plotborderdashgap,o.plotfillangle=(0,i.pluckNumber)(360-u.plotfillangle,v?180:a?90:270),o.plotfillalpha=n=(0,i.pluck)(l.alpha,u.plotfillalpha,i.HUNDREDSTRING),o.plotColor=p=(0,i.pluck)(l.color,p),o.legendSymbolColor=(0,i.getFirstColor)(o.plotColor),o.plotgradientcolor=(0,i.getDefinedColor)(u.plotgradientcolor,d.getColor("plotGradientColor")),!m&&(o.plotgradientcolor=""),o.plotborderalpha=(0,i.pluck)(u.plotborderalpha,n,i.HUNDREDSTRING),o.plotbordercolor=(0,i.pluck)(u.plotbordercolor,b&&!c?"#ffffff":d.getColor("plotBorderColor")),o.plotborderdashstyle=f?(0,i.getDashStyle)(e,t,undefined):"none",o.showShadow=b?(0,i.pluckNumber)(u.showshadow,1):(0,i.pluckNumber)(u.showshadow,d.getColor("showShadow")),o.definedGroupPadding=C(s.plotSpacePercent,0),o.includeinlegend=(0,i.pluckNumber)(l.includeinlegend,o.seriesname?1:0),A.setState("visible",1===(0,i.pluckNumber)(l.visible,!Number(l.initiallyhidden),1)),!0===A.getState("visible")?A._conatinerHidden=!1:A._containerHidden=!0,o.legendInteractivity=!1,A.setState("visible",1===(0,i.pluckNumber)(A.getState("visible"),o.JSONData.visible,!Number(o.JSONData.initiallyhidden),1)),o.usePattern=(0,i.pluckNumber)(s.usePattern,0),o.patternType=h.includes(l.patterntype)?l.patterntype:s.patternType,o.patternAngle=(0,i.pluckNumber)(l.patternangle,u.patternangle,o.patternType===h[0]?40:0),o.patternDensity=(0,i.pluckNumber)(l.patterndensity,s.patternDensity),o.patternSize=(0,i.pluckNumber)(l.patternsize,o.patternType===h[0]?2:4),o.patternAlpha=(0,i.pluckNumber)(l.patternalpha,s.patternAlpha),o.patternBgColor=(0,i.pluck)(l.patternbgcolor,o.patternBgColor)},n.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t,n,A=this,r=A.components,a=A.config,i=a&&a.context,o=A.getFromEnv("chart").isRealTime,l=i&&i.prevCatlen,s=A.getFromEnv("xAxis"),c=o?0:s.getTicksLen(),u=l-c,h=r&&r.data,d=h&&h.length,g=e.data&&e.data.length||0,p=d-g;u>p?(t=u,n=c):(t=p,n=g),t>0&&this.removeData(n,t,!1)}},n.hidePlots=function(){var e,t=this,n=t.components.data,A=t.getSkippingInfo(),r=A.hide,a=A.hideLabel;r.forEach(function(A){(e=n[A])&&e.graphics&&(L(e.graphics,t.__removeElem),e&&(e.graphics={}))}),a.forEach(function(A){(e=n[A])&&e.graphics&&(L(e.graphics,t.__removeElem),e&&(e.graphics={}))})},n._setConfigure=function(e,t){var n,A,a,o,l,s,u,h,g=this,p=g.getFromEnv("chart"),f=p.config,m=g.config,v=g.getFromEnv("xAxis"),b=p.isRealTime,B=f.realTimeConfig&&f.realTimeConfig.numDisplaySets,y=g.getFromEnv("dataSource").categories&&g.getFromEnv("dataSource").categories[0]&&g.getFromEnv("dataSource").categories[0].category,C=m.initCatLen=b?y&&Array.isArray(y)&&y.filter(function(e){return!e.vline}).length||0:v.getTicksLen(),x=m.JSONData||[],w=e||x.data,F=e&&e.data.length,S=m.showplotborder,E=f.plotborderthickness,Q=g.components.data,k=f.isDrag,L=g.getSkippingInfo&&g.getSkippingInfo(),U=L&&L.draw||[],I=L&&L.skippingApplied;for(u=F===r&&C>B?C-B:0,n=b?(0,i.pluckNumber)(F,C):Math.min(C,w&&w.length),f.dragTolerance=k?(S&&E>5?E/2+1:5)+d:0,Q||(Q=g.components.data=[]),I&&(n=U.length),s=u;s<n;s++)l=U[s]||s,e?(A=e&&e.data[l]||{},o=t!==r?Q[h=t+l]:Q[h=Q.length-n+l],a=h):(A=w&&w[l]||{},o=Q[l-=u],a=l),o||(o=Q[a]={}),o.config||(o.config={},o.graphics={}),g._plotConfigure(a,A,F),h&&h++;I&&g.addJob("configureRestID",function(){g._configureRestData()},c.priorityList.postRender)},n._configureRestData=function(){var e,t,n,A,a,o=this,l=o.config,s=o.config.JSONData,c=s.data,u=o.getFromEnv("chart-attrib"),h=o.getFromEnv("xAxis").getTicksLen(),d=(o.getSkippingInfo&&o.getSkippingInfo()).drawOnlyMap,g=o.components.data;for(g||(g=o.components.data=[]),l.maxValue=-Infinity,l.minValue=Infinity,A=0;A<h;A++)d[A]||(n=g[A],t=A,(e=c&&c[A]||{}).tooltext!==r&&(e.tooltext=(0,i.parseTooltext)(e.tooltext,[3],{label:e.label},e,u,s)),n||(n=g[A]={}),n.config||(g[A].config={}),o._plotConfigure(t,e),a&&a++)},n._plotConfigure=function(e,t,n){var A,a,o,l,s,c,u,d,g,p,f,m,v,b,B,x,w,F,S,E,Q,k,L,U,I,T,N,D,P,M,H,O,_,R,V=this,G=V.getFromEnv("chart"),K=G.config,z=V.config,W=z.JSONData,j=G.config.singleseries,X=V.getFromEnv("yAxis"),Y=V.getFromEnv("xAxis"),J=V.components.data[e],q=G.getFromEnv("dataSource").chart,Z=V.getFromEnv("color-manager"),$=z.showplotborder,ee=z.plotColor,te=K.showtooltip,ne=K.yaxisname,Ae=K.xaxisname,re=K.tooltipsepchar,ae=K.seriesnameintooltip,ie=K.plotborderdashlen,oe=K.plotborderdashgap,le=K.plotborderthickness,se=(0,i.pluckNumber)(K.useroundedges,0),ce=K.plothovereffect,ue=z.plotfillangle,he=z.plotborderdashstyle,de=J.config,ge=G.isBar,pe=G.config.is3D,fe=K.use3dlighting,me=K.realTimeConfig&&K.realTimeConfig.numDisplaySets,ve=me-z.initCatLen,be=me&&ve>=0?ve:0,Be=K.usedataplotcolorforlabels;G.isRealTime||($=(0,i.pluck)((0,i.pluckNumber)(W.data[e].showplotborder,W.showplotborder),$),le=(0,i.pluck)((0,i.pluckNumber)(W.data[e].plotborderthickness,W.plotborderthickness),le)),R=Y.getLabel(n?e-n:be+e),de.origLabel=_=(0,i.getValidValue)((0,i.parseUnsafeString)(R.label)),v=de.label=(0,i.getValidValue)((0,i.parseUnsafeString)(R.tooltext))||_,t.tooltext!==r&&(t.tooltext=(0,i.parseTooltext)(t.tooltext,[3],{label:R.label},t,q,W)),de.dataLabelStyle=V._configureDataLabelStyle(t),de.minplotheightforvalue=(0,i.pluckNumber)(t.minplotheightforvalue,z.minplotheightforvalue),de.showValue=(0,i.pluckNumber)(t.showvalue,z.showValues),de.givenPlotShowValue=(0,i.pluckNumber)(t.showvalue),de.setValue=m=X.getCleanValue(t.value,(0,i.pluckNumber)(K.stack100percent)),de.setLink=(0,i.pluck)(t.link),de.toolTipValue=D=X.dataLabels(m),de.setDisplayValue=P=(0,i.parseUnsafeString)(t.displayvalue),de.displayValue=(0,i.pluck)(P,D),de.dashed=M=(0,i.pluckNumber)(t.dashed,z.dashed),H=(0,i.pluckNumber)(t.dashlen,ie),O=oe=(0,i.pluckNumber)(t.dashgap,oe),de.valuePadding=(0,i.pluckNumber)(t.valuepadding,W.valuepadding,K.valuepadding),null!==m&&(z.maxValue=C(z.maxValue,m),z.minValue=y(z.minValue,m),0!==m&&z.minAbsNonZeroValue>Math.abs(m)&&(z.minAbsNonZeroValue=Math.abs(m),z.minAbsNonZeroData=de)),de.plotBorderDashStyle=f=1===M?(0,i.getDashStyle)(H,O):0===M?"none":he,j?(ee=Z.getPlotColor((0,i.pluckNumber)(e-n,e)),ee=(0,i.pluck)(t.color,ee),Be&&Y.updateTicksValues(e,{labelfontcolor:(0,i.convertColor)(ee)}),p=(0,i.pluck)((0,i.pluckNumber)(W.data[e].plotborderalpha),t.alpha,t.borderalpha,z.plotborderalpha,d).toString(),de.id=t.id?(0,i.pluck)(t.id,de.id):(0,i.getValidValue)((0,i.parseUnsafeString)(R.label))):(ee=(0,i.pluck)(t.color,z.plotColor),p=G.isRealTime?(0,i.pluck)(t.alpha,z.plotborderalpha,d).toString():(0,i.pluck)((0,i.pluckNumber)(W.data[e].plotborderalpha,W.plotborderalpha),t.alpha,z.plotborderalpha,d).toString(),de.id=t.id?(0,i.pluck)(t.id,de.id):(0,i.getValidValue)((0,i.parseUnsafeString)(R.label))+"-"+(W.seriesname?W.seriesname:V.getJSONIndex())),ee=(0,i.hashify)(ee),g=(0,i.pluck)(t.ratio,z.ratio),d=(0,i.pluck)(t.alpha,z.plotfillalpha),de.plotFillAlpha=d,de.plotBorderAlpha=p,de.shadow={opacity:z.showShadow?d/100:0},m<0&&!se&&(c=z.plotfillangle,ue=ge?180-ue:360-ue),G.isRealTime?de.plotbordercolor=(0,i.pluck)(W.plotbordercolor,z.plotbordercolor):de.plotbordercolor=(0,i.pluck)(W.data[e].plotbordercolor,W.plotbordercolor,z.plotbordercolor),("inherit"===de.plotbordercolor||z.usePattern&&!de.plotbordercolor)&&(de.plotbordercolor=ee),de.colorArr=b=(0,i.getColumnColor)(ee+","+z.plotgradientcolor,d,g,ue,se,de.plotbordercolor,p,ge?1:0,!!pe),de.originalPlotColor=ee,de.patternType=h.includes(t.patterntype)?t.patterntype:z.patternType,de.patternAngle=(0,i.pluckNumber)(t.patternangle,W.patternangle,q.patternangle,de.patternType===h[0]?40:0),de.patternDensity=(0,i.pluckNumber)(t.patterndensity,z.patternDensity),de.patternSize=(0,i.pluckNumber)(t.patternsize,W.patternsize,de.patternType===h[0]?2:4),de.patternAlpha=(0,i.pluckNumber)(t.patternalpha,z.patternAlpha),de.patternBgColor=(0,i.pluck)(t.patternbgcolor,z.patternBgColor),0!==ce&&(B=(0,i.pluck)(t.hovercolor,W.hovercolor,q.plotfillhovercolor,q.columnhovercolor,ee),x=(0,i.pluck)(t.hoveralpha,W.hoveralpha,q.plotfillhoveralpha,q.columnhoveralpha,d),!(w=(0,i.pluck)(t.hovergradientcolor,W.hovergradientcolor,q.plothovergradientcolor,z.plotgradientcolor))&&(w=""),F=(0,i.pluck)(t.hoverratio,W.hoverratio,q.plothoverratio,g),S=(0,i.pluckNumber)(360-t.hoverangle,360-W.hoverangle,360-q.plothoverangle,ue),E=(0,i.pluck)(t.borderhovercolor,W.borderhovercolor,q.plotborderhovercolor,de.plotbordercolor),Q=(0,i.pluck)(t.borderhoveralpha,W.borderhoveralpha,q.plotborderhoveralpha,q.plotfillhoveralpha,q.columnhoveralpha,p,d),k=(0,i.pluckNumber)(t.borderhoverthickness,W.borderhoverthickness,q.plotborderhoverthickness,$&&le),L=t.borderhoverdashed||W.borderhoverdashed||q.plotborderhoverdashed,U=(0,i.pluckNumber)(t.borderhoverdashgap,W.borderhoverdashgap,q.plotborderhoverdashgap,ie),I=(0,i.pluckNumber)(t.borderhoverdashlen,W.borderhoverdashlen,q.plotborderhoverdashlen,oe),T=L!==r?Number(L)?(0,i.getDashStyle)(I,U):"":f,(K.drawTrendRegion&&!pe||1===ce&&B===ee)&&(B=(0,i.getLightColor)(B,70)),N=(0,i.getColumnColor)(B+","+w,x,F,S,se,E,Q.toString(),ge?1:0,!!pe),de.setRolloutAttr={fill:pe?[(0,i.toRaphaelColor)(b[0]),!fe]:(0,i.toRaphaelColor)(b[0]),stroke:$?(0,i.toRaphaelColor)(b[1]):i.TRACKER_FILL,"stroke-width":$?le:0,"stroke-dasharray":f},de.setRolloverAttr={fill:pe?[(0,i.toRaphaelColor)(N[0]),!fe]:(0,i.toRaphaelColor)(N[0]),stroke:E?(0,i.toRaphaelColor)(N[1]):i.TRACKER_FILL,"stroke-width":k,"stroke-dasharray":T},de.hoverColor=B,de.hoverAlpha=x,de.hoverBorderColor=E,de.hoverBorderAlpha=Q),A=de.toolTipValue,de.origToolText=o=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(t.tooltext,W.plottooltext,q.plottooltext),!1)),te?null===A?u=!1:o!==r?(s=[1,2,3,4,5,6,7],a={yaxisName:ne,xaxisName:Ae,formattedValue:A,label:v},u=(0,i.parseTooltext)(o,s,a,t,q,W)):(ae&&(l=(0,i.getFirstValue)(W&&W.seriesname)),u=l?l+re:"",u+=v?v+re:""):u=!1,de.toolText=u,de.setTooltext=u,c&&(ue=c),de._x=e,de._y=m},n.updateYForStack=function(){var e,t,n,A,a,o,l=this,s=l.getFromEnv("chartConfig"),c=(0,i.pluckNumber)(s.showpercentvalues),u=(0,i.pluckNumber)(s.showpercentintooltip),h=l.config.JSONData,d=l.getFromEnv("chart-attrib"),g=l.getFromEnv("xAxis").getTicksLen(),p=l.components.data,f=l.getFromEnv("stackValues"),m=c||u?-1:1,v=l.getSkippingInfo&&l.getSkippingInfo(),b=v&&v.skippingApplied,B=v&&v.draw||[],y=B&&B.length;for(b&&(g=y),A=0;A<g;A++)t=(e=p[n=B[A]||A])&&e.config,e!==r&&(a=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(t.origToolText,h.plottooltext,d.plottooltext),!1)),o=f[n]&&f[n].positive+m*f[n].negative||0,t._b=l._parseValues(n,t._b,o,a),s.stack100percent&&(t._y=t.value+t._b))},n._parseValues=function(e,t,n,A){var r,a,o=this,l=t,s=o.getFromEnv("chartConfig"),c=o.components.data[e].config,u=(0,i.pluckNumber)(s.showpercentvalues),h=(0,i.pluckNumber)(s.showpercentintooltip),d=o.getState("visible"),g=c.setValue,p=(0,i.pluckNumber)(s.stack100percent),f=o.getFromEnv("number-formatter"),m=o.getFromEnv("yAxis"),v=c.setDisplayValue;return a=(d&&g||0)/(n||1)*100,r=f.percentValue(a),p&&(c.value=a,l=(l||0)/(n||1)*100),h&&(c.toolTipValue=r),u&&!v&&(c.displayValue=r),A&&(c.toolText=(0,i.parseTooltext)(c.setTooltext,[14,24,25,112],{percentValue:r,sum:m.dataLabels(n),unformattedSum:n})),l},n._addLegend=function(){var e,t,n,A=this,r=A.getFromEnv("chart").isBar,a=A.getFromEnv("chart-attrib"),o=A.config.JSONData||{},l=A.config,s=(0,i.getFirstColor)(l.legendSymbolColor),c=A.getFromEnv("legend"),u=!l.usePattern&&(0,i.pluckNumber)(a.use3dlighting,a.useplotgradientcolor,1),h=(0,i.getLightColor)(s,60).replace(g,i.HASHSTRING);l.includeinlegend?(e=u?{FCcolor:{color:s+","+s+","+(0,i.getLightColor)(s,40)+","+s+","+s,ratio:"0,30,30,30,10",angle:r?0:270,alpha:"100,100,100,100,100"}}:{FCcolor:{color:s,angle:r?0:270,ratio:"0",alpha:"100"}},n=c.getItem(A.config.legendItemId),t={type:A.getName(),index:A.getJSONIndex(),label:(0,i.getFirstValue)(A.config.JSONData.seriesname),usePattern:l.usePattern,legendIconAlpha:(0,i.pluckNumber)(o.legendiconalpha),patternAttr:{patternType:l.patternType,patternAngle:l.patternAngle,patternDensity:l.patternDensity,patternSize:l.patternSize,color:l.plotColor,patternAlpha:l.patternAlpha,patternBgColor:l.patternBgColor,alpha:l.plotfillalpha}},n||(A.config.legendItemId=c.createItem(A),n=c.getItem(A.config.legendItemId),A.addExtEventListener("fc-click",function(){n.itemClickFn()},n)),n.configure(t),n.setStateCosmetics("default",{symbol:{fill:(0,i.toRaphaelColor)(e),bgAlpha:(0,i.pluckNumber)(o.legendiconbgalpha,o.legendiconalpha,a.legendiconbgalpha,a.legendiconalpha,l.plotfillalpha),borderAlpha:(0,i.pluckNumber)(o.legendiconborderalpha,o.legendiconalpha,a.legendiconborderalpha,a.legendiconalpha,"100"),rawFillColor:s,stroke:(0,i.toRaphaelColor)(h)}}),A.getState("visible")?n.removeLegendState("hidden"):n.setLegendState("hidden")):A.config.legendItemId&&c.disposeItem(A.config.legendItemId)},n.legendInteractivity=function(e){var t,n,A=this,r=e.getLinkedParent().getFromEnv("chart"),a=A.getState("visible"),o=A.config;r.getFromEnv("animationManager").setAnimationState("legendInteraction"),o.legendInteractivity=!0;var l=null!=(t=null==A||null==(n=A.config)||null==(n=n.JSONData)||null==(n=n.seriesname)?void 0:n.toLowerCase().replace(" ","_"))?t:"",s=(0,u.findMSColumn3DLineDyParent)(this);if(s){var c=s.getState("allSeries");s.setState("reRender",!0),a?s.setState(l,c[l]=!1):s.setState(l,c[l]=!0)}if(a?A.hide():A.show(),i.isFirefox){var h=r.getChildContainer("plotGroup");h.attrs["clip-rect"]&&h.attr({"clip-rect":h.attrs["clip-rect"]})}o.drawnEvtListenerAttached||(o.drawnEvtListenerAttached=!0,A.addEventListener("drawn",function(){o.legendInteractivity=!1}))},n.createPinElem=function(){var e,t,n,A=this,r=A.getFromEnv("chart"),a=arguments[1].group,i=A.components.data,o=A.graphics.pinElems||(A.graphics.pinElems=[]),l=A.getLinkedParent().getChildContainer().columnVcanvasGroup;for(e=o.length-1;e>=0;e--)o[e].remove(),o.pop();if(A.getState("visible"))for(e=A.config.scrollMinVal;e<A.config.scrollMaxVal;e++)(n=i[e])&&n.graphics&&(t=n.graphics.element.clone().attr({transform:["T",-(r.config._visx+x(l.transform()[0][1])),-r.config.canvasBottom]}),a.appendChild(t),o.push(t))},n._checkPointerOverColumn=function(e,t,n){var A,a,i,o,l,s,c,u,h,g=this,p=g.getFromEnv("chart").config,f=p.plotborderthickness,m=p.showplotborder,v=g.components.data,b=v&&v.length,B=0,y=0,C=p.dragTolerance||0,x=(g.getSkippingInfo&&g.getSkippingInfo()).plotsPerBin;for(c=h=(h=(u=(Q(e/x)-1)*x+1)+x-1)<b?h:b;c>=u;c--){if(!(A=v[c]))return;if(A._height<d&&(B=d),A._width<d&&(y=d),(A._xPos||A._yPos)&&(a=A.config.setValue,m&&f!==r?s=f/2:f=s=0,null!==a&&(i=t-A._xPos+s,o=n-A._yPos+s+(a>=0?C:0),l=i>=-y/2&&i<=(y||A._width)+f&&o>=-B/2&&o<=(B||A._height)+f+(a<0?2*C:C))))return{pointIndex:c,hovered:l,pointObj:v[c]}}},n._getHoveredPlot=function(e,t){var n,A,r=this,a=e,i=t,o=r.getFromEnv("chart").isBar,l=r.getFromEnv("xAxis");return o?i+=l.getTranslation():a+=l.getTranslation(),n=l.getValue(o?i:a),(A=Math.round(n))-n>0?r._checkPointerOverColumn(A,a,i)||r._checkPointerOverColumn(A-1,a,i):r._checkPointerOverColumn(A+1,a,i)||r._checkPointerOverColumn(A,a,i)},n.getPlotInCategoryAt=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n,A,r,a,i,o,l=this.components.data,s=this.getFromEnv("xAxis"),c=this.getFromEnv("yAxis"),u=s.getTranslation()||0,h=this.getState("visible");if("category"===s.getName()&&s.config.hasCategory)a=s;else{if("category"!==c.getName()||!c.config.hasCategory)return!1;a=c}return 1===(i=a.config.isVertical)?A=t+u:n=e+u,null!=i&&(r=l[Math.round(a.getValue(i?A:n))],o=this._getHoveredPlot(e,t),h&&o?o:!(!h||!r)&&{pointIndex:r._index,hovered:!1,pointObj:r})},n._decideTooltipType=function(e,t){var n=this,A=n.getFromEnv("chart").config.drawTrendRegion,r=n.components,a=n.getFromEnv("toolTipController"),i=r.data[e],o=i&&(i.config.finalTooltext||i.config.toolText),l=n.config.currentToolTip,s=t.originalEvent;o&&!A&&(l?s.target&&"tspan"===s.target.nodeName&&i.graphics&&i.graphics.label&&i.graphics.label.abbrArr&&i.graphics.label.abbrArr.length?a.hide(l):a.draw(s,o,l):l=n.config.currentToolTip=a.draw(s,o))},n._firePlotEvent=function(e,t,n){var A,a=this,i=a.getFromEnv("chart"),o=a.components,l=a.getFromEnv("toolTipController"),s=o.data[t],c=s.graphics&&s.graphics.element,u=s.graphics&&s.graphics.label,h=a.config.currentToolTip;if(c)switch(A=s.config.setLink,e){case"fc-mouseover":a._decideTooltipType(t,n),function(e,t,n,A,r){var a=t.graphics,i=a&&a.element,o=e.getFromEnv("animationManager"),l=i&&i.getData();!0!==l.draged&&(i&&0!==l.showHoverEffect&&i.getData&&(o.setAnimationState("mouseOver"),o.setAnimation({el:i,label:"rect",component:r,attr:i.getData().setRolloverAttr})),!A&&i&&e.plotEventHandler(i,n,"DataPlotRollOver"))}(i,s,n,r,this),A&&(c.css({cursor:p}),u&&u.css({cursor:p}));break;case"fc-mouseout":l.hide(h),function(e,t,n,A,r){var a=t.graphics,i=a&&a.element,o=e.getFromEnv("animationManager"),l=i&&i.getData();!0!==l.draged&&(i&&0!==l.showHoverEffect&&(o.setAnimationState("mouseOut"),o.setAnimation({el:i,label:"rect",component:r,attr:i.getData().setRolloutAttr})),!A&&i&&e.plotEventHandler(i,n,"DataPlotRollOut"))}(i,s,n,r,this),A&&(c.css({cursor:f}),u&&u.css({cursor:f}));break;case"fc-click":i.plotEventHandler(c,n);break;case"fc-mousemove":a._decideTooltipType(t,n)}},n.createContainer=function(){var e,t,n,A,r,a=this,i=a.getType(),o=a.getFromEnv("chart"),l=a.getLinkedParent(),s=a.config.primitiveType||i;!l.getChildContainer(s+"VcanvasGroup")&&(s="default"),e=l.getChildContainer(s+"VcanvasGroup"),r=l.getChildContainer(s+"ShadowVcanvasGroup"),t=l.getChildContainer("commonElemGroup")||e,A=l.getChildContainer("commonElemGroupLine"),n=l.getChildContainer("anchorGroup")||e,!a.getContainer("shadowGroup")&&a.addContainer("shadowGroup",U("shadow-group",r,a)),!a.getContainer("errorShadowGroup")&&a.addContainer("errorShadowGroup",U("error-shadow-group",r,a)),!a.getContainer("commonElemsGroup")&&a.addContainer("commonElemsGroup",U("common-elems-group",t,a)),A?!a.getContainer("commonElemsGroupLine")&&a.addContainer("commonElemsGroupLine",U("common-elems-group",A,a)):a.removeContainer("commonElemsGroupLine"),!a.getContainer("plotGroup")&&a.addContainer("plotGroup",U("plot-group",n,a)),!a.getContainer("errorPlotGroup")&&a.addContainer("errorPlotGroup",U("error-plot-group",e,a)),o.hasAnchor&&a.getContainer("errorPlotGroup").insertBefore(a.getContainer("plotGroup")),!a.getContainer("labelGroup")&&a.addContainer("labelGroup",U("label-group",l.getChildContainer("vcanvasLabelGroup"),a).attr("class","fusioncharts-datalabels"))},n.createCoordinates=function(){var e,t,n,A,a,i,o,l,s,c,h,d,g=this,p=g.config,f=g.components.data,m=g.getFromEnv("chart"),v=m.isBar,b=g.getFromEnv("yAxis"),B=g.getFromEnv("xAxis"),y=b.getAxisBase(),C=b.getPixel(y),x=B.config.isVertical,w=m.config.xDepth||0,F=m.config.yDepth||0,S=f.length,E=g.components,Q=g.getLinkedParent(),k=Q.getstackConf&&Q.getstackConf(),L=E.data,U=g.getSkippingInfo&&g.getSkippingInfo(),I=U&&U.skippingApplied,T=U&&U.draw||[],N=T&&T.length,D=p.primitiveType,P=m.config.yDepthForLine,M=null!=(e=null==g||null==(t=g.config)||null==(t=t.JSONData)||null==(t=t.seriesname)?void 0:t.toLowerCase().replace(" ","_"))?e:"",H=this.getName()||null,O=(0,u.findMSColumn3DLineDyParent)(this),_=!1;if(O){var R=O.getState("allSeries");if(O.getState("reRender")||O.setState(M,R[M]=!0),R){var V=Object.keys(R).filter(function(e){return R[e]});_=1===(null==V?void 0:V.length)&&"line"===H}}for(!v&&(w=-w),v&&(F=-F),I&&(S=N),o=0;o<S;o++)A=(n=L[i=T[o]||o])&&n.config,n!==r&&(a=A._b,h=B.getPixel(k&&k[i]&&k[i].x||A._x),l=(isFinite(h)?h:0)+w,d=b.getPixel(A._y),s=isFinite(d)?d:0,"line"===D&&P&&_||(s+=F),c=(a?b.getPixel(a):C)+F,x?(A._Px=s,A._Py=l,A._Pby=l,A._Pbx=c):(A._Px=l,A._Py=s,A._Pby=c,A._Pbx=l),0===A.givenPlotShowValue?A.showValue=0:1===A.givenPlotShowValue?A.showValue=1:1!==A.givenPlotShowValue&&p.showValues&&(Math.sqrt((c-s)*(c-s))<A.minplotheightforvalue?A.showValue=0:A.showValue=1),g.getLineShift&&(A._Py+=g.getLineShift("y")))},n.setContainerVisibility=function(e){var t,n=this,A=n.getContainer();for(t in A)A.hasOwnProperty(t)&&(!1!==n.getState("visible")||!1!==n._conatinerHidden&&n._conatinerHidden!==r||e?(A[t].show(),n._conatinerHidden=!1):(A[t].hide(),n._conatinerHidden=!0))},n.plotAnimManager=function(e,t,n,A,r){void 0===r&&(r={});var a,i,o,l,s,c,u=this,h=u.getFromEnv("chart"),d=h.getFromEnv("animationManager"),g=h.config.is3D,p=h.config,f=u.getState("visible"),m=t.x,v=u.getSkippingInfo&&u.getSkippingInfo(),b=v&&v.draw||[],B=u.getFromEnv("plotGroup3d");c=((o=e&&e.config)&&o.setValue)<0,s=g?(i=c?B.negativeGroupArray:B.positiveGroupAarray)[h.isBar?i.length-1-n:n]:u.getContainer("plotGroup"),l={el:(a=e.graphics.element)||(g?"cubepath":"rect"),container:s,attr:f&&t,doNotRemove:!0,props:{originalIndex:b[n]||n},index:n,length:A,component:u,label:"rect"},f||(l.callback=function(){this.hide()}),e.graphics.element=a=d.setAnimation(l),g&&(a.appendTo(s),(p.isstacked&&c||!p.isstacked&&h.isBar)&&a.toBack()),a.addPattern(r,u.config.usePattern),null!==e.config.setValue?u.getState("visible")&&a.show():(a.remove(),delete e.graphics.element),o._oldPx=o._Px,o._oldX=m,f&&(e.oldPrevDataObj=e.prevDataObj)},n.flushOnScroll=function(e,t){for(var n,A=this.components.data,r=e,a=t-1;r<=a;r++)(n=A[r])&&n.graphics&&(L(n.graphics,this.__removeElem),n.graphics={})},n.removingDraw=function(){var t=this;t.components.data.forEach(function(e){L(e.graphics,t.__removeElem),delete e.graphics}),e.prototype.removingDraw.call(this)},n._contextChanged=function(){var e;this.config.context||(this.config.context={});var t,n=this,A=n.config.context,r=A.shift,a=n.getFromEnv("xAxis"),i=n.getFromEnv("yAxis"),o=A.axisLimit,l=!1,s={yAxis:{limit:i.getVisibleConfig()},xAxis:{limit:a.getVisibleConfig()}};return s.yAxis.limitPixel={min:i.getPixel(s.yAxis.limit.minValue),max:i.getPixel(s.yAxis.limit.maxValue)},s.xAxis.limitPixel={min:a.getPixel(s.xAxis.limit.minValue),max:a.getPixel(s.xAxis.limit.maxValue)},o!==(t=JSON.stringify(s))&&(A.axisLimit=t,l=!0),r!==n.getFromEnv("shift")&&(A.shift=n.getFromEnv("shift"),l=!0),A.prevColNum!==n.getFromEnv("numOfColumns")&&(A.prevColNum=n.getFromEnv("numOfColumns"),l=!0),a.getProcessLen?e=a.getProcessLen():a.getTicksLen&&(e=a.getTicksLen()),A.prevCatlen!==e&&(A.prevCatlen=e,l=!0),!!this.getFromEnv("chart").isRealTime||l},n.calculateScrollRange=function(){var e,t=this,n=t.config,A=t.getFromEnv("xAxis"),r=A.getTicksLen(),a=t.getSkippingInfo&&t.getSkippingInfo()||{},i=a.skippingApplied,o=a.draw||[],l=a.labelDraw||[],s=o.length;e=i?s-1:r,n.scrollMinVal=C(k(A.getVisibleConfig().minValue),0)-1,n.scrollMaxVal=y(k(A.getVisibleConfig().maxValue)+1,e)+1,e=i?l.length-1:r,n.scrollMinValForLabel=C(k(A.getVisibleConfig().minValue),0)-1,n.scrollMaxValForLabel=y(k(A.getVisibleConfig().maxValue)+1,e)+1},n.drawPlots=function(){var e,t,n,A,r,a,i,o,l,s=this,c=s.getFromEnv("chart"),u=s.config,h=c.config.plothovereffect,d=s.components.data,g=s.getContainer("shadowGroup"),p=u._oldStartIndex,f=u._oldEndIndex,B=s.getSkippingInfo&&s.getSkippingInfo(),y=B&&B.draw;for(i=u.scrollMinVal,o=u.scrollMaxVal,i>p&&s.flushOnScroll(p,i>f?f:i),o<f&&s.flushOnScroll(o<p?p:o,f),u._oldStartIndex=i,u._oldEndIndex=o,e=i,l=o-1;e<o;e++,l--)(t=d[y[e]||e])&&(a=(A=t.config).props.element.attr,s.plotAnimManager(t,a,e,o,A.props.element.patternAttr),r=t.trackerConfig,(n=t.graphics.element)&&(n.shadow(A.shadow,g).data("BBox",undefined),c.config.enablemousetracking&&n.data("eventArgs",r.eventArgs).data(m,h).data(v,A.setRolloverAttr||{}).data(b,A.setRolloutAttr||{})))},n.setColumnPosition=function(){var e,t,n=this;if((e=n.getFromEnv("plotWidth"))===r){var A,a,o=n.getFromEnv("xAxis"),l=this.getFromEnv("chartConfig"),s=n.getSkippingInfo().plotsPerBin,c=C(l.plotSpacePercent,0),u=C((0,i.pluckNumber)(c,20)%100,0),h=1===s?u/200:0,d=o.getPixel(0),g=o.getPixel(s),p=n.getFromEnv("chart"),f=p.isBar?p.config.maxBarHeight:p.config.maxColWidth,m=x(g-d),v=!0;e=(A=(1-.01*c)*m||y(m*(1-2*h),1*f))/1,g-(a=A/2)-(d-a+A)<4&&(v=!1),0===u&&(v=!0),n.addToEnv("isCrisp",v)}n.addToEnv("columnWidth",e),t=n.getFromEnv("shift")||0,n.addToEnv("columnXShift",t-n.getFromEnv("columnWidth")/2)},n.addDatasetSpecificEvtArgs=function(e){var t=this.config,n=e,A=n.config,a=this.getFromEnv("chart").config,o=n.trackerConfig.eventArgs;Object.assign(o,{color:A.originalPlotColor,gradientColor:t.plotgradientcolor,alpha:A.plotFillAlpha,borderColor:A.plotbordercolor||t.plotbordercolor,borderAlpha:A.plotBorderAlpha,borderThickness:a.plotborderthickness,borderDashed:A.dashed,hoverColor:A.hoverColor,hoverAlpha:A.hoverAlpha,borderHoverColor:A.hoverBorderColor,borderHoverAlpha:A.hoverBorderAlpha}),t.usePattern?(o.pattern={patternType:A.patternType,patternColor:A.color,patternBgColor:A.patternBgColor===i.TRACKER_FILL?r:A.patternBgColor},delete o.color):delete o.pattern},n.parsePlotAttributes=function(e,t){var n,A,r,a,o,l,s,c,u,h,g,f,m,v,b,B,C,Q,k,L,U,I,T,N,D,P=this,M=P.config,H=P.config.JSONData,O=P.getFromEnv("chart"),_=O.getFromEnv("dataSource").chart,R=O.config.isstacked,V=P.config,G=P.groupManager,K=P.getJSONIndex(),z=t,W=P.getState("visible"),j=O.config,X=O.config.is3D,Y=O.isBar,J=j.xDepth||0,q=j.yDepth||0,Z=P.getFromEnv("yAxis"),$=P.getFromEnv("xAxis"),ee=j.showtooltip,te=!1!==P.getState("visible"),ne=P.components.data,Ae=e.config,re=Z.getAxisBase(),ae=Z.yBasePos=Z.getPixel(re),ie=(0,i.pluckNumber)(V.plotborderthickness,j.plotborderthickness),oe=(0,i.pluckNumber)(j.useroundedges,0),le=V.use3dlighting,se=G&&G.stackConf,ce=P.getFromEnv("columnXShift"),ue=O.config.viewPortConfig,he=ue.x,de=ue.scaleX,ge=(0,i.pluckNumber)(j.showplotborder);if(O.isRealTime||(ge=(0,i.pluckNumber)((0,i.pluck)(H.data[t].showplotborder,H.showplotborder),ge),ie=(0,i.pluck)((0,i.pluckNumber)(H.data[t].plotborderthickness,H.plotborderthickness),ie)),m=Ae.setLink,B=Ae.colorArr||[],$.config.isVertical?(c=P.getFromEnv("columnWidth"),s=ce):(o=P.getFromEnv("columnWidth"),l=ce),e.graphics||(ne[z].graphics={}),b=Ae.displayValue,!te&&(Ae._Py=Ae._Pby),L=y(Ae._Px,Ae._Pbx)+(l||0)+he*de,U=y(Ae._Py,Ae._Pby)+(s||0),se&&(L-=o/2),I=o||x(Ae._Px-Ae._Pbx),T=c||x(Ae._Py-Ae._Pby),n=Y?Ae._Px-Ae._Pbx>0?F:S:Ae._Py-Ae._Pby>0?E:w,f=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(Ae.origToolText,H.plottooltext,_.plottooltext),!1)),P.fineTunePlotDimension&&(L=(D=P.fineTunePlotDimension(L,U,T,I,z)).xPos,U=D.yPos,I=D.width,T=D.height),A=L,r=U,u=I,h=T,a=$.getPixel(1)-$.getPixel(0)-(Y?h:u),!isFinite(h)&&(h=0),W){if(a<5&&P.getFromEnv("columnWidth")<5||(Q=(0,i.crispBound)(L,U,u,h,ie,n,R,Y)),Q?(A=Q.x,r=Q.y,ie=Q["stroke-width"],u=Q.width,h=Q.height):(A=L,r=U),$.config.isVertical){if(0===u){var pe=M.minAbsNonZeroData,fe=x(pe._Px-pe._Pbx);u=fe<.5?fe:.5}}else if(0===h){var me=M.minAbsNonZeroData,ve=x(me._Py-me._Pby);h=ve>0&&ve<.5?ve:.5,r===ae&&(r-=h)}Ae.setRolloutAttr&&(Ae.setRolloutAttr["stroke-width"]=ge?ie:0)}g=Ae.finalTooltext=!1!==Ae.toolText?Ae.toolText+(f?"":Ae.toolTipValue):"",C=Ae.plotBorderDashStyle,(k=e.trackerConfig={}).eventArgs={index:z,link:m,value:Ae.setValue,displayValue:b,categoryLabel:Ae.origLabel,toolText:g,id:Ae.id,datasetIndex:K,datasetName:H.seriesname,visible:W},P.addDatasetSpecificEvtArgs(e),N=ae===r+0,Ae.props={element:{attr:{x:A||0,width:u||0,height:h||0,y:r||0,r:oe,stroke:ge?V.usePattern?Ae.originalPlotColor:(0,i.toRaphaelColor)(B[1])||"":i.TRACKER_FILL,"stroke-width":ge?ie:0,"stroke-dasharray":C,"stroke-linejoin":"miter",visibility:W,cursor:m?p:""}}},V.usePattern?delete Ae.props.element.attr.fill:Ae.props.element.attr.fill=(0,i.toRaphaelColor)(B[0])||"",Ae.props.element.patternAttr={patternType:Ae.patternType,patternAngle:Ae.patternAngle,patternDensity:Ae.patternDensity,patternSize:Ae.patternSize,color:Ae.originalPlotColor,patternAlpha:Ae.patternAlpha,patternBgColor:Ae.patternBgColor,alpha:Ae.plotFillAlpha,x:Ae.props.element.attr.x,y:Ae.props.element.attr.y},X&&(Ae.props.element.attr.noGradient=!le,Ae.props.element.attr.xDepth=J,Ae.props.element.attr.yDepth=q),e._xPos=A+J,e._width=u,e._yPos=r-q,e._height=h,e._index=z,e._plotBorderThickness=ie,(m||ee)&&(h<d&&(r-=(d-h)/2,h=d),k.attr={x:A,y:r,width:u,height:h,r:oe,cursor:m?p:"",stroke:i.TRACKER_FILL,"stroke-width":ge?ie:0,fill:i.TRACKER_FILL,visibility:W}),Ae.oldValue=v,e._oldYBaseTouched=N},n.parseLabelAttributes=function(e){var t,n,A,a,i,o,l,s,c,u,h,d,g,p=this,f=p.getFromEnv("chart"),m=f.config,v=f.getFromEnv("smartLabel"),b=f.config.dataLabelStyle,B=p.config.legendInteractivity,y=p.getState("visible"),C=m.rotatevalues?270:0;if(u=(h=e&&e.config)&&h.setValue,e===r||u===r||null===u||!0===h.labelSkip)return h&&delete h.labelSkip,void((g=e&&e.graphics)&&g.label&&g.label.hide());(i=e.graphics)&&(s=e._yPos,c=e._xPos,A=h.displayValue,h.showValue&&null!==u?(B&&h._state||(v.setStyle(b),a=v.getOriSize(A),h._state=C?{labelWidth:a.height,labelHeight:a.width}:{labelWidth:a.width,labelHeight:a.height}),l=(d=p._getValuePosition({labelWidth:h._state.labelWidth,labelHeight:h._state.labelHeight,width:e._width,height:e._height,yPos:s,xPos:c,value:u,valuePadding:h.valuePadding})).textX,o=d.textY,h.props||(h.props={}),t=h.dataLabelStyle,h.props.label={attr:{x:l,y:o,text:A,"text-bound":[t.backgroundColor,t.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash],opacity:y?1:0}},n=h.props.label.attr,B||(n["line-height"]=b.lineHeight,n.fill=t.color)):i.label&&(i.label.attr({"text-bound":[]}),i.label.hide()))},n.allocatePosition=function(){var e,t,n,A,r,a,i,o,l=this,s=l.getFromEnv("chart"),c=s.config,u=l.config,h=l.components.data.length,d=l.getFromEnv("yAxis"),g=l.components.data,p=c.isstacked,f=l.getSkippingInfo&&l.getSkippingInfo(),m=f&&f.draw;for(l.deleteFromEnv("columnWidth"),l.setColumnPosition(),l.calculateScrollRange(),p&&l.updateYForStack(),l.createCoordinates(),A=d.getLimit(),i=d.getPixel(A.max),o=d.getPixel(A.min),r=u.scrollMinVal,a=u.scrollMaxVal,i>o?(u.yAxisMaxPixel=i,u.yAxisMinPixel=o):(u.yAxisMaxPixel=o,u.yAxisMinPixel=i),t=0;t<h;t++)e=m[t]||t,s.hasScroll&&(e<r||e>a)||(n=g[e])&&(l.parsePlotAttributes(n,e),l.parseLabelAttributes(n))},n.draw=function(){var e,t,n=this,A=n.config,r=n.getState("visible"),a=n.getFromEnv("xAxis"),i=a.getPixel(0),o=a.getPixel(1),l=n.getFromEnv("groupMaxWidth"),s=n.getFromEnv("chart").config.xDepth||0,u=n.getFromEnv("yAxis"),h=A.drawn,d=u.getLimit(),g=d.max,p=d.min,f=g>0&&p<0,m=n._contextChanged(),v=(n.getSkippingInfo&&n.getSkippingInfo()||{}).skippingApplied;l||(l=x(o-i),n.addToEnv("groupMaxWidth",l)),(n.getState("removed")||n.getState("dirty")||m&&r)&&(!h&&n.createContainer(),n.setContainerVisibility(!0),v&&n.hidePlots(),n.drawPlots(),n.drawCommonElements&&!n.config.skipCommonElements&&n.drawCommonElements(),e=A.scrollMinValForLabel,t=A.scrollMaxValForLabel,A.drawn?n.drawLabel(e,t):n.addJob("labelDrawID",function(){n.drawLabel(e,t)},c.priorityList.label),A.drawn=!0,A.appearing&&(A.appearing=!1),n.removePlots(),A.oldGroupMaxWidth=l,A.oldDataIsPositiveNegative=f,A.oldZeroAxisPos=u.getPixel(u.getAxisBase())+s,n.drawErrorValue&&n.drawErrorValue(),A.prevVisible=r,A.catDiff=0)},n.show=function(){var e=this,t=e.getLinkedParent(),n=e.getFromEnv("legend");n&&n.getItem(e.config.legendItemId)&&n.getItem(e.config.legendItemId).removeLegendState("hidden"),e.setState("visible",!0),e.config.appearing=!0,e._conatinerHidden=!1,e.setState("dirty",!0),t.childChanged(),e.asyncDraw()},n.hide=function(){var e=this,t=e.getLinkedParent(),n=e.getFromEnv("legend");n&&n.getItem(e.config.legendItemId)&&n.getItem(e.config.legendItemId).setLegendState("hidden"),e.setState("dirty",!0),e.setState("visible",!1),t.childChanged(),e.asyncDraw()},n.drawLabel=function(e,t){var n,A,a,o,l,s,c,u,h,d,g,p,f=this,m=f.getFromEnv("chart"),v=f.getFromEnv("animationManager"),b=f.getFromEnv("toolTipController"),B=m.config,y=f.getFromEnv("xAxis"),C=f.getFromEnv("paper"),x=f.getState("visible"),w=m.getFromEnv("smartLabel"),F=m.config.dataLabelStyle,S=f.config,E=y.getTicksLen(),Q=f.components,k=Q.data,L=Q.pool,U=B.rotatevalues?270:0,I=S.labelDrawn,T=f.getSkippingInfo&&f.getSkippingInfo(),N=T&&T.skippingApplied,D=T&&T.labelDraw||[],P=D.length,M=(0,i.pluckNumber)(e,0),H=(0,i.pluckNumber)(t,N?P:E),O=P===Math.abs(H-(M+1)),_=function(){this.attr({"text-bound":[]}),this.hide()};for((p=f.getContainer("labelGroup")).css({fontFamily:F.fontFamily,fontSize:F.fontSize,fontWeight:F.fontWeight,fontStyle:F.fontStyle}),p.show(),w.useEllipsesOnOverflow(m.config.useEllipsesWhenOverflow),w.setStyle(F),o=M;o<H;o++)c=(u=(n=k[a=N&&O?D[o]:o])&&n.config)&&u.setValue,n!==r&&c!==r&&null!==c&&!0!==u.labelSkip?(l=n.graphics)&&(u.showValue&&null!==c?(A=u.props.label.attr,s=n._xPos,!l.label&&I&&m.isRealTime&&((h=(0,i.extend2)({},A)).x=A.x-s+(n._newXPos||0),h.transform=C.getSuggestiveRotation(U,h.x,A.y),L&&L.label[0]&&(l.label=L.label[0],L.label.splice(0,1))),A.transform=C.getSuggestiveRotation(U,A.x,A.y),(d=l.label)||L&&L.label[0]&&(d=l.label=L.label[0],L.label.splice(0,1)),d=v.setAnimation({el:l.label||"text",attr:A,component:f,label:"plotLabel",index:a,container:p,callback:!x&&_}),B.showtooltip&&d.abbrArr&&d.abbrArr.length&&b.enableToolTip(d,r),d&&d.show(),d&&d.outlineText(S.showTextOutline,A.fill),l.label||(l.label=f.addGraphicalElement("plotLabel",d,!0))):l.label&&(l.label.attr({"text-bound":[]}),l.label.hide())):(u&&delete u.labelSkip,(g=n&&n.graphics)&&g.label&&g.label.hide());S.labelDrawn=!0},n._getValuePosition=function(e){var t,n,A,r,a,o,l,s,c,u=this.getFromEnv("chart"),h=u.getChildren(),d=u.config,g=h.yAxis[0],p=d.xDepth||0,f=d.yDepth||0,m=d.canvasTop,v=d.canvasHeight+f,b=e.yPos,B=u.config.is3D,x=u.config.isstacked,w=e.valuePadding+2,F=e.height,S=e.width,E=d.placevaluesinside,Q=e.labelHeight,k=g.getAxisConfig("isReverse"),L=e.value;return k||(s=!(L<0)),o=c=Q+w,r=F,A=b-(l=.5*c+w),n=e.xPos+.5*S,(a=(0,i.pluck)(s,L<0))?(t=m+v-(b+F+f),A=b):t=b-m,x?(A=y(m+v-.5*o,A=b+.5*F+(f||0)),A=C(m+.5*o,A),n-=p):E?r>=o?(A=b+(a?F-l:l),B&&(n-=p,A+=f)):t>=o?(A=b+(a?F+l:-l),B&&a&&(n-=p,A+=f)):(A=b+(a?F-l:l),B&&(n-=p,A+=f)):t>=o?(A=b+(a?F+l:-l),B&&(a?(n-=p,A+=f):n-=p/2)):(A=b+(a?F-l:l),B&&(n-=p,A+=f)),{textX:n,textY:A}},n.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},n.addData=function(e,t,n){var A,a=this,i=a.components,o=i.data,l=e.data.length;for(i.addDataArr=e.data,0===t?a.startPosition=!0:t+l!==o.length&&t!==r||(a.startPosition=!1),A=0;A<l;A++)t!==r?o.splice(t+A,0,{config:{}}):o.push({config:{}});a._setConfigure(e,t),n&&a.asyncDraw()},n.removeData=function(e,t,n){var A,a,i=this,o=e,l=t,s=i.getFromEnv("chart"),c=i.components,u=c.data,h=c.removeDataArr||(c.removeDataArr=[]);for(l===r&&(l=1),(o=o||0)+l!==u.length&&s.isRealTime?0!==o&&o!==r||(i.endPosition=!1):i.endPosition=!0,c.removeDataArr=h=h.concat(u.splice(o,l)),A=(a=h.length)-1;A>=0;A--)h[A]||h.splice(A,1);i.removeDataLen=a,n&&i.asyncDraw()},n.updateData=function(e,t,n){var A=this,r=A.config,a=r.maxValue,i=r.prevMin,o=A.getFromEnv("chart"),l=A.groupManager||A,s=o.getFromEnv("xAxis"),c=o.getFromEnv("yAxis");A._setConfigure(e,t),A.getDataLimits(),r.maxValue===a&&r.minValue===i||(A.maxminFlag=!0),n&&(o._setAxisLimits(),s&&s[0].asyncDraw(),c&&c[0].asyncDraw(),l.asyncDraw())},n.removePlots=function(){var e=this.components,t=e&&e.removeDataArr;I(t,this.__removeElem)},n.removeGraphicElem=function(e,t){this.__removeElem(e,t)},n.getAxisValuePadding=function(){return this.config.defaultPadding},n.getCanvasPadding=function(){var e,t,n,A,a,o,l=this,s=l.config||(l.config={}),c=l.components||{},u=l.getFromEnv("chart"),h=u.config.rotatevalues,d=l.getFromEnv("xAxis"),g=l.getFromEnv("yAxis"),p=u.config.dataLabelStyle,f=l.getSkippingInfo(),m=f.skippingApplied,v=f.draw,b=c.data||[],B=m?v[0]:0,y=m?v[v.length-1]:b.length-1,x=s.leftMostData||b[B],w=s.rightMostData||b[y],F={},S={},E=0,Q=0,k=0,L=d.getPixel(0),U=l.getFromEnv("smartLabel"),I={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},T=0,N=d.getValuePadding(),D=s.topMostData,P=s.bottomMostData;return l.setColumnPosition(),o={xPosOffset:l.getFromEnv("columnXShift"),columnWidth:l.getFromEnv("columnWidth"),height:r},x&&(A=(e=x.config).showValue,n=e&&e.anchorProps||{},A&&(t=e.displayValue,U.useEllipsesOnOverflow(u.config.useEllipsesWhenOverflow),U.setStyle(p),S=U.getOriSize(t),T=h?S.height:S.width),null!==e.setValue&&(a=d.getPixel(N.left),(k=(E=n.enabled&&(0,i.pluckNumber)(n.radius,0)+(0,i.pluckNumber)(n.borderThickness,0)/2||0)-(a-L))<0&&(k=0),(Q=(T||0)/2-(a-L)-(o&&o.xPosOffset+o.columnWidth/2||0))<0&&(Q=0)),I.paddingLeft=C(k,Q)),k=Q=0,w&&(A=(e=w.config).showValue,n=e&&e.anchorProps||{},A&&!h&&(t=e.displayValue,U.setStyle(p),F=U.getOriSize(t),T=h?F.height:F.width),null!==e.setValue&&(a=d.getPixel(N.right),(k=(E=n.enabled&&(0,i.pluckNumber)(n.radius,0)+(0,i.pluckNumber)(n.borderThickness,0)/2||0)-(a-L))<0&&(k=0),(Q=(T||0)/2-(a-L)+(o&&o.xPosOffset+o.columnWidth/2||0))<0&&(Q=0)),I.paddingRight=C(k,Q)),D&&(A=(e=D.config).showValue,n=e&&e.anchorProps||{},null!==e.setValue&&(E=(0,i.pluckNumber)(n.radius,0)+(0,i.pluckNumber)(n.borderThickness,0)/2,Q=Math.max(E-(g.getPixel(e.setValue.y)-g.getPixel(g.getLimit().max)),0)),I.paddingTop=Q),P&&(n=(e=P.config)&&e.anchorProps||{},null!==e.setValue&&(E=(0,i.pluckNumber)(n.radius,0)+(0,i.pluckNumber)(n.borderThickness,0)/2,Q=Math.max(E-(g.getPixel(g.getLimit().min)-g.getPixel(e.setValue.y)),0)),I.paddingBottom=Q),I},n.getEventArgs=function(){var e=this,t=e.config||{};return{datasetName:(e.config.JSONData||{}).seriesname,datasetIndex:e.getJSONIndex(),id:t.userID,visible:!e.getState("visible")}},n.getData=function(){return this.components.data},n.setJSONIndex=function(e){this.config.index=e},n.getJSONIndex=function(){return this.config.index||0},n.remove=function(t){var n=this,A=n.config.legendItemId,r=n.getFromEnv("chart").getChildren("legend"),a=n.getFromEnv("legend");r&&r.length&&a&&A&&a.disposeItem(A),e.prototype.remove.call(this,t)},n.setMaxMin=function(e){var t,n,A,a=this.components,i=a.data,o=a.removeDataArr,l=this.config,s=i.length,c=-Infinity,u=+Infinity,h=l.maxValue,d=l.minValue,g=o.length,p=!1;if(e)p=h===e.startValue||d===e.startValue||h<e.config.setValue||d>e.config.setValue;else if(g)for(t=0;t<g;++t)if(h===(A=o[t]&&o[t].config&&o[t].config.setValue)||d===A){p=!0;break}if(p){for(t=0;t<s;t++)i[t]&&(n=i[t].config.setValue)!==r&&(c=C(c,n),u=y(u,n));l.maxValue=c,l.minValue=u}},t}(o.ComponentInterface);T.prototype._configureDataLabelStyle=i.configureDataLabelStyle;t["default"]=T},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var A=n(281);t["default"]={"initial.dataset.column":function(){var e,t=this,n=t.getFromEnv("chart"),r=n.config.yDepth||0,a="y",i="height",o="x",l="width",s="_plot_1Start",c="_plot_1End",u="_plot_2Start",h=t.getFromEnv("yAxis"),d=t.getFromEnv("xAxis"),g=function(e,A){var c,u,d,g,p=t.config,f=A&&A.graphics&&A.graphics.element,m=e.attr,v=h.getPixel(h.getAxisBase())+(n.isBar?-r:r),b={},B=p.oldZeroAxisPos,y=.7;if(c=f.attr(),b[a]=u=c[a],b[i]=c[i],b[o]=c[o],b[l]=c[l],d=c[a]+c[i],v!==B&&(B-v>=0?(u>v&&u<=B+y&&(b[a]=v,d>B&&(b[i]=d-b[a])),d>v&&d<=B+y&&(b[i]=v-(b[a]||0===b[a]?b[a]:u))):(u<v&&u>=B-y&&(b[a]=v,d>v&&(b[i]=d-b[a])),d<v&&d>=B-y&&(b[i]=v-(b[a]||0===b[a]?b[a]:u))),g=!0),t.config.catDiff&&(b[o]=m[o],b[l]=m[l],g=!0),A[s]=b,g)return{finalAttr:b,slot:"axis"}};return{"rect.appearing":function(e){var s,c,u,g,p=h.getPixel(h.getAxisBase())+(n.isBar?-r:r),f=e.props&&e.props.originalIndex||e.index,m=t.components.data[f],v=e.attr;return d.config.isVertical&&(a="x",i="width",o="y",l="height"),s=v[a],c=v[i],g=Math.sign(s+c/2-p),u=1===g?s:s+c,m._posWRT0=g,[{initialAttr:function(){var e={};return e[a]=u,e.opacity=0,e[i]=0,e},finalAttr:{opacity:1},startEnd:function(){var n=e.length;return A.animHelperFN.getTimeByValue(A.animHelperFN.animByWeight(e.index,n,.6),{startPx:p,endPx:1===g?t.config.yAxisMaxPixel:t.config.yAxisMinPixel},{startPx:u,endPx:1===g?v[a]+v[i]:v[a]})},hookFn:function(){this.attr({opacity:1})},effect:"linear",slot:"plot"}]},"rect.updating":function(A){var p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P,M,H,O,_,R,V,G=[],K=t.components.data[A.props&&A.props.originalIndex||A.index],z=A.attr,W=K&&K.graphics&&K.graphics.element,j=h.getPixel(h.getAxisBase())+(n.isBar?-r:r),X=0,Y=t.getFromEnv("numColDiff");return d.config.isVertical&&(a="x",i="width",o="y",l="height"),(V=g(A,K))&&G.push(V),E=(S=K.prevDataObj)&&S[s],T=S&&S[c],Q=S&&S[u],k=K.oldPrevDataObj,L=K.oldPrevDataObj&&K.oldPrevDataObj[c],m=(p=(C=K[s])[a])+(f=C[i]),v=p+f/2,y=(b=z[a])+(B=z[i])/2,U=(m+(b+B))/2,N=Math.sign(v-j),D=Math.sign(y-j),(F={})[a]=(w={})[a]=(p+b)/2,F[i]=w[i]=(f+B)/2,f?N!==D?(F[i]=w[i]=0,w[a]=k&&k._oldPosWRT0===N?L[a]+(1===N?L[i]:0):j,F[a]=Q?Q[a]+(1===D?Q[i]:0):j,I=x=!0):S!==k&&(M=(P=L||!(!T||Math.sign(T[a]+T[i]/2-j)!==N)&&T)?P[a]+(1===N?P[i]:0):j,1===N?(F[a]=w[a]=M,F[i]=w[i]=U-w[a]):F[i]=w[i]=M-w[a],x=!0):S&&S._oldPosWRT0===D||0===t.stackIndex?((_={})[i]=0,_[a]=E?E[a]+(S._posWRT0>0?E[i]:0):j,K._posWRT0=D,K[s]=_,F[a]=w[a]=(_[a]+b)/2,F[i]=w[i]=B/2):v===j&&(D!==K._posWRT0?X=.5:(x=!0,w[a]=1===D?j:j-w[i])),Y<0?(w[o]=z[o],w[l]=z[l],x=!0):Y>0?X=.5:C[o]===z[o]&&C[l]===z[l]||(.5===X?((_={})[o]=z[o],_[l]=z[l],H=function(){I&&W.attr(F),W.attr(_)}):(w[o]=z[o],w[l]=z[l],x=!0,H&&(O=function(){W.attr(_)},H=e))),x&&(G.push({finalAttr:w,startEnd:{start:0,end:.5},hookFn:O,slot:"plot"}),X=.5),!H&&(H=function(){I&&W.attr(F)}),G.push({effect:"linear",startEnd:{start:X,end:1},finalAttr:{x:z.x,y:z.y,width:z.width,height:z.height},callback:function(){null!==K.config.setValue&&K.config.setValue!==e||this.hide()},hookFn:H,slot:"plot"}),delete(R=Object.assign({},z)).x,delete R.y,delete R.width,delete R.height,G.push({finalAttr:R,effect:"linear",slot:"plot"}),K[c]=w,K[u]=F,K._oldPosWRT0=K._posWRT0,K._posWRT0=D,G},"rect._disappearing":function(e){var A,o,l,u,d,p=h.getPixel(h.getAxisBase())+(n.isBar?-r:r),f=t.components.removeDataArr,m=f&&f[e.props&&e.props.originalIndex||e.index]||t.components.data[e.props&&e.props.originalIndex||e.index],v=m&&m.graphics&&m.graphics.element,b=m.oldPrevDataObj&&m.oldPrevDataObj[c],B=[];if(v)return(u=g(e,m))&&B.push(u),h.config.isVertical||(a="x",i="width"),A=(o=(d=m[s])[a])+d[i]/2>p?b?b[a]+b[i]:o:b?b[a]:p,(l={})[a]=A,l[i]=0,l.width=m._width,l.x=m._xPos,B.push({startEnd:{start:0,end:t.getFromEnv("numOfColumns")<1?1:.5},finalAttr:l,slot:"plot"}),m[c]=e.finalAttr,B},"plotLabel.appearing":[{initialAttr:{opacity:0},slot:"final"}],"plotLabel._disappearing":[{hookFn:function(){this.hide()},slot:"initial"}],"plotLabel.updating":[{hookFn:function(){this.hide()},slot:"initial"},{hookFn:function(){this.show()},initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}},"legendInteraction.dataset.column":function(){var e=function(e){return null==e},t=this,n=t.getFromEnv("chart"),A=n.config.yDepth||0,r=t.getFromEnv("yAxis"),a=t.getFromEnv("xAxis"),i="y",o="height",l="x",s="width";return{"rect.disappearing":function(c){var u,h,d,g,p,f,m,v=c.props&&c.props.originalIndex||c.index,b=t.components.data[v],B=t.getFromEnv("updatedIndex"),y=t.getFromEnv("stackIndex"),C=r.getFromEnv("prevScale");if(a.config.isVertical&&(i="x",o="width",l="y",s="height"),e(y)?h=t.getFromEnv("numOfColumns"):(d=t.getFromEnv("numOfColumns"),h=e(B)?d:t.getLinkedParent().getLinkedParent().getFromEnv("numOfColumns")),!e(y)&&d)m=0,f=r.getPixel(b.config._b)+(n.isBar?-A:A);else if(0===h)m=0,f=C.getRangeValue(r.getAxisBase())+(n.isBar?-A:A);else{g=a.getPixel(v)-t.getFromEnv("groupNetWidth")/2+B*(t.getFromEnv("plotWidth")+t.getFromEnv("plotPadding")+t.getFromEnv("plotPadding")/2),p=0}return[{finalAttr:(u={},u[s]=p,u[i]=f,u[o]=m,u[l]=g,u)}]},"rect.updating":function(c){var u,h,d,g,p,f,m=c.props&&c.props.originalIndex||c.index,v=t.components.data[m],b=t.getFromEnv("updatedIndex"),B=t.getFromEnv("stackIndex"),y=r.getFromEnv("prevScale"),C={};if(!t.config.appearing)return[{}];if(a.config.isVertical&&(i="x",o="width",l="y",s="height"),e(B)?u=t.getFromEnv("numOfColumns"):(h=t.getFromEnv("numOfColumns"),u=e(b)?h:t.getLinkedParent().getLinkedParent().getFromEnv("numOfColumns")),e(B)||e(h)||1===h)if(1===u)f=0,g=y.getRangeValue(r.getAxisBase())+(n.isBar?-A:A);else{d=a.getPixel(m)-t.getFromEnv("oldGroupNetWidth")/2+b*(t.getFromEnv("oldPlotWidth")+t.getFromEnv("oldPlotPadding")+t.getFromEnv("oldPlotPadding")/2),p=0}else f=0,g=y.getRangeValue(v.config._b)+(n.isBar?-A:A);return C[l]=e(d)?c.attr[l]:d,C[i]=e(g)?c.attr[i]:g,C[o]=e(f)?c.attr[o]:f,C[s]=e(p)?c.attr[s]:p,[{initialAttr:C}]},"plotLabel.updating":function(){return!t.config.appearing&&t.getState("visible")?[{}]:[{initialAttr:{opacity:0},finalAttr:{opacity:0}}]},"*":null}}}},(e,t)=>{"use strict";t.__esModule=!0,t.findMSColumn3DLineDyParent=function(e){var t=e;for(;null!=(n=t)&&n._linkedParent;){var n,A,r=(null==(A=t=t._linkedParent)?void 0:A.getName())||null;if("MSColumn3DLineDy"===r||"StackedColumn3DLineDy"===r)return t}return null}},,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=A(n(643)),o=n(281),l=n(289),s=A(n(645)),c=n(626),u=Math.abs;(0,l.addDep)({name:"lineAnimation",type:"animationRule",extension:s["default"]});var h=function(e){function t(){var t;return(t=e.call(this)||this).updateYForStack=o.stubFN,t.config.primitiveType="line",t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"line"},n.createPinElem=function(){var e,t,n,A=this,r=A.getFromEnv("chart"),a=arguments[1].group,i=A.config.lineOb,o=A.getGraphicalElement("pinElems")||A.addGraphicalElement("pinElems",[]),l=A.getFromEnv("paper"),s=A.getLinkedParent().getChildContainer("lineVcanvasGroup");for(t=o.length-1;t>=0;t--)o[t].remove(),o.pop();if(A.getState("visible"))for(n in i)e=i[n].el,o.push(l.path(a).attr({path:e.attrs.path,transform:["T",-(r.config._visx+u(s.transform()[0][1])),-r.config.canvasBottom]}).attr(A.config.pin))},n._addLegend=function(){var e,t,n,A=this,r=A.getFromEnv("chart"),a=A.config,i=A.getFromEnv("chart-attrib"),l=r.getChildren("legend")[0],s=(0,o.pluckNumber)(a.drawanchors,1),u=A.config.JSONData||{};a.includeinlegend?(n={enabled:a.includeinlegend,type:A.getName(),drawLine:(0,o.pluck)(a.drawLine,!0),index:A.getJSONIndex(),anchorSide:s?a.anchorsides:0,label:(0,o.getFirstValue)(A.config.JSONData.seriesname),legendIconAlpha:(0,o.pluckNumber)(u.legendiconalpha)},(e=l.getItem(A.config.legendItemId))||(A.config.legendItemId=l.createItem(A),e=l.getItem(A.config.legendItemId),A.addExtEventListener("fc-click",function(){e.itemClickFn()},e)),t={symbol:{fill:(0,o.toRaphaelColor)({color:a.anchorbgcolor,alpha:a.anchorbgalpha}),bgAlpha:(0,o.pluckNumber)(u.legendiconalpha,u.legendiconbgalpha,u.alpha),borderAlpha:(0,o.pluckNumber)(u.legendiconborderalpha,u.legendiconalpha,i.legendiconborderalpha,i.legendiconalpha,"100"),rawFillColor:a.anchorbgcolor,rawStrokeColor:a.anchorbordercolor,stroke:(0,o.toRaphaelColor)({color:a.anchorbordercolor,alpha:"100"}),"stroke-width":a.anchorborderthickness,lineWidth:a.linethickness}},e.setStateCosmetics("default",t),A.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden"),e.configure(n)):A.config.legendItemId&&l.disposeItem(A.config.legendItemId);var h=(0,c.findMSColumn3DLineDyParent)(this);null==h||h.setState("lineLegendItem",e)},n._getDataLimits=function(){var e=this,t=e.config,n=e.getFromEnv("chart").config,A=t.maxValue,r=t.minValue,a=-Infinity,i=+Infinity,o=n.transposeAxis;return!1===e.getState("visible")&&o&&(A=a,r=i),{max:A,min:r}},n._drawCommonElementsHelper=function(e){var t,n,A,a=this,i=o.BLANKSTRING,l={},s=a.getFromEnv("animationManager"),c=a.config,u=c.shadow,h=c.linethickness,d=a.getContainer("commonElemsGroup"),g=function(){!1===a.getState("visible")&&this.hide()};for(i in e){for(t=["M0,0"],n=0,A=(l=e[i]).path&&l.path.length;n<A;++n)t=t.concat(l.path[n].getPathArr());a.config.drawLine?(l.el=s.setAnimation({el:l.el||"path",container:d,component:a,attr:!1!==a.getState("visible")&&Object.assign({path:t},l.attr),label:"line",callback:g}),a.getState("visible")&&l.el&&l.el.show()):l.el&&(l.el=s.setAnimation({el:l.el,component:a,doNotRemove:!0,callback:function(){this.hide()}})),!l.used&&delete e[i],l.el&&(h?l.el.shadow(u,d):l.el.shadow({opacity:0},d),l.el.toFront()),l.old=!0,l.used=!1,l.prevPath=l.path,l.attrs=r,l.path=r}},n.getLineShift=function(e){var t=this.getFromEnv("chart"),n=t.config.is3D,A=t.config.use3dlineshift;return"y"===e?n?A?0:-10:0:n?10:0},n.drawCommonElements=function(){var e,t,n,A,a,i,l,s,c,u,h,d=this,g=d.components.data,p=d.config,f=d.getFromEnv("xAxis"),m=d.getFromEnv("yAxis"),v=p.lineDashStyle,b=p.linethickness,B={color:p.linecolor,alpha:p.alpha},y=[(0,o.toRaphaelColor)(B),v].join(":"),C=y,x={x:f.getLimit(),y:m.getLimit()},w=g.length,F=d.config.lineOb||{},S=0,E=!1,Q=d.getSkippingInfo&&d.getSkippingInfo(),k=Q&&Q.draw||[],L=k.length,U=Q&&Q.skippingApplied,I=function(e,t,n){var A=F[e];A||(A=F[e]={}),e!==C&&(A.hasDifferentColor=!0),A.used=!0,A.pathWithNull=n,A.path=A.path||[],A.stroke=e.split(":")[0],A.dashStyle=e.split(":")[1],A.path.push(t),A.dashStyle=A.dashStyle&&A.dashStyle.split(","),A.attr={"stroke-dasharray":A.dashStyle,"stroke-width":b,stroke:A.stroke,"stroke-linecap":"round","stroke-linejoin":b>2?"round":"miter"}},T=[];for(x.x.minPixel=f.getPixel(x.x.min),x.x.maxPixel=f.getPixel(x.x.max),x.y.minPixel=m.getPixel(x.y.min),x.y.maxPixel=m.getPixel(x.y.max),x.y.base=m.getPixel(0),x.x.base=f.getPixel(0),U&&(w=L),A=0;A<w;++A)(a=g[n=k[A]||A])&&((l=a.config||{})._Pbx=r,l._Pby=r,T[n]={config:{_Px:l._Px,_Py:l._Py,setValue:l.setValue}},t={color:l.setColor,alpha:l.setAlpha},e=l.dashStyle,y!==(i=[(0,o.toRaphaelColor)({color:(0,o.pluck)(t.color,B.color),alpha:(0,o.pluck)(t.alpha,B.alpha)}),e||v].join(":"))&&null!==a._yVal&&(E=!0,s=n,c=d.getLinePath(g,{begin:S,end:s+1}),u=d.getLinePath(g,{begin:S,end:s+1},h),l.connStartIndex=S,l.connEndIndex=s,I(y,c,u.getPathArr()),y=i,S=n,s=null),null!==a._yVal&&(y=i));i||(i=o.BLANKSTRING),p.pathStartIndex=S,p.pathEndIndex=s,I(i,c=d.getLinePath(g,{begin:E?S:p.scrollMinVal,end:E?s:p.scrollMaxVal}),(u=d.getLinePath(g,{begin:S,end:s},h)).getPathArr()),d._drawCommonElementsHelper(F),d.config.lineOb=F,p.prevLim=x,p.prevDataStore=T},n.show=function(){e.prototype.show.call(this),this.fireEvent("datasetVisibilityChanged",{dataset:this,state:"show"})},n.hide=function(){e.prototype.hide.call(this),this.fireEvent("datasetVisibilityChanged",{dataset:this,state:"hide"})},t}(i["default"]);t["default"]=h},(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=A(n(295)),i=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o}(e,t)}(n(624)),o=n(281),l=n(293),s=n(289),c=A(n(644)),u=A(n(355));var h,d=!o.hasSVG,g="none",p="DataPlotRollOver",f="DataPlotRollOut",m="L",v="Z",b="topBorderPath",B=o.hasTouch?o.TOUCH_THRESHOLD_PIXELS:o.CLICK_THRESHOLD_PIXELS,y="pointer",C="eventArgs",x=o.preDefStr.DEFAULT,w=o.preDefStr.setRolloverAttrStr,F=o.preDefStr.setRolloutAttrStr,S=function(e){void 0===e&&(e="full");var t=this.pathMap,n=this.path2Map,A=[],r=[],a=!0;switch(e){case"detailed":for(var i in t)if(t.hasOwnProperty(i)&&(A.push(t[i]),n[i].length)){var o=t[i],l=Object.assign([],n[i]);if(l[l.length-1]===v&&l.pop(),l.length){var s=Object.assign([],o[o.length-1]),c=Object.assign([],o[0]);s[0]="M",c[0]=m,l.unshift(s),l.push(c)}r.push(l)}return(A=A.flat()).length?{top:A,bottom:r.flat()}:{top:["M0,0"],bottom:["M0,0"]};case"top":a=!1;default:for(var u in t)t.hasOwnProperty(u)&&(A.push(t[u]),a&&A.push(n[u]));return(A=A.flat()).length?A:["M0,0"]}},E=function(e){return e!==h&&null!==e&&""!==e},Q=Math,k=Q.min,L=Q.max,U=Q.ceil,I=function(e,t){var n,A,r,a,i,l,s,c,u,h,g,p,f,m,v,b,B,x=e.getFromEnv("chart").config,S=t.config,E=t.graphics,Q=E.image||E.element,U=S.eventArgs,I=Q._.RefImg,T=t._xPos,N=t._yPos,D=S.anchorProps,P=e.getContainer("shadowGroup"),M=S.hoverEffects,H=S.setLink,O=D.imageScale,_=D.imageAlpha,R=M.imageHoverAlpha,V=M.imageHoverScale,G=I.height*O*.01,K=I.width*O*.01,z=I.width*V*.01,W=I.height*V*.01;v=D.isAnchorRadius,D.markerRadius=r=D.radius=v?D.radius:k(K,G)/2,d?(f={x:T-I.width*O*.005,y:N-I.height*O*.005,width:K,height:G},p={x:T-I.width*V*.005,y:N-I.height*V*.005,width:z,height:I.height*V*.01,alpha:R},S.isAnchorsDrawn=!0,x.dragTolerance=x.dragTolerance<G?G+.5:x.dragTolerance,Q.data("alwaysInvisible",!O).data("setRolloverProperties",M).data("hoverEnabled",M).data(w,p).data(F,f).data("imgRef",I).data("anchorRadius",O).data("anchorHoverRadius",V),Q.attr(f),f.alpha=_):(n=D.symbol[1],b=M.isAnchorHoverRadius,a=D.shadow,u=D.imagePadding,M.radius=b?M.anchorRadius:r+1,l=M.radius-u-.5*M.anchorBorderThickness,c=r-u-.5*D.borderThickness,p=f={},x.dragTolerance=x.dragTolerance<r?r+.5:x.dragTolerance,B={fill:(0,o.toRaphaelColor)({color:D.bgColor,alpha:D.bgAlpha}),"stroke-width":D.borderThickness,stroke:(0,o.toRaphaelColor)({color:D.borderColor,alpha:D.borderAlpha})},f=(0,o.extend2)({path:(0,o.polyPathToPath)([n||2,T,N,r,D.startAngle,A])},B),M&&(p={path:(0,o.polyPathToPath)([M.anchorSides||2,T,N,M.radius,M.startAngle,M.dip]),fill:(0,o.toRaphaelColor)({color:M.anchorColor,alpha:M.anchorBgAlpha}),"stroke-width":M.anchorBorderThickness,stroke:(0,o.toRaphaelColor)({color:M.anchorBorderColor,alpha:M.anchorBorderAlpha})},R>(g=L(M.anchorAlpha,M.anchorBorderAlpha))&&(R=g)),D.bgAlpha&&D.borderAlpha&&_>(h=L(D.bgAlpha,D.borderAlpha))&&(_=h),(m=E.element).attr(Object.assign(B,{path:f.path})),m.attr({cursor:H?y:""}).data("alwaysInvisible",!r).data("setRolloverProperties",M).data("hoverEnabled",M.enabled).data(w,p).data(F,f).data("anchorRadius",r).data("anchorHoverRadius",M&&M.radius).data(C,U).shadow(a,P),s=(0,o.polyPathToPath)([n||2,T,N,c>0?c:0,D.startAngle,A]),i=(0,o.polyPathToPath)([n||2,T,N,l>0?l:0,M.startAngle,M.dip]),D.imgRefWidth=I.width,D.imgRefHeight=I.height,D.imgRefScale=O,D.rolloutClipRadius=c,f={x:T-I.width*O*.005,y:N-I.height*O*.005,width:K,height:G,"clip-path":s},p={x:T-I.width*V*.005,y:N-I.height*V*.005,width:z,height:W,alpha:R,"clip-path":i},Q.attr({x:f.x,y:f.y,width:f.width,height:f.height,"clip-path":f["clip-path"]}).data("alwaysInvisible",!O).data("setRolloverProperties",M).data(w,p).data(F,f).data("anchorRadius",O).data("imgRef",I).data("anchorHoverRadius",V),S.isAnchorsDrawn=!0,r=L(r,M&&M.anchorRadius||0,2)),t._xPos=T,t._yPos=N,e.parseLabelAttributes(t,t._index)};(0,s.addDep)({name:"areaAnimation",type:"animationRule",extension:c["default"]});var T=function(e){function t(){var t,n=t=e.call(this)||this;return n.__removeElem=function(e,t){n._setRemoveAnim(e,"element"===t||"image"===t?"anchor":"label")},n.config.primitiveType="area",t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"area"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valueposition=h,t.plotborderdashlen=h,t.plotborderdashgap=h,t.plotborderdashstyle=h,t.plotborderthickness=h,t.linethickness=h,t.linedashlen=h,t.linedashgap=h,t.dashed=h,t.linedashstyle=h,t.linecolor=h,t.linealpha=h,t.anchorbgcolor=h,t.anchorbordercolor=h,t.anchorradius=h,t.anchoralpha=h,t.anchorimageurl=h,t.anchorsides=h,t.anchorbgalpha=h,t.anchorborderthickness=h,t.anchorshadow=h,t.anchorstartangle=h,t.anchorimagealpha=h,t.anchorimagescale=h,t.anchorimagepadding=h,t.alpha=h,t.parentyaxis=h,t.inheritplotbordercolor=h},n._getHoveredPlot=function(e,t){var n,A,r,a,i,o,l=this,s=e,c=l.getFromEnv("xAxis"),u=l.components.data,h=u.length,d=l.config,g=l.getFromEnv("chartConfig").viewPortConfig.step||1,p=d&&d.radius||0,f=(l.getSkippingInfo&&l.getSkippingInfo()).plotsPerBin;for(s+=c.getTranslation(),A=Math.floor(Math.max(c.getValue(s-p),0)),r=Math.ceil(Math.min(c.getValue(s+p),h-1)),f>1&&(A=i=(U(A/f)-1)*f+1,r=U(r/f)*f),o=r;o>=A&&(!(n=u[o])||o%g||!(a=l.isWithinShape(n,o,s,t)));o--);return a},n.getClip=function(e){var t=this.getFromEnv("xAxis"),n=this.getFromEnv("yAxis"),A=n.getLimit(),r=t.getLimit(),a=t.getPixel(r.min),i=n.getPixel(A.min),o=n.getPixel(A.max),l=Math.abs(t.getPixel(r.max)-a),s=i-o,c=[];return c.push(a),c.push(s<0?i:o),"init"===e?c.push(0):"canvas"===e&&c.push(l),c.push(Math.abs(s)),c},n.isWithinShape=function(e,t,n,A,r){var a,i,l,s,c,u,h,d,g,p,f,m,v,b,y=r;if(e&&((y=e.config.setValue)||0===y))return a=e.config.anchorProps,i=e.config,s=a&&a.borderThickness,c=this.getFromEnv("chart").config.viewPortConfig,u=this.components.data,h=(0,o.pluckNumber)(i.dragTolerance,0),b=c?c.x*c.scaleX:0,d=e._xPos-b,null!==(g=e._yPos)?(v=e.config.hoverEffects,(l=Math.max(a&&a.radius,v&&v.anchorRadius||0,B)+s/2)||(l=3),p=n-d,f=A-g,((m=Math.sqrt(Math.pow(p,2)+Math.pow(f,2)))<=l||m<=h)&&{pointIndex:t,hovered:!0,pointObj:u[t]}):void 0},n._parseShadowOptions=function(){var e=this,t=e.getFromEnv("chart"),n=e.config,A=t.getFromEnv("dataSource").chart,r=e.getFromEnv("color-manager"),a=(0,o.pluckNumber)(t.defaultPlotShadow,r.getColor("showShadow"));return{opacity:(0,o.pluckNumber)(A.showshadow,a)?n.alpha/100:0}},n._firePlotEvent=function(e,t,n){var A,r,a,i=this,o=i.getFromEnv("chart"),l=i.components,s=i.getFromEnv("toolTipController"),c=l.data[t]||{},u=i.getGraphicalElement("sharedAnchor"),d=c.graphics&&c.graphics.element||(c.config&&c.config.setValue)!==h&&u,g=this.config.currentToolTip,p=o.getFromEnv("paper").canvas.style;if(d)switch(a=(A=c.config).setLink,r=A.eventArgs,e){case"fc-mouseover":i._decideTooltipType(t,n),i._rolloverResponseSetter(o,c,n),a&&(p.cursor=y);break;case"fc-mouseout":s.hide(g),i._rolloutResponseSetter(o,c,n),p.cursor=x;break;case"fc-click":o.plotEventHandler(d,n,"dataplotclick",r);break;case"fc-mousemove":i._decideTooltipType(t,n)}},n._rolloverResponseSetter=function(e,t,n,A){var r=t.graphics,a=r&&(r.element||this.getAnchor(t)),i=a&&a.data("draged"),o=a&&a.data("hoverEnabled");!0!==i&&(this._hoverFunc(t,p,o,e.getFromEnv("dataSource").chart),!A&&a&&e.plotEventHandler(a,n,p))},n._rolloutResponseSetter=function(e,t,n,A){var r=this,a=t.graphics,i=a&&(a.element||r.getAnchor(t)),o=i&&i.data("draged"),l=i&&i.data("hoverEnabled"),s=r.type,c=t.config,u=c.anchorProps,h=u.radius&&u.anchorAlpha;!0!==o&&(r._hoverFunc(t,f,l,e.getFromEnv("dataSource").chart),!A&&i&&e.plotEventHandler(i,n,f)),c.isAnchorsDrawn&&!h&&"area"===s&&i&&i.hide()},n.getAnchor=function(e){void 0===e&&(e={});var t,n,A,r,a,i,o,l,s,c=this,u=c.getFromEnv("animationManager"),h=c.getGraphicalElement("sharedAnchor"),d=e.config;return h?(t=d.anchorProps,n=d.eventArgs,(i=(a=d.hoverEffects).enabled)&&(A=a.attrs&&a.attrs.setRolloutAttr,r=a.attrs&&a.attrs.setRolloverAttr),o=t.radius,l=t.shadow,s=c.getFromEnv("chartConfig").prevAnchorHovered,a.anchorAnimation=0,e._index!==s&&(h.shadow(l,c.getContainer("shadowGroup")).data("anchorRadius",o).data("anchorHoverRadius",a.anchorRadius).data("hoverEnabled",i).data(C,n),i&&h.data(w,r).data(F,A)),c.getFromEnv("chartConfig").prevAnchorHovered=e._index,h):(h=u.setAnimation({el:"path",container:c.getContainer("plotGroup"),label:"anchor",doNotRemove:!0,component:c}),c.addGraphicalElement("sharedAnchor",h),h)},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e);var t=this,n=t.getFromEnv("chart");t.config.JSONData=e,t.parseAttributes(),t._setConfigure(),t._realTimeConfigure&&t._realTimeConfigure(),!1!==n.config.hasLegend&&n.config.showLegend&&t._addLegend(),t.setState("dirty",!0)},n.parseAttributes=function(){var e,t,n=this,A=n.getFromEnv("chart"),r=A.config,a=n.config,l=n.getName(),s=n.config.JSONData,c=A.getFromEnv("chart-attrib"),u=A.config.singleseries,d=n.getFromEnv("color-manager"),p=Math.floor(n.getJSONIndex()),f=(0,o.pluckNumber)(s.showplotborder,c.showplotborder||1),m=(0,o.getFirstColor)(!u||(0,o.getValidValue)(c.palettecolors)?d.getPlotColor(p):d.getColor("plotFillColor").split(/\s*\,\s*/)[0]),v=r.isdual,b=r.haslineset;a.showTextOutline=(0,o.pluckNumber)(c.textoutline,0),a.maxValue=-Infinity,a.minValue=Infinity,(0,o.parseConfiguration)(s,a,A.config,{data:!0}),a.inheritplotbordercolor=(0,o.pluckNumber)(s.inheritplotbordercolor,c.inheritplotbordercolor,0),a.showValues=(0,o.pluckNumber)(s.showvalues,c.showvalues,"radar"===l?0:1),a.anchorimageurl=(0,o.pluck)(s.anchorimageurl,c.anchorimageurl,h),a.plotColor=m,a.parentYAxis=v&&(b||"s"===(0,o.pluck)(s.parentyaxis&&s.parentyaxis.toLowerCase(),"p"))?1:0,a.valueposition=a.valueposition.toLowerCase(),a.plotfillcolor=(0,o.pluck)(s.color,c.plotfillcolor,m),a.seriesname=(0,o.parseUnsafeString)(s.seriesname),e=r.useplotgradientcolor,a.plotgradientcolor=0!==e?(0,o.getDefinedColor)(c.plotgradientcolor,d.getColor("plotGradientColor")):"",a.usePattern=(0,o.pluckNumber)(r.usePattern,0),a.patternType=i.PATTERN_TYPES.includes(s.patterntype)?s.patterntype:r.patternType,a.patternDensity=(0,o.pluckNumber)(s.patterndensity,r.patternDensity),a.patternAlpha=(0,o.pluckNumber)(s.patternalpha,r.patternAlpha),a.patternBgColor=(0,o.pluck)(s.patternbgcolor,r.patternBgColor,a.patternBgColor),a.patternAngle=(0,o.pluckNumber)(s.patternangle,c.patternangle,a.patternType===i.PATTERN_TYPES[0]?40:0),a.patternSize=(0,o.pluckNumber)(s.patternsize,c.patternsize,a.patternType===i.PATTERN_TYPES[0]?2:4),a.plotfillalpha=(0,o.pluckNumber)(s.alpha,r.plotfillalpha),a.fillColor={color:a.plotfillcolor+(a.plotgradientcolor?","+a.plotgradientcolor:""),alpha:a.plotfillalpha,angle:a.plotfillangle},a.plotborderalpha=f?(0,o.pluck)(s.plotborderalpha,c.plotborderalpha,s.alpha,a.inheritplotbordercolor?"100":c.plotfillalpha,"95"):0,a.plotbordercolor=(0,o.pluck)(s.plotbordercolor,c.plotbordercolor,c.areabordercolor,a.usePattern?a.plotfillcolor:a.inheritplotbordercolor?a.fillColor.color:u?(0,o.getValidValue)(c.palettecolors)?d.getPlotColor(0):d.getColor("plotBorderColor").split(/\s*\,\s*/)[0]:"666666"),a.plotborderColorObject={color:a.plotbordercolor,alpha:a.plotborderalpha,angle:a.plotfillangle},a.drawLine=(0,o.pluckNumber)(s.drawline,c.drawlines,1),a.plotborderdashstyle=a.dashed?(0,o.getDashStyle)(a.plotborderdashlen,a.plotborderdashgap):g,a.linecolor=(0,o.pluck)(s.color,c.linecolor,a.plotColor),a.legendSymbolColor="line"===n.type?a.linecolor:a.plotfillcolor,a.includeinlegend=(0,o.pluckNumber)(s.includeinlegend,a.seriesname?1:0),t=(0,o.getDashStyle)(a.linedashlen,a.linedashgap),a.lineDashStyle=a.dashed?t:g,a.defaultPadding={left:0,right:0},a.shadow=n._parseShadowOptions(),a.drawanchors=(0,o.pluckNumber)(s.drawanchors,s.showanchors,c.showanchors,c.drawanchors),a.anchorbgcolor=(0,o.getFirstColor)((0,o.pluck)("inherit"===s.anchorbgcolor?a.linecolor:s.anchorbgcolor,"inherit"===c.anchorbgcolor?a.linecolor:r.anchorbgcolor,d.getColor("anchorBgColor"))),a.anchorbordercolor=(0,o.getFirstColor)((0,o.pluck)("inherit"===s.anchorbordercolor?a.linecolor:s.anchorbordercolor,"inherit"===c.anchorbordercolor?a.linecolor:r.anchorbordercolor,a.linecolor,a.plotColor)),n.setState("visible",1===(0,o.pluckNumber)(s.visible,!Number(s.initiallyhidden),1)&&a.drawLine)},n._setConfigure=function(e,t){var n,A,r,a,i,s,c,u,d,g=this,p=g.getFromEnv("chart"),f=g.config,m=p.config,v=g.config.JSONData||[],b=g.getFromEnv("xAxis"),y=p.isRealTime,C=m.realTimeConfig&&m.realTimeConfig.numDisplaySets,x=g.getFromEnv("dataSource").categories&&g.getFromEnv("dataSource").categories[0]&&g.getFromEnv("dataSource").categories[0].category,w=f.initCatLen=y?x&&Array.isArray(x)&&x.filter(function(e){return!e.vline}).length||0:b.getTicksLen(),F=e||v.data,S=e&&e.data.length,E=m.isDrag,Q=g.getSkippingInfo&&g.getSkippingInfo(),k=Q&&Q.draw||[],L=k.length,U=Q&&Q.skippingApplied;for(d=S===h&&w>C?w-C:0,r=y?(0,o.pluckNumber)(S,w):Math.min(w,F&&F.length),f.imageCount=0,(a=g.components.data)||(a=g.components.data=[]),f.maxRadius=-Infinity,m.dragTolerance=m.dragTolerance||-Infinity,U&&(r=L),s=d;s<r;s++)i=k[s]||s,e?(n=e&&e.data[i]||{},A=t!==h?a[u=t+i]:a[u=a.length-r+i],c=u):(n=F&&F[i]||{},A=a[i-=d],c=i),A||(A=a[c]={}),A.config||(A.config={}),A.graphics||(A.graphics={}),g._plotConfigure(c,n,S),u&&u++;U&&g.addJob("configureRestID",g._configureRestData.bind(g),l.priorityList.postRender),m.dragTolerance=E?(m.dragTolerance>5?m.dragTolerance:5.5)+B:0,g.ErrorValueConfigure&&g.ErrorValueConfigure()},n._configureRestData=function(){var e,t,n,A,r,a,i=this,o=i.getFromEnv("chart"),l=i.config,s=o.config,c=i.config.JSONData.data||[],u=(i.getSkippingInfo&&i.getSkippingInfo()).drawOnlyMap,h=i.getFromEnv("xAxis").getTicksLen();for(l.imageCount=0,(n=i.components.data)||(n=i.components.data=[]),l.maxRadius=-Infinity,s.dragTolerance=s.dragTolerance||-Infinity,l.maxValue=-Infinity,l.minValue=Infinity,A=0;A<h;A++)u[A]||(t=n[A],e=c&&c[A]||{},r=A,t||(t=n[A]={}),t.config||(n[A].config={}),t.graphics||(t.graphics={}),i._plotConfigure(r,e),a&&a++)},n._plotConfigure=function(e,t,n){var A,r,a,i,l,s,c,u,d,g,p=this,f=p.getFromEnv("chart"),m=f.config.singleseries,v=p.config,b=f.config,y=p.config.JSONData,C=f.getFromEnv("dataSource").chart,x=p.components.data[e],w=p.getFromEnv("xAxis"),F=p.getFromEnv("yAxis"),S=b.isDrag,E=x&&x.config,Q=(0,o.parseUnsafeString)(b.yaxisname),U=(0,o.parseUnsafeString)(b.xaxisname),I=b.tooltipsepchar,T=v.dashed,N=b.realTimeConfig&&b.realTimeConfig.numDisplaySets,D=N-v.initCatLen,P=N&&D>=0?D:0;d=w.getLabel(n?e-n:P+e),E.label=(0,o.getValidValue)((0,o.parseUnsafeString)(d.tooltext||d.label)),t.tooltext!==h&&(t.tooltext=(0,o.parseTooltext)(t.tooltext,[3],{label:d.label},t,C,y)),E.id=m?t.id?(0,o.pluck)(t.id,E.id):(0,o.getValidValue)((0,o.parseUnsafeString)(d.label)):t.id?(0,o.pluck)(t.id,E.id):(0,o.getValidValue)((0,o.parseUnsafeString)(d.label))+"-"+(y.seriesname?y.seriesname:p.getJSONIndex()),E.dataLabelStyle=p._configureDataLabelStyle(t),E.setValue=a=F.getCleanValue(t.value,v.stack100percent),E.setLink=(0,o.pluck)(t.link),E.valuePadding=(0,o.pluckNumber)(t.valuepadding,y.valuepadding,b.valuepadding),E.dragTolerance=S?(g<6?5.5:g+.5)+B:0,E.label=(0,o.getValidValue)((0,o.parseUnsafeString)(d.tooltext||d.label)),E.showValue=(0,o.pluckNumber)(t.showvalue,v.showValues),E.givenPlotShowValue=(0,o.pluckNumber)(t.showvalue),E.dashed=(0,o.pluckNumber)(t.dashed,T),E.dashStyle=E.dashed?(0,o.getDashStyle)(v.linedashlen,v.linedashgap):"none",E.color=(0,o.pluck)(t.color,v.linecolor),E.setColor=t.color,E.setAlpha=t.alpha,E.setDashed=t.dashed,E.alpha=(0,o.pluck)(t.alpha,t.linealpha,v.alpha,v.linealpha),E.origLabel=(0,o.getValidValue)((0,o.parseUnsafeString)(d.label)),E.anchorProps=this._parseAnchorProperties(e),v.maxRadius=L(E.anchorProps.radius+E.anchorProps.borderThickness/2,v.maxRadius),g=E.anchorProps.radius+E.anchorProps.borderThickness/2,null!==a&&(v.maxValue=L(v.maxValue,a),v.minValue=k(v.minValue,a)),E.setTooltext=(0,o.parseUnsafeString)(t.toolText,!1),E.toolTipValue=r=F.dataLabels(a),E.setDisplayValue=i=(0,o.parseUnsafeString)(t.displayvalue),E.displayValue=(0,o.pluck)(i,r),E.formatedVal=c=E.toolTipValue,E.setTooltext=(0,o.getValidValue)((0,o.parseUnsafeString)((0,o.pluck)(t.tooltext,y.plottooltext,C.plottooltext),!1)),E.valuePosition=(0,o.pluck)(t.valueposition,v.valueposition),E.valuePosition&&(E.valuePosition=E.valuePosition.toLowerCase()),b.showtooltip?null===c?A=!1:E.setTooltext!==h?(l=[1,2,3,4,5,6,7],s={yaxisName:Q,xaxisName:U,formattedValue:c,label:E.label},A=(0,o.parseTooltext)(E.setTooltext,l,s,t,C,y)):(b.seriesnameintooltip&&(u=(0,o.getFirstValue)(y&&y.seriesname)),A=u?u+I:"",A+=E.label?E.label+I:"",A+=E.setTooltext?"":E.toolTipValue):A=!1,E.toolText=A,E.setTooltext=A,E.setLevelTooltext=E.setTooltext,E._x=t.index===h?e:t.index,E._y=a,E.finalTooltext=E.setTooltext=A,E.hoverEffects=this._parseHoverEffectOptions(x,t),E.anchorProps.isAnchorHoverRadius=E.hoverEffects.anchorRadius,b.dragTolerance=L(b.dragTolerance,v.maxRadius,E.hoverEffects.anchorRadius)},n.drawCommonElements=function(){var e,t,n,A,r,a,i,l,s,c,d,g,p,f=this,m=f.components.data,v=f.getFromEnv("chart"),B=f.config,y=v.config,C=f.getLinkedParent(),x=f.getJSONIndex(),w=C.config.firstDataSetIndex,F=f.getFromEnv("xAxis"),S=f.getFromEnv("yAxis"),E=B.scrollMinVal,Q=B.scrollMaxVal,k=!y.drawfullareaborder,L=B.plotborderColorObject,U=B.plotborderdashstyle,I=B.plotborderthickness,T=B.fillColor,N=f.getFromEnv("animationManager"),D={x:F.getLimit(),y:S.getLimit()},P=[],M=0,H=0,O="",_=B.shadow,R=f.getContainer("shadowGroup"),V=F.getState("scrolling"),G=f.getSkippingInfo&&f.getSkippingInfo(),K=G&&G.draw||[],z=K.length,W=G&&G.skippingApplied;for(D.x.minPixel=F.getPixel(D.x.min),D.x.maxPixel=F.getPixel(D.x.max),D.y.minPixel=S.getPixel(D.y.min),D.y.maxPixel=S.getPixel(D.y.max),D.y.base=S.getPixel(0),D.x.base=F.getPixel(0),W&&(E=0,Q=z),g=E;g<Q;g++)m[d=K[g]||g]&&m[d].config&&(P[d]={config:{_Px:m[d].config._Px,_Pbx:m[d].config._Pbx,_Py:m[d].config._Py,_Pby:m[d].config._Pby,setValue:m[d].config.setValue}});if(p={begin:E,end:Q},a={path:(n=this.getLinePath(m,V?p:null,!f.getState("visible")&&"base")).getPathArr(),stroke:"none",fill:(0,o.toRaphaelColor)(T)},t=f.getGraphicalElement("lineElement"),e=N.setAnimation({el:t||"path",container:f.getContainer("commonElemsGroup"),attr:f.getState("visible")&&a,component:f,doNotRemove:!0,label:"line",callback:function(){!f.getState("visible")&&this.hide()}}),"string"==typeof a.path?O=a.path:(0,u["default"])(a.path)&&"string"==typeof a.path[0]&&(O=a.path[0]),O){var j=O.split(",");M=parseFloat(j[0].split("M")[1],10),H=parseFloat(j[1],10)}else a.path.length&&(M=a.path[0][1],H=a.path[0][2]);if(e.addPattern({patternType:B.patternType,patternAngle:B.patternAngle,patternDensity:B.patternDensity,patternSize:B.patternSize,color:a.fill,patternAlpha:B.patternAlpha,patternBgColor:B.patternBgColor,alpha:B.plotfillalpha,x:M,y:H},B.usePattern),!t&&e&&f.addGraphicalElement("lineElement",e),f.getState("visible")&&e&&e.show(),f.getState("visible")&&!V&&e.shadow(_,R),i=f.getGraphicalElement("connector"),c=f.getGraphicalElement("bottomConnector"),f.getState("visible")&&i&&i.show(),k)A=n.getPathArr("top"),r=b;else if(w===h||x===w)A=n.getPathArr(),r="line";else{var X=n.getPathArr("detailed");A=X.top,l=X.bottom,r=b,f.getState("visible")&&c&&c.show(),s=f.addGraphicalElement("bottomConnector",N.setAnimation({attr:{path:l,stroke:(0,o.toRaphaelColor)(L),"stroke-width":I,"stroke-linecap":"round","stroke-linejoin":I>2?"round":"miter","stroke-dasharray":U},el:c||"path",container:f.getContainer("commonElemsGroup"),component:f,label:"bottomPath",callback:function(){!f.getState("visible")&&this.hide()}}))}c&&!s&&f.removeGraphicalElement(c),i=f.addGraphicalElement("connector",N.setAnimation({attr:{path:A,stroke:(0,o.toRaphaelColor)(L),"stroke-width":I,"stroke-linecap":"round","stroke-linejoin":I>2?"round":"miter","stroke-dasharray":U},el:i||"path",container:f.getContainer("commonElemsGroupLine")||f.getContainer("commonElemsGroup"),component:f,label:r,callback:function(){!f.getState("visible")&&this.hide()}})),B.prevLim=D,B.prevDataStore=P,"realTimeUpdate"===v.state&&(f.realTimeUpdated=!0),y.connectnulldataOld=y.connectnulldata},n.addDatasetSpecificEvtArgs=function(e){var t=this.config,n=e.config,A=n.anchorProps,r=n.eventArgs,a=n.hoverEffects;Object.assign(r,{color:n.color,alpha:n.alpha,anchorBgColor:A.bgColor,anchorBgAlpha:A.anchorBgAlpha,anchorAlpha:A.anchorAlpha,anchorBorderColor:A.borderColor,anchorBorderThickness:A.borderThickness,anchorRadius:A.radius,anchorSides:A.sides,anchorStartAngle:A.startAngle,anchorHoverColor:a.anchorColor,anchorHoverAlpha:a.anchorAlpha,anchorHoverSides:a.anchorSides,dashed:n.dashed,valuePosition:n.valuePosition}),this.config.usePattern?(r.pattern={patternType:t.patternType,patternColor:t.plotfillcolor,patternBgColor:t.patternBgColor===o.TRACKER_FILL?h:t.patternBgColor},delete r.color):delete r.pattern},n.parsePlotAttributes=function(e,t){var n,A,r,a,i,l,s,c,u,h,d,g=this,p=g.getJSONIndex(),f=g.getState("visible"),m=g.config,v=g.config.JSONData,b=t,B={},y={},C={};c=(d=e.config)._Px,u=d._Py,n=d._x,A=d._y,a=d.setLink,r=d.setValue,B=d.anchorProps,h=d.displayValue,s=d.hoverEffects,l=d.finalTooltext=d.toolText,d.eventArgs={index:b,link:a,value:r,displayValue:h,categoryLabel:d.origLabel,toolText:l,id:d.id,datasetIndex:p||0,datasetName:v.seriesname,visible:f},g.addDatasetSpecificEvtArgs(e),i=B.symbol,e._xPos=c,e._yPos=u,e._xVal=n,e._yVal=A,e._index=b,null!==A&&null!==n?(d.eventArgs.x=n,d.eventArgs.y=A,s.enabled&&(C={path:(0,o.polyPathToPath)([s.anchorSides||2,c,u,s.anchorRadius,s.startAngle,s.dip?s.dip:+("spoke"===m.dip)]),fill:(0,o.toRaphaelColor)({color:s.anchorColor,alpha:s.anchorBgAlpha}),stroke:(0,o.toRaphaelColor)({color:s.anchorBorderColor,alpha:s.anchorBorderAlpha}),"stroke-width":s.anchorBorderThickness},y={path:(0,o.polyPathToPath)([i[1]||2,c,u,B.radius,B.startAngle,d.dip||0]),fill:(0,o.toRaphaelColor)({color:B.bgColor,alpha:B.bgAlpha}),stroke:(0,o.toRaphaelColor)({color:B.borderColor,alpha:B.borderAlpha}),"stroke-width":B.borderThickness},s.attrs={hoverEnabled:s.enabled,anchorRadius:B.radius,anchorHoverRadius:s.anchorRadius},s.attrs[w]=C,s.attrs[F]=y,B.isAnchorHoverRadius=s.attrs.anchorRadius),B.imageUrl&&(d.anchorImageLoaded=!1),d.props={element:{attr:{path:(0,o.polyPathToPath)([i[1]||2,c,u,B.radius,B.startAngle,d.dip||0]),fill:(0,o.toRaphaelColor)({color:B.bgColor,alpha:B.bgAlpha}),stroke:(0,o.toRaphaelColor)({color:B.borderColor,alpha:B.borderAlpha}),"stroke-width":B.borderThickness}}}):r&&(r.isNull=!0)},n.parseLabelAttributes=function(e,t){var n,A,r,a,i,o,l,s,c,u,d,g,p,f,m,v,b,B,y,C,x,w,F,S,Q=this,k=Q.getFromEnv("chart"),L=k.config,U=Q.getFromEnv("smartLabel"),I=k.config.dataLabelStyle,T=Q.components.data,N=L.stack100percent,D=L.rotatevalues?270:0,P=L.canvasTop,M=L.canvasHeight,H=k.config.isstacked,O=t;if(w=(f=e&&e.config)&&f.setValue,e!==h&&w!==h&&null!==w&&!0!==f.labelSkip){switch(u=f.anchorProps,v=e._yPos||e.config._Py,m=e._xPos||e.config._Px,x=u.markerRadius||u.radius-3,r=f.valuePadding+2+x,f.valuePosition){case"above":d=0;break;case"below":d=1;break;default:b=T[O-1]&&T[O-1].config||{},H&&N?(B=b.value,y=f.value):(B=b.setValue,y=f.setValue),d=O&&B>y?1:0}if(n=f.displayValue,C=f.showValue,A=f.dataLabelStyle,E(n)&&""!==n&&null!==y&&C){if(S={text:n,fill:A.color,"text-bound":[A.backgroundColor,A.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]},a=U.getOriSize(n),f._state=f._state||{},D?(f._state.labelWidth=a.height,f._state.labelHeight=a.width,f._rotated=!0):(f._state.labelWidth=a.width,f._state.labelHeight=a.height,f._rotated=!1),i=o=f._state.labelHeight,c=.5*o+r,g=v-P,p=P+M-v,l=v,s=m,F=(i+=r)+4,d?p>F?(l+=c,f._valueBelowPoint=1):g>F&&(l-=c,f._valueBelowPoint=0):g>F?(l-=c,f._valueBelowPoint=0):p>F&&(l+=c,f._valueBelowPoint=1),Q.getFromEnv("useImprovedLabelPlacement")&&L.showSum&&!N){var _=i+2;l<P+_+i/2?l=P+_+i/2:l>P+M-_-i/2+c&&(l=P+M-_-i/2+c)}S.x=s,S.y=l}f.props=f.props||{},f.props.label={attr:S}}else f&&delete f.labelSkip},n.allocatePosition=function(){var e,t,n=this,A=n.config,r=n.getFromEnv("chart"),a=r.config,i=n.components,o=i.data,l=n.getFromEnv("xAxis"),s=0,c=0,u=a.isstacked,d=a.viewPortConfig.step||1,g=r.hasScroll,p=n.getSkippingInfo&&n.getSkippingInfo(),f=p&&p.labelDraw||[],m=p&&p.draw||[];for(t=i.animAttrs=[],n.calculateScrollRange(),l.getState("scrolling")||u&&n.updateYForStack(),n.createCoordinates(),c=A.scrollMinVal;c<A.scrollMaxVal;c+=d)s=m[c]||c,g&&!a.skipAttr&&(s<undefined||s>undefined)||((e=o[s])&&e.config?n.parsePlotAttributes(e,s):t[s]=h);d>1&&A.skipIgnorerIndices.map(function(e){return o[e]}).filter(function(e){return e||e.config}).forEach(function(e){return n.parsePlotAttributes(e,s)});var v=function(){if(s=f[c]||c,e=o[s],"Multi-series Line Chart"===a.friendlyName){if(a.cleandatapoints&&a.cleandatapoints.groupingvalues)if(a.cleandatapoints.singlegroupval&&e)for(var t=r._env.chartInstance.args.dataSource.dataset,A=0;A<t.length;A++){var i=e.config.setValue,l=parseInt(t[A].data[s].value,10),u=e.config.eventArgs.datasetName,h=t[A].seriesname;i<=l&&u!==h&&(e.config.displayValue=null)}else for(var d=r._env.chartInstance.args.dataSource.dataset,g=0;g<d.length&&e;g++){var p=e.config.setValue,m=parseInt(d[g].data[s].value,10),v=e.config.eventArgs.datasetName,b=d[g].seriesname,B=a.height;p-m>=-1e6/B&&p-m<=1e6/B&&v>b&&(e.config.displayValue=null)}if(e&&a.cleandatapoints&&a.cleandatapoints.groupingvalues){var y=a.cleandatapoints.bggroupopacity||.3;function C(e){if(e){var t;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))return 3===(t=e.substring(1).split("")).length&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),"rgba("+[(t="0x"+t.join(""))>>16&255,t>>8&255,255&t].join(",")+","+y+")";throw new Error("Bad Hex")}return""}0===a.cleandatapoints.bggroupopacity&&(y=0),e.config.dataLabelStyle.backgroundColor=C(a.cleandatapoints.bggroupcolor)||"",a.dataLabelStyle.borderPadding=a.cleandatapoints.bggrouppadding||2}}n.parseLabelAttributes(e,s)};for(c=A.scrollMinValForLabel;c<A.scrollMaxValForLabel;c+=d)v()},n.drawPlot=function(e,t){var n,A,r,a=this,i=a.config,o=e.config,l=e.graphics,s=o.anchorProps,c=a.getState("visible"),u=s.radius,d=s.shadow,g=s.anchorAlpha,p=u&&g,f=a.getContainer("plotGroup"),m=a.getContainer("shadowGroup"),v=a.getFromEnv("animationManager");null!==o._y&&null!==o._x?(s.imageUrl?a.drawAnchorImage(e):(n=l.element,(r=l.image)&&r.remove(),delete l.image,(i.drawanchors||p)&&c&&null!==e.config.setValue?(n=l.element=v.setAnimation({el:n||"path",container:f,attr:o.props.element.attr,index:t,length:length,callback:function(){this.show()},component:a,label:"anchor"})).shadow(d,m):n&&(a.__removeElem(l.element,"element"),delete l.element,n=h)),A=o.hoverEffects,n&&(A.enabled?n.data("hoverEnabled",A.attrs.hoverEnabled).data("anchorRadius",A.attrs.anchorRadius).data("anchorHoverRadius",A.attrs.anchorHoverRadius).data(w,A.attrs[w]).data(F,A.attrs[F]):n.data("hoverEnabled",!1),n.data(C,o&&o.eventArgs))):l.element&&(l.element=v.setAnimation({el:l.element,component:a}))},n.drawPlots=function(){var e,t,n,A=this,r=A.getFromEnv("chart").config,a=A.components,i=A.config,o=a.data,l=0,s=0,c=a.animAttrs,u=i._oldStartIndex,d=i._oldEndIndex,g=A.getGraphicalElement("sharedAnchor"),p=r.viewPortConfig.step||1,f=A.getSkippingInfo&&A.getSkippingInfo(),m=f&&f.draw||[];for(c=a.animAttrs=[],t=i.scrollMinVal,n=i.scrollMaxVal,t>u&&A.flushOnScroll(u,t>d?d:t),n<d&&A.flushOnScroll(n<u?u:n,d),i._oldStartIndex=t,i._oldEndIndex=n,A.hideAllAnchors&&A.hideAllAnchors(),s=t;s<n;s+=p)l=m[s]||s,(e=o[l])&&e.config?A.drawPlot(e,l):c[l]=h;p>1&&i.skipIgnorerIndices.map(function(e){return o[e]}).filter(function(e){return e||e.config}).forEach(function(e){return A.drawPlot(e,l)}),0===l||i.drawanchors?g&&g.hide():g?g.hide():A.getAnchor()},n.drawAnchorImage=function(e){var t,n=this,A=n.getContainer("plotGroup"),r=e.graphics,a=n.getFromEnv("animationManager"),i=d?r.element:r.image,o=e.config.anchorProps,l=o.anchorAlpha&&o.radius,s=o.imageAlpha;n.getState("visible")&&l?(d||(r.element=a.setAnimation({el:r.element||"path",container:A,attr:e.config.props.element.attr,label:"anchor",component:n}).show()),e.config.props.element.attr.opacity=.01*s,t=a.setAnimation({el:i||"image",container:A,component:n,label:"anchor",attr:{opacity:.01*s}}),d?r.element=t:r.image=t,i?t.attrs.src!==o.imageUrl?t.attr("src",o.imageUrl):t._.RefImg&&I(n,e):(t.on("load",n._onAnchorImageLoad(e)),t.attr("src",o.imageUrl)),t.show()):(r.image&&a.setAnimation({el:r.image,state:"disappearing",component:n,doNotRemove:!0,callback:function(){this.hide()}}),r.element&&a.setAnimation({el:r.element,state:"disappearing",component:n,doNotRemove:!0,callback:function(){this.hide()}}))},n.getLineSegment=function(e,t,n){var A=t._Px,r=t._Py,a=t._Pbx,i=t._Pby,o=this.getFromEnv("yAxis").getPixel(0),l=t.setValue,s="path-"+e.pathCount,c=this.getFromEnv("chart").config.connectnulldata;return"zero"===n?(r=o,i=o):"base"===n&&(r=t._Pby),e.pathMap[s]||(e.pathMap[s]=[]),e.path2Map[s]||(e.path2Map[s]=[]),null===l||l.isNull?c||(e.pointsJoined>0&&e.path2Map[s][e.path2Map[s].length-1]!==v&&i!==h&&e.path2Map[s].push(v),e.temp=[],e.temp2=[],e.lastValidValue=!1):e.lastValidValue?(e.temp.length&&(e.pathMap[s]=e.pathMap[s].concat(e.temp),a!==h&&(e.path2Map[s]=e.temp2,e.temp2=[]),e.temp=[],e.pointsJoined++),e.pathMap[s].push([m,A,r]),i!==h&&e.path2Map[s].unshift([m,A,i])):(e.temp.push(["M",A,r]),i!==h&&e.temp2.push([m,a,i]),e.pointsJoined=0,e.lastValidValue=!0,e.pathCount++),e},n.getLinePath=function(e,t,n){var A,r,a,i,o,l,s,c,u,d=this,g=d.getFromEnv("chart").config,p=e.length,f=t&&t.begin||0,m=d.getState("visible")?t&&t.end||p:0,b=g.viewPortConfig.step||1,B=(d.removeDataLen,[]),y=d.getSkippingInfo&&d.getSkippingInfo(),C=y&&y.draw||[],x=C.length,w=y&&y.skippingApplied,F=d.config.skipIgnorerIndices,E=[],Q={},k=0;for(B=B.concat(e),w&&(f=0,m=x),r=f+0;r<m+0;r+=b)if(o=B[A=C[r]||r])if((a=o.config).setValue===h||a&&!0===a.isSkipped)a&&delete a.isSkipped;else{if(b>1)for(;F[k]<r;)(s=B[F[k]])&&((c=s.config).setValue===h||c&&!0===c.isSkipped?c&&delete c.isSkipped:(E=E.concat(c),k++));E=E.concat(a),i=a._Pby,l=r}if(b>1)for(A=l+1;A<=r;A++)(o=B[C[A]||A])&&((a=o.config).setValue===h||a&&!0===a.isSkipped?a&&delete a.isSkipped:F.includes(A)&&(E=E.concat(a),i=a._Pby));return u="path-"+(Q=E.reduce(function(e,t){return d.getLineSegment(e,t,n)},{temp:[],temp2:[],pathMap:{},path2Map:{},pointsJoined:0,lastValidValue:!1,getPathArr:S,pathCount:0})).pathCount,Q.path2Map[u]&&Q.path2Map[u][Q.path2Map[u].length-1]!==v&&Q.pointsJoined>0&&i!==h&&Q.path2Map[u].push(v),Q},n._removeDataVisuals=function(e){var t,n,A,r,a=this.components.pool||(this.components.pool={});if(e)for(n in A=e.graphics)t=a[n]||(a[n]=[]),(r=A[n])&&r.hide&&"function"==typeof r.hide&&(r.attr({"text-bound":[]}),r.hide(),r.shadow&&r.shadow(!1)),t.push(A[n])},n._parseAnchorProperties=function(e,t){var n,A,r,a=this,i=a.config,l=a.getName(),s=a.getFromEnv("chart"),c=s.config.anchoralpha,u=a.components.data[e],d=u&&u.config,g=!s.config.anchoralpha&&/area/gi.test(l)?0:1,p=i.JSONData,f=s.getFromEnv("dataSource").chart,m=(t||p.data||[])[e]||{},v={};return A=(0,o.pluck)(m.anchorstartangle,p.anchorstartangle,f.anchorstartangle,m.anchorimagealpha,p.anchorimagealpha,f.anchorimagealpha,m.anchorimagescale,p.anchorimagescale,f.anchorimagescale,m.anchorimagepadding,p.anchorimagepadding,f.anchorimagepadding,m.anchorimageurl,p.anchorimageurl,f.anchorimageurl,m.anchorradius,p.anchorradius,f.anchorradius,m.anchorbgcolor,p.anchorbgcolor,f.anchorbgcolor,m.anchorbordercolor,p.anchorbordercolor,f.anchorbordercolor,m.anchoralpha,p.anchoralpha,f.anchoralpha,m.anchorsides,p.anchorsides,f.anchorsides,m.anchorborderthickness,p.anchorborderthickness,f.anchorborderthickness,h)!==h,r=(0,o.pluckNumber)(m.drawanchors,i.drawanchors),v.enabled=A?(0,o.pluckNumber)(r,A):(0,o.pluckNumber)(r,g),v.startAngle=(0,o.pluckNumber)(m.anchorstartangle,i.anchorstartangle),v.imageAlpha=(0,o.pluckNumber)("inherit"===m.anchorimagealpha?d.alpha:m.anchorimagealpha,"inherit"===p.anchorimagealpha?d.alpha:p.anchorimagealpha,"inherit"===f.anchorimagealpha?d.alpha:f.anchorimagealpha,i.anchorimagealpha),v.imageScale=(0,o.pluckNumber)(m.anchorimagescale,i.anchorimagescale),v.imagePadding=(0,o.pluckNumber)(m.anchorimagepadding,i.anchorimagepadding),v.imagePadding<0&&(v.imagePadding=0),v.imageUrl=(0,o.pluck)(m.anchorimageurl,i.anchorimageurl),v.imageUrl&&i.imageCount++,v.radius=v.enabled?(0,o.pluckNumber)(m.anchorradius,i.anchorradius):0,v.isAnchorRadius=(0,o.pluck)(m.anchorradius,p.anchorradius,f.anchorradius),v.bgColor=(0,o.pluck)("inherit"===m.anchorbgcolor?d.color:m.anchorbgcolor,"inherit"===p.anchorbgcolor?d.color:p.anchorbgcolor,"inherit"===f.anchorbgcolor?d.color:i.anchorbgcolor),c=v.enabled?(0,o.getFirstAlpha)((0,o.pluck)("inherit"===m.anchoralpha?d.alpha:m.anchoralpha,"inherit"===p.anchoralpha?d.alpha:p.anchoralpha,"inherit"===f.anchoralpha?d.alpha:f.anchoralpha,i.anchoralpha,v.enabled?o.HUNDREDSTRING:"0")):0,v.anchorAlpha=c,v.anchorBgAlpha=(0,o.pluckNumber)("inherit"===m.anchorbgalpha?d.alpha:m.anchorbgalpha,"inherit"===p.anchorbgalpha?d.alpha:p.anchorbgalpha,"inherit"===f.anchorbgalpha?d.alpha:f.anchorbgalpha,i.anchorbgalpha,c),v.bgAlpha=(0,o.getFirstAlpha)(v.anchorBgAlpha)*c/100,v.imageAlpha=v.imageAlpha*c/100,v.borderColor=(0,o.pluck)("inherit"===m.anchorbordercolor?d.color:m.anchorbordercolor,"inherit"===p.anchorbordercolor?d.color:p.anchorbordercolor,"inherit"===f.anchorbordercolor?d.color:i.anchorbordercolor),v.borderAlpha=c,v.sides=(0,o.pluck)(m.anchorsides,i.anchorsides),v.borderThickness=(0,o.pluck)(m.anchorborderthickness,i.anchorborderthickness),v.symbol=(0,o.mapSymbolName)(v.sides).split("_"),n=(0,o.pluckNumber)(m.anchorshadow,i.anchorshadow)&&v.radius>=1,v.shadow={opacity:n?c/100:0},v},n._hideGraphics=function(e){var t,n;for(n in e)if(e.hasOwnProperty(n)){if(!(t=e[n]))continue;t.hide?t.hide():this._hideGraphics(t)}},n._parseHoverEffectOptions=function(e,t){var n=this,A=t,r=n.config.JSONData,a=n.getFromEnv("chart"),i=a.getFromEnv("dataSource").chart,l=a.config,s=e.config,c=n.config,u=s.anchorProps||{},d=l.plothovereffect,g=c.drawanchors,p={enabled:!1};return A=A||{},0!==d&&0!==g&&(p.enabled=(0,o.pluck)(A.hovercolor,A.anchorhovercolor,A.hovercolor,r.hovercolor,A.anchorbghovercolor,r.anchorbghovercolor,i.anchorbghovercolor,r.anchorhovercolor,i.anchorhovercolor,A.hoveralpha,A.anchorhoveralpha,r.anchorhoveralpha,i.anchorhoveralpha,A.bghoveralpha,A.anchorbghoveralpha,r.anchorbghoveralpha,i.anchorbghoveralpha,A.anchorborderhovercolor,A.borderhovercolor,r.anchorborderhovercolor,i.anchorborderhovercolor,A.anchorborderhoverthickness,A.borderhoverthickness,r.anchorborderhoverthickness,i.anchorborderhoverthickness,A.anchorborderhoveralpha,A.borderhoveralpha,r.anchorborderhoveralpha,i.anchorborderhoveralpha,A.hoverdip,A.anchorhoverdip,r.anchorhoverdip,i.anchorhoverdip,A.anchorhoverstartangle,r.anchorhoverstartangle,i.anchorhoverstartangle,A.hoversides,A.anchorhoversides,r.anchorhoversides,i.anchorhoversides,A.hoverradius,A.anchorhoverradius,r.anchorhoverradius,i.anchorhoverradius,r.plotfillhovercolor,i.plotfillhovercolor,l.plothovereffect,h)!==h,p.startAngle=(0,o.pluckNumber)(A.anchorhoverstartangle,r.anchorhoverstartangle,i.anchorhoverstartangle,u.startAngle),p.hoverColor=(0,o.pluck)(A.hovercolor,A.anchorhovercolor,r.hovercolor,A.anchorbghovercolor,r.anchorbghovercolor,i.anchorbghovercolor,r.anchorhovercolor,i.anchorhovercolor,i.plotfillhovercolor),p.hoverAlpha=(0,o.pluck)(A.hoveralpha,A.anchorhoveralpha,r.anchorhoveralpha,i.anchorhoveralpha,A.bghoveralpha,A.anchorbghoveralpha,r.anchorbghoveralpha,i.anchorbghoveralpha,r.hoveralpha,i.plotfillhoveralpha),p.anchorSides=(0,o.pluckNumber)(A.hoversides,A.anchorhoversides,r.anchorhoversides,i.anchorhoversides,u.sides),p.anchorRadius=(0,o.pluckNumber)(A.anchorhoverradius,r.anchorhoverradius,i.anchorhoverradius),p.isAnchorHoverRadius=p.anchorRadius,p.anchorRadius=(0,o.pluckNumber)(p.anchorRadius,u.radius+(d?2:0)),p.anchorScale=(0,o.pluck)(A.hoverscale,r.anchorscale,i.anchorscale),p.imageHoverScale=(0,o.pluckNumber)(A.anchorimagehoverScale,r.anchorimagehoverscale,i.anchorimagehoverscale,110),p.imageHoverAlpha=(0,o.pluckNumber)(A.anchorimagehoveralpha,r.anchorimaghoverealpha,i.anchorimagehoveralpha),p.anchorAlpha=(0,o.pluck)(A.anchorhoveralpha,A.hoveralpha,r.anchorhoveralpha,i.anchorhoveralpha,u.anchorAlpha),p.anchorColor=(0,o.getFirstColor)((0,o.pluck)(A.hovercolor,A.anchorhovercolor,A.hoverColor,A.anchorbghovercolor,r.anchorbghovercolor,r.anchorhovercolor,r.hovercolor,i.anchorbghovercolor,i.anchorhovercolor,i.plotfillhovercolor,u.bgColor)),p.anchorBgAlpha=(0,o.pluck)(A.bghoveralpha,A.anchorbghoveralpha,r.anchorbghoveralpha,i.anchorbghoveralpha,i.plotfillhoveralpha,u.bgAlpha),p.anchorBgAlpha=p.anchorBgAlpha*p.anchorAlpha/100,p.anchorBorderColor=(0,o.pluck)(A.borderhovercolor,A.anchorborderhovercolor,r.anchorborderhovercolor,i.anchorborderhovercolor,u.borderColor),p.anchorBorderAlpha=(0,o.pluck)(A.borderhoveralpha,A.anchorborderhoveralpha,r.anchorborderhoveralpha,i.anchorborderhoveralpha,p.anchorAlpha,u.borderAlpha),p.anchorBorderThickness=(0,o.pluckNumber)(A.borderhoverthickness,A.anchorborderhoverthickness,r.anchorborderhoverthickness,i.anchorborderhoverthickness,i.anchorBorderThickness,u.borderThickness),p.dip=(0,o.pluck)(A.hoverdip,A.anchorhoverdip,r.anchorhoverdip,i.anchorhoverdip,u.dip),p.anchorAnimation=(0,o.pluckNumber)(A.anchorhoveranimation,r.anchorhoveranimation,i.anchorhoveranimation,1)),p},n._hoverPlotAnchor=function(e,t){var n,A,r,a,i,o=this,l=o.getFromEnv("smartLabel"),s=o.getFromEnv("chart").getChildren("canvas")[0].getEffectiveDimensions(),c=s.top,u=c+s.height,h=e.config._Py,g=o.getFromEnv("animationManager"),m=o.getGraphicalElement("sharedAnchor"),v=e.graphics.element||m,b=e.graphics.label,B=e.config||{},y=B.anchorProps.anchorAlpha,C=B&&B.anchorProps.imageUrl,x=d&&C?e.graphics.element:e.graphics.image,S="image"===v.type,E=v.data("anchorRadius"),Q=v.data("anchorHoverRadius"),k=v.data(w)||{},L=v.data(F)||{},U=b&&(b.data("isBelow")?1:-1)*(S?.5*(k.height-L.height):Q-E),I=t===p?k:L,T=!0,N={path:I.path},D={fill:I.fill,"stroke-width":I["stroke-width"],stroke:I.stroke},P=b&&b.data("rotation")||"";h-3*(n=l.getOriSize(B.displayValue).height)/2+U<c?U=c-h+3*n/2:h+3*n/2+U>u&&(U=u-h-3*n/2),i={transform:"T0,"+(t===p?U:0)+P},g.setAnimationState(t===p?"mouseOver":"mouseOut"),x&&(r=x.data(w),a=x.data(F),(A=t===p?r:a).alpha*=.01),S?N.alpha*=.01:Object.assign(N,D),(t===p&&!Q||t===f&&!E)&&(T=!1),g.setAnimation({el:v,label:"anchor",component:o,doNotRemove:!0,callback:function(){!T&&v.hide()},attr:T&&N}),T&&v.show(),x&&(g.setAnimation({el:x,label:"anchor",component:o,attr:T&&A}),T&&x.show()),(e.graphics&&e.graphics.element||m&&m.element)&&y&&b&&g.setAnimation({el:b,label:"label",component:o,doNotRemove:!0,attr:i})},n.drawLabel=function(e,t){var n,A,r,a,i,l,s,c,u,d,g,p,f=this,m=f.config,v=f.getFromEnv("chart"),b=v.config,B=f.getFromEnv("smartLabel"),y=v.config.dataLabelStyle,C=f.getFromEnv("toolTipController"),x=f.components.data,w=f.getFromEnv("paper"),F=f.getFromEnv("animationManager"),S="",Q=b.rotatevalues?270:0,k=f.getContainer("labelGroup"),L=f.getState("visible"),U=x.length,I=f.getSkippingInfo&&f.getSkippingInfo(),T=I&&I.skippingApplied,N=I&&I.labelDraw||[],D=N.length,P=(0,o.pluckNumber)(e,0),M=(0,o.pluckNumber)(t,T?D:U),H=D===Math.abs(M-(P+1));for(s={"font-weight":y.fontWeight,"font-style":y.fontStyle,"font-family":y.fontFamily,"font-size":y.fontSize,"line-height":y.lineHeight},B.setStyle(s),u=P;u<M;u++)d=(a=(c=x[T&&H?N[u]:u])&&c.config)&&a.setValue,c!==h&&d!==h&&null!==d&&!0!==a.labelSkip?(n=c.graphics,S=a.displayValue,i=a.showValue,l=n.label,g=a.props.label.attr,E(S)&&i&&L?(r=a.props.label.attr.x,A=a.props.label.attr.y,g.transform=w.getSuggestiveRotation(Q,r,A),n.label=l=F.setAnimation({el:l||"text",container:k,component:f,attr:g,label:"label"}),l.data("isBelow",a._valueBelowPoint),l.data("rotation",g.transform),l&&l.outlineText(m.showTextOutline,g.fill),b.showtooltip&&l.abbrArr&&l.abbrArr.length&&C.enableToolTip(l,h)):l&&(n.label=F.setAnimation({el:l,component:f,label:"label"}))):(a&&delete a.labelSkip,(p=c&&c.graphics)&&p.label&&(p.label=F.setAnimation({el:p.label,component:f})))},n.getAxisValuePadding=function(){return this.config.defaultPadding},n._hoverFunc=function(e,t,n,A){if(n)return this._hoverPlotAnchor(e,t,A)},n._onAnchorImageLoad=function(e){var t=this;return function(){var n=e._index;I(t,e),t.config.drawn?t.drawLabel(n,n+1):t.addJob("labelUpdateOnImageLoadID"+n,function(){t.drawLabel(n,n+1)},l.priorityList.label)}},t}(i["default"]);t["default"]=T},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(e){var t=e.component,n=t.components.data,A=t.getFromEnv("chartConfig").isstacked,r=t.getLinePath(n).getPathArr("detailed").bottom,a=t.getState("_total"),i=t.config._childIndex;if(r.length&&Array.isArray(r[0])){var o=r.length;r[0]=Object.assign([],r[1]),r[0][0]="M",r[o-1]=Object.assign([],r[o-2])}return[{initialAttr:{opacity:0,path:r},finalAttr:{opacity:1,path:e.attr.path},startEnd:{start:A?.5/a*i:0,end:A?.5/a*(i+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]},A=function(e){var t=e.component,n=t.components.data,A=t.getFromEnv("chartConfig").isstacked,r=t.getFromEnv("chartConfig").is3D,a=t.getLinePath(n,null,A||r?"base":"zero").getPathArr("top"),i=e.attr,o=t.getState("_total"),l=t.config._childIndex;return[{initialAttr:{opacity:0,path:a},finalAttr:{opacity:1,path:i.path},startEnd:{start:A?.5/o*l:0,end:A?.5/o*(l+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]},r=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},a=function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},i=function(e){var t=e.component,n=t.components.data,A=t.getFromEnv("chartConfig").isstacked,r=t.getFromEnv("chartConfig").is3D,a=t.getLinePath(n,null,A||r?"base":"zero"),i=e.attr,o=t.getState("_total"),l=t.config._childIndex;return[{initialAttr:{opacity:0,path:a.getPathArr()},finalAttr:{opacity:1,path:i.path},startEnd:{start:A?.5/o*l:0,end:A?.5/o*(l+1):.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]};t["default"]={"*.dataset.area":function(){return{"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}],"anchor.updating":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"anchor.disappearing":[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}],"line.appearing":i,"topBorderPath.appearing":A,"bottomPath.appearing":n,"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"label.updating":r,"group.appearing":a,"*":null}}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"*.dataset.line":function(){var e=this.getClip("canvas"),t=this.getClip("init");return{"anchor.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"anchor.updating":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"anchor.disappearing":function(){return[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"plot"}]},"line.appearing":function(){return[{initialAttr:{"clip-rect":t},finalAttr:{"clip-rect":e},slot:"middle",callback:function(){this.attr({"clip-rect":null})}}]},"line.updating":function(){return[{initialAttr:{opacity:1,"clip-rect":t},finalAttr:{opacity:1,"clip-rect":e},slot:"plot"}]},"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.__feedAxesRawData=s,t.__postSpaceManagement=u,t.__spaceManager=c,t["default"]=void 0;var r=A(n(295)),a=A(n(652)),i=A(n(624)),o=n(281),l=A(n(428));function s(){var e,t,n=this,A=n.config,r=n.getFromEnv("color-manager"),a=n.getFromEnv("dataSource"),i=a.chart,s=n.config.is3D,c=s?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,u=(0,o.pluckFontSizeMaintainUnit)(i.outcnvbasefontsize,i.basefontsize,10);return e={isVertical:!0,isReverse:!1,isOpposit:(0,l["default"])(i.xaxisposition,"right"),outCanfontFamily:(0,o.pluck)(i.outcnvbasefont,i.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(u),outCanfontSizeWithUnit:u,outCancolor:(0,o.pluck)(i.outcnvbasefontcolor,i.basefontcolor,r.getColor(c.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:i.xaxisnamepadding,maxLabelWidthPercent:i.maxlabelwidthpercent,minLabelWidthPercent:i.minlabelwidthpercent,axisValuePadding:i.labelpadding,axisNameFont:i.xaxisnamefont,axisNameFontSize:this.computeFontSize(i.xaxisnamefontsize),axisNameFontSizeWithUnit:i.xaxisnamefontsize,axisNameFontColor:i.xaxisnamefontcolor,axisNameFontBold:i.xaxisnamefontbold,axisNameFontItalic:i.xaxisnamefontitalic,axisNameBgColor:i.xaxisnamebgcolor,axisNameBorderColor:i.xaxisnamebordercolor,axisNameAlpha:i.xaxisnamealpha,axisNameFontAlpha:i.xaxisnamefontalpha,axisNameBgAlpha:i.xaxisnamebgalpha,axisNameBorderAlpha:i.xaxisnameborderalpha,axisNameBorderPadding:i.xaxisnameborderpadding,axisNameBorderRadius:i.xaxisnameborderradius,axisNameBorderThickness:i.xaxisnameborderthickness,axisNameBorderDashed:i.xaxisnameborderdashed,axisNameBorderDashLen:i.xaxisnameborderdashlen,axisNameBorderDashGap:i.xaxisnameborderdashgap,axisNameWidth:i.xaxisnamewidth,useEllipsesWhenOverflow:i.useellipseswhenoverflow,divLineColor:(0,o.pluck)(i.vdivlinecolor,i.divlinecolor,r.getColor(c.divLineColor)),divLineAlpha:(0,o.pluck)(i.vdivlinealpha,i.divlinealpha,s?r.getColor("divLineAlpha3D"):r.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(i.vdivlinethickness,i.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(i.vdivlinedashed,i.vdivlineisdashed,i.divlinedashed,i.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(i.vdivlinedashlen,i.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(i.vdivlinedashgap,i.divlinedashgap,2),showAlternateGridColor:0,alternateGridColor:(0,o.pluck)(i.alternatehgridcolor,r.getColor("altHGridColor")),alternateGridAlpha:(0,o.pluck)(i.alternatehgridalpha,r.getColor("altHGridAlpha")),numDivLines:i.numvdivlines,labelFont:i.labelfont,labelFontSize:this.computeFontSize(i.labelfontsize),labelFontSizeWithUnit:i.labelfontsize,labelFontColor:i.labelfontcolor,labelAlpha:i.labelalpha,labelFontBold:i.labelfontbold,labelFontItalic:i.labelfontitalic,labelBdrColor:i.labelbordercolor,labelBdrAlpha:i.labelborderalpha,labelLink:i.labellink,labelBgColor:i.labelbgcolor,labelBgAlpha:i.labelbgalpha,labelBdrThickness:i.labelborderthickness,labelBdrPadding:i.labelborderpadding,labelBdrRadius:i.labelborderradius,labelBdrDashed:i.labelborderdashed,labelBdrDashLen:i.labelborderdashlen,labelBdrDashGap:i.labelborderdashgap,axisName:i.xaxisname,axisMinValue:i.xaxisminvalue,axisMaxValue:i.xaxismaxvalue,setAdaptiveMin:i.setadaptivexmin,adjustDiv:i.adjustvdiv,labelDisplay:i.labeldisplay,showLabels:i.showlabels,rotateLabels:i.rotatelabels,slantLabel:(0,o.pluckNumber)(i.slantlabels,i.slantlabel),labelStep:(0,o.pluckNumber)(i.labelstep,i.xaxisvaluesstep),showAxisValues:(0,o.pluckNumber)(i.showxaxisvalues,i.showxaxisvalue),showLimits:i.showvlimits,showDivLineValues:(0,o.pluckNumber)(i.showvdivlinevalues,i.showvdivlinevalues),zeroPlaneColor:i.vzeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(i.vzeroplanethickness,i.vdivlinethickness,2),zeroPlaneAlpha:(0,o.pluckNumber)(i.vzeroplanealpha,i.vdivlinealpha,A.zeroplanealpha),showZeroPlaneValue:i.showvzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,rotateAxisName:(0,o.pluckNumber)(i.rotatexaxisname,1),trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:s?0:(0,o.pluckNumber)(i.showxaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(i.xaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(i.xaxislinealpha,i.axislinealpha,100),axisLineColor:(0,o.pluck)(i.xaxislinecolor,i.axislinecolor,"#000000")},(t={isVertical:!1,isReverse:!1,isOpposit:(0,l["default"])(i.yaxisposition,"top"),outCanfontFamily:(0,o.pluck)(i.outcnvbasefont,i.basefont,"Verdana,sans"),outCanfontSize:u,outCanfontSizeWithUnit:u,outCancolor:(0,o.pluck)(i.outcnvbasefontcolor,i.basefontcolor,r.getColor(c.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:i.yaxisnamepadding,axisValuePadding:i.yaxisvaluespadding,axisNameFont:i.yaxisnamefont,axisNameFontSize:this.computeFontSize(i.yaxisnamefontsize),axisNameFontSizeWithUnit:i.yaxisnamefontsize,axisNameFontColor:i.yaxisnamefontcolor,axisNameFontBold:i.yaxisnamefontbold,axisNameFontItalic:i.yaxisnamefontitalic,axisNameBgColor:i.yaxisnamebgcolor,axisNameBorderColor:i.yaxisnamebordercolor,axisNameAlpha:i.yaxisnamealpha,axisNameFontAlpha:i.yaxisnamefontalpha,axisNameBgAlpha:i.yaxisnamebgalpha,axisNameBorderAlpha:i.yaxisnameborderalpha,axisNameBorderPadding:i.yaxisnameborderpadding,axisNameBorderRadius:i.yaxisnameborderradius,axisNameBorderThickness:i.yaxisnameborderthickness,axisNameBorderDashed:i.yaxisnameborderdashed,axisNameBorderDashLen:i.yaxisnameborderdashlen,axisNameBorderDashGap:i.yaxisnameborderdashgap,axisNameWidth:i.yaxisnamewidth,useEllipsesWhenOverflow:i.useellipseswhenoverflow,axisName:i.yaxisname,divLineColor:(0,o.pluck)(i.divlinecolor,r.getColor(c.divLineColor)),divLineAlpha:(0,o.pluck)(i.divlinealpha,s?r.getColor("divLineAlpha3D"):r.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(i.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(i.divlinedashed,i.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(i.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(i.divlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(i.showalternatevgridcolor,1),alternateGridColor:(0,o.pluck)(i.alternatevgridcolor,r.getColor("altVGridColor")),alternateGridAlpha:(0,o.pluck)(i.alternatevgridalpha,r.getColor("altVGridAlpha")),numDivLines:i.numdivlines,axisMinValue:i.yaxisminvalue,axisMaxValue:i.yaxismaxvalue,setAdaptiveMin:i.setadaptiveymin,adjustDiv:i.adjustdiv,labelStep:i.yaxisvaluesstep,showAxisValues:(0,o.pluckNumber)(i.showyaxisvalues,i.showyaxisvalue),showLimits:(0,o.pluckNumber)(i.showyaxislimits,i.showlimits,n.showLimits),showDivLineValues:(0,o.pluckNumber)(i.showdivlinevalues,i.showdivlinevalue),zeroPlaneColor:i.zeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(i.zeroplanethickness,i.divlinethickness,2),zeroPlaneAlpha:(0,o.pluckNumber)(i.zeroplanealpha,i.divlinealpha,A.zeroplanealpha),showZeroPlaneValue:i.showzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,isTrendZone:0,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:s?0:(0,o.pluckNumber)(i.showyaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(i.yaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(i.yaxislinealpha,i.axislinealpha,100),axisLineColor:(0,o.pluck)(i.yaxislinecolor,i.axislinecolor,"#000000"),numberFormatterFn:"yAxis",showZeroPlaneOnTop:A.showzeroplaneontop,forceTrendBelow:!!A.is3D,labelFont:i.yaxisvaluefont,labelFontSize:this.computeFontSize(i.yaxisvaluefontsize),labelFontSizeWithUnit:i.yaxisvaluefontsize,labelFontColor:i.yaxisvaluefontcolor,labelAlpha:i.yaxisvaluealpha,labelFontBold:i.yaxisvaluefontbold,labelFontItalic:i.yaxisvaluefontitalic,labelBdrColor:i.yaxisvaluebordercolor,labelBdrAlpha:i.yaxisvalueborderalpha,labelBgAlpha:i.yaxisvaluebgalpha,labelLink:i.yaxisvaluelink,labelBgColor:i.yaxisvaluebgcolor,labelBdrThickness:i.yaxisvalueborderthickness,labelBdrPadding:i.yaxisvalueborderpadding,labelBdrRadius:i.yaxisvalueborderradius,labelBdrDashed:i.yaxisvalueborderdashed,labelBdrDashLen:i.yaxisvalueborderdashlen,labelBdrDashGap:i.yaxisvalueborderdashgap}).vtrendlines=a.trendlines,e.trendlines=a.vtrendlines,A.isstacked&&(t.isPercent=(0,o.pluckNumber)(A.stack100percent,0),t.isPercent&&delete t.numberFormatterFn),{xAxisConf:[e],yAxisConf:[t]}}function c(){var e,t,n,A,r,a,i,l,s,c,u,h,d,g,p,f,m,v,b,B=this,y=B.config,C=B.getChildren(),x=C.yAxis&&C.yAxis[0],w=C.xAxis&&C.xAxis||[],F=o.preDefStr.POSITION_BOTTOM,S=o.preDefStr.POSITION_TOP,E=y.legendposition?y.legendposition.split("-"):[],Q=y.xDepth,k=y.yDepth,L=C.canvas[0],U=y.canvasBgDepth,I=y.canvasBaseDepth,T=y.canvasBasePadding,N=C.canvas[0].config.canvasBorderWidth,D=y.realTimeConfig&&y.realTimeConfig.showRTValue,P=y.borderWidth,M=y.canvasMarginTop,H=y.canvasMarginBottom,O=y.canvasMarginLeft,_=y.canvasMarginRight,R=y.minCanvasHeight,V=y.minCanvasWidth,G=y.minChartWidth,K=y.minChartHeight,z=y.height,W=y.width,j=!1,X=!1,Y=y.origCanvasTopMargin,J=y.origCanvasBottomMargin,q=y.origCanvasLeftMargin,Z=y.origCanvasRightMargin;y.canvasWidth-2*P<G&&(h=(y.canvasWidth-G)/2),y.canvasHeight-2*P<K&&(u=(y.canvasHeight-K)/2),B._allocateSpace({top:u||P,bottom:u||P,left:h||P,right:h||P}),n=w[0],B._resetViewPortConfig&&B._resetViewPortConfig(),B._setAxisScale&&B._setAxisScale(),e=.7*y.availableWidth,B._calculateChartShift("yAxis"),y.yAxisSpaceAllocation=m=n&&n.placeAxis(e),n&&B._allocateSpace(m),p=.225*y.availableHeight,g=B._manageActionBarSpace&&B._manageActionBarSpace(p)||{},B._allocateSpace(g),B._manageLegendSpace&&B._manageLegendSpace(),t=E[0]===F||E[0]===S?.6*y.availableHeight:.6*y.availableWidth,k&&(B._allocateSpace({left:k}),y.shift=Q+T+I),U&&B._allocateSpace({top:U}),y.canvasWidth-2*N<V&&(f=(y.canvasWidth-V)/2),B._allocateSpace({left:f||N,right:f||N}),V>W-O-_&&(X=!0,A=y.canvasWidth-V,b=O+_,O=y.canvasMarginLeft=A*O/b,_=y.canvasMarginRight=A*_/b),i=O>y.canvasLeft?O-y.canvasLeft:0,l=_>W-y.canvasRight?_+y.canvasRight-W:0,B._allocateSpace({left:i,right:l}),B._allocateSpace({left:I}),X&&(b=q+Z,(c=y.canvasWidth)>V&&(i=(A=c-V)*q/b,l=A*Z/b),B._allocateSpace({left:i,right:l})),y.actualCanvasMarginRight=l,y.actualCanvasMarginBottom=a,B._manageChartMenuBar(t),t=.2*y.availableHeight,y.sumValueSpace=B._getSumValueSpace(t),B._allocateSpace(y.sumValueSpace),t=.3*y.availableHeight,y.realtimeEnabled&&(D?B._allocateSpace(B._realTimeValuePositioning(t)):B._hideRealTimeValue()),t=.6*y.availableHeight,B._calculateChartShift("xAxis"),y.xAxisSpaceAllocation=v=x&&x.placeAxis(t),x&&B._allocateSpace(v),t=.3*y.availableHeight,B._manageScrollbarPosition&&B._manageScrollbarPosition(t),y.canvasHeight-2*N<R&&(d=(y.canvasHeight-R)/2),B._allocateSpace({top:d||N,bottom:d||N}),R>z-M-H&&(j=!0,A=y.canvasHeight-R,b=M+H,M=y.canvasMarginTop=A*M/b,H=y.canvasMarginBottom=A*H/b),r=M>y.canvasTop?M-y.canvasTop:0,a=H>z-y.canvasBottom?H+y.canvasBottom-z:0,B._allocateSpace({top:r,bottom:a}),j&&(b=Y+J,(s=y.canvasHeight)>R&&(r=(A=s-R)*Y/b,a=A*J/b),B._allocateSpace({top:r,bottom:a})),y.actualCanvasMarginTop=r,y.actualCanvasMarginLeft=i,L.setDimension({top:y.canvasTop,left:y.canvasLeft,width:y.canvasWidth,height:y.canvasHeight})}function u(){var e,t,n,A,r=this,a=r.config,i=r.getChildren(),o=i.xAxis&&i.xAxis[0],l=i.yAxis&&i.yAxis[0],s=i.scrollBar&&i.scrollBar[0]&&i.scrollBar[0].config,c=i.legend&&i.legend[0],u=a.xDepth||0,h=i.canvas[0].config,d=h.canvasBorderWidth,g=h.canvasPadding,p=h.canvasTop,f=h.canvasLeft,m=p-d,v=p+h.canvasHeight+d,b=f-(a.shift||0)-d,B=f+h.canvasWidth+d+a.sumValueSpace.right;l&&r._allocateXAxisLabelSpace(l),e=h.canvasPaddingLeft,t=h.canvasPaddingRight,n=h.canvasPaddingTop,A=h.canvasPaddingBottom,l&&l.setAxisDimention({x:h.canvasLeft+e,y:l.config.isOpposit?m:v,opposite:l.config.isOpposit?v:m,axisLength:h.canvasWidth-e-t}),o&&o.setAxisDimention({x:(o.config.isOpposit?B:b)+(r.isScrollEnabled()&&s.isOpposite&&a.shift||0),y:p+u+Math.max(n,g),opposite:o.config.isOpposit?b:B,axisLength:h.canvasHeight-u-Math.max(n,g)-Math.max(A,g)}),c&&c.postSpaceManager(),r.allocateDimensionOfChartMenuBar()}var h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getName=function(){return"MSBarCartesian"},t.getName=function(){return"MSBarCartesian"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.enablemousetracking=!0},n._feedAxesRawData=function(){return s.call(this)},n._spaceManager=function(){c.call(this)},n._postSpaceManagement=function(){u.call(this)},n.getDSdef=function(){return i["default"]},n.getDSGroupdef=function(){},t}(a["default"]);t["default"]=h},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(547)),i=n(653),o=A(n(654)),l=A(n(655)),s=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",o["default"],["vCanvas"]),t.registerFactory("legend",l["default"]),t}(0,r["default"])(t,e),t.getName=function(){return"MSCartesian"};var n=t.prototype;return n.getName=function(){return"MSCartesian"},n.getType=function(){return"chartAPI"},n._manageLegendSpace=function(){i._manageLegendSpace.call(this)},n.manageGradientLegendSpace=function(e){return i.manageGradientLegendSpace.call(this,e)},t}(a["default"]);t["default"]=s},(e,t,n)=>{"use strict";t.__esModule=!0,t._manageLegendSpace=function(){var e,t,n,r,a=this,i=a.config,o=a.getChildren("legend")&&a.getChildren("legend")[0],l=a.getChildren("gLegend")&&a.getChildren("gLegend")[0],s=a.getFromEnv("dataSource").colorrange,c=i.hasLegend,u={},h=a.hasGradientLegend,d=a.getFromEnv("dataSource").chart,g=(0,A.pluckNumber)(d.mapbycategory,0);h&&s&&(0,A.pluckNumber)(s.gradient)&&!g?(e=l.conf,h=!0,i.gLegendEnabled=!0,r=(t=e.legendPosition?e.legendPosition.split("-"):[])[0]===A.POSITION_RIGHT||t[0]===A.POSITION_LEFT?.4:.5):(e=o&&o.config,h=!1,i.gLegendEnabled=!1,r=(t=e&&e.legendPos?e.legendPos.split("-"):[A.POSITION_BOTTOM])[0]===A.POSITION_RIGHT||t[0]===A.POSITION_LEFT?.8:.4);n=t[0]===A.POSITION_ABSOLUTE?.4*i.availableHeight:t[0]===A.POSITION_RIGHT||t[0]===A.POSITION_LEFT?i.availableWidth*r:i.availableHeight*r;h?u=a.manageGradientLegendSpace(n):!1!==c&&o&&!o.getState("removed")&&(u=o&&o._manageLegendPosition(n));u&&a._allocateSpace(u)},t.manageGradientLegendSpace=function(e){var t,n,r,a=this,i=a.config,o=a.getFromEnv("gLegend"),l=o&&o.conf,s={top:0,bottom:0,left:0,right:0};i.gLegendPadding=(0,A.pluckNumber)(a.getFromEnv("chart-attrib").legendpadding,10),n=Math.min(i.gLegendPadding,.5*e),l&&(t=l.legendPosition?l.legendPosition.split("-"):[],r=o.getLogicalSpace(e),t[0]===A.POSITION_BOTTOM?s.bottom=(r.height||0)+n:t[0]===A.POSITION_TOP?s.top=(r.height||0)+n:t[0]===A.POSITION_LEFT?s.left=(r.width||0)+n:t[0]!==A.POSITION_ABSOLUTE&&(s.right=(r.width||0)+n));return s};var A=n(281)},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,n,r,a,i=e.getFromEnv("dataSource").dataset,o=e.getChildren().canvas[0],l=t=o.getChildren("vCanvas")[0],s=e.config.defaultDatasetType||"";if(!i)return void e.setChartMessage();(r=e.getDSGroupdef())&&((0,A.componentFactory)(t,r,"datasetGroup_"+s,1,[i]),a=t.getChildren("datasetGroup_"+s));a&&(l=a[0]),n=e.getDSdef(),(0,A.datasetFactory)(l,n,"dataset",i.length,i)};var A=n(281)},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t;(0,r.componentFactory)(e,a["default"],"legend"),(t=e.getChildren("legend")[0]).configure(),e.addToEnv("legend",t),e.config.showLegend||t.remove()};var r=n(281),a=A(n(656))},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(277)),a=A(n(295)),i=n(281),o=n(297),l=A(n(657)),s=n(289),c=n(425),u=A(n(659)),h=n(293),d=n(660);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var f,m,v={left:i.POSITION_START,right:i.POSITION_END,center:i.POSITION_MIDDLE},b=Math,B=b.min,y=b.max,C=b.floor,x=b.ceil,w=",",F="px",S=i.preDefStr.NORMAL,E={fontWeight:{1:i.preDefStr.BOLD,0:S},fontStyle:{1:"italic",0:S},textDecoration:{1:"underline",0:i.preDefStr.noneStr}};(0,s.addDep)({name:"legendAnimation",type:"animationRule",extension:u["default"]});var Q=function(e){return Array(e).fill()},k=function(e){function t(){var t,n=t=e.call(this)||this;return n._stateCosmetics={},n._legendState=[],n.dragDraw=function(){n.draw()},n.drawScroll=function(){n.createItemGroup(),n.createCaptionGroup()},n.config.handlers=function(e){var t,n;return{dragstart:function(){t=e.config.xL||e.config.xPos,n=e.config.yL||e.config.yPos},dragmove:function(A){var r,a,i=A.originalEvent.data[0],o=A.originalEvent.data[1],l=e.config,s=e.getFromEnv("chartConfig"),c=(l.borderWidth||0)+2;r=B(y(t+i,c),s.width-l.width-c),a=B(y(n+o,c),s.height-l.height-c),l.xPos=l.xL=r,l.yPos=l.yL=a,e.addJob("draw",e.dragDraw,h.priorityList&&h.priorityList.draw)}}}(n),t}(0,a["default"])(t,e);var n=t.prototype;return n.createItem=function(e){var t;return t=new l["default"],this.attachChild(t,"legendItem"),t.setLinkedItem("owner",e),t.addEventListener("mouseover",function(){t.setLegendState("hover",!0)}),t.addEventListener("mouseout",function(){t.removeLegendState("hover")}),t.getId()},n.getItem=function(e){var t=this.getChildren().legendItem;if(e===f)return!1;if(t)for(var n=0;n<t.length;n++)if(t[n].getId()===e)return t[n]},n.getSortedLegendItems=function(){var e,t,n=this.getChildren("legendItem")||[],A=this.config.reverselegend,r={},a=[];for(e=0,t=n.length;e<t;e++)n[e].config.index===f?r[t+e]=n[e]:r[n[e].config.index]=n[e];return Object.keys(r).sort(function(e,t){return A?t-e:e-t}).forEach(function(e){a.push(r[e])}),a},n.disposeItem=function(e){var t=this.getItem(e);t&&t.remove()},n.getName=function(){return"legend"},n.getType=function(){return"legend"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.enabled=!0,t.symbolWidth=12,t.borderRadius=1,t.lastScrollPos=0,t.oriSymbolPadding=3,t.textPadding=4,t.scrollY=0,t.scrollX=0,t.backgroundColor="#ffffff",t.initialItemX=0,t.title={text:i.BLANKSTRING,x:0,y:0,padding:2},t.scroll={},t.horizontalScroll={},t.itemStyle={}},n.createLegendGroup=function(){var e,t=this,n=t.config,A=t.getFromEnv("chart"),r=A.config,a=t.getFromEnv("animationManager"),i=.5*(n.borderWidth||0)+2,o=t.getContainer("legendGroup");n.xL&&(n.xL=B(y(n.xL,i),r.width-n.width-i)),n.yL&&(n.yL=B(y(n.yL,i),r.height-n.height-i)),e=a.setAnimation({el:o||"group",attr:{name:"legendGroup",transform:["T",n.xL||n.xPos,n.yL||n.yPos]},container:A.getChildContainer("legendGroup"),component:t}),o||t.addContainer("legendGroup",e)},n.drawDualScrollRect=function(){var e=this.getGraphicalElement("dualScrollRect"),t=this.getGraphicalElement("scrollbarContainer"),n=this.getFromEnv("animationManager");this.config.scroll.enabled&&this.config.horizontalScroll.enabled?(e=n.setAnimation({el:e||"rect",attr:{x:this.config.width-12,y:this.config.height-12,height:12,width:12,fill:this.config.legendScrollBgColor,stroke:"none"},component:this,container:t}),e=this.addGraphicalElement("dualScrollRect",e)):e&&e.remove()},n.draw=function(){this.createLegendGroup(),this.drawLegendBox(),this.createItemGroup(),this.createCaptionGroup(),this.drawCaption(),this.createScrollGroup(),this.decideScroll(),this.drawDualScrollRect()},n.decideScroll=function(){var e=this.getFromEnv("chart-attrib"),t=!1;if(e.disablelegendscroll&&"1"===e.disablelegendscroll&&(t=!0),!t){var n=this,A=n.config,r=A.scroll.enabled,a=A.horizontalScroll.enabled;r?this.createScrollBar():A.hasScroll&&(n.getChildren("legendScrollBar")[0].remove(),A.hasScroll=!1),a?this.createScrollBar(a):A.hasHorizontalScroll&&(n.getChildren("legendHorizontalScrollBar")[0].remove(),A.hasHorizontalScroll=!1)}},n.createCaptionGroup=function(){var e,t=this.getChildContainer("captionGroup"),n=this.getFromEnv("animationManager"),A=this.getContainer("legendGroup"),r=(0,i.pluckNumber)(this.config.padding,4),a=.5*r,o=y(this.config.height-r,0),l=y(this.config.width-r,0),s=w+(this.config.horizontalScroll.enabled?l:this.config.width)+w+(this.config.scroll.enabled?o:this.config.height);this.config.horizontalScroll.enabled?(e=this.addChildContainer("captionGroup",n.setAnimation({el:t&&null!==t[0]?t:"group",attr:{name:"captionGroup",transform:["T",0,this.config.scrollY||0]},container:A,component:this})),this.config.scroll.enabled?e.attr({"clip-rect":"0,"+a+s}):e.attr({"clip-rect":null})):t&&t.remove()},n.createItemGroup=function(){var e,t=this,n=t.getFromEnv("animationManager"),A=t.getContainer("legendGroup"),r=t.getChildContainer("itemGroup"),a=(0,i.pluckNumber)(t.config.padding,4),o=.5*a,l=y(t.config.height-a,0),s=y(t.config.width-a,0),c=w+(t.config.horizontalScroll.enabled?s:t.config.width)+w+(t.config.scroll.enabled?l:t.config.height);return e=n.setAnimation({el:r||"group",attr:{name:"item",transform:["T",t.config.scrollX||0,t.config.scrollY||0]},container:A,component:t}),r||t.addChildContainer("itemGroup",e),t.config.scroll.enabled||t.config.horizontalScroll.enabled?e.attr({"clip-rect":"0,"+o+c}):e.attr({"clip-rect":null}),e},n.createScrollGroup=function(){var e=this,t=e.getFromEnv("animationManager"),n=e.getChildContainer("scrollGroup"),A=e.getContainer("legendGroup");!e.config.scroll.enabled&&!e.config.horizontalScroll.enabled||e.getGraphicalElement("scrollbarContainer")||e.addGraphicalElement("scrollbarContainer",t.setAnimation({el:n||"group",attr:{name:"scrollGroup"},container:A,component:e,label:"scrollbar"}))},n.createScrollBar=function(e){void 0===e&&(e=!1);var t,n,A,r,a,o,l,s,u=this,d=u.config,g=u.getFromEnv("chart-attrib"),p=e?"legendHorizontalScrollBar":"legendScrollBar",f=(0,i.pluckNumber)(g.uselegendscrollgradient,0),v=u.getChildren(p)&&u.getChildren(p)[0],b=d.borderWidth||0,B=.5*b,C=(0,i.pluckNumber)(d.padding,4),x=d.width,w=d.height;t={conf:{isHorizontal:e,useLegendScrollGradient:f,legendScrollButtonArrowColor:g.legendscrollbuttonarrowcolor,legendTrackStrokeBorderColor:g.legendtrackstrokebordercolor,legendAnchorStrokeBorderColor:g.legendanchorstrokebordercolor,legendScrollTrackColor:g.legendscrolltrackcolor&&(f?g.legendscrolltrackcolor:(0,i.convertColor)(g.legendscrolltrackcolor)),legendScrollAnchorColor:g.legendscrollanchorcolor&&(f?g.legendscrollanchorcolor:(0,i.convertColor)(g.legendscrollanchorcolor))},handler:{scroll:function(t){function n(e){e.preventDefault(),document.removeEventListener("touchmove",n,{passive:!1})}document.addEventListener("touchmove",n,{passive:!1}),d.lastScrollPos=t,e?d.scrollX=(r-d.totalWidth)*t:d.scrollY=(A-d.totalHeight)*t,u.addJob("scrollDraw",u.drawScroll,h.priorityList&&h.priorityList.draw),m&&clearTimeout(m),m=setTimeout(function(){document.removeEventListener("touchmove",n)},250)},mousedown:function(e){e.preventDefault(),e.stopPropagation()}}},g.legendscrollbgcolor&&(t.conf.color=(0,i.convertColor)(g.legendscrollbgcolor)),v||(v=u.attachChild(new c.ScrollBar,p),e?this.config.hasHorizontalScroll=!0:this.config.hasScroll=!0),v.configure(t.conf),v.attachEventHandlers(t.handler),n=v.config,e?(a=B,o=w-v.getLogicalSpace().height-b+.5*C,s=x-b,this.config.scroll.enabled&&this.config.horizontalScroll.enabled&&(s-=12),s=y(s,0),r=y(x-C,0),n.scrollRatio=(r+C)/d.totalWidth):(A=y(w-C,0),a=x-v.getLogicalSpace().width-b+.5*C,o=B,l=w-b,this.config.scroll.enabled&&this.config.horizontalScroll.enabled&&(l-=12),l=y(l,0),n.scrollRatio=(A+C)/d.totalHeight),n.startPercent=0,n.scrollPosition=d.lastScrollPos,n.parentLayer=u.getChildContainer("scrollGroup"),v.setDimension({x:a,y:o,height:l,width:s})},n.drawCaption=function(){var e,t,n,A,r=this,a=r.getGraphicalElement("caption"),o=r.config.horizontalScroll.enabled?r.getChildContainer("captionGroup"):r.getChildContainer("itemGroup"),l=this.getFromEnv("animationManager"),s=this.config,c=(0,i.pluckNumber)(s.padding,4),u=s.scroll.enabled,h=s.width;if(s.title&&s.title.text!==i.BLANKSTRING&&s.validLegendItem){switch(s.title.align){case i.POSITION_START:n=c;break;case i.POSITION_END:n=h-c-(u?10:0);break;default:n=.5*h}t=s.title.style,e={text:s.title.text,title:s.title.originalText||i.BLANKSTRING,x:n,y:c,fill:s.title.style.color,direction:s.textDirection,"line-height":t.lineHeight,"vertical-align":i.POSITION_TOP,"text-anchor":s.title.align,opacity:1},A={"font-weight":t.fontWeight,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-size":t.fontSize},a&&a.show(),a&&a[0]?l.setAnimation({el:a,attr:e,component:r,container:o,css:A}):(a=l.setAnimation({el:"text",attr:e,component:r,container:o,css:A}),a=this.addGraphicalElement("caption",a)),r.getFromEnv("toolTipController").enableToolTip(a,s.title.originalText)}else a&&l.setAnimation({el:a,component:r,doNotRemove:!0,callback:function(){a.hide()}})},n.drawLegendBox=function(){var e,t=this,n=this.getFromEnv("animationManager"),A=t.config,r=t.getContainer("legendGroup"),a=A.width,i=t.getGraphicalElement("box"),o=A.height,l=A.borderRadius,s=A.backgroundColor,c=A.borderColor,u=A.borderAlpha,h=A.backgroundAlpha,d=A.borderWidth||0;return e=n.setAnimation({el:i||"rect",attr:{x:0,y:0,width:a,height:o,r:l,stroke:c,"stroke-width":d,fill:s||"none","stroke-opacity":u/100,"fill-opacity":h/100,cursor:A.legendAllowDrag?"move":"default"},container:r,component:t,label:"legendGroup"}),i||(t.addGraphicalElement("box",e),e.shadow(A.shadow)),e},n._calculateTopPosition=function(e){var t=this.getFromEnv("chart"),n=t.config,A=e,r=t.getChildren("caption")&&t.getChildren("caption")[0],a=t.getChildren("subCaption")&&t.getChildren("subCaption")[0],o=t.getChildren("chartMenuBar")&&t.getChildren("chartMenuBar")[0],l=n.oriTopSpace;return!n.toolbarY&&o&&o.props&&o.props.height&&(l>o.props.height+o.props.y||(A=o.props.y+o.props.height)),r&&r.config&&r.config.text&&r.config.text!==i.BLANKSTRING&&r.config.height&&1===r.config.isOnTop&&(A=r.config.height+r.config.y+r.config.captionPadding),a&&a.config&&a.config.height&&1===a.config.isOnTop&&(A=a.config.y+a.config.height+(r&&r.config&&r.config.captionPadding||0)),y(A,e)},n.getPosition=function(){var e,t,n,A,r,a,o,l,s,c,u=this.getFromEnv("chart"),h=u.config,d=this.config,g=u.getChildren("canvas"),p=g&&g.length>1?h.height-g[0].config.canvasBottom:h.height-h.canvasBottom,f=h.canvasLeft,m=h.canvasRight,v=h.canvasWidth,b=d.chartMarginLeft||0,B=d.chartMarginRight||0,y=d.chartMarginTop||0,C=d.chartMarginBottom||0,x=h.actionBarHeight||0,w=d.actualCanvasMarginLeft||0,F=h.actualCanvasMarginTop||0,S=h.actualCanvasMarginBottom||0,E=h.actualCanvasMarginRight||0,Q=d.alignLegendWithCanvas,k=h.height,L=h.canvasTop,U=d.width||0,I=d.height||0,T=h.borderWidth,N=h.oriCanvasLeft,D=h.oriCanvasRight,P=h.oriTopSpace,M=h.oriBottomSpace,H=0,O=0,_=d.borderWidth||0,R=d.legendPos?d.legendPos.split("-"):[],V=u.getChildren("caption")&&u.getChildren("caption")[0],G=u.getChildren("subCaption")&&u.getChildren("subCaption")[0];return R[0]!==i.POSITION_LEFT&&R[0]!==i.POSITION_RIGHT||(d.align=R[0],d.verticalAlign=i.POSITION_MIDDLE,s=d.layout="vertical"),R[0]===i.POSITION_ABSOLUTE?(e=d.legendXPosition,t=d.legendYPosition,e>(n=h.width-U-T)&&(e=n),t>(A=h.height-I-T)&&(t=A)):s?(R[0]===i.POSITION_LEFT?e=b+w+T:R[0]===i.POSITION_RIGHT&&(e=h.width-B-E-U-T),H=(0,i.pluckNumber)(P,L),O=(0,i.pluckNumber)(M,p),R[1]===i.POSITION_TOP?(t=H+(d.y||0),t=this._calculateTopPosition(t)):R[1]===i.POSITION_BOTTOM?(t=k-O-I+(d.y||0),(c=O-(T+C+x+(V&&0===V.config.isOnTop&&V.config.height?V.config.height+V.config.captionPadding:0)+(G&&0===V.config.isOnTop?G.config.height:0)))<0&&(t+=c)):t=H+.5*(k-O-H-I)+(d.y||0)):(o=h.width-(b+w+(B+E)),l=Q?v-U:o-U,r=Q?(0,i.pluckNumber)(N,f):b+w,a=Q?h.width-(0,i.pluckNumber)(D,m):B+E,e=R[1]===i.POSITION_LEFT?r:R[1]===i.POSITION_RIGHT?h.width-(U+a):r+l/2,R[0]===i.POSITION_TOP?(t=y+F,t=this._calculateTopPosition(t)):t=k-I-S-C-x),(0,i.crispBound)(e,t,U,I,_)},n.setTranslation=function(e,t){var n=this.config;n._translateX=e,n._translateY=t,n.translate="t"+e+","+t},n.allocatePosition=function(){var e,t=this.config;e=t.translate?(0,i.crispBound)(t._translateX,t._translateY,t.width,t.height,t.borderWidth):this.getPosition(),t.xPos=e.x,t.yPos=e.y,t.width=e.width,t.height=e.height},n._manageLegendPosition=function(e){var t,n=this,A=n.config,r=A.legendPos?A.legendPos.split("-"):[],a={left:0,right:0,top:0,bottom:0};return A.padding=4,A.textPadding=4,t=r[0]===i.POSITION_ABSOLUTE?n._placeLegendBlockBottom(e,.6):r[0]===i.POSITION_LEFT||r[0]===i.POSITION_RIGHT?n._placeLegendBlockRight(e):n._placeLegendBlockBottom(e),r[0]===i.POSITION_LEFT?a.left=t&&t.right||0:r[0]===i.POSITION_RIGHT?a.right=t&&t.right||0:r[0]===i.POSITION_TOP?a.top=t&&t.bottom||0:r[0]!==i.POSITION_ABSOLUTE&&(a.bottom=t&&t.bottom||0,a.right=t&&t.right||0),a},n.setDimension=function(e){var t,n,A,r,a,o,l,s,c,u,h,g,m,v,b,w,S,E,k,L,U,I,T,N,D,P,M,H=this,O=this.config,_=H.getSortedLegendItems(),R=H.getFromEnv("chart-attrib"),V=_.length,G=(0,i.pluckNumber)(R.legendwidth,e.width),K=e.height,z=K,W=0,j=0,X=0,Y=0,J=0,q=0,Z=0,$=[],ee=O.padding,te=O.textPadding,ne=H.getFromEnv("smartLabel"),Ae=H.getStateCosmetics("default"),re=this.computeFontSize(O.legendFontSizeWithUnit),ae=parseInt((0,i.setLineHeight)({fontSize:re+F}),10),ie=parseInt(Ae.text["font-size"],10)||10,oe=O.title,le=oe.padding,se=0,ce=O.minimiseWrappingInLegend,ue=O.legendPadding,he=O.legendScale,de=O.alignLegendWithCanvas,ge=O.numColumns,pe=O.numRows,fe=O.oriSymbolPadding,me=Number.MAX_SAFE_INTEGER,ve=G,be=!1,Be=!!pe,ye=0,Ce=H.getFromEnv("dataSource");if(g={width:2*ee,height:2*ee},R.disablelegendscroll&&"1"===R.disablelegendscroll&&(G=e.width,ve=e.width),null!=Ce&&null!=(t=Ce.legend)&&null!=(t=t.item)&&t.legendtextstyle){var xe,we,Fe=Ce.legend.item;H.setStateCosmetics("default",{text:{fill:(null==(xe=Fe[0].legendtextstyle)?void 0:xe.color)||Ae.text.fill,"font-family":Ae.text["font-family"]||Ae.text["font-family"],cursor:Ae.text.cursor,"font-size":Fe[0].legendtextstyle["font-size"]||Ae.text["font-size"],"line-height":parseInt((0,i.setLineHeight)({fontSize:(Fe[0].legendtextstyle["font-size"]||Ae.text["font-size"])+F}),10),"vertical-align":i.POSITION_TOP,"text-anchor":i.POSITION_START,direction:Ae.text.direction,"font-weight":Ae.text["font-weight"]},symbol:{bgColor:Ae.symbol.bgColor,cursor:Ae.symbol.cursor,borderColor:Ae.symbol.borderColor,bgAlpha:Ae.symbol.bgAlpha,borderAlpha:Ae.symbol.borderAlpha,borderThickness:Ae.symbol.borderThickness,startAngle:Ae.symbol.startAngle,sides:Ae.symbol.sides}}),Ae=H.getStateCosmetics("default"),re=this.computeFontSize(O.legendFontSizeWithUnit),ie=parseInt(null==(we=Ce.legend.item[0].legendsymbolstyle)?void 0:we.width,10)||10+parseInt(Ce.legend.item[0].legendtextstyle["font-size"]||Ae.text["font-size"],10)||10}else H.setStateCosmetics("default",{text:{fill:Ae.text.fill,"font-family":Ae.text["font-family"],cursor:Ae.text.cursor,"font-size":Ae.text["font-size"],"line-height":Ae.text["line-height"],"vertical-align":i.POSITION_TOP,"text-anchor":i.POSITION_START,direction:Ae.text.direction,"font-weight":Ae.text["font-weight"]},symbol:{bgColor:Ae.symbol.bgColor,cursor:Ae.symbol.cursor,borderColor:Ae.symbol.borderColor,bgAlpha:Ae.symbol.bgAlpha,borderAlpha:Ae.symbol.borderAlpha,borderThickness:Ae.symbol.borderThickness,startAngle:Ae.symbol.startAngle,sides:Ae.symbol.sides}});for((h=ie+1)<=0&&(h=1),G=Math.max(G-.5*ee,0),fe*=he,(h=B(h*=he,G))<=0&&(fe=h=0),O.symbolWidth=h,O.textPadding=4,O.legendHeight=u=h+2*fe,O.rowHeight=l=y(parseInt(Ae.text["line-height"],10)||12,u),o=te+fe+ee,ne.setStyle((0,i.extend2)({},Ae.text)),s=ue+O.borderWidth/2+1,s=y(B(s,K-ae-8),0),ue=.05*l,O.initialItemY=0,O.initialItemX=0,D=u+ue+te+fe+2*ee,m=0;m<V;m+=1)A=n=(a=_[m]).config||(a.config={}),(r=n.name=(0,i.parseUnsafeString)(A.label))===i.BLANKSTRING||0===A.enabled||!1===A.enabled||a.getState("removed")?n.enabled=0:(n.enabled=1,X+=1,U=!0,I=ne.getOriSize(r),W=y(W,B(I.width,G-D)),q=y(q,B(I.height,z)),n._selfTotalWidth=I.width+D,j+=I.width);if(O.validLegendItem=U,Y=j/X,j+=D*X,O.x=!de&&j>ve?0:O.x,U){if(Y+=D,W+=D,oe.oriText!==i.BLANKSTRING){be=!0,ne.setStyle(oe.style);var Se=oe.oriText.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'");I=ne.getSmartText(Se,G-2*ee,K,!1),oe.text=I.text,I.tooltext&&(oe.originalText=I.tooltext),se=I.width+2*ee,Z=I.height+le}if(b=W,pe?!ge&&pe?(ye=1,X<pe&&(pe=X),ge=x(X/pe)):x(X/ge)<pe&&x(X/pe)<ge||X>ge*pe?pe=x(X/ge):ge===x(X/pe)&&(ye=1):j<=G?b=1===(pe=x(X/(ge=ge||X)))?j/X:W:!ge&&G>W&&(ce||1.5*Y>W)?(X<(ge=C(G/W))&&(ge=X),b=W):ge&&G/ge>Y?(b=G/ge)>W&&(b=W):!ge&&G>=2*Y?(X<(ge=C(G/Y))&&(ge=X),(b=C(G/ge))>W&&(b=W)):ge||(ge=1,b=G),J=Be?W:b,!Be&&1.5*Y<W&&(b=Y),pe&&!ce){var Ee,Qe,ke=J;W>1.5*Y&&(ke=Y),Qe=B(X,C(G/ke)),Ee=x(X/Qe),O.numRows&&Ee!==pe||O.numColumns&&Qe!==ge||1===pe&&1!==Ee||(J=ke,ge=Qe,pe=Ee)}for(ne.setStyle((0,i.extend2)({},Ae.text)),m=0;m<V;m++){var Le,Ue;if(n=_[m].config,1===pe&&(J=W>2.5*Y?Y:n._selfTotalWidth),0===(c=Math.ceil(J-D)))n.name=i.BLANKSTRING,n._totalWidth=h+fe,n._selfTotalWidth=n._totalWidth,n._selfTotalHeight=l;else I=null!=(Le=n)&&Le.name&&/\<\/?br\s*\/?\>/i.test(null==(Ue=n)?void 0:Ue.name)?ne.getSmartText(n.name,c<=n._selfTotalWidth-D?c+te:f,K):ne.getSmartText(n.name,c<n._selfTotalWidth-D?c+te:f),n.name=I.text,n._textHeight=I.height,I.tooltext&&(n.originalText=I.tooltext),n._selfTotalHeight=I.height+te>l?te+I.height:l,n._totalWidth=h+o+I.width,n._selfTotalWidth=D+I.width,n._legendTestY=l>I.height?(l-I.height)/2:0,q=y(q,n._textHeight),me=y(1,B(me,n._textHeight))}if(w={style:{display:"grid",justifyItems:"center",alignItems:"start"}},S=[],be&&S.push({style:{width:se,height:Z,gridRowStart:1,gridRowEnd:2,gridColumnStart:1,gridColumnEnd:2}}),S.push({style:{display:"grid",justifyItems:"start",alignItems:"start",width:B(j,G,J*ge),paddingEnd:ee,paddingTop:ee,gridRowStart:S.length+1,gridRowEnd:S.length+2,gridColumnStart:1,gridColumnEnd:2}}),E=[],Be||1===pe)for(v=0,m=1;v<V;v++)1===(n=(a=_[v]).config).enabled&&(0===ye?(P=x(m/ge),M=m%ge===0?ge:m%ge):(P=m%pe===0?pe:m%pe,M=x(m/pe)),E.push({style:{width:1===pe||M===ge?n._selfTotalWidth:J,height:n._selfTotalHeight,gridRowStart:P,gridRowEnd:P+1,gridColumnStart:M,gridColumnEnd:M+1}}),m+=1);else{for(pe=0,me=y(me,l),v=0;v<V;v++)1===(n=(a=_[v]).config).enabled&&(pe+=Math.ceil(n._selfTotalHeight/me));0===pe&&(pe=Math.max(1,Math.ceil(X/ge))),$=Q(pe).map(function(){return Q(ge)});var Ie,Te=0,Ne=0;for(v=0,m=1;v<V;v++)if(1===(n=(a=_[v]).config).enabled){for(;Te<pe;){for(;Ne<ge;){if($[Te][Ne]===f){M=Ne+1,P=Te+1,Ie=1===ge?1:+(n._selfTotalHeight/me).toFixed(0),$[Te][Ne]=!0;for(var De=Te;De<Te+Ie;De++)$[De][Ne]=!0}if(Ne++,$[Te][Ne-1])break}if(Ne>=ge&&(Ne=0,Te++),Ie)break}E.push({style:{width:M===ge?n._selfTotalWidth:b,height:n._selfTotalHeight,gridRowStart:P,gridRowEnd:P+Ie,gridColumnStart:M,gridColumnEnd:M+1}}),m+=1,Ie=f}for(m=pe=0;m<$.length;m++)for(v=0;v<ge;v++)if($[m][v]){pe++;break}ge>1&&(S[S.length-1].style.gridTemplateRows=(me+" ").repeat(pe).slice(0,-1))}for(S[S.length-1].children=E,k=(0,d.computeLayout)(p(p({},w),{},{children:S})),O.itemWidth=J,(c=x(J-D))<0&&(fe=c=te=0),O.symbolPadding=fe,O.textPadding=te,O.width=O.totalWidth=Math.floor(y(k.layout.width,k.children[k.children.length-1].layout.width)),ne.setStyle((0,i.extend2)({},Ae.text)),v=0,m=0;v<V;v++)n=(a=_[v]).config,1===pe&&(c=n._selfTotalWidth)<0&&(fe=c=te=0),1===n.enabled&&(0===c&&(n.name=i.BLANKSTRING,n._totalWidth=h+fe),n._legendX=k.children[k.children.length-1].children[m].layout.x,n._legendY=k.children[k.children.length-1].children[m].layout.y,n._legendH=k.children[k.children.length-1].children[m].layout.height,m+=1);L=pe,g.height+=L*l+Z,O.height=O.totalHeight=k.layout.height+2*ee,O.rowHeight=l,O.legendNumColumns=ge;var Pe=O.legendPos?O.legendPos.split("-"):[];if(Pe[0]!==i.POSITION_LEFT&&Pe[0]!==i.POSITION_RIGHT||(O.initialItemX=be&&se>k.children[k.children.length-1].layout.width&&G>O.width?k.children[k.children.length-1].layout.x:0),O.initialItemY=k.children[k.children.length-1].layout.y,O.height-2*fe>K?(O.height=K,(T=O.scroll||(O.scroll={})).enabled=!0,T.flatScrollBars=O.flatScrollBars,T.scrollBar3DLighting=O.scrollBar3DLighting,O.width=O.width+12>G?O.width:O.width+12):O.scroll.enabled=!1,O.width>G&&O.scroll.enabled?(O.width=G,(N=O.horizontalScroll||(O.horizontalScroll={})).enabled=!0,N.flatScrollBars=O.flatScrollBars,N.scrollBar3DLighting=O.scrollBar3DLighting,O.height+12<=K?O.height=O.height+12:(O.height=K,O.totalHeight+=4,(T=O.scroll||(O.scroll={})).enabled=!0,T.flatScrollBars=O.flatScrollBars,T.scrollBar3DLighting=O.scrollBar3DLighting,O.scroll.enabled=!0)):O.horizontalScroll.enabled=!1,O.totalWidth>O.width&&O.totalWidth-O.width<=4){for(v=0,m=0;v<V;v++)1===(n=(a=_[v]).config).enabled&&(k.children[k.children.length-1].children[m].style.gridColumnStart%ge!==1&&(n._legendX+=4,1===k.children[k.children.length-1].children[m].style.gridRowStart&&(O.totalWidth+=4)),m+=1);O.totalHeight+=4}s+=O.height,O.isActive=!0,O.enabled=!0}else O.enabled=!1,O.width=0,s=0;return{width:O.width,height:s}},n._placeLegendBlockBottom=function(e,t){void 0===t&&(t=1);var n,A,r,a,o,l=this,s=l.getFromEnv("chart"),c=s.config,u=s.getFromEnv("chartWidth"),h=s.getFromEnv("chartHeight"),d=c.canvasLeft,g=c.width-(c.canvasRight||0),p=s.getFromEnv("smartLabel"),f=l.config,m=f.chartMarginLeft,v=f.chartMarginRight,b=f.chartMarginTop,B=f.alignLegendWithCanvas,y=l.getSortedLegendItems().length,C=f.legendPadding,x=c.canvasMarginRight,w=c.canvasMarginLeft,F=s.getChildren("yAxis"),S=F&&F[0].config.isVertical?F:s.getChildren("xAxis"),E=S&&S[0],Q=S&&S[1],k=E&&E.config||{},L=Q&&Q.config||{},U=k.nameMaxW,I=L.nameMaxW,T=k.name&&k.name.style||{},N=L.name&&L.name.style||{},D=k.axisName||i.BLANKSTRING,P=L.axisName||i.BLANKSTRING,M=c.canvasWidth-c.canvasMarginLeft-c.canvasMarginRight,H=c.width,O=c.height,_=f.legendPos?f.legendPos.split("-"):[];return f.paddingBottom=c.height-c.canvasBottom,p.useEllipsesOnOverflow(c.useEllipsesWhenOverflow),p.setStyle(T),a=p.getOriSize(D),p.setStyle(N),o=p.getOriSize(P),M<C&&(f.padding=C=M=0),(a||o)&&(A=(0,i.pluckNumber)(a.height,0)>(0,i.pluckNumber)(o.height,0)?(r=U)&&a.width:(r=I)&&o.width),M=B?M:u-(A+b>h-e?2*r+v+m+x+w:v+m+w+x),_[0]===i.POSITION_ABSOLUTE&&(M=H,f.legendMaxWidth<H?M=f.legendMaxWidth:M*=t),f.showLegend&&0!==y?(f.x=(d-m-g+v)/2,n=l.setDimension({width:M,height:_[0]===i.POSITION_ABSOLUTE?f.legendMaxHeight<O?f.legendMaxHeight:O:e}).height):(n=0,f.height=0,f.width=0),{bottom:n,right:0}},n._placeLegendBlockRight=function(e){var t,n=this,A=e,r=n.config,a=n.getFromEnv("chart"),o=a.config,l=a.getFromEnv("smartLabel"),s=r.legendPadding,c=n.getStateCosmetics("default"),u=o.canvasHeight,h={},d=n.getSortedLegendItems().length;return A<s&&(r.padding=s=A=0),l.useEllipsesOnOverflow(o.useEllipsesWhenOverflow),l.setStyle((0,i.extend2)({},c.text)),r.numColumns||r.numRows||(r.numColumns=1),r.showLegend&&0!==d?(t=n.setDimension({width:A-s,height:u}).width,h.right=t+s,h.right+10<=A&&(h.right+=10)):(h.right=0,r.height=0,r.width=0),h},n.postSpaceManager=function(){var e=this.config,t=e.legendPos?e.legendPos.split("-"):[],n=this.getFromEnv("chart").config.canvasHeight;t[0]!==i.POSITION_RIGHT&&t[0]!==i.POSITION_LEFT||(e.totalHeight>n?(e.totalHeight<=e.height&&(e.scroll.enabled=!0,e.scroll.flatScrollBars=e.flatScrollBars,e.scroll.scrollBar3DLighting=e.scrollBar3DLighting,e.width+=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=2)),e.height=n):e.scroll.enabled=!1)},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,A,r,a,o,l=this,s=l.config,c=l.getFromEnv("chart"),u=c.config,h=l.getFromEnv("style"),d=c.getFromEnv("chart-attrib"),g=c.config.is3D,p=l.getFromEnv("color-manager"),m=g?i.chartPaletteStr.chart3D:i.chartPaletteStr.chart2D,b=s.interactiveLegend=!1!==c.hasInteractiveLegend&&Boolean((0,i.pluckNumber)(d.interactivelegend,1)),B=(0,i.pluckNumber)(d.useroundedges,0),C=h.outCancolor,x=t.style&&t.style.text,w=(0,i.pluck)(d.legenditemfont,x&&x["font-family"],h.outCanfontFamily),S=(0,i.pluckNumber)(d.legendiconscale,1),Q=(0,i.pluckFontSize)(d.legenditemfontsize,x&&x["font-size"],h.fontSize)+F,k=(0,i.pluck)(d.legenditemfontcolor,x&&x.color,C).replace(/^#?([a-f0-9]+)/gi,"#$1"),L=(0,i.getFirstColor)((0,i.pluck)(d.legenditemhoverfontcolor,k));s.isActive=!1,s.chartMarginTop=u.origMarginTop,s.chartMarginRight=u.origMarginRight,s.chartMarginBottom=u.origMarginBottom,s.chartMarginLeft=u.origMarginLeft,s.reverselegend=(0,i.pluckNumber)(d.reverselegend,0),s.showLegend=(0,i.pluckNumber)(d.showlegend,!c.dontShowLegendByDefault,1),s.legendFontSizeWithUnit=(0,i.pluckFontSizeMaintainUnit)(d.legenditemfontsize,h.fontSizeWithUnit||h.fontSize),n=(0,i.setLineHeight)({fontSize:Q}),s.legendPos=(0,i.pluck)(d.legendposition,c.legendposition,t.legendPosition,i.POSITION_BOTTOM).toLowerCase(),s.numColumns=(0,i.pluckNumber)(Math.floor(d.legendnumcolumns)),s.numRows=(0,i.pluckNumber)(Math.floor(d.legendnumrows)),s.numColumns<0&&(s.numColumns=f),s.numRows<0&&(s.numRows=f),s.legendXPosition=y((0,i.pluckNumber)(d.legendxposition,c.legendxposition,t.legendXPosition,0),0),s.legendYPosition=y((0,i.pluckNumber)(d.legendyposition,c.legendyposition,t.legendYPosition,0),0),s.legendMaxWidth=(0,i.pluckNumber)(d.legendmaxwidth,c.legendmaxwidth,t.legendMaxWidth),s.legendMaxHeight=(0,i.pluckNumber)(d.legendmaxheight,c.legendmaxheight,t.legendMaxHeight),s.legendMaxWidth<0&&(s.legendMaxWidth=f),s.legendMaxHeight<0&&(s.legendMaxHeight=f),s.xL=s.yL=0,(S<=0||S>5)&&(S=1),s.drawCustomLegendIcon=(0,i.pluckNumber)(d.drawcustomlegendicon,t.drawcustomlegendicon,0),s.legendScale=S,s.legendPadding=(0,i.pluckNumber)(d.legendpadding,7),s.alignLegendWithCanvas=(0,i.pluckNumber)(t.alignlegendwithcanvas,u.alignLegendWithCanvas),s.title.style={fontFamily:(0,i.pluck)(d.legendcaptionfont,w),fontSize:(0,i.pluckFontSize)(d.legendcaptionfontsize,h.fontSize)+F,color:(0,i.pluck)(d.legendcaptionfontcolor,C).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontWeight:E.fontWeight[(0,i.pluckNumber)(d.legendcaptionfontbold,1)]||i.BLANKSTRING},o=d.legendcaptionalignment?d.legendcaptionalignment.toLowerCase():v.center,s.title.align=v[o]||v.center,s.title.style["text-anchor"]=s.title.align,s.padding=4,A=(0,i.pluck)(d.legendbordercolor,p.getColor(m.legendBorderColor)),r=s.borderAlpha=(0,i.pluckNumber)(d.legendborderalpha,100),s.borderColor=(0,i.convertColor)(A,r),s.borderWidth=(0,i.pluckNumber)(d.legendborderthickness,t.legendborderthickness,!B||d.legendbordercolor?1:0),s.borderRadius=(0,i.pluckNumber)(B,0),s.backgroundAlpha=a=(0,i.pluckNumber)(d.legendbgalpha,t.legendbgalpha,100),s.backgroundColor=(0,i.convertColor)((0,i.pluck)(d.legendbgcolor,p.getColor(m.legendBgColor)),a),s.symbol3DLighting=Boolean((0,i.pluckNumber)(d.use3dlighting,d.useplotgradientcolor,1)),s.symbol3DLighting=!u.usePattern&&s.symbol3DLighting,s.shadow=Boolean((0,i.pluckNumber)(d.legendshadow,1)),s.shadow&&(s.shadow={enabled:s.shadow,opacity:y(r,a)/100}),s.prevReversed=Boolean((0,i.pluckNumber)(s.reversed,0)),s.reversed=Boolean((0,i.pluckNumber)(d.reverselegend,0)),s.lineWidth=(0,i.pluckNumber)(d.linethickness,2),s.borderRadius=(0,i.pluckNumber)(d.legendborderradius,B?3:0),s.legendAllowDrag=Boolean((0,i.pluckNumber)(d.legendallowdrag,0)),s.title.oriText=(0,i.parseUnsafeString)((0,i.getFirstValue)(d.legendcaption,i.BLANKSTRING)),s.legendScrollBgColor=(0,i.getFirstColor)((0,i.pluck)(d.legendscrollbgcolor,d.scrollcolor,p.getColor("altHGridColor"))),s.legendScrollBarColor=(0,i.pluck)(d.legendscrollbarcolor,A),s.legendScrollBtnColor=(0,i.pluck)(d.legendscrollbtncolor,A),s.minimiseWrappingInLegend=(0,i.pluckNumber)(d.minimisewrappinginlegend,0),s.flatScrollBars=(0,i.pluckNumber)(d.flatscrollbars,0),s.scrollBar3DLighting=(0,i.pluckNumber)(d.scrollbar3dlighting,1),s.orderReversed=!1,l.setStateCosmetics("hidden",{symbol:{fill:(0,i.convertColor)((0,i.pluck)(d.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1")),stroke:(0,i.convertColor)((0,i.pluck)(d.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))},text:{fill:(0,i.convertColor)((0,i.pluck)(d.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))}}),l.setStateCosmetics("default",{text:{fill:(0,i.convertColor)(k),"font-family":w,cursor:b?i.preDefStr.POINTER:"default","font-size":Q,"line-height":n,"vertical-align":i.POSITION_TOP,"text-anchor":i.POSITION_START,direction:"rtl"===u.textDirection?"rtl":"initial","font-weight":E.fontWeight[(0,i.pluckNumber)(d.legenditemfontbold,0)]||i.BLANKSTRING},symbol:{bgColor:(0,i.pluck)(d.legendiconbgcolor),cursor:b?i.preDefStr.POINTER:"default",borderColor:(0,i.pluck)(d.legendiconbordercolor),bgAlpha:(0,i.pluckNumber)(d.legendiconbgalpha,d.legendiconalpha,100),borderAlpha:(0,i.pluckNumber)(d.legendiconborderalpha,d.legendiconalpha,100),borderThickness:(0,i.pluckNumber)(d.legendiconborderthickness),startAngle:(0,i.pluckNumber)(d.legendiconstartangle,45),sides:(0,i.pluckNumber)(d.legendiconsides,t.legendiconsides,4)}}),l.setStateCosmetics("hover",function(e,t){return t.hasState("hidden")||(e.text||(e.text={}),e.text.fill=(0,i.convertColor)(L.replace(/^#?([a-f0-9]+)/gi,"#$1")),e.text.cursor="inherit"),e}),s.legendAllowDrag&&!s._dragEvtListenerBinded?(l.addEventListener("fc-dragstart",s.handlers.dragstart),l.addEventListener("fc-dragmove",s.handlers.dragmove),s._dragEvtListenerBinded=!0):!s.legendAllowDrag&&s._dragEvtListenerBinded&&(l.removeEventListener("fc-dragstart",s.handlers.dragstart),l.removeEventListener("fc-dragmove",s.handlers.dragmove),s._dragEvtListenerBinded=!1)},n.getLegendState=function(){return this._legendState},n.hasState=function(e){var t,n,A=this.getLegendState();for(t=0,n=A.length;t<n;t++)if(A[t]===e)return!0;return!1},n.setLegendState=function(e,t){this.hasState(e)||(t?this._legendState.push(e):this._legendState.unshift(e)),this.asyncDraw()},n.removeLegendState=function(e){var t,n,A=1;if(e)for(t=0,n=this._legendState.length;t<n&&A;t++)e===this._legendState[t]&&(this._legendState.splice(t,1),A=0);else this._legendState.length=0;this.asyncDraw()},n.setStateCosmetics=function(e,t){this._stateCosmetics[e]=t},n.removeStateCosmetics=function(e){delete this._stateCosmetics[e]},n.getStateCosmetics=function(e){return this._stateCosmetics[e]},n.hide=function(){var e=this.getFromEnv("chart").getChildContainer("legendGroup");e&&e.hide()},t}(o.ComponentInterface);t["default"]=k},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(277)),a=A(n(295)),i=n(281),o=n(297),l=n(289),s=A(n(658)),c=n(626);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d=i.preDefStr.POINTER,g="M",p="L",f="Z",m="A",v=function(e,t,n,A,r){var a,i,o,l,s,c,u,h,d,v=[g];switch(r){case"column":case"dragColumn":case"column3D":case"realtimeColumn":case"errorBar2D":i=.5*(a=.25*n),o=.7*A,l=.4*A,v=v.concat([e,t+A,"l",0,-o,a,0,0,o,"z","m",a+i,0,"l",0,-A,a,0,0,A,"z","m",a+i,0,"l",0,-l,a,0,0,l,"z"]);break;case"bar2D":case"bar3D":a=.3*n,i=.6*n,l=(o=A/4)/2,v=v.concat([e,t,p,e+i,t,e+i,t+o,e,t+o,f,g,e,t+o+l,p,e+n,t+o+l,e+n,t+o+l+o,e,t+2*o+l,f,g,e,t+2*(o+l),p,e+a,t+2*(o+l),e+a,t+A,e,t+A,f]);break;case"area":case"area3d":case"areaspline":case"dragArea":case"realTimeArea":case"splinearea":a=.3*n,i=.6*n,o=.6*A,l=.2*A,s=.8*A,v=v.concat([e,t+s,p,e,t+o,e+a,t+l,e+i,t+o,e+n,t+l,e+n,t+s,f]);break;case"pie2D":case"pie3d":case"doughnut2D":case"doughnut3D":i=.9*(a=.5*n),c=e+a+1,h=t+a-1,u=e+a-1,d=t+a+1,v=v.concat([c,h,p,c,h-i+1,m,i-1,i-1,0,0,1,c+i-1,h,f,g,u,d,p,u,d-i,m,i,i,0,1,0,u+i,d,f]);break;case"boxandwhisker2d":default:v=v.concat([e,t,p,e+n,t,e+n,t+A,e,t+A,f]);break;case"radialBar":i=e+n,h=t+(a=.5*n),v=v.concat([e,h,m,a,a,0,0,0,i,h,m,a,a,0,0,0,e,h])}return{path:v}},b=function(e,t,n){var A,r=e.config,a=e.getLinkedParent().config,o=.5*a.symbolWidth,l=(a.initialItemX||0)+r._legendX,s=(a.initialItemY||0)+r._legendY,c=l+a.symbolPadding+o,u=s+(r._markerYGutter||0)+a.symbolPadding+o,h=(0,i.mapSymbolName)(r.anchorSide),g=r.symbol=h&&h.split("_")||[],p="spoke"===g[0]?1:0;return("line"===r.type||r.drawLine)&&(o*=.6),o=null!=(A=null==n?void 0:n.anchorradius)?A:o,{path:(0,i.polyPathToPath)([g[1]||2,c,u,o,null==n?void 0:n.anchorstartangle,r.spoke||p]),cursor:t.cursor||d,stroke:t.stroke,fill:t.fill,"stroke-width":t["stroke-width"]||.5}};(0,l.addDep)({name:"legendItemAnimation",type:"animationRule",extension:s["default"]});var B=function(e){function t(){var t;return(t=e.call(this)||this)._stateCosmetics={},t._legendState=[],t}(0,a["default"])(t,e);var n=t.prototype;return n.getName=function(){return"legendItem"},n.parseLegendCosmetics=function(){var e,t,n,A,r,a=this,o=this.getLinkedParent(),l=o.getLegendState(),s=a.getLegendState(),c=o.getFromEnv("dataSource"),u=null==(e=a.config)||null==(e=e.eventArguments)?void 0:e.datasetName,h=["default"],d={},g=null==c||null==(t=c.legend)||null==(t=t.item)?void 0:t.filter(function(e){return e.value===u});for(h=h.concat(l,s),r=0;r<h.length;r++)n=o.getStateCosmetics(h[r]),A=a.getStateCosmetics(h[r]),n&&("function"==typeof n?d=n(d,a):(0,i.extend2)(d,n)),A&&("function"==typeof A?d=A(d,a):(0,i.extend2)(d,A));if(g&&d){var p=g[0];if(null!=p&&p.legendsymbolstyle&&d.symbol){var f=p.legendsymbolstyle,m=f.color,v=f.opacity,b=f.width;d.symbol.rawFillColor=null!=m?m:d.symbol.rawFillColor,d.symbol.bgAlpha=null!=v?v:d.symbol.bgAlpha,a.config.symbolWidth=null!=b?b:a.config.symbolWidth}if(null!=p&&p.legendtextstyle&&d.text){var B,y,C=p.legendtextstyle,x=C.color,w=C.opacity,F=C["font-size"];d.text.fill=null!=x?x:d.text.fill,d.text["font-size"]=null!=F?F:d.text["font-size"],d.text.opacity=null!=w?w:d.text.opacity,d.text.marginTop=null!=(B=p.legendtextstyle["margin-top"])?B:0,d.text.marginBottom=null!=(y=p.legendtextstyle["margin-bottom"])?y:0}}return d},n.getType=function(){return"legendItem"},n.configure=function(e){var t,n,A=this.config;for(t in e)if(e.hasOwnProperty(t))if("object"!=typeof e[t])A[t]=e[t];else{var r=A[t]?A[t]:{};for(n in e[t])r[n]=e[t][n];A[t]=r}},n.itemClickFn=function(){var e,t,n=this,A=n.getFromEnv("chart-attrib"),r=(0,i.pluckNumber)(A.interactivelegend,1),a=n.getLinkedItem("owner"),o=null!=(e=null==n||null==(t=n.config)?void 0:t.type)?e:"";if(r&&a.legendInteractivity(n),"line"!==o){var l=(0,c.findMSColumn3DLineDyParent)(this),s=null==l?void 0:l.getState("lineLegendItem");if(s){var u=s.getLinkedItem("owner");u.legendInteractivity(s),u.legendInteractivity(s)}}},n.dispose=function(){this.removeEventListener("fc-click",this.click),this.removeEventListener("fc-mouseover",this.mouseover),this._dispose()},n.getLegendState=function(){return this._legendState},n.hasState=function(e){var t,n,A=this.getLegendState();for(t=0,n=A.length;t<n;t++)if(A[t]===e)return!0;return!1},n.setLegendState=function(e,t){this.hasState(e)||(t?this._legendState.push(e):this._legendState.unshift(e)),this.asyncDraw()},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.eventArguments={}},n.removeLegendState=function(e){var t,n,A=1;if(e)for(t=0,n=this._legendState.length;t<n&&A;t++)e===this._legendState[t]&&(this._legendState.splice(t,1),A=0);else this._legendState.length=0;this.asyncDraw()},n.removeStateCosmetics=function(e){delete this._stateCosmetics[e]},n.setStateCosmetics=function(e,t){this._stateCosmetics[e]=t},n.getStateCosmetics=function(e){return this._stateCosmetics[e]},n.draw=function(){var e,t,n,A,r,a,o,l,s,c,u,f,m,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P,M,H,O,_,R,V,G,K,z,W,j,X,Y,J,q,Z,$,ee,te,ne,Ae=this.getLinkedParent(),re=Ae.getFromEnv("chart"),ae=Ae.getFromEnv("dataSource"),ie=null==ae?void 0:ae.dataset,oe=re.config,le=this,se=le.getFromEnv("animationManager"),ce=le.config,ue=Ae.config,he=ue.legendHeight,de=ue.symbolPadding,ge=ue.symbolWidth,pe=ue.interactiveLegend,fe=ue.textPadding||2,me=2,ve=ue.itemHoverStyle,be=Ae.getChildContainer("itemGroup"),Be=ue.drawCustomLegendIcon,ye=le.hasState("hidden"),Ce={};if(a=le.parseLegendCosmetics(),ge=(null==ce?void 0:ce.symbolWidth)||ge,l=null!=(e=null==(t=a.text)?void 0:t.marginTop)?e:0,s=null!=(n=null==(A=a.text)?void 0:A.marginBottom)?n:0,c=a.symbol,u=ue.initialItemX||0,f=ue.initialItemY||0,C=ce.type,N=a.symbol.stroke||"000000",D=a.symbol.fill,o=a.symbol.lineWidth||ue.lineWidth,M=ce.anchorSide,H=ce.drawLine,x=u+ce._legendX,w=f+ce._legendY,W=le.getGraphicalElement("legendItemBackground"),y=le.getGraphicalElement("legendItemText"),F=le.getGraphicalElement("legendItemLine"),Q=le.getGraphicalElement("legendItemSymbol"),k=le.getGraphicalElement("legendItemIcon"),!(pe=(0,i.pluck)(ce.interactiveLegend,pe))&&(a.cursor="default"),j=a.text,ee=x+(null!=ce&&ce.symbolWidth?Number(ge):Number(he))+fe-2,te=w+(ce._legendTestY||0)+l-s,j.text=ce.name,j.x=ee,j.y=te,Array.isArray(ie)&&(ne=ie?ie.find(function(e){return e.seriesname===j.text}):null),j.fill=(null==(r=ne)?void 0:r.valuefontcolor)||j.fill,B=se.setAnimation({el:y||"text",attr:j,component:le,container:be,label:"icon"}),y||(B=le.addGraphicalElement("legendItemText",B)),B.data("legendItem",ce),k&&le.removeGraphicalElement("legendItemIcon"),X=!1,a.symbol.bgAlpha=(0,i.pluckNumber)(a.symbol.bgAlpha,oe.legendiconalpha,oe.legendiconbgalpha,oe.plotfillalpha),a.symbol.bgAlpha=a.symbol.bgAlpha>100||a.symbol.bgAlpha<0?1:a.symbol.bgAlpha,"radialBar"===C&&ce.showIcon)J={src:ce.iconUrl,x:x+de,y:w+(ce._markerYGutter||0)+de,width:ge,height:ge};else if(Be&&!1!==ce.customLegendIcon)R=!ye&&c.borderColor,V=(0,i.pluck)(c.borderAlpha),O=!ye&&c.bgColor,_=(0,i.pluck)(c.bgAlpha,"100"),G=a.symbol.rawFillColor,D=ye?a.symbol.fill:O||G,D=(0,i.convertColor)(D,_),K=a.symbol.rawStrokeColor,N=ye?a.symbol.stroke:R||K||G,N=(0,i.convertColor)(N,V),L=x+de+(U=.5*ge),m=w+(ce._markerYGutter||0)+de+U,I="spoke"===(T=(0,i.mapSymbolName)(c.sides)&&(0,i.mapSymbolName)(c.sides).split("_")||[])[0]?1:0,Y={path:(0,i.polyPathToPath)([T[1]||2,L,m,U,c.startAngle||0,I]),cursor:a.symbol.cursor||d,stroke:N,"stroke-width":(0,i.pluckNumber)(c.borderThickness,1)},ce.usePattern?delete Y.fill:Y.fill=D;else if("line"===C||H){var xe,we;M&&(Y=b(le,a.symbol,ne),me=ce.anchorSide>1&&ce.anchorSide<10?4:7),m=w+(ce._markerYGutter||0)+de+.5*ge,Z={path:[g,x+de,m,p,x+de+ge/me,m,g,x+de+ge-ge/me,m,p,x+de+ge,m]},X=!0,$=(0,i.pluckNumber)(null==(xe=ne)?void 0:xe.dashed,0),N=(0,i.convertColor)(null==(we=ne)?void 0:we.color)||N,Ce={opacity:(0,i.pluckNumber)(a.symbol.bgAlpha,1),stroke:N,"stroke-width":o,cursor:a.cursor||d},$&&(Ce["stroke-dasharray"]=i.STROKE_DASH_LINE_WIDTH)}else M?Y=b(le,a.symbol):"radialBar"!==C||ce.showIcon?"line"!==C&&(N=ce.symbolStroke||N,Y={path:v(x+de,w+(ce._markerYGutter||0)+de,ge,ge,C).path,"stroke-width":.5,stroke:N,fill:D,cursor:a.cursor||d}):(N=ce.symbolStroke||N,Y={path:v(x+de,w+(ce._markerYGutter||0)+de,ge,ge,C).path,"stroke-width":.5,stroke:N,fill:D,cursor:a.cursor||d});Z&&X?(Object.assign(Z,Ce),F=se.setAnimation({el:F||"path",attr:Z,component:le,callback:function(){this.show()},container:be}),le.getGraphicalElement("legendItemLine")||(F=le.addGraphicalElement("legendItemLine",F))):F&&F.hide(),J?(E=se.setAnimation({el:k||"image",attr:J,component:le,callback:function(){this.show()},container:be,label:"icon"}),k&&k.node||(E=le.addGraphicalElement("legendItemIcon",E)),E.data("legendItem",ce)):k&&this.removeGraphicalElement(k),Y?(Y.opacity=(0,i.pluckNumber)(a.symbol.bgAlpha,1),S=se.setAnimation({el:Q||"path",attr:Y,component:le,callback:function(){this.show()},container:be,label:"icon"}),ce.usePattern&&ce.patternAttr&&S.addPattern(h(h({},ce.patternAttr),{},{color:ye?Y.stroke:ce.patternAttr.color,x:x,y:w}),ce.usePattern),Q&&Q.node||(S=le.addGraphicalElement("legendItemSymbol",S)),S.data("legendItem",ce)):Q&&Q.hide(),P=a.background&&a.background.legendBackgroundColor?(0,i.convertColor)(a.background.legendBackgroundColor,a.background.alpha):i.TRACKER_FILL,q={x:x,y:w,width:ce._totalWidth,height:ce._legendH,r:0,fill:P,opacity:1,"stroke-width":1,stroke:"none",cursor:a.symbol.cursor||d},z=se.setAnimation({el:W||"rect",attr:q,css:undefined,component:le,label:"background",container:be}),W||le.addGraphicalElement("legendItemBackground",z),z.data("legendItem",le).data("interactive",pe).data("itemHoverStyle",ve).data("itemStyle",a)},t}(o.ComponentInterface);t["default"]=B},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var A=n(281);t["default"]={"*.legendItem.legendItem":function(){return{"icon.appearing":function(e){return[{initialAttr:{opacity:0},slot:"plot",startEnd:{start:.5,end:1},finalAttr:{opacity:(0,A.pluckNumber)(e.attr.opacity,1)}}]},"background.appearing":function(e){return[{initialAttr:{opacity:0},slot:"plot",startEnd:{start:.5,end:1},finalAttr:{opacity:e.attr.opacity}}]},"icon.disappearing":function(){return[{finalAttr:{opacity:0},slot:"initial"}]}}}}},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}],A=[{slot:"plot",startEnd:{start:0,end:.5}}],r=[{slot:"intial"}];t["default"]={"*.legend.legend":function(){return{"legendGroup.appearing":n,"legendGroup.updating":A,"legendGroup.disappearing":r,"scrollbar.appearing":n,"scrollbar.updating":A,"scrollbar.disappearing":r}}}},(e,t,n)=>{"use strict";t.__esModule=!0,t.computeLayout=void 0;var A=n(661),r=n(662),a=n(663),i=function(){function e(){this.gridLayoutEngine=a.computeGridLayout}return e.prototype.compute=function(e){switch((0,A.getDisplayProperty)(e)){case r.DISPLAY_GRID:case r.DISPLAY_FLEX:}return this.gridLayoutEngine(e)},e}();t.computeLayout=function(e){var t,n=new i,r=(0,A.cloneObject)(e);return r.root=!0,t=n.compute(r),(0,A.attachLayoutInformation)(e,t),e}},(e,t,n)=>{"use strict";t.__esModule=!0,t.pluckNumber=t.getDisplayProperty=t.cloneObject=t.attachLayoutInformation=void 0;var A=n(662),r=(t.getDisplayProperty=function(e){return e.style&&e.style.display},t.cloneObject=function(e){if(A.ATOMIC_DATA_TYPE.indexOf(typeof e)>-1||null===e)return e;if(Array.isArray(e)){var t,n,a=[];for(t=0,n=e.length;t<n;t++)a.push(r(e[t]));return a}if("object"==typeof e){var i,o={};for(i in e)o[i]=r(e[i]);return o}}),a=t.attachLayoutInformation=function(e,t){var n,A;for(void 0===e&&(e={}),void 0===t&&(t={}),e.layout=t.layout,n=0,A=(e.children||[]).length;n<A;n++)a(e.children[n],t.children[n])};t.pluckNumber=function(){var e,t,n;for(t=0,n=arguments.length;t<n;t+=1)if(((e=arguments[t])||!1===e||0===e)&&!isNaN(e=Number(e)))return e}},(e,t)=>{"use strict";t.__esModule=!0,t.STRETCH=t.START=t.END=t.DISPLAY_GRID=t.DISPLAY_FLEX=t.CENTER=t.ATOMIC_DATA_TYPE=void 0;t.DISPLAY_GRID="grid",t.DISPLAY_FLEX="flex",t.CENTER="center",t.START="start",t.END="end",t.STRETCH="stretch",t.ATOMIC_DATA_TYPE=["string","number","function","boolean","undefined"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.computeGridLayout=function(e,t){void 0===t&&(t=1);var n,A,r,i,o=e.style;if(!e||!e.style)return;e.userGivenStyles||(e.style.width=isNaN(e.style.width)?"auto":e.style.width,e.style.height=isNaN(e.style.height)?"auto":e.style.height,o.paddingStart=(0,a.pluckNumber)(o.paddingStart,o.padding,0),o.paddingEnd=(0,a.pluckNumber)(o.paddingEnd,o.padding,0),o.paddingTop=(0,a.pluckNumber)(o.paddingTop,o.padding,0),o.paddingBottom=(0,a.pluckNumber)(o.paddingBottom,o.padding,0),e.userGivenStyles={gridTemplateColumns:e.style.gridTemplateColumns,gridTemplateRows:e.style.gridTemplateRows,width:e.style.width,height:e.style.height});for(e.unResolvedChildren=[],n=0,A=e.children&&e.children.length;n<A;n++)r=e.children[n],(0,a.getDisplayProperty)(r)&&(p(r)?this.compute(r):e.unResolvedChildren.push(r));(i=new B).set("domTree",e).set("parent",this).compute(),t<2&&this.gridLayoutEngine(C(e,i),2);return e};var r=A(n(277)),a=n(661),i=A(n(664)),o=n(662),l=n(665);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=["auto","none"],h=/minmax/,d=/(?:[^\s[\]()]+|\[[^[\]]*\]|\([^()]*\))+/g,g=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e){var t=e.style||{},n=t.gridTemplateColumns,A=t.gridTemplateRows;return!/repeat\(/g.test(n)&&!/repeat\(/g.test(A)},f=function(e){return e.split(/\(|\)/g)[1].split(",").map(function(e){return e&&e.trim()})},m=function(e,t){var n,A,r=g(t),i="width"===t?"col":"row";return e.map(function(e){return n=e.style["gridTemplate"+g("col"===i?"columns":"rows")],A="grid"===(0,a.getDisplayProperty)(e)&&/repeat\(/g.test(n)?f(n)[1]:e.style["min"+r+"Contribution"]||e.style[t]||"auto",{start:e[i+"Start"],end:e[i+"End"],size:A}})},v=function(e,t,n){var A,r;for(A=t.x;A<n.x;A++)for(r=t.y;r<n.y;r++)e[A][r]=!0},b=function(e,t){var n=e.gridRowStart,A=e.gridRowEnd,r=e.gridColumnStart,a=e.gridColumnEnd;if(e.gridColumn){var i=e.gridColumn.split("/").map(function(e){return e.trim()});r=i[0],a=i[1],r=t?t.col.nameToLineMap[r]:1,/span\s+\d+/g.test(a)&&(a=r+ +a.match(/span\s+(\d+)/)[1]),a=t?t.col.nameToLineMap[a]:1}if(e.gridRow){var o=e.gridRow.split("/").map(function(e){return e.trim()});n=o[0],A=o[1],n=t?t.row.nameToLineMap[n]:1,/span\s\d+/g.test(A)&&(A=n+ +A.match(/span\s(\d+)/)[1]),A=t?t.row.nameToLineMap[A]:1}return{gridRowStart:n,gridRowEnd:A,gridColumnStart:r,gridColumnEnd:a}},B=function(){function e(){this.setup()}var t=e.prototype;return t.setup=function(){return this._tsa=new i["default"],this.props={},this._config={mapping:{}},this},t.set=function(e,t){return this.props[e]=t,this},t.getProps=function(e){return this.props[e]},t.getConfig=function(e){return this._config[e]},t.compute=function(e){var t=e||this.props.domTree;this._sanitizeTracks(t)._sanitizeItems(t)._inflateTracks()._assignCoordinatesToCells(t)},t._sanitizeTracks=function(e){void 0===e&&(e={});var t,n=e.style,A=n.gridTemplateRows,r=n.gridTemplateColumns,a=this._config,i=function(e){var t,n=1,A=1;return e.forEach(function(e){t=b(e.style),A=Math.max(isNaN(+t.gridColumnStart)?0:+t.gridColumnStart,A,isNaN(+t.gridColumnEnd-1)?0:+t.gridColumnEnd-1),n=Math.max(isNaN(+t.gridRowStart)?0:+t.gridRowStart,n,isNaN(+t.gridRowEnd-1)?0:+t.gridRowEnd-1)}),{maxRow:n,maxColumn:A}}(e.children),o=i.maxColumn,l=i.maxRow;return this.set("maxTracks",l),t=this._fetchTrackInformation(A),a.mapping.row={nameToLineMap:t.nameToLineMap,lineToNameMap:t.lineToNameMap},a.rowTracks=t.tracks,this.set("maxTracks",o),t=this._fetchTrackInformation(r),a.mapping.col={nameToLineMap:t.nameToLineMap,lineToNameMap:t.lineToNameMap},a.colTracks=t.tracks,this},t._fetchTrackInformation=function(e){void 0===e&&(e="none");var t,n,A,r,a,i,o=e.match(d),l=[{}],s={},c={};for(A=o.filter(function(e){return!e||"string"!=typeof e||!e.length||(n=e.length,"["===e[0]&&"]"===e[n-1])}),r=o.filter(function(e){return!!e&&(n=(e+"").toLowerCase().replace(/px|fr/,""),!(!(u.indexOf(n)>=0||h.test(n))&&isNaN(n)))}).map(function(e){return function(e){if("auto"===(e=e.trim()))return e;if(!isNaN(+e))return+e;if(h.test(e)){var t=e.split(/\(|\)/g)[1].split(",");return[t[0].trim(),t[1].trim()]}return e}(e)}),n=r.length,"none"===e&&(n=this.getProps("maxTracks")),t=0;t<n;t++)a=A[t]&&A[t].replace(/\[|\]/g,"").split(" ").filter(function(e){return e.length}).map(function(e){return e.trim()})||[t+1+""],i=A[t+1]&&A[t+1].replace(/\[|\]/g,"").split(" ").filter(function(e){return e.length}).map(function(e){return e.trim()})||[t+2+""],l.push({start:t+1,end:t+2,size:r[t]||"auto"}),c[t+1]=a,c[t+2]=i,a.forEach(function(e){return s[e]=t+1}),i.forEach(function(e){return s[e]=t+2}),s[t+1]=t+1,s[t+2]=t+2;return{tracks:l,nameToLineMap:s,lineToNameMap:c}},t._sanitizeItems=function(e){var t,n,A,r,a,i,o,l=e||this.props.domTree,s=l.children||[],u=this._config.mapping,h=l.style.gridAutoFlow||"row",d=Object.keys(u.row.lineToNameMap).length,g=Object.keys(u.col.lineToNameMap).length,p=[],f=[],m=[[]],B=[];for(a=1;a<=d;a++)m.push([]);for(a=0,o=s.length;a<o;a++)t=b(s[a].style,u),p.push(c(c({},s[a]),{},{rowStart:u.row.nameToLineMap[t.gridRowStart],rowEnd:u.row.nameToLineMap[t.gridRowEnd],colStart:u.col.nameToLineMap[t.gridColumnStart],colEnd:u.col.nameToLineMap[t.gridColumnEnd]})),A=p[a],v(m,{x:A.rowStart,y:A.colStart},{x:A.rowEnd,y:A.colEnd});if((f=p.filter(function(e){return!e.colStart||!e.rowStart}))&&"row"===h){for(a=1;a<d;a++)for(i=1;i<g;i++)m[a][i]||B.push({row:a,col:i});for(;f.length&&B.length;)A=f.shift(),n=B.shift(),A.rowStart=n.row,A.colStart=n.col,A.rowEnd=n.row+1,A.colEnd=n.col+1;if(r=Math.ceil(f.length/g)){for(;r--;)l.style.gridTemplateRows+="auto ",u.row.nameToLineMap[d+1]=d+1,u.row.nameToLineMap[d+2]=d+2,d++,m.push([]);for(l.style.gridTemplateRows=l.style.gridTemplateRows.trim(),B=[],a=1;a<=d;a++)for(i=1;i<=g;i++)m[a][i]||B.push({row:a,col:i});for(;f.length;)A=f.shift(),n=B.shift(),A.rowStart=n.row,A.colStart=n.col,A.rowEnd=n.row+1,A.colEnd=n.col+1}}return this._config.sanitizedItems=p,this},t._inflateTracks=function(){var e,t=this._config,n=t.sanitizedItems,A=t.colTracks,r=t.rowTracks,a=0,o=0,l=this.props.domTree,s=l.style||{},c=s.paddingStart,u=s.paddingEnd,h=s.paddingTop,d=s.paddingBottom,g=s.width,p=s.height,f=new i["default"];return isNaN(+g)||(g-=c+u),e=f.clear().set("tracks",A).set("items",m(n,"width")).set("containerSize",g||"auto").resolveTracks(),A.forEach(function(t,n){t.calculatedStyle=e[n],o+=e[n].baseSize||0}),this._solveUnresolvedChildren(),isNaN(+p)||(p-=h+d),e=f.clear().set("tracks",r).set("items",m(n,"height")).set("containerSize",p||"auto").resolveTracks(),r.forEach(function(t,n){t.calculatedStyle=e[n],a+=e[n].baseSize||0}),l.style.minHeightContribution=a,l.style.minWidthContribution=o,this},t._solveUnresolvedChildren=function(e){var t,n,A,r,a,i,o,s,c=((e||this.props.domTree).unResolvedChildren||[]).filter(function(e){return/repeat\(/g.test(e.style.gridTemplateColumns)||/repeat\(/g.test(e.style.gridTemplateRows)}),u=this._config,h=u.colTracks,d=u.mapping,g=this.getProps("parent"),p=[0];if(!c.length)return this;for(n=1,A=h.length;n<A;n++)p[n]=p[n-1]+h[n].calculatedStyle.baseSize;return c.forEach(function(e){i=f(e.style.gridTemplateColumns)[1],o=d.col.nameToLineMap[e.style.gridColumnStart],s=d.col.nameToLineMap[e.style.gridColumnEnd],r=p[s-1]-p[o-1],a={itemWidth:i,width:r},t=(0,l.repeatResolver)(e,a),e.style.gridTemplateColumns=t.gridTemplateColumns,e.style.gridTemplateRows=t.gridTemplateRows,g.gridLayoutEngine(e)}),this},t._assignCoordinatesToCells=function(e){var t,n,A,r,i,l,s,c,u,h=e||this.props.domTree,d=this._config,g=d.sanitizedItems,p=d.rowTracks,f=d.colTracks,m=h.style,v=m.justifyItems,b=m.alignItems,B=m.paddingStart,y=m.paddingTop,C=[B],x=[y];for(A=1,n=p.length;A<n;A++)C[A]=C[A-1]+p[A].calculatedStyle.baseSize;for(A=1,n=f.length;A<n;A++)x[A]=x[A-1]+f[A].calculatedStyle.baseSize;return h.layout={x:0,y:0,width:isNaN(h.style.width)?x[x.length-1]:h.style.width,height:isNaN(h.style.height)?C[C.length-1]:h.style.height},(h.children||[]).forEach(function(e,n){switch(t=g[n],r=x[t.colEnd-1]-x[t.colStart-1],i=C[t.rowEnd-1]-C[t.rowStart-1],l=isNaN(+e.style.width)?r:+e.style.width,s=isNaN(+e.style.height)?i:+e.style.height,v||e.style.justifySelf){case o.CENTER:c=x[t.colStart-1]+r/2-l/2;break;case o.END:c=x[t.colEnd-1]-l;break;case o.STRETCH:l=r,c=x[t.colStart-1];break;default:c=x[t.colStart-1]}switch(b||e.style.alignSelf){case o.CENTER:u=C[t.rowStart-1]+i/2-s/2;break;case o.END:u=C[t.rowEnd-1]-s;break;case o.STRETCH:s=i,u=C[t.rowStart-1];break;default:u=C[t.rowStart-1]}c+=(0,a.pluckNumber)(t.style.paddingStart,t.style.padding,0),u+=(0,a.pluckNumber)(t.style.paddingTop,t.style.padding,0),e.layout={x:c,y:u,x2:c+l,y2:u+s,width:l,height:s}}),this},e}(),y=function(e,t){void 0===e&&(e="");var n=(e.match(d)||[]).filter(function(e){return e&&!!e.trim()}),A="",r=1;return n.length&&!/repeat\(/.test(e)?n.forEach(function(e){u.indexOf(e)>-1||/[0-9]fr/.test(e)||h.test(e)||!isNaN(e)?(A+=t[r].calculatedStyle.baseSize+" ",r++):A+=e+" "}):t.forEach(function(e){isNaN(e.calculatedStyle.baseSize)||(A+=e.calculatedStyle.baseSize+" ")}),A.trim()},C=function(e,t){var n,A,r,i,o,l,s,c,u,h,d=e.style,g=t.getConfig("rowTracks"),p=t.getConfig("colTracks"),f=t.getConfig("mapping"),m=d.gridTemplateRows,v=d.gridTemplateColumns;for(e.style.gridTemplateRows=y(m,g),e.style.gridTemplateColumns=y(v,p),A=0,i=(e.children||[]).length;A<i;A++)if(n=e.children[A],(0,a.getDisplayProperty)(n)){if(n.style.gridTemplateColumns=n.userGivenStyles.gridTemplateColumns,n.style.gridTemplateRows=n.userGivenStyles.gridTemplateRows,isNaN(n.userGivenStyles.width)){for(u=n.style.gridColumnStart,h=n.style.gridColumnEnd,u=f.col.nameToLineMap[u],h=f.col.nameToLineMap[h],r=u,l=0;r<h;r++)l+=p[r].calculatedStyle.baseSize;n.style.width=l}if(isNaN(n.userGivenStyles.height)){for(s=n.style.gridRowStart,c=n.style.gridRowEnd,s=f.row.nameToLineMap[s],c=f.row.nameToLineMap[c],r=s,o=0;r<c;r++)o+=g[r].calculatedStyle.baseSize;n.style.height=o}}return e}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(277));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o=function(e){return+e.replace(/fr/,"")},l=function(e,t,n){var A,r,a=0;if(e.length){if(e.forEach(function(e){return a+=e.multiplier}),A=(n-t)/a,(r=e.filter(function(e){return e.baseSize<=e.multiplier*A})).length<e.length)return e.filter(function(e){return e.baseSize>e.multiplier*A}).forEach(function(e){return t+=e.baseSize}),l(r,t,n);r.forEach(function(e){return e.baseSize=e.multiplier*A})}},s=function(){function e(e,t,n){return void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=600),this.clear(),this.set("tracks",e),this.set("items",t),this.set("containerSize",n),this}var t=e.prototype;return t.set=function(e,t){switch(this.props[e]=t,e){case"tracks":this._initTrackSize();break;case"items":this._initItems();break;case"containerSize":this.props[e]=isNaN(+t)?0:+t}return this},t.get=function(e){return this.props[e]},t._initTrackSize=function(e){var t,n,A,r,a,l,s,c=e||this.props.tracks||[],u=this._config,h=[{}];for(u.frTracks=[],u.intrinsicTracks=[],t=1,n=c.length;t<n;t++)A=c[t].size,a=1,Array.isArray(A)?(l=+A[0]||0,A[1].indexOf("fr")>0||A[0].indexOf("fr")>0?(s=Infinity,u.frTracks.push(t),r="minmax"):"auto"===A[1]||"auto"===A[0]?(s=Infinity,u.intrinsicTracks.push(t),r="minmax"):isNaN(+A[0])||isNaN(+A[1])||(s=Math.max(+A[0],+A[1]),l=Math.min(+A[0],+A[1]),u.intrinsicTracks.push(t),r="minmax")):isNaN(+A)?A.indexOf("fr")>0?(l=0,s=Infinity,u.frTracks.push(t),r="flex",a=o(A)):(l=0,s=Infinity,r="intrinsic",u.intrinsicTracks.push(t)):(l=s=+A,r="fixed"),h.push(i(i({},c[t]),{},{type:r,multiplier:a,baseSize:l,growthLimit:s}));return u.sanitizedTracks=h},t._initItems=function(e){var t,n,A,r,a=e||this.props.items||[],o=this._config,l=[],s=0;for(A=0,r=a.length;A<r;A++)isNaN(a[A].start)||isNaN(a[A].end)?o.autoFlow.push(a[A]):(l.push(i({},a[A])),n=l[s],s++,n.size=isNaN(n.size)?this._getParentSize(n):+n.size);for(l.sort(function(e,t){var n=e.end-e.start,A=t.end-t.start;return n===A?e.start-t.start:n-A}),A=0,t=r=l.length;A<r;A++)if(l[A].end-l[A].start>1){t=A;break}return this._config.nonSpanningItemStartIndex=t,this._config.sanitizedItems=l},t._getParentSize=function(e){var t=this._config.sanitizedTracks,n=0;return t.filter(function(t){return t.start>=e.start&&t.end<=e.end}).forEach(function(e){return n+=e.baseSize}),n||0},t.resolveTracks=function(){return this._placeNonSpanningItems()._placeSpanningItems()._distributeFreeSpace(),this._config.sanitizedTracks},t._placeNonSpanningItems=function(){var e,t,n=this._config,A=n.sanitizedItems,r=n.sanitizedTracks,a=n.nonSpanningItemStartIndex;return A.slice(0,a).forEach(function(n){t=n.start,"fixed"!==(e=r[t]).type&&(e.baseSize=Math.max(e.baseSize,n.size),e.growthLimit=Math.max(e.growthLimit,e.baseSize))}),this},t._placeSpanningItems=function(){var e,t,n,A,r,a,i,o=this._config,l=o.sanitizedItems,s=o.sanitizedTracks,c=o.nonSpanningItemStartIndex,u=o.frTracks,h=l.slice(c),d=[0];if(!h.length)return this;for(a=1,i=s.length;a<i;a++)d[a]=d[a-1]+(s[a].baseSize||0);return h.forEach(function(i){if(e=d[i.end-1]-d[i.start-1],t=Math.max(0,i.size-e)){for(a=i.start,r=!1,A=0;a<i.end;a++)u.indexOf(a)>=0&&(r=!0),"fixed"!==s[a].type&&A++;if(A&&!r)for(n=t/A,a=i.start;a<i.end;a++)"fixed"!==s[a].type&&(s[a].baseSize+=n)}}),this},t._distributeFreeSpace=function(){var e=this._config,t=e.frTracks,n=e.intrinsicTracks,A=e.sanitizedTracks,r=this.props.containerSize,a=0;return A.forEach(function(e){return a+=e.baseSize||0}),a<r&&(t.length?(t.forEach(function(e,n){t[n]=A[e]}),t.forEach(function(e){return a-=e.baseSize}),l(t,a,r)):n.length&&(n.forEach(function(e,t){n[t]=A[e]}),function(e,t,n){var A,r,a,i,o,l,s,c=0;if(e.length){for(A=n-t,(o=e.filter(function(e){return"minmax"===e.type&&e.growthLimit!==Infinity})).sort(function(e,t){return e.growthLimit-e.baseSize-(t.growthLimit-t.baseSize)}),i=o.length;c<i&&A;)for(r=A/(o.length-c||1),a=0,i=o.length;a<i;a++)l=o[a].growthLimit,A-=(s=Math.min(r+o[a].baseSize,l))-o[a].baseSize,o[a].baseSize=s,l!==s||o[a].frozen||(o[a].frozen=!0,c++);e=e.filter(function(e){return"minmax"===e.type&&e.growthLimit===Infinity||"minmax"!==e.type}),r=A/e.length,e.forEach(function(e){return e.baseSize+=r})}}(n,a,r))),this},t.clear=function(){return this.props={},this._config={frTracks:[],intrinsicTracks:[],autoFlow:[]},this},e}();t["default"]=s},(e,t)=>{"use strict";t.__esModule=!0,t.repeatResolver=function(e,t){var n,A,r,a=e.children,i=0,o=0,l="",s="",c=0,u=t.itemWidth,h=t.width;for(h=isNaN(+h)?0:+h,a.forEach(function(e){return c=Math.max(c,+e.style.height||0)}),i+=u=+u,l+=u+" ",o=1,A=1,r=a.length;A<r&&!(i+u>h);A++)i+=u,l+=u+" ";for(o=A,n=Math.ceil(r/o);n--;)s+=c+" ";return{gridTemplateColumns:l.trim(),gridTemplateRows:s.trim()}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.drawLabel=t["default"]=void 0;var r,a=A(n(295)),i=A(n(624)),o=n(281),l=n(289),s=A(n(667)),c=o.preDefStr.visibleStr,u=o.preDefStr.hiddenStr,h=o.preDefStr.POSITION_MIDDLE,d=o.preDefStr.POSITION_START,g=o.preDefStr.POSITION_END,p=Math,f=p.min,m=p.max,v=function(e){return e!==r&&null!==e},b=t.drawLabel=function(e,t){var n,A,a,i,l,s,p,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P=this,M=P.getFromEnv("chart"),H=P.getFromEnv("toolTipController"),O=M.config,_=P.config,R=_.JSONData,V=P.getFromEnv("animationManager"),G=M.getChildren("canvas")[0].config,K=M.config.dataLabelStyle,z=R.data,W=M.config.categories,j=M.config.is3D,X=M.config.isstacked,Y=W&&W.length,J=z&&z.length,q=P.getData(),Z=M.getFromEnv("smartLabel"),$=G.yDepth,ee=G.xDepth,te=M.getFromEnv("number-formatter"),ne=o.BLANKSTRING,Ae=O.placevaluesinside,re=O.canvasWidth,ae=O.canvasLeft,ie=P.getContainer("labelGroup"),oe=P.getSkippingInfo&&P.getSkippingInfo(),le=oe&&oe.skippingApplied,se=oe&&oe.labelDraw||[],ce=se.length,ue=(0,o.pluckNumber)(e,0),he=(0,o.pluckNumber)(t,le?ce:Y<J?Y:J),de=ce===Math.abs(he-(ue+1)),ge=P.getState("visible"),pe=function(){this.hide()};for(ge&&ie.show(),Z.setStyle(K),l=ue;l<he;l++){var fe;Q=(I=(A=q[i=le&&de?se[l]:l])&&A.config)&&I.setValue,A!==r&&Q!==r&&null!==Q&&!0!==I.labelSkip?(p=A.graphics)&&(s=z[i],F=A._yPos,S=A._xPos,Q=te.getCleanValue(s.value),w=(0,o.pluckNumber)(Q)<0,b=A._height,E=A._width,B=I.valuePadding+2,k=X?h:w?Ae?d:g:Ae?g:d,ne=I.displayValue,N=p.label,E<(null==(fe=Z.getOriSize(ne))?void 0:fe.width)&&X&&(I.showValue=0),I.showValue&&v(ne)&&ne!==o.BLANKSTRING&&null!==Q?(a={text:ne,fill:(n=I.dataLabelStyle).color,"text-bound":[n.backgroundColor,n.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash],"line-height":K.lineHeight,visibility:P.getState("visible")?c:u},L=Z.getOriSize(ne).width,L+=B,U=B,y=F+.5*b,C=S+(w?0:E),x=w?S-ae:ae+re-(S+E),X?(C=m(ae+.5*L,C+=.5*(w?E:-E)),C=f(ae+re-.5*L,C),C-=j?ee:0,y+=j?$:0):Ae?E>=L?(C+=w?U:-U,j&&(y+=$,C-=ee)):L<x?(C+=w?-U:U,k=w?g:d,j&&w&&(C-=ee)):(w?(C=S+E+m(L-S-E+ae,0)-U,k=g):(C=S-m(L-(ae+re-S),0)+U,k=d),j&&(C-=ee,y+=$)):x>=L?(C+=w?-U:U,j&&w&&(C-=ee,y+=ee)):(C+=w?U+L:-(U+L),j&&(C-=ee,y+=$)),(C>ae+re||C<ae)&&(C=ae+4,k=d),a["text-anchor"]=k,a.x=C,a.y=y,a.opacity=ge?1:0,(T=V.setAnimation({el:N||"text",container:ie,component:P,attr:a,callback:!ge&&pe,label:"plotLabel"})).outlineText(_.showTextOutline,a.fill),O.showtooltip&&T.abbrArr&&T.abbrArr.length&&H.enableToolTip(T,r),N||(p.label=T)):p.label&&(p.label=V.setAnimation({el:p.label,component:P}))):((D=A&&A.graphics)&&D.label&&D.label.hide(),I&&delete I.labelSkip)}P.config.labelDrawn=!0};(0,l.addDep)({name:"barAnimation",type:"animationRule",extension:s["default"]});var B=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"bar2D"},n.drawLabel=function(){var e=this.config;b.call(this,e.scrollMinValForLabel,e.scrollMaxValForLabel)},t}(i["default"]);t["default"]=B},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=n(281),a=A(n(625));t["default"]={"initial.dataset.bar2D":function(){var e=this,t=e.getFromEnv("chart"),n=t.config.yDepth||0,A="x",a="width",i=e.getFromEnv("yAxis");return{"rect.appearing":function(o){var l,s,c,u,h=i.getPixel(i.getAxisBase())+(t.isBar?-n:n),d=o.index,g=e.components.data[d],p=o.attr;return l=p[A],s=p[a],u=Math.sign(l+s/2-h),c=1===u?l:l+s,g._posWRT0=u,[{initialAttr:function(){var e={};return e[A]=c,e[a]=0,e.opacity=0,e},finalAttr:{opacity:1},startEnd:function(){var t=o.length;return r.animHelperFN.getTimeByValue(r.animHelperFN.animByWeight(d,t,.6),{startPx:h,endPx:1===u?e.config.yAxisMaxPixel:e.config.yAxisMinPixel},{startPx:c,endPx:1===u?p[A]+p[a]:p[A]})},hookFn:function(){this.attr({opacity:1})},effect:"linear",slot:"plot"}]},"plotLabel.appearing":function(){return[{initialAttr:{opacity:0},slot:"final"}]},"*":null}},"legendInteraction.dataset.bar2D":a["default"]["legendInteraction.dataset.column"]}},,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.plotGraphicClick=t.plotClickHandler=t.labelClickFn=t.hideFn=t["default"]=void 0,t.trimData=Z;var r,a=A(n(277)),i=A(n(295)),o=A(n(643)),l=n(624),s=n(281),c=n(289),u=A(n(676)),h=A(n(397)),d=n(293),g=A(n(382)),p=n(677),f=A(n(305));function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,a["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=(0,c.getDep)("redraphael","plugin"),B=window,y=B.document,C=!s.hasSVG,x="createTouch"in y,w=x&&!(B.navigator.maxTouchPoints||B.navigator.msMaxTouchPoints),F="eventArgs",S="outside",E="inside",Q=Math,k=Q.atan2,L=Q.sin,U=Q.cos,I=Q.max,T=Q.min,N=Q.abs,D=Q.floor,P=Q.PI,M=180/Q.PI,H=2*P,O=function(e){var t,n,A,r=[[],[],[],[]];for(t=0,n=e.length;t<n;t++)A=(0,p.getCleanAngle)(e[t].point.config.angle),r[(0,p.getQuadrant)(A)].push({point:e[t].point,angle:A});return r},_=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:n,label:"group"})},R=function(e,t){var n=t?1:r;return(0,s.toRaphaelColor)({color:(0,s.getFirstColor)(e.color,n),alpha:(0,s.getFirstAlpha)(e.alpha,n)})},V=function(e,t,n,A,r){return k((t-n[1]-A.top)/r,e-n[0]-A.left)},G=t.plotClickHandler=function(e,t){return function(n){!t.data("plotItem").seriesData.isRotating&&e.plotGraphicClick.call(t,n)}},K=t.plotGraphicClick=function(e){return function(t){var n,A,r,a,i,o,l,s,c,u,h,d,g,p=this.element||this,f=p.plotItem||p.data("plotItem"),m=p.data("eventArgs")||{},v=f.chart,b=e.getFromEnv("animationManager"),B=f.index,y=e.config,C=y.enableMultiSlicing,S=e.components.data[B],E=S.graphics,Q=S.config,k=Q.doNotSlice,L=Q.slicedTranslation;if(!y.isRotating&&t&&v.plotEventHandler(p,t),!(y.isRotating||y.singletonCase||k)&&v.config&&(A=!C&&e.sliceInOtherPies(B),!(o=Q.sliced)||!A)){if(x&&!w){if(h=(new Date).getTime(),f.lastSliceTimeStamp&&h-f.lastSliceTimeStamp<400)return;f.lastSliceTimeStamp=h}return r=E.element,c=E.connector,a=E.label||E.dataLabel,i=E.innerLabel,L="object"==typeof L?"t"+L:L,u=Q.connectorPath,l=(o?-1:1)*Q.transX,s=(o?-1:1)*Q.transY,d=r.data(F)||r.data(F,{}),v.fireChartInstanceEvent("slicingStart",{slicedState:o,dataIndex:"index"in m&&m.index,data:e.getPlotData(B,o)}),b.setAnimationState("slicing"),b.setAnimation({el:r,attr:{transform:o?"t0,0":L},component:e,label:"slice",callback:function(){v.fireChartInstanceEvent("slicingEnd",{slicedState:o,dataIndex:"index"in m&&m.index,data:e.getPlotData(B,!o)})}}),a&&a.x&&((n=a.data("textPos"))||(n=a.data("textPos",{x:a.x,y:a.y})),b.setAnimation({el:a,attr:{x:a.x+(o?0:l),y:a.y+(o?0:s)},label:"label-sliced",component:e}),n.x=a.x+(o?0:l)),i&&b.setAnimation({el:i,attr:{x:i.x+(o?0:l),y:i.y+(o?0:s)},label:"label-sliced",component:e}),c&&u&&((g=u.slice(0))[1]+=l,g[2]+=s,g[4]+=l,g[5]+=s,g[6]+=l,g[7]+=s,b.setAnimation({el:c,attr:{path:g},label:"connector-sliced",component:e}),Q.connectorPath=g),d.isSliced=o=Q.sliced=!o,o}}},z=function(e){var t=e.getFromEnv("animationManager");return{plotDragMove:function(t){var n,A=this.data("plotItem"),r=A.chart,a=t.data,i=a[0],o=a[1],l=a[2],s=a[3],c=A.seriesData,u=e.config;isNaN(i)||isNaN(o)||!u.enableRotation||c.singletonCase||c.isRightClicked||(n=V.call(t,l,s,c.pieCenter,c.chartPosition,1),c.dragStartAngle===n||c.isRotating||(c.isRotating=!0,r.fireChartInstanceEvent("RotationStart",{startingAngle:c._rotationalStartAngle=r._startingAngle()})),u.startAngle+=n-c.dragStartAngle,c.dragStartAngle=n,c.moveDuration=0,u.updateInited||(u.updateInited=!0,r.addJob("pie_batch_rotate",r._batchRotate||(r._batchRotate=function(){e._rotate(),u.updateInited=!1}),d.priorityList.draw,{oneInAFrame:!0})))},plotDragStart:function(t){var n,A=this.data("plotItem"),r=A.chart,a=A.seriesData,i=e.config,o=(0,s.pluckNumber)(t.button,t.originalEvent.button),l=-i.startAngle*M,c=t.data[0],u=t.data[1];a.isRightClicked=!(s.touchEnabled||0===o||1===o),i.enableRotation&&!a.isRightClicked&&(a.isRotating=!1,a.chartPosition=function(e,t){var n,A={left:0,top:0},r=e;if(r.getBoundingClientRect)n=r.getBoundingClientRect(),A.top=n.top+(B.pageYOffset||y.scrollTop||0)-(y.clientTop||0),A.left=n.left+(B.pageXOffset||y.scrollLeft||0)-(y.clientLeft||0);else for(;r;)A.left+=r.offsetLeft||0,A.top+=r.offsetTop||0,r===y.body||r===y.documentElement||t||(A.left-=r.scrollLeft||0,A.top-=r.scrollTop||0),r=r.offsetParent;return A}(r.getFromEnv("chart-container")),n=V.call(t,c,u,a.pieCenter,a.chartPosition,1),a.dragStartAngle=n,a.startingAngleOnDragStart=l)},plotDragEnd:function(){var t=this.data("plotItem"),n=t.chart,A=n.getChildren("dataset")[0].config,r=n.config,a=t.seriesData,i=-A.startAngle*M;a.isRightClicked||(r.clicked=!0,n.disposed||e._rotate(),delete r.clicked,a.isRotating&&(setTimeout(function(){a.isRotating=!1},0),n.fireChartInstanceEvent("RotationEnd",{startingAngle:(0,s.normalizeAngle)(i,!0),changeInAngle:i-A.startingAngleOnDragStart})),!a.isHovered&&e.config.handlersAPI.onPlotHover(this,!1))},plotRollOver:function(e){var t=this,n=t.plotItem||t.data("plotItem"),A=n.chart,r=n.seriesData,a=A.getDatasets()[0],i=a.getFromEnv("animationManager");r.isRotating||(A.plotEventHandler(t,e,"DataPlotRollOver"),a.config.handlersAPI.onPlotHover(t,!0,i)),a.fireEvent("datasetrollover",n),r.isHovered=!0},plotRollOut:function(e){var t=this,n=t.plotItem||t.data("plotItem"),A=n.chart,r=n.seriesData,a=A.getDatasets()[0];r.isRotating||(A.plotEventHandler(t,e,"DataPlotRollOut"),a.config.handlersAPI.onPlotHover(t,!1)),a.fireEvent("datasetrollout",n),r.isHovered=!1},onPlotHover:function(n,A){var r=n.data("plotItem"),a=r.center,i=r.rolloverProperties||{},o=A?i.color:r.color,l=A?i.borderWidth:r.borderWidth,c=A?i.borderColor:r.borderColor;o&&(A&&(o.cx=a[0],o.cy=a[1],o.r=r.radius),i.enabled&&t.setAnimation({el:r.graphic,component:e,attr:{fill:(0,s.toRaphaelColor)(o),"stroke-width":l,stroke:c}}))}}},W=function(e,t){return e.point.config.value-t.point.config.value},j=function(e,t){return e.angle-t.angle},X=t.labelClickFn=function(e,t){t&&e.getFromEnv("linkClickFN")&&e.getFromEnv("linkClickFN").call({link:t},!0)},Y=(t.hideFn=function(){this.hide()},function(){this.remove()}),J=[1,1,-1,-1],q=[1,-1,-1,1];function Z(e){if(this.config.JSONData){var t,n,A,r,a=this,i=a.getFromEnv("legend"),o=a.config.JSONData,l=o.data&&o.data.length,s=e.data&&e.data.length||0,c=l-s;for(c>0&&a.removeData(s,c,!1),t=0,n=(A=a.components.removeDataArr||[]).length;t<n;t++)(r=A[t].config).legendItemId&&i.disposeItem(r.legendItemId)}}(0,c.addDep)({name:"pie2dAnimation",type:"animationRule",extension:u["default"]}),(0,h["default"])(b);var $=function(e){function t(){var t;return(t=e.call(this)||this).plotGraphicClick=K(t),t}(0,i["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"pie2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.doughnutradius=0},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,n,A,a,i,o=this,c=o.getFromEnv("chart"),u=c.config,h=o.config,d=o.config.JSONData,g=o.getFromEnv("chart-attrib"),p=c.config.is3D,f=/pie/.test(o.getName());h.handlersAPI=z(o),o.setState("visible",1===(0,s.pluckNumber)(o.config.JSONData.visible,!Number(o.config.JSONData.initiallyhidden),1)),(0,s.parseConfiguration)({},o.config,c&&c.config),i=h.enableAnimation=(0,s.pluckNumber)(g.animation,g.defaultanimation,1),h.animation=!!i&&{duration:1e3*(0,s.pluckNumber)(g.animationduration,g.moveduration,1)},h.transposeAnim=!(!i&&!(0,s.pluckNumber)(h.transposeanimation,1))&&{duration:1e3*(0,s.pluckNumber)(g.transposeanimduration,.2)},h.showPlotBorder=(0,s.pluckNumber)(g.showplotborder,1),h.usePattern=(0,s.pluckNumber)(u.usePattern,0),h.patternType=l.PATTERN_TYPES.includes(d.patterntype)?d.patterntype:u.patternType,h.patternDensity=(0,s.pluckNumber)(d.patterndensity,u.patternDensity),h.patternAlpha=(0,s.pluckNumber)(d.patternalpha,u.patternAlpha),h.patternBgColor=(0,s.pluck)(d.patternbgcolor,h.patternBgColor),h.showHoverEffect=(0,s.pluckNumber)(g.plothovereffect,g.showhovereffect,r),h.usePattern&&(h.showHoverEffect=0),h.showTooltip=(0,s.pluckNumber)(g.showtooltip,1),h.toolText=(0,s.getValidValue)((0,s.parseUnsafeString)((0,s.pluck)(d.plottooltext,g.plottooltext),!1)),a=h.enableMultiSlicing=(0,s.pluckNumber)(g.enablemultislicing,1),n=h.use3DLighting=(0,s.pluckNumber)(g.use3dlighting,1),h.usePattern&&(n=h.use3DLighting=0),t=h.radius3D=n?(0,s.pluckNumber)(g.radius3d,90):100,h.showZeroPies=(0,s.pluckNumber)(g.showzeropies,1),h.showPercentInToolTip=(0,s.pluckNumber)(g.showpercentintooltip,1),h.showLabels=(0,s.pluckNumber)(g.showlabels,1),h.showTextOutline=(0,s.pluckNumber)(g.textoutline,0),h.labelFontColor=(0,s.pluck)(d.labelfontcolor,g.labelfontcolor,u.labelfontcolor),h.labelFont=(0,s.pluck)(d.labelfont,g.labelfont,u.basefont),h.showValues=(0,s.pluckNumber)(d.showvalues,g.showvalues,1),h.showPercentValues=(0,s.pluckNumber)(g.showpercentvalues,g.showpercentagevalues,0),A=h.toolTipSepChar=(0,s.pluck)(g.tooltipsepchar,g.hovercapsepchar,s.COMMASPACE),h.labelSepChar=(0,s.parseUnsafeString)((0,s.pluck)(g.labelsepchar,A)),h.pieBorderColor=(0,s.pluck)(g.plotbordercolor,g.piebordercolor),h.pieBorderAlpha=(0,s.pluckNumber)(g.plotborderalpha,g.pieborderalpha),h.pieBorderThickness=h.showPlotBorder?(0,s.pluckNumber)(g.plotborderthickness,g.pieborderthickness,u.plotborderthickness,1):0,h.plotDashLen=(0,s.pluckNumber)(g.plotborderdashlen,5),h.plotDashGap=(0,s.pluckNumber)(g.plotborderdashgap,4),h.showValueInLegend=(0,s.pluckNumber)(g.showvalueinlegend,0),h.showLabelInLegend=(0,s.pluckNumber)(g.showlabelinlegend,1),h.valueBeforeLabelInLegend=(0,s.pluckNumber)(g.valuebeforelabelinlegend,0),h.showValueAsPercentInLegend=(0,s.pluckNumber)(g.showvalueaspercentinlegend,1),h.showValuesInLegend=(0,s.pluckNumber)(g.showvaluesinlegend,1),h.legendSepChar=(0,s.pluck)(g.legendsepchar,", "),h.showvalues=(0,s.pluckNumber)(g.showvalues,1),h.chartPosition=(0,s.getPosition)(c.getFromEnv("chart-container"),c),h.timerThreshold=30,t>100&&(t=100),t<0&&(t=0),h.showLegend=(0,s.pluckNumber)(g.showlegend,0),h.reverselegend=!(0,s.pluckNumber)(g.reverselegend,0),c.config.is3D=p,h.pieYScale=(0,s.pluckNumber)(g.pieyscale,40),h.pieYScale<1&&(h.pieYScale=1),h.pieYScale>=100&&(h.pieYScale=80),h.pieYScale/=100,h.pieSliceDepth=(0,s.pluckNumber)(g.pieslicedepth,15),h.pieSliceDepth<1&&(h.pieSliceDepth=1),h.managedPieSliceDepth=h.pieSliceDepth,h.enableMultiSlicing=!!a,h.startAngle=(0,s.pluckNumber)(g.startingangle,0)%360*(-P/180),h.usePerPointLabelColor=g.colorlabelsfromplot===s.ONESTRING,h.reversePlotOrder=(0,s.pluckNumber)(g.reverseplotorder,0),h.animateClockWise=(0,s.pluckNumber)(g.animateclockwise,h.reversePlotOrder),h.showShadow=(0,s.pluckNumber)(g.showshadow,1),h.innerLabelRadiusPercent=(0,s.pluckNumber)(g.innerlabelradiuspercent,67)/100,h.minAngleForValue=(0,s.pluckNumber)(g.minangleforvalue,0)*(P/180),h.minAngleForLabel=(0,s.pluckNumber)(g.minangleforlabel,0)*(P/180),h.singletonCase=1===d.data.length,h.labelPosition=(0,s.pluck)(g.labelposition,h.singletonCase&&f?E:S).toLowerCase(),h.valuePosition=(0,s.pluck)(g.valueposition,h.singletonCase&&f?E:S).toLowerCase(),h.valueTotal=0,o._setConfigure(),u.showLegend&&o._addLegend()},n.trimData=function(e){Z.call(this,e)},n._parseDisplayProperties=function(e,t){var n,A,a,i,o,l,c,u,h,d,g,p,m=s.BLANKSTRING,v=this,b=v.getFromEnv("chart"),B=v.getFromEnv("number-formatter"),y=b.getFromEnv("chart-attrib"),C=v.config,x=(0,s.pluckNumber)(t.y,B.getCleanValue(e.value,!0)),w=C.valueTotal,F=C.showLabels,S=(0,s.parseUnsafeString)((0,s.pluck)(t.seriesName,e.label,e.name,s.BLANKSTRING)),E=C.showPercentValues,Q=C.showPercentInToolTip,k=C.labelSepChar,L=C.toolTipSepChar,U=C.showTooltip;n=(0,s.getValidValue)((0,s.parseUnsafeString)((0,s.pluck)(e.tooltext,C.toolText),!1)),A=t.pValue=B.percentValue(x/w*100),i=t.value=B.dataLabels(x)||s.BLANKSTRING,h=t.showLabel=(0,s.pluckNumber)(e.showlabel,F),d=t.showValue=(0,s.pluckNumber)(e.showvalue,C.showValues),t.labelFontColor=(0,s.pluck)(e.labelfontcolor,C.labelFontColor),t.labelFont=(0,s.pluck)(e.labelfont,C.labelFont),o=t.labelText=1===h?S:s.BLANKSTRING,l=t.valueText=1===d?1===E?A:i:s.BLANKSTRING,t.legendValueText=1===C.showValuesInLegend?1===C.showValueAsPercentInLegend?A:i:s.BLANKSTRING,a=Q?A:i,c=(0,s.getValidValue)((0,s.parseUnsafeString)(function(e){if(!e)return e;var t=document.createElement("div");return t.innerHTML=f["default"].createHTML(e),t.querySelectorAll("span").forEach(function(e){var t=e.innerHTML;if(t.includes("<br>")){var n=t.split("<br>").map(function(t){var n=document.createElement("span");return n.style=e.getAttribute("style"),n.innerHTML=f["default"].createHTML(t),n.outerHTML});e.outerHTML=n.join("<br>")}}),t.innerText}(e.displayvalue))),t.labelPosition=(0,s.pluck)(e.labelposition,C.labelPosition).toLowerCase(),t.valuePosition=(0,s.pluck)(e.valueposition,C.valuePosition).toLowerCase(),g=(0,s.pluckNumber)(e.minangleforlabel),isNaN(g)?t.minAngleForLabel=C.minAngleForLabel:t.minAngleForLabel=g%360*(P/180),p=(0,s.pluckNumber)(e.minangleforvalue),isNaN(p)?t.minAngleForValue=C.minAngleForValue:t.minAngleForValue=p%360*(P/180),t.innerLabelRadiusPercent=(0,s.pluckNumber)(e.innerlabelradiuspercent,C.innerLabelRadiusPercent),u=(0,s.pluck)(c,S+k+(E?A:i),s.BLANKSTRING),c!==r&&d?(l=t.labelText=c,t.valueText=s.BLANKSTRING):l=l!==s.BLANKSTRING&&o!==s.BLANKSTRING?o+k+l:(0,s.pluck)(o,l),U&&(m=n!==r?(0,s.parseTooltext)(n,[1,2,3,5,6,7,14,24,25],{formattedValue:i,label:S,yaxisName:(0,s.parseUnsafeString)(y.yaxisname),xaxisName:(0,s.parseUnsafeString)(y.xaxisname),percentValue:A,sum:B.dataLabels(w),unformattedSum:w},e,y):(m=S)!==s.BLANKSTRING?m+L+a:a),t.displayValue=l,t.displayValueArgs=u,t.toolText=m,t.seriesName=S,t.categoryLabel=S,t.id=e.id?e.id:S},n._isStyled=function(e){if(this.getFromEnv("chart").config.usedataplotcolorforlabels||e.labelbordercolor||e.labelbgcolor||e.labelborderthickness||e.labelborderalpha||e.labelalpha||e.labelfont||e.labelfontsize||e.labelfontcolor||e.labelfontalpha||e.labelalpha||e.labelfontbold||e.labelfontitalic||e.labelborderpadding||e.labelborderradius||e.labelbgalpha||e.labelborderdashed||e.labelborderdashlen||e.labelborderdashgap)return!0},n._setConfigure=function(e,t){var n,A,a,i,o,c,u,h,d,p,f,m,v,b,B,y,C,x,w,F=this,S=F.components,E=S.removeDataArr=S.removeDataArr||[],Q=F.getFromEnv("chart"),k=Q.getFromEnv("dataSource").chart,L=Q.config,U=F.config,T=F.config.JSONData,N=(e||T).data,D=N&&N.length,P=U.showZeroPies,M=U.valueTotal||0,H=[],O=(0,s.pluckNumber)(k.plotborderdashed,0),_=F.components.data||(F.components.data=[]),R=F.getFromEnv("number-formatter"),V=F.getFromEnv("color-manager"),G=U.labelInLeg,K=U.valInLeg,z=U.pieBorderThickness,W=U.reversePlotOrder,j=U.radius3D,X=U.enableMultiSlicing,Y=U.lastSlicedid||0,J=(0,s.pluckNumber)(k.plotBorderDashed,5),q=(0,s.pluckNumber)(k.plotborderdashgap,4),Z=(0,s.pluckNumber)(k.valuebeforelabelinlegend,0),$=(0,s.pluckNumber)(k.showvalueaspercentinlegend,1),ee=0,te=[],ne=(0,s.pluck)(k.legendsepchar,", ");for(L.dataLabelStyle=s.parsexAxisStyles.apply(this,[{},{},k,L.dataLabelStyle,a]),n=0;n<D;n+=1)b=N[n],null===(C=R.getCleanValue(b.value,!0))||!P&&0===C?ee+=1:(H.push(b),te.push(n),M+=C);if(!U.singletonCase&&(U.singletonCase=D-ee===1),ee&&_.length>D-ee)for(n=_.length-1;ee>0;n-=1,ee-=1)_[n]&&(x=(b=_[n]).config,E.push(b),x.y=null);for(0===M&&(H=[]),U.valueTotal=M,U.dataLabelCounter=0,L.allPlotSliceEnabled=L.enableslicing,n=(D=H.length)-1;n>=0;n-=1)B=n,e?(w=H[n],b=t!==r?_[B=t+n]:_[B=_.length-D+n]):(b=_[n]||(_[n]={graphics:{},config:{}}),w=H[n]),(y=b&&b.config)||(y=_[B].config={}),b.graphics||(_[B].graphics={}),y.y=C=R.getCleanValue(w.value,!0),y.seriesName=A=(0,s.parseUnsafeString)((0,s.pluck)(w.label,w.name,s.BLANKSTRING)),y.labellink=(0,s.pluck)(w.labellink,k.labellink),a=(0,s.pluck)(w.color,V.getPlotColor(te[n])),a=(0,s.hashify)(a),i=(0,s.pluck)(w.alpha,k.plotfillalpha,s.HUNDREDSTRING),c=(o=y.borderConfig=F._parseBorderConfig(a,i,w)).setPlotBorderColor,u=o.setPlotBorderAlpha,h={opacity:I(i,u)/100},(f=Boolean((0,s.pluckNumber)(w.issliced,k.issliced,0)))&&(X||(-1!==Y&&(_[_.length-Y-1].sliced=!1),U.lastSlicedid=n),U.preSliced=f),y.patternType=l.PATTERN_TYPES.includes(w.patterntype)?w.patterntype:U.patternType,y.patternAngle=(0,s.pluckNumber)(w.patternangle,k.patternangle,y.patternType===l.PATTERN_TYPES[0]?40:0),y.patternDensity=(0,s.pluckNumber)(w.patterndensity,U.patternDensity),y.patternSize=(0,s.pluckNumber)(w.patternsize,y.patternType===l.PATTERN_TYPES[0]?2:4),y.patternAlpha=(0,s.pluckNumber)(w.patternalpha,U.patternAlpha),y.patternBgColor=(0,s.pluck)(w.patternbgcolor,U.patternBgColor),v=(m=(0,s.pluckNumber)(w.dashed,O))?(0,s.getDashStyle)((0,s.pluck)(w.dashlen,J),(0,s.pluck)(w.dashgap,q),z):"none",F._parseDisplayProperties(w,y),d=G?A:s.BLANKSTRING,K&&(p=$?R.legendPercentValue(C/M*100):R.legendValue(C),d=Z?p+(d&&ne+d):(d&&d+ne)+p),U.dataLabelCounter+=1,F._isStyled(w)?y.style=s.parsexAxisStyles.apply(this,[w,{},k,L.dataLabelStyle,a]):y.style&&delete y.style,y.showInLegend=d!==s.BLANKSTRING,y.isVisible=!0,y.name=d,y.shadow=h,y.setColor=a,y.setAlpha=i,y.color=(0,g["default"])(a,i,j,U.doughnutradius),y._3dAlpha=i,y.borderColor=(0,s.convertColor)(c,u),y.borderWidth=z,y.link=(0,s.getValidValue)(w.link),y.sliced=f,y.dashStyle=v,y.setBorderDashed=m,(y.doNotSlice=(0,s.pluck)(w.enableslicing,L.enableslicing)!==s.ONESTRING)||L.allPlotSliceEnabled!==s.ZEROSTRING||(L.allPlotSliceEnabled=s.ONESTRING),F._parseHoverEffectOptions(n),y.centerLabelConfig=undefined,y.radius3D=j;W&&_&&_.reverse(),U.dataArr=H,U.enableRotation=_.length>1?(0,s.pluckNumber)(k.enablerotation,1):0},n._parseHoverEffectOptions=function(e){var t,n,A,a,i,o,l,c,u,h,d=this,g=d.getFromEnv("chart").getFromEnv("dataSource").chart,p=d.config,f=d.components.data[e].config,m=d.config.JSONData,v=m.data[e],b=f.setColor,B=f._3dAlpha,y=p.radius3D,C=f.borderConfig,x=C.setPlotBorderAlpha,w=C.setPlotBorderColor,F=p.setBorderWidth,S=p.usePattern?0:(0,s.pluckNumber)(f.hovereffect,p.showHoverEffect),E=f.hoverEffects={enabled:S};if(S!==r||p.usePattern||(S=E.enabled=(0,s.pluck)(v.hovercolor,m.hovercolor,g.plotfillhovercolor,v.hoveralpha,m.hoveralpha,g.plotfillhoveralpha,v.borderhovercolor,m.borderhovercolor,g.plotborderhovercolor,v.borderhoveralpha,m.borderhoveralpha,g.plotborderhoveralpha,g.plotfillhoveralpha,v.borderhoverthickness,m.borderhoverthickness,g.plotborderhoverthickness,r)!==r),S){if(t=(0,s.pluckNumber)(v.highlightonhover,m.highlight,g.highlight,1),(n=(0,s.pluck)(v.hovercolor,m.hovercolor,g.plotfillhovercolor))&&t&&(t=0),n=(0,s.pluck)(n,b),A=(0,s.pluck)(v.hoveralpha,m.hoveralpha,g.plotfillhoveralpha,B),a=(0,s.pluck)(v.borderhovercolor,m.borderhovercolor,g.plotborderhovercolor,w),f.hoverBorderColor=a,i=(0,s.pluck)(v.borderhoveralpha,m.borderhoveralpha,g.plotborderhoveralpha,g.plotfillhoveralpha,x),o=(0,s.pluckNumber)(v.borderhoverthickness,m.borderhoverthickness,g.plotborderhoverthickness,F),n.replace(/,+?$/,""),1===t){for(u=(c=(l="string"==typeof n)?n.split(/\s{0,},\s{0,}/):n.color.split(/\s{0,},\s{0,}/)).length,h=0;h<u;h++)c[h]=(0,s.getLightColor)(c[h],70);l?n=c.join(","):n.color=c.join(",")}d._setHoverColor(E,n,A,y),E.hoverColor=n,E.alpha=A,E.borderColor=(0,s.convertColor)(a,i),E.borderAlpha=i,E.borderWidth=o}else E.enabled=!1},n.organizeDatalabels=function(){var e,t,n,A,r,a=this,i=a.config,o=a.components.data,l=[],s=[],c=o.length;for(e=0;e<c;e++)A=(t=o[e].config).labelPosition,r=t.valuePosition,null!==t.y&&"undefined"!=typeof t.y&&!1!==t.isVisible&&(A===S&&r===S?l.push({point:o[e]}):(A===E&&r===E||l.push({point:o[e]}),s.push({point:o[e]})));n=O(l),i.labelsPlacedOutside=a.skipOverlappingLabels(n),i.labelsPlacedInside=s,this.rotateDataLabels()},n.skipOverlappingLabels=function(e){var t,n,A,r,a,i,o=e,l=this.config,s=l.dataLabelOptions,c=s.distance+l.pieMinRadius,u=[];for(a=l.labelLineHeight=parseInt(s.style.fontSize,10),l.labelsMaxInQuadrant=i=D(c/a),n=0;n<4;n++)if(s.skipOverlapLabels&&(t=o[n].length-i)>0)for(o[n].sort(W),A=0,r=(t=o[n].splice(0,t)).length;A<r;A++)this.disposeLabelAndConnector(t[A].point.graphics,[{el:"label",animLabel:"label"},{el:"innerLabel",animLabel:"label"},{el:"connector",animLabel:"connector"}]);for(n=0;n<4;n++)for(A=0,r=o[n].length;A<r;A++)u.push(o[n][A]);return u},n.rotateDataLabels=function(){this.rotateOuterLabels(),this.rotateInnerLabels()},n.rotateOuterLabels=function(){var e,t,n,A,a,i,o,l,c,u,h,d,g,f,m,b,B,y,C,x,w,E,Q,k,D,P=this,M=P.config,H=P.getFromEnv("chart"),_=H.getFromEnv("animationManager"),R=H.getChildren("legend")[0],V=R&&R.config||{},K=P.getFromEnv("smartLabel"),z=H.config,W=M.dataLabelOptions,Y=M.labelLineHeight,Z=M.pieMinRadius,$=H.config,ee=$.canvasLeft,te=$.canvasWidth,ne=$.useEllipsesWhenOverflow,Ae=W.connectorPadding,re=W.manageLabelOverflow,ae=W.distance,ie=W.enableSmartLabels,oe=O(M.labelsPlacedOutside),le=ae+Z,se=I(oe[0].length,oe[1].length,oe[2].length,oe[3].length),ce=ee+.5*te,ue=z.canvasTop+.5*z.canvasHeight,he=M.handlersAPI,de=he.plotDragStart,ge=he.plotDragEnd,pe=he.plotDragMove,fe=he.plotRollOver,me=he.plotRollOut,ve=[],be=[],Be=P.getFromEnv("toolTipController"),ye=P.getContainer("label-group");for(t=I(T(se,M.labelsMaxInQuadrant)*Y,le+Y),n=0;n<4;n++)oe[n].sort(j);for(oe[0].reverse(),oe[2].reverse(),A=0;A<4;A++){for(x=t,C=oe[A].length*Y,ve=[],n=0,a=oe[A].length;n<a;n++)B=oe[A][n],(o=N(t*L(B.angle)))>x?o=x:o<C&&(o=C),C-=Y,x=o-Y,ve.push(o);for(C=0,x=t-(a-1)*Y,be=[],n=oe[A].length-1;n>=0;n--)B=oe[A][n],(o=N(t*L(B.angle)))<C?o=C:o>x&&(o=x),C=o+Y,x+=Y,be.push(o);for(n=0;n<a;n++)o=T(t,(ve[n]+be[a-1-n])/2),l=t*U(Math.asin(o/t)),g=(i=(B=oe[A][n]).point).config,f=i.graphics,m=g.props.connector.attr,d=s.BLANKSTRING,(w=Object.assign({},g.props.label.attr))["text-anchor"]=0===A||3===A?"start":"end",w.y=u=ue+J[A]*o,w.x=c=ce+q[A]*(l+2*Ae),g.sliced&&(w.y+=g.transY,w.x+=g.transX),g.labelPosition===S&&g.valuePosition===S?P.disposeLabelAndConnector(f,[{el:"innerLabel",animLabel:"label"}]):w.text=g.labelPosition===S?g.labelText:g.valueText,w.text?(y={x:ce+Z*U(B.angle),y:ue+Z*L(B.angle)},b=g.connectorPath=(0,p.getConnectorPath)(y,{x:ce+q[A]*l,y:ue+J[A]*o},{isSlanted:W.isSmartLineSlanted,padding:Ae,quadrant:A,transX:g.sliced?g.transX:0,transY:g.sliced?g.transY:0}),re&&(h=1===A||2===A?w.x-ee:ee+te-w.x,"right"!==V.align&&"left"!==V.align||(h-=V.symbolWidth+2*V.borderWidth),K.useEllipsesOnOverflow(ne),K.setStyle(g.style),e=K.getSmartText(w.text,h,parseFloat(K.style.lineHeight)),w.text=e.text,d=e.tooltext),D=f.label,f.label=k=_.setAnimation({el:D||"text",attr:w,css:g.props.label.css,component:P,container:ye,label:"label"}),k.outlineText(M.showTextOutline,w.fill),z.showtooltip&&k.abbrArr&&k.abbrArr.length&&Be.enableToolTip(k,r),D||k.on("fc-dragstart",de).on("fc-dragmove",pe).on("fc-dragend",ge).on("fc-click",X.bind(k,H,g.labellink)).on("fc-click",G(P,k)).on("fc-mouseover",fe).on("fc-mouseout",me),d?d&&Be.enableToolTip(k,d):Be.disableToolTip(k),k.x=c,k.y=u,k&&k.data("textPos",{x:w.x,y:w.y}).data("plotItem",g.plotItem).data(F,g.eventArgs),Q=f.connector,ie?(f.connector=E=_.setAnimation({el:Q||"path",attr:v({path:b},m),container:ye,component:P,label:"connector"}),Q||E.on("fc-dragstart",de).on("fc-dragmove",pe).on("fc-dragend",ge).on("fc-mouseover",fe).on("fc-mouseout",me),E.data("connectorPath",{path:b}).data("plotItem",g.plotItem).data(F,g.eventArgs)):Q&&P.disposeLabelAndConnector(f,[{el:"connector",animLabel:"connector"}])):P.disposeLabelAndConnector(f,[{el:"label",animLabel:"label"},{el:"connector",animLabel:"connector"}])}},n.rotateInnerLabels=function(){var e,t,n,A,a,i,o,l,c,u,h,d,g,f,m=this,v=m.config,b=m.getFromEnv("chart").config,B=m.getFromEnv("toolTipController"),y=v.labelsPlacedInside,C=v.pieCenter,x=m.getFromEnv("animationManager"),w=C[0],S=C[1],Q=y.length,k=m.components.data.length,I=v.handlersAPI,T=I.plotDragStart,D=I.plotDragEnd,P=I.plotDragMove,M=I.plotRollOver,H=I.plotRollOut;for(n=0;n<Q;n++)a=(A=y[n].point).config,i=A.graphics,d=Object.assign({},a.props.label.attr),h=N(a.startAngle-a.endAngle),c=a.minAngleForLabel,u=a.minAngleForValue,a.valuePosition===E&&a.labelPosition===E?(m.disposeLabelAndConnector(i,[{el:"label",animLabel:"label"},{el:"connector",animLabel:"connector"}]),h>=u&&h<c?d.text=a.valueText:h<u&&h>=c?d.text=a.labelText:h<u&&h<c&&(d.text=s.BLANKSTRING)):a.valuePosition===E?d.text=h>=u?a.valueText:s.BLANKSTRING:d.text=h>=c?a.labelText:s.BLANKSTRING,d.text?(l=v.pieMinRadius*a.innerLabelRadiusPercent,o=(0,p.getCleanAngle)(a.angle),d.x=e=w+(k>1?l*U(o):0),d.y=t=S+(k>1?l*L(o):0),a.sliced&&(d.y+=a.transY,d.x+=a.transX),d["text-anchor"]="middle",f=i.innerLabel,i.innerLabel=g=x.setAnimation({el:f||"text",attr:d,css:a.props.label.css,component:m,container:m.getContainer("label-group"),label:"label"}),g.outlineText(v.showTextOutline,d.fill),b.showtooltip&&g.abbrArr&&g.abbrArr.length&&B.enableToolTip(g,r),f||g.on("fc-dragstart",T).on("fc-dragmove",P).on("fc-dragend",D).on("fc-click",X.bind(g,m.getFromEnv("chart"),a.labellink)).on("fc-click",G(m,g)).on("fc-mouseover",M).on("fc-mouseout",H),g.x=e,g.y=t,g&&g.data("textPos",{x:d.x,y:d.y}).data("plotItem",a.plotItem).data(F,a.eventArgs)):m.disposeLabelAndConnector(i,[{el:"innerLabel",animLabel:"label"}])},n.disposeLabelAndConnector=function(e,t){void 0===t&&(t=[]);var n,A,r,a=this.getFromEnv("animationManager"),i=t.length;for(n=0;n<i;n++)e[r=(A=t[n]).el]&&(e[r]=a.setAnimation({el:e[r],component:this,label:A.animLabel})),delete e[r]},n._setHoverColor=function(e,t,n,A){A?e.color=(0,g["default"])(t,n,A,this.config.doughnutradius):(e.color=t,e.alpha=n)},n.updateData=function(){var t=this.config,n=this.components.data;t.valueTotal-=n[arguments[1]].config.y,e.prototype.updateData.call(this,arguments)},n._rotate=function(){var e,t,n,A,a,i,o,l,c,u=this,h=u.getFromEnv("chart"),d=u.config,g=u.components.data,p=h.config,f=d.piePlotOptions,m=(d.startAngle||0)%H,v=d.slicingDistance,b=d.valueTotal,B=H/b,y=p.canvasLeft+.5*p.canvasWidth,C=p.canvasTop+.5*p.canvasHeight,x=d.pieMinRadius,w=.5*(f.innerSize||0);for(a=i=m,c=0;c<g.length;c+=1)o=g[c].config,l=g[c].graphics,null!==(n=o.y)&&n!==r&&(i=a,A=.5*((a-=d.singletonCase?H:n*B)+i),o.angle=A,o.transX=U(A)*v,o.transY=L(A)*v,o.slicedTranslation="t"+U(A)*v+s.COMMASTRING+L(A)*v,(t=o._rotateAttrs)||(t=o._rotateAttrs={ringpath:[],transform:s.BLANKSTRING}),(e=t.ringpath)[0]=y,e[1]=C,e[2]=x,e[3]=w,e[4]=a,e[5]=i,l.element.attr({ringpath:t.ringpath,transform:o.sliced?o.slicedTranslation:""}));u.organizeDatalabels()},n._parsePiePlotOptions=function(){var e=this.config;return{size:e.pieMinRadius,slicedOffset:e.slicingDistance}},n._parseDataLabelOptions=function(){return{style:this.getFromEnv("chart").config.dataLabelStyle}},n._addLegend=function(){var e,t,n,A,a,i,o,l=this,c=l.config,u=l.getFromEnv("chart-attrib"),h=l.getFromEnv("legend"),d=l.config.JSONData.data||{},g=l.getFromEnv("toolTipController"),p=l.components.data,f=function(e){var t;null!=e&&null!=(t=e.sender)&&t.config&&(a=e.sender.getLinkedParent(),(i=a?a.getChildContainer():r)&&(o=e.sender.config.label,e.sender.config.tooltipText&&(o=e.sender.config.tooltipText),g.enableToolTip(i.itemGroup,o)))};for(e=0;e<p.length;e++)if(null!==(t=p[e].config).y&&t.seriesName)A={index:e,type:l.getName(),label:t.legendValueText+" "+t.seriesName,enabled:(0,s.pluckNumber)(t.includeInLegend,1),usePattern:c.usePattern,legendIconAlpha:(0,s.pluckNumber)(d[e].legendiconalpha),patternAttr:{patternType:t.patternType,patternAngle:t.patternAngle,patternDensity:t.patternDensity,patternSize:t.patternSize,color:t.setColor,patternAlpha:t.patternAlpha,patternBgColor:t.patternBgColor,alpha:t.setAlpha}},(n=h.getItem(t.legendItemId))||(t.legendItemId=h.createItem(l),n=h.getItem(t.legendItemId),l.addExtEventListener("fc-click",n.itemClickFn,n),"1"===(null==u?void 0:u.disablelegendscroll)&&l.addExtEventListener("fc-mouseover",f,n)),n.configure(A),n.setStateCosmetics("default",{symbol:{fill:(0,s.toRaphaelColor)(t.setColor),bgAlpha:(0,s.pluckNumber)(d[e].legendiconbgalpha,d[e].legendiconalpha,u.legendiconbgalpha,u.legendiconalpha,t.setAlpha),borderAlpha:(0,s.pluckNumber)(d[e].legendiconborderalpha,d[e].legendiconalpha,u.legendiconborderalpha,u.legendiconalpha,"100"),rawFillColor:t.setColor,stroke:(0,s.toRaphaelColor)(t.borderColor)}}),t.displayValue&&"1"===(null==u?void 0:u.disablelegendscroll)&&(n.config.tooltipText=n.config.label,n.config.label=t.displayValue+" <b>...</b>");else{if(!t.legendItemId)continue;(n=h.getItem(t.legendItemId))&&h.disposeItem(n.getId()),delete t.legendItemId}},n.getPlotData=function(e,t){var n,A,r,a=this,i=a.components.data[e].config,o=a.config.userData||(a.config.userData=[]);if(o[e])n=o[e];else{for(r in n=o[e]={},i)"object"!=typeof(A=i[r])&&"function"!=typeof A&&0!==r.indexOf("_")&&(n[r]=A);n.value=n.y,n.categoryLabel=n.label=n.seriesName,delete n.y,delete n.total,delete n.doNotSlice,delete n.name,delete n.seriesName,delete n.centerAngle,delete n.showInLegend,delete n.angle,delete n.endAngle,delete n.isVisible,delete n.setColor,delete n.slicedTranslation,delete n.startAngle,delete n.transX,delete n.transY,delete n.pValue}return n.sliced=t,n},n._parseBorderConfig=function(e,t,n){var A=this.config,r=A.pieBorderColor,a=this.getFromEnv("chart").getFromEnv("dataSource").chart,i=(0,s.pluck)(n.bordercolor,r),o=(0,s.pluck)(n.borderalpha,a.plotborderalpha,a.pieborderalpha);return A.usePattern&&(i||(i=e),o||0===o||(o=t)),{setPlotBorderColor:i=(0,s.pluck)(i,(0,s.getLightColor)(e,25)).split(s.COMMASTRING)[0],setPlotBorderAlpha:o=a.showplotborder===s.ZEROSTRING?s.ZEROSTRING:(0,s.pluck)(o,t,"80")}},n.legendInteractivity=function(e){var t,n,A,r=this.components.data,a=e.getId();for(n=0,t=r.length;n<t;n++)r[n].config.legendItemId===a&&(A=r[n].graphics,this.plotGraphicClick.call(A.element))},n._createContainer=function(){var e,t,n,A,r=this,a=r.getName(),i=r.groupName,o=r.getLinkedParent(),l=i||r.dsGroup||a;!o.getChildContainer(l+"Group")&&(l="default"),e=o.getChildContainer("datalabelsGroup"),t=r.getContainer("pie-groups")||r.addContainer("pie-groups",_("pie",e,r)),n=r.getContainer("pie-plot-groups")||r.addContainer("pie-plot-groups",_("pie-plot",t,r)),A=r.getContainer("pie-label-groups")||r.addContainer("pie-label-groups",_("pie-label",t,r)),r.getContainer("plot-group")||r.addContainer("plot-group",_("plots",n,r)),r.getContainer("plot-shadow-group")||r.addContainer("plot-shadow-group",_("plot-shadows",n,r).toBack()),r.getContainer("label-group")||r.addContainer("label-group",_("labels",A,r)),r.getContainer("connector-shadow-group")||r.addContainer("connector-shadow-group",_("connector-shadows",A,r)),r.getContainer("anchor-shadow-group")||r.addContainer("anchor-shadow-group",_("anchor-shadows",A,r))},n.allocatePosition=function(){var e,t,n=this,A=n.components.data,r=A.length;for(e=0;e<r;e++)t=A[e],n.parsePlotAttributes(t,e),n.parseLabelAttributes(t,e)},n.parsePlotAttributes=function(e,t){var n,A,a,i,o,l,c,u,h,d,g,p,f,m,v=this,b=v.components.data,B=v.getFromEnv("chart"),y=B.config,x=v.config,w=t,F=b.length,S=y.canvasWidth,E=y.canvasHeight,Q=y.canvasLeft+.5*S,k=y.canvasTop+.5*E,I=x.valueTotal,T=x.piePlotOptions=v._parsePiePlotOptions(),N=T.slicedOffset,D=T.size,P=.5*(x.innerSize||0),M=(x.startAngle||0)%H,O=M-H,_=x.animateClockWise;f=I&&H/I,x.pieCenter=[Q,k],i=M,o=M,t>0&&(i=b[t-1].config.startAngle,o=b[t-1].config.endAngle),c=(l=e.config).y,u=l.displayValue,h=l.sliced,n=l.toolText,A=!!l.link,null!==c&&c!==r&&!1!==l.isVisible&&((d=l.color).r=D,d.cx=Q,d.cy=k,o=i,g=.5*((i-=x.singletonCase?H:c*f)+o),p=x.previousData={cx:Q,cy:k,r:D,r2:P},a=v.config.drawn?[p.cx,p.cy,p.r,p.r2,i,o]:[Q,k,D,P,i,o],h&&(l.slicedTranslation="t"+U(g)*N+","+L(g)*N),m={"stroke-width":l.borderWidth,stroke:l.borderColor,fill:C?R(l.color,x.doughnutradius):(0,s.toRaphaelColor)(l.color),transform:h?l.slicedTranslation:"","stroke-dasharray":l.dashStyle,redrawDataLabels:M,ringpath:a,cursor:A?"pointer":""},l.props={element:{attr:m}},l.props.element.patternAttr={patternType:l.patternType,patternAngle:l.patternAngle,patternDensity:l.patternDensity,patternSize:l.patternSize,color:l.setColor,patternAlpha:l.patternAlpha,patternBgColor:l.patternBgColor,alpha:l.setAlpha,x:a[0],y:a[1]},l.eventArgs={index:x.reversePlotOrder?F-1-w:w,link:l.link,value:l.y,displayValue:l.displayValueArgs,categoryLabel:l.categoryLabel,isSliced:h,toolText:n,pValue:l.pValue,color:l.setColor,alpha:l.setAlpha,borderColor:l.borderConfig.setPlotBorderColor,borderAlpha:l.borderConfig.setPlotBorderAlpha,dashed:l.setBorderDashed,showLabel:l.showLabel,showValue:l.showValue,labelPosition:l.labelPosition,valuePosition:l.valuePosition,labelFont:l.labelFont,labelFontColor:l.labelFontColor||"#555555",labelLink:l.labellink,hoverColor:l.hoverEffects.hoverColor,hoverAlpha:l.hoverEffects.alpha,borderHoverColor:l.hoverBorderColor,borderHoverAlpha:l.hoverEffects.borderAlpha,id:l.id},x.usePattern&&(l.eventArgs.pattern={patternType:l.patternType,patternColor:l.setColor,patternBgColor:l.patternBgColor===s.TRACKER_FILL?r:l.patternBgColor},delete l.eventArgs.color),l.plotItem={chart:B,index:w,seriesData:x,value:c,pValue:l.pValue,displayValue:l.displayValue||"",angle:l.angle=g,angle1:l.startAngle=i,angle2:l.endAngle=o,slicedX:U(g)*N,slicedY:L(g)*N,sliced:h,labelText:u,toolText:n,name:l.name,link:l.link,percentage:I?c*I/100:0,originalIndex:F-w-1,style:l.style,color:(0,s.toRaphaelColor)(l.color),borderColor:l.borderColor,borderWidth:l.borderWidth,rolloverProperties:l.hoverEffects,radius:D,center:[Q,k],innerDiameter:2*P,centerLabelConfig:l.centerLabelConfig,isVisible:l.isVisible,label:l.seriesName,connector:undefined,transX:l.transX=U(g)*N,transY:l.transY=L(g)*N,slicedTranslation:l.slicedTranslation="t"+U(g)*N+","+L(g)*N})},n.parseLabelAttributes=function(e){var t,n,A,a,i,o=this.getFromEnv("chart").config,l=o.dataLabelStyle,c=this.config,u=o.style,h=o.textDirection,d=c.dataLabelOptions;(a=(t=e.config)._textAttrs)||(a=t._textAttrs={}),n=t.y,A=t.displayValue,u=t.style,null!==n&&n!==r&&!1!==t.isVisible&&(A!==r?(u&&((i=t._textCss)||(i=t._textCss={}),u.fontSize=this.computeFontSize(u.fontSizeWithUnit),u.lineHeight=(0,s.setLineHeight)(u),i.fontFamily=u.fontFamily,i.fontSize=u.fontSize,i.lineHeight=u.lineHeight,i.fontWeight=u.fontWeight,i.fontStyle=u.fontStyle),t.plotItem.style=t.style=u||(u=l),a.text=A,a.fill=u.color||"#000000",a.cursor=e.config.link?"pointer":"",a["text-bound"]=[u.backgroundColor,u.borderColor,u.borderThickness,u.borderPadding,u.borderRadius,u.borderDash],a.direction=h,a["line-height"]=u.lineHeight):a.text=s.BLANKSTRING,t.props.label={attr:a,css:i},t.props.connector={attr:{"stroke-width":d.connectorWidth,stroke:d.connectorColor||"#606060"}})},n.draw=function(){var e,t,n,A,a,i,o,l,c,u,h,d,g,p,f,m,v,b=this,B=b.getFromEnv("animationManager"),y=b.getFromEnv("chart").config,C=y.dataLabelStyle,x=b.config,w=x.showShadow,S=b.components,E=S.removeDataArr=S.removeDataArr||[],Q=b.getState("visible"),k=S.data||[],L=k.length,U=y.canvasWidth,I=y.canvasHeight,T=y.canvasLeft+.5*U,D=y.canvasTop+.5*I,P=x.handlersAPI.plotDragStart,M=x.handlersAPI.plotDragEnd,H=x.handlersAPI.plotDragMove,O=x.handlersAPI.plotRollOver,_=x.handlersAPI.plotRollOut,R=function(){var e=x.pieCenter||[],t=x.piePlotOptions||[],n={cx:e[0],cy:e[1],r:t.size,r2:.5*(x.innerSize||0)};return function(e){var t,A=!1;for(t in e)if(N(e[t]-n[t])>5){A=!0;break}return A}}(),V=(x.piePlotOptions=b._parsePiePlotOptions()).size,K=.5*(x.innerSize||0),z=b.getFromEnv("toolTipController");for(b.getContainer("pie-groups")||b._createContainer(),l=b.getContainer("plot-group"),c=b.getContainer("plot-shadow-group"),u=b.getContainer("label-group"),h=b.getContainer("connector-shadow-group"),d=b.getContainer("anchor-shadow-group"),b.config.drawn&&(e=R({cx:T,cy:D,r:V,r2:K})&&!1),u.css(C),v=x.valueTotal,Q&&v?(l.show(),c.show(),u.show(),h.show(),d.show()):(l.hide(),c.hide(),u.hide(),h.hide(),d.hide()),E.length&&b.removeElement(),t=0;t<L;t+=1)g=(n=k[t]).graphics,f=(p=n.config).y,A=p.toolText,null!==f&&f!==r&&!1!==p.isVisible&&(i=g.element,(a=B.setAnimation({el:i||"ringpath",attr:p.props.element.attr,label:"ringpath",props:{startAngle:b.config.startAngle},container:l,component:b})).addPattern(p.props.element.patternAttr,x.usePattern),i||(g.element=a,a.on("fc-dragstart",P).on("fc-dragmove",H).on("fc-dragend",M).on("fc-click",G(b,a)).on("fc-mouseover",O).on("fc-mouseout",_)),m=p.plotItem,o=p.eventArgs,m.graphic=a,a.show().shadow(w&&p.shadow,c).data("plotItem",m).data("dataset",this).data(F,o),z.enableToolTip(a,A));b.organizeDatalabels(),!b.config.__attachRestoreColor&&b.addExtEventListener("animationComplete",function(){var t,n;if(e)for(t=0;t<L;t+=1)(n=k[t]).graphics.element&&n.graphics.element.attr({fill:(0,s.toRaphaelColor)(n.config.color)})},B),b.config.__attachRestoreColor=!0,b.config.drawn=!0},n.sliceInOtherPies=function(e){var t,n=this,A=n.components.data,r=A.length,a=0;for(n.enableMultiSlicing=!0;r--;)r!==e&&(t=A[r]).config.sliced&&++a&&n.plotGraphicClick.call(t.graphics);return n.enableMultiSlicing=!1,!!a},n.removeElement=function(){var e,t,n,A,r=this,a=r.getFromEnv("animationManager"),i=r.getFromEnv("chart").config,o=r.components.removeDataArr||[],l=o.length,s=r.config,c=i.canvasWidth,u=i.canvasHeight,h=i.canvasLeft+.5*c,d=i.canvasTop+.5*u,g=s.pieMinRadius,p=.5*(s.innerSize||0),f=s.startAngle-H;for(A=0;A<l;A++){for(t in n=o[0].graphics)if(n.hasOwnProperty(t)){if(!(e=n[t]))continue;"element"===t?(a.setAnimation({el:e,attr:{ringpath:[h,d,g,p,f,f+.01],transform:""},callback:Y,component:r}),delete n[t]):r.disposeLabelAndConnector(n,[{el:"label",animLabel:"label"},{el:"innerLabel",animLabel:"label"},{el:"connector",animLabel:"connector"}])}o.splice(0,1)}},n.getEventArgs=function(e){var t=e.config.index,n=this.components.data[t].config||{};return{datasetName:n.seriesName,datasetIndex:t,id:n.id,visible:n.isVisible,label:n.seriesName,value:n.value,percentValue:n.pValue,tooltext:n.toolText,link:n.link,sliced:n.sliced}},n.remove=function(t){var n=this.config.legendItemId,A=this.getFromEnv("legend");A&&n&&A.disposeItem(n),e.prototype.remove.call(this,t)},t}(o["default"]);t["default"]=$},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n="t0,0";t["default"]={"initial.dataset.pie2D":function(){return{"group.appearing":function(e){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:e.component.getFromEnv("chartConfig").alphaanimation?"plot":"initial"}]},"ringpath.appearing":function(e){var t=e.component,n=e.attr.ringpath.slice(0),A=e.attr.ringpath.slice(0),r=e.props.startAngle,a=e.component.config,i=t.getFromEnv("chartConfig"),o=a.animateClockWise;return i.alphaanimation?[{}]:(o&&(A[4]+=2*Math.PI,A[5]+=2*Math.PI),n[4]=r,n[5]=r,[{initialAttr:{ringpath:n},finalAttr:{ringpath:A,transform:""},startEnd:{start:0,end:.75},effect:"linear",slot:"plot"},{initialAttr:{transform:"",ringpath:A},finalAttr:{ringpath:A},startEnd:{start:.75,end:1},effect:"linear",slot:"plot"}])},"label.appearing":[{initialAttr:{opacity:"0"},finalAttr:{opacity:"1"},slot:"final"}],"connector.appearing":function(e){return[{initialAttr:{path:e.attr.path,opacity:"0"},finalAttr:{opacity:"1"},slot:"final"}]},"label.updating":function(e){return[{initialAttr:{x:e.el.attrs.x},slot:"plot"}]}}},"slicing.dataset.pie2D":function(){return{"slice.updating":function(e){return(e.attr&&e.attr.transform)!==n?[{initialAttr:{transform:n},slot:"plot"}]:[{finalAttr:{transform:n},slot:"plot"}]}}}}},(e,t)=>{"use strict";t.__esModule=!0,t.getQuadrant=t.getConnectorPath=t.getCleanAngle=void 0;var n=Math.PI,A=n/2,r=3*n/2,a=2*n,i=t.getCleanAngle=function(e){var t=e%a;return t<0?t+a:t};t.getQuadrant=function(e){var t=i(e);return t>=0&&t<A?0:t<n?1:t<r?2:3},t.getConnectorPath=function(e,t,n){void 0===n&&(n={});var A=n,r=A.isSlanted,a=A.quadrant,i=A.padding,o=A.transX,l=A.transY,s=e.x+o,c=e.y+l,u=t.x+o,h=t.y+l;return["M",s,c,"L",r?u:s,h,u+(1===a||2===a?-1:1)*(i||0),h]}},,,,,,,,(e,t)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,n,A,r=window.parseFloat,a="array",i="none",o=e._createNode,l=e._setFillAndStroke,s=e.el.constructor,c="litepath",u={Q:"L",Z:"X",q:"l",z:"x",",":" "},h=/,?([achlmqrstvxz]),?/gi,d=function(){return this.join(",").replace(h,t)};e.svg?(t="$1",n=function(){var n=e.is(arguments[0],a)?arguments[0]:Array.prototype.slice.call(arguments);n?"string"==typeof n?n=n.replace(h,t):n.toString=d:n="M0,0",this.node.setAttribute("d",n.toString())},e._engine.litepath=function(t,n,A,r,a){var u,h=o("path");return(r||n).canvas.appendChild(h),(u=new s(h,n,r)).type=c,u.id=h.raphaelid=e._oid++,h.raphael=!0,l(u,a||{fill:i,stroke:"#000"}),u},e._getPath.litepath=function(t){return e.parsePathString(t.node.getAttribute("d"))}):e.vml&&(t=function(e,t){return u[t]||t},A=function(){var e=this;return e._transform.apply(e,arguments),e._.bcoord&&(e.node.coordsize=e._.bcoord),e},n=function(e){var n=e;return n?"string"==typeof n?n=n.replace(h,t):n.toString=d:n="M0,0",this.node.path=n,this},e._engine.litepath=function(t,n,a,l,u){var h,d=o("shape"),g=d.style,p=new s(d,n,l),f=u||{fill:i,stroke:"#000"},m=a;return g.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;",m=r(m),isNaN(m)?d.coordsize="21600 21600":(p._.bzoom=m,g.width="1px",g.height="1px",d.coordsize=p._.bcoord=m+" "+m),d.coordorigin=n.coordorigin,p.type=c,p.id=d.raphaelid=e._oid++,d.raphael=!0,p._transform=p.transform,p.transform=A,e._setFillAndStroke(p,f),(l||n).canvas.appendChild(d),(h=o("skew")).on=!0,d.appendChild(h),p.skew=h,p},e._getPath.litepath=function(t){return e.parsePathString(t.node.path||"")});e.fn[c]=function(t,A,r){var i,o,l,u=t,h=A,d=r;return"object"==typeof u&&u.constructor!==s&&(i=u,o=(u=u.litepath).zoom,d=u.group),h&&h.constructor===s?(d=h,o=undefined):o=h,u&&u.constructor===s&&(d=u,u=""),(l=e._engine[c](u,this,o,d,i)).ca[c]=n,u&&l.attr(c,e.is(u,a)?[u]:u),this.__set__&&this.__set__.push(l),this._elementsById[l.id]=l}}},,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.setAxisDimention=t.getSpecificyAxisConf=t.getSpecificxAxisConf=t["default"]=t._feedAxesRawData=void 0;var r=A(n(295)),a=A(n(652)),i=A(n(695)),o=n(281),l=A(n(696)),s=A(n(428)),c=A(n(569)),u=Math.max,h=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",i["default"],["canvas"]),t.registerFactory("dataset",l["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MSDyBaseCartesian"};var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.syncaxislimits=0},n._feedAxesRawData=function(){var e,t,n,A,r,a,i,l,c,u=this,h=u.config,d=u.getFromEnv("color-manager"),g=u.getFromEnv("dataSource"),p=u.getFromEnv("chart-attrib"),f=u.config.is3D,m=f?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,v=h.primaryAxisOnleft=(0,o.pluckNumber)(p.primaryaxisonleft,1),b=(0,o.pluckNumber)(p.syncaxislimits,0),B=[{line:[]}],y=[{line:[]}],C=g.trendlines||[],x=(0,o.pluckNumber)(p.showzeroplane,1),w=(0,o.pluckNumber)(p.showzeroplanevalue),F=(0,o.pluckFontSizeMaintainUnit)(p.outcnvbasefontsize,p.basefontsize,10);for(x||w!==o.UNDEF||(w=0),e=u.getSpecificxAxisConf(),t=u.getSpecificyAxisConf(),h.isstacked&&(t.isPercent=(0,o.pluckNumber)(h.stack100percent,0),"stackedcolumn2dlinedy"!==u.getName().toLowerCase()&&"stackedcolumn3dlinedy"!==u.getName().toLowerCase()||(t.isPercent=0)),n={isActive:!1,isPercent:u.isPercentage,axisIndex:1,uniqueClassName:1,outCanfontFamily:(0,o.pluck)(p.outcnvbasefont,p.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(F),outCanfontSizeWithUnit:F,outCancolor:(0,o.pluck)(p.outcnvbasefontcolor,p.basefontcolor,d.getColor(m.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:p.yaxisnamepadding,axisValuePadding:p.yaxisvaluespadding,axisNameFont:p.syaxisnamefont,axisNameFontSize:p.syaxisnamefontsize,axisNameFontSizeWithUnit:p.syaxisnamefontsize,axisNameFontColor:p.syaxisnamefontcolor,axisNameFontBold:p.syaxisnamefontbold,axisNameFontItalic:p.syaxisnamefontitalic,axisNameBgColor:p.syaxisnamebgcolor,axisNameBorderColor:p.syaxisnamebordercolor,axisNameAlpha:p.syaxisnamealpha,axisNameFontAlpha:p.syaxisnamefontalpha,axisNameBgAlpha:p.syaxisnamebgalpha,axisNameBorderAlpha:p.syaxisnameborderalpha,axisNameBorderPadding:p.syaxisnameborderpadding,axisNameBorderRadius:p.syaxisnameborderradius,axisNameBorderThickness:p.syaxisnameborderthickness,axisNameBorderDashed:p.syaxisnameborderdashed,axisNameBorderDashLen:p.syaxisnameborderdashlen,axisNameBorderDashGap:p.syaxisnameborderdashgap,axisNameWidth:p.syaxisnamewidth,useEllipsesWhenOverflow:p.useellipseswhenoverflow,rotateAxisName:(0,o.pluckNumber)(p.rotateyaxisname,1),axisName:p.syaxisname,divLineColor:(0,o.pluck)(p.divlinecolor,d.getColor(m.divLineColor)),divLineAlpha:(0,o.pluck)(p.divlinealpha,d.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(p.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(p.divlinedashed,p.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(p.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(p.divlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(p.showalternatehgridcolor,1),alternateGridColor:(0,o.pluck)(p.alternatehgridcolor,d.getColor("altHGridColor")),alternateGridAlpha:(0,o.pluck)(p.alternatehgridalpha,d.getColor("altHGridAlpha")),numDivLines:p.numdivlines,axisMinValue:b?(0,o.pluckNumber)(p.syaxisminvalue,p.pyaxisminvalue,p.yaxisminvalue):p.syaxisminvalue,axisMaxValue:b?(0,o.pluckNumber)(p.syaxismaxvalue,p.pyaxismaxvalue,p.yaxismaxvalue):p.syaxismaxvalue,setAdaptiveMin:p.setadaptivesymin||p.setadaptiveymin,adjustDiv:p.adjustdiv,labelStep:p.yaxisvaluesstep,showAxisValues:(0,o.pluckNumber)(p.showsyaxisvalues,p.showsyaxisvalue,p.showyaxisvalues,p.showyaxisvalue),showLimits:(0,o.pluckNumber)(p.showsecondarylimits,p.showyaxislimits,p.showlimits),showDivLineValues:(0,o.pluckNumber)(p.showdivlinesecondaryvalue,p.showyaxisvalues,p.showyaxisvalue,1),showZeroPlane:x,zeroPlaneColor:p.zeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(p.zeroplanethickness,p.divlinethickness,2),zeroPlaneAlpha:p.zeroplanealpha,showZeroPlaneValue:w,trendlineColor:p.trendlinecolor,trendlineToolText:p.trendlinetooltext,trendlineThickness:p.trendlinethickness,trendlineAlpha:p.trendlinealpha,showTrendlinesOnTop:p.showtrendlinesontop,showAxisLine:f?0:(0,o.pluckNumber)(p.showsyaxisline,p.showaxislines,p.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(p.syaxislinethickness,p.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(p.syaxislinealpha,p.axislinealpha,100),axisLineColor:(0,o.pluck)(p.syaxislinecolor,p.axislinecolor,"#000000"),labelFont:p.yaxisvaluefont,labelFontSize:this.computeFontSize(p.yaxisvaluefontsize),labelFontSizeWithUnit:p.yaxisvaluefontsize,labelFontColor:p.yaxisvaluefontcolor,labelAlpha:p.yaxisvaluealpha,labelFontBold:p.yaxisvaluefontbold,labelFontItalic:p.yaxisvaluefontitalic,labelBdrColor:p.yaxisvaluebordercolor,labelBdrAlpha:p.yaxisvalueborderalpha,labelBgAlpha:p.yaxisvaluebgalpha,labelLink:p.yaxisvaluelink,labelBgColor:p.yaxisvaluebgcolor,labelBdrThickness:p.yaxisvalueborderthickness,labelBdrPadding:p.yaxisvalueborderpadding,labelBdrRadius:p.yaxisvalueborderradius,labelBdrDashed:p.yaxisvalueborderdashed,labelBdrDashLen:p.yaxisvalueborderdashlen,labelBdrDashGap:p.yaxisvalueborderdashgap},e.vtrendlines=(0,o.extend2)([],g.vtrendlines),l=0,i=C.length;l<i;l++)for(a=(A=C[l]&&C[l].line||[]).length,c=0;c<a;c++)r=A[c]||{},(0,s["default"])(r.parentyaxis,"s")?B[0].line.push(r):y[0].line.push(r);return t.trendlines=(0,o.extend2)([],y),n.trendlines=(0,o.extend2)([],B),1===v?(t.isVertical=!0,t.isReverse=!0,t.isOpposit=!1,n.isVertical=!0,n.isReverse=!0,n.isOpposit=!0):(t.isVertical=!0,t.isReverse=!0,t.isOpposit=!0,n.isVertical=!0,n.isReverse=!0,n.isOpposit=!1),{yAxisConf:[t,n],xAxisConf:[e]}},n.getSpecificxAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.config.is3D,A=e.getBasexAxisConf(),r=e.config;return A.zeroPlaneThickness=(0,o.pluckNumber)(t.vzeroplanethickness,t.vdivlinethickness,2),A.zeroPlaneAlpha=(0,o.pluckNumber)(t.vzeroplanealpha,t.vdivlinealpha,r.zeroplanealpha),A.showZeroPlaneValue=t.showvzeroplanevalue,A.showAxisLine=n?0:(0,o.pluckNumber)(t.showxaxisline,t.showaxislines,t.drawAxisLines,0),A.axisLineColor=(0,o.pluck)(t.xaxislinecolor,t.axislinecolor,"#000000"),A.isReverse=!1,A.showAlternateGridColor=(0,o.pluckNumber)(t.showalternatevgridcolor,0),A.numDivLines=t.numvdivlines,A.maxLabelHeight=t.maxlabelheight,A.axisName=t.xaxisname,A.setAdaptiveMin=t.setadaptivexmin,A.showLimits=t.showvlimits,A.showDivLineValues=(0,o.pluckNumber)(t.showvdivlinevalues,t.showvdivlinevalues),A},n.getSpecificyAxisConf=function(){var e=this,t=e.getFromEnv("chart-attrib"),n=e.config.is3D,A=n?o.chartPaletteStr.chart3D:o.chartPaletteStr.chart2D,r=e.config,a=e.getFromEnv("color-manager"),i=(0,o.pluckNumber)(t.syncaxislimits,0),l=(0,o.pluckNumber)(t.showzeroplane,1),s=(0,o.pluckNumber)(t.showzeroplanevalue),c=(0,o.pluckFontSizeMaintainUnit)(t.outcnvbasefontsize,t.basefontsize,10);return l||s!==o.UNDEF||(s=0),{outCanfontFamily:(0,o.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(c),outCanfontSizeWithUnit:c,outCancolor:(0,o.pluck)(t.outcnvbasefontcolor,t.basefontcolor,a.getColor(A.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:(0,o.pluckNumber)(t.pyaxisnamepadding,t.yaxisnamepadding),axisValuePadding:(0,o.pluckNumber)(t.pyaxisvaluespadding,t.yaxisvaluespadding),axisNameFont:(0,o.pluck)(t.pyaxisnamefont,t.yaxisnamefont),axisNameFontSize:(0,o.pluckNumber)(t.pyaxisnamefontsize,this.computeFontSize(t.yaxisnamefontsize)),axisNameFontSizeWithUnit:(0,o.pluckFontSizeMaintainUnit)(t.pyaxisnamefontsize,t.yaxisnamefontsize),axisNameFontColor:(0,o.pluck)(t.pyaxisnamefontcolor,t.yaxisnamefontcolor),axisNameFontBold:(0,o.pluckNumber)(t.pyaxisnamefontbold,t.yaxisnamefontbold),axisNameFontItalic:(0,o.pluckNumber)(t.pyaxisnamefontitalic,t.yaxisnamefontitalic),axisNameBgColor:(0,o.pluck)(t.pyaxisnamebgcolor,t.yaxisnamebgcolor),axisNameBorderColor:(0,o.pluck)(t.pyaxisnamebordercolor,t.yaxisnamebordercolor),axisNameAlpha:(0,o.pluckNumber)(t.pyaxisnamealpha,t.yaxisnamealpha),axisNameFontAlpha:(0,o.pluckNumber)(t.pyaxisnamefontalpha,t.yaxisnamefontalpha),axisNameBgAlpha:(0,o.pluckNumber)(t.pyaxisnamebgalpha,t.yaxisnamebgalpha),axisNameBorderAlpha:(0,o.pluckNumber)(t.pyaxisnameborderalpha,t.yaxisnameborderalpha),axisNameBorderPadding:(0,o.pluckNumber)(t.pyaxisnameborderpadding,t.yaxisnameborderpadding),axisNameBorderRadius:(0,o.pluckNumber)(t.pyaxisnameborderradius,t.yaxisnameborderradius),axisNameBorderThickness:(0,o.pluckNumber)(t.pyaxisnameborderthickness,t.yaxisnameborderthickness),axisNameBorderDashed:(0,o.pluckNumber)(t.pyaxisnameborderdashed,t.yaxisnameborderdashed),axisNameBorderDashLen:(0,o.pluckNumber)(t.pyaxisnameborderdashlen,t.yaxisnameborderdashlen),axisNameBorderDashGap:(0,o.pluckNumber)(t.pyaxisnameborderdashgap,t.yaxisnameborderdashgap),axisNameWidth:(0,o.pluckNumber)(t.pyaxisnamewidth,t.yaxisnamewidth),useEllipsesWhenOverflow:t.useellipseswhenoverflow,rotateAxisName:(0,o.pluckNumber)(t.rotateyaxisname,1),axisName:(0,o.pluck)(t.pyaxisname,t.yaxisname),divLineColor:(0,o.pluck)(t.divlinecolor,a.getColor(A.divLineColor)),divLineAlpha:(0,o.pluck)(t.divlinealpha,a.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(t.divlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(t.divlinedashed,t.divlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(t.divlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(t.divlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(t.showalternatehgridcolor,1),alternateGridColor:(0,o.pluck)(t.alternatehgridcolor,a.getColor("altHGridColor")),alternateGridAlpha:(0,o.pluck)(t.alternatehgridalpha,a.getColor("altHGridAlpha")),numDivLines:t.numdivlines,axisMinValue:i?(0,o.pluckNumber)(t.syaxisminvalue,t.pyaxisminvalue,t.yaxisminvalue):(0,o.pluckNumber)(t.pyaxisminvalue,t.yaxisminvalue),axisMaxValue:i?(0,o.pluckNumber)(t.syaxismaxvalue,t.pyaxismaxvalue,t.yaxismaxvalue):(0,o.pluckNumber)(t.pyaxismaxvalue,t.yaxismaxvalue),setAdaptiveMin:t.setadaptiveymin,adjustDiv:t.adjustdiv,labelStep:t.yaxisvaluesstep,showAxisValues:(0,o.pluckNumber)(t.showyaxisvalues,t.showyaxisvalue),showLimits:(0,o.pluckNumber)(t.showyaxislimits,t.showlimits,e.showLimits),showDivLineValues:(0,o.pluckNumber)(t.showdivlinevalues,t.showdivlinevalue),showZeroPlane:l,zeroPlaneColor:t.zeroplanecolor,zeroPlaneThickness:(0,o.pluckNumber)(t.zeroplanethickness,t.divlinethickness,r.zeroplanethickness,2),zeroPlaneAlpha:(0,o.pluckNumber)(t.zeroplanealpha,t.divlinealpha,r.zeroplanealpha),showZeroPlaneValue:s,showZeroPlaneOnTop:r.showzeroplaneontop,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,showAxisLine:n?0:(0,o.pluckNumber)(t.showyaxisline,t.showaxislines,t.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(t.yaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(t.yaxislinealpha,t.axislinealpha,100),axisLineColor:(0,o.pluck)(t.yaxislinecolor,t.axislinecolor,"#000000"),forceTrendBelow:!!r.is3D,labelFont:t.yaxisvaluefont,labelFontSize:this.computeFontSize(t.yaxisvaluefontsize),labelFontSizeWithUnit:t.yaxisvaluefontsize,labelFontColor:t.yaxisvaluefontcolor,labelAlpha:t.yaxisvaluealpha,labelFontBold:t.yaxisvaluefontbold,labelFontItalic:t.yaxisvaluefontitalic,labelBdrColor:t.yaxisvaluebordercolor,labelBgAlpha:t.yaxisvaluebgalpha,labelBdrAlpha:t.yaxisvalueborderalpha,labelLink:t.yaxisvaluelink,labelBgColor:t.yaxisvaluebgcolor,labelBdrThickness:t.yaxisvalueborderthickness,labelBdrPadding:t.yaxisvalueborderpadding,labelBdrRadius:t.yaxisvalueborderradius,labelBdrDashed:t.yaxisvalueborderdashed,labelBdrDashLen:t.yaxisvalueborderdashlen,labelBdrDashGap:t.yaxisvalueborderdashgap}},n.setAxisDimention=function(){var e,t,n=this,A=n.config,r=n.getChildren(),a=n.getChildren("scrollBar")&&n.getChildren("scrollBar")[0]&&n.getChildren("scrollBar")[0].config,i=r.yAxis,o=r.xAxis&&r.xAxis[0],l=i[0],s=i[1],c=A.xDepth||0,h=r.canvas[0].config,d=h.canvasBorderWidth,g=h.canvasPadding,p=h.canvasPaddingLeft,f=h.canvasPaddingRight,m=h.canvasPaddingTop,v=n&&n.isScrollEnabled(),b=A.shift&&(A.is3D||v&&+a.isOpposite===o.config.isOpposit)?A.shift:0,B=A.sumValueSpace&&A.sumValueSpace.top||0,y=A.primaryAxisOnleft,C=h.canvasPaddingBottom,x=u(p,g);o&&o.setAxisDimention({x:A.canvasLeft+c+x,y:o.config.isOpposit?A.canvasTop-d-(A.is3D?0:b)-B:A.canvasBottom+b+d,opposite:o.config.isOpposit?A.canvasBottom+b+d:A.canvasTop-d,axisLength:A.canvasWidth-c-x-u(f,g)}),y?(A.yAxisStartXPos=A.canvasLeft-d,A.sYAxisStartXPos=A.canvasRight+d):(A.yAxisStartXPos=A.canvasRight+d,A.sYAxisStartXPos=A.canvasLeft-d),e=A.yAxisStartXPos,t=A.sYAxisStartXPos,l&&l.setAxisDimention({x:e,y:A.canvasTop+m,opposite:t,axisLength:A.canvasHeight-m-C}),s&&s.setAxisDimention({x:t,y:A.canvasTop+m,opposite:e,axisLength:A.canvasHeight-m-C})},n._manageYAxisSpace=function(){var e,t,n,A=this,r=A.config,a=A.getChildren("yAxis"),i=[],o=0;for(t=0;t<(a&&a.length);t++)n=(e=a[t])&&e.placeAxis(.7*(r.availableWidth-o))||{},0===t&&(o=n.left),i.push({axisIndex:t,spaceTaken:n});a&&a[0]&&A._allocateSpace({left:(0,c["default"])(i,function(e){return e.spaceTaken.left}),right:(0,c["default"])(i,function(e){return e.spaceTaken.right})}),r.yAxisSpaceAllocation=i},t}(a["default"]);t._feedAxesRawData=h.prototype._feedAxesRawData,t.getSpecificxAxisConf=h.prototype.getSpecificxAxisConf,t.getSpecificyAxisConf=h.prototype.getSpecificyAxisConf,t.setAxisDimention=h.prototype.setAxisDimention;t["default"]=h},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A,o=e.getChildren("canvas")[0],l=function(e,t){return JSON.stringify(e)!==JSON.stringify(t)},s={zoomable:!0,pannable:!0},c=!!Number(e.config.syncaxislimits),u=o.getChildren("axisRefVisualCartesian")[0],h=e._feedAxesRawData(),d=function(e){var t=e.sender;u.addexplicitDrawItems(t.getId(),t),u.asyncDraw()};(0,r.componentFactory)(e,i["default"],"xAxis",1,h.xAxisConf),(0,r.componentFactory)(e,a["default"],"yAxis",2,h.yAxisConf),t=e.getChildren(),n=t.xAxis[0],(A=t.yAxis).forEach(function(t){t.setLinkedItem("canvas",o),u.setLinkedItem(t.getId(),t),u.addExtEventListener("visiblerangeset",d,t),o.attachAxis(t,!0,e.zoomY?s:{})}),n.setLinkedItem("canvas",o),u.setLinkedItem(n.getId(),n),A[1].setAxisConfig({dependentInfo:{id:A[0].getId(),count:!0,limit:c}}),A[1].getState("divlineEventAdded")||(A[1].addExtEventListener("divlinesSet",function(e){var t=A[1].config.dependentInfo;e.sender.getId()===t.id&&(t.numDivLines=e.data)},A[0]),A[1].setState("divlineEventAdded",!0));c&&(A[1].getState("dataLimitEventAdded")||(A[1].addExtEventListener("dataLimitSet",function(e){var t=A[1].config.dependentInfo;e.sender.getId()===t.id&&l(t.dataLimit,e.data)&&(t.dataLimit=e.data,A[1].config.isDataLimitSet&&A[1].setDataLimit())},A[0]),A[1].setState("dataLimitEventAdded",!0)),A[0].setAxisConfig({dependentInfo:{id:A[1].getId(),limit:!0}}),A[0].getState("dataLimitEventAdded")||(A[0].addExtEventListener("dataLimitSet",function(e){var t=A[0].config.dependentInfo;e.sender.getId()===t.id&&l(t.dataLimit,e.data)&&(t.dataLimit=e.data,A[0].setDataLimit())},A[1]),A[0].setState("dataLimitEventAdded",!0)));u.addExtEventListener("visiblerangeset",d,n),o.attachAxis(n,!1,e.zoomX?s:{}),e._setCategories()};var r=n(281),a=A(n(566)),i=A(n(614))},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=function(e){var t,n,i,o,l,s,c,u,h,d,g=e.getFromEnv("dataSource").dataset,p=e.getChildren().canvas[0].getChildren("vCanvas"),f=p[0],m=p[1],v=e.getFromEnv("chartConfig").isdual,b={vCanvasDatasetsDef0:{},vCanvasDatasetsDef1:{}},B={vCanvas0:{},vCanvas1:{}};g||e.setChartMessage();for(n=0;n<g.length;n++)"s"===(u=(t=g[n]).parentyaxis||"").toLowerCase()&&v?(c=(0,A.pluck)(t.renderas,e.config.sDefaultDatasetType),h=m,d=B.vCanvas1,o=b.vCanvasDatasetsDef1):(c=(0,A.pluck)(t.renderas,e.config.defaultDatasetType),h=f,d=B.vCanvas0,o=b.vCanvasDatasetsDef0),c=e.getDSType(c,"s"===u.toLowerCase()),(s=e.getDSGroupdef(c,"s"===u.toLowerCase()))&&((0,A.componentFactory)(h,s,a),d[s.getName().toLowerCase()]=!0),d[c.toLowerCase()]=!0,o[c]?(o[c].conf.push(t),o[c].indices.push(n)):(o[c]={},o[c].indices=[n],o[c].classDef=e.getDSdef(c),o[c].conf=[t],o[c].pYAxis=u.toLowerCase(),o[c].parent=s?h.getChildren(a)[0]:h);for(var y in e.config._hascolumn=!1,b)if(b.hasOwnProperty(y))for(c in o=b[y])o.hasOwnProperty(c)&&("group"===(l=o[c]).parent.getType()&&l.parent.configure(l.conf),(0,A.datasetFactory)(l.parent,l.classDef,"dataset_"+c,l.conf.length,l.conf,l.indices),"column"===c&&(e.config._hascolumn=!0));(i=e.getDatasets()).sort(function(e,t){var n=e.getName(),A=t.getName(),r={line:1,area:2,column:3};return r[n]>r[A]?-1:r[n]<r[A]?1:0}),e.config.datasetOrder=i,(0,r.removeComponents)(p[0],Object.keys(B.vCanvas0)),(0,r.removeComponents)(p[1],Object.keys(B.vCanvas1))};var A=n(281),r=n(697),a="multiseriesColumnManager"},(e,t)=>{"use strict";t.__esModule=!0,t.removeComponents=void 0;t.removeComponents=function(e,t){e&&e.iterateComponents(function(e){-1!==t.indexOf(e.getName().toLowerCase())||e.getLinkedParent().getState("removed")||e.remove()})}},,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(643)),i=n(281),o=A(n(710)),l=n(289),s=n(711),c=A(n(712)),u=i.preDefStr.setRolloverAttrStr,h=i.preDefStr.setRolloutAttrStr;(0,l.addDep)({name:"mssplineareaAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){var t;return(t=e.call(this)||this).drawCommonElements=i.stubFN,t}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.configureAttributes=function(t){e.prototype.configureAttributes&&e.prototype.configureAttributes.call(this,t),o["default"].call(this)},n.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},n.drawPlots=function(){var e,t,n,A,r,a,o,l,c,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k=this,L=k.config,U=k.getFromEnv("chart"),I=U.config,T=k.getFromEnv("xAxis"),N=null,D=[],P=k.components.data,M=I.connectnulldata,H=I.minimizetendency,O=L.plotBorderDashStyle,_=L.plotborderthickness,R=k.getContainer(),V=[],G=k.getGraphicalElement("splineElement"),K=L.fillColor,z=k.components.removeDataArr||[],W=z.length,j=R&&R.shadowGroup,X=L.shadow,Y=k.getState("visible"),J={},q=!I.drawfullareaborder,Z=L.plotborderColorObject,$=k.getGraphicalElement("connector"),ee=k.getFromEnv("animationManager"),te=L._oldStartIndex,ne=L._oldEndIndex,Ae=k.config.JSONData.renderas||U.config.defaultDatasetType,re=/area/gi.test(Ae);for(L.imagesLoaded=0,P||(P=k.components.data),e=T.getTicksLen(),E=L.scrollMinVal,Q=L.scrollMaxVal,E>te&&k.flushOnScroll(te,E>ne?ne:E),Q<ne&&k.flushOnScroll(Q<te?te:Q,ne),L._oldStartIndex=E,L._oldEndIndex=Q,t=E;t<Q;t++)(c=P[t])&&(p=(l=c&&c.config).setValue,C=(J=l.anchorProps).shadow,d=c.graphics.element,g=c.graphics.hotElement,w=c.graphics.image,null===p?(d&&d.hide(),g&&g.hide(),w&&w.hide(),M||(N=null)):(r=l._Py,A=l._Px,!1===Y&&(r=l._Pby),D.push({x:A,y:r,lastXPos:a,lastYPos:N}),a=A,N=r,v=J.anchorAlpha,y=J.radius&&v,m=l.hoverEffects,B=d?Y&&y?"updating":"disappearing":"appearing",J.imageUrl?k.drawAnchorImage(c):(b=Object.assign({},l.props.element.attr),"disappearing"!==B&&Y||(b=i.UNDEF),d=c.graphics.element=ee.setAnimation({el:d||"path",attr:b,container:R.plotGroup,component:k,label:"anchor"}),w&&w.hide(),d&&d.show().shadow(C,R.anchorShadowGroup).data("anchorRadius",J.radius).data("anchorHoverRadius",m.anchorRadius).data("eventArgs",l.eventArgs),m.enabled&&d&&d.data("anchorRadius",J.radius).data("anchorHoverRadius",m.anchorRadius).data("hoverEnabled",m.enabled).data(u,m.attrs.setRolloverAttr).data(h,m.attrs.setRolloutAttr))));for(n=e,F={path:V=(V=(o=(0,s.getSplinePath)(D,l&&l._Pby,H,re,n)).closedPath).join(),stroke:(0,i.toRaphaelColor)(Z),"stroke-width":q?0:_,fill:(0,i.toRaphaelColor)(K),"stroke-linecap":"round","stroke-linejoin":_>2?"round":"miter","stroke-dasharray":O},k.getState("visible")||(F=i.UNDEF),(f=ee.setAnimation({el:G||"path",attr:F,container:R.commonElemsGroup,component:k,label:"line"}))&&f.addPattern({patternType:L.patternType,patternAngle:L.patternAngle,patternDensity:L.patternDensity,patternSize:L.patternSize,color:L.plotfillcolor,patternAlpha:L.patternAlpha,patternBgColor:L.patternBgColor,alpha:L.plotfillalpha,x:0,y:0},L.usePattern),!f&&G&&k.removeGraphicalElement(G),G||k.addGraphicalElement("splineElement",f),""!==V&&k.getState("visible")?f.show().shadow(X,j):f&&f.hide(),q?(S={path:o.openPath.join(),stroke:(0,i.toRaphaelColor)(Z),"stroke-width":_,"stroke-linecap":"round","stroke-linejoin":_>2?"round":"miter","stroke-dasharray":O,name:"connector"},x=ee.setAnimation({el:$||"path",attr:S,container:R.commonElemsGroup,state:$?k.getState("visible")?"updating":"disappearing":"appearing",component:k,label:"connectorLine"}),$||k.addGraphicalElement("connector",x)):x&&k.removeGraphicalElement(x),t=0;t<W;t++)k._removeDataVisuals(z.shift())},n.getName=function(){return"splinearea"},t}(a["default"]);t["default"]=d},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var A=n(281),r=function(e,t,n,A,i){var o=[],l=!1,s=A||0,c=i;for(c=c||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};s<e.length;++s)if(l){if(isNaN(e[s].config.setValue)||null===e[s].config.setValue){if(n)continue;break}o.push({index:s,y:e[s].config.setValue})}else{if(isNaN(e[s].config.setValue)||null===e[s].config.setValue)continue;l=!0,o.push({index:s,y:e[s].config.setValue})}return o.length>2&&a(o,t,c),s<e.length&&!n&&r(e,t,n,s,c),c},a=function(e,t,n){var A,r,a,o,l={};for(r=0;r<e.length;++r)l["D"+e[r].index]=0;for(A=0;A<10;++A)for(r=0;r<e.length;++r)a=0===r?(3*(e[r+1].y-e[r].y)-l["D"+e[r+1].index])/2:r===e.length-1?(3*(e[r].y-e[r-1].y)-l["D"+e[r-1].index])/2:(3*(e[r+1].y-e[r-1].y)-l["D"+e[r+1].index]-l["D"+e[r-1].index])/4,l["D"+e[r].index]=a;for(o=Math.round(t/(e.length-1)),r=1;r<e.length;++r)i(r,e,l,n,o)},i=function(e,t,n,A,r){var a,i,o,l,s,c,u,h,d,g,p,f,m=t,v=e;for(a=n["D"+m[0].index],i=n["D"+m[v].index],o=m[0].y,l=a,s=3*(m[v].y-m[0].y)-2*a-i,c=2*(m[0].y-m[v].y)+a+i,u=A.max,h=A.min,d=0,g=r;d<=g;d++)(f=o+l*(p=d/g)+s*p*p+c*p*p*p)<h&&(h=f),f>u&&(u=f);A.max=u,A.min=h};t["default"]=function(){var e,t=this,n=t.config,a=t.getFromEnv("chart"),i=t.getFromEnv("chartConfig"),o=a.config.origRenderWidth,l=i.connectnulldata,s=i.minimizetendency,c=t.components.data,u=Number.MIN_VALUE,h=Number.MAX_VALUE;0===s&&(e=r(c,o,l),n.maxValue=Math.max(n.maxValue,e.max),n.minValue=Math.min(n.minValue,e.min),n.maxValue===h&&(n.maxValue=A.UNDEF),n.minValue===u&&(n.minValue=A.UNDEF))}},(e,t)=>{"use strict";t.__esModule=!0,t.getSplinePath=function(e,t,i,o,l){var g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P=[null],M=[],H=[];for(N=0,D=e.length;N<D;N+=1)x=e[N],I=e[N-1]||{},T=e[N+1]||{},v=x.x,p=x.y,b=I.x,f=I.y,B=T.x,m=T.y,y=x.lastYPos,x.lastXPos,M.length,H.length,null!==y?(g=L,N===e.length-1?(Q=P[N-k-1],E=c(S=w=(v+b)/2,Q,b,f),(f>p&&E<p||f<p&&E>p)&&(S=u(E=p,Q,b,f)),L.push(S,E,w,(p+f)/2,v,p),M.push(L),H.push(L),o&&d(M,!0,U,t),o&&d(H,!1)):(Q=P[N-k-1],f>p&&m>=p||f<p&&m<=p?(C=0,w=h(b,f,v,p),F=p,N-k!==1?(E=c(S=w,Q,b,f),(f>p&&E<p||f<p&&E>p)&&(S=u(E=p,Q,b,f)),L.push(S,E,w,F,v,p)):L.push((v+b)/2,(p+f)/2,w,F,v,p)):f===p?(C=0,L.push(b,f,v,p,v,p)):(f>p&&p>m||f<p&&p<m)&&(C=s(b,f,B,m),w=h(b,f,v,p),F=c(w,C,v,p),(f>p&&F>f||f<p&&F<f)&&(w=u(F=f,C,v,p)),N-k!==1?(E=c(S=w,Q,b,f),(f>p&&E<p||f<p&&E>p)&&(S=u(E=p,Q,b,f)),L.push(S,E,w,F,v,p)):L.push((v+b)/2,(p+f)/2,w,F,v,p)),P.push(C))):null===y&&0!==N?(g||(g=[]),g[0]===a&&(M.push(L),H.push(L),o&&d(M,!0,U,t),o&&d(H,!1)),M.push([n,v,p]),H.push([n,v,p]),U=v,L=[a],k=N,P=[null]):(M.push([n,v,p]),H.push([n,v,p]),U=v,L=[a],k=N);g=M[M.length-1],o&&g&&(g[g.length-1]===A||g[0]!==r&&g[0]!==a||(d(M,!0,U,t),d(H,!1)));o||M.length>=2&&d(M,!1);return{closedPath:M,openPath:H}};var n="M",A="Z",r="R",a="C",i=Math,o=i.sqrt,l=i.abs,s=function(e,t,n,A){return(A-t)/(n-e)},c=function(e,t,n,A){return(e-n)*t+A},u=function(e,t,n,A){return(e-A)/t+n},h=function(e,t,n,A){var r=(A-t)/o((n-e)*(n-e)+(A-t)*(A-t)),a=l(.5*r);return e*a+n*(1-a)},d=function(e,t,n,i){var o=e.length,l=e[o-1],s=l.length,c=l[0],u=l[s-2];s<3||(c!==r&&c!==a||3!==s||(e[o-1][0]="L"),t&&e.push(["L",u,i,n,i,A]))}},(e,t,n)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var A=n(281);function r(e){var t,n,r,a=e.length,i=[],o=!1,l=!0;for(r=0;r<a;++r)t=e[r],l?(i.push(t),n=(0,A.extend2)([],t),l=!1):"Z"!==t?o||(i.push(t),t.toString()===e[r-1].toString()&&(o=!0)):(l=!0,o=!1,n[0]="L",i.push(n,"Z"));return i}function a(e){var t=e.component,n=t.components.data,A=t.getLinePath(n,null,"zero"),r=A.getPathArr().slice(0,A.getPathArr().length/2),a=e.attr;return[{initialAttr:{opacity:0,path:r},finalAttr:{opacity:1,path:a&&a.path},startEnd:{start:0,end:.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]}function i(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:"plot-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]}function o(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}function l(e){var t=e.component,n=t.components.data,A=t.getLinePath(n,null,"zero"),a=e.attr;return[{initialAttr:{opacity:0,path:r(A.getPathArr())},finalAttr:{opacity:1,path:a&&a.path},startEnd:{start:0,end:.5},slot:"plot",hookFn:function(){this.attr({opacity:1})}}]}t["default"]={"*.dataset.splinearea":function(){return{"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}],"anchor.updating":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"anchor.disappearing":[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}],"line.appearing":l,"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"label.updating":o,"group.appearing":i,"connectorLine.appearing":a}}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=A(n(642)),o=n(281),l=A(n(710)),s=n(289),c=n(711),u=A(n(714));(0,s.addDep)({name:"mssplineAnimation",type:"animationRule",extension:u["default"]});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"spline"},n.configureAttributes=function(t){e.prototype.configureAttributes&&e.prototype.configureAttributes.call(this,t),l["default"].call(this)},n.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},n.drawCommonElements=function(){var e,t,n,A,a,i,l=this,s=l.components.data,u=l.config,h=Number(l.getFromEnv("chartConfig").connectnulldata),d=l.getFromEnv("xAxis"),g=l.getFromEnv("yAxis"),p=u.lineDashStyle,f=u.linethickness,m=[],v=null,b={color:u.linecolor,alpha:u.alpha},B={x:d.getLimit(),y:g.getLimit()},y=l.getState("visible")?s.length:0,C=u.lineOb||{},x=[],w=this.getFromEnv("chart"),F=/area/gi.test(w.defaultDatasetType);for(B.x.minPixel=d.getPixel(B.x.min),B.x.maxPixel=d.getPixel(B.x.max),B.y.minPixel=g.getPixel(B.y.min),B.y.maxPixel=g.getPixel(B.y.max),B.y.base=g.getPixel(0),B.x.base=d.getPixel(0),n=0;n<y;++n)(A=s[n])&&(i=(a=A.config||{}).setValue,a._Pbx=r,a._Pby=r,x[n]={config:{_Px:a._Px,_Py:a._Py,setValue:a.setValue}},null!==i&&i!==r?(m.push({x:a._Px,y:a._Py,lastYPos:v,lastXPos:e}),v=a._Py,e=a._Px):h||(v=null));u.pathStartIndex=0,u.pathEndIndex=undefined,C[t="default"]=C[t]||{},C[t].used=!0,C[t].path=[{pathArr:(0,c.getSplinePath)(m,g.getPixel(g.getAxisBase()),w.config.minimizetendency,F).closedPath,path2Arr:[],getPathArr:function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]}}],C[t].attr={"stroke-dasharray":p,"stroke-width":f,stroke:(0,o.toRaphaelColor)(b),"stroke-linecap":"round"},l._drawCommonElementsHelper(C),l.config.lineOb=C,u.prevLim=B,u.prevDataStore=x},t}(i["default"]);t["default"]=h},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(645));t["default"]={"*.dataset.spline":r["default"]["*.dataset.line"]}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(297),o=n(281),l=Math,s=l.min,c=l.max,u=l.abs,h=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"group"},t.getName=function(){return"columnMultiSeriesgroup"},n.getName=function(){return"columnMultiSeriesgroup"},n.preConfigure=function(t){if(!t)return!1;this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},n.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},n.setVisibility=function(){var e=this,t=0;e._mapChildren(function(e){e.setVisibility&&e.setVisibility()}),e._mapChildren(function(e){e.getState("visible")&&t++}),e.setState("visible",!!t)},n.createContainer=function(){var e,t,n=this,A=n.getFromEnv("animationManager"),r=n.getLinkedParent().getChildContainer();for(e in r)t=r[e],!n.getChildContainer(e)&&n.addChildContainer(e,A.setAnimation({el:"group",attr:{name:"manager-"+e},component:n,container:t}))},n.allocatePosition=function(){this.setColumnPosition()},n.draw=function(){this.createContainer()},n.getCanvasPadding=function(){var e,t,n={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this.setColumnPosition(),this._mapChildren(function(A){for(t in e=!A.getState("removed")&&A.getState("visible")&&A.getCanvasPadding&&A.getCanvasPadding()||{})e.hasOwnProperty(t)&&(n[t]=Math.max(e[t],n[t]))}),n},n.setColumnPosition=function(){var e,t,n,A,a,i=this,l=i.getFromEnv("chartConfig"),h=i.getFromEnv("chart-attrib"),d=i.getFromEnv("xAxis"),g=i.getFromEnv("numOfColumns"),p=l.plotSpacePercent,f=c((0,o.pluckNumber)(p,20)%100,0),m=f/200,v=d.getPixel(0),b=d.getPixel(1),B=i.getFromEnv("chart").isBar?l.maxBarHeight:l.maxColWidth,y=u(b-v),C=l.plotPaddingPercent,x=!0,w=l.overlapColumns,F=0,S=0,E=0;i.addToEnv("groupMaxWidth",y),i._mapChildren(function(e){e.getState("removed")||!1===e.getState("visible")||(S++,e.addToEnv("updatedIndex",E++))}),i.addToEnv("numOfColumns",S),i.addToEnv("numColDiff",(0,o.pluckNumber)(g-S,0)),e=(1-.01*p)*y||s(y*(1-2*m),B*(S||1)),h.plotspacepercent===r&&e>=l.canvasWidth/2&&(e=y-B/2),A=s((t=0===S?e:e/S)-1,S>1?w||C!==r?C>0?t*C/100:0:4:0),i.addToEnv("oldPlotWidth",i.getFromEnv("plotWidth")),i.addToEnv("plotWidth",t-A),i.addToEnv("oldPlotPadding",i.getFromEnv("plotPadding")),i.addToEnv("plotPadding",A),n=-(S/2*t-t/2),i.addToEnv("oldGroupNetWidth",i.getFromEnv("groupNetWidth")),i.addToEnv("groupNetWidth",e),i._mapChildren(function(e){!e.getState("removed")&&e.getState("visible")&&(e.addToEnv("shift",n+F*t+A/2),F++)}),b-(a=e/2)-(v-a+e)<4&&(x=!1),0===f&&(x=!0),i.addToEnv("isCrisp",x)},n.childChanged=function(e){void 0===e&&(e={});var t,n,A=this,r=A.config,a=A.getLinkedParent(),i=0,o=A.getState("visible"),l={};A._mapChildren(function(e){e.getState("visible")&&i++}),A.setState("visible",!!i),o!==!!i&&(n=!0),!1!==e.dataLimitChanged&&((t=A.getDataLimits()).min===r.range.min&&t.max===r.range.max||(r.range.min=t.min,r.range.max=t.max,l.dataLimitChanged=!0,n=!0)),n?a.childChanged&&a.childChanged(l):A.asyncDraw()},n.getAxisValuePadding=function(){var e={},t=-Infinity,n=-Infinity;return this._mapChildren(function(A){A.getState("removed")||(e=A.getAxisValuePadding&&A.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),n=Math.max(n,e.right||-Infinity))}),t===-Infinity&&(t=0),n===-Infinity&&(n=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n),{left:t,right:n}},n.getDataLimits=function(e){var t,n=this,A=+Infinity,r=-Infinity,a=0,i=function(e){r=Math.max(r,e.max),A=Math.min(A,e.min)};return n._mapChildren(function(n){n.getState("removed")||(!1!==n.getState("visible")?(a++,t=n.getDataLimits(e),i(t)):e&&(t=n.getDataLimits(e),i(t)))}),a?n.setState("visible",!0):n.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:r,min:A}},n.isVisible=function(){return!this.isNotVisible},t}(i.ComponentInterface);t["default"]=h},(e,t,n)=>{"use strict";t.__esModule=!0,t.configurer=function(){var e,t=this.getFromEnv("dataSource").chart;(e=this.config).scrollToEnd=(0,a.pluckNumber)(t.scrolltoend,0),e.lastScrollPosition=A},t.resetViewPortConfig=function(){this.config.viewPortConfig={scaleX:1,scaleY:1,x:0,y:0}},t.scrollTo=function(e){var t=this.apiInstance;t.addJob("scrollToAPoint",function(){if(e>=0&&e<=1){var n=t.getChildren&&t.getChildren(),A=n.xAxis[0],r=n.scrollBar&&n.scrollBar[0],a=r&&r.getChildren("scrollAnchor")[0],i=A.getLimit&&A.getLimit(),o=A.getVisibleConfig&&A.getVisibleConfig(),l=o.maxValue-o.minValue,s=i.max-i.min,c=e*(s-l)+i.min,u=c+l,h=(o.minValue-i.min)/(s-l);a.scrollTo(e),a.config.scrollPosition=e,t.fireChartInstanceEvent("scrollStart",{scrollPosition:h}),A.setVisibleConfig(c,u),t.fireChartInstanceEvent("scrollEnd",{previousScrollPosition:h,scrollPosition:e})}},r.priorityList.postRender)},t.setAxisScale=function(e){void 0===e&&(e=l);var t,n,A,r,s,c=this,u=c.config,h=c.getChildren("xAxis")[0],d=h.getTicksLen(),g="bar2d"===e,p=g?o:e,f=c.getFromEnv("dataSource").chart,m=g?u.height:u.width,v=0,b=u.scrollToEnd,B=(0,a.pluckNumber)(f.numvisibleplot,i(m/u.avgScrollPointWidth));u.isstacked?c.iterateComponents(function(e){"cartesianStackGroup"===e.getName()&&!e.getState("removed")&&v++}):c.iterateComponents(function(e){e.getType&&"dataset"===e.getType()&&e.getName&&e.getName().toLowerCase()===p&&!e.getState("removed")&&v++});A=d*(v=v||1);var y=h.getVisibleConfig();n=y.maxValue,t=y.minValue,B>=2&&B<A?(r=B/v,c.setScrollType("always"),b?t=n-r:n=t+r,0===t&&(n-=1),h.setVisibleConfig(t,n)):(s=h.getLimit(),h.setVisibleConfig(s.min,s.max),c.setScrollType("none"))};var A,r=n(293),a=n(281),i=Math.floor,o="bar2D",l="column"},,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(652)),i=A(n(624)),o=A(n(715)),l=function(e){function t(){var t;return(t=e.call(this)||this).eiMethods={},t}(0,r["default"])(t,e),t.getName=function(){return"MSColumn2D"};var n=t.prototype;return n.getName=function(){return"MSColumn2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Multi-series Column Chart",this.config.defaultDatasetType="column",this.config.enablemousetracking=!0},n.getDSdef=function(){return i["default"]},n.getDSGroupdef=function(){return o["default"]},t}(a["default"]);t["default"]=l},,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(297),o=n(281),l=n(289),s=A(n(725)),c=o.preDefStr.visibleStr,u=Math,h=u.min,d=u.max,g=.6;(0,l.addDep)({name:"cartesianStackAnimation",type:"animationRule",extension:s["default"]});var p=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"group"},t.getName=function(){return"cartesianStackGroup"},n.getName=function(){return"cartesianStackGroup"},n.preConfigure=function(t){if(!t)return!1;this.config.JSONData=t,e.prototype.preConfigure.call(this,t)},n.configure=function(t){if(!t)return!1;e.prototype.configure.call(this,t)},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var n=this,A=n.config,r=n.getFromEnv("chartConfig"),a=n.getFromEnv("chart-attrib");A.showTextOutline=(0,o.pluckNumber)(a.textoutline,0),A.showSum=(0,o.pluckNumber)(a.showsum,r.showSum,0),A.sumInside=0},n.setSkippingInfo=function(e){this.addToEnv("skipInfo",e||{drawOnlyMap:[],plotsPerBin:1,draw:[],hide:[],skippingApplied:!1,dragHashMap:[],prevDrawArray:[]})},n.getSkippingInfo=function(){return this.getFromEnv("skipInfo")||{drawOnlyMap:[],plotsPerBin:1,draw:[],hide:[],skippingApplied:!1,dragHashMap:[],prevDrawArray:[]}},n.setVisibility=function(){var e=0;this._mapChildren(function(t){t.getState("visible")&&e++}),this.setState("visible",!!e)},n.createContainer=function(){var e,t,n=this,A=n.getFromEnv("animationManager"),r=n.getLinkedParent(),a=r.getChildContainer();for(e in a)t=a[e],!n.getChildContainer(e)&&n.addChildContainer(e,A.setAnimation({el:"group",attr:{name:"manager-"+e},container:t,component:n}));!n.getContainer("sumLabelsLayer")&&n.addContainer("sumLabelsLayer",A.setAnimation({el:"group",attr:{name:"manager-sumLabelsLayer","class":"fusioncharts-datalabels"},label:"group",container:r.getChildContainer("sumLabelsLayer"),component:n})),!n.getChildContainer("commonElemGroupLine")&&n.addChildContainer("commonElemGroupLine",A.setAnimation({el:"group",attr:{name:"manager-common-elem-group"},label:"group",container:r.getChildContainer("lineVcanvasGroup"),component:n})),!n.getChildContainer("commonElemGroup")&&n.addChildContainer("commonElemGroup",A.setAnimation({el:"group",attr:{name:"manager-common-elem-group"},label:"group",container:r.getChildContainer("areaVcanvasGroup"),component:n})),!n.getChildContainer("anchorGroup")&&n.addChildContainer("anchorGroup",A.setAnimation({el:"group",attr:{name:"manager-anchor-group"},label:"group",container:n.getFromEnv("useLinePlotGroupForAnchorPlacement")?r.getChildContainer("lineVcanvasGroup"):r.getChildContainer("areaVcanvasGroup"),component:n}))},n.draw=function(){this.createContainer(),this.getFirstDataSet(),this.drawSumValue()},n._setStackPosition=function(){var e,t=this,n=+Infinity,A=-Infinity,a=t.getFromEnv("numOfColumns"),i=0,l=[],s=[],c=t.getSkippingInfo&&t.getSkippingInfo()||{},u=c.draw||[],g=u.length,p=c.skippingApplied,f=0;t._mapChildren(function(t){if(!t.getState("removed")&&!1!==t.getState("visible")){t.addToEnv("stackIndex",f++),i++;var a,o,c,m,v=t.getData(),b=0,B=v&&v.length,y=0;for(p&&(B=g),c=0;c<B;c++)(a=v[o=u[c]||c])&&a.config&&a.config.setValue!==r&&(l[o]||(l[o]={}),m=a.config.setValue,e=a.config.setLink,l[o].positive||(l[o].positive=0),l[o].negative||(l[o].negative=0),m>=0?(b=m+(y=l[o].positive),l[o].positive=b):m<0&&(b=m+(y=l[o].negative),l[o].negative=b),null!==m&&(l[o].isNotNull=!0),s[o]=e,A=d(b,A),n=h(b,n),a.config._y=b,a.config._b=y)}}),t.config.setLink=s,t.config.stackValues=l,t.config.dataMin=n,t.config.dataMax=A,i?t.setState("visible",!0):t.setState("visible",!1),t.addToEnv("stackValues",l),t.addToEnv("numOfColumns",i),t.addToEnv("numColDiff",(0,o.pluckNumber)(a-i,0))},n.allocatePosition=function(){this._setStackPosition()},n._getXpos=function(e){var t=this.getFromEnv("shift")||0;return this.getFromEnv("xAxis").getPixel(e)+t},n.drawSumValue=function(e,t){void 0===e&&(e=0);var n,A,r,a,i,l,s,u,h,d,g,p,f,m,v,b,B=this,y=B.config,C=B.getFromEnv("yAxis"),x=B.getFromEnv("paper"),w=B.getFromEnv("animationManager"),F=B.getFromEnv("chart"),S=F.isBar,E=B.getFromEnv("smartLabel"),Q=F.config,k=Q.canvasRight,L=(0,o.pluckNumber)(Q.stack100percent),U=Q.rotatevalues?270:0,I=y.stackValues,T=y.setLink,N=t||I&&I.length,D=Q.dataLabelStyle,P=B.getContainer("sumLabelsLayer"),M=B.getGraphicalElement("sumLabels");if(B.config.showSum){if(P.css(D),E.setStyle(D),(m=M&&M.length)>(v=I.length))for(;m>=v;)b=M[m],m--,b&&(b.hide(),B.removeGraphicalElement(b));for(n=e;n<N;n++)s=Array.isArray(M)&&M[n],I[n]&&I[n].isNotNull?(g=(f=(h=I[n].positive)+(d=I[n].negative))<0?d:h,(p=C.dataLabels(f))&&(a=D.backgroundColor,i=D.borderColor,l=E.getOriSize(p),S?(r=B._getXpos(n),A=C.getPixel(L?100:g),L?A+=l.width/2:A-=A+l.width>k?A+l.width-k:0):(A=B._getXpos(n),r=C.getPixel(L?100:g)),(u=B.getSumValuePosition(l,{stack100percent:L,rotateValues:U,xPos:A,yPos:r,offsetY:g,index:n})).text=p,u.cursor=T[n]&&1===B.config.sumInside?o.POINTER:"",u.fill=D.color,u["text-bound"]=[a,i,D.borderThickness,D.borderPadding,D.borderRadius,D.borderDash],u["line-height"]=D.lineHeight,u.visibility=c,u.transform=x.getSuggestiveRotation(U,u.x,u.y),u["text-anchor"]&&delete u["text-bound"],P&&P.show(),(s=w.setAnimation({el:s||"text",attr:u,label:"text",container:P,component:B})).show(),s.outlineText(y.showTextOutline,u.fill),Array.isArray(M)&&M[n]||B.addGraphicalElement("sumLabels",s,!0))):s&&s.hide()}else P.hide()},n.getSumValuePosition=function(e,t){var n,A,r,a,i,o,l,s=this,c=s.getFromEnv("chart"),u=c.config,h=s.getFromEnv("xAxis"),d=c.getChildren("scrollBar")&&c.getChildren("scrollBar")[0],g=u.canvasBottom,p=u.canvasTop,f=c.config.is3D,m=c.isBar,v=t.stack100percent,b=u.yDepth,B=u.xDepth,y=t.yPos,C=t.xPos,x=s.getFromEnv("canvasConfig").canvasBorderWidth,w=t.offsetY;if(t.rotateValues?(o=e.width,l=e.height):(o=e.height,l=e.width),a=(a=n=o)/2+2,i=(i=A=l)/2+2,v)if(p<=n)y=a;else{var F=h.getAxisConfig("isOpposit"),S=f?0:F?h.getAxisConfig("axisLineThickness"):0,E=d&&d.config.isOpposite,Q=c.isScrollEnabled()&&E?c.config.shift:0;y=m?t.yPos:p-a-x-Q-S,C+=m?x+S+Q:0}else w>=0&&(m?((r=u.canvasLeft+u.canvasWidth-C)<A?(C=C-i+r,s.config.sumInside=1):C+=i,f&&(y+=b/2)):(r=y-p)<n?(s.config.sumInside=1,y=y+a-r):(y-=m?0:a,C+=m?2:0,s.getFromEnv("useImprovedLabelPlacement")&&(y=s._adjustSumValuePosition(t.index,!0,y,a))-a<p&&(y=p+a))),w<0&&(m?C=(r=C-u.canvasLeft)<A?C+i+2-r:C-i-2:(r=g-y)<n?y-=a:(y+=a,s.getFromEnv("useImprovedLabelPlacement")&&(y=s._adjustSumValuePosition(t.index,!1,y,a))+a>g&&(y=g-a)),f&&(C-=B,y+=b));return{x:C,y:y}},n.childChanged=function(e){void 0===e&&(e={});var t,n,A=this,r=A.config,a=A.getLinkedParent(),i=A.getState("visible"),o=0,l={};A._mapChildren(function(e){e.getState("visible")&&o++}),A.setState("visible",!!o),i!==!!o&&(n=!0),!1!==e.dataLimitChanged&&((t=A.getDataLimits()).min===r.range.min&&t.max===r.range.max||(r.range.min=t.min,r.range.max=t.max,l.dataLimitChanged=!0,n=!0)),n?a.childChanged&&a.childChanged(l):A.asyncDraw()},n.getAxisValuePadding=function(){var e={},t=-Infinity,n=-Infinity;return this._mapChildren(function(A){A.getState("removed")||(e=A.getAxisValuePadding&&A.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),n=Math.max(n,e.right||-Infinity))}),t===-Infinity&&(t=0),n===-Infinity&&(n=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n),{left:t,right:n}},n.getDataLimits=function(e){return this._setStackPosition(),this.config.range||(this.config.range||(this.config.range={}),this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),e?this._getStackLimit():{max:this.config.dataMax,min:this.config.dataMin}},n._getStackLimit=function(){var e=this,t=+Infinity,n=-Infinity,A=[],a=e.getSkippingInfo&&e.getSkippingInfo()||{},i=a.draw||[],o=i.length,l=a.skippingApplied;return e._mapChildren(function(e){if(!e.getState("removed")){var a,s,c,u,g=e.getData(),p=0,f=g&&g.length;for(l&&(f=o),c=0;c<f;c++)(a=g[s=i[c]||c])&&a.config&&a.config.setValue!==r&&null!==a.config.setValue&&(A[s]||(A[s]={}),u=a.config.setValue,A[s].positive||(A[s].positive=0),A[s].negative||(A[s].negative=0),u>0?(p=u+A[s].positive,A[s].positive=p):u<0&&(p=u+A[s].negative,A[s].negative=p),n=d(p,n),t=h(p,t))}}),{max:n,min:t}},n.isVisible=function(){return!this.isNotVisible},n.getMaxSumValueSpace=function(){var e,t,n,A,r,a=this,i=a.config.stackValues,o=a.getFromEnv("chart"),l={},s=i&&i.length,c=a.getFromEnv("number-formatter"),u=0,h=0,g=a.getFromEnv("smartLabel"),p=o.config.dataLabelStyle;for(g.useEllipsesOnOverflow(o.config.useEllipsesWhenOverflow),g.setStyle(p),e=0;e<s;e++)i[e]&&(r=i[e].positive+i[e].negative,t=c.dataLabels(r),n=(l=g.getOriSize(t)).width,A=l.height,h=d(h,n),u=d(u,A));return{maxWidth:h,maxHeight:u}},n.getCanvasPadding=function(){var e,t,n,A,r,a=this,i=a.getSkippingInfo(),o=i.skippingApplied,l=i.draw,s=a.config.stackValues,c=s[o?l[0]:0],u=s[o?l[l.length-1]:s.length-1],h=a.getFromEnv("xAxis"),g=a.getFromEnv("yAxis"),p=a.getFromEnv("chartConfig"),f=a.getFromEnv("smartLabel"),m=h.getValuePadding(),v=0,b=h.getPixel(0),B=p.rotatevalues,y={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return a._setStackPosition(),a._mapChildren(function(n){for(t in e=n.getCanvasPadding&&n.getCanvasPadding()||{})e.hasOwnProperty(t)&&(y[t]=Math.max(e[t],y[t]))}),a.config.showSum&&(c&&(n=g.dataLabels(c.positive+c.negative),f.useEllipsesOnOverflow(p.useEllipsesWhenOverflow),f.setStyle(p.dataLabelStyle),A=f.getOriSize(n),r=B?A.height:A.width,c.isNotNull&&(v=(r||0)/2-(h.getPixel(m.left)-b))<0&&(v=0),y.paddingLeft=d(y.paddingLeft,v)),v=0,u&&(n=g.dataLabels(u.positive+u.negative),f.setStyle(p.dataLabelStyle),A=f.getOriSize(n),r=B?A.height:A.width,u.isNotNull&&(v=(r||0)/2-(h.getPixel(m.right)-b))<0&&(v=0),y.paddingRight=d(y.paddingRight,v))),y},n.getFirstDataSet=function(){var e=this,t=e.getChildren("dataset");if(t)for(var n=0;n<t.length;n++){var A=t[n];if(A.getState("visible")&&!A.getState("removed")){e.config.firstDataSetIndex=n;break}e.config.firstDataSetIndex=null}},n._adjustSumValuePosition=function(e,t,n,A){var r,a,i=[],o=n,l=this.getChildren();for(r in l)l.hasOwnProperty(r)&&(a=l[r],i=i.concat(a.filter(function(e){return"dataset"===e.getType()})));return i.forEach(function(n){var r,a,i=n.components.data[e],l=i&&i.config,s=l&&l._state,u=l&&l.props&&l.props.label&&l.props.label.attr;!n.getState("removed")&&n.getState(c)&&u&&s&&(r={y:u.y,height:s.labelHeight},a={y:o,height:A},(r.y<=a.y&&a.y<=r.y+r.height||r.y<=a.y+a.height&&a.y+a.height<=r.y+r.height)&&(o=t?u.y-s.labelHeight*g-A*g:u.y+s.labelHeight*g+A*g))}),o},t}(i.ComponentInterface);t["default"]=p},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;var n=function(){return[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"plot"}]},A=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]};t["default"]={"initial.group.cartesianStackGroup":function(){return{"group.appearing":n,"text.appearing":A,"*":null}},"legendInteraction.group.cartesianStackGroup":{"text.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:0}}]},"initial.group.marimekkoStackgroup":function(){return{"text.appearing":A,"*":null}}}},,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=t._checkInvalidSpecificData=void 0;var r=A(n(295)),a=A(n(652)),i=A(n(624)),o=A(n(724)),l=A(n(729)),s=t._checkInvalidSpecificData=function(){var e,t=this.getFromEnv("dataSource"),n=t.dataset,A=t.categories;if(!n||!A)return!0;if(e=n.length)for(;e--;)if(!n[e].dataset)return!0},c=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",l["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MSStackedColumn2D"};var n=t.prototype;return n._checkInvalidSpecificData=function(){return s.call(this)},n.getName=function(){return"MSStackedColumn2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Stacked Column Chart",t.defaultDatasetType="column",t.isstacked=!0,t.showSum=0,t.enablemousetracking=!0},n.getDSdef=function(){return i["default"]},n.getDSGroupdef=function(){return o["default"]},t}(a["default"]);t["default"]=c},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A,i,o,l,s=e.getFromEnv("dataSource").dataset,c=s&&s.length,u=0,h=e.getChildren("canvas")[0].getChildren("vCanvas")[0],d=[];if(!s)return void e.setChartMessage();for((0,r.componentFactory)(h,a["default"],"multiSeriesGroup_column"),l=h.getChildren("multiSeriesGroup_column")[0],t=0;t<c;t++)d.push(s[t].dataset);for((0,r.componentFactory)(l,e.getDSGroupdef(),"stackedGroup_column",c,d),o=l.getChildren("stackedGroup_column"),t=0;t<o.length;t++)if(!0!==o[t].getState("removed")){if(!(A=s[t].dataset))return void e.setChartMessage();n=A&&A.length,i=Array(n).fill(u).map(function(e,t){return e+t}),(0,r.datasetFactory)(o[t],e.getDSdef(),"dataset_column",n,A,i),u+=n}e.config._lastDatasetIndex=i[i.length-1]};var r=n(281),a=A(n(715))},,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(281),o=A(n(694)),l=n(728),s=A(n(642)),c=A(n(624)),u=A(n(724)),h=A(n(733)),d=i.preDefStr.SEVENTYSTRING,g=function(e){function t(){var t;return(t=e.call(this)||this).stack100percent=0,t.hasLineSet=!0,t.lineset=!0,t.registerFactory("dataset",h["default"],["vCanvas"]),t}(0,a["default"])(t,e),t.getName=function(){return"MSStackedColumn2DLineDy"};var n=t.prototype;return n.getName=function(){return"MSStackedColumn2DLineDy"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.sDefaultDatasetType="line",t.friendlyName="Multi-series Dual Y-Axis Stacked Column and Line Chart",t.defaultDatasetType="column",t.isdual=!0,t.haslineset=!0,t.isstacked=!0,t.enablemousetracking=!0,t.anchorborderthickness=1,t.anchorimageurl=r,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=r,t.anchorbgalpha=i.HUNDREDSTRING,t.anchorimagealpha=i.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=r,t.anchorbordercolor=r,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=d,t.linedashlen=5,t.linedashgap=4,t.linedashed=r,t.linealpha=i.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.showSum=0},n._checkInvalidSpecificData=function(){return l._checkInvalidSpecificData.call(this)},n.getDSdef=function(e){return"line"===e?s["default"]:c["default"]},n.getDSGroupdef=function(){return u["default"]},t}(o["default"]);t["default"]=g},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A=e.getFromEnv("dataSource"),o=A.dataset,l=A.lineset,s=e.getChildren("canvas")[0].getChildren("vCanvas")[1];if(!o&&0===l.length)return void e.setChartMessage();(0,r["default"])(e),t=e.config._lastDatasetIndex+1,l&&l.length?(n=Array(l.length).fill(t).map(function(e,t){return e+t}),(0,a.datasetFactory)(s,e.getDSdef("line"),"dataset_line",l.length,l,n)):i(s)};var r=A(n(729)),a=n(281),i=function(e){var t,n=e.getChildren("dataset_line");for(t=n&&n.length-1;t>-1;t--)n[t].remove()}},,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=A(n(721)),o=A(n(746)),l=A(n(748)),s=A(n(655)),c=n(281),u=function(e,t,n){var A,a,i,o,l,s,c,u,h,d,g=n&&n.length,p=e,f=t;if(!g)return r;for(A=g-1;A>=0;A--)if(c=(i=n[A]).x1,u=i.y1,h=i.x2,d=i.y2,i.isTrendZone){if(p>=c&&p<=h&&f>=u&&f<=d)return i}else if(u!==d&&c!==h?(o=a=(u-d)/(c-h),l=u-a*c,s=Math.abs(o*p+-1*f+l)/Math.sqrt(Math.pow(o,2)+Math.pow(-1,2))):c===h?s=Math.abs(c-p):u===d&&(s=Math.abs(u-f)),s<=i.tolerance)return i},h=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",l["default"],["canvas"]),t.registerFactory("legend",s["default"]),t.registerFactory("quadrant",function(e){var t,n=e.getChildren("canvas")[0],A=e.getChildren(),r=function(){return t.asyncDraw()};(0,c.componentFactory)(n,o["default"],"quadrant"),(t=n.getChildren("quadrant")[0]).addExtEventListener("visiblerangeset",r,A.xAxis[0]),t.addExtEventListener("visiblerangeset",r,A.yAxis[0]),t.configure()},["dataset"]),t}(0,a["default"])(t,e),t.getName=function(){return"ScatterBase"};var n=t.prototype;return n.mouseoutHandler=function(e,t,n){var A=this,r=A.config.datasetOrder||A.getDatasets(),a=A.getChildren("mouseTracker")[0];r[t]&&r[t].components.data[n]?r[t]._firePlotEvent("fc-mouseout",n,e):A.getFromEnv("toolTipController").hideAll(),delete a._lastDatasetIndex,delete a._lastPointIndex},n.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},n.__setDefaultConfig=function(){var t=this.config;e.prototype.__setDefaultConfig&&e.prototype.__setDefaultConfig.call(this),t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=r,t.plothovereffect=r,t.anchorhovereffect=r,t.plotborderdashed=r,t.stack100percent=r,t.showpercentvalues=r,t.showpercentintooltip=r,t.plotbordercolor=r,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha="70",t.showvalues=1,t.valueposition="auto",t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=r,t.plotfillratio=r,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.setadaptivexmin=1},n._drawTrendTooltip=function(e,t){var n=this,A=n.getFromEnv("toolTipController"),r=n.config.currentTrendToolTip,a=e.tooltext,i=t.originalEvent;r?A.draw(i,a,r):r=n.config.currentTrendToolTip=A.draw(i,a)},n._mouseEvtHandler=function(e,t){var n,A,r,a,i,o,l,s,h,d,g=this,p=t.mouseTracker,f=g.getChildren("canvas")[0],m=g.getFromEnv("toolTipController"),v=e.originalEvent,b=g.config,B=b.canvasBaseDepth||0,y=b.canvasLeft-(b.toleranceLeft||0),C=b.canvasRight+(b.toleranceRight||0),x=b.canvasBottom+(b.toleranceBottom||0),w=b.canvasTop-(b.toleranceTop||0),F=b.datasetOrder||g.getDatasets(),S=!1,E=F.length,Q=p._lastDatasetIndex,k=p._lastPointIndex;if(a=(r=(0,c.getMouseCoordinate)(g.getFromEnv("chart-container"),v,g)).chartX,i=r.chartY,a>y-B&&a<C&&i>w&&i<x+B){for(;E--&&!S;)(o=F[E])&&o.getState("visible")&&((l=o._getHoveredPlot&&o._getHoveredPlot(a,i))&&l.hovered||n)&&(S=!0,l.datasetIndex=E,d=p.getMouseEvents(e,l.datasetIndex,l.pointIndex));n=u(a,i,f.config.vtrendlines),A=u(a,i,f.config.trendlines)}if((!S||d&&d.fireOut)&&void 0!==Q&&F[Q]&&F[Q]._firePlotEvent&&(d&&!d.events.length?p.mouseoutTimer=setTimeout(function(){g.mouseoutHandler(e,Q,k)},20):(g.mouseoutHandler(e,Q,k),clearTimeout(p.mouseoutTimer))),S)for(g.config.currentTrendToolTip&&m.hide(g.config.currentTrendToolTip),(h=d.events&&d.events.length)&&(p._lastDatasetIndex=l.datasetIndex,k=p._lastPointIndex=l.pointIndex),s=0;s<h;s+=1)o&&o._firePlotEvent&&o._firePlotEvent(d.events[s],k,e,l.datasetIndex);else n&&n.tooltext?g._drawTrendTooltip(n,e):A&&A.tooltext?g._drawTrendTooltip(A,e):g.config.currentTrendToolTip&&m.hide(g.config.currentTrendToolTip)},n._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),n=String((0,c.pluck)(e.chart.xaxislabelmode,"categories")).toLowerCase(),A=e.categories,r=A&&A[0]&&A[0].category;t[0].setAxisConfig({xAxisLabelMode:"categories"}),"auto"!==n&&"mixed"!==n&&r&&r.length>0?t[0].setTickValues(r):"auto"!==n?(t[0].setTickValues(r),t[0].setAxisConfig({xAxisLabelMode:"mixed"})):(t[0].setTickValues(r),t[0].setAxisConfig({xAxisLabelMode:"auto"}))},n._allocateSpace=function(e){var t=this.getChildren("canvas"),n=t&&t[0].config,A=this.config,r=A.canvasHeight,a=A.canvasWidth,i=A.availableHeight,o=A.availableWidth;A.canvasLeft+=e.left||0,A.canvasTop+=e.top||0,a=A.canvasWidth=Math.max(a-((e.left||0)+(e.right||0)),0),r=A.canvasHeight=Math.max(r-((e.top||0)+(e.bottom||0)),0),A.availableHeight=Math.max(i-((e.top||0)+(e.bottom||0)),0),A.availableWidth=Math.max(o-((e.left||0)+(e.right||0)),0),A.canvasRight=A.canvasLeft+a,A.canvasBottom=A.canvasTop+r,n&&(n.canvasPaddingLeft=Math.max(n.canvasPaddingLeft,e.paddingLeft||0),n.canvasPaddingRight=Math.max(n.canvasPaddingRight,e.paddingRight||0),n.canvasPaddingTop=Math.max(n.canvasPaddingTop,e.paddingTop||0),n.canvasPaddingBottom=Math.max(n.canvasPaddingBottom,e.paddingBottom||0)),t[0].setDimension({top:A.canvasTop,left:A.canvasLeft,width:A.canvasWidth,height:A.canvasHeight})},n._postSpaceManagement=function(){var e,t=this,n=t.config,A=t.getChildren(),r=A.xAxis&&A.xAxis[0],a=A.legend&&A.legend[0],i=n.xDepth,o=t.getChildren("canvas");for(t.setAxisDimention(),r&&t._allocateXAxisLabelSpace(r),r&&r.shiftLabels(-i,0),a&&a.postSpaceManager(),e=0;e<(o&&o.length);e++)o[e].setCanvasPadding();t.setAxisDimention(),t.allocateDimensionOfChartMenuBar()},n._checkInvalidSpecificData=function(){if(!this.getFromEnv("dataSource").dataset)return!0},t}(i["default"]);t["default"]=h},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=n(281),o=n(289),l=A(n(747)),s="",c="px",u="none",h="normal",d=i.preDefStr.POSITION_START,g=i.preDefStr.POSITION_TOP,p=i.preDefStr.POSITION_BOTTOM,f=i.preDefStr.POSITION_END;(0,o.addDep)({name:"quadrantAnimation",type:"animationRule",extension:l["default"]});var m=function(e){function t(){var t,n=t=e.call(this)||this;return n.pIndex=1,n.components={},n.conf={},n.graphics={},t}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"canvas"},n.getName=function(){return"quadrant"},n.configure=function(){var e,t,n,A,r,a,o,l,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k=this.conf,L=this.getFromEnv("chart"),U=L.config,I=L.getFromEnv("dataSource").chart,T=L.getChildren("canvas")[0].config,N=U.dataLabelStyle,D=L.getFromEnv("smartLabel");(k.enabled=(0,i.pluckNumber)(I.drawquadrant,0))&&(y=(0,i.pluckNumber)(I.quadrantxval),C=(0,i.pluckNumber)(I.quadrantyval),x=(0,i.convertColor)((0,i.pluck)(I.quadrantlinecolor,T.canvasBorderColor),(0,i.pluck)(I.quadrantlinealpha,I.quadrantlinealpha,i.HUNDREDSTRING)),w=(0,i.pluckNumber)(I.quadrantlinethickness,T.canvasBorderThickness),S=(0,i.pluckNumber)(I.quadrantlinedashed,I.quadrantlineisdashed,0),F=(0,i.pluckNumber)(I.quadrantlinedashlen,4),E=(0,i.pluckNumber)(I.quadrantlinedashgap,2),Q=S?(0,i.getDashStyle)(F,E):u,k.xVal=y,k.yVal=C,k.quadrantLineColor=x,k.quadrantLineThickness=w,k.dashStyle=Q,m=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabeltl,s)),v=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabeltr,s)),b=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabelbl,s)),B=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabelbr,s)),k.quadrantLabelPadding=(0,i.pluckNumber)(I.quadrantlabelpadding,3),D.useEllipsesOnOverflow(U.useEllipsesWhenOverflow),D.setStyle(N),m!==s?(a=(0,i.getFirstValue)(I.quadrantlabeltlbordercolor,I.quadrantlabelbordercolor,s),o=(0,i.pluck)(I.quadrantlabeltlbgcolor,I.quadrantlabelbgcolor),l=(0,i.pluckNumber)(I.quadrantlabeltlborderthickness,I.quadrantlabelborderthickness,1),a=a?(0,i.convertColor)(a,(0,i.pluckNumber)(I.quadrantlabeltlborderalpha,I.quadrantlabelborderalpha,I.quadrantlabeltlalpha,I.quadrantlabelalpha,100)):s,(d=k.tlConfig)||(d=k.tlConfig={enabled:!0,styleObj:{}}),d.label=m,d.styleObj.fontSize=(0,i.pluck)((0,i.pluckNumber)(I.quadrantlabeltlfontsize,I.quadrantlabelfontsize),parseInt(N.fontSize,10))+c,d.styleObj.fontSizeWithUnit=(0,i.pluckFontSizeMaintainUnit)((0,i.pluckNumber)(I.quadrantlabeltlfontsize,I.quadrantlabelfontsize),N.fontSizeWithUnit),d.styleObj.lineHeight=N.lineHeight,d.styleObj.fontFamily=(0,i.pluck)(I.quadrantlabeltlfont,I.quadrantlabelfont,N.fontFamily),d.styleObj.color=(0,i.convertColor)((0,i.pluck)(I.quadrantlabeltlfontcolor,I.quadrantlabelfontcolor,N.color),(0,i.pluckNumber)(I.quadrantlabeltlfontalpha,I.quadrantlabelfontalpha,100)),d.styleObj.fontWeight=(0,i.pluckNumber)(I.quadrantlabeltlfontbold,I.quadrantlabelfontbold)?"bold":h,d.styleObj.fontStyle=(0,i.pluckNumber)(I.quadrantlabeltlfontitalic,I.quadrantlabelfontitalic)?"italic":h,(0,i.setLineHeight)(d.styleObj),e=a,t=(0,i.pluckNumber)(I.quadrantlabeltlborderpadding,I.quadrantlabelborderpadding,2),n=(0,i.pluckNumber)(I.quadrantlabeltlborderradius,I.quadrantlabelborderradius,0),A=o?(0,i.convertColor)(o,(0,i.pluckNumber)(I.quadrantlabeltlbgalpha,I.quadrantlabelbgalpha,I.quadrantlabeltlalpha,I.quadrantlabelalpha,100)):s,r=(0,i.pluckNumber)(I.quadrantlabeltlborderdashed,I.quadrantlabelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(I.quadrantlabeltlborderdashlen,I.quadrantlabelborderdashlen,4),(0,i.pluckNumber)(I.quadrantlabeltlborderdashgap,I.quadrantlabelborderdashgap,2)):u,d["text-bound"]=[A,e,l,t,n,r]):k.tlConfig&&(k.tlConfig.label=m),v!==s?(a=(0,i.getFirstValue)(I.quadrantlabeltrbordercolor,I.quadrantlabelbordercolor,s),o=(0,i.pluck)(I.quadrantlabeltrbgcolor,I.quadrantlabelbgcolor),l=(0,i.pluckNumber)(I.quadrantlabeltrborderthickness,I.quadrantlabelborderthickness,1),a=a?(0,i.convertColor)(a,(0,i.pluckNumber)(I.quadrantlabeltrborderalpha,I.quadrantlabelborderalpha,I.quadrantlabeltralpha,I.quadrantlabelalpha,100)):s,(g=k.trConfig)||(g=k.trConfig={enabled:!0,styleObj:{}}),g.label=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabeltr,s)),g.styleObj.fontSize=(0,i.pluck)((0,i.pluckNumber)(I.quadrantlabeltrfontsize,I.quadrantlabelfontsize),parseInt(N.fontSize,10))+c,g.styleObj.fontSizeWithUnit=(0,i.pluckFontSizeMaintainUnit)((0,i.pluckNumber)(I.quadrantlabeltrfontsize,I.quadrantlabelfontsize),N.fontSizeWithUnit),g.styleObj.lineHeight=N.lineHeight,g.styleObj.fontFamily=(0,i.pluck)(I.quadrantlabeltrfont,I.quadrantlabelfont,N.fontFamily),g.styleObj.color=(0,i.convertColor)((0,i.pluck)(I.quadrantlabeltrfontcolor,I.quadrantlabelfontcolor,N.color),(0,i.pluckNumber)(I.quadrantlabeltrfontalpha,I.quadrantrabelfontalpha,100)),g.styleObj.fontWeight=(0,i.pluckNumber)(I.quadrantlabeltrfontbold,I.quadrantlabelfontbold)?"bold":h,g.styleObj.fontStyle=(0,i.pluckNumber)(I.quadrantlabeltrfontitalic,I.quadrantlabelfontitalic)?"italic":h,(0,i.setLineHeight)(g.styleObj),e=a,t=(0,i.pluckNumber)(I.quadrantlabeltrborderpadding,I.quadrantlabelborderpadding,2),n=(0,i.pluckNumber)(I.quadrantlabeltrborderradius,I.quadrantlabelborderradius,0),A=o?(0,i.convertColor)(o,(0,i.pluckNumber)(I.quadrantlabeltrbgalpha,I.quadrantlabelbgalpha,I.quadrantlabeltralpha,I.quadrantlabelalpha,100)):s,r=(0,i.pluckNumber)(I.quadrantlabeltrborderdashed,I.quadrantlabelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(I.quadrantlabeltrborderdashlen,I.quadrantlabelborderdashlen,4),(0,i.pluckNumber)(I.quadrantlabeltrborderdashgap,I.quadrantlabelborderdashgap,2)):u,g["text-bound"]=[A,e,l,t,n,r]):k.trConfig&&(k.trConfig.label=v),b!==s?(a=(0,i.getFirstValue)(I.quadrantlabelblbordercolor,I.quadrantlabelbordercolor,s),o=(0,i.pluck)(I.quadrantlabelblbgcolor,I.quadrantlabelbgcolor),l=(0,i.pluckNumber)(I.quadrantlabelblborderthickness,I.quadrantlabelborderthickness,1),a=a?(0,i.convertColor)(a,(0,i.pluckNumber)(I.quadrantlabelblborderalpha,I.quadrantlabelborderalpha,I.quadrantlabelblalpha,I.quadrantlabelalpha,100)):s,(p=k.blConfig)||(p=k.blConfig={enabled:!0,styleObj:{}}),p.label=b,p.styleObj.fontSize=(0,i.pluck)((0,i.pluckNumber)(I.quadrantlabelblfontsize,I.quadrantlabelfontsize),parseInt(N.fontSize,10))+c,p.styleObj.fontSizeWithUnit=(0,i.pluckFontSizeMaintainUnit)((0,i.pluckNumber)(I.quadrantlabelblfontsize,I.quadrantlabelfontsize),N.fontSizeWithUnit),p.styleObj.lineHeight=N.lineHeight,p.styleObj.fontFamily=(0,i.pluck)(I.quadrantlabelblfont,I.quadrantlabelfont,N.fontFamily),p.styleObj.color=(0,i.convertColor)((0,i.pluck)(I.quadrantlabelblfontcolor,I.quadrantlabelfontcolor,N.color),(0,i.pluckNumber)(I.quadrantlabelblfontalpha,I.quadrantlabelfontalpha,100)),p.styleObj.fontWeight=(0,i.pluckNumber)(I.quadrantlabelblfontbold,I.quadrantlabelfontbold)?"bold":h,p.styleObj.fontStyle=(0,i.pluckNumber)(I.quadrantlabelblfontitalic,I.quadrantlabelfontitalic)?"italic":h,(0,i.setLineHeight)(p.styleObj),e=a,t=(0,i.pluckNumber)(I.quadrantlabelblborderpadding,I.quadrantlabelborderpadding,2),n=(0,i.pluckNumber)(I.quadrantlabelblborderradius,I.quadrantlabelborderradius,0),A=o?(0,i.convertColor)(o,(0,i.pluckNumber)(I.quadrantlabelblbgalpha,I.quadrantlabelbgalpha,I.quadrantlabelblalpha,I.quadrantlabelalpha,100)):s,r=(0,i.pluckNumber)(I.quadrantlabelblborderdashed,I.quadrantlabelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(I.quadrantlabelblborderdashlen,I.quadrantlabelborderdashlen,4),(0,i.pluckNumber)(I.quadrantlabelblborderdashgap,I.quadrantlabelborderdashgap,2)):u,p["text-bound"]=[A,e,l,t,n,r]):k.blConfig&&(k.blConfig.label=b),B!==s?(a=(0,i.getFirstValue)(I.quadrantlabelbrbordercolor,I.quadrantlabelbordercolor,s),o=(0,i.pluck)(I.quadrantlabelbrbgcolor,I.quadrantlabelbgcolor),l=(0,i.pluckNumber)(I.quadrantlabelbrborderthickness,I.quadrantlabelborderthickness,1),a=a?(0,i.convertColor)(a,(0,i.pluckNumber)(I.quadrantlabelbrborderalpha,I.quadrantlabelborderalpha,I.quadrantlabelbralpha,I.quadrantlabelalpha,100)):s,(f=k.brConfig)||(f=k.brConfig={enabled:!0,styleObj:{}}),f.label=(0,i.parseUnsafeString)((0,i.getValidValue)(I.quadrantlabelbr,s)),f.styleObj.fontSize=(0,i.pluck)((0,i.pluckNumber)(I.quadrantlabelbrfontsize,I.quadrantlabelfontsize),parseInt(N.fontSize,10))+c,f.styleObj.fontSizeWithUnit=(0,i.pluckFontSizeMaintainUnit)((0,i.pluckNumber)(I.quadrantlabelbrfontsize,I.quadrantlabelfontsize),N.fontSizeWithUnit),f.styleObj.lineHeight=N.lineHeight,f.styleObj.fontFamily=(0,i.pluck)(I.quadrantlabelbrfont,I.quadrantlabelfont,N.fontFamily),f.styleObj.color=(0,i.convertColor)((0,i.pluck)(I.quadrantlabelbrfontcolor,I.quadrantlabelfontcolor,N.color),(0,i.pluckNumber)(I.quadrantlabelbrfontalpha,I.quadrantrabelfontalpha,100)),f.styleObj.fontWeight=(0,i.pluckNumber)(I.quadrantlabelbrfontbold,I.quadrantlabelfontbold)?"bold":h,f.styleObj.fontStyle=(0,i.pluckNumber)(I.quadrantlabelbrfontitalic,I.quadrantlabelfontitalic)?"italic":h,(0,i.setLineHeight)(f.styleObj),A=o?(0,i.convertColor)(o,(0,i.pluckNumber)(I.quadrantlabelbrbgalpha,I.quadrantlabelbgalpha,I.quadrantlabelbralpha,I.quadrantlabelalpha,100)):s,e=a,t=(0,i.pluckNumber)(I.quadrantlabelbrborderpadding,I.quadrantlabelborderpadding,2),n=(0,i.pluckNumber)(I.quadrantlabelbrborderradius,I.quadrantlabelborderradius,0),r=(0,i.pluckNumber)(I.quadrantlabelbrborderdashed,I.quadrantlabelborderdashed,0)?(0,i.getDashStyle)((0,i.pluckNumber)(I.quadrantlabelbrborderdashlen,I.quadrantlabelborderdashlen,4),(0,i.pluckNumber)(I.quadrantlabelbrborderdashgap,I.quadrantlabelborderdashgap,2)):u,f["text-bound"]=[A,e,l,t,n,r]):k.brConfig&&(k.brConfig.label=B))},n._preDraw=function(){var e,t,n,A,r,a,o=!1,l=this,s=l.conf,c=l.getFromEnv("chart"),u=c.getChildren("xAxis")[0],h=c.getChildren("yAxis")[0],d=u.getLimit(),g=h.getLimit(),p=d.max,f=g.max,m=d.min,v=g.min,b=c.config,B=b.canvasWidth,y=b.canvasHeight,C=s.quadrantLabelPadding,x=s.tlConfig,w=s.trConfig,F=s.blConfig,S=s.brConfig;return x&&(x.styleObj.fontSize=this.computeFontSize(x.styleObj.fontSizeWithUnit),(0,i.setLineHeight)(x.styleObj)),w&&(w.styleObj.fontSize=this.computeFontSize(w.styleObj.fontSizeWithUnit),(0,i.setLineHeight)(w.styleObj)),F&&(F.styleObj.fontSize=this.computeFontSize(F.styleObj.fontSizeWithUnit),(0,i.setLineHeight)(F.styleObj)),S&&(S.styleObj.fontSize=this.computeFontSize(S.styleObj.fontSizeWithUnit),(0,i.setLineHeight)(S.styleObj)),e=s.xVal||(s.xVal=(m+p)/2),(t=s.yVal||(s.yVal=(v+f)/2))>=v&&t<=f&&e>=m&&e<=p?(A=B-(n=B/(p-m)*(e-m)),r=y-(a=y/(f-v)*(t-v)),n-=C,A-=C,a-=C,((r-=C)<0||n<0)&&(x.enabled=o),(r<0||A<0)&&(w.enabled=o),(a<0||n<0)&&(F.enabled=o),(a<0||n<0)&&(S.enabled=o),s.enabled&&(s.drawQuadrant=!0)):s.drawQuadrant=o,l},n._createGroups=function(){var e,t=this,n=t.getFromEnv("chart"),A=n.getFromEnv("animationManager"),r=n.getChildren("canvas")[0].getChildContainer("quadrantGroup"),a=t.getContainer("quadrantChildContainer"),i=t.getContainer("quadrantLineGroup"),o=t.getContainer("quadrantTLGroup"),l=t.getContainer("quadrantTRGroup"),s=t.getContainer("quadrantBLGroup"),c=t.getContainer("quadrantBRGroup");e=A.setAnimation({el:a||"group",attr:{name:"quadrant-child-container"},container:r,component:t,label:"group"}),a||t.addContainer("quadrantChildContainer",e),t.addContainer("quadrantLineGroup",A.setAnimation({el:i||"group",attr:{name:"quadrantLineGroup"},container:e,component:t,label:"group"})),t.addContainer("quadrantTLGroup",A.setAnimation({el:o||"group",attr:{name:"quadrantTLGroup"},container:e,component:t,label:"group"})),t.addContainer("quadrantTRGroup",A.setAnimation({el:l||"group",attr:{name:"quadrantTRGroup"},container:e,component:t,label:"group"})),t.addContainer("quadrantBLGroup",A.setAnimation({el:s||"group",attr:{name:"quadrantBLGroup"},container:e,component:t,label:"group"})),t.addContainer("quadrantBRGroup",A.setAnimation({el:c||"group",attr:{name:"quadrantBRGroup"},container:e,component:t,label:"group"}))},n.getUpdatedLabel=function(e,t,n,A,r,a){return e&&t?a:e?A:t?r:n},n.draw=function(){var e,t,n,A,r,a,i,o=this._preDraw(),l=o.conf,s=o.getFromEnv("chart"),c=s.config,u=c.reverseXAxis,h=c.reverseYAxis,m={wrtVisible:!0},v=o.getFromEnv("smartLabel"),b=o.getFromEnv("animationManager"),B=o.graphics,y=B.tlLabel,C=B.trLabel,x=B.blLabel,w=B.brLabel,F=c.textDirection,S=s.getChildren("xAxis")[0],E=s.getChildren("yAxis")[0],Q=l.tlConfig||{},k=l.trConfig||{},L=l.blConfig||{},U=l.brConfig||{},I=Q.enabled&&o.getUpdatedLabel(u,h,Q.label,k.label,L.label,U.label),T=k.enabled&&o.getUpdatedLabel(u,h,k.label,Q.label,U.label,L.label),N=L.enabled&&o.getUpdatedLabel(u,h,L.label,U.label,Q.label,k.label),D=U.enabled&&o.getUpdatedLabel(u,h,U.label,L.label,k.label,Q.label),P=c.canvasLeft,M=c.canvasTop,H=l.quadrantLabelPadding,O=S.getLimit(),_=E.getLimit(),R=u?O.min:O.max,V=u?O.max:O.min,G=h?_.min:_.max,K=h?_.max:_.min,z=S.getPixel(V,m)+H,W=S.getPixel(R,m)-H,j=E.getPixel(K,m)-H,X=E.getPixel(G,m)+H,Y=S.getPixel(l.xVal,m),J=E.getPixel(l.yVal,m),q=Y-z,Z=W-Y,$=J-X,ee=j-J,te=B.horizontalQuadLine,ne=B.verticalQuadLine,Ae=function(){this.hide()};o._createGroups(),t=o.getContainer("quadrantChildContainer"),n=o.getContainer("quadrantLineGroup"),A=o.getContainer("quadrantTLGroup"),r=o.getContainer("quadrantTRGroup"),a=o.getContainer("quadrantBLGroup"),i=o.getContainer("quadrantBRGroup"),l.enabled&&l.drawQuadrant?(t.show(),B.horizontalQuadLine=b.setAnimation({el:te||"path",container:n,attr:{path:"M"+P+" "+J+"h"+c.canvasWidth,stroke:l.quadrantLineColor,"stroke-dasharray":l.dashStyle,"stroke-width":l.quadrantLineThickness,"stroke-linecap":"butt"},component:o,label:"path"}),B.verticalQuadLine=b.setAnimation({el:ne||"path",container:n,attr:{path:"M"+Y+" "+M+"v"+c.canvasHeight,stroke:l.quadrantLineColor,"stroke-width":l.quadrantLineThickness,"stroke-dasharray":l.dashStyle,"stroke-linecap":"butt"},component:o,label:"path"}),I?(v.useEllipsesOnOverflow(c.useEllipsesWhenOverflow),v.setStyle(l.tlConfig.styleObj),e=v.getSmartText(I,q,$),(y=B.tlLabel=b.setAnimation({el:y||"text",attr:{"text-anchor":d,"vertical-align":g,x:z,y:X,text:e.text,direction:F,"text-bound":l.tlConfig["text-bound"]},container:A,component:o,label:"text"})).css(l.tlConfig.styleObj)):y&&b.setAnimation({el:y,callback:Ae,component:this,label:"text"}),T?(v.setStyle(l.trConfig.styleObj),e=v.getSmartText(T,Z,$),(C=B.trLabel=b.setAnimation({el:C||"text",attr:{"text-anchor":f,"vertical-align":g,direction:F,x:W,y:X,text:e.text,"text-bound":l.trConfig["text-bound"]},container:r,component:o,label:"text"})).css(l.trConfig.styleObj)):C&&b.setAnimation({el:C,callback:Ae,component:this,label:"text"}),N?(v.setStyle(l.blConfig.styleObj),e=v.getSmartText(N,q,ee),(x=B.blLabel=b.setAnimation({el:x||"text",attr:{"text-anchor":d,"vertical-align":p,direction:F,x:z,y:j,text:e.text,"text-bound":l.blConfig["text-bound"]},container:a,component:o,label:"text"})).css(l.blConfig.styleObj)):x&&b.setAnimation({el:x,callback:Ae,component:this,label:"text"}),D?(v.setStyle(l.brConfig.styleObj),e=v.getSmartText(D,Z,ee),(w=B.brLabel=b.setAnimation({el:w||"text",attr:{"text-anchor":f,"vertical-align":p,direction:F,x:W,y:j,text:e.text,"text-bound":l.brConfig["text-bound"]},container:i,component:o,label:"text"})).css(l.brConfig.styleObj)):w&&b.setAnimation({el:w,callback:Ae,component:this,label:"text"})):t&&b.setAnimation({el:t,component:o,doNotRemove:!0,callback:function(){this.hide()},label:"group"})},t}(a.ComponentInterface);t["default"]=m},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.canvas.quadrant":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]}}}}},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){var t,n,A=e.getChildren("canvas")[0],i=A.getChildren("axisRefVisualCartesian")[0],o={zoomable:!0,pannable:!0},l=e._feedAxesRawData(),s=function(e){var t=e.sender;i.addexplicitDrawItems(t.getId(),t),i.asyncDraw()};(0,r.componentFactory)(e,a["default"],"yAxis",1,l.yAxisConf),(0,r.componentFactory)(e,a["default"],"xAxis",1,l.xAxisConf),t=e.getChildren("yAxis")[0],n=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",A),n.setLinkedItem("canvas",A),i.setLinkedItem(t.getId(),t),i.setLinkedItem(n.getId(),n),i.addExtEventListener("visiblerangeset",s,n),i.addExtEventListener("visiblerangeset",s,t),A.attachAxis(n,!1,e.zoomX?o:{}),A.attachAxis(t,!0,e.zoomY?o:{}),e._setCategories()};var r=n(281),a=A(n(566))},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=A(n(642)),o=n(281),l=n(289),s=A(n(750)),c=A(n(751)),u=A(n(752)),h=Math,d=h.max,g=h.min,p=h.round;(0,l.addDep)({name:"scatterAnimation",type:"animationRule",extension:c["default"]});var f=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.setupHoverTracker=function(){var e,t,n,A,r,a,i,o=this,l=o.config.searchDataArr=[],c=o.components.data,u={},h=o.getSkippingInfo&&o.getSkippingInfo(),d=h&&h.draw||[],g=d.length,p=h&&h.skippingApplied;for(n=c.length,p&&(n=g),t=0;t<n;t++)(a=c[e=d[t]||[t]])&&(A=(i=a.config)._Px,r=i._Py,u=i.anchorProps,l.push({x:A,y:r,index:e,data:a,r:u.radius||0}));this.config.dataTree=(new s["default"]).buildKdTree(l)},n.getName=function(){return"scatter"},n.addDatasetSpecificEvtArgs=function(e){var t=e.config,n=t.anchorProps,A=t.eventArgs;Object.assign(A,{showValue:t.showValue,hoverColor:!0===t.hoverEffects.enabled?t.hoverEffects.hoverColor||n.bgColor:r,hoverAlpha:!0===t.hoverEffects.enabled?t.hoverEffects.hoverAlpha||"100":r,anchorBgColor:n.bgColor,anchorBgAlpha:n.anchorBgAlpha,anchorAlpha:n.anchorAlpha,anchorBorderColor:n.borderColor,anchorBorderThickness:n.borderThickness,anchorRadius:n.radius,anchorSides:n.sides,anchorStartAngle:n.startAngle,anchorHoverSides:t.hoverEffects.anchorSides})},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,n,A,a,i,l=this,s=l.getFromEnv("chart"),c=l.config,u=c.JSONData,h=s.areaAlpha,d=s.getFromEnv("dataSource").chart,g=l.getFromEnv("color-manager"),p=(0,o.pluckNumber)(u.showplotborder,d.showplotborder||1),f=g.getPlotColor(l.index),m=c.lineDashed=(0,o.pluckNumber)(u.linedashed,u.dashed,d.linedashed,0),v=l.isLineSet;c.plotColor=f,a=(0,o.pluckNumber)(s.defaultPlotShadow,g.getColor("showShadow")),c.toolTipSepChar=(0,o.pluck)(d.tooltipsepchar,", "),c.legendFillColor=(0,o.pluck)(d.legendfillcolor,1),c.defaultValuePadding={left:0,right:0},c.parentYAxis=n=v||"s"===(0,o.pluck)(u.parentyaxis&&u.parentyaxis.toLowerCase(),"p")?1:0,l.config.yAxis=l.getFromEnv("yAxis")[n],c.connectNullData=(0,o.pluckNumber)(d.connectnulldata,0),c.seriesname=(0,o.parseUnsafeString)(u.seriesname),c.includeinlegend=(0,o.pluckNumber)(u.includeinlegend,c.seriesname?1:0),c.showTextOutline=(0,o.pluckNumber)(d.textoutline,0),c.enableAnimation=A=(0,o.pluckNumber)(d.animation,d.defaultanimation,1),c.animation=!!A&&{duration:1e3*(0,o.pluckNumber)(d.animationduration,1)},c.transposeanimation=(0,o.pluckNumber)(d.transposeanimation,A),c.transposeanimduration=1e3*(0,o.pluckNumber)(d.transposeanimduration,.2),c.showvalues=(0,o.pluckNumber)(u.showvalues,d.showvalues),c.valuePadding=(0,o.pluckNumber)(d.valuepadding,2),c.valuePosition=(0,o.pluck)(u.valueposition,d.valueposition,"auto"),c.showTooltip=(0,o.pluckNumber)(d.showtooltip,1),c.seriesNameInTooltip=(0,o.pluckNumber)(d.seriesnameintooltip,1),c.plotFillColor=c.plotfillcolor=(0,o.pluck)(u.color,d.plotfillcolor,f),c.plotFillAngle=c.plotFillAngle=(0,o.pluck)(d.plotfillangle,270),c.plotFillAlpha=c.plotfillalpha=(0,o.pluck)(u.alpha,d.plotfillalpha,h,"100"),i=(0,o.pluckNumber)(d.useplotgradientcolor,1),c.plotGradientColor=c.plotgradientcolor=0!==i?(0,o.getDefinedColor)(d.plotgradientcolor,g.getColor("plotGradientColor")):"",c.fillColor=c.fillcolor={color:c.plotfillcolor+(c.plotgradientcolor?","+c.plotgradientcolor:o.BLANKSTRING),alpha:c.plotfillalpha,angle:c.plotFillAngle},c.plotBorderAlpha=c.plotborderalpha=p?(0,o.pluck)(u.plotborderalpha,d.plotborderalpha,u.alpha,"95"):0,c.plotBorderColor=c.plotbordercolor=(0,o.pluck)(u.plotbordercolor,d.plotbordercolor,d.areabordercolor,"666666"),c.dashed=t=(0,o.pluckNumber)(u.dashed,d.plotborderdashed),c.plotBorderDashLen=c.plotborderdashlen=(0,o.pluck)(u.plotborderdashlen,d.plotborderdashlen,5),c.plotBorderDashGap=c.plotborderdashgap=(0,o.pluck)(u.plotborderdashgap,d.plotborderdashgap,4),c.plotBorderThickness=c.plotborderthickness=(0,o.pluckNumber)(u.plotborderthickness,d.plotborderthickness,1),c.plotBorderDashStyle=c.plotborderdashstyle=t?(0,o.getDashStyle)(c.plotborderdashlen,c.plotborderdashgap):"none",c.showHoverEffect=c.showhovereffect=(0,o.pluckNumber)(d.plothovereffect,d.anchorhovereffect,d.showhovereffect,r),c.rotateValues=(0,o.pluckNumber)(d.rotatevalues)?270:0,c.drawLine=(0,o.pluckNumber)(u.drawline,d.drawlines,0),c.lineThickness=c.linethickness=(0,o.pluckNumber)(u.linethickness,d.linethickness,2),c.lineDashLen=c.linedashlen=(0,o.pluckNumber)(u.linedashlen,d.linedashlen,5),c.lineDashGap=c.linedashgap=(0,o.pluckNumber)(u.linedashgap,d.linedashgap,4),c.lineAlpha=c.linealpha=(0,o.pluckNumber)(u.linealpha,d.linealpha,u.alpha,o.HUNDREDSTRING),c.lineColor=c.linecolor=(0,o.pluck)(u.linecolor,d.linecolor,u.color,c.plotColor),c.lineDashStyle=c.linedashstyle=(0,o.getDashStyle)(c.linedashlen,c.linedashgap),c.lineDashStyle=c.linedashstyle=m?c.linedashstyle:"none",c.shadow={opacity:(0,o.pluckNumber)(d.showshadow,a)?c.linealpha/100:0},c.drawanchors=(0,o.pluckNumber)(u.drawanchors,u.showanchors,d.drawanchors,d.showanchors),c.anchorbgcolor=(0,o.getFirstColor)((0,o.pluck)(u.anchorbgcolor,d.anchorbgcolor,g.getColor("anchorBgColor"))),c.anchorbordercolor=(0,o.getFirstColor)((0,o.pluck)(u.anchorbordercolor,u.color,d.anchorbordercolor,c.linecolor)),c.anchorradius=(0,o.pluckNumber)(u.anchorradius,d.anchorradius,3),c.anchoralpha=(0,o.pluck)(u.anchoralpha,u.alpha,d.anchoralpha,o.HUNDREDSTRING),c.anchorbgalpha=(0,o.pluck)(u.anchorbgalpha,u.alpha,d.anchorbgalpha,o.HUNDREDSTRING),c.anchorborderthickness=(0,o.pluck)(u.anchorborderthickness,d.anchorborderthickness,1),c.anchorsides=(0,o.pluckNumber)(u.anchorsides,d.anchorsides,c.index+3),c.anchorimageurl=(0,o.pluck)(u.anchorimageurl,d.anchorimageurl),c.anchorimagealpha=(0,o.pluckNumber)(u.anchorimagealpha,d.anchorimagealpha,100),c.anchorimagescale=(0,o.pluckNumber)(u.anchorimagescale,d.anchorimagescale,100),c.anchorimagepadding=(0,o.pluckNumber)(u.anchorimagepadding,d.anchorimagepadding,1),c.anchorstartangle=(0,o.pluckNumber)(u.anchorstartangle,d.anchorstartangle,90),c.anchorshadow=(0,o.pluckNumber)(u.anchorshadow,d.anchorshadow,0),c.plotToolText=(0,o.getValidValue)((0,o.parseUnsafeString)((0,o.pluck)(u.plottooltext,d.plottooltext),!1)),l.setState("visible",1===(0,o.pluckNumber)(u.visible,!Number(u.initiallyhidden),1)),l._setConfigure(),!1!==s.config.hasLegend&&s.config.showLegend&&l._addLegend(),l.setState("dirty",!0)},n.calculateScrollRange=function(){var e=this,t=e.config,n=e.getFromEnv("chart"),A=e.getFromEnv("xAxis"),r=n.hasScroll,a=e.components.data.length;t.scrollMinVal=r?d(p(A.getVisibleConfig().minValue)-1,0):0,t.scrollMaxVal=r?g(p(A.getVisibleConfig().maxValue)+2,a):a,t.scrollMinValForLabel=t.scrollMinVal,t.scrollMaxValForLabel=t.scrollMaxVal},n._setConfigure=function(){var e,t,n,A,a,i,l,s,c,h,d,g,p=-Infinity,f=+Infinity,m=p,v=f,b=f,B=p,y=this,C=y.components.data||(y.components.data=[]),x=y.getFromEnv("chart"),w=y.config,F=w.JSONData,S=x.getFromEnv("dataSource").chart,E=F.data||[],Q=E.length,k=y.getFromEnv("number-formatter"),L=(0,o.parseUnsafeString)(S.yaxisname),U=(0,o.parseUnsafeString)(S.xaxisname),I=w.lineDashed,T=w.linedashstyle,N=w.parentYAxis,D=w.toolTipSepChar,P=w.seriesname;for(w.imageCount=0,e=0;e<Q;e+=1)A=E[e],(t=(n=C[e]||(C[e]={})).config||(n.config={})).setValue=a={x:k.getCleanValue(A.x),y:k.getCleanValue(A.y)},null!==a.x&&null!==a.y&&(a.x>B&&(B=a.x,w.rightMostData=n),a.x<b&&(b=a.x,w.leftMostData=n),a.y>m&&(m=a.y,w.topMostData=n),a.y<v&&(v=a.y,w.bottomMostData=n)),t._x=a.x,t._y=a.y,t.dataLabelStyle=y._configureDataLabelStyle(A),t.setLink=(0,o.pluck)(A.link),t.anchorProps=this._parseAnchorProperties(e),t.showValue=(0,o.pluckNumber)(A.showvalue,w.showvalues),t.dashed=(0,o.pluckNumber)(A.dashed,I),t.color=(0,o.pluck)(A.color,w.linecolor),t.alpha=(0,o.pluck)(A.alpha,w.linealpha),t.valuePadding=(0,o.pluckNumber)(A.valuepadding,F.valuepadding,x.config.valuepadding),t.dashStyle=t.dashed?T:"none",t.toolTipValue=l=k.dataLabels(a.y,N),t.setDisplayValue=g=(0,o.parseUnsafeString)(A.displayvalue),h=t.formatedVal=(0,o.pluck)(A.toolTipValue,k.dataLabels(a.y,N)),d=k.xAxis(a.x),t.displayValue=(0,o.pluck)(g,l),t.setTooltext=(0,o.getValidValue)((0,o.parseUnsafeString)((0,o.pluck)(A.tooltext,w.plotToolText),!1)),w.showTooltip?t.setTooltext!==r?(s=[4,5,6,7,8,9,10,11],c={yaxisName:L,xaxisName:U,yDataValue:h,xDataValue:d},i=(0,o.parseTooltext)(t.setTooltext,s,c,A,S,F)):null===h?i=!1:(i=P?P+D:o.BLANKSTRING,(0,u["default"])(a.x)?i+=o.BLANKSTRING:i+=d+D,i+=l):i=!1,t.toolText=i,n?n.graphics||(C[e].graphics={}):n=C[e]={graphics:{}},t.hoverEffects=this._parseHoverEffectOptions(n,A),t.anchorProps.isAnchorHoverRadius=t.hoverEffects.anchorRadius;w.xMax=B,w.xMin=b,w.yMin=v,w.yMax=m,y.ErrorValueConfigure&&y.ErrorValueConfigure()},n._getHoveredPlot=function(e,t){var n=this.config.dataTree.getNeighbour({x:e,y:t},!0);if(n)return{pointIndex:n.index||n.i,hovered:!0,pointObj:n.data}},n.drawPlots=function(){e.prototype.drawPlots.call(this),this.setupHoverTracker()},n.getRegressionPoints=function(){var e,t,n,A,r,a,i,o,l=this.getChildren("regression"),s=-Infinity,c=Infinity,u=-Infinity,h=Infinity;if(l&&l.length&&!l[0].getState("removed")){for(i=(e=l[0]._config.regressionPoints||[]).length,t=0;t<i;t++)for(r=e[t],n=0;n<r.length;n++)for(o=(a=r[n]||[]).length,A=0;A<o;A++)s=Math.max(s,a[A].x),c=Math.min(c,a[A].x),u=Math.max(u,a[A].y),h=Math.min(h,a[A].y);return{max:u,min:h,xMax:s,xMin:c}}},n.getDataLimits=function(){var e=this,t=e.config,n=e.getFromEnv("chart").config,A=t.yMax,r=t.yMin,a=t.xMax,i=t.xMin,o=-Infinity,l=+Infinity,s=n.transposeAxis,c=e.getRegressionPoints();return!1===e.getState("visible")&&s&&(A=o,r=l,a=o,i=l),c&&(A=Math.max(A,c.max),r=Math.min(r,c.min),a=Math.max(a,c.xMax),i=Math.min(i,c.xMin)),{max:A,min:r,xMax:a,xMin:i}},n.getAxisValuePadding=function(){return this.config.defaultValuePadding},n.getCanvasPadding=function(){var e,t,n,A,r,a,i,l,s,c,u,h,p,f,m,v,b,B=this,y=B.config||(B.config={}),C=B.components||{},x=B.getFromEnv("chartConfig"),w=x.rotatevalues,F=B.getFromEnv("xAxis"),S=B.getFromEnv("yAxis"),E=F.config.isReverse,Q=S.config.isReverse,k=B.getFromEnv("dataLabelStyle"),L=C.data||[],U=L.length,I=y.leftMostData||L[0],T=y.rightMostData||L[L.length-1],N=y.topMostData,D=y.bottomMostData,P=g(x.canvasHeight,x.canvasWidth)/8,M=F.getValue(0),H=1,O=1,_=x.zMax,R=y.bubbleScale,V={},G={},K=0,z=0,W=F.config.axisRange,j=W.min,X=W.max,Y=S.config.axisRange,J=Y.min,q=Y.max,Z=F.getPixel(j),$=F.getPixel(X),ee=B.getFromEnv("smartLabel"),te={paddingLeft:0,paddingRight:0},ne=0;for(e=P/Math.sqrt(_),s=0;s<U;s++)t=L[s].config,n=I.config,A=T.config,i=Math.sqrt(t.z),f=Math.round(i*e)*R||0,m=F.getValue(f)-M,c=t.x-m/2,1===H&&(i=Math.sqrt(n.z),f=Math.round(i*e)*R||0,m=F.getValue(f)-M,u=n.x-m/2),1===O&&(i=Math.sqrt(A.z),f=Math.round(i*e)*R||0,m=F.getValue(f)-M,h=A.x-m/2),H=0,O=0,u>c&&(I=L[s],H=1),h<c&&(T=L[s],O=1);if(I&&(a=(r=I.config).anchorProps.radius,(v=r.showValue)&&(p=r.displayValue,ee.useEllipsesOnOverflow(x.useEllipsesWhenOverflow),ee.setStyle(k),G=ee.getOriSize(p),ne=w?G.height:G.width),null!==r.setValue&&(c=F.getPixel(r.setValue.x),z=E?$-(l=c-.5*ne):Z-(l=c-.5*ne),K=!E&&c-a<=Z||E&&c-a<=$?E?$-(c-a):Z-(c-a):0),te.paddingLeft=d(z,K)),T&&(v=(r=T.config).showValue,a=r.anchorProps.radius,v&&(p=r.displayValue,ee.setStyle(k),V=ee.getOriSize(p),ne=w?V.height:V.width),null!==r.setValue&&(z=(l=(c=F.getPixel(r.setValue.x))-Z+.5*ne)-$+Z,E&&(z=l),K=!E&&c+a>=$||E&&c+a>=Z?E?c+a-Z:c+a-$:0),te.paddingRight=d(z,K)),N){a=(r=N.config).anchorProps.radius||0,q=S.getPixel(q),null!==r.setValue&&(b=S.getPixel(r.setValue.y),K=(0,o.pluckNumber)(a,0)+(0,o.pluckNumber)(r.anchorProps.borderThickness,0)/2);var Ae=Q?b-K:b+K,re=Q?q:J;te.paddingTop=Math.max(re-Ae,0)}if(D){a=(r=D.config).anchorProps.radius||0,J=S.getPixel(J),null!==r.setValue&&(b=S.getPixel(r.setValue.y),K=(0,o.pluckNumber)(a,0)+(0,o.pluckNumber)(r.anchorProps.borderThickness,0)/2);var ae=Q?b+K:b-K,ie=Q?J:q;te.paddingBottom=Math.max(ae-ie,0)}return te},n._addLegend=function(){var e,t,n,A,r,a,i,l,s,c=this,u=c.getFromEnv("chart"),h=c.getFromEnv("chart-attrib"),d=c.config,g=c.config.JSONData||{},p=u.getChildren("legend")[0],f=(0,o.pluckNumber)(d.drawanchors,1),m={fillColor:(a=d.anchorbgcolor,i=d.plotFillAlpha,l=a,s=i,l=(0,o.getFirstColor)(l),s=(0,o.getFirstAlpha)(s),{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:(0,o.getLightColor)(l,70)+","+(0,o.getDarkColor)(l,50),alpha:s+","+s,ratio:o.BGRATIOSTRING,radialGradient:!0}}),lineColor:{FCcolor:{color:d.anchorbordercolor,alpha:d.anchoralpha}},lineWidth:d.anchorborderthickness};p.config.symbol3DLighting?m.fillcolor&&m.fillcolor.FCcolor?(e=(0,o.extend2)({},m.fillcolor)).FCcolor.alpha=d.plotFillAlpha:e=(0,o.pluck)(m.fillColor):e={FCcolor:{color:(0,o.pluck)((t=m.fillColor)&&(t.FCcolor&&t.FCcolor.color.split(",")[0]||t)),angle:0,ratio:"0",alpha:"100"}},A={enabled:d.includeInLegend,type:c.type,drawLine:(0,o.pluck)(d.drawLine,!0),anchorSide:f?d.anchorsides:0,label:(0,o.getFirstValue)(c.config.JSONData.seriesname),legendIconAlpha:(0,o.pluckNumber)(g.legendiconalpha)},d.includeinlegend?((r=p.getItem(c.config.legendItemId))?r.configure({style:p.config.itemStyle,hiddenStyle:p.config.itemHiddenStyle,datasetVisible:p.config.datasetVisible,hoverStyle:p.config.itemHoverStyle}):(c.config.legendItemId=p.createItem(c),r=p.getItem(c.config.legendItemId),c.addExtEventListener("fc-click",function(){r.itemClickFn()},r)),r.configure(A),r.setStateCosmetics("default",{symbol:{fill:d.legendFillColor?d.anchorbgcolor:(0,o.toRaphaelColor)(e),bgAlpha:(0,o.pluckNumber)(g.legendiconbgalpha,g.legendiconalpha,h.legendiconbgalpha,h.legendiconalpha,d.plotFillAlpha),borderAlpha:(0,o.pluckNumber)(g.legendiconborderalpha,g.legendiconalpha,h.legendiconborderalpha,h.legendiconalpha,"100"),rawFillColor:d.anchorbgcolor,rawStrokeColor:d.lineColor,stroke:(0,o.toRaphaelColor)((0,o.pluck)((n=m.lineColor)&&(n.FCcolor&&n.FCcolor.color.split(",")[0]||n))),"stroke-width":d.anchorborderthickness}}),c.getState("visible")?r.removeLegendState("hidden"):r.setLegendState("hidden")):c.config.legendItemId&&p.disposeItem(c.config.legendItemId)},n.getDSGroupdef=function(){return r},n.trimData=function(e){if(this.config.JSONData){var t,n,A=this.config,r=A&&A.context,a=r&&r.prevCatlen,i=this.getFromEnv("xAxis").getTicksLen(),o=a-i,l=A.JSONData,s=l.data&&l.data.length,c=e.data&&e.data.length||0,u=s-c;o>u?(t=o,n=i):(t=u,n=c),t>0&&this.removeData(n,t,!1)}},t}(i["default"]);t["default"]=f},(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;
/** !
 * @license FusionCharts JavaScript Library - KDtree
 * Copyright FusionCharts, Inc.
 * License Information at <http://www.fusioncharts.com/license>
 *
 * @version //? write(JSON.parse(require('fs').readFileSync('./package.json')).version);
 */
var n,A=function(e,t,n,A,r){return Math.pow(n-e,2)+Math.pow(A-t,2)<=Math.pow(r,2)},r=Math.PI,a=Math.cos,i=Math.sin,o=Math.max,l=Math.min,s=r/180,c=function(e,t,n,A,r,a){var i,o,l;return i=(A-t)*(r-n),o=(n-e)*(a-A),isNaN(i)&&(i=0),isNaN(o)&&(o=0),0===(l=i-o)?0:l>0?1:2},u=function(e,t,n,A,r,a){return n<=o(e,r)&&n>=l(e,r)&&A<=o(t,a)&&A>=l(t,a)},h=function(e,t,n,A,r,a,i,o){var l=c(e,t,n,A,r,a),s=c(e,t,n,A,i,o),h=c(r,a,i,o,e,t),d=c(r,a,i,o,n,A);return l!==s&&h!==d||(!(0!==l||!u(e,t,r,a,n,A))||(!(0!==s||!u(e,t,i,o,n,A))||(!(0!==h||!u(r,a,e,t,i,o))||!(0!==d||!u(r,a,n,A,i,o)))))},d=function(e,t,o,l,d,g,p){var f,m,v,b,B,y,C,x=Infinity,w=0,F=!1;if(A(e,t,o,l,d)&&g>=3){for(m=p===n?.5*r:p%360*s,C=2*r/g,v=o+d*a(-m),y=l+d*i(-m),f=0;f<g;f++){if(b=o+d*a(-(m+=C)),B=l+d*i(-m),h(v,y,b,B,e,t,x,t)){if(0===c(v,y,e,t,b,B))return u(v,y,e,t,b,B);w++}v=b,y=B}F=w%2!=0}return F},g=function(e,t){return!e||e&&t&&t.i>e.i?t:e};var p=function(){function e(e){this.configure(e)}var t=e.prototype;return t.configure=function(e){var t=this;t.validatorFn=e?t.shapeValidator():t.defaultValidator()},t.defaultValidator=function(){var e=this;return function(t){var n=e.mousePoint;return!!(t&&Math.pow((t.x-n.x)/e.xLimit,2)+Math.pow((t.y-n.y)/e.yLimit,2)<=1)}},t.shapeValidator=function(){var e=this;return function(t){var n,r,a,i,o,l,s,c,u=e.mousePoint,h=t&&t.shapeInfo,g=!1,p=u.x,f=u.y;switch(h&&h.type){case"circle":r=h.radius,g=A(p,f,t.x,t.y,r);break;case"arc":n=h.innerradius,r=h.radius,g=!A(p,f,t.x,t.y,n)&&A(p,f,t.x,t.y,r);break;case"polygon":r=h.radius,i=h.startAngle,a=h.sides,g=d(p,f,t.x,t.y,r,a,i);break;case"rect":case"rectangle":o=t.x,s=t.y,l=o+(h.width||0),c=s+(h.height||0),g=p>=o&&p<=l&&f>=s&&f<=c;break;case"default":g=!1}return g}},t.buildKdTree=function(e){return this.kdTree=function(e){var t,n,A,r=e,a=r&&r[0]&&r[0].r||5,i=Math.max,o=Math.floor,l=Math.sqrt,s=Math.min,c=Math.log,u=Math.exp,h=Math.pow;function d(e,t,n){var A=e[t];e[t]=e[n],e[n]=A}for(n=function(e,t,A,r){for(var a,h,g,p,f,m,v,b,B,y,C=A,x=r;x>C;){for(x-C>600&&(h=t-C+1,g=c(a=x-C+1),p=.5*u(2*g/3),f=.5*l(g*p*(a-p)/a)*(h-a/2<0?-1:1),m=i(C,o(t-h*p/a+f)),v=s(x,o(t+(a-h)*p/a+f)),n(e,t,m,v)),b=e[t],B=C,y=x,d(e,C,t),e[x].x>b.x&&d(e,C,x);B<y;){for(d(e,B,y),B++,y--;e[B].x<b.x;)B++;for(;e[y].x>b.x;)y--}e[C].x===b.x?d(e,C,y):d(e,++y,x),y<=t&&(C=y+1),t<=y&&(x=y-1)}},A=function(e,t,n,r){for(var a,h,g,p,f,m,v,b,B,y,C=n,x=r,w=e;x>C;){for(x-C>600&&(h=t-C+1,g=c(a=x-C+1),p=.5*u(2*g/3),f=.5*l(g*p*(a-p)/a)*(h-a/2<0?-1:1),m=i(C,o(t-h*p/a+f)),v=s(x,o(t+(a-h)*p/a+f)),A(w,t,m,v)),b=w[t],B=C,y=x,d(w,C,t),w[x].y>b.y&&d(w,C,x);B<y;){for(d(w,B,y),B++,y--;w[B].y<b.y;)B++;for(;w[y].y>b.y;)y--}w[C].y===b.y?d(w,C,y):d(w,++y,x),y<=t&&(C=y+1),t<=y&&(x=y-1)}},t=(r=r||[]).length;t--;)r[t].r>a&&(a=r[t].r),r[t].i=t,r[t].x=+r[t].x,r[t].y=+r[t].y;return{tree:0===r.length?{}:function g(e,t,r,a){var i,o={},l=a?"y":"x";return t===r?(o.point=e[t],o):r-t===1?(e[t][l]>e[r][l]?(o.point=e[t],o.left={point:e[r]}):(o.point=e[r],o.left={point:e[t]}),o):(i=t+r>>1,a?A(e,i,t,r):n(e,i,t,r),o.point=e[i],o.left=g(e,t,i-1,!a),o.right=g(e,i+1,r,!a),o)}(r,0,r.length-1,!1),search:function(e,t,n,A){var r,i,o,s=this.tree,c=A,u=e-a,d=e+a,g=t-a,p=t+a,f=!1,m=0;function v(e,t,n,A){return l(h(e-n,2)+h(t-A,2))}function b(A,r){return"circle"===n?v(A,r,e,t)<=u:A>=u&&A<=d&&r>=g&&r<=p}function B(e,t,n){return e>=t&&e<=n}function y(n){var A=B(e,n.x1,n.x2)&&B(t,n.y1,n.y2),a=v(e,t,n.point.x,n.point.y);if(!r)return r=n,f=A,void(m=a);A?f?n.point.i>r.point.i&&(r=n,f=A,m=a):(r=n,f=A,m=a):f||a<m&&(r=n,f=A,m=a)}function C(A,r){"circle"===n?u=A:(u=e-A||0,d=e+A||0,g=t-r||0,p=t+r||0)}return c=c||{},o=function(e){e&&e.point&&(C(c.rx||e.point.r,c.ry||e.point.r),b(e.point.x,e.point.y)&&y(e),g<=e.point.y&&i(e.left),p>=e.point.y&&i(e.right))},(i=function(e){e&&e.point&&(C(c.rx||e.point.r,c.ry||e.point.r),b(e.point.x,e.point.y)&&y(e),u<=e.point.x&&o(e.left),d>=e.point.x&&o(e.right))})(s),r&&r.point||r}}}(e),this.tree=this.kdTree.tree,this},t.getNeighbour=function(e,t,n){var A=this,r=A.tree,a=A.validatorFn;return A.mousePoint=e,t?this.kdTree&&this.kdTree.search(e.x,e.y,n,e.options):r?A._searchBtwnLimit(r,!0,a):void 0},t._searchBtwnLimit=function(e,t,A){var r,a,i=e.point,o=i.x,l=i.y,s=i.shapeInfo,c=s.width,u=s.height,h=s.radius,d=null!=c?c:h,p=null!=u?u:h,f=t?"x":"y",m={x1:o-d,x2:o+d,y1:l-p,y2:l+p},v=t?m.x1:m.y1,b=t?m.x2:m.y2;if((r=e&&e.point&&e.point[f])!==n)return A(e.point)&&(a=e.point),r>=v&&e.left&&(a=g(a,this._searchBtwnLimit(e.left,!t,A))),r<=b&&e.right&&(a=g(a,this._searchBtwnLimit(e.right,!t,A))),a},t._setSearchLimit=function(e,t){this.xLimit=e,this.yLimit=t},e}();p.prototype.constructor=p;t["default"]=p},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(645));t["default"]={"*.dataset.scatter":r["default"]["*.dataset.line"]}},(e,t,n)=>{var A=n(341)(function(e){return null==e});e.exports=A},,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(643)),i=A(n(766)),o=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,r["default"])(t,e),t.getName=function(){return"MSArea"};var n=t.prototype;return n.getName=function(){return"MSArea"},n.getDSdef=function(){return a["default"]},n.getDSGroupdef=function(){},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Area Chart",t.defaultDatasetType="area",t.defaultcrosslinethickness=1},t}(i["default"]);t["default"]=o},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=t._setDefaultConfig=void 0;var r,a=A(n(295)),i=A(n(721)),o=n(281),l=o.preDefStr.SEVENTYSTRING,s=t._setDefaultConfig=function(){var e=this.config;e.anchorborderthickness=1,e.anchorimageurl=r,e.anchorimagepadding=1,e.anchorsides=1,e.anchoralpha=r,e.anchorbgalpha=o.HUNDREDSTRING,e.anchorimagealpha=o.HUNDREDSTRING,e.anchorimagescale=100,e.anchorstartangle=90,e.anchorshadow=0,e.anchorbgcolor=r,e.anchorbordercolor=r,e.anchorradius=3,e.showvalues=1,e.plotfillalpha=l,e.linedashlen=5,e.linedashgap=4,e.linedashed=r,e.linealpha=o.HUNDREDSTRING,e.linethickness=2,e.drawfullareaborder=1,e.connectnulldata=0},c=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.getName=function(){return"AreaBase"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),s.call(this)},t}(i["default"]);t["default"]=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(766)),i=A(n(642)),o=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,r["default"])(t,e),t.getName=function(){return"MSLine"};var n=t.prototype;return n.getName=function(){return"MSLine"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Line Chart",t.defaultDatasetType="line",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return i["default"]},n.getDSGroupdef=function(){},t}(a["default"]);t["default"]=o},,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(813));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(814));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(766),i=A(n(713)),o=A(n(546)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"Spline"};var n=t.prototype;return n.getName=function(){return"Spline"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Spline Chart",t.singleseries=!0,t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,a._setDefaultConfig.call(this)},n.getDSdef=function(){return i["default"]},t}(o["default"]);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(816));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(814)),i=n(766),o=A(n(709)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,r["default"])(t,e),t.getName=function(){return"SplineArea"};var n=t.prototype;return n.getName=function(){return"SplineArea"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;i._setDefaultConfig.call(this),t.friendlyName="Spline Area Chart",t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="mssplinearea",t.anchoralpha="100",t.minimizetendency=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.showzeroplaneontop=1,t.inheritplotbordercolor=0},n.getDSdef=function(){return o["default"]},n.getDSGroupdef=function(){},t}(a["default"]);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(818));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(819));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(766),i=A(n(713)),o=A(n(652)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"MSSpline"};var n=t.prototype;return n.getName=function(){return"MSSpline"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Spline  Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,a._setDefaultConfig.call(this)},n.getDSdef=function(){return i["default"]},n.getDSGroupdef=function(){},t}(o["default"]);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(821));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(766),i=A(n(694)),o=A(n(713)),l=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t}(0,r["default"])(t,e),t.getName=function(){return"MSSplineDy"};var n=t.prototype;return n.getName=function(){return"MSSplineDy"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Dual Y-Axis Spline Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.isdual=!0,a._setDefaultConfig.call(this)},n.getDSdef=function(){return o["default"]},n.getDSGroupdef=function(){},n.getDSType=function(){return"spline"},t}(i["default"]);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(823));t["default"]=r["default"]},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(819)),i=n(766),o=A(n(709)),l=function(e){function t(){var t;return(t=e.call(this)||this).friendlyName="Multi-series Spline Area Chart",t.defaultPlotShadow=0,t}(0,r["default"])(t,e),t.getName=function(){return"MSSplineArea"};var n=t.prototype;return n.getName=function(){return"MSSplineArea"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;i._setDefaultConfig.call(this),t.defaultDatasetType="mssplinearea",t.minimizetendency=0,t.zeroplanethickness=2,t.zeroplanealpha=80,t.showzeroplaneontop=1,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return o["default"]},n.getDSGroupdef=function(){},t}(a["default"]);t["default"]=l},,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>l});var A=n(833),r=n(836),a=n(839),i=n(842),o=n(852);const l=(0,A["default"])((0,r["default"])(["fantasy-land/chain","chain"],i["default"],function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:(0,a["default"])(!1)((0,o["default"])(e,t))}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(834),r=n(835);function a(e){return function t(n,a){switch(arguments.length){case 0:return t;case 1:return(0,r["default"])(n)?t:(0,A["default"])(function(t){return e(n,t)});default:return(0,r["default"])(n)&&(0,r["default"])(a)?t:(0,r["default"])(n)?(0,A["default"])(function(t){return e(t,a)}):(0,r["default"])(a)?(0,A["default"])(function(t){return e(n,t)}):e(n,a)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(835);function r(e){return function t(n){return 0===arguments.length||(0,A["default"])(n)?t:e.apply(this,arguments)}}},(e,t,n)=>{"use strict";function A(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(837),r=n(838);function a(e,t,n){return function(){if(0===arguments.length)return n();var a=arguments[arguments.length-1];if(!(0,A["default"])(a)){for(var i=0;i<e.length;){if("function"==typeof a[e[i]])return a[e[i]].apply(a,Array.prototype.slice.call(arguments,0,-1));i+=1}if((0,r["default"])(a))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(a)}return n.apply(this,arguments)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},(e,t,n)=>{"use strict";function A(e){return null!=e&&"function"==typeof e["@@transducer/step"]}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(840);function r(e){return function t(n){for(var r,a,i,o=[],l=0,s=n.length;l<s;){if((0,A["default"])(n[l]))for(i=0,a=(r=e?t(n[l]):n[l]).length;i<a;)o[o.length]=r[i],i+=1;else o[o.length]=n[l];l+=1}return o}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(834),r=n(837),a=n(841);const i=(0,A["default"])(function(e){return!!(0,r["default"])(e)||!!e&&("object"==typeof e&&(!(0,a["default"])(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},(e,t,n)=>{"use strict";function A(e){return"[object String]"===Object.prototype.toString.call(e)}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(843),r=n(851);function a(e){return function(t){return(0,r["default"])(e)((0,A["default"])(t))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>d});var A=n(844),r=n(840),a=n(845),i=n(846),o=n(850),l="@@transducer/init",s="@@transducer/step",c="@@transducer/result",u=function(){function e(e){this.xf=e}return e.prototype[l]=o["default"].init,e.prototype[c]=o["default"].result,e.prototype[s]=function(e,t){var n=this.xf[s](e,t);return n["@@transducer/reduced"]?(0,A["default"])(n):n},e}(),h=function(){function e(e){this.xf=new u(e)}return e.prototype[l]=o["default"].init,e.prototype[c]=o["default"].result,e.prototype[s]=function(e,t){return(0,r["default"])(t)?(0,i["default"])(this.xf,e,t):(0,a["default"])(this.xf,e,[t])},e}();const d=function(e){return new h(e)}},(e,t,n)=>{"use strict";function A(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";function A(e,t,n){for(var A=0,r=n.length;A<r;){if((t=e["@@transducer/step"](t,n[A]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}A+=1}return e["@@transducer/result"](t)}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>l});var A=n(847),r=n(845),a=n(848);function i(e,t,n){for(var A=n.next();!A.done;){if((t=e["@@transducer/step"](t,A.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}A=n.next()}return e["@@transducer/result"](t)}function o(e,t,n,A){return e["@@transducer/result"](n[A]((0,a["default"])(e["@@transducer/step"],e),t))}const l=(0,A["default"])(r["default"],o,i)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(840),r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function a(e,t,n){return function(a,i,o){if((0,A["default"])(o))return e(a,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(a,i,o,"fantasy-land/reduce");if(null!=o[r])return n(a,i,o[r]());if("function"==typeof o.next)return n(a,i,o);if("function"==typeof o.reduce)return t(a,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(849);const r=(0,n(833)["default"])(function(e,t){return(0,A["default"])(e.length,function(){return e.apply(t,arguments)})})},(e,t,n)=>{"use strict";function A(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,A){return t.apply(this,arguments)};case 4:return function(e,n,A,r){return t.apply(this,arguments)};case 5:return function(e,n,A,r,a){return t.apply(this,arguments)};case 6:return function(e,n,A,r,a,i){return t.apply(this,arguments)};case 7:return function(e,n,A,r,a,i,o){return t.apply(this,arguments)};case 8:return function(e,n,A,r,a,i,o,l){return t.apply(this,arguments)};case 9:return function(e,n,A,r,a,i,o,l,s){return t.apply(this,arguments)};case 10:return function(e,n,A,r,a,i,o,l,s,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(850),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A["default"].init,e.prototype["@@transducer/result"]=A["default"].result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const a=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>c});var A=n(853),r=n(833),a=n(836),i=n(854),o=n(851),l=n(855),s=n(857);const c=(0,r["default"])((0,a["default"])(["fantasy-land/map","map"],o["default"],function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return(0,l["default"])(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return(0,A["default"])(function(n,A){return n[A]=e(t[A]),n},{},(0,s["default"])(t));default:return(0,i["default"])(e,t)}}))},(e,t,n)=>{"use strict";function A(e,t,n){for(var A=0,r=n.length;A<r;)t=e(t,n[A]),A+=1;return t}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";function A(e,t){for(var n=0,A=t.length,r=Array(A);n<A;)r[n]=e(t[n]),n+=1;return r}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>o});var A=n(849),r=n(834),a=n(833),i=n(856);const o=(0,a["default"])(function(e,t){return 1===e?(0,r["default"])(t):(0,A["default"])(e,(0,i["default"])(e,[],t))})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(849),r=n(835);function a(e,t,n){return function(){for(var i=[],o=0,l=e,s=0,c=!1;s<t.length||o<arguments.length;){var u;s<t.length&&(!(0,r["default"])(t[s])||o>=arguments.length)?u=t[s]:(u=arguments[o],o+=1),i[s]=u,(0,r["default"])(u)?c=!0:l-=1,s+=1}return!c&&l<=0?n.apply(this,i):(0,A["default"])(Math.max(0,l),a(e,i,n))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>c});var A=n(834),r=n(858),a=n(859),i=!{toString:null}.propertyIsEnumerable("toString"),o=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){return arguments.propertyIsEnumerable("length")}(),s=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const c="function"!=typeof Object.keys||l?(0,A["default"])(function(e){if(Object(e)!==e)return[];var t,n,A=[],c=l&&(0,a["default"])(e);for(t in e)!(0,r["default"])(t,e)||c&&"length"===t||(A[A.length]=t);if(i)for(n=o.length-1;n>=0;)t=o[n],(0,r["default"])(t,e)&&!s(A,t)&&(A[A.length]=t),n-=1;return A}):(0,A["default"])(function(e){return Object(e)!==e?[]:Object.keys(e)})},(e,t,n)=>{"use strict";function A(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(858),r=Object.prototype.toString;const a=function(){return"[object Arguments]"===r.call(arguments)?function(e){return"[object Arguments]"===r.call(e)}:function(e){return(0,A["default"])("callee",e)}}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(861);const r=(0,n(834)["default"])(function(e){return null!=e&&"function"==typeof e.clone?e.clone():(0,A["default"])(e,!0)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(862),r=n(863);function a(e,t,n){if(n||(n=new i),l=typeof(o=e),null==o||"object"!=l&&"function"!=l)return e;var o,l,s=function(A){var r=n.get(e);if(r)return r;for(var i in n.set(e,A),e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=t?a(e[i],!0,n):e[i]);return A};switch((0,r["default"])(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return(0,A["default"])(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var i=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),A=this.map[n];A||(this.map[n]=A=[]),A.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var n=this.map[t],A=0;A<n.length;A+=1){var r=n[A];if(r[0]===e)return r[1]}else{var a=this.hash(e),i=this.map[a];if(i)for(var o=0;o<i.length;o+=1){var l=i[o];if(l[0]===e)return l[1]}}},e}()},(e,t,n)=>{"use strict";function A(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A=(0,n(834)["default"])(function(e){return null===e?"Null":e===undefined?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(865);const r=(0,n(867)["default"])(A["default"])},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(834),r=n(866);const a=(0,A["default"])(r["default"])},(e,t,n)=>{"use strict";function A(e){return e}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>o});var A=n(868),r=n(833),a=n(836),i=n(877);const o=(0,r["default"])((0,a["default"])([],i["default"],function(e,t){for(var n,r,a=new A["default"],i=[],o=0;o<t.length;)n=e(r=t[o]),a.add(n)&&i.push(r),o+=1;return i}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(869);function r(e,t,n){var r,a=typeof e;switch(a){case"string":case"number":return 0===e&&1/e===-Infinity?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):a in n._items?e in n._items[a]||(t&&(n._items[a][e]=!0),!1):(t&&(n._items[a]={},n._items[a][e]=!0),!1);case"boolean":if(a in n._items){var i=e?1:0;return!!n._items[a][i]||(t&&(n._items[a][i]=!0),!1)}return t&&(n._items[a]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):a in n._items?!!(0,A["default"])(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1);case"undefined":return!!n._items[a]||(t&&(n._items[a]=!0),!1);case"object":if(null===e)return!!n._items["null"]||(t&&(n._items["null"]=!0),!1);default:return(a=Object.prototype.toString.call(e))in n._items?!!(0,A["default"])(e,n._items[a])||(t&&n._items[a].push(e),!1):(t&&(n._items[a]=[e]),!1)}}const a=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!r(e,!0,this)},e.prototype.has=function(e){return r(e,!1,this)},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(870);function r(e,t){return(0,A["default"])(t,e,0)>=0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(871);function r(e,t,n){var r,a;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(a=e[n])&&1/a===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(a=e[n])&&a!=a)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if((0,A["default"])(e[n],t))return n;n+=1}return-1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(833),r=n(872);const a=(0,A["default"])(function(e,t){return(0,r["default"])(e,t,[],[])})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>u});var A=n(873),r=n(874),a=n(875),i=n(858),o=n(876),l=n(857),s=n(863);function c(e,t,n,a){var i=(0,A["default"])(e),o=(0,A["default"])(t);function l(e,t){return u(e,t,n.slice(),a.slice())}return!(0,r["default"])(function(e,t){return!(0,r["default"])(l,t,e)},o,i)}function u(e,t,n,A){if((0,o["default"])(e,t))return!0;var r=(0,s["default"])(e);if(r!==(0,s["default"])(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(0,a["default"])(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!(0,o["default"])(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!(0,o["default"])(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=n.length-1;h>=0;){if(n[h]===e)return A[h]===t;h-=1}switch(r){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),n.concat([e]),A.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),n.concat([e]),A.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=(0,l["default"])(e);if(d.length!==(0,l["default"])(t).length)return!1;var g=n.concat([e]),p=A.concat([t]);for(h=d.length-1;h>=0;){var f=d[h];if(!(0,i["default"])(f,t)||!u(t[f],e[f],g,p))return!1;h-=1}return!0}},(e,t,n)=>{"use strict";function A(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";function A(e,t,n){for(var A=0,r=n.length;A<r;){if(e(t,n[A]))return!0;A+=1}return!1}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";function A(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(868),r=n(850),a=function(){function e(e,t){this.xf=t,this.f=e,this.set=new A["default"]}return e.prototype["@@transducer/init"]=r["default"].init,e.prototype["@@transducer/result"]=r["default"].result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}();function i(e){return function(t){return new a(e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A=(0,n(833)["default"])(function(e,t){for(var n,A=0,r=e.length,a=t.length,i=[];A<r;){for(n=0;n<a;)i[i.length]=[e[A],t[n]],n+=1;A+=1}return i})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(880),r=n(834),a=n(855);const i=(0,r["default"])(function(e){return(0,a["default"])(e.length,function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],a=Array.prototype.slice.call(arguments,0);return a[0]=function(){var e=n.apply(this,(0,A["default"])(arguments,[t,r]));return t+=1,e},e.apply(this,a)})})},(e,t,n)=>{"use strict";function A(e,t){var n;t=t||[];var A=(e=e||[]).length,r=t.length,a=[];for(n=0;n<A;)a[a.length]=e[n],n+=1;for(n=0;n<r;)a[a.length]=t[n],n+=1;return a}n.r(t),n.d(t,{"default":()=>A})},,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272),r=n(276);t.__esModule=!0,t["default"]=void 0;var a=A(n(295)),i=A(n(573)),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,A=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o=r({},null,{"default":e});if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?A:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?a(o,l,i):o[l]=e[l]);return o}(e,t)}(n(571)),l=A(n(893)),s=A(n(287));var c=function(e,t){var n=t,A=e;return(n=Math.log(n/A))?function(e){return Math.log(e/A)/n}:(0,i["default"])(n)},u=function(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}},h=function(e){return isFinite(e)?+("1e"+e):e<0?0:e},d=function(e){return 10===e?h:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}},g=function(e){return e===Math.E?Math.log:10===e?Math.log10:2===e?Math.log2:function(t){return Math.log(t)/Math.log(e)}},p=function(e){return function(t){return-e(-t)}},f=function(e){function t(){var t;return(t=e.call(this,c,u)||this).setDomain([1,10]),t.base=10,t.logs=g(t.base),t.pows=d(t.base),t}(0,a["default"])(t,e);var n=t.prototype;return n._rescaleLog=function(){return this.logs=g(this.base),this.pows=d(this.base),this.getDomain()[0]<0&&(this.logs=p(this.logs),this.pows=p(this.pows)),this},n.setBase=function(e){return void 0===e&&(e=10),this.base=Number(e),this._rescaleLog()},n.getBase=function(){return this.base},n.setDomain=function(t){return void 0===t&&(t=[1,10]),e.prototype.setDomain.call(this,t),this._rescaleLog()},n.nice=function(){var e,t,n=this.getDomain(),A=n[0],r=n[1],a=this.base;return A===r&&(A-=A/100),e=Math.log(A)/Math.log(a),t=Math.log(r)/Math.log(a),(e%1||t%1)&&(A<=r?(A=this.pows(Math.floor(e)),r=this.pows(Math.ceil(t))):(A=this.pows(Math.ceil(e)),r=this.pows(Math.floor(t))),this.setDomain([A,r])),this},n.tickFormat=function(e,t){var n=this.base,A=t,r=e;return null==A&&(A=10===n?".0e":","),"function"!=typeof A&&(A=this._localeConverter.formatter(A)),null==r&&(r=10),function(e){return A.format(e)}},n.ticks=function(){var e,t,n,A,r,a,i=this.getDomain(),o=i[0],l=i[1],s=1,c=0,u=[],h=this.base;if(o<=0||l<=0)return u;if(o>l){var d=this.getDomain();l=d[0],o=d[1],s=0}for(h>1?(t=e=Math.ceil(Math.log(l)/Math.log(h)),n=Math.floor(Math.log(o)/Math.log(h))):h>0&&h<1&&(e=Math.floor(Math.log(l)/Math.log(h)),t=Math.ceil(Math.log(o)/Math.log(h)),n=e),r=e,a=t;a>=n;--a)o<=(A=this.pows(r))&&l>=A&&(u[c++]=A),h>1?r--:r++;return this.majorTicks=s?u.reverse():u},n.copy=function(){return(0,o.copyScale)(this,(new t).setBase(this.base))},n.minorTicks=function(e,t){void 0===t&&(t=this.majorTicks||this.ticks());var n,A,r,a,i,o=this.base,c=(0,l["default"])(t),u=[],h=Math.log(o)/Math.log(10),d=o>1?-1:1,g=e;return g=(0,s["default"])(Number(g),h%1?4:8),c.forEach(function(e){var t=e[0],l=e[1];for(o>1?A=Math.ceil(Math.log(l)/Math.log(o)):o>0&&o<1&&(A=Math.floor(Math.log(l)/Math.log(o))),a=Math.pow(o,A)-Math.pow(o,A+d),r=a/(g+1),n=1;n<=g;++n)t<=(i=Math.pow(o,A+d)+r*n)&&l>=i&&u.push(i)}),u},n.contextTicks=function(){return this.contextTicksArr||[]},n.getType=function(){return"log"},t}(o["default"]);t["default"]=f},(e,t)=>{"use strict";function n(e,t){return[e,t]}t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var A=t,r=0,a=e.length-1,i=e[0],o=new Array(a<0?0:a);for(null==A&&(A=n);r<a;)o[r]=A(i,i=e[++r]);return o}},,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(909);const r=(0,n(833)["default"])(function(e,t){return(0,A["default"])({},e,t)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(858);const r="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var a=arguments[n];if(null!=a)for(var i in a)(0,A["default"])(i,a)&&(t[i]=a[i]);n+=1}return t}},,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>A});const A=(0,n(834)["default"])(function(e){for(var t=0,n=[];t<e.length;){for(var A=e[t],r=0;r<A.length;)"undefined"==typeof n[r]&&(n[r]=[]),n[r].push(A[r]),r+=1;t+=1}return n})},,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(833),r=n(937);const a=(0,A["default"])(function(e,t){return(0,r["default"])(function(e,t,n){return n},e,t)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(938),r=n(939),a=n(940);const i=(0,A["default"])(function o(e,t,n){return(0,a["default"])(function(t,n,A){return(0,r["default"])(n)&&(0,r["default"])(A)?o(e,n,A):e(t,n,A)},t,n)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(834),r=n(833),a=n(835);function i(e){return function t(n,i,o){switch(arguments.length){case 0:return t;case 1:return(0,a["default"])(n)?t:(0,r["default"])(function(t,A){return e(n,t,A)});case 2:return(0,a["default"])(n)&&(0,a["default"])(i)?t:(0,a["default"])(n)?(0,r["default"])(function(t,n){return e(t,i,n)}):(0,a["default"])(i)?(0,r["default"])(function(t,A){return e(n,t,A)}):(0,A["default"])(function(t){return e(n,i,t)});default:return(0,a["default"])(n)&&(0,a["default"])(i)&&(0,a["default"])(o)?t:(0,a["default"])(n)&&(0,a["default"])(i)?(0,r["default"])(function(t,n){return e(t,n,o)}):(0,a["default"])(n)&&(0,a["default"])(o)?(0,r["default"])(function(t,n){return e(t,i,n)}):(0,a["default"])(i)&&(0,a["default"])(o)?(0,r["default"])(function(t,A){return e(n,t,A)}):(0,a["default"])(n)?(0,A["default"])(function(t){return e(t,i,o)}):(0,a["default"])(i)?(0,A["default"])(function(t){return e(n,t,o)}):(0,a["default"])(o)?(0,A["default"])(function(t){return e(n,i,t)}):e(n,i,o)}}}},(e,t,n)=>{"use strict";function A(e){return"[object Object]"===Object.prototype.toString.call(e)}n.r(t),n.d(t,{"default":()=>A})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(938),r=n(858);const a=(0,A["default"])(function(e,t,n){var A,a={};for(A in n=n||{},t=t||{})(0,r["default"])(A,t)&&(a[A]=(0,r["default"])(A,n)?e(A,t[A],n[A]):t[A]);for(A in n)(0,r["default"])(A,n)&&!(0,r["default"])(A,a)&&(a[A]=n[A]);return a})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(833),r=n(836),a=n(981);const i=(0,A["default"])((0,r["default"])(["all"],a["default"],function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>i});var A=n(982),r=n(850),a=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=r["default"].init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=(0,A["default"])(this.xf["@@transducer/step"](e,!1))),e},e}();function i(e){return function(t){return new a(e,t)}}},(e,t,n)=>{"use strict";function A(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}n.r(t),n.d(t,{"default":()=>A})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{e.exports={},e.exports.F=n(1015),e.exports.T=n(1016),e.exports.__=n(1017),e.exports.add=n(1018),e.exports.addIndex=n(1019),e.exports.addIndexRight=n(1024),e.exports.adjust=n(1025),e.exports.all=n(1026),e.exports.allPass=n(1033),e.exports.always=n(1060),e.exports.and=n(1061),e.exports.any=n(1062),e.exports.anyPass=n(1064),e.exports.ap=n(1065),e.exports.aperture=n(1067),e.exports.append=n(1070),e.exports.apply=n(1071),e.exports.applySpec=n(1072),e.exports.applyTo=n(1074),e.exports.ascend=n(1075),e.exports.assoc=n(1076),e.exports.assocPath=n(1077),e.exports.binary=n(1079),e.exports.bind=n(1058),e.exports.both=n(1081),e.exports.call=n(1085),e.exports.chain=n(1086),e.exports.clamp=n(1091),e.exports.clone=n(1092),e.exports.collectBy=n(1095),e.exports.comparator=n(1096),e.exports.complement=n(1097),e.exports.compose=n(1099),e.exports.composeWith=n(1106),e.exports.concat=n(1111),e.exports.cond=n(1112),e.exports.construct=n(1113),e.exports.constructN=n(1114),e.exports.converge=n(1116),e.exports.count=n(1117),e.exports.countBy=n(1118),e.exports.curry=n(1115),e.exports.curryN=n(1021),e.exports.dec=n(1121),e.exports.defaultTo=n(1122),e.exports.descend=n(1123),e.exports.difference=n(602),e.exports.differenceWith=n(599),e.exports.dissoc=n(1124),e.exports.dissocPath=n(1125),e.exports.divide=n(1128),e.exports.drop=n(1129),e.exports.dropLast=n(1131),e.exports.dropLastWhile=n(1136),e.exports.dropRepeats=n(1139),e.exports.dropRepeatsBy=n(1143),e.exports.dropRepeatsWith=n(1141),e.exports.dropWhile=n(1145),e.exports.either=n(1147),e.exports.empty=n(1149),e.exports.endsWith=n(1151),e.exports.eqBy=n(1144),e.exports.eqProps=n(1153),e.exports.equals=n(606),e.exports.evolve=n(1154),e.exports.filter=n(1042),e.exports.find=n(1155),e.exports.findIndex=n(1157),e.exports.findLast=n(1159),e.exports.findLastIndex=n(1161),e.exports.flatten=n(1163),e.exports.flip=n(1164),e.exports.forEach=n(1165),e.exports.forEachObjIndexed=n(1166),e.exports.fromPairs=n(1167),e.exports.groupBy=n(1168),e.exports.groupWith=n(1169),e.exports.gt=n(1170),e.exports.gte=n(1171),e.exports.has=n(1172),e.exports.hasIn=n(1174),e.exports.hasPath=n(1173),e.exports.head=n(1108),e.exports.identical=n(1175),e.exports.identity=n(1109),e.exports.ifElse=n(1176),e.exports.inc=n(1177),e.exports.includes=n(1178),e.exports.indexBy=n(1179),e.exports.indexOf=n(1180),e.exports.init=n(1181),e.exports.innerJoin=n(1182),e.exports.insert=n(1183),e.exports.insertAll=n(1184),e.exports.intersection=n(1185),e.exports.intersperse=n(1189),e.exports.into=n(1190),e.exports.invert=n(1194),e.exports.invertObj=n(1195),e.exports.invoker=n(1196),e.exports.is=n(339),e.exports.isEmpty=n(1197),e.exports.isNil=n(752),e.exports.isNotNil=n(1198),e.exports.join=n(1199),e.exports.juxt=n(1200),e.exports.keys=n(611),e.exports.keysIn=n(1201),e.exports.last=n(1142),e.exports.lastIndexOf=n(1202),e.exports.length=n(1203),e.exports.lens=n(1205),e.exports.lensIndex=n(1206),e.exports.lensPath=n(1208),e.exports.lensProp=n(1211),e.exports.lift=n(1083),e.exports.liftN=n(1084),e.exports.lt=n(1212),e.exports.lte=n(1213),e.exports.map=n(1047),e.exports.mapAccum=n(1214),e.exports.mapAccumRight=n(1215),e.exports.mapObjIndexed=n(1216),e.exports.match=n(1217),e.exports.mathMod=n(1218),e.exports.max=n(1034),e.exports.maxBy=n(1219),e.exports.mean=n(1220),e.exports.median=n(1222),e.exports.memoizeWith=n(1223),e.exports.mergeAll=n(1224),e.exports.mergeDeepLeft=n(1225),e.exports.mergeDeepRight=n(403),e.exports.mergeDeepWith=n(1226),e.exports.mergeDeepWithKey=n(404),e.exports.mergeLeft=n(1227),e.exports.mergeRight=n(1228),e.exports.mergeWith=n(1229),e.exports.mergeWithKey=n(407),e.exports.min=n(1230),e.exports.minBy=n(1231),e.exports.modify=n(1232),e.exports.modifyPath=n(1233),e.exports.modulo=n(1235),e.exports.move=n(1236),e.exports.multiply=n(1237),e.exports.nAry=n(1080),e.exports.partialObject=n(1238),e.exports.negate=n(1239),e.exports.none=n(1240),e.exports.not=n(1098),e.exports.nth=n(1051),e.exports.nthArg=n(1241),e.exports.o=n(1242),e.exports.objOf=n(1193),e.exports.of=n(1243),e.exports.omit=n(1244),e.exports.on=n(1245),e.exports.once=n(1246),e.exports.or=n(1148),e.exports.otherwise=n(1247),e.exports.over=n(1249),e.exports.pair=n(1250),e.exports.partial=n(1251),e.exports.partialRight=n(1253),e.exports.partition=n(1254),e.exports.path=n(1209),e.exports.paths=n(1210),e.exports.pathEq=n(1255),e.exports.pathOr=n(1256),e.exports.pathSatisfies=n(1257),e.exports.pick=n(1258),e.exports.pickAll=n(1259),e.exports.pickBy=n(414),e.exports.pipe=n(1100),e.exports.pipeWith=n(1107),e.exports.pluck=n(1046),e.exports.prepend=n(1260),e.exports.product=n(1261),e.exports.project=n(1262),e.exports.promap=n(1264),e.exports.prop=n(1049),e.exports.propEq=n(1267),e.exports.propIs=n(1268),e.exports.propOr=n(1269),e.exports.propSatisfies=n(1270),e.exports.props=n(1271),e.exports.range=n(1272),e.exports.reduce=n(1053),e.exports.reduceBy=n(1119),e.exports.reduceRight=n(1273),e.exports.reduceWhile=n(1274),e.exports.reduced=n(1275),e.exports.reject=n(1040),e.exports.remove=n(1127),e.exports.repeat=n(1276),e.exports.replace=n(1278),e.exports.reverse=n(1105),e.exports.scan=n(1279),e.exports.sequence=n(1281),e.exports.set=n(1282),e.exports.slice=n(1104),e.exports.sort=n(1283),e.exports.sortBy=n(1284),e.exports.sortWith=n(1285),e.exports.split=n(1286),e.exports.splitAt=n(1287),e.exports.splitEvery=n(1288),e.exports.splitWhen=n(1289),e.exports.splitWhenever=n(1290),e.exports.startsWith=n(1291),e.exports.subtract=n(1292),e.exports.sum=n(1221),e.exports.swap=n(1293),e.exports.symmetricDifference=n(1294),e.exports.symmetricDifferenceWith=n(1295),e.exports.tail=n(1102),e.exports.take=n(1133),e.exports.takeLast=n(1152),e.exports.takeLastWhile=n(1296),e.exports.takeWhile=n(1297),e.exports.tap=n(1299),e.exports.test=n(1301),e.exports.andThen=n(1303),e.exports.times=n(1277),e.exports.toLower=n(1304),e.exports.toPairs=n(1305),e.exports.toPairsIn=n(1306),e.exports.toString=n(1035),e.exports.toUpper=n(1307),e.exports.transduce=n(1308),e.exports.transpose=n(1309),e.exports.traverse=n(1310),e.exports.trim=n(1311),e.exports.tryCatch=n(1312),e.exports.type=n(613),e.exports.unapply=n(1313),e.exports.unary=n(1314),e.exports.uncurryN=n(1315),e.exports.unfold=n(1316),e.exports.union=n(1317),e.exports.unionWith=n(1318),e.exports.uniq=n(1186),e.exports.uniqBy=n(1187),e.exports.uniqWith=n(1319),e.exports.unless=n(1321),e.exports.unnest=n(1322),e.exports.until=n(1323),e.exports.unwind=n(1324),e.exports.update=n(1207),e.exports.useWith=n(1263),e.exports.values=n(1073),e.exports.valuesIn=n(1325),e.exports.view=n(1326),e.exports.when=n(1327),e.exports.where=n(1328),e.exports.whereAny=n(1329),e.exports.whereEq=n(1330),e.exports.without=n(1331),e.exports.xor=n(1332),e.exports.xprod=n(1333),e.exports.zip=n(1334),e.exports.zipObj=n(1335),e.exports.zipWith=n(1336),e.exports.thunkify=n(1337)},e=>{e.exports=function(){return!1}},e=>{e.exports=function(){return!0}},e=>{e.exports={"@@functional/placeholder":!0}},(e,t,n)=>{var A=n(340)(function(e,t){return Number(e)+Number(t)});e.exports=A},(e,t,n)=>{var A=n(1020),r=n(341),a=n(1021),i=r(function(e){return a(e.length,function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],a=Array.prototype.slice.call(arguments,0);return a[0]=function(){var e=n.apply(this,A(arguments,[t,r]));return t+=1,e},e.apply(this,a)})});e.exports=i},e=>{e.exports=function(e,t){var n;t=t||[];var A=(e=e||[]).length,r=t.length,a=[];for(n=0;n<A;)a[a.length]=e[n],n+=1;for(n=0;n<r;)a[a.length]=t[n],n+=1;return a}},(e,t,n)=>{var A=n(1022),r=n(341),a=n(340),i=n(1023),o=a(function(e,t){return 1===e?r(t):A(e,i(e,[],t))});e.exports=o},e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,A){return t.apply(this,arguments)};case 4:return function(e,n,A,r){return t.apply(this,arguments)};case 5:return function(e,n,A,r,a){return t.apply(this,arguments)};case 6:return function(e,n,A,r,a,i){return t.apply(this,arguments)};case 7:return function(e,n,A,r,a,i,o){return t.apply(this,arguments)};case 8:return function(e,n,A,r,a,i,o,l){return t.apply(this,arguments)};case 9:return function(e,n,A,r,a,i,o,l,s){return t.apply(this,arguments)};case 10:return function(e,n,A,r,a,i,o,l,s,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},(e,t,n)=>{var A=n(1022),r=n(342);e.exports=function a(e,t,n){return function(){for(var i=[],o=0,l=e,s=0,c=!1;s<t.length||o<arguments.length;){var u;s<t.length&&(!r(t[s])||o>=arguments.length)?u=t[s]:(u=arguments[o],o+=1),i[s]=u,r(u)?c=!0:l-=1,s+=1}return!c&&l<=0?n.apply(this,i):A(Math.max(0,l),a(e,i,n))}}},(e,t,n)=>{var A=n(1020),r=n(341),a=n(1021),i=r(function(e){return a(e.length,function(){var t=arguments[0],n=arguments[arguments.length-1],r=n.length-1,a=Array.prototype.slice.call(arguments,0);return a[0]=function(){var e=t.apply(this,A(arguments,[r,n]));return r-=1,e},e.apply(this,a)})});e.exports=i},(e,t,n)=>{var A=n(1020),r=n(405)(function(e,t,n){var r=n.length;if(e>=r||e<-r)return n;var a=(r+e)%r,i=A(n);return i[a]=t(n[a]),i});e.exports=r},(e,t,n)=>{var A=n(340)(n(1027)(["all"],n(1030),function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}));e.exports=A},(e,t,n)=>{var A=n(1028),r=n(1029);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var a=arguments[arguments.length-1];if(!A(a)){for(var i=0;i<e.length;){if("function"==typeof a[e[i]])return a[e[i]].apply(a,Array.prototype.slice.call(arguments,0,-1));i+=1}if(r(a))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(a)}return n.apply(this,arguments)}}},e=>{e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},e=>{e.exports=function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=A(this.xf["@@transducer/step"](e,!1))),e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},e=>{e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},e=>{e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},(e,t,n)=>{var A=n(341),r=n(1021),a=n(1034),i=n(1046),o=n(1053),l=A(function(e){return r(o(a,0,i("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});e.exports=l},(e,t,n)=>{var A=n(340),r=n(1035),a=A(function(e,t){if(e===t)return t;function n(e,t){return e>t!=t>e?t>e?t:e:undefined}var A=n(e,t);if(A!==undefined)return A;var a=n(typeof e,typeof t);if(a!==undefined)return a===typeof e?e:t;var i=r(e),o=n(i,r(t));return o!==undefined&&o===i?e:t});e.exports=a},(e,t,n)=>{var A=n(341),r=n(1036),a=A(function(e){return r(e,[])});e.exports=a},(e,t,n)=>{var A=n(604),r=n(1037),a=n(1038),i=n(1039),o=n(611),l=n(1040);e.exports=function s(e,t){var n=function(n){var r=t.concat([e]);return A(n,r)?"<Circular>":s(n,r)},c=function(e,t){return r(function(t){return a(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+r(n,e).join(", ")+"))";case"[object Array]":return"["+r(n,e).concat(c(e,l(function(e){return/^\d+$/.test(e)},o(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):a(i(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e===-Infinity?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":a(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var u=e.toString();if("[object Object]"!==u)return u}return"{"+c(e,o(e)).join(", ")+"}"}}},e=>{e.exports=function(e,t){for(var n=0,A=t.length,r=Array(A);n<A;)r[n]=e(t[n]),n+=1;return r}},e=>{e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},e=>{var t=function(e){return(e<10?"0":"")+e},n="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};e.exports=n},(e,t,n)=>{var A=n(1041),r=n(340),a=n(1042),i=r(function(e,t){return a(A(e),t)});e.exports=i},e=>{e.exports=function(e){return function(){return!e.apply(this,arguments)}}},(e,t,n)=>{var A=n(1043),r=n(340),a=n(1027),i=n(1044),o=n(406),l=n(1045),s=n(611),c=r(a(["fantasy-land/filter","filter"],l,function(e,t){return o(t)?A(function(n,A){return e(t[A])&&(n[A]=t[A]),n},{},s(t)):i(e,t)}));e.exports=c},e=>{e.exports=function(e,t,n){for(var A=0,r=n.length;A<r;)t=e(t,n[A]),A+=1;return t}},e=>{e.exports=function(e,t){for(var n=0,A=t.length,r=[];n<A;)e(t[n])&&(r[r.length]=t[n]),n+=1;return r}},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1047),a=n(1049),i=A(function(e,t){return r(a(e),t)});e.exports=i},(e,t,n)=>{var A=n(1043),r=n(340),a=n(1027),i=n(1037),o=n(1048),l=n(1021),s=n(611),c=r(a(["fantasy-land/map","map"],o,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return A(function(n,A){return n[A]=e(t[A]),n},{},s(t));default:return i(e,t)}}));e.exports=c},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1050),a=n(1051),i=A(function(e,t){if(null!=t)return r(e)?a(e,t):t[e]});e.exports=i},e=>{e.exports=Number.isInteger||function(e){return(e|0)===e}},(e,t,n)=>{var A=n(340),r=n(1052),a=A(function(e,t){var n=e<0?t.length+e:e;return r(t)?t.charAt(n):t[n]});e.exports=a},e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},(e,t,n)=>{var A=n(405),r=n(1054),a=n(1059),i=A(function(e,t,n){return r("function"==typeof e?a(e):e,t,n)});e.exports=i},(e,t,n)=>{var A=n(1055),r=n(1057),a=n(1058);function i(e,t,n){for(var A=n.next();!A.done;){if((t=e["@@transducer/step"](t,A.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}A=n.next()}return e["@@transducer/result"](t)}function o(e,t,n,A){return e["@@transducer/result"](n[A](a(e["@@transducer/step"],e),t))}var l=A(r,o,i);e.exports=l},(e,t,n)=>{var A=n(1056),r="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){return function(a,i,o){if(A(o))return e(a,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(a,i,o,"fantasy-land/reduce");if(null!=o[r])return n(a,i,o[r]());if("function"==typeof o.next)return n(a,i,o);if("function"==typeof o.reduce)return t(a,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}},(e,t,n)=>{var A=n(341),r=n(1028),a=n(1052),i=A(function(e){return!!r(e)||!!e&&("object"==typeof e&&(!a(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=i},e=>{e.exports=function(e,t,n){for(var A=0,r=n.length;A<r;){if((t=e["@@transducer/step"](t,n[A]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}A+=1}return e["@@transducer/result"](t)}},(e,t,n)=>{var A=n(1022),r=n(340)(function(e,t){return A(e.length,function(){return e.apply(t,arguments)})});e.exports=r},e=>{var t=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new t(e)}},(e,t,n)=>{var A=n(341)(function(e){return function(){return e}});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e&&t});e.exports=A},(e,t,n)=>{var A=n(340)(n(1027)(["any"],n(1063),function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}));e.exports=A},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=A(this.xf["@@transducer/step"](e,!0))),e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(341),r=n(1021),a=n(1034),i=n(1046),o=n(1053),l=A(function(e){return r(o(a,0,i("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});e.exports=l},(e,t,n)=>{var A=n(1020),r=n(340),a=n(1066),i=n(1047),o=r(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:a(function(e,n){return A(e,i(n,t))},[],e)});e.exports=o},(e,t,n)=>{var A=n(1043);function r(e,t,n){for(var A=n.next();!A.done;)t=e(t,A.value),A=n.next();return t}function a(e,t,n,A){return n[A](e,t)}var i=n(1055)(A,a,r);e.exports=i},(e,t,n)=>{var A=n(1068),r=n(340)(n(1027)([],n(1069),A));e.exports=r},e=>{e.exports=function(e,t){for(var n=0,A=t.length-(e-1),r=new Array(A>=0?A:0);n<A;)r[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return r}},(e,t,n)=>{var A=n(1020),r=n(1032),a=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return A(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(1020),r=n(340)(function(e,t){return A(t,[e])});e.exports=r},(e,t,n)=>{var A=n(340)(function(e,t){return e.apply(this,t)});e.exports=A},(e,t,n)=>{var A=n(341),r=n(1028),a=n(1071),i=n(1021),o=n(1034),l=n(1046),s=n(1053),c=n(611),u=n(1073);function h(e,t){return r(t)?t.map(e):c(t).reduce(function(n,A){return n[A]=e(t[A]),n},{})}var d=A(function g(e){return e=h(function(e){return"function"==typeof e?e:g(e)},e),i(s(o,0,l("length",u(e))),function(){var t=arguments;return h(function(e){return a(e,t)},e)})});e.exports=d},(e,t,n)=>{var A=n(341),r=n(611),a=A(function(e){for(var t=r(e),n=t.length,A=[],a=0;a<n;)A[a]=e[t[a]],a+=1;return A});e.exports=a},(e,t,n)=>{var A=n(340)(function(e,t){return t(e)});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){var A=e(t),r=e(n);return A<r?-1:A>r?1:0});e.exports=A},(e,t,n)=>{var A=n(405),r=n(1077),a=A(function(e,t,n){return r([e],t,n)});e.exports=a},(e,t,n)=>{var A=n(405),r=n(408),a=n(1050),i=n(1078),o=n(752),l=A(function s(e,t,n){if(0===e.length)return t;var A=e[0];if(e.length>1){var l=!o(n)&&r(A,n)&&"object"==typeof n[A]?n[A]:a(e[1])?[]:{};t=s(Array.prototype.slice.call(e,1),t,l)}return i(A,t,n)});e.exports=l},(e,t,n)=>{var A=n(1028),r=n(1050);e.exports=function(e,t,n){if(r(e)&&A(n)){var a=[].concat(n);return a[e]=t,a}var i={};for(var o in n)i[o]=n[o];return i[e]=t,i}},(e,t,n)=>{var A=n(341),r=n(1080),a=A(function(e){return r(2,e)});e.exports=a},(e,t,n)=>{var A=n(340)(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,A){return t.call(this,e,n,A)};case 4:return function(e,n,A,r){return t.call(this,e,n,A,r)};case 5:return function(e,n,A,r,a){return t.call(this,e,n,A,r,a)};case 6:return function(e,n,A,r,a,i){return t.call(this,e,n,A,r,a,i)};case 7:return function(e,n,A,r,a,i,o){return t.call(this,e,n,A,r,a,i,o)};case 8:return function(e,n,A,r,a,i,o,l){return t.call(this,e,n,A,r,a,i,o,l)};case 9:return function(e,n,A,r,a,i,o,l,s){return t.call(this,e,n,A,r,a,i,o,l,s)};case 10:return function(e,n,A,r,a,i,o,l,s,c){return t.call(this,e,n,A,r,a,i,o,l,s,c)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1082),a=n(1061),i=n(1083),o=A(function(e,t){return r(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:i(a)(e,t)});e.exports=o},e=>{e.exports=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}},(e,t,n)=>{var A=n(341),r=n(1084),a=A(function(e){return r(e.length,e)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1043),a=n(1065),i=n(1021),o=n(1047),l=A(function(e,t){var n=i(e,t);return i(e,function(){return r(a,o(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});e.exports=l},(e,t,n)=>{var A=n(341)(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1087),i=n(1088),o=n(1047),l=A(r(["fantasy-land/chain","chain"],i,function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:a(!1)(o(e,t))}));e.exports=l},(e,t,n)=>{var A=n(1056);e.exports=function(e){return function t(n){for(var r,a,i,o=[],l=0,s=n.length;l<s;){if(A(n[l]))for(i=0,a=(r=e?t(n[l]):n[l]).length;i<a;)o[o.length]=r[i],i+=1;else o[o.length]=n[l];l+=1}return o}}},(e,t,n)=>{var A=n(1089),r=n(1048);e.exports=function(e){return function(t){return r(e)(A(t))}}},(e,t,n)=>{var A=n(1090),r=n(1056),a=n(1057),i=n(1054),o=n(1032),l="@@transducer/init",s="@@transducer/step",c="@@transducer/result",u=function(){function e(e){this.xf=e}return e.prototype[l]=o.init,e.prototype[c]=o.result,e.prototype[s]=function(e,t){var n=this.xf[s](e,t);return n["@@transducer/reduced"]?A(n):n},e}(),h=function(){function e(e){this.xf=new u(e)}return e.prototype[l]=o.init,e.prototype[c]=o.result,e.prototype[s]=function(e,t){return r(t)?i(this.xf,e,t):a(this.xf,e,[t])},e}();e.exports=function(e){return new h(e)}},e=>{e.exports=function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}},(e,t,n)=>{var A=n(405)(function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n});e.exports=A},(e,t,n)=>{var A=n(1093),r=n(341)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():A(e,!0)});e.exports=r},(e,t,n)=>{var A=n(1094),r=n(613);e.exports=function i(e,t,n){if(n||(n=new a),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var o=function(A){var r=n.get(e);if(r)return r;for(var a in n.set(e,A),e)Object.prototype.hasOwnProperty.call(e,a)&&(A[a]=t?i(e[a],!0,n):e[a]);return A};switch(r(e)){case"Object":return o(Object.create(Object.getPrototypeOf(e)));case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return A(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}};var a=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),A=this.map[n];A||(this.map[n]=A=[]),A.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var n=this.map[t],A=0;A<n.length;A+=1){var r=n[A];if(r[0]===e)return r[1]}else{var a=this.hash(e),i=this.map[a];if(i)for(var o=0;o<i.length;o+=1){var l=i[o];if(l[0]===e)return l[1]}}},e}()},e=>{e.exports=function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}},(e,t,n)=>{var A=n(340),r=n(1066),a=A(function(e,t){var n=r(function(t,n){var A=e(n);return t[A]===undefined&&(t[A]=[]),t[A].push(n),t},{},t),A=[];for(var a in n)A.push(n[a]);return A});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}});e.exports=A},(e,t,n)=>{var A=n(1083)(n(1098));e.exports=A},(e,t,n)=>{var A=n(341)(function(e){return!e});e.exports=A},(e,t,n)=>{var A=n(1100),r=n(1105);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return A.apply(this,r(arguments))}},(e,t,n)=>{var A=n(1022),r=n(1101),a=n(1053),i=n(1102);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return A(arguments[0].length,a(r,arguments[0],i(arguments)))}},e=>{e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},(e,t,n)=>{var A=n(1103),r=n(341)(A("tail",n(1104)(1,Infinity)));e.exports=r},(e,t,n)=>{var A=n(1028);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return A(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}},(e,t,n)=>{var A=n(1103),r=n(405)(A("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));e.exports=r},(e,t,n)=>{var A=n(341),r=n(1052),a=A(function(e){return r(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1107),a=n(1105),i=A(function(e,t){return r.apply(this,[e,a(t)])});e.exports=i},(e,t,n)=>{var A=n(1022),r=n(340),a=n(1108),i=n(1066),o=n(1102),l=n(1109),s=r(function(e,t){if(t.length<=0)return l;var n=a(t),r=o(t);return A(n.length,function(){return i(function(t,n){return e.call(this,n,t)},n.apply(this,arguments),r)})});e.exports=s},(e,t,n)=>{var A=n(1051)(0);e.exports=A},(e,t,n)=>{var A=n(341)(n(1110));e.exports=A},e=>{e.exports=function(e){return e}},(e,t,n)=>{var A=n(340),r=n(1028),a=n(1082),i=n(1052),o=n(1035),l=A(function(e,t){if(r(e)){if(r(t))return e.concat(t);throw new TypeError(o(t)+" is not an array")}if(i(e)){if(i(t))return e+t;throw new TypeError(o(t)+" is not a string")}if(null!=e&&a(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&a(e.concat))return e.concat(t);throw new TypeError(o(e)+' does not have a method named "concat" or "fantasy-land/concat"')});e.exports=l},(e,t,n)=>{var A=n(1022),r=n(341),a=n(1047),i=n(1034),o=n(1053),l=r(function(e){var t=o(i,0,a(function(e){return e[0].length},e));return A(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})});e.exports=l},(e,t,n)=>{var A=n(341),r=n(1114),a=A(function(e){return r(e.length,e)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1115),a=n(1080),i=A(function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:r(a(e,function(n,A,r,a,i,o,l,s,c,u){switch(e){case 1:return new t(n);case 2:return new t(n,A);case 3:return new t(n,A,r);case 4:return new t(n,A,r,a);case 5:return new t(n,A,r,a,i);case 6:return new t(n,A,r,a,i,o);case 7:return new t(n,A,r,a,i,o,l);case 8:return new t(n,A,r,a,i,o,l,s);case 9:return new t(n,A,r,a,i,o,l,s,c);case 10:return new t(n,A,r,a,i,o,l,s,c,u)}}))});e.exports=i},(e,t,n)=>{var A=n(341),r=n(1021),a=A(function(e){return r(e.length,e)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1037),a=n(1021),i=n(1034),o=n(1046),l=n(1053),s=A(function(e,t){return a(l(i,0,o("length",t)),function(){var n=arguments,A=this;return e.apply(A,r(function(e){return e.apply(A,n)},t))})});e.exports=s},(e,t,n)=>{var A=n(1066),r=n(1115)(function(e,t){return A(function(t,n){return e(n)?t+1:t},0,t)});e.exports=r},(e,t,n)=>{var A=n(1119)(function(e,t){return e+1},0);e.exports=A},(e,t,n)=>{var A=n(1093),r=n(1023),a=n(1027),i=n(408),o=n(1031),l=n(1054),s=n(1120),c=n(1059),u=r(4,[],a([],s,function(e,t,n,r){var a=c(function(r,a){var l=n(a),s=e(i(l,r)?r[l]:A(t,!1),a);return s&&s["@@transducer/reduced"]?o(r):(r[l]=s,r)});return l(a,{},r)}));e.exports=u},(e,t,n)=>{var A=n(1093),r=n(408),a=n(1032),i=function(){function e(e,t,n,A){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=A,this.inputs={}}return e.prototype["@@transducer/init"]=a.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(r(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,A(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();e.exports=function(e,t,n){return function(A){return new i(e,t,n,A)}}},(e,t,n)=>{var A=n(1018)(-1);e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return null==t||t!=t?e:t});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){var A=e(t),r=e(n);return A>r?-1:A<r?1:0});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1125),a=A(function(e,t){return r([e],t)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1126),a=n(1050),i=n(1028),o=n(1076);var l=A(function s(e,t){if(null==t)return t;switch(e.length){case 0:return t;case 1:return r(e[0],t);default:var n=e[0],A=Array.prototype.slice.call(e,1);return null==t[n]?function(e,t){if(a(e)&&i(t))return[].concat(t);var n={};for(var A in t)n[A]=t[A];return n}(n,t):o(n,s(A,t[n]),t)}});e.exports=l},(e,t,n)=>{var A=n(1050),r=n(1028),a=n(1127);e.exports=function(e,t){if(null==t)return t;if(A(e)&&r(t))return a(e,1,t);var n={};for(var i in t)n[i]=t[i];return delete n[e],n}},(e,t,n)=>{var A=n(405)(function(e,t,n){var A=Array.prototype.slice.call(n,0);return A.splice(e,t),A});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e/t});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1130),i=n(1104),o=A(r(["drop"],a,function(e,t){return i(Math.max(0,e),Infinity,t)}));e.exports=o},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1132),i=A(r([],n(1135),a));e.exports=i},(e,t,n)=>{var A=n(1133);e.exports=function(e,t){return A(e<t.length?t.length-e:0,t)}},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1134),i=n(1104),o=A(r(["take"],a,function(e,t){return i(0,e<0?Infinity:e,t)}));e.exports=o},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?A(n):n},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){if(e<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1137),i=A(r([],n(1138),a));e.exports=i},(e,t,n)=>{var A=n(1104);e.exports=function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return A(0,n+1,t)}},(e,t,n)=>{var A=n(1032),r=n(1054),a=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=r(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(341),r=n(1027),a=n(1140),i=n(1141),o=n(606),l=A(r([],function(){return a(o)},i(o)));e.exports=l},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=undefined,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1140),i=n(1142),o=A(r([],a,function(e,t){var n=[],A=1,r=t.length;if(0!==r)for(n[0]=t[0];A<r;)e(i(n),t[A])||(n[n.length]=t[A]),A+=1;return n}));e.exports=o},(e,t,n)=>{var A=n(1051)(-1);e.exports=A},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1140),i=n(1141),o=n(1144),l=A(function(e,t){return r([],function(){return a(o(e))},i(o(e)))(t)});e.exports=l},(e,t,n)=>{var A=n(405),r=n(606),a=A(function(e,t,n){return r(e(t),e(n))});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1146),i=n(1104),o=A(r(["dropWhile"],a,function(e,t){for(var n=0,A=t.length;n<A&&e(t[n]);)n+=1;return i(n,Infinity,t)}));e.exports=o},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340),r=n(1082),a=n(1083),i=n(1148),o=A(function(e,t){return r(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:a(i)(e,t)});e.exports=o},(e,t,n)=>{var A=n(340)(function(e,t){return e||t});e.exports=A},(e,t,n)=>{var A=n(341),r=n(612),a=n(1028),i=n(406),o=n(1052),l=n(1150),s=A(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():a(e)?[]:o(e)?"":i(e)?{}:r(e)?function(){return arguments}():l(e)?e.constructor.from(""):void 0});e.exports=s},e=>{e.exports=function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}},(e,t,n)=>{var A=n(340),r=n(606),a=n(1152),i=A(function(e,t){return r(a(e.length,t),e)});e.exports=i},(e,t,n)=>{var A=n(340),r=n(1129),a=A(function(e,t){return r(e>=0?t.length-e:0,t)});e.exports=a},(e,t,n)=>{var A=n(405),r=n(606),a=A(function(e,t,n){return r(t[e],n[e])});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1028),a=n(406),i=A(function o(e,t){if(!a(t)&&!r(t))return t;var n,A,i,l=t instanceof Array?[]:{};for(A in t)i=typeof(n=e[A]),l[A]="function"===i?n(t[A]):n&&"object"===i?o(n,t[A]):t[A];return l});e.exports=i},(e,t,n)=>{var A=n(340)(n(1027)(["find"],n(1156),function(e,t){for(var n=0,A=t.length;n<A;){if(e(t[n]))return t[n];n+=1}}));e.exports=A},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=A(this.xf["@@transducer/step"](e,t))),e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(340)(n(1027)([],n(1158),function(e,t){for(var n=0,A=t.length;n<A;){if(e(t[n]))return n;n+=1}return-1}));e.exports=A},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=A(this.xf["@@transducer/step"](e,this.idx))),e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(340)(n(1027)([],n(1160),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}));e.exports=A},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(340)(n(1027)([],n(1162),function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}));e.exports=A},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(341)(n(1087)(!0));e.exports=A},(e,t,n)=>{var A=n(341),r=n(1021),a=A(function(e){return r(e.length,function(t,n){var A=Array.prototype.slice.call(arguments,0);return A[0]=n,A[1]=t,e.apply(this,A)})});e.exports=a},(e,t,n)=>{var A=n(1103),r=n(340)(A("forEach",function(e,t){for(var n=t.length,A=0;A<n;)e(t[A]),A+=1;return t}));e.exports=r},(e,t,n)=>{var A=n(340),r=n(611),a=A(function(e,t){for(var n=r(t),A=0;A<n.length;){var a=n[A];e(t[a],a,t),A+=1}return t});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t});e.exports=A},(e,t,n)=>{var A=n(1103),r=n(340)(A("groupBy",n(1119)(function(e,t){return e.push(t),e},[])));e.exports=r},(e,t,n)=>{var A=n(340)(function(e,t){for(var n=[],A=0,r=t.length;A<r;){for(var a=A+1;a<r&&e(t[a-1],t[a]);)a+=1;n.push(t.slice(A,a)),A=a}return n});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e>t});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e>=t});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1173),a=A(function(e,t){return r([e],t)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(408),a=n(752),i=A(function(e,t){if(0===e.length||a(t))return!1;for(var n=t,A=0;A<e.length;){if(a(n)||!r(e[A],n))return!1;n=n[e[A]],A+=1}return!0});e.exports=i},(e,t,n)=>{var A=n(340),r=n(752),a=A(function(e,t){return!r(t)&&e in t});e.exports=a},(e,t,n)=>{var A=n(610),r=function(e,t){switch(arguments.length){case 0:return r;case 1:return function n(t){return 0===arguments.length?n:A(e,t)};default:return A(e,t)}};e.exports=r},(e,t,n)=>{var A=n(405),r=n(1021),a=A(function(e,t,n){return r(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})});e.exports=a},(e,t,n)=>{var A=n(1018)(1);e.exports=A},(e,t,n)=>{var A=n(604),r=n(340)(A);e.exports=r},(e,t,n)=>{var A=n(1119)(function(e,t){return t},null);e.exports=A},(e,t,n)=>{var A=n(340),r=n(605),a=n(1028),i=A(function(e,t){return"function"!=typeof t.indexOf||a(t)?r(t,e,0):t.indexOf(e)});e.exports=i},(e,t,n)=>{var A=n(1104)(0,-1);e.exports=A},(e,t,n)=>{var A=n(600),r=n(405),a=n(1044),i=r(function(e,t,n){return a(function(t){return A(e,t,n)},t)});e.exports=i},(e,t,n)=>{var A=n(405)(function(e,t,n){e=e<n.length&&e>=0?e:n.length;var A=Array.prototype.slice.call(n,0);return A.splice(e,0,t),A});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1044),a=n(603),i=n(1186),o=A(function(e,t){for(var n=new a,A=0;A<e.length;A+=1)n.add(e[A]);return i(r(n.has.bind(n),t))});e.exports=o},(e,t,n)=>{var A=n(1109),r=n(1187)(A);e.exports=r},(e,t,n)=>{var A=n(603),r=n(340)(n(1027)([],n(1188),function(e,t){for(var n,r,a=new A,i=[],o=0;o<t.length;)n=e(r=t[o]),a.add(n)&&i.push(r),o+=1;return i}));e.exports=r},(e,t,n)=>{var A=n(603),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e,this.set=new A}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](e,t):e},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(1103),r=n(340)(A("intersperse",function(e,t){for(var n=[],A=0,r=t.length;A<r;)A===r-1?n.push(t[A]):n.push(t[A],e),A+=1;return n}));e.exports=r},(e,t,n)=>{var A=n(405),r=n(1029),a=n(1054),i=n(1191),o=A(function(e,t,n){var A=t(r(e)?e:i(e));return a(A,A["@@transducer/init"](),n)});e.exports=o},(e,t,n)=>{var A=n(1192),r=n(1110),a=n(1056),i=n(1029),o=n(1193),l={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":r},s={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":r},c={"@@transducer/init":Object,"@@transducer/step":function(e,t){return A(e,a(t)?o(t[0],t[1]):t)},"@@transducer/result":r};e.exports=function(e){if(i(e))return e;if(a(e))return l;if("string"==typeof e)return s;if("object"==typeof e)return c;throw new Error("Cannot create transformer for "+e)}},(e,t,n)=>{var A=n(408);e.exports="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var a=arguments[n];if(null!=a)for(var i in a)A(i,a)&&(t[i]=a[i]);n+=1}return t}},(e,t,n)=>{var A=n(340)(function(e,t){var n={};return n[e]=t,n});e.exports=A},(e,t,n)=>{var A=n(341),r=n(408),a=n(611),i=A(function(e){for(var t=a(e),n=t.length,A=0,i={};A<n;){var o=t[A],l=e[o],s=r(l,i)?i[l]:i[l]=[];s[s.length]=o,A+=1}return i});e.exports=i},(e,t,n)=>{var A=n(341),r=n(611),a=A(function(e){for(var t=r(e),n=t.length,A=0,a={};A<n;){var i=t[A];a[e[i]]=i,A+=1}return a});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1082),a=n(1021),i=n(1035),o=A(function(e,t){return a(e+1,function(){var n=arguments[e];if(null!=n&&r(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(i(n)+' does not have a method named "'+t+'"')})});e.exports=o},(e,t,n)=>{var A=n(341),r=n(1149),a=n(606),i=A(function(e){return null!=e&&a(e,r(e))});e.exports=i},(e,t,n)=>{var A=n(752),r=n(341)(function(e){return!A(e)});e.exports=r},(e,t,n)=>{var A=n(1196)(1,"join");e.exports=A},(e,t,n)=>{var A=n(341),r=n(1116),a=A(function(e){return r(function(){return Array.prototype.slice.call(arguments,0)},e)});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){var t,n=[];for(t in e)n[n.length]=t;return n});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1028),a=n(606),i=A(function(e,t){if("function"!=typeof t.lastIndexOf||r(t)){for(var n=t.length-1;n>=0;){if(a(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)});e.exports=i},(e,t,n)=>{var A=n(341),r=n(1204),a=A(function(e){return null!=e&&r(e.length)?e.length:NaN});e.exports=a},e=>{e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},(e,t,n)=>{var A=n(340),r=n(1047),a=A(function(e,t){return function(n){return function(A){return r(function(e){return t(e,A)},n(e(A)))}}});e.exports=a},(e,t,n)=>{var A=n(341),r=n(1205),a=n(1051),i=n(1207),o=A(function(e){return r(a(e),i(e))});e.exports=o},(e,t,n)=>{var A=n(405),r=n(1025),a=n(1060),i=A(function(e,t,n){return r(e,a(t),n)});e.exports=i},(e,t,n)=>{var A=n(341),r=n(1077),a=n(1205),i=n(1209),o=A(function(e){return a(i(e),r(e))});e.exports=o},(e,t,n)=>{var A=n(340),r=n(1210),a=A(function(e,t){return r([e],t)[0]});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1050),a=n(1051),i=A(function(e,t){return e.map(function(e){for(var n,A=t,i=0;i<e.length;){if(null==A)return;n=e[i],A=r(n)?a(n,A):A[n],i+=1}return A})});e.exports=i},(e,t,n)=>{var A=n(341),r=n(1076),a=n(1205),i=n(1049),o=A(function(e){return a(i(e),r(e))});e.exports=o},(e,t,n)=>{var A=n(340)(function(e,t){return e<t});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e<=t});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){for(var A=0,r=n.length,a=[],i=[t];A<r;)i=e(i[0],n[A]),a[A]=i[1],A+=1;return[i[0],a]});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){for(var A=n.length-1,r=[],a=[t];A>=0;)a=e(a[0],n[A]),r[A]=a[1],A-=1;return[a[0],r]});e.exports=A},(e,t,n)=>{var A=n(1043),r=n(340),a=n(611),i=r(function(e,t){return A(function(n,A){return n[A]=e(t[A],A,t),n},{},a(t))});e.exports=i},(e,t,n)=>{var A=n(340)(function(e,t){return t.match(e)||[]});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1050),a=A(function(e,t){return r(e)?!r(t)||t<1?NaN:(e%t+t)%t:NaN});e.exports=a},(e,t,n)=>{var A=n(405),r=n(1034),a=A(function(e,t,n){var A=e(n);return r(e(t),A)===A?n:t});e.exports=a},(e,t,n)=>{var A=n(341),r=n(1221),a=A(function(e){return r(e)/e.length});e.exports=a},(e,t,n)=>{var A=n(1018),r=n(1053)(A,0);e.exports=r},(e,t,n)=>{var A=n(341),r=n(1220),a=A(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,A=(t-n)/2;return r(Array.prototype.slice.call(e,0).sort(function(e,t){return e<t?-1:e>t?1:0}).slice(A,A+n))});e.exports=a},(e,t,n)=>{var A=n(1022),r=n(340),a=n(408),i=r(function(e,t){var n={};return A(t.length,function(){var A=e.apply(this,arguments);return a(A,n)||(n[A]=t.apply(this,arguments)),n[A]})});e.exports=i},(e,t,n)=>{var A=n(1192),r=n(341)(function(e){return A.apply(null,[{}].concat(e))});e.exports=r},(e,t,n)=>{var A=n(340),r=n(404),a=A(function(e,t){return r(function(e,t,n){return t},e,t)});e.exports=a},(e,t,n)=>{var A=n(405),r=n(404),a=A(function(e,t,n){return r(function(t,n,A){return e(n,A)},t,n)});e.exports=a},(e,t,n)=>{var A=n(1192),r=n(340)(function(e,t){return A({},t,e)});e.exports=r},(e,t,n)=>{var A=n(1192),r=n(340)(function(e,t){return A({},e,t)});e.exports=r},(e,t,n)=>{var A=n(405),r=n(407),a=A(function(e,t,n){return r(function(t,n,A){return e(n,A)},t,n)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1035),a=A(function(e,t){if(e===t)return e;function n(e,t){return e<t!=t<e?t<e?t:e:undefined}var A=n(e,t);if(A!==undefined)return A;var a=n(typeof e,typeof t);if(a!==undefined)return a===typeof e?e:t;var i=r(e),o=n(i,r(t));return o!==undefined?o===i?e:t:e});e.exports=a},(e,t,n)=>{var A=n(405),r=n(1230),a=A(function(e,t,n){var A=e(n);return r(e(t),A)===A?n:t});e.exports=a},(e,t,n)=>{var A=n(405),r=n(1233),a=A(function(e,t,n){return r([e],t,n)});e.exports=a},(e,t,n)=>{var A=n(405),r=n(1028),a=n(406),i=n(408),o=n(1078),l=n(1234),s=A(function c(e,t,n){if(!a(n)&&!r(n))return n;if(0===e.length)return t(n);var A=e[0];if(!i(A,n))return n;if(1===e.length)return l(A,t,n);var s=c(Array.prototype.slice.call(e,1),t,n[A]);return s===n[A]?n:o(A,s,n)});e.exports=s},(e,t,n)=>{var A=n(1028),r=n(1050);e.exports=function(e,t,n){if(r(e)&&A(n)){var a=[].concat(n);return a[e]=t(a[e]),a}var i={};for(var o in n)i[o]=n[o];return i[e]=t(i[e]),i}},(e,t,n)=>{var A=n(340)(function(e,t){return e%t});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){var A=n.length,r=n.slice(),a=e<0?A+e:e,i=t<0?A+t:t,o=r.splice(a,1);return a<0||a>=n.length||i<0||i>=n.length?n:[].concat(r.slice(0,i)).concat(o).concat(r.slice(i,n.length))});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return e*t});e.exports=A},function(e,t,n){var A=this,r=n(403),a=n(340)(function(e,t){return function(n){return e.call(A,r(t,n))}});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){return-e});e.exports=A},(e,t,n)=>{var A=n(1041),r=n(340),a=n(1026),i=r(function(e,t){return a(A(e),t)});e.exports=i},(e,t,n)=>{var A=n(341),r=n(1021),a=n(1051),i=A(function(e){return r(e<0?1:e+1,function(){return a(e,arguments)})});e.exports=i},(e,t,n)=>{var A=n(405)(function(e,t,n){return e(t(n))});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"](t):"function"==typeof e.of?e.of(t):[t]});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){for(var n={},A={},r=0,a=e.length;r<a;)A[e[r]]=1,r+=1;for(var i in t)A.hasOwnProperty(i)||(n[i]=t[i]);return n});e.exports=A},(e,t,n)=>{var A=n(1023)(4,[],function(e,t,n,A){return e(t(n),t(A))});e.exports=A},(e,t,n)=>{var A=n(1022),r=n(341)(function(e){var t,n=!1;return A(e.length,function(){return n?t:(n=!0,t=e.apply(this,arguments))})});e.exports=r},(e,t,n)=>{var A=n(340),r=n(1248),a=A(function(e,t){return r("otherwise",t),t.then(null,e)});e.exports=a},(e,t,n)=>{var A=n(1082),r=n(1036);e.exports=function(e,t){if(null==t||!A(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+r(t,[]))}},(e,t,n)=>{var A=function(e){return{value:e,map:function(t){return A(t(e))}}},r=n(405)(function(e,t,n){return e(function(e){return A(t(e))})(n).value});e.exports=r},(e,t,n)=>{var A=n(340)(function(e,t){return[e,t]});e.exports=A},(e,t,n)=>{var A=n(1020),r=n(1252)(A);e.exports=r},(e,t,n)=>{var A=n(1022),r=n(340);e.exports=function(e){return r(function(t,n){return A(Math.max(0,t.length-n.length),function(){return t.apply(this,e(n,arguments))})})}},(e,t,n)=>{var A=n(1020),r=n(1252)(n(1164)(A));e.exports=r},(e,t,n)=>{var A=n(1042),r=n(1200)([A,n(1040)]);e.exports=r},(e,t,n)=>{var A=n(405),r=n(606),a=n(1209),i=A(function(e,t,n){return r(a(t,n),e)});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1122),a=n(1209),i=A(function(e,t,n){return r(e,a(t,n))});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1209),a=A(function(e,t,n){return e(r(t,n))});e.exports=a},(e,t,n)=>{var A=n(340)(function(e,t){for(var n={},A=0;A<e.length;)e[A]in t&&(n[e[A]]=t[e[A]]),A+=1;return n});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){for(var n={},A=0,r=e.length;A<r;){var a=e[A];n[a]=t[a],A+=1}return n});e.exports=A},(e,t,n)=>{var A=n(1020),r=n(340)(function(e,t){return A([e],t)});e.exports=r},(e,t,n)=>{var A=n(1237),r=n(1053)(A,1);e.exports=r},(e,t,n)=>{var A=n(1037),r=n(1109),a=n(1259),i=n(1263)(A,[a,r]);e.exports=i},(e,t,n)=>{var A=n(340),r=n(1021),a=A(function(e,t){return r(t.length,function(){for(var n=[],A=0;A<t.length;)n.push(t[A].call(this,arguments[A])),A+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))})});e.exports=a},(e,t,n)=>{var A=n(405),r=n(1027),a=n(1265),i=A(r(["fantasy-land/promap","promap"],n(1266),a));e.exports=i},e=>{e.exports=function(e,t,n){return function(A){return t(n(e(A)))}}},(e,t,n)=>{var A=n(1032),r=n(1265),a=function(){function e(e,t,n){this.xf=n,this.f=e,this.g=t}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,r(this.f,this.g,t))},e}();e.exports=function(e,t){return function(n){return new a(e,t,n)}}},(e,t,n)=>{var A=n(405),r=n(1049),a=n(606),i=A(function(e,t,n){return a(e,r(t,n))});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1049),a=n(339),i=A(function(e,t,n){return a(e,r(t,n))});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1122),a=n(1049),i=A(function(e,t,n){return r(e,a(t,n))});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1049),a=A(function(e,t,n){return e(r(t,n))});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1209),a=A(function(e,t){return e.map(function(e){return r([e],t)})});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1204),a=A(function(e,t){if(!r(e)||!r(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],A=e;A<t;)n.push(A),A+=1;return n});e.exports=a},(e,t,n)=>{var A=n(405)(function(e,t,n){for(var A=n.length-1;A>=0;){if((t=e(n[A],t))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}A-=1}return t});e.exports=A},(e,t,n)=>{var A=n(1023),r=n(1054),a=n(1059),i=n(1031),o=A(4,[],function(e,t,n,A){var o=a(function(n,A){return e(n,A)?t(n,A):i(n)});return r(o,n,A)});e.exports=o},(e,t,n)=>{var A=n(341)(n(1031));e.exports=A},(e,t,n)=>{var A=n(340),r=n(1060),a=n(1277),i=A(function(e,t){return a(r(e),t)});e.exports=i},(e,t,n)=>{var A=n(340)(function(e,t){var n,A=Number(t),r=0;if(A<0||isNaN(A))throw new RangeError("n must be a non-negative number");for(n=[];r<A;)n.push(e(r)),r+=1;return n});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){return n.replace(e,t)});e.exports=A},(e,t,n)=>{var A=n(405)(n(1027)([],n(1280),function(e,t,n){for(var A=0,r=n.length,a=[t];A<r;)t=e(t,n[A]),a[A+1]=t,A+=1;return a}));e.exports=A},(e,t,n)=>{var A=n(405),r=n(1032),a="@@transducer/init",i="@@transducer/step",o=function(){function e(e,t,n){this.xf=n,this.f=e,this.acc=t}return e.prototype[a]=function(){return this.xf[i](this.xf[a](),this.acc)},e.prototype["@@transducer/result"]=r.result,e.prototype[i]=function(e,t){return e["@@transducer/reduced"]?e:(this.acc=this.f(this.acc,t),this.xf[i](e,this.acc))},e}(),l=A(function(e,t,n){return new o(e,t,n)});e.exports=l},(e,t,n)=>{var A=n(340),r=n(1065),a=n(1047),i=n(1260),o=n(1273),l=n(1110),s=A(function(e,t){var n="function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e,A={"fantasy-land/of":n};return"function"==typeof t["fantasy-land/traverse"]?t["fantasy-land/traverse"](A,l):"function"==typeof t.traverse?t.traverse(A,l):o(function(e,t){return r(a(i,e),t)},n([]),t)});e.exports=s},(e,t,n)=>{var A=n(405),r=n(1060),a=n(1249),i=A(function(e,t,n){return a(e,r(t),n)});e.exports=i},(e,t,n)=>{var A=n(340)(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){var A=e(t),r=e(n);return A<r?-1:A>r?1:0})});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var A=0,r=0;0===A&&r<e.length;)A=e[r](t,n),r+=1;return A})});e.exports=A},(e,t,n)=>{var A=n(1196)(1,"split");e.exports=A},(e,t,n)=>{var A=n(340),r=n(1203),a=n(1104),i=A(function(e,t){return[a(0,e,t),a(e,r(t),t)]});e.exports=i},(e,t,n)=>{var A=n(340),r=n(1104),a=A(function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],A=0;A<t.length;)n.push(r(A,A+=e,t));return n});e.exports=a},(e,t,n)=>{var A=n(340)(function(e,t){for(var n=0,A=t.length,r=[];n<A&&!e(t[n]);)r.push(t[n]),n+=1;return[r,Array.prototype.slice.call(t,n)]});e.exports=A},(e,t,n)=>{var A=n(1023)(2,[],function(e,t){for(var n=[],A=[],r=0;r<t.length;r+=1)e(t[r])||A.push(t[r]),(r<t.length-1&&e(t[r+1])||r===t.length-1)&&A.length>0&&(n.push(A),A=[]);return n});e.exports=A},(e,t,n)=>{var A=n(340),r=n(606),a=n(1133),i=A(function(e,t){return r(a(e.length,t),e)});e.exports=i},(e,t,n)=>{var A=n(340)(function(e,t){return Number(e)-Number(t)});e.exports=A},(e,t,n)=>{var A=n(405),r=n(1028),a=n(1052),i=n(1092),o=function(e,t,n){var A=n.length,r=n.slice(),a=e<0?A+e:e,i=t<0?A+t:t,o=Math.min(a,i),l=Math.max(a,i);return a<0||a>A||i<0||i>A||a===i?r:r=[].concat(r.slice(0,o)).concat([r[l]]).concat(r.slice(o+1,l)).concat([r[o]]).concat(r.slice(l+1,A))},l=A(function(e,t,n){return r(n)?o(e,t,n):a(n)?function(e,t,n){var A=o(e,t,n);return r(A)?A.join(""):A}(e,t,n):function(e,t,n){var A=i(n),r=Object.getOwnPropertyNames(A);if(r.includes(e)&&r.includes(t)){var a=A[e];A[e]=A[t],A[t]=a}return A}(e,t,n)});e.exports=l},(e,t,n)=>{var A=n(340),r=n(1111),a=n(602),i=A(function(e,t){return r(a(e,t),a(t,e))});e.exports=i},(e,t,n)=>{var A=n(405),r=n(1111),a=n(599),i=A(function(e,t,n){return r(a(e,t,n),a(e,n,t))});e.exports=i},(e,t,n)=>{var A=n(340),r=n(1104),a=A(function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return r(n+1,Infinity,t)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1027),a=n(1298),i=n(1104),o=A(r(["takeWhile"],a,function(e,t){for(var n=0,A=t.length;n<A&&e(t[n]);)n+=1;return i(0,n,t)}));e.exports=o},(e,t,n)=>{var A=n(1031),r=n(1032),a=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):A(e)},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(340)(n(1027)([],n(1300),function(e,t){return e(t),t}));e.exports=A},(e,t,n)=>{var A=n(1032),r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A.init,e.prototype["@@transducer/result"]=A.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t),this.xf["@@transducer/step"](e,t)},e}();e.exports=function(e){return function(t){return new r(e,t)}}},(e,t,n)=>{var A=n(1094),r=n(340),a=n(1302),i=n(1035),o=r(function(e,t){if(!a(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+i(e));return A(e).test(t)});e.exports=o},e=>{e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},(e,t,n)=>{var A=n(340),r=n(1248),a=A(function(e,t){return r("andThen",t),t.then(e)});e.exports=a},(e,t,n)=>{var A=n(1196)(0,"toLowerCase");e.exports=A},(e,t,n)=>{var A=n(341),r=n(408),a=A(function(e){var t=[];for(var n in e)r(n,e)&&(t[t.length]=[n,e[n]]);return t});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t});e.exports=A},(e,t,n)=>{var A=n(1196)(0,"toUpperCase");e.exports=A},(e,t,n)=>{var A=n(1054),r=n(1059),a=n(1021)(4,function(e,t,n,a){return A(e("function"==typeof t?r(t):t),n,a)});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){for(var t=0,n=[];t<e.length;){for(var A=e[t],r=0;r<A.length;)"undefined"==typeof n[r]&&(n[r]=[]),n[r].push(A[r]),r+=1;t+=1}return n});e.exports=A},(e,t,n)=>{var A=n(405),r=n(1047),a=n(1281),i=A(function(e,t,n){var A={"fantasy-land/of":"function"==typeof e["fantasy-land/of"]?e["fantasy-land/of"]:"function"==typeof e.of?e.of:e};return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](A,t):"function"==typeof n.traverse?n.traverse(A,t):a(A,r(t,n))});e.exports=i},(e,t,n)=>{var A=n(341),r="\t\n\x0B\f\r                　\u2028\u2029\ufeff",a=A("function"==typeof String.prototype.trim&&!r.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+r+"]["+r+"]*"),n=new RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")});e.exports=a},(e,t,n)=>{var A=n(1022),r=n(1020),a=n(340)(function(e,t){return A(e.length,function(){try{return e.apply(this,arguments)}catch(n){return t.apply(this,r([n],arguments))}})});e.exports=a},(e,t,n)=>{var A=n(341)(function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}});e.exports=A},(e,t,n)=>{var A=n(341),r=n(1080),a=A(function(e){return r(1,e)});e.exports=a},(e,t,n)=>{var A=n(340),r=n(1021),a=A(function(e,t){return r(e,function(){for(var n,A=1,r=t,a=0;A<=e&&"function"==typeof r;)n=A===e?arguments.length:a+r.length,r=r.apply(this,Array.prototype.slice.call(arguments,a,n)),A+=1,a=n;return r})});e.exports=a},(e,t,n)=>{var A=n(340)(function(e,t){for(var n=e(t),A=[];n&&n.length;)A[A.length]=n[0],n=e(n[1]);return A});e.exports=A},(e,t,n)=>{var A=n(1020),r=n(340)(n(1099)(n(1186),A));e.exports=r},(e,t,n)=>{var A=n(1020),r=n(405),a=n(1319),i=r(function(e,t,n){return a(e,A(t,n))});e.exports=i},(e,t,n)=>{var A=n(340),r=n(1027),a=n(600),i=A(r([],n(1320),function(e,t){for(var n,A=0,r=t.length,i=[];A<r;)n=t[A],a(e,n,i)||(i[i.length]=n),A+=1;return i}));e.exports=i},(e,t,n)=>{var A=n(600),r=n(1032),a=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=r.init,e.prototype["@@transducer/result"]=r.result,e.prototype["@@transducer/step"]=function(e,t){return A(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();e.exports=function(e){return function(t){return new a(e,t)}}},(e,t,n)=>{var A=n(405)(function(e,t,n){return e(n)?n:t(n)});e.exports=A},(e,t,n)=>{var A=n(1110),r=n(1086)(A);e.exports=r},(e,t,n)=>{var A=n(405)(function(e,t,n){for(var A=n;!e(A);)A=t(A);return A});e.exports=A},(e,t,n)=>{var A=n(340),r=n(1028),a=n(1037),i=n(1078),o=A(function(e,t){return e in t&&r(t[e])?a(function(n){return i(e,n,t)},t[e]):[t]});e.exports=o},(e,t,n)=>{var A=n(341)(function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n});e.exports=A},(e,t,n)=>{var A=function(e){return{value:e,"fantasy-land/map":function(){return this}}},r=n(340)(function(e,t){return e(A)(t).value});e.exports=r},(e,t,n)=>{var A=n(405)(function(e,t,n){return e(n)?t(n):n});e.exports=A},(e,t,n)=>{var A=n(340),r=n(408),a=A(function(e,t){for(var n in e)if(r(n,e)&&!e[n](t[n]))return!1;return!0});e.exports=a},(e,t,n)=>{var A=n(340),r=n(408),a=A(function(e,t){for(var n in e)if(r(n,e)&&e[n](t[n]))return!0;return!1});e.exports=a},(e,t,n)=>{var A=n(340),r=n(606),a=n(1047),i=n(1328),o=A(function(e,t){return i(a(r,e),t)});e.exports=o},(e,t,n)=>{var A=n(340),r=n(603),a=n(1040),i=A(function(e,t){for(var n=new r,A=0;A<e.length;A+=1)n.add(e[A]);return a(n.has.bind(n),t)});e.exports=i},(e,t,n)=>{var A=n(340)(function(e,t){return Boolean(!e^!t)});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){for(var n,A=0,r=e.length,a=t.length,i=[];A<r;){for(n=0;n<a;)i[i.length]=[e[A],t[n]],n+=1;A+=1}return i});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){for(var n=[],A=0,r=Math.min(e.length,t.length);A<r;)n[A]=[e[A],t[A]],A+=1;return n});e.exports=A},(e,t,n)=>{var A=n(340)(function(e,t){for(var n=0,A=Math.min(e.length,t.length),r={};n<A;)r[e[n]]=t[n],n+=1;return r});e.exports=A},(e,t,n)=>{var A=n(405)(function(e,t,n){for(var A=[],r=0,a=Math.min(t.length,n.length);r<a;)A[r]=e(t[r],n[r]),r+=1;return A});e.exports=A},(e,t,n)=>{var A=n(1021),r=n(341)(function(e){return A(e.length,function(){var t=arguments;return function(){return e.apply(this,t)}})});e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(){var e,t,n,A,r,a=this.getChildren(),i=this.getDatasets(),o=a.xAxis&&a.xAxis[0]||a.scale,l=[],s=0;if(i){for(e=i.length,t=0;t<e;t++)s=Math.max(s,i[t].components.data.length);for(t=0;t<s;t++)for((r=l[t]=[])[0]=o.getLabel(t).label,n=1;n<=e;n++)A=i[n-1].components.data[t],r[n]=A&&A.config.setValue;return l}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){!function(e){var t=e.getChildren("colorManager");if(!e.getFromEnv("dataSource").colorrange)return t&&(t[0].config.legendItemIds=[]),void e.deleteFromEnv("colorManager");if(t)return e.addToEnv("colorManager",t[0]),void t[0].configure();t=new r["default"],e.attachChild(t,"colorManager"),e.addToEnv("colorManager",t),t.configure()}(e)};var r=A(n(1472))},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=A(n(1473)),o=A(n(1474)),l=n(281),s="gradient",c="icon";function u(e){var t=e||f;return(0,l.getValidColor)(t)||f}var h,d,g,p="rgba(192,192,192,"+(l.isIE?.002:1e-6)+")",f="#000000",m=((g={}).legendCarpetConf={spreadFactor:.85,allowDrag:!1,captionAlignment:"center",padding:{v:3,h:3},style:{fill:"#e4d9c1",stroke:"#c4b89d"}},g.legendCaptionConf={spreadFactor:.2,padding:{v:2,h:2},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal"},bound:{style:{stroke:"none"}}},g.legendBodyConf={spreadFactor:.8,padding:{v:2,h:2},bound:{style:{stroke:"none"}}},g.legendAxisConf={legendAxisHeight:11,spreadFactor:.4,padding:{v:1,h:1},style:{stroke:"none","stroke-opacity":0,"stroke-width":1},line:{grooveLength:3,offset:8,style:{stroke:"rgba(255, 255, 255, 0.65)","stroke-width":1.5}},shadow:{style:{stroke:"none",fill:(0,l.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},bound:{style:{stroke:"none"}}},g.sliderGroupConf={showTooltip:1,outerCircle:{rFactor:1.4,style:{fill:p,stroke:"#757575","stroke-width":3}},innerCircle:{rFactor:.65,style:{fill:p,stroke:"#FFFFFF"}}},g.axisTextItemConf={spreadFactor:.3,padding:{v:1,h:1},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal"}},{init:function(e){d=e.chart},legacyDataParser:function(e,t){var n,A,r,a,i,o,s,c,g,p,f,m,v,b={},B=d.getFromEnv("number-formatter"),y=d.getFromEnv("dataSource"),C=y.data,x=t||{};if(!e)return!1;for("maps"!==d.defaultDatasetType||x.min!==h&&x.max!==h?"HeatMap"!==d.getName()||x.min!==h&&x.max!==h||(x={min:Infinity,max:-Infinity},y.dataset.forEach(function(e){e.data&&e.data.forEach(function(e){x.min=Math.min(x.min,(0,l.pluckNumber)(e.value,x.min)),x.max=Math.max(x.max,(0,l.pluckNumber)(e.value,x.max))})})):(x={min:Infinity,max:-Infinity},C&&C.forEach(function(e){x.min=Math.min(x.min,(0,l.pluckNumber)(e.value,x.min)),x.max=Math.max(x.max,(0,l.pluckNumber)(e.value,x.min))})),b.mapByPercent=f=!!(0,l.pluckNumber)(e.mapbypercent,0),n=e.color||[],e.minvalue===h&&(e.minvalue=x.min!==h?f?0:x.min:0),e.maxvalue===h&&(e.maxvalue=x.max!==h?f?100:x.max:100),e.maxvalue!==e.minvalue&&x.min!==Infinity&&x.max!==-Infinity||(e.minvalue=0,e.maxvalue=100),m=!1,i=0,s=n.length;i<s;i++)if(n[i].maxvalue){m=!0;break}for(m||(n=[]),r=e.code,c=b.colorRange=[],b.gradient=!!(0,l.pluckNumber)(e.gradient,1),n.length?r=u(r):(r?(a=u(r),r=u()):(r=u(),v=r,a=(0,l.getLightColor)(v,1)),n.push({code:a,maxvalue:e.maxvalue,label:h})),function(e){var t,n,A,r=d.getFromEnv("number-formatter");for(t=0,n=e.length;t<n;t++)(A=e[t].maxvalue)&&(e[t].maxvalue=r.getCleanValue(A))}(n),n=n.sort(function(e,t){return e.maxvalue-t.maxvalue}),g=p=e.minvalue&&B.getCleanValue(e.minvalue),p=(g!==h||null!==g)&&(f?g+"%":B.legendValue(g)),c.push({code:(0,l.dehashify)(r),value:g,displayValue:p,label:e.startlabel}),i=0,s=n.length;i<s;i++)o=u((A=n[i]).code||A.color),g=p=A.maxvalue,isNaN(parseInt(g,10))||(p=(g!==h||null!==g)&&(f?g+"%":B.legendValue(g)),c.push({code:(0,l.dehashify)(o),value:g,displayValue:p,label:A.label||A.displayvalue}));return c[c.length-1].label=e.endlabel||A.label,b},getDefaultConf:function(e){return g[e]}}),v=function(e){function t(){var t;return(t=e.call(this)||this).datasource={},t.config.legendItemIds=[],t}(0,r["default"])(t,e);var n=t.prototype;return n.configure=function(){var e,t,n=this,A=this.getFromEnv("chart"),r=this.getFromEnv("dataSource").chart.mapbycategory,a=A.config.showLegend,u=A.getChildren("colorRange")&&A.getChildren("colorRange")[0];switch(A.addToEnv("colorManager",n),n.datasource=A.getFromEnv("dataSource"),e=n.datasource.colorrange,u&&u.remove({instant:!0}),a||(n.config.legendItemIds=[]),"maps"===A.defaultDatasetType?e.gradient&&Number(e.gradient)?s:e.color?c:"none":"TreeMap"===A.getName()||e.gradient&&"0"!==e.gradient&&!Number(r)?s:c){case s:m.init({chart:A}),t=m.legacyDataParser(e),(0,l.componentFactory)(A,o["default"],"colorRange",1,[t]),u=A.getChildren("colorRange")[0],A.addToEnv("colorRange",u),t||(u._dontPlot=!0),n.config.legendItemIds=[],n._configureGradientLegend(u);break;case"icon":(0,l.componentFactory)(A,i["default"],"colorRange",1,[{colorRange:e,sortLegend:0,mapByCategory:(0,l.pluckNumber)(r,0),defaultColor:"cccccc",numberFormatter:A.getFromEnv("number-formatter")}]),A.addToEnv("colorRange",A.getChildren("colorRange")[0]),a&&n._addLegendItems();break;case"none":A.deleteFromEnv("colorManager"),n.config.legendItemIds=[]}},n._configureGradientLegend=function(e){var t=this,n=t.getFromEnv("chart").getFromEnv("gLegend");n&&(n.setColorRange(e),t.addExtEventListener("rangeUpdated",function(e,n){t.fireEvent("legendUpdate",{"original-event":e,maxMinArray:n,component:"gradientlegend"})},n))},n._addLegendItems=function(){var e,t,n,A,r,a=this,i=a.config,o=a.getFromEnv("chart"),s=o.getChildren("legend")[0],c=o.getFromEnv("colorRange").colorArr,u=c.length;for(A=0;A<u;A++)r={label:(0,l.pluck)(c[A].label,c[A].displayvalue),datasetObj:c[A],index:A},t=(0,l.getLightColor)(c[A].code,40),e={FCcolor:{color:c[A].code+","+c[A].code+","+t,ratio:"0,70,30",angle:270,alpha:"100,100,100"}},(n=s.getItem(i.legendItemIds[A]))||(i.legendItemIds.push(s.createItem(a)),(n=s.getItem(i.legendItemIds[A])).addEventListener("fc-click",n.itemClickFn)),n.removeLegendState("hidden"),c[A].legendItemId=n&&n.getId(),n.configure(r),n.setStateCosmetics("default",{symbol:{fill:(0,l.toRaphaelColor)(e),rawFillColor:c[A].code}});for(A=u;A<i.legendItemIds.length;A++)s.disposeItem(i.legendItemIds[A]);i.legendItemIds.splice(u)},n.legendInteractivity=function(e){var t=this.getFromEnv("colorRange").colorArr[e.config.index];this.fireEvent("legendUpdate",{legendItem:e,colorObj:t,component:"legend"})},n.getColor=function(e){var t=this;return!Number(t.datasource.chart.mapbycategory)&&Number(t.datasource.colorrange.gradient)?{code:t.getColorByValue(e),label:t.getLabelByValue(e)}:t.getColorObj(e)},n.getValueRatio=function(){return this.getFromEnv("colorRange").getValueRatio()},n.getCumulativeValueRatio=function(){return this.getFromEnv("colorRange").getCumulativeValueRatio()},n.getBoxFill=function(e){return this.getFromEnv("colorRange").getBoxFill(e)},n.getColorByValue=function(e){return this.getFromEnv("colorRange").getColorByValue(e)},n.getColorObj=function(e){return this.getFromEnv("colorRange").getColorObj(e)},n.getLabelByValue=function(e){return this.getFromEnv("colorRange").getLabelByValue(e)},t}(a.ComponentInterface);t["default"]=v},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a=A(n(295)),i=n(281),o=n(297),l=function(e,t){return+e.minvalue===+t.minvalue?e.maxvalue-t.maxvalue:e.minvalue-t.minvalue},s=function(e,t,n){var A=e[0],r=e[1],a=e[2],o=A+(t[0]-A)*n,l=r+(t[1]-r)*n,s=a+(t[2]-a)*n;return{hex:(i.COLOR_BLACK+(o<<16|l<<8|s).toString(16)).slice(-6),rgb:[o,l,s]}},c=function(e){function t(){var t,n=t=e.call(this)||this;return n.mapByCategory=!1,n.colorArr=[],n.noValidRange=!0,n.sortLegend=!1,t}(0,a["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultObj={code:"CCCCCC",alpha:"100"}},n.getType=function(){return"colorComponent"},n.getName=function(){return"colorBucket"},n.configure=function(e){if(e){var t,n,A,a,o,s,c,u,h,d,g,p=this,f=p.mapByCategory,m=e.numberFormatter,v=e.colorRange||{},b=(0,i.extend2)([],v.color),B=this.getLinkedParent(),y=Math.min(Math.max((0,i.pluckNumber)(p.getFromEnv("dataSource").chart.palette,0)-1,0),4),C=B.defaultPaletteOptions&&B.defaultPaletteOptions.paletteColors[y],x=(0,i.pluckNumber)(m.getCleanValue(v.maxvalue),Infinity),w=(0,i.pluckNumber)(m.getCleanValue(v.minvalue),-Infinity),F=p.colorArr;if(e.mapByCategory!==r&&(f=p.mapByCategory=!!Number(e.mapByCategory)),(b=f?b.filter(function(e){return e.code||e.color}):b.filter(function(e){return e.minvalue||e.maxvalue})).forEach(function(e){e.minvalue&&e.maxvalue&&+e.maxvalue<+e.minvalue&&(u=e.maxvalue,e.maxvalue=e.minvalue,e.minvalue=u),e.minvalue?e.maxvalue?(d=m.getCleanValue(e.minvalue),h=m.getCleanValue(e.maxvalue),e.rangeLabel=m.dataLabels(d)+"-"+m.dataLabels(h)):(d=m.getCleanValue(e.minvalue),e.maxvalue=h=x,e.rangeLabel=h===Infinity?">"+m.dataLabels(d):m.dataLabels(d)+"-"+m.dataLabels(h)):(e.minvalue=d=w,h=m.getCleanValue(e.maxvalue),e.rangeLabel=d===-Infinity?"<"+m.dataLabels(h):m.dataLabels(d)+"-"+m.dataLabels(h))}),b.sort(l),b&&(t=b.length)){for(F.length=0,n=0;n<t;n+=1)c=b[n],A=(0,i.pluck)(c.color,c.code,C&&C[n]),a=(0,i.pluck)(c.alpha),s=(0,i.pluck)(c.bordercolor),o=(0,i.pluck)(c.borderalpha,100),h=(0,i.pluckNumber)(c.maxvalue),d=(0,i.pluckNumber)(c.minvalue),g=(0,i.pluck)(c.label,c.displayvalue,c.rangeLabel),(A&&h>=d||f&&g)&&F.push({code:A,alpha:a||"100",oriAlpha:a,maxvalue:h,minvalue:d,label:(0,i.parseUnsafeString)(g),labelId:g.toLowerCase(),bordercolor:s,borderAlpha:o,name:c.name,tllabelfont:c.tllabelfont,tllabelfontsize:c.tllabelfontsize,tllabelfontcolor:c.tllabelfontcolor,trlabelfont:c.trlabelfont,trlabelfontsize:c.trlabelfontsize,trlabelfontcolor:c.trlabelfontcolor,bllabelfont:c.bllabelfont,bllabelfontsize:c.bllabelfontsize,bllabelfontcolor:c.bllabelfontcolor,brlabelfont:c.brlabelfont,brlabelfontsize:c.brlabelfontsize,brlabelfontcolor:c.brlabelfontcolor});p.sortedColorArr=p.colorArr.slice(0)}else p.noValidRange=!0,p.colorArr=[],p.sortedColorArr=[]}},n.getColorObj=function(e){if(e===r)return{outOfRange:!0};var t,n,A,a=this,o=a.sortedColorArr,l=a.gradient?1:0,c=o[l],u=e;if(a.mapByCategory){for(u=(0,i.parseUnsafeString)(u).toLowerCase()||u.toString().toLowerCase();c;){if(c.labelId===u||c.maxvalue>=u&&c.minvalue<=u)return{code:c.code,alpha:c.alpha||"100",oriAlpha:c.oriAlpha,seriesIndex:l,legendItemId:c.legendItemId,tlLabelFont:c.tllabelfont,tlLabelFontSize:c.tllabelfontsize,tlLabelFontColor:c.tllabelfontcolor,trLabelFont:c.trlabelfont,trLabelFontSize:c.trlabelfontsize,trLabelFontColor:c.trlabelfontcolor,blLabelFont:c.bllabelfont,blLabelFontSize:c.bllabelfontsize,blLabelFontColor:c.bllabelfontcolor,brLabelFont:c.brlabelfont,brLabelFontSize:c.brlabelfontsize,brLabelFontColor:c.brlabelfontcolor};c=o[l+=1]}return{outOfRange:!0}}if(a.gradient){if(a.scaleMin<=u&&a.scaleMax>=u){for(;c&&c.maxvalue<u;)c=o[l+=1];return A=(u-c.minvalue)/c.range,{code:s(o[l-1].codeRGB,c.codeRGB,A).hex}}return{outOfRange:!0}}for(;c;){if(u<c.minvalue&&!t&&(n=0===l?{code:c.code,alpha:c.alpha||"100",oriAlpha:c.oriAlpha,seriesIndex:l,name:c.name,label:c.label,outOfRange:!0,bordercolor:c.bordercolor,borderalpha:c.borderAlpha}:{code:o[l-1].code,alpha:o[l-1].alpha||"100",oriAlpha:o[l-1].oriAlpha,seriesIndex:l,name:o[l-1].name,label:o[l-1].label,outOfRange:!0,bordercolor:o[l-1].bordercolor,borderalpha:o[l-1].borderAlpha}),u>c.maxvalue&&l===o.length-1&&(n={code:c.code,alpha:c.alpha||"100",oriAlpha:c.oriAlpha,seriesIndex:l,name:c.name,label:c.label,outOfRange:!0,bordercolor:c.bordercolor,borderalpha:c.borderAlpha}),c.maxvalue>u&&c.minvalue<=u?n={code:c.code,alpha:c.alpha||"100",oriAlpha:c.oriAlpha,seriesIndex:l,name:c.name,label:c.label,bordercolor:c.bordercolor,borderalpha:c.borderAlpha}:u===c.maxvalue&&(t={code:c.code,alpha:c.alpha||"100",oriAlpha:c.oriAlpha,seriesIndex:l,name:c.name,label:c.label,bordercolor:c.bordercolor,borderalpha:c.borderAlpha,tlLabelFont:c.tllabelfont,tlLabelFontSize:c.tllabelfontsize,tlLabelFontColor:c.tllabelfontcolor,trLabelFont:c.trlabelfont,trLabelFontSize:c.trlabelfontsize,trLabelFontColor:c.trlabelfontcolor,blLabelFont:c.bllabelfont,blLabelFontSize:c.bllabelfontsize,blLabelFontColor:c.bllabelfontcolor,brLabelFont:c.brlabelfont,brLabelFontSize:c.brlabelfontsize,brLabelFontColor:c.brlabelfontcolor}),n)return n.tlLabelFont=c.tllabelfont,n.tlLabelFontSize=c.tllabelfontsize,n.tlLabelFontColor=c.tllabelfontcolor,n.trLabelFont=c.trlabelfont,n.trLabelFontSize=c.trlabelfontsize,n.trLabelFontColor=c.trlabelfontcolor,n.blLabelFont=c.bllabelfont,n.blLabelFontSize=c.bllabelfontsize,n.blLabelFontColor=c.bllabelfontcolor,n.brLabelFont=c.brlabelfont,n.brLabelFontSize=c.brlabelfontsize,n.brLabelFontColor=c.brlabelfontcolor,n;if(l===o.length-1&&t)return t;c=o[l+=1]}return o.length?void 0:{outOfRange:!0}},n.getColorRangeArr=function(e,t){var n,A,r,a,o,l,s,c,u=[],h=e,d=t;if(!this.defaultAsigned&&(h>d&&(n=h,h=d,d=n),h<d&&(a=this.getColorObj(h),l=this.getColorObj(d),a&&l))){for(o=h,A=a.seriesIndex,r=l.seriesIndex;A<=r;A+=1)(s=(0,i.extend2)({},this.colorArr[A])).minvalue!==o&&(s.minvalue=o),u.push(s),c=s,o=s.maxvalue;c&&(c.maxvalue=d)}return u},t}(o.ComponentInterface);t["default"]=c},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=n(297),i=n(281),o=function(e,t,n){var A,r=e.value,a=(0,i.HEXtoRGB)(e.code),o=(0,i.HEXtoRGB)(t.code);return A=t.value-r,(0,i.RGBtoHex)([Math.round(a[0]+(o[0]-a[0])/A*(n-r)),Math.round(a[1]+(o[1]-a[1])/A*(n-r)),Math.round(a[2]+(o[2]-a[2])/A*(n-r))])},l=function(e){function t(){var t;return(t=e.call(this)||this).colorRange={},t.valueRatio={},t.data={},t.mapByPercent=i.UNDEF,t}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"colorComponent"},n.getName=function(){return"gradientColorRange"},n.configure=function(e){if(e){var t,n,A,r=this;for(r.data=e,r.appender=i.BLANKSTRING,A=r.colorRange=e.colorRange.sort(function(e,t){return e.value-t.value}),r.valueRatio=i.UNDEF,r.values=[],t=0,n=A.length;t<n;t++)r.values.push(A[t].value)}},n.getValueRatio=function(){var e,t,n=this.colorRange,A=n.length,r=this.valueRatio,a=n[A-1].value,i=n[0].value,o=a-i,l=0;if(r)return r;for(r=this.valueRatio=[],e=0;e<A;e++)t=(n[e].value-i)/o,r.push(100*(t-l)),l=t;return r},n.getCumulativeValueRatio=function(){var e,t,n=this.colorRange,A=n.length,r=n[0].value,a=n[A-1].value,i=[];for(t=0;t<A;t++)e=n[t],i.push((e.value-r)/(a-r)*100);return i},n.getBoxFill=function(e){var t,n,A,r=this.colorRange,a=r.length,o=[];for(A=e?90:0,n=0;n<a;n++)t=r[n],o.push(t.code);return(0,i.toRaphaelColor)({FCcolor:{alpha:"100,100,100",angle:A,color:o.join(","),ratio:this.getValueRatio().join(",")}})},n.getColorByValue=function(e){var t,n,A,r,a=this.values,l=this.colorRange;if(e!==i.UNDEF&&null!==e){for(n=0,t=a.length;n<t;n++){if(e===a[n]){r=l[n].code;break}if(!n&&e<a[n]){A=!0;break}if(n===t-1&&e>a[n]){A=!0;break}if(e>a[n]&&e<a[n+1]){r=o(l[n],l[n+1],e);break}}if(!A)return r}},n.getLabelByValue=function(e){var t,n,A,r,a=this.values,o=this.colorRange;if(e!==i.UNDEF&&null!==e){for(n=0,t=a.length;n<t;n++){if(e===a[n]){r=o[n].label;break}if(!n&&e<a[n]){A=!0;break}if(n===t-1&&e>a[n]){A=!0;break}if(e>a[n]&&e<a[n+1]){r=o[n].label;break}}if(!A)return r}},t}(a.ComponentInterface);t["default"]=l},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=function(e){!function(e){var t,n=e.getFromEnv("dataSource").colorrange,A=e.getFromEnv("dataSource").chart.mapbycategory,c="maps"===e.defaultDatasetType,u="TreeMap"===e.getName(),h=e.getFromEnv("legend"),d=e.getFromEnv("gLegend");t=n&&e.config.showLegend?c?n.gradient&&Number(n.gradient)?l:n.color?s:o:u?n.gradient&&"0"!==n.gradient?l:o:n.gradient&&"0"!==n.gradient&&!Number(A)?l:s:o;switch(t){case"gradient":e.deleteFromEnv("legend"),h&&h.remove(),(0,r.componentFactory)(e,a["default"],"gLegend",1),(d=e.getChildren("gLegend")[0]).configure(),e.addToEnv("gLegend",d);break;case"icon":e.deleteFromEnv("gLegend"),d&&d.remove(),(0,r.componentFactory)(e,i["default"],"legend",1,{showLegend:!0}),(h=e.getChildren("legend")[0]).configure(),e.addToEnv("legend",h);break;case"none":e.deleteFromEnv("gLegend"),e.deleteFromEnv("legend"),d&&d.remove(),h&&h.remove()}}(e)};var r=n(281),a=A(n(1476)),i=A(n(656)),o="none",l="gradient",s="icon"},(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r,a,i,o,l,s=A(n(295)),c=n(281),u=n(297),h={},d="rgba(192,192,192,"+(c.isIE?.002:1e-6)+")",g=!1,p=!0,f=",",m="#000000",v="absolute",b="top",B="bottom",y="left",C="right",x={}.hasOwnProperty,w="M",F="L";function S(e,t){return function n(e,t){var A,a;for(a in e)x.call(e,a)&&(A=e[a],t[a]===r?t[a]=A:"object"==typeof A&&null!==A&&n(A,t[a]))}(e,t),t}function E(e){var t=e||m;return(0,c.getValidColor)(t)||m}function Q(e){var t,n=e.fontSize+"";return n?(t=n.replace(/(\d+)(px)*/,"$1px"),e.fontSize=t,e):e}function k(e){return!(e!==r&&null!=e&&!isNaN(e))}h.CAPTION="CAPTION",h.LEGEND_BODY="LEGEND_BODY",h.AXIS_LABEL="LEGEND_LABEL",h.LEGEND_AXIS="LEGEND_AXIS",h.RANGE="RANGE",h.AXIS_VALUE="AXIS_VALUE",(l={}).legendCarpetConf={spreadFactor:.85,allowDrag:!1,captionAlignment:"center",padding:{v:3,h:3},style:{fill:"#e4d9c1",stroke:"#c4b89d"}},l.legendCaptionConf={spreadFactor:.2,padding:{v:2,h:2},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal"},bound:{style:{stroke:"none"}}},l.legendBodyConf={spreadFactor:.8,padding:{v:2,h:2},bound:{style:{stroke:"none"}}},l.legendAxisConf={legendAxisHeight:11,spreadFactor:.4,padding:{v:1,h:1},style:{stroke:"none","stroke-opacity":0,"stroke-width":1},line:{grooveLength:3,offset:8,style:{stroke:"rgba(255, 255, 255, 0.65)","stroke-width":1.5}},shadow:{style:{stroke:"none",fill:(0,c.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},bound:{style:{stroke:"none"}}},l.sliderGroupConf={showTooltip:1,outerCircle:{rFactor:1.4,style:{fill:d,stroke:"#757575","stroke-width":3}},innerCircle:{rFactor:.65,style:{fill:d,stroke:"#FFFFFF"}}},l.axisTextItemConf={spreadFactor:.3,padding:{v:1,h:1},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal"}},a={init:function(e){o=e.chart},legacyDataParser:function(e,t){var n,A,a,i,l,s,u,h,d,g,p,f,m,v={},b=o.getFromEnv("number-formatter");if(!e)return!1;for(v.mapByPercent=p=!!(0,c.pluckNumber)(e.mapbypercent,0),n=e.color||[],e.minvalue===r&&(e.minvalue=t.min!==r?p?0:t.min:0),e.maxvalue===r&&(e.maxvalue=t.max!==r?p?100:t.max:100),f=!1,l=0,u=n.length;l<u;l++)if(n[l].maxvalue){f=!0;break}for(f||(n=[]),a=e.code,h=v.colorRange=[],v.gradient=!!(0,c.pluckNumber)(e.gradient,1),n.length?a=E(a):(a?(i=E(a),a=E()):(a=E(),m=a,i=(0,c.getLightColor)(m,1)),n.push({code:i,maxvalue:e.maxvalue,label:r})),function(e){var t,n,A,r=o.getFromEnv("number-formatter");for(t=0,n=e.length;t<n;t++)(A=e[t].maxvalue)&&(e[t].maxvalue=r.getCleanValue(A))}(n),n=n.sort(function(e,t){return e.maxvalue-t.maxvalue}),d=g=e.minvalue&&b.getCleanValue(e.minvalue),g=(d!==r||null!==d)&&(p?d+"%":b.legendValue(d)),h.push({code:(0,c.dehashify)(a),value:d,displayValue:g,label:e.startlabel}),l=0,u=n.length;l<u;l++)s=E((A=n[l]).code||A.color),d=g=A.maxvalue,isNaN(parseInt(d,10))||(g=(d!==r||null!==d)&&(p?d+"%":b.legendValue(d)),h.push({code:(0,c.dehashify)(s),value:d,displayValue:g,label:(0,c.parseUnsafeString)(A.label||A.displayvalue)}));return h[h.length-1].label=(0,c.parseUnsafeString)(e.endlabel||A.label),v},getDefaultConf:function(e){return l[e]}};var L=function(e){function t(){var t;return t=e.call(this)||this,i=t,t.enabled=!1,t.drawOptions={},t.components={},t}(0,s["default"])(t,e);var n=t.prototype;return n.getType=function(){return"gradientLegend"},n.getName=function(){return"gLegend"},n.setColorRange=function(e){var t=this.drawOptions.colorRange=e;t&&t._preparationGoneWrong&&(this._dontPlot=!0)},n.configureAttributes=function(){var e,t,n,A,i,o,l,s,u,h,d,g,p=this,f=p.getFromEnv("chart"),m=p.getFromEnv("dataSource").chart,v=p.conf={},b=m.outcnvbasefont,B=this.computeFontSize(m.outcnvbasefontsize),y=m.outcnvbasefontcolor,C=f.config.dataLabelStyle;a.init({chart:f}),p.data=p.getFromEnv("dataSource").colorrange,p._dontPlot||(p.drawOptions={smartLabel:p.getFromEnv("smartLabel"),gLegend:p},p._dontPlot=!1,p._recalculateLogicalSpace=!0,v.caption=(0,c.parseUnsafeString)((0,c.pluck)(m.legendcaption)),v.legendPosition=(0,c.pluck)(m.legendposition,"bottom").toLowerCase(),v.legendXPosition=(0,c.pluckNumber)(m.legendxposition,0),v.legendYPosition=(0,c.pluckNumber)(m.legendyposition,0),v.legendMaxHeight=(0,c.pluckNumber)(m.legendmaxheight,0),v.legendMaxWidth=(0,c.pluckNumber)(m.legendmaxwidth,0),v.legendVertical="string"==typeof m.legendorientation&&"vertical"===m.legendorientation.toLowerCase(),v.showLegend=(0,c.pluckNumber)(m.showlegend,1),v.interactiveLegend=(0,c.pluckNumber)(m.interactivelegend,1),v.showLegendLabels=(0,c.pluckNumber)(m.showlegendlabels,1),e=m.legenditemfontcolor||y,t=m.legenditemfont||b,n=m.legenditemfontsize||B,A=(0,c.pluckFontSizeMaintainUnit)(m.legenditemfontsize,m.outcnvbasefontsize),i=(0,c.pluckNumber)(m.legenditemfontbold,0),o=m.legendcaptionfontcolor||y,l=m.legendcaptionfont||b,s=m.legendcaptionfontsize||B,u=(0,c.pluckFontSizeMaintainUnit)(m.legendcaptionfontsize,m.outcnvbasefontsize),h=(0,c.pluckNumber)(m.legendcaptionfontbold,1),g=(d=m.legendaxisbordercolor?(0,c.hashify)((0,c.dehashify)(m.legendaxisbordercolor)):r)?(0,c.pluckNumber)(m.legendaxisborderalpha,100)/100:r,v.axisTextItemConf={style:{fill:e?(0,c.convertColor)((0,c.pluck)(e)):C.color,fontFamily:t?(0,c.pluck)(t):C.fontFamily,fontSize:n?(0,c.pluckNumber)(n):C.fontSize.match(/\d+/)[0],fontSizeWithUnit:(0,c.pluckFontSizeMaintainUnit)(A,C.fontSize.match(/\d+/)[0]),fontWeight:i?"bold":C.fontWeight}},v.legendCaptionConf={style:{fill:o?(0,c.convertColor)((0,c.pluck)(o)):C.color,fontFamily:l?(0,c.pluck)(l):C.fontFamily,fontSize:s?(0,c.pluckNumber)(s):C.fontSize.match(/\d+/)[0],fontSizeWithUnit:(0,c.pluckFontSizeMaintainUnit)(u,C.fontSize.match(/\d+/)[0]),fontWeight:h?"bold":C.fontWeight,fontStyle:"normal"}},v.legendAxisConf={legendAxisHeight:11,style:{stroke:d,"stroke-opacity":g},line:{style:{stroke:(0,c.convertColor)((0,c.pluck)(m.legendscalelinecolor,"FFF8E9"),(0,c.pluckNumber)(m.legendscalelinealpha,100)),"stroke-width":(0,c.pluckNumber)(m.legendscalelinethickness)}}},v.sliderGroupConf={showTooltip:(0,c.pluckNumber)(m.showtooltip,1),outerCircle:{rFactor:(0,c.pluckNumber)(m.sliderdiameterfactor),style:{stroke:(0,c.convertColor)((0,c.pluck)(m.legendpointerbordercolor,"757575"),(0,c.pluckNumber)(m.legendpointerborderalpha,100))}},innerCircle:{rFactor:(0,c.pluckNumber)(m.sliderholediameterfactor),style:{stroke:(0,c.convertColor)((0,c.pluck)(m.legendpointercolor,"FFFFFF"),(0,c.pluckNumber)(m.legendpointeralpha,100))}}},v.legendCarpetConf={spreadFactor:(0,c.pluckNumber)(m.legendspreadfactor),allowDrag:!!(0,c.pluckNumber)(m.legendallowdrag,0),captionAlignment:(0,c.pluck)(m.legendcaptionalignment,"center"),style:{fill:(0,c.convertColor)((0,c.pluck)(m.legendbgcolor,"e4d9c1"),(0,c.pluckNumber)(m.legendbgalpha,100)),stroke:(0,c.convertColor)((0,c.pluck)(m.legendbordercolor,"c4b89d"),(0,c.pluckNumber)(m.legendborderalpha,100)),"stroke-width":(0,c.pluckNumber)(m.legendborderthickness,1)}})},n.postConfigureInit=function(){var e,t,n,A,r,i,o,l,s,c,u,d=this,g=d.conf,p=g.legendPosition?g.legendPosition.split("-"):[];d.elem={},g.interactiveLegend?(A=S(a.getDefaultConf("sliderGroupConf"),g.sliderGroupConf),this.sGroup?((n=d.elem.sGroup=this.sGroup).configure(A),d.elem.sGroup.gLegend=d):(this.sGroup=d.elem.sGroup=n=new H(A),n.configure(A),d.elem.sGroup.gLegend=d)):(this.sGroup&&this.sGroup.dispose(),this.sGroup&&delete this.sGroup),(A=S(a.getDefaultConf("legendCarpetConf"),g.legendCarpetConf)).legendPosition=p[0]===v&&!g.legendVertical||p[0]===b||p[0]===B?B:C,u=a.getDefaultConf("legendBodyConf"),p[0]===v&&!g.legendVertical||p[0]===b||p[0]===B?(d.drawOptions.refSideKey="canvasWidth",d.drawOptions.refOffsetKey="canvasLeft",r=S(a.getDefaultConf("axisTextItemConf"),g.axisTextItemConf),u.legendPosition=B,(c=S(a.getDefaultConf("legendAxisConf"),g.legendAxisConf)).legendPosition=B,r.legendPosition=B):(d.drawOptions.refSideKey="canvasHeight",d.drawOptions.refOffsetKey="canvasTop",r=S(a.getDefaultConf("axisTextItemConf"),g.axisTextItemConf),u.legendPosition=C,(c=S(a.getDefaultConf("legendAxisConf"),g.legendAxisConf)).legendPosition=C,r.legendPosition=C),Object.keys(this.components).length||(this.components.LegendCarpet=new I,this.components.LegendBody=new N,this.components.LegendAxis=new P,this.components.LegendValues=new O,g.showLegendLabels&&(this.components.LegendLabels=new D)),t=this.components.LegendAxis,l=this.components.LegendValues,e=this.components.LegendCarpet,i=this.components.LegendBody,g.showLegendLabels&&(o=this.components.LegendLabels),this.components.LegendCarpet.configure(A),this.components.LegendValues.configure(r),this.components.LegendAxis.configure(c),this.components.LegendBody.configure(d.drawOptions.colorRange,u,r),g.showLegendLabels&&o.configure(r),g.caption?(s=S(a.getDefaultConf("legendCaptionConf"),g.legendCaptionConf),this.componentCaption&&Object.keys(this.componentCaption).length?this.componentCaption.configure(g.caption,s):(this.componentCaption=new T).configure(g.caption,s),e.addCompositions(this.componentCaption,h.CAPTION)):(e.removeCompositions(h.CAPTION),this.componentCaption&&this.componentCaption.dispose(),delete this.componentCaption),n&&t.addCompositions(n,h.RANGE),o&&i.addCompositions(o,h.AXIS_LABEL),i.addCompositions(t,h.LEGEND_AXIS),i.addCompositions(l,h.AXIS_VALUE),e.addCompositions(i,h.LEGEND_BODY),d.elem.gl=new U(e)},n.getValueRange=function(){var e,t,n=this.elem&&this.elem.sGroup,A=n.sliders,r=n.extremes;return e=A["false"].currPos,t=r[1]-r[0]+A["true"].currPos,[{min:n.getValueFormPixel(e),max:n.getValueFormPixel(t)}]},n._dispose=function(){var t=this;t.elem&&t.elem.gl&&t.elem.gl.dispose(),t.elem={},e.prototype._dispose.call(this)},n.getCalculatedLogicalSpace=function(){return this._logicalArea},n.setCalculatedLogicalSpace=function(e){this._logicalArea=e},n.getLogicalSpace=function(e){var t,n,A,r,a,i=this,o=i.conf,l={height:0,width:0},s=i.drawOptions,c=i.getFromEnv("chartConfig"),u=o.legendPosition.split("-")[0]===v;return i._recalculateLogicalSpace?i._dontPlot?l:(i._recalculateLogicalSpace=!1,i.postConfigureInit(),o.showLegend?(n=s.refSideKey,A=s.refOffsetKey,i.drawOptions.refSide=c[n],i.drawOptions.refOffset=c[A],i.drawOptions.maxOtherSide=e||i.drawOptions.maxOtherSide,i.elem.gl&&(t=i.elem.gl.getLogicalSpace(i.drawOptions,!0),i.elem.gl&&i.setCalculatedLogicalSpace(t)),i.getCalculatedLogicalSpace()):l):(n=s.refSideKey,A=s.refOffsetKey,i.drawOptions.refSide=c[n],u?(r=o.legendMaxHeight<=0?.8*c.height:o.legendMaxHeight<=c.height?o.legendMaxHeight:c.height,a=o.legendMaxWidth<=0?.8*c.width:o.legendMaxWidth<=c.width?o.legendMaxWidth:c.width,o.legendVertical?(i.drawOptions.refSide=r,i.drawOptions.maxOtherSide=a):(i.drawOptions.refSide=a,i.drawOptions.maxOtherSide=r)):(i.drawOptions.refOffset=c[A],i.drawOptions.maxOtherSide=e||i.drawOptions.maxOtherSide),t=i.elem.gl.getLogicalSpace(i.drawOptions,!0),i.setCalculatedLogicalSpace(t),i.getCalculatedLogicalSpace()||l)},n.resetLegend=function(){var e;(e=this.elem&&this.elem.sGroup)&&e.reset()},n._calculateTopPosition=function(e){var t=this.getFromEnv("chart"),n=t.config,A=e,r=t.getChildren("caption")&&t.getChildren("caption")[0],a=t.getChildren("subCaption")&&t.getChildren("subCaption")[0],i=t.getChildren("chartMenuBar")&&t.getChildren("chartMenuBar")[0],o=n.oriTopSpace;return!n.toolbarY&&i&&i.props&&i.props.height&&(o>i.props.height+i.props.y||(A=i.props.y+i.props.height)),r&&r.config&&r.config.text&&r.config.text!==c.BLANKSTRING&&r.config.height&&1===r.config.isOnTop&&(A=r.config.height+r.config.y+r.config.captionPadding),a&&a.config&&a.config.height&&1===a.config.isOnTop&&(A=a.config.y+a.config.height+(r&&r.config&&r.config.captionPadding||0)),A>e?A:e},n.allocatePosition=function(){var e,t,n,A,r,a,i,o,l=this.getFromEnv("chart"),s=l.config,c=this.conf||{},u=c.legendPosition.split("-"),h=s.canvasLeft,d=s.canvasTop,g=s.canvasWidth,p=s.canvasHeight,f=s.marginTop,m=s.marginBottom,x=s.marginRight,w=s.marginLeft;c.axisTextItemConf.style.fontSize=this.computeFontSize(c.axisTextItemConf.style.fontSizeWithUnit),c.legendCaptionConf.style.fontSize=this.computeFontSize(c.legendCaptionConf.style.fontSizeWithUnit),l.config.gLegendEnabled&&(e=this.getCalculatedLogicalSpace(),n=c.width=e.width,A=c.height=e.height,u[0]===v?(i=s.width-n,o=s.height-A,r=c.legendXPosition<0?0:c.legendXPosition>i?i:c.legendXPosition,a=c.legendYPosition<0?0:c.legendYPosition>o?o:c.legendYPosition):u[0]===b||u[0]===B?(t=g-n,r=u[1]===y?h:u[1]===C?h+(t>0?t:0):h+(t<0?0:t/2),a=u[0]===b?this._calculateTopPosition(f):s.height-e.height-m-(s.actionBarHeight||0)):(t=p-A,a=u[1]===b?d:u[1]===B?d+t:d+(t<0?0:t/2),r=u[0]===y?w:s.width-e.width-x),c.xPos=r,c.yPos=a)},n.draw=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("dataSource").colorrange,n=this.conf||{},A=e.hasGradientLegend;e.config.gLegendEnabled&&t&&A&&this.drawLegendComponent(n.xPos,n.yPos,{parentGroup:e.getContainer("parentgroup"),animationManager:e.getFromEnv("animationManager")})},n.drawLegendComponent=function(e,t,n){var A,r=this,a=r.conf;r._dontPlot||(a.showLegend?(r.drawOptions.animationManager=n.animationManager,r.drawOptions.parentGroup=n.parentGroup,r.drawOptions.x=e,r.drawOptions.y=t,r.drawOptions.maxOtherSide=r.drawOptions.maxOtherSide||n.maxOtherSide,A=r.elem.gl.draw(r.drawOptions).getBBox(),a.xPos=A.x,a.yPos=A.y,a.height=A.height,a.width=A.width,r.enabled=!0):r.enabled=!1)},t}(u.ComponentInterface),U=function(){function e(e){this.carpet=e}var t=e.prototype;return t.draw=function(e){return this.carpet.draw(e)},t.getLogicalSpace=function(e,t){return this.carpet.getLogicalSpace(e,t)},t.dispose=function(){this.carpet&&this.carpet.group&&this.carpet.group.remove()},e}(),I=function(){function e(e){this.conf=e,this._id="GL_CARPET",this.compositionsByCategory={},this.node=r,this.group=r,this._lSpace=r,this.autoRecalculate=!1,this.groupName="fc-gradient-legend",this.moveInstructions={}}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getName=function(){return"LegendCarpet"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.removeCompositions=function(e){delete this.compositionsByCategory[e]},t.getBoundingBox=function(e){var t,n,A=this.conf,a=A.spreadFactor,i=e.refSide,o=e.alignment,l=e.refOffset,s=e.x,c=e.y;return"bottom"===this.conf.legendPosition?(t=A.width=i*a,n=e.maxOtherSide,!o||s!==r&&null!==s||(s=(l+i)/2-t/2)):(n=A.height=i*a,t=e.maxOtherSide,!o||c!==r&&null!==c||(c=(l+i)/2-n/2)),{width:t,height:n,x:s,y:c}},t.getPostCalcDecisionsH=function(e,t){var n,A=this.conf.padding,r=0;for(n in this.moveInstructions={},t)r+=t[n].height||0;e.height=r+2*A.v},t.getLogicalSpace=function(e,t){var n,A,r,a,i,o=this._lSpace,l=["CAPTION","LEGEND_BODY"],s=this.conf.padding,c=this.compositionsByCategory,u=0,h={},d=0;if(o&&!t)return o.isImpure=!0,o;(k((o=this._lSpace=A=this.getBoundingBox(e)).x)||k(o.y)||k(o.height)||k(o.width))&&(this.autoRecalculate=!0),(r=S(A,{})).height-=2*s.v,r.width-=2*s.h,r.x+=s.h,r.y+=s.v;for(var g=0;g<l.length;g++)(n=c[l[g]])&&((i=S(r,{})).y+=u,u=r.height*n.conf.spreadFactor,i.height=u+d,a=n.getLogicalSpace(S(i,{}),e,t),d=i.height-a.height,h[l[g]]=a,u=a.height);return this.getPostCalcDecisions(A,h),this._lSpace=A,A},t.setupDragging=function(){var e=this.group,t=0,n=0,A=0,r=0;e.css({cursor:"move"}),e.drag(function(a,i){t=a,n=i,e.attr({transform:"t"+(A+t)+","+(r+n)})},function(){A+=t,r+=n},c.stubFN)},t.draw=function(e){var t,n,A,r=this.conf,a=["CAPTION","LEGEND_BODY"],o=this.compositionsByCategory,l=e.animationManager,s=e.parentGroup;this.getLogicalSpace(e,this.autoRecalculate),A=this._lSpace,this.group=t=l.setAnimation({el:this.group||"group",attr:{name:this.groupName},component:i,container:s,label:"carpetGroup"}),this.node=l.setAnimation({el:this.node||"rect",attr:A,css:r.style,component:i,container:t,label:"rect"});for(var c=0;c<a.length;c++)(n=o[a[c]])&&n.draw(r.captionAlignment,A,{animationManager:l,colorRange:e.colorRange,numberFormatter:e.numberFormatter,parentLayer:t,smartLabel:e.smartLabel,moveInstructions:this.moveInstructions[undefined],gLegend:e.gLegend});return r.allowDrag&&this.setupDragging(),this.node},t.getPostCalcDecisions=function(e,t){return"bottom"===this.conf.legendPosition?this.getPostCalcDecisionsH(e,t):this.getPostCalcDecisionsV(e,t)},t.getPostCalcDecisionsV=function(e,t){var n,A,r,a=this.conf.padding,i=Number.NEGATIVE_INFINITY,o=this.moveInstructions;for(A in this.getPostCalcDecisionsH(e,t),t)i=i<(n=t[A].width)?n:i;for(A in e.width=i+2*a.h,t)(r=i-(n=t[A].width))&&(o[A]="t"+r/2+",0")},e}(),T=function(){function e(e,t){this.rawText=e,this.conf=t,this._id="GL_CAPTION",this.node=r,this.bound=r,this._lSpace=r,this.LegendCaption={},this.LegendCaption.LEFT={x:function(e,t){return t.x+e.width/2+2}},this.LegendCaption.RIGHT={x:function(e,t){return t.x+t.width-e.width/2-2}},this.LegendCaption.CENTER={x:function(){var e=arguments[1];return e.x+e.width/2}}}var t=e.prototype;return t.configure=function(e,t){this.rawText=e,this.conf=t},t.getName=function(){return"LegendCaption"},t.getType=function(){return"caption"},t.getLogicalSpace=function(e,t,n){var A,a,i,o,l=this.conf.padding,s=this._lSpace,c=this.rawText,u=t.gLegend.getFromEnv("chartConfig");return s&&!n?(s.isImpure=!0,s):(s=this._lSpace={bound:{height:0,width:0},node:{logicArea:r,smartText:r}},A=t.smartLabel,c?((a=S(e,{})).height-=2*l.v,a.width-=2*l.h,a.x+=l.h,a.y+=l.v,A.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),Q(o=S(this.conf.style,{})),A.setStyle(this._metaStyle=o),i=A.getSmartText(c,a.width,a.height),a.height=i.height,a.width=i.width,e.height=i.height+2*l.v,e.width=i.width+2*l.h,s.node.smartText=i,s.node.logicArea=a,s.bound=e,e):s.bound)},t.draw=function(){var e,t,n,A,r,a,o,l,s,c,u,h=this.conf,d=h.bound||{};return arguments.length>=3?(o=arguments[0],l=arguments[1],s=arguments[2]):arguments.length>=2&&(o=arguments[0],s=arguments[1]),e=s.parentLayer,u=s.animationManager,this.group=t=u.setAnimation({el:this.group||"group",attr:{name:"legend-caption"},css:h.style,component:i,container:e}),this.getLogicalSpace(l,s),c=(r=this._lSpace).node,A=r.bound,this.bound=n=u.setAnimation({el:this.bound||"rect",attr:A,css:d.style,container:t,component:i}),a="string"==typeof o?this.LegendCaption[o.toUpperCase()].x(c.smartText,l||c.logicArea):o,this.node=u.setAnimation({el:this.node||"text",attr:{text:c.smartText.text,x:a,y:c.logicArea.y+c.smartText.height/2,lineHeight:this._metaStyle.lineHeight,fill:h.style.fill},container:t,component:i}),{group:t,bound:n,node:this.node}},t.dispose=function(){this.group.remove(),this.bound.remove(),this.node.remove()},e}(),N=function(){function e(e,t,n){this.colorRange=e,this.conf=t,this.childTextConf=n,this._id="GL_BODY",this.bound=r,this.group=r,this.compositionsByCategory={},this._lSpace=r,this.SC_STACK=[h.AXIS_LABEL,h.LEGEND_AXIS,h.AXIS_VALUE],this.DARW_STACK=[h.AXIS_VALUE,h.LEGEND_AXIS,h.AXIS_LABEL]}var t=e.prototype;return t.configure=function(e,t,n){this.colorRange=e,this.conf=t,this.childTextConf=n,this.compositionsByCategory={}},t.getName=function(){return"LegendBody"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.getSpaceTaken=function(e){return"bottom"===this.conf.legendPosition?e.height:e.width},t.getLogicalSpace=function(e,t,n){var A,a,i,o,l,s,c,u=this._lSpace,h=this.conf.padding,d=this.compositionsByCategory,g=0;if(u&&!n)return u.isImpure=!0,u;for(u=this._lSpace={bound:{height:0,width:0},node:{logicArea:r}},(o=S(e,{})).height-=2*h.v,o.width-=2*h.h,o.x+=h.h,o.y+=h.v,l=this.getCompositionPlotAreaFor(o),t.colorRange=this.colorRange,s=0,c=this.SC_STACK.length;s<c;s++)(A=d[this.SC_STACK[s]])&&(a=l(i,A.conf.spreadFactor),i=A.getLogicalSpace(S(a,{}),t,n),g+=this.getSpaceTaken(i));return this.updateEffectivePlotArea(e,o,g),u.node.logicArea=o,u.bound=e,e},t.draw=function(){var e,t,n,A,r,a,o,l,s,c,u=this.childTextConf,h=this.conf.bound.style||{},d=this.compositionsByCategory;for(arguments.length>=3?(a=arguments[1],l=arguments[2]):arguments.length>=2&&(l=arguments[1]),t=l.parentLayer,e=l.animationManager,this.getLogicalSpace(a,l),o=this._lSpace,this.group=r=e.setAnimation({el:this.group||"group",attr:{name:"legend-body",transform:"t0,0"},css:u.style,container:t,component:i}),this.bound=n=e.setAnimation({el:this.bound||"rect",attr:o.bound,css:h,container:r,component:i}),l.colorRange=this.colorRange,l.parentLayer=r,s=0,c=this.DARW_STACK.length;s<c;s++)(A=d[this.DARW_STACK[s]])&&A.draw(l);return l.moveInstructions&&r.attr({transform:l.moveInstructions}),{bound:n,group:r}},t.getCompositionPlotAreaFor=function(e){var t,n="bottom"===this.conf.legendPosition;return t=S(e,{}),function(A,r){var a=A;return a=a||{},n?(t.y+=a.height||0,t.height=e.height*r):(t.x+=a.width||0,t.width=e.width*r),t}},t.updateEffectivePlotArea=function(e,t,n){var A=this.conf.padding;"bottom"===this.conf.legendPosition?(t.height=n,e.height=n+2*A.v):(t.width=n,e.width=n+2*A.h)},e}(),D=function(){function e(e){this.conf=e,this.node=[],this._id="GL_LABELS"}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getType=function(){return"label"},t.getName=function(){return"LegendLabel"},t.getEffectivePlotArea=function(e){var t=this.conf.padding;return e.height-=2*t.v,e.width-=2*t.h,e.x+=t.h,e.y+=t.v,e},t.getLogicalSpace=function(e,t,n){var A,a,i,o,l,s,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,E,k,L="bottom"===this.conf.legendPosition,U=this._lSpace,I=this.conf,T=I.padding,N=[],D=t.gLegend.getFromEnv("chartConfig"),P=[];if(U&&!n)return U.isImpure=!0,U;for(A=t.colorRange,a=t.smartLabel,g=A.getCumulativeValueRatio(),i=A.colorRange,m=(U=this._lSpace={bound:{height:0,width:0},node:{logicArea:r,smartTexts:[]}}).node.smartTexts,h=S(e,{}),b=this.getEffectivePlotArea(h),k=L?b.width:b.height,a.useEllipsesOnOverflow(D.useEllipsesWhenOverflow),E=S(I.style,{}),Q(this._metaStyle=E),a.setStyle(E),B=a.getSmartText("W"),o=0,l=i.length;o<l;o++)(d=(0,c.parseUnsafeString)(i[o].label))?P.push({oriIndex:o,label:d}):m[o]=r;if(0===(l=P.length))return{height:0,width:0};for(f=p=l>1?(g[P[l-1].oriIndex]-g[P[0].oriIndex])/2*k/100:Math.max(g[P[0].oriIndex],100-g[P[0].oriIndex])/2*k/100,L?((w=a.getSmartText(P[0].label,f,b.height)).x=g[P[0].oriIndex]*b.width/100,s=w.x+w.width):((w=a.getSmartText(P[0].label,f,b.width)).y=g[P[0].oriIndex]*b.height/100,s=w.y+w.width),N.push(w.height),m[P[0].oriIndex]=w,L?((w=a.getSmartText(P[l-1].label,f,b.height)).x=g[P[l-1].oriIndex]*b.width/100,u=w.x-w.width):((w=a.getSmartText(P[l-1].label,f,b.width)).y=g[P[l-1].oriIndex]*b.height/100,u=w.y-w.width),N.push(w.height),m[P[l-1].oriIndex]=w,x=s,o=1;o<l-1;o++)d=P[o].label,F=P[o].oriIndex,w=r,y=o+1===l-1?u:g[P[o+1].oriIndex]*k/100,C=g[P[o].oriIndex]*k/100,(p=Math.min(C-x,y-C))>2*B.width&&(L?(w=a.getSmartText(d,p,b.height)).x=g[F]*b.width/100:(w=a.getSmartText(d,p,b.width)).y=g[F]*b.height/100,x=p,N.push(w.height)),m[P[o].oriIndex]=w;return v=Math.max.apply(Math,N),L?(b.height=v,e.height=v+2*T.v):(b.width=v,e.width=v+2*T.v),U.node.logicArea=b,U.bound=e,e},t.draw=function(){var e,t,n,A,r,a,o,l,s,c,u,h,d="bottom"===this.conf.legendPosition,g=this.conf,p=g.bound&&g.bound.style||{stroke:"none"},f={};arguments.length>=2&&arguments[1]?(A=arguments[0],o=arguments[1]):arguments.length>=1&&(o=arguments[0]),h=o.animationManager,e=o.parentLayer,this.getLogicalSpace(A,o),s=(a=this._lSpace).node.logicArea,c=a.node.smartTexts,this.group=n=h.setAnimation({el:this.group||"group",attr:{name:"legend-labels"},container:e,component:i}),this.bound=t=h.setAnimation({el:this.bound||"rect",attr:a.bound,css:p,container:n,component:i});for(var m=0;m<this.node.length;m++)this.node[m].remove();for(this.node=[],l=0,u=c.length;l<u;l++)(r=c[l])&&(d?(f.y=s.y+r.height/2,f.x=l===u-1?s.x+r.x-r.width/2:l?s.x+r.x:s.x+r.x+r.width/2):(f.x=s.x+r.height/2,f.y=l===u-1?s.y+r.y-r.width/2:l?s.y+r.y:s.y+r.y+r.width/2),this.node.push(h.setAnimation({el:"text",attr:{text:r.text,x:f.x,y:f.y,lineHeight:this._metaStyle.lineHeight,fill:g.style.fill,transform:d?"R0":"R270,"+f.x+","+f.y},container:n,component:i})));return{group:n,bound:t,node:this.node}},e}(),P=function(){function e(e){this.conf=e,this._id="FL_AXIS",this.node=r,this.group=r,this.shadow=r,this.markerLine=r,this.compositionsByCategory={}}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getName=function(){return"LegendAxis"},t.getType=function(){return"axis"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.getLogicalSpace=function(){var e,t,n,A,a,i,o="bottom"===this.conf.legendPosition,l=arguments[0],s=arguments[2],c=this._lSpace,u=this.conf,d=u.padding,g=u.legendAxisHeight,p=this.compositionsByCategory,f=0;return c&&!s?(c.isImpure=!0,c):(c=this._lSpace={bound:{height:0,width:0},node:{logicArea:r}},(a=S(l,{})).height-=2*d.v,a.width-=2*d.h,a.x+=d.h,a.y+=d.v,e=g/2+u.line.offset,t=g/2,(A=p[h.RANGE])&&(i=A.sliders["false"].conf.outerCircle.rFactor*g,t+=f=Math.max(i/2-g/2,0)),o?(a.y+=f,a.height=n=t+e+f,l.height=n+2*d.v):(a.x+=f,a.width=n=t+e+f,l.width=n+2*d.v),c.node.logicArea=a,c.bound=l,l)},t.getDrawableAxisArea=function(e){var t=this.conf,n="bottom"===this.conf.legendPosition;return{x:e.x,y:e.y,width:n?e.width:t.legendAxisHeight,height:n?t.legendAxisHeight:e.height,r:t.legendAxisHeight/2}},t.preDrawingRangeParamV=function(e){return{x:e.x+e.width/2,calculationBase:e.width,rangeStart:e.y,rangeEnd:e.y+e.height,prop:"x"}},t.preDrawingRangeParamH=function(e){return{y:e.y+e.height/2,calculationBase:e.height,rangeStart:e.x,rangeEnd:e.x+e.width,prop:"y"}},t.preDrawingRangeParam=function(e){return"bottom"===this.conf.legendPosition?this.preDrawingRangeParamH(e):this.preDrawingRangeParamV(e)},t.getScaleMarkerPathStrH=function(e,t){var n,A,r,a,i,o=S(e,{}),l=this.conf.line,s=c.BLANKSTRING,u=c.BLANKSTRING;for(o.x+=o.r,o.width-=2*o.r,i=o.y+o.height,n=0,A=t.length;n<A;n++)r=t[n],a=o.x+r*o.width/100,s+=w+a+f+(i-l.grooveLength)+F+a+f+(i+l.offset);return s+(u+=w+o.x+f+(i+l.offset)+F+(o.x+o.width)+f+(i+l.offset))},t.getColorGradientH=function(e){return{axis:e.getBoxFill(),shadow:(0,c.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:90,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},t.draw=function(){var e,t,n,A,r,a,o,l,s,c,u,d,g,p,f=this.conf,m=f.bound||{},v=f.line,b=m.style||{},B=this.compositionsByCategory;for(n in arguments.length>=2?(t=arguments[0],d=arguments[1]):arguments.length>=1&&(d=arguments[0]),g=d.animationManager,e=d.parentLayer,r=(A=d.colorRange).getCumulativeValueRatio(),this.getLogicalSpace(t,d),u=this._lSpace,this.group=o=g.setAnimation({el:this.group||"group",attr:{name:"legend-axis"},container:e,component:i}),this.bound=g.setAnimation({el:this.bound||"rect",attr:u.bound,css:b,component:i,container:o}),c=this.getDrawableAxisArea(u.node.logicArea),s=this.getColorGradient(A),f.style.fill=s.axis,f.shadow.style.fill=s.shadow,this.node=g.setAnimation({el:this.node||"rect",attr:c,css:f.style,container:o,component:i}),this.shadow=g.setAnimation({el:this.shadow||"rect",attr:c,css:f.shadow.style,container:o,component:i}),p=this.getScaleMarkerPathStr(c,r),this.path=g.setAnimation({el:this.path||"path",attr:{path:p},css:v.style,container:o,component:i}),B)if(a=B[n],n===h.RANGE)d[(l=this.preDrawingRangeParam(c)).prop]=l[l.prop],d.key=l.prop,d.rCalcBase=l.calculationBase,d.parentLayer=o,a.draw(l.rangeStart,l.rangeEnd,d)},t.getScaleMarkerPathStr=function(e,t){return"bottom"===this.conf.legendPosition?this.getScaleMarkerPathStrH(e,t):this.getScaleMarkerPathStrV(e,t)},t.getColorGradient=function(e){return"bottom"===this.conf.legendPosition?this.getColorGradientH(e):this.getColorGradientV(e)},t.getScaleMarkerPathStrV=function(e,t){var n,A,r,a,i,o=S(e,{}),l=this.conf.line,s=c.BLANKSTRING,u=c.BLANKSTRING;for(o.y+=o.r,o.height-=2*o.r,a=o.x+o.width,n=0,r=t.length;n<r;n++)A=t[n],i=o.y+A*o.height/100,s+=w+(a-l.grooveLength)+f+i+F+(a+l.offset)+f+i;return s+(u+=w+(a+l.offset)+f+o.y+F+(a+l.offset)+f+(o.y+o.height))},t.getColorGradientV=function(e){return{axis:e.getBoxFill(!0),shadow:(0,c.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},e}(),M=function(){function e(e,t,n){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=n,this.node=r,this.tracker=r,this.currPos=0,this.swing=[]}var t=e.prototype;return t.configure=function(e,t,n){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=n,this.currPos=0,this.swing=[]},t.getType=function(){return"slider"},t.getName=function(){return"Slider"},t.updateSwingRange=function(e,t){this.swing[+e]=t},t.draw=function(e,t,n,A){var r,a,o,l,s,c,u,h=A.parentLayer,g=A.animationManager,p=this.conf,f=p.outerCircle,m=p.innerCircle,v=g.getFromEnv("chart").config,b=Math.ceil(f.rFactor*A.rCalcBase/2),B=Math.ceil(m.rFactor*A.rCalcBase/2),y=b-B,C=A.gLegend.getFromEnv("toolTipController"),x=this.sliderIndex;return p.outerRadius=b,p.innerRadius=B,this._scaleVal=t,m.style["stroke-width"]=y,B+=l=Math.ceil(f.style["stroke-width"]/2),a=this.node=g.setAnimation({el:this.node||"group",attr:{name:"fc-gl-slider",cursor:"pointer",transform:"t0,0"},container:h,component:i}),"x"===A.key?(s=n,c=e,c+=x?-B:+B):(s=e,c=n,s+=x?-B:+B),this.oCircle=g.setAnimation({el:this.oCircle||"circle",attr:{cx:s,cy:c,r:b},css:f.style,container:a,component:i}),this.iCircle=g.setAnimation({el:this.iCircle||"circle",attr:{cx:s,cy:c,r:B},css:m.style,container:a,component:i}),u=this.tracker=g.setAnimation({el:this.tracker||"circle",attr:{cx:s,cy:c,r:b+5,fill:d,stroke:d,cursor:"pointer"},container:a,component:i}),a.attr({transform:"x"===A.key?"t0,"+this.currPos:"t"+this.currPos+",0"}),r=v.showToolTip?t:"",C.enableToolTip(u,r),this._dragAPI=o=this.getDragAPI("x"===A.key),u.undrag(),u.drag(o.dragging,o.dragStart,o.dragEnd),{translateAscending:b+l}},t.getDragAPI=function(e){var t,n,A,r,a=this,i=a.node,o=a.sliderIndex,l=a.rangeGroup,s=a.conf.innerRadius;return{dragging:function(c){var u,h,d,g,p;return c.stopPropagation(),d=e?c.data[1]:c.data[0],o?(u=t[0]-t[1]+s,h=0):(u=0,h=t[1]-t[0]-s),(p=a.currPos+d)<u?d+=u-p:p>h&&(d-=p-h),i.attr({transform:e?"t0,"+(a.currPos+d):"t"+(a.currPos+d)+",0"}),n=d,A&&clearTimeout(A),A=setTimeout(function(){l.updateWhenInRest(a,a.currPos+d)},100),g=l.updateWhenInMove(a,a.currPos+d),a.conf.showTooltip&&a.tracker.data("__FC_tooltipText",g),r=!0,!0},dragStart:function(e){e.stopPropagation(),t=a.swing,r=!1,l.dragStarted(a)},dragEnd:function(){var e;l.dragCompleted(a,r,a.currPos+n),r&&(A&&clearTimeout(A),A=setTimeout(function(){l.updateWhenInRest(a,a.currPos)},100),a.currPos+=n,e=t[+o]+a.currPos,l.updateRange(a,e))}}},t.dispose=function(){this.node.remove(),this.oCircle.remove(),this.iCircle.remove(),this.tracker.remove()},e}(),H=function(){function e(e){var t=e,n={};this._id="GL_SG1",this.conf=e,n.conf=t,this.extremes=[],this.sliders={},this.min=r,this.max=r,n.sliderGroup=this,this.valueRange=[],this.callbacks=[],this.sliders[!1]=new M(g,n,this._id+"_0"),this.sliders[!0]=new M(p,n,this._id+"_1")}var t=e.prototype;return t.configure=function(e){var t=e,n={};this.min=r,this.max=r,this.conf=e,n.conf=t,n.sliderGroup=this,this.sliders[!1].configure(g,n,this._id+"_0"),this.sliders[!0].configure(p,n,this._id+"_1")},t.getType=function(){return"slider"},t.getName=function(){return"SliderGroup"},t.initRange=function(e,t){var n=e.sliderIndex;this.extremes[+n]=t},t.updateRange=function(e,t){var n=e.sliderIndex;this.sliders[!n].updateSwingRange(n,t)},t.reset=function(){var e={};e.conf=this.conf,e.sliderGroup=this,this.min=r,this.max=r,this.sliders[!1].configure(g,e,this._id+"_0"),this.sliders[!0].configure(p,e,this._id+"_1"),this.draw.apply(this,this._drawParams)},t.draw=function(e,t,n){var A,r,a,i,o,l,s=this.sliders,c=s[!1],u=s[!0],h=n.colorRange,d=h.colorRange,g=h.data.mapByPercent,p=n.gLegend.getFromEnv("number-formatter");return this._fcChart=n.gLegend.getFromEnv("chart"),this.getValueFormPixel=function(e,t,n,A){var r=(t-e)/(A-n);this.getValueFormPixel=function(t){return e+r*t}},this.updateWhenInMove=function(e,t){this.updateWhenInMove=function(n,A){var r,a,i=this.extremes;return r=n.sliderIndex?i[1]-i[0]+A:A,a=this.getValueFormPixel(r),a=t?parseFloat(a).toFixed(2)+"%":e.legendValue(a)}},this._drawParams=[e,t,n],this.updateWhenInMove(p,g),a=c.conf.outerCircle,r=c.conf.innerCircle,i=Math.ceil(r.rFactor*n.rCalcBase/2),i+=Math.ceil(a.style["stroke-width"]/2),this.extremes[0]=e+i,this.extremes[1]=t-i,o=this.extremes[1]-this.extremes[0],this.min=this.min?this.min:d[0].value,this.max=this.max?this.max:d[d.length-1].value,l=d[d.length-1].value-d[0].value,c.currPos=o*(this.min-d[0].value)/l,u.currPos=o*(this.max-d[0].value)/l-o,c.draw(e,g?p.legendPercentValue(this.min):p.legendValue(this.min),n[n.key],n),A=u.draw(t,g?p.legendPercentValue(this.max):p.legendValue(this.max),n[n.key],n),c.swing=this.extremes.slice(0),u.swing=this.extremes.slice(0),c.swing[1]+=u.currPos,u.swing[0]+=c.currPos,this.getValueFormPixel(d[0].value,d[d.length-1].value,this.extremes[0],this.extremes[1]),A},t.updateWhenInRest=function(e,t){var n,A,r=this.sliders,a=this.extremes,i=e.sliderIndex;i?(n=r[!i].currPos,A=a[1]-a[0]+t):(n=t,A=a[1]-a[0]+r[!i].currPos),this.min=Number(this.getValueFormPixel(n).toFixed(2)),this.max=Number(this.getValueFormPixel(A).toFixed(2)),this.gLegend.fireEvent("rangeUpdated",[{min:this.min,max:this.max}])},t.dragStarted=function(e){var t=this.sliders,n=this.extremes,A=e.conf,r=this._fcChart;r.fireChartInstanceEvent("legendpointerdragstart",{pointerIndex:+e.sliderIndex,pointers:[{value:this.getValueFormPixel(t["false"].currPos)},{value:this.getValueFormPixel(n[1]-n[0]+t["true"].currPos)}],legendPointerHeight:A.outerRadius,legendPointerWidth:A.innerRadius,outerRadius:A.outerRadius,innerRadius:A.innerRadius},[r.id])},t.dragCompleted=function(e,t,n){var A,r,a=this.sliders,i=this.extremes,o=e.conf,l=this.getValueFormPixel(a["false"].currPos),s=this.getValueFormPixel(i[1]-i[0]+a["true"].currPos),c=this._fcChart;e.sliderIndex?(A=l,r=this.getValueFormPixel(i[1]-i[0]+n)):(A=this.getValueFormPixel(n),r=s),t&&c.fireChartInstanceEvent("legendrangeupdated",{previousMinValue:l,previousMaxValue:s,minValue:A,maxValue:r},[c.id]),c.fireChartInstanceEvent("legendpointerdragstop",{pointerIndex:+e.sliderIndex,pointers:[{value:A},{value:r}],legendPointerHeight:o.outerRadius,legendPointerWidth:o.innerRadius,outerRadius:o.outerRadius,innerRadius:o.innerRadius},[c.id])},t.dispose=function(){this.sliders[!1].dispose(),this.sliders[!0].dispose()},e}(),O=function(e){function t(){var t;return(t=e.call(this,arguments[0])||this)._id="GL_VALUES",t.node=[],t}(0,s["default"])(t,e);var n=t.prototype;return n.configure=function(e){this.conf=e},n.getName=function(){return"LegendValues"},n.getType=function(){return"legend"},n.getLogicalSpace=function(e,t,n){var A,a,i,o,l,s,c,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,E,k,L,U="bottom"===this.conf.legendPosition,I=this._lSpace,T=this.conf,N=T.padding,D=t.gLegend.getFromEnv("chartConfig"),P=[],M=[];if(I&&!n)return I.isImpure=!0,I;for(A=t.colorRange,a=t.smartLabel,i=A.colorRange,c=A.getCumulativeValueRatio(),L=(I=this._lSpace={bound:{height:0,width:0},node:{logicArea:r,smartTexts:[]}}).node.smartTexts,(x=S(e,{})).height-=2*N.v,x.width-=2*N.h,x.x+=N.h,x.y+=N.v,a.useEllipsesOnOverflow(D.useEllipsesWhenOverflow),k=S(T.style,{}),Q(this._metaStyle=k),a.setStyle(k),E=a.getSmartText("W"),s=i.length,U?(g=u=(c[s-1]-c[0])/2*x.width/100,F=i[0].displayValue,(o=a.getSmartText("string"!=typeof F&&F!==r&&F.toString()||F,g,x.height)).x=c[0]*x.width/100,p=o.x+o.width,P.push(o.height)):(g=u=(c[s-1]-c[0])/2*x.height/100,(o=a.getSmartText(i[0].displayValue,x.width,g)).y=c[0]*x.height/100,v=o.y+o.width,M.push(o.width)),L[0]=o,U?((o=a.getSmartText(i[s-1].displayValue,g,x.height)).x=c[s-1]*x.width/100,m=o.x-o.width,P.push(o.height),f=p):((o=a.getSmartText(i[s-1].displayValue,x.width,g)).y=c[s-1]*x.height/100,B=o.y-o.height,M.push(o.width),b=v),L[s-1]=o,l=1;l<s-1;l++)o=r,w=i[l].displayValue,U?(h=l+1===s-1?m:c[l+1]*x.width/100,d=c[l]*x.width/100,(u=Math.min(d-f,h-d))>1.5*E.width&&((o=a.getSmartText(w,2*u,x.height)).x=c[l]*x.width/100,f=u,P.push(o.height))):(h=l+1===s-1?B:c[l+1]*x.height/100,d=c[l]*x.height/100,(u=Math.min(d-b,h-d))>2*E.height&&((o=a.getSmartText(w,x.width,2*u)).y=c[l]*x.height/100,b=u,M.push(o.width))),L[l]=o;return U?(y=Math.max.apply(Math,P),x.height=y,e.height=y+2*N.v):(C=Math.max.apply(Math,M),x.width=C,e.width=C+2*N.h),I.node.logicArea=x,I.bound=e,e},n.draw=function(){var e,t,n,A,r,a,o,l,s,c,u,h,d,g=this.conf,p="bottom"===g.legendPosition,f=g.bound&&g.bound.style||{stroke:"none"},m={};arguments.length>=2&&arguments[1]?(A=arguments[0],o=arguments[1]):arguments.length>=1&&(o=arguments[0]),d=o.animationManager,e=o.parentLayer,l=o.colorRange.getCumulativeValueRatio(),this.getLogicalSpace(A,o),a=(r=this._lSpace).node.logicArea,u=r.node.smartTexts,this.group=n=d.setAnimation({el:this.group||"group",attr:{name:"legend-values"},container:e,component:i}),this.bound=t=d.setAnimation({el:this.bound||"rect",attr:r.bound,css:f,container:n,component:i});for(var v=0;v<this.node.length;v++)this.node[v].remove();for(this.node=[],s=0,c=l.length;s<c;s++)(h=u[s])&&(p?(m.y=a.y+h.height/2,m.x=s===c-1?a.x+h.x-h.width/2:s?a.x+h.x:a.x+h.x+h.width/2):(m.x=a.x+h.width/2,m.y=s===c-1?a.y+h.y-h.height/2:s?a.y+h.y:a.y+h.y+h.height/2),this.node.push(d.setAnimation({el:"text",attr:{text:h.text,x:m.x,y:m.y,lineHeight:this._metaStyle.lineHeight,fill:g.style.fill},container:n,component:i})));return{group:n,bound:t}},t}(D);t["default"]=L},,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t.radiansInAngle=t.rad2Deg=t.polarToCartesian=t.pointOnCircleFromCenter=t.normaliseAngle=t.getPlotFromPixel=t.getCoordinates=t.findArc=t.deg2Rad=t.changeAngleBase=t.cartesianToPolar=void 0;var r=A(n(287)),a=t.deg2Rad=function(e){return e*(Math.PI/180)},i=t.rad2Deg=function(e){return e*(180/Math.PI)},o=t.cartesianToPolar=function(e,t){var n,A;return n=Math.sqrt(e*e+t*t),A=i(Math.atan(t/e)),e<0&&t>=0||e<0&&t<0?A+=180:e>0&&t<0&&(A+=360),{radius:n,theta:a(A)}},l=t.polarToCartesian=function(e,t,n){void 0===n&&(n=!0);var A=t;return n||(A=a(A)),{x:e*Math.cos(A),y:e*Math.sin(A)}};t.getCoordinates=function(e,t){var n,A,a=t.getScale(),i=e.radius,o=t.config,s=o.axisDimention.centerX,c=o.axisDimention.centerY;return i=(0,r["default"])(i,o.radius,0),n=a.getRangeValue(e.theta),(A=l(i,n)).x+=s,A.y+=c,A},t.getPlotFromPixel=function(e,t){var n,A,r=e.x,a=e.y,l=t.getScale();return A=o(r,a),n=l.getDomainValue(A.theta),i(n)},t.pointOnCircleFromCenter=function(e,t,n,A){var r=(A-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},t.normaliseAngle=function(e){return e-90},t.findArc=function(e,t){var n;return(n=t>360?t%360:t<0?360+t:t)>e?n-e:360-(e-n)},t.changeAngleBase=function(e){return e>=0&&e<90?Math.abs(180-e):e>90&&e<=180?Math.abs(e-180):e>180&&e<270||e>270&&e<360?Math.abs(360-e+180):360===e?180:e},t.radiansInAngle=function(e,t){return e/t*(180/Math.PI)}},,,,(e,t)=>{"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(491));t["default"]=r["default"]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";t.__esModule=!0,t.symbolList=void 0;var A=(0,n(289).getDep)("redraphael","plugin"),r=Math.cos,a=Math.sin,i=Math.PI;t.symbolList={pinModeIcon:function(e,t,n){var A=.5*n,r=e-n,a=e+n,i=e-A,o=e+A,l=e+.5,s=l+1,c=l+1.5,u=t-n,h=t+A,d=t-A,g=t+(n-A);return["M",r,u,"L",i,d,i,g,r,h,e-.5,h,e,t+n+.5,l,h,a,h,o,g,o,d,a,u,c,u,c,d,c,g,s,g,s,d,c,d,c,u,"Z"]},zoomOutIcon:function(e,t,n){var i=e-.2*n,o=t-.2*n,l=.8*n,s=A.rad(43),c=A.rad(48),u=i+l*r(s),h=o+l*a(s),d=i+l*r(c),g=o+l*a(c),p=n,f=A.rad(45);return["M",u,h,"A",l,l,0,1,0,d,g,"Z","M",u+1,h+1,"L",u+p*r(f),h+p*a(f),d+p*r(f),g+p*a(f),d+1,g+1,"Z","M",i-2,o,"L",i+2,o,"Z"]},resetIcon:function(e,t,n){var A=n,o=e-A,l=t,s=(i/2+i)/2,c=e+A*r(s),u=t+A*a(s),h=2*A/3;return["M",o,l,"A",A,A,0,1,1,c,u,"L",c+h,u-1,c+2,u+h-.5,c,u]},zoomInIcon:function(e,t,n){var i=e-.2*n,o=t-.2*n,l=.8*n,s=A.rad(43),c=A.rad(48),u=i+l*r(s),h=o+l*a(s),d=i+l*r(c),g=o+l*a(c),p=n,f=A.rad(45);return["M",u,h,"A",l,l,0,1,0,d,g,"Z","M",u+1,h+1,"L",u+p*r(f),h+p*a(f),d+p*r(f)-1,g+p*a(f)-1,d+1,g+1,"Z","M",i-2,o,"L",i+2,o,"Z","M",i,o-2,"L",i,o+2,"Z"]},zoomModeIcon:function(e,t,n){var i=[],o=e-.2*n,l=t-.2*n,s=.8*n,c=A.rad(43),u=A.rad(48),h=o+s*r(c),d=l+s*a(c),g=o+s*r(u),p=l+s*a(u),f=n,m=A.rad(45),v=h+f*r(m),b=d+f*a(m),B=g+f*r(m)-1,y=p+f*a(m)-1;return i=i.concat(["M",h,d,"A",s,s,0,1,0,g,p,"Z","M",h+1,d+1,"L",v,b,B,y,B+1,y-1,B+1.5,y+1.5,B-1,y+1,B,y,g+1,p+1,"Z","M",o-2,l,"L",o+2,l,"Z","M",o,l-2,"L",o,l+2,"Z"])},panModeIcon:function(e,t,n){var A,r=n;return[].concat(["M",(A=e)-(r*=2.5)/16,t-r/8,"L",A+r/16,t-r/8,"L",A+r/16,t-r/3.2,"L",A+6*r/32,t-10*r/32,"L",A,t-r/2,"L",A-6*r/32,t-10*r/32,"L",A-r/16,t-r/3.2,"Z","M",A+4*r/32,t-2*r/32,"L",A+10*r/32,t-2*r/32,"L",A+10*r/32,t-6*r/32,"L",A+16*r/32,t,"L",A+10*r/32,t+6*r/32,"L",A+10*r/32,t+2*r/32,"L",A+4*r/32,t+2*r/32,"Z","M",A+2*r/32,t+5*r/32,"L",A+2*r/32,t+10*r/32,"L",A+6*r/32,t+10*r/32,"L",A,t+16*r/32,"L",A-6*r/32,t+10*r/32,"L",A-2*r/32,t+10*r/32,"L",A-2*r/32,t+5*r/32,"Z","M",A-4*r/32,t-2*r/32,"L",A-10*r/32,t-2*r/32,"L",A-10*r/32,t-6*r/32,"L",A-16*r/32,t,"L",A-10*r/32,t+6*r/32,"L",A-10*r/32,t+2*r/32,"L",A-4*r/32,t+2*r/32,"Z"])}}},,,,,,,,,,,,,,,,,,(e,t,n)=>{var A=n(1626)();e.exports=A;try{regeneratorRuntime=A}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=A:Function("r","regeneratorRuntime = r")(A)}},(e,t,n)=>{var A=n(1627),r=n(1628),a=n(1630),i=n(1631),o=n(1632),l=n(1633),s=n(1634);function c(){"use strict";var t=r(),n=t.m(c),u=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var d={"throw":1,"return":2,"break":3,"continue":3};function g(e){var t,n;return function(A){t||(t={stop:function(){return n(A.a,2)},"catch":function(){return A.v},abrupt:function(e,t){return n(A.a,d[e],t)},delegateYield:function(e,r,a){return t.resultName=r,n(A.d,s(e),a)},finish:function(e){return n(A.f,e)}},n=function(e,n,r){A.p=t.prev,A.n=t.next;try{return e(n,r)}finally{t.next=A.n}}),t.resultName&&(t[t.resultName]=A.v,t.resultName=void 0),t.sent=A.v,t.next=A.n;try{return e.call(this,t)}finally{A.p=t.prev,A.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,A,r){return t.w(g(e),n,A,r&&r.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new A(e,t)},AsyncIterator:o,async:function(e,t,n,A,r){return(h(t)?i:a)(g(e),t,n,A,r)},keys:l,values:s}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,n)=>{var A=n(1629);function r(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var t,n,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function l(e,r,a,i){var o=r&&r.prototype instanceof c?r:c,l=Object.create(o.prototype);return A(l,"_invoke",function(e,A,r){var a,i,o,l=0,c=r||[],u=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return a=e,i=0,o=t,h.n=n,s}};function d(e,A){for(i=e,o=A,n=0;!u&&l&&!r&&n<c.length;n++){var r,a=c[n],d=h.p,g=a[2];e>3?(r=g===A)&&(o=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=d&&((r=e<2&&d<a[1])?(i=0,h.v=A,h.n=a[1]):d<g&&(r=e<3||a[0]>A||A>g)&&(a[4]=e,a[5]=A,h.n=g,i=0))}if(r||e>1)return s;throw u=!0,A}return function(r,c,g){if(l>1)throw TypeError("Generator is already running");for(u&&1===c&&d(c,g),i=c,o=g;(n=i<2?t:o)||!u;){a||(i?i<3?(i>1&&(h.n=-1),d(i,o)):h.n=o:h.v=o);try{if(l=2,a){if(i||(r="next"),n=a[r]){if(!(n=n.call(a,o)))throw TypeError("iterator result is not an object");if(!n.done)return n;o=n.value,i<2&&(i=0)}else 1===i&&(n=a["return"])&&n.call(a),i<2&&(o=TypeError("The iterator does not provide a '"+r+"' method"),i=1);a=t}else if((n=(u=h.n<0)?o:e.call(A,h))!==s)break}catch(n){a=t,i=1,o=n}finally{l=1}}return{value:n,done:u}}}(e,a,i),!0),l}var s={};function c(){}function u(){}function h(){}n=Object.getPrototypeOf;var d=[][i]?n(n([][i]())):(A(n={},i,function(){return this}),n),g=h.prototype=c.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(function(e,t){for(var n=Object.getOwnPropertyNames(t),A=0;A<n.length;A++){var r=n[A],a=Object.getOwnPropertyDescriptor(t,r);a&&a.configurable&&void 0===e[r]&&Object.defineProperty(e,r,a)}}(e,h),A(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e}return u.prototype=h,A(g,"constructor",h),A(h,"constructor",u),u.displayName="GeneratorFunction",A(h,o,"GeneratorFunction"),A(g),A(g,o,"Generator"),A(g,i,function(){return this}),A(g,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:p}},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{function t(n,A,r,a){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}e.exports=t=function(e,n,A,r){function a(n,A){t(e,n,function(e){return this._invoke(n,A,e)})}n?i?i(e,n,{value:A,enumerable:!r,configurable:!r,writable:!r}):e[n]=A:(a("next",0),a("throw",1),a("return",2))},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n,A,r,a)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,n)=>{var A=n(1631);e.exports=function(e,t,n,r,a){var i=A(e,t,n,r,a);return i.next().then(function(e){return e.done?e.value:i.next()})},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,n)=>{var A=n(1628),r=n(1632);e.exports=function(e,t,n,a,i){return new r(A().w(e,t,n,a),i||Promise)},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,n)=>{var A=n(1627),r=n(1629);e.exports=function a(e,t){function n(r,a,i,o){try{var l=e[r](a),s=l.value;return s instanceof A?t.resolve(s.v).then(function(e){n("next",e,i,o)},function(e){n("throw",e,i,o)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,o)})}catch(e){o(e)}}var i;this.next||(r(a.prototype),r(a.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,A,r){function a(){return new t(function(t,A){n(e,r,t,A)})}return i=i?i.then(a,a):a()},!0)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{e.exports=function(e){var t=Object(e),n=[];for(var A in t)n.unshift(A);return function r(){for(;n.length;)if((A=n.pop())in t)return r.value=A,r.done=!1,r;return r.done=!0,r}},e.exports.__esModule=!0,e.exports["default"]=e.exports},(e,t,n)=>{var A=n(279)["default"];e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(A(e)+" is not iterable")},e.exports.__esModule=!0,e.exports["default"]=e.exports},e=>{function t(e,t,n,A,r,a,i){try{var o=e[a](i),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(A,r)}e.exports=function(e){return function(){var n=this,A=arguments;return new Promise(function(r,a){var i=e.apply(n,A);function o(e){t(i,r,a,o,l,"next",e)}function l(e){t(i,r,a,o,l,"throw",e)}o(void 0)})}},e.exports.__esModule=!0,e.exports["default"]=e.exports},,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";var A=n(272);t.__esModule=!0,t["default"]=void 0;var r=A(n(295)),a=A(n(715)),i=n(281),o=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"group"},n.getName=function(){return"columnOverlappedGroup"},n.setColumnPosition=function(){var e,t,n=this,A=n.getFromEnv("chart-attrib"),r=n.getFromEnv("xAxis"),a=n.getFromEnv("chart"),o=n.getFromEnv("numOfColumns"),l=Math.max((0,i.pluckNumber)(A.plotspacepercent),0),s=Math.max((0,i.pluckNumber)(l,20)%100,0),c=s/200,u=r.getPixel(0),h=r.getPixel(1),d=a.isBar?a.config.maxBarHeight:a.config.maxColWidth,g=Math.abs(h-u),p=!0,f=0,m=0;n.addToEnv("groupMaxWidth",g),n._mapChildren(function(e){e.getState("removed")||!1===e.getState("visible")||m++}),n.addToEnv("numOfColumns",m),n.addToEnv("numColDiff",(0,i.pluckNumber)(o-m,0)),undefined===(t=n.getFromEnv("plotWidth"))&&(t=(1-.01*l)*g||Math.min(g*(1-2*c),d*(m||1))),n._mapChildren(function(e){e.getState("removed")||!1===e.getState("visible")||(e.addToEnv("plotWidth",t-t/m*f),f++)}),h-NaN-(u-NaN+e)<4&&(p=!1),0===s&&(p=!0),n.addToEnv("isCrisp",p)},t}(a["default"]);t["default"]=o},,,,,,,,,,,,,(e,t,n)=>{var A=/%[sdj%]/g;t.format=function(e){if(!f(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(A,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),l=r[n];n<a;l=r[++n])g(l)||!b(l)?o+=" "+l:o+=" "+i(l);return o},t.deprecate=function(e,A){if(m(n.g.process))return function(){return t.deprecate(e,A).apply(this,arguments)};if(!0===process.noDeprecation)return e;var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(A);process.traceDeprecation?console.trace(A):console.error(A),r=!0}return e.apply(this,arguments)}};var r,a={};function i(e,n){var A={seen:[],stylize:l};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),d(n)?A.showHidden=n:n&&t._extend(A,n),m(A.showHidden)&&(A.showHidden=!1),m(A.depth)&&(A.depth=2),m(A.colors)&&(A.colors=!1),m(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=o),s(A,e,A.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function l(e,t){return e}function s(e,n,A){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(A,e);return f(r)||(r=s(e,r,A)),r}var a=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(f(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(p(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(a)return a;var i=Object.keys(n),o=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),y(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return c(n);if(0===i.length){if(C(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(B(n))return e.stylize(Date.prototype.toString.call(n),"date");if(y(n))return c(n)}var b,x="",w=!1,F=["{","}"];(h(n)&&(w=!0,F=["[","]"]),C(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(x=" "+RegExp.prototype.toString.call(n)),B(n)&&(x=" "+Date.prototype.toUTCString.call(n)),y(n)&&(x=" "+c(n)),0!==i.length||w&&0!=n.length?A<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),b=w?function(e,t,n,A,r){for(var a=[],i=0,o=t.length;i<o;++i)S(t,String(i))?a.push(u(e,t,n,A,String(i),!0)):a.push("");return r.forEach(function(r){r.match(/^\d+$/)||a.push(u(e,t,n,A,r,!0))}),a}(e,n,A,o,i):i.map(function(t){return u(e,n,A,o,t,w)}),e.seen.pop(),function(e,t,n){var A=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(A>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(b,x,F)):F[0]+x+F[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,n,A,r,a){var i,o,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),S(A,r)||(i="["+r+"]"),o||(e.seen.indexOf(l.value)<0?(o=g(n)?s(e,l.value,null):s(e,l.value,n-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+o.split("\n").map(function(e){return"   "+e}).join("\n")):o=e.stylize("[Circular]","special")),m(i)){if(a&&r.match(/^\d+$/))return o;(i=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+o}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function g(e){return null===e}function p(e){return"number"==typeof e}function f(e){return"string"==typeof e}function m(e){return void 0===e}function v(e){return b(e)&&"[object RegExp]"===x(e)}function b(e){return"object"==typeof e&&null!==e}function B(e){return b(e)&&"[object Date]"===x(e)}function y(e){return b(e)&&("[object Error]"===x(e)||e instanceof Error)}function C(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(r)&&(r=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var n=process.pid;a[e]=function(){var A=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,A)}}else a[e]=function(){};return a[e]},t.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=p,t.isString=f,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=v,t.isObject=b,t.isDate=B,t.isError=y,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1673);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":"),[e.getDate(),F[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(1674),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),A=n.length;A--;)e[n[A]]=t[n[A]];return e}},e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,,,,,,,,,,,,,,,,,function(e){
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
e.exports=function(){"use strict";
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
    Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function A(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(A.prototype=n.prototype,new A)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,A=arguments.length;n<A;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function A(e,t,n,A){function r(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function i(e){try{l(A.next(e))}catch(Mt){a(Mt)}}function o(e){try{l(A["throw"](e))}catch(Mt){a(Mt)}}function l(e){e.done?n(e.value):r(e.value).then(i,o)}l((A=A.apply(e,t||[])).next())})}function r(e,t){var n,A,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,A&&(r=2&a[0]?A["return"]:a[0]?A["throw"]||((r=A["return"])&&r.call(A),0):A.next)&&!(r=r.call(A,a[1])).done)return r;switch(A=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,A=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(Mt){a=[6,Mt],A=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function a(e,t,n){if(n||2===arguments.length)for(var A,r=0,a=t.length;r<a;r++)!A&&r in t||(A||(A=Array.prototype.slice.call(t,0,r)),A[r]=t[r]);return e.concat(A||t)}for(var i=function(){function e(e,t,n,A){this.left=e,this.top=t,this.width=n,this.height=A}return e.prototype.add=function(t,n,A,r){return new e(this.left+t,this.top+n,this.width+A,this.height+r)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var A=Array.from(n).find(function(e){return 0!==e.width});return A?new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),o=function(e,t){return i.fromClientRect(e,t.getBoundingClientRect())},l=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var A=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),r=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new i(0,0,A,r)},s=function(e){for(var t=[],n=0,A=e.length;n<A;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var A=[],r=-1,a="";++r<n;){var i=e[r];i<=65535?A.push(i):(i-=65536,A.push(55296+(i>>10),i%1024+56320)),(r+1===n||A.length>16384)&&(a+=String.fromCharCode.apply(String,A),A.length=0)}return a},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<g.length;f++)p[g.charCodeAt(f)]=f;for(var m=function(e){var t,n,A,r,a,i=.75*e.length,o=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var s="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(s)?s:new Uint8Array(s);for(t=0;t<o;t+=4)n=p[e.charCodeAt(t)],A=p[e.charCodeAt(t+1)],r=p[e.charCodeAt(t+2)],a=p[e.charCodeAt(t+3)],c[l++]=n<<2|A>>4,c[l++]=(15&A)<<4|r>>2,c[l++]=(3&r)<<6|63&a;return s},v=function(e){for(var t=e.length,n=[],A=0;A<t;A+=2)n.push(e[A+1]<<8|e[A]);return n},b=function(e){for(var t=e.length,n=[],A=0;A<t;A+=4)n.push(e[A+3]<<24|e[A+2]<<16|e[A+1]<<8|e[A]);return n},B=5,y=11,C=2,x=65536>>B,w=(1<<B)-1,F=x+(1024>>B)+32,S=65536>>y,E=(1<<y-B)-1,Q=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},k=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},L=function(e,t){var n=m(e),A=Array.isArray(n)?b(n):new Uint32Array(n),r=Array.isArray(n)?v(n):new Uint16Array(n),a=24,i=Q(r,a/2,A[4]/2),o=2===A[5]?Q(r,(a+A[4])/2):k(A,Math.ceil((a+A[4])/4));return new U(A[0],A[1],A[2],A[3],i,o)},U=function(){function e(e,t,n,A,r,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=A,this.index=r,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>B])<<C)+(e&w),this.data[t];if(e<=65535)return t=((t=this.index[x+(e-55296>>B)])<<C)+(e&w),this.data[t];if(e<this.highStart)return t=F-S+(e>>y),t=this.index[t],t+=e>>B&E,t=((t=this.index[t])<<C)+(e&w),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),N=0;N<I.length;N++)T[I.charCodeAt(N)]=N;var D=50,P=1,M=2,H=3,O=4,_=5,R=7,V=8,G=9,K=10,z=11,W=12,j=13,X=14,Y=15,J=16,q=17,Z=18,$=19,ee=20,te=21,ne=22,Ae=23,re=24,ae=25,ie=26,oe=27,le=28,se=29,ce=30,ue=31,he=32,de=33,ge=34,pe=35,fe=36,me=37,ve=38,be=39,Be=40,ye=41,Ce=42,xe=43,we=[9001,65288],Fe="!",Se="×",Ee="÷",Qe=L("[encoded data, 52888 characters]"),ke=[ce,fe],Le=[P,M,H,_],Ue=[K,V],Ie=[oe,ie],Te=Le.concat(Ue),Ne=[ve,be,Be,ge,pe],De=[Y,j],Pe=function(e,t){void 0===t&&(t="strict");var n=[],A=[],r=[];return e.forEach(function(e,a){var i=Qe.get(e);if(i>D?(r.push(!0),i-=D):r.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return A.push(a),n.push(J);if(i===O||i===z){if(0===a)return A.push(a),n.push(ce);var o=n[a-1];return-1===Te.indexOf(o)?(A.push(A[a-1]),n.push(o)):(A.push(a),n.push(ce))}return A.push(a),i===ue?n.push("strict"===t?te:me):i===Ce||i===se?n.push(ce):i===xe?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(me):n.push(ce):void n.push(i)}),[A,n,r]},Me=function(e,t,n,A){var r=A[n];if(Array.isArray(e)?-1!==e.indexOf(r):e===r)for(var a=n;a<=A.length;){if((l=A[++a])===t)return!0;if(l!==K)break}if(r===K)for(a=n;a>0;){var i=A[--a];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=A.length;){var l;if((l=A[++o])===t)return!0;if(l!==K)break}if(i!==K)break}return!1},He=function(e,t){for(var n=e;n>=0;){var A=t[n];if(A!==K)return A;n--}return 0},Oe=function(e,t,n,A,r){if(0===n[A])return Se;var a=A-1;if(Array.isArray(r)&&!0===r[a])return Se;var i=a-1,o=a+1,l=t[a],s=i>=0?t[i]:0,c=t[o];if(l===M&&c===H)return Se;if(-1!==Le.indexOf(l))return Fe;if(-1!==Le.indexOf(c))return Se;if(-1!==Ue.indexOf(c))return Se;if(He(a,t)===V)return Ee;if(Qe.get(e[a])===z)return Se;if((l===he||l===de)&&Qe.get(e[o])===z)return Se;if(l===R||c===R)return Se;if(l===G)return Se;if(-1===[K,j,Y].indexOf(l)&&c===G)return Se;if(-1!==[q,Z,$,re,le].indexOf(c))return Se;if(He(a,t)===ne)return Se;if(Me(Ae,ne,a,t))return Se;if(Me([q,Z],te,a,t))return Se;if(Me(W,W,a,t))return Se;if(l===K)return Ee;if(l===Ae||c===Ae)return Se;if(c===J||l===J)return Ee;if(-1!==[j,Y,te].indexOf(c)||l===X)return Se;if(s===fe&&-1!==De.indexOf(l))return Se;if(l===le&&c===fe)return Se;if(c===ee)return Se;if(-1!==ke.indexOf(c)&&l===ae||-1!==ke.indexOf(l)&&c===ae)return Se;if(l===oe&&-1!==[me,he,de].indexOf(c)||-1!==[me,he,de].indexOf(l)&&c===ie)return Se;if(-1!==ke.indexOf(l)&&-1!==Ie.indexOf(c)||-1!==Ie.indexOf(l)&&-1!==ke.indexOf(c))return Se;if(-1!==[oe,ie].indexOf(l)&&(c===ae||-1!==[ne,Y].indexOf(c)&&t[o+1]===ae)||-1!==[ne,Y].indexOf(l)&&c===ae||l===ae&&-1!==[ae,le,re].indexOf(c))return Se;if(-1!==[ae,le,re,q,Z].indexOf(c))for(var u=a;u>=0;){if((h=t[u])===ae)return Se;if(-1===[le,re].indexOf(h))break;u--}if(-1!==[oe,ie].indexOf(c))for(u=-1!==[q,Z].indexOf(l)?i:a;u>=0;){var h;if((h=t[u])===ae)return Se;if(-1===[le,re].indexOf(h))break;u--}if(ve===l&&-1!==[ve,be,ge,pe].indexOf(c)||-1!==[be,ge].indexOf(l)&&-1!==[be,Be].indexOf(c)||-1!==[Be,pe].indexOf(l)&&c===Be)return Se;if(-1!==Ne.indexOf(l)&&-1!==[ee,ie].indexOf(c)||-1!==Ne.indexOf(c)&&l===oe)return Se;if(-1!==ke.indexOf(l)&&-1!==ke.indexOf(c))return Se;if(l===re&&-1!==ke.indexOf(c))return Se;if(-1!==ke.concat(ae).indexOf(l)&&c===ne&&-1===we.indexOf(e[o])||-1!==ke.concat(ae).indexOf(c)&&l===Z)return Se;if(l===ye&&c===ye){for(var d=n[a],g=1;d>0&&t[--d]===ye;)g++;if(g%2!=0)return Se}return l===he&&c===de?Se:Ee},_e=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Pe(e,t.lineBreak),A=n[0],r=n[1],a=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(r=r.map(function(e){return-1!==[ae,ce,Ce].indexOf(e)?me:e}));var i="keep-all"===t.wordBreak?a.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):undefined;return[A,r,i]},Re=function(){function e(e,t,n,A){this.codePoints=e,this.required=t===Fe,this.start=n,this.end=A}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ve=function(e,t){var n=s(e),A=_e(n,t),r=A[0],a=A[1],i=A[2],o=n.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var e=Se;c<o&&(e=Oe(n,a,r,++c,i))===Se;);if(e!==Se||c===o){var t=new Re(n,e,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}},Ge=1,Ke=2,ze=4,We=8,je=10,Xe=47,Ye=92,Je=9,qe=32,Ze=34,$e=61,et=35,tt=36,nt=37,At=39,rt=40,at=41,it=95,ot=45,lt=33,st=60,ct=62,ut=64,ht=91,dt=93,gt=61,pt=123,ft=63,mt=125,vt=124,bt=126,Bt=128,yt=65533,Ct=42,xt=43,wt=44,Ft=58,St=59,Et=46,Qt=0,kt=8,Lt=11,Ut=14,It=31,Tt=127,Nt=-1,Dt=48,Pt=97,Mt=101,Ht=102,Ot=117,_t=122,Rt=65,Vt=69,Gt=70,Kt=85,zt=90,Wt=function(e){return e>=Dt&&e<=57},jt=function(e){return e>=55296&&e<=57343},Xt=function(e){return Wt(e)||e>=Rt&&e<=Gt||e>=Pt&&e<=Ht},Yt=function(e){return e>=Pt&&e<=_t},Jt=function(e){return e>=Rt&&e<=zt},qt=function(e){return Yt(e)||Jt(e)},Zt=function(e){return e>=Bt},$t=function(e){return e===je||e===Je||e===qe},en=function(e){return qt(e)||Zt(e)||e===it},tn=function(e){return en(e)||Wt(e)||e===ot},nn=function(e){return e>=Qt&&e<=kt||e===Lt||e>=Ut&&e<=It||e===Tt},An=function(e,t){return e===Ye&&t!==je},rn=function(e,t,n){return e===ot?en(t)||An(t,n):!!en(e)||!(e!==Ye||!An(e,t))},an=function(e,t,n){return e===xt||e===ot?!!Wt(t)||t===Et&&Wt(n):Wt(e===Et?t:e)},on=function(e){var t=0,n=1;e[t]!==xt&&e[t]!==ot||(e[t]===ot&&(n=-1),t++);for(var A=[];Wt(e[t]);)A.push(e[t++]);var r=A.length?parseInt(c.apply(void 0,A),10):0;e[t]===Et&&t++;for(var a=[];Wt(e[t]);)a.push(e[t++]);var i=a.length,o=i?parseInt(c.apply(void 0,a),10):0;e[t]!==Vt&&e[t]!==Mt||t++;var l=1;e[t]!==xt&&e[t]!==ot||(e[t]===ot&&(l=-1),t++);for(var s=[];Wt(e[t]);)s.push(e[t++]);var u=s.length?parseInt(c.apply(void 0,s),10):0;return n*(r+o*Math.pow(10,-i))*Math.pow(10,l*u)},ln={type:2},sn={type:3},cn={type:4},un={type:13},hn={type:8},dn={type:21},gn={type:9},pn={type:10},fn={type:11},mn={type:12},vn={type:14},bn={type:23},Bn={type:1},yn={type:25},Cn={type:24},xn={type:26},wn={type:27},Fn={type:28},Sn={type:29},En={type:31},Qn={type:32},kn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(s(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Qn;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ze:return this.consumeStringToken(Ze);case et:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),A=this.peekCodePoint(2);if(tn(t)||An(n,A)){var r=rn(t,n,A)?Ke:Ge;return{type:5,value:this.consumeName(),flags:r}}break;case tt:if(this.peekCodePoint(0)===$e)return this.consumeCodePoint(),un;break;case At:return this.consumeStringToken(At);case rt:return ln;case at:return sn;case Ct:if(this.peekCodePoint(0)===$e)return this.consumeCodePoint(),vn;break;case xt:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case wt:return cn;case ot:var a=e,i=this.peekCodePoint(0),o=this.peekCodePoint(1);if(an(a,i,o))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(rn(a,i,o))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(i===ot&&o===ct)return this.consumeCodePoint(),this.consumeCodePoint(),Cn;break;case Et:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Xe:if(this.peekCodePoint(0)===Ct)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===Ct&&(l=this.consumeCodePoint())===Xe)return this.consumeToken();if(l===Nt)return this.consumeToken()}break;case Ft:return xn;case St:return wn;case st:if(this.peekCodePoint(0)===lt&&this.peekCodePoint(1)===ot&&this.peekCodePoint(2)===ot)return this.consumeCodePoint(),this.consumeCodePoint(),yn;break;case ut:var s=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(rn(s,u,h))return{type:7,value:this.consumeName()};break;case ht:return Fn;case Ye:if(An(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case dt:return Sn;case gt:if(this.peekCodePoint(0)===$e)return this.consumeCodePoint(),hn;break;case pt:return fn;case mt:return mn;case Ot:case Kt:var d=this.peekCodePoint(0),g=this.peekCodePoint(1);return d!==xt||!Xt(g)&&g!==ft||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vt:if(this.peekCodePoint(0)===$e)return this.consumeCodePoint(),gn;if(this.peekCodePoint(0)===vt)return this.consumeCodePoint(),dn;break;case bt:if(this.peekCodePoint(0)===$e)return this.consumeCodePoint(),pn;break;case Nt:return Qn}return $t(e)?(this.consumeWhiteSpace(),En):Wt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):en(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Xt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===ft&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map(function(e){return e===ft?Dt:e})),16),end:parseInt(c.apply(void 0,e.map(function(e){return e===ft?Gt:e})),16)};var A=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===ot&&Xt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var r=[];Xt(t)&&r.length<6;)r.push(t),t=this.consumeCodePoint();return{type:30,start:A,end:parseInt(c.apply(void 0,r),16)}}return{type:30,start:A,end:A}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===rt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===rt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===At||t===Ze){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt||this.peekCodePoint(0)===at)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),bn)}for(;;){var A=this.consumeCodePoint();if(A===Nt||A===at)return{type:22,value:c.apply(void 0,e)};if($t(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt||this.peekCodePoint(0)===at?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),bn);if(A===Ze||A===At||A===rt||nn(A))return this.consumeBadUrlRemnants(),bn;if(A===Ye){if(!An(A,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),bn;e.push(this.consumeEscapedCodePoint())}else e.push(A)}},e.prototype.consumeWhiteSpace=function(){for(;$t(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===at||e===Nt)return;An(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var A=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var A=this._value[n];if(A===Nt||A===undefined||A===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(A===je)return this._value.splice(0,n),Bn;if(A===Ye){var r=this._value[n+1];r!==Nt&&r!==undefined&&(r===je?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):An(A,r)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=ze,n=this.peekCodePoint(0);for(n!==xt&&n!==ot||e.push(this.consumeCodePoint());Wt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(n===Et&&Wt(A))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=We;Wt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),A=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((n===Vt||n===Mt)&&((A===xt||A===ot)&&Wt(r)||Wt(A)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=We;Wt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[on(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],A=this.peekCodePoint(0),r=this.peekCodePoint(1),a=this.peekCodePoint(2);return rn(A,r,a)?{type:15,number:t,flags:n,unit:this.consumeName()}:A===nt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Xt(e)){for(var t=c(e);Xt(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());$t(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||jt(n)||n>1114111?yt:n}return e===Nt?yt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(tn(t))e+=c(t);else{if(!An(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ln=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new kn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||On(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Qn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Un=function(e){return 15===e.type},In=function(e){return 17===e.type},Tn=function(e){return 20===e.type},Nn=function(e){return 0===e.type},Dn=function(e,t){return Tn(e)&&e.value===t},Pn=function(e){return 31!==e.type},Mn=function(e){return 31!==e.type&&4!==e.type},Hn=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},On=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},_n=function(e){return 17===e.type||15===e.type},Rn=function(e){return 16===e.type||_n(e)},Vn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Gn={type:17,number:0,flags:ze},Kn={type:16,number:50,flags:ze},zn={type:16,number:100,flags:ze},Wn=function(e,t,n){var A=e[0],r=e[1];return[jn(A,t),jn(void 0!==r?r:A,n)]},jn=function(e,t){if(16===e.type)return e.number/100*t;if(Un(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Xn="deg",Yn="grad",Jn="rad",qn="turn",Zn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Xn:return Math.PI*t.number/180;case Yn:return Math.PI/200*t.number;case Jn:return t.number;case qn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},$n=function(e){return 15===e.type&&(e.unit===Xn||e.unit===Yn||e.unit===Jn||e.unit===qn)},eA=function(e){switch(e.filter(Tn).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Gn,Gn];case"to top":case"bottom":return tA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Gn,zn];case"to right":case"left":return tA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zn,zn];case"to bottom":case"top":return tA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zn,Gn];case"to left":case"right":return tA(270)}return 0},tA=function(e){return Math.PI*e/180},nA={name:"color",parse:function(e,t){if(18===t.type){var n=cA[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var A=t.value.substring(0,1),r=t.value.substring(1,2),a=t.value.substring(2,3);return aA(parseInt(A+A,16),parseInt(r+r,16),parseInt(a+a,16),1)}if(4===t.value.length){A=t.value.substring(0,1),r=t.value.substring(1,2),a=t.value.substring(2,3);var i=t.value.substring(3,4);return aA(parseInt(A+A,16),parseInt(r+r,16),parseInt(a+a,16),parseInt(i+i,16)/255)}if(6===t.value.length)return A=t.value.substring(0,2),r=t.value.substring(2,4),a=t.value.substring(4,6),aA(parseInt(A,16),parseInt(r,16),parseInt(a,16),1);if(8===t.value.length)return A=t.value.substring(0,2),r=t.value.substring(2,4),a=t.value.substring(4,6),i=t.value.substring(6,8),aA(parseInt(A,16),parseInt(r,16),parseInt(a,16),parseInt(i,16)/255)}if(20===t.type){var o=hA[t.value.toUpperCase()];if(void 0!==o)return o}return hA.TRANSPARENT}},AA=function(e){return!(255&e)},rA=function(e){var t=255&e,n=255&e>>8,A=255&e>>16,r=255&e>>24;return t<255?"rgba("+r+","+A+","+n+","+t/255+")":"rgb("+r+","+A+","+n+")"},aA=function(e,t,n,A){return(e<<24|t<<16|n<<8|Math.round(255*A))>>>0},iA=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},oA=function(e,t){var n=t.filter(Mn);if(3===n.length){var A=n.map(iA),r=A[0],a=A[1],i=A[2];return aA(r,a,i,1)}if(4===n.length){var o=n.map(iA),l=(r=o[0],a=o[1],i=o[2],o[3]);return aA(r,a,i,l)}return 0};function lA(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var sA=function(e,t){var n=t.filter(Mn),A=n[0],r=n[1],a=n[2],i=n[3],o=(17===A.type?tA(A.number):Zn.parse(e,A))/(2*Math.PI),l=Rn(r)?r.number/100:0,s=Rn(a)?a.number/100:0,c=void 0!==i&&Rn(i)?jn(i,1):1;if(0===l)return aA(255*s,255*s,255*s,1);var u=s<=.5?s*(l+1):s+l-s*l,h=2*s-u,d=lA(h,u,o+1/3),g=lA(h,u,o),p=lA(h,u,o-1/3);return aA(255*d,255*g,255*p,c)},cA={hsl:sA,hsla:sA,rgb:oA,rgba:oA},uA=function(e,t){return nA.parse(e,Ln.create(t).parseComponentValue())},hA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Tn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pA=function(e,t){var n=nA.parse(e,t[0]),A=t[1];return A&&Rn(A)?{color:n,stop:A}:{color:n,stop:null}},fA=function(e,t){var n=e[0],A=e[e.length-1];null===n.stop&&(n.stop=Gn),null===A.stop&&(A.stop=zn);for(var r=[],a=0,i=0;i<e.length;i++){var o=e[i].stop;if(null!==o){var l=jn(o,t);l>a?r.push(l):r.push(a),a=l}else r.push(null)}var s=null;for(i=0;i<r.length;i++){var c=r[i];if(null===c)null===s&&(s=i);else if(null!==s){for(var u=i-s,h=(c-r[s-1])/(u+1),d=1;d<=u;d++)r[s+d-1]=h*d;s=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,r[n]/t),0)}})},mA=function(e,t,n){var A=t/2,r=n/2,a=jn(e[0],t)-A,i=r-jn(e[1],n);return(Math.atan2(i,a)+2*Math.PI)%(2*Math.PI)},vA=function(e,t,n){var A="number"==typeof e?e:mA(e,t,n),r=Math.abs(t*Math.sin(A))+Math.abs(n*Math.cos(A)),a=t/2,i=n/2,o=r/2,l=Math.sin(A-Math.PI/2)*o,s=Math.cos(A-Math.PI/2)*o;return[r,a-s,a+s,i-l,i+l]},bA=function(e,t){return Math.sqrt(e*e+t*t)},BA=function(e,t,n,A,r){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var a=t[0],i=t[1],o=bA(n-a,A-i);return(r?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:r?Infinity:-Infinity,optimumCorner:null}).optimumCorner},yA=function(e,t,n,A,r){var a=0,i=0;switch(e.size){case 0:0===e.shape?a=i=Math.min(Math.abs(t),Math.abs(t-A),Math.abs(n),Math.abs(n-r)):1===e.shape&&(a=Math.min(Math.abs(t),Math.abs(t-A)),i=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(0===e.shape)a=i=Math.min(bA(t,n),bA(t,n-r),bA(t-A,n),bA(t-A,n-r));else if(1===e.shape){var o=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(t),Math.abs(t-A)),l=BA(A,r,t,n,!0),s=l[0],c=l[1];i=o*(a=bA(s-t,(c-n)/o))}break;case 1:0===e.shape?a=i=Math.max(Math.abs(t),Math.abs(t-A),Math.abs(n),Math.abs(n-r)):1===e.shape&&(a=Math.max(Math.abs(t),Math.abs(t-A)),i=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(0===e.shape)a=i=Math.max(bA(t,n),bA(t,n-r),bA(t-A,n),bA(t-A,n-r));else if(1===e.shape){o=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(t),Math.abs(t-A));var u=BA(A,r,t,n,!1);s=u[0],c=u[1],i=o*(a=bA(s-t,(c-n)/o))}}return Array.isArray(e.size)&&(a=jn(e.size[0],A),i=2===e.size.length?jn(e.size[1],r):a),[a,i]},CA=function(e,t){var n=tA(180),A=[];return Hn(t).forEach(function(t,r){if(0===r){var a=t[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=eA(t));if($n(a))return void(n=(Zn.parse(e,a)+tA(270))%tA(360))}var i=pA(e,t);A.push(i)}),{angle:n,stops:A,type:1}},xA="closest-side",wA="farthest-side",FA="closest-corner",SA="farthest-corner",EA="circle",QA="ellipse",kA="cover",LA="contain",UA=function(e,t){var n=0,A=3,r=[],a=[];return Hn(t).forEach(function(t,i){var o=!0;if(0===i?o=t.reduce(function(e,t){if(Tn(t))switch(t.value){case"center":return a.push(Kn),!1;case"top":case"left":return a.push(Gn),!1;case"right":case"bottom":return a.push(zn),!1}else if(Rn(t)||_n(t))return a.push(t),!1;return e},o):1===i&&(o=t.reduce(function(e,t){if(Tn(t))switch(t.value){case EA:return n=0,!1;case QA:return n=1,!1;case LA:case xA:return A=0,!1;case wA:return A=1,!1;case FA:return A=2,!1;case kA:case SA:return A=3,!1}else if(_n(t)||Rn(t))return Array.isArray(A)||(A=[]),A.push(t),!1;return e},o)),o){var l=pA(e,t);r.push(l)}}),{size:A,shape:n,stops:r,position:a,type:2}},IA=function(e){return 1===e.type},TA=function(e){return 2===e.type},NA={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var A=MA[t.name];if(void 0===A)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return A(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function DA(e){return!(20===e.type&&"none"===e.value||18===e.type&&!MA[e.name])}var PA,MA={"linear-gradient":function(e,t){var n=tA(180),A=[];return Hn(t).forEach(function(t,r){if(0===r){var a=t[0];if(20===a.type&&"to"===a.value)return void(n=eA(t));if($n(a))return void(n=Zn.parse(e,a))}var i=pA(e,t);A.push(i)}),{angle:n,stops:A,type:1}},"-moz-linear-gradient":CA,"-ms-linear-gradient":CA,"-o-linear-gradient":CA,"-webkit-linear-gradient":CA,"radial-gradient":function(e,t){var n=0,A=3,r=[],a=[];return Hn(t).forEach(function(t,i){var o=!0;if(0===i){var l=!1;o=t.reduce(function(e,t){if(l)if(Tn(t))switch(t.value){case"center":return a.push(Kn),e;case"top":case"left":return a.push(Gn),e;case"right":case"bottom":return a.push(zn),e}else(Rn(t)||_n(t))&&a.push(t);else if(Tn(t))switch(t.value){case EA:return n=0,!1;case QA:return n=1,!1;case"at":return l=!0,!1;case xA:return A=0,!1;case kA:case wA:return A=1,!1;case LA:case FA:return A=2,!1;case SA:return A=3,!1}else if(_n(t)||Rn(t))return Array.isArray(A)||(A=[]),A.push(t),!1;return e},o)}if(o){var s=pA(e,t);r.push(s)}}),{size:A,shape:n,stops:r,position:a,type:2}},"-moz-radial-gradient":UA,"-ms-radial-gradient":UA,"-o-radial-gradient":UA,"-webkit-radial-gradient":UA,"-webkit-gradient":function(e,t){var n=tA(180),A=[],r=1,a=0,i=3,o=[];return Hn(t).forEach(function(t,n){var a=t[0];if(0===n){if(Tn(a)&&"linear"===a.value)return void(r=1);if(Tn(a)&&"radial"===a.value)return void(r=2)}if(18===a.type)if("from"===a.name){var i=nA.parse(e,a.values[0]);A.push({stop:Gn,color:i})}else if("to"===a.name)i=nA.parse(e,a.values[0]),A.push({stop:zn,color:i});else if("color-stop"===a.name){var o=a.values.filter(Mn);if(2===o.length){i=nA.parse(e,o[1]);var l=o[0];In(l)&&A.push({stop:{type:16,number:100*l.number,flags:l.flags},color:i})}}}),1===r?{angle:(n+tA(180))%tA(360),stops:A,type:r}:{size:i,shape:a,stops:A,position:o,type:r}}},HA={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return Mn(e)&&DA(e)}).map(function(t){return NA.parse(e,t)})}},OA={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Tn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_A={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Hn(t).map(function(e){return e.filter(Rn)}).map(Vn)}},RA={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Hn(t).map(function(e){return e.filter(Tn).map(function(e){return e.value}).join(" ")}).map(VA)}},VA=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(PA||(PA={}));var GA,KA={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Hn(t).map(function(e){return e.filter(zA)})}},zA=function(e){return Tn(e)||Rn(e)},WA=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},jA=WA("top"),XA=WA("right"),YA=WA("bottom"),JA=WA("left"),qA=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Vn(t.filter(Rn))}}},ZA=qA("top-left"),$A=qA("top-right"),er=qA("bottom-right"),tr=qA("bottom-left"),nr=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ar=nr("top"),rr=nr("right"),ar=nr("bottom"),ir=nr("left"),or=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Un(t)?t.number:0}}},lr=or("top"),sr=or("right"),cr=or("bottom"),ur=or("left"),hr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},gr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).reduce(function(e,t){return e|pr(t.value)},0)}},pr=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},fr={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mr={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(GA||(GA={}));var vr,br={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?GA.STRICT:GA.NORMAL}},Br={name:"line-height",initialValue:"normal",prefix:!1,type:4},yr=function(e,t){return Tn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Rn(e)?jn(e,t):t},Cr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:NA.parse(e,t)}},xr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},wr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Fr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Sr=Fr("top"),Er=Fr("right"),Qr=Fr("bottom"),kr=Fr("left"),Lr={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ur={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Ir=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tr=Ir("top"),Nr=Ir("right"),Dr=Ir("bottom"),Pr=Ir("left"),Mr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hr={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Or={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Dn(t[0],"none")?[]:Hn(t).map(function(t){for(var n={color:hA.TRANSPARENT,offsetX:Gn,offsetY:Gn,blur:Gn},A=0,r=0;r<t.length;r++){var a=t[r];_n(a)?(0===A?n.offsetX=a:1===A?n.offsetY=a:n.blur=a,A++):n.color=nA.parse(e,a)}return n})}},_r={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Rr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Vr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Vr={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],A=t[1];t[2],t[3];var r=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var i=t[12],o=t[13];return t[14],t[15],16===t.length?[n,A,r,a,i,o]:null}},Gr={type:16,number:50,flags:ze},Kr=[Gr,Gr],zr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Rn);return 2!==n.length?Kr:[n[0],n[1]]}},Wr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(vr||(vr={}));for(var jr={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return vr.BREAK_ALL;case"keep-all":return vr.KEEP_ALL;default:return vr.NORMAL}}},Xr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(In(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Yr={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Jr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return In(t)?t.number:1}},qr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Tn).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},$r={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],A=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:A.push(n.join(" ")),n.length=0}}),n.length&&A.push(n.join(" ")),A.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},ea={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ta={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return In(t)?t.number:Tn(t)&&"bold"===t.value?700:400}},na={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Tn).map(function(e){return e.value})}},Aa={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ra=function(e,t){return 0!==(e&t)},aa={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},ia={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var A=[],r=t.filter(Pn),a=0;a<r.length;a++){var i=r[a],o=r[a+1];if(20===i.type){var l=o&&In(o)?o.number:1;A.push({counter:i.value,increment:l})}}return A}},oa={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],A=t.filter(Pn),r=0;r<A.length;r++){var a=A[r],i=A[r+1];if(Tn(a)&&"none"!==a.value){var o=i&&In(i)?i.number:0;n.push({counter:a.value,reset:o})}}return n}},la={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Un).map(function(t){return Yr.parse(e,t)})}},sa={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var A=[],r=t.filter(Nn);if(r.length%2!=0)return null;for(var a=0;a<r.length;a+=2){var i=r[a].value,o=r[a+1].value;A.push({open:i,close:o})}return A}},ca=function(e,t,n){if(!e)return"";var A=e[Math.min(t,e.length-1)];return A?n?A.open:A.close:""},ua={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Dn(t[0],"none")?[]:Hn(t).map(function(t){for(var n={color:255,offsetX:Gn,offsetY:Gn,blur:Gn,spread:Gn,inset:!1},A=0,r=0;r<t.length;r++){var a=t[r];Dn(a,"inset")?n.inset=!0:_n(a)?(0===A?n.offsetX=a:1===A?n.offsetY=a:2===A?n.blur=a:n.spread=a,A++):n.color=nA.parse(e,a)}return n})}},ha={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],A=[];return t.filter(Tn).forEach(function(e){switch(e.value){case"stroke":A.push(1);break;case"fill":A.push(0);break;case"markers":A.push(2)}}),n.forEach(function(e){-1===A.indexOf(e)&&A.push(e)}),A}},da={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ga={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Un(t)?t.number:0}},pa=function(){function e(e,t){var n,A;this.animationDuration=va(e,la,t.animationDuration),this.backgroundClip=va(e,dA,t.backgroundClip),this.backgroundColor=va(e,gA,t.backgroundColor),this.backgroundImage=va(e,HA,t.backgroundImage),this.backgroundOrigin=va(e,OA,t.backgroundOrigin),this.backgroundPosition=va(e,_A,t.backgroundPosition),this.backgroundRepeat=va(e,RA,t.backgroundRepeat),this.backgroundSize=va(e,KA,t.backgroundSize),this.borderTopColor=va(e,jA,t.borderTopColor),this.borderRightColor=va(e,XA,t.borderRightColor),this.borderBottomColor=va(e,YA,t.borderBottomColor),this.borderLeftColor=va(e,JA,t.borderLeftColor),this.borderTopLeftRadius=va(e,ZA,t.borderTopLeftRadius),this.borderTopRightRadius=va(e,$A,t.borderTopRightRadius),this.borderBottomRightRadius=va(e,er,t.borderBottomRightRadius),this.borderBottomLeftRadius=va(e,tr,t.borderBottomLeftRadius),this.borderTopStyle=va(e,Ar,t.borderTopStyle),this.borderRightStyle=va(e,rr,t.borderRightStyle),this.borderBottomStyle=va(e,ar,t.borderBottomStyle),this.borderLeftStyle=va(e,ir,t.borderLeftStyle),this.borderTopWidth=va(e,lr,t.borderTopWidth),this.borderRightWidth=va(e,sr,t.borderRightWidth),this.borderBottomWidth=va(e,cr,t.borderBottomWidth),this.borderLeftWidth=va(e,ur,t.borderLeftWidth),this.boxShadow=va(e,ua,t.boxShadow),this.color=va(e,hr,t.color),this.direction=va(e,dr,t.direction),this.display=va(e,gr,t.display),this.float=va(e,fr,t.cssFloat),this.fontFamily=va(e,$r,t.fontFamily),this.fontSize=va(e,ea,t.fontSize),this.fontStyle=va(e,Aa,t.fontStyle),this.fontVariant=va(e,na,t.fontVariant),this.fontWeight=va(e,ta,t.fontWeight),this.letterSpacing=va(e,mr,t.letterSpacing),this.lineBreak=va(e,br,t.lineBreak),this.lineHeight=va(e,Br,t.lineHeight),this.listStyleImage=va(e,Cr,t.listStyleImage),this.listStylePosition=va(e,xr,t.listStylePosition),this.listStyleType=va(e,wr,t.listStyleType),this.marginTop=va(e,Sr,t.marginTop),this.marginRight=va(e,Er,t.marginRight),this.marginBottom=va(e,Qr,t.marginBottom),this.marginLeft=va(e,kr,t.marginLeft),this.opacity=va(e,Jr,t.opacity);var r=va(e,Lr,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=va(e,Ur,t.overflowWrap),this.paddingTop=va(e,Tr,t.paddingTop),this.paddingRight=va(e,Nr,t.paddingRight),this.paddingBottom=va(e,Dr,t.paddingBottom),this.paddingLeft=va(e,Pr,t.paddingLeft),this.paintOrder=va(e,ha,t.paintOrder),this.position=va(e,Hr,t.position),this.textAlign=va(e,Mr,t.textAlign),this.textDecorationColor=va(e,qr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=va(e,Zr,null!==(A=t.textDecorationLine)&&void 0!==A?A:t.textDecoration),this.textShadow=va(e,Or,t.textShadow),this.textTransform=va(e,_r,t.textTransform),this.transform=va(e,Rr,t.transform),this.transformOrigin=va(e,zr,t.transformOrigin),this.visibility=va(e,Wr,t.visibility),this.webkitTextStrokeColor=va(e,da,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=va(e,ga,t.webkitTextStrokeWidth),this.wordBreak=va(e,jr,t.wordBreak),this.zIndex=va(e,Xr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return AA(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return ra(this.display,4)||ra(this.display,33554432)||ra(this.display,268435456)||ra(this.display,536870912)||ra(this.display,67108864)||ra(this.display,134217728)},e}(),fa=function(){function e(e,t){this.content=va(e,aa,t.content),this.quotes=va(e,sa,t.quotes)}return e}(),ma=function(){function e(e,t){this.counterIncrement=va(e,ia,t.counterIncrement),this.counterReset=va(e,oa,t.counterReset)}return e}(),va=function(e,t,n){var A=new kn,r=null!=n?n.toString():t.initialValue;A.write(r);var a=new Ln(A.read());switch(t.type){case 2:var i=a.parseComponentValue();return t.parse(e,Tn(i)?i.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return Zn.parse(e,a.parseComponentValue());case"color":return nA.parse(e,a.parseComponentValue());case"image":return NA.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return _n(o)?o:Gn;case"length-percentage":var l=a.parseComponentValue();return Rn(l)?l:Gn;case"time":return Yr.parse(e,a.parseComponentValue())}}},ba="data-html2canvas-debug",Ba=function(e){switch(e.getAttribute(ba)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ya=function(e,t){var n=Ba(e);return 1===n||t===n},Ca=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ya(t,3),this.styles=new pa(e,window.getComputedStyle(t,null)),so(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=o(this.context,t),ya(t,4)&&(this.flags|=16)}return e}(),xa="[encoded data, 26156 characters]",wa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fa="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Sa=0;Sa<wa.length;Sa++)Fa[wa.charCodeAt(Sa)]=Sa;for(var Ea=function(e){var t,n,A,r,a,i=.75*e.length,o=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var s="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(s)?s:new Uint8Array(s);for(t=0;t<o;t+=4)n=Fa[e.charCodeAt(t)],A=Fa[e.charCodeAt(t+1)],r=Fa[e.charCodeAt(t+2)],a=Fa[e.charCodeAt(t+3)],c[l++]=n<<2|A>>4,c[l++]=(15&A)<<4|r>>2,c[l++]=(3&r)<<6|63&a;return s},Qa=function(e){for(var t=e.length,n=[],A=0;A<t;A+=2)n.push(e[A+1]<<8|e[A]);return n},ka=function(e){for(var t=e.length,n=[],A=0;A<t;A+=4)n.push(e[A+3]<<24|e[A+2]<<16|e[A+1]<<8|e[A]);return n},La=5,Ua=11,Ia=2,Ta=65536>>La,Na=(1<<La)-1,Da=Ta+(1024>>La)+32,Pa=65536>>Ua,Ma=(1<<Ua-La)-1,Ha=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Oa=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},_a=function(e,t){var n=Ea(e),A=Array.isArray(n)?ka(n):new Uint32Array(n),r=Array.isArray(n)?Qa(n):new Uint16Array(n),a=24,i=Ha(r,a/2,A[4]/2),o=2===A[5]?Ha(r,(a+A[4])/2):Oa(A,Math.ceil((a+A[4])/4));return new Ra(A[0],A[1],A[2],A[3],i,o)},Ra=function(){function e(e,t,n,A,r,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=A,this.index=r,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>La])<<Ia)+(e&Na),this.data[t];if(e<=65535)return t=((t=this.index[Ta+(e-55296>>La)])<<Ia)+(e&Na),this.data[t];if(e<this.highStart)return t=Da-Pa+(e>>Ua),t=this.index[t],t+=e>>La&Ma,t=((t=this.index[t])<<Ia)+(e&Na),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Va="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ga="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ka=0;Ka<Va.length;Ka++)Ga[Va.charCodeAt(Ka)]=Ka;var za,Wa=1,ja=2,Xa=3,Ya=4,Ja=5,qa=7,Za=8,$a=9,ei=10,ti=11,ni=12,Ai=13,ri=14,ai=15,ii=function(e){for(var t=[],n=0,A=e.length;n<A;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t},oi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var A=[],r=-1,a="";++r<n;){var i=e[r];i<=65535?A.push(i):(i-=65536,A.push(55296+(i>>10),i%1024+56320)),(r+1===n||A.length>16384)&&(a+=String.fromCharCode.apply(String,A),A.length=0)}return a},li=_a(xa),si="×",ci="÷",ui=function(e){return li.get(e)},hi=function(e,t,n){var A=n-2,r=t[A],a=t[n-1],i=t[n];if(a===ja&&i===Xa)return si;if(a===ja||a===Xa||a===Ya)return ci;if(i===ja||i===Xa||i===Ya)return ci;if(a===Za&&-1!==[Za,$a,ti,ni].indexOf(i))return si;if(!(a!==ti&&a!==$a||i!==$a&&i!==ei))return si;if((a===ni||a===ei)&&i===ei)return si;if(i===Ai||i===Ja)return si;if(i===qa)return si;if(a===Wa)return si;if(a===Ai&&i===ri){for(;r===Ja;)r=t[--A];if(r===ri)return si}if(a===ai&&i===ai){for(var o=0;r===ai;)o++,r=t[--A];if(o%2==0)return si}return ci},di=function(e){var t=ii(e),n=t.length,A=0,r=0,a=t.map(ui);return{next:function(){if(A>=n)return{done:!0,value:null};for(var e=si;A<n&&(e=hi(t,a,++A))===si;);if(e!==si||A===n){var i=oi.apply(null,t.slice(r,A));return r=A,{value:i,done:!1}}return{done:!0,value:null}}}},gi=function(e){for(var t,n=di(e),A=[];!(t=n.next()).done;)t.value&&A.push(t.value.slice());return A},pi=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var A=e.createElement("boundtest");A.style.height=t+"px",A.style.display="block",e.body.appendChild(A),n.selectNode(A);var r=n.getBoundingClientRect(),a=Math.round(r.height);if(e.body.removeChild(A),a===t)return!0}}return!1},fi=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var A=t.firstChild,r=s(A.data).map(function(e){return c(e)}),a=0,i={},o=r.every(function(e,t){n.setStart(A,a),n.setEnd(A,a+e.length);var r=n.getBoundingClientRect();a+=e.length;var o=r.x>i.x||r.y>i.y;return i=r,0===t||o});return e.body.removeChild(t),o},mi=function(){return"undefined"!=typeof(new Image).crossOrigin},vi=function(){return"string"==typeof(new XMLHttpRequest).responseType},bi=function(e){var t=new Image,n=e.createElement("canvas"),A=n.getContext("2d");if(!A)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(t,0,0),n.toDataURL()}catch(Mt){return!1}return!0},Bi=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},yi=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var A=t.getContext("2d");if(!A)return Promise.reject(!1);A.fillStyle="rgb(0, 255, 0)",A.fillRect(0,0,n,n);var r=new Image,a=t.toDataURL();r.src=a;var i=Ci(n,n,0,0,r);return A.fillStyle="red",A.fillRect(0,0,n,n),xi(i).then(function(t){A.drawImage(t,0,0);var r=A.getImageData(0,0,n,n).data;A.fillStyle="red",A.fillRect(0,0,n,n);var i=e.createElement("div");return i.style.backgroundImage="url("+a+")",i.style.height=n+"px",Bi(r)?xi(Ci(n,n,0,0,i)):Promise.reject(!1)}).then(function(e){return A.drawImage(e,0,0),Bi(A.getImageData(0,0,n,n).data)})["catch"](function(){return!1})},Ci=function(e,t,n,A,r){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",n.toString()),o.setAttributeNS(null,"y",A.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(o),o.appendChild(r),i},xi=function(e){return new Promise(function(t,n){var A=new Image;A.onload=function(){return t(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},wi={get SUPPORT_RANGE_BOUNDS(){var e=pi(document);return Object.defineProperty(wi,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=wi.SUPPORT_RANGE_BOUNDS&&fi(document);return Object.defineProperty(wi,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=bi(document);return Object.defineProperty(wi,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?yi(document):Promise.resolve(!1);return Object.defineProperty(wi,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=mi();return Object.defineProperty(wi,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=vi();return Object.defineProperty(wi,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(wi,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(wi,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Fi=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Si=function(e,t,n,A){var r=Ui(t,n),a=[],o=0;return r.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(wi.SUPPORT_RANGE_BOUNDS){var r=Qi(A,o,t.length).getClientRects();if(r.length>1){var l=ki(t),s=0;l.forEach(function(t){a.push(new Fi(t,i.fromDOMRectList(e,Qi(A,s+o,t.length).getClientRects()))),s+=t.length})}else a.push(new Fi(t,i.fromDOMRectList(e,r)))}else{var c=A.splitText(t.length);a.push(new Fi(t,Ei(e,A))),A=c}else wi.SUPPORT_RANGE_BOUNDS||(A=A.splitText(t.length));o+=t.length}),a},Ei=function(e,t){var n=t.ownerDocument;if(n){var A=n.createElement("html2canvaswrapper");A.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(A,t);var a=o(e,A);return A.firstChild&&r.replaceChild(A.firstChild,A),a}}return i.EMPTY},Qi=function(e,t,n){var A=e.ownerDocument;if(!A)throw new Error("Node has no owner document");var r=A.createRange();return r.setStart(e,t),r.setEnd(e,t+n),r},ki=function(e){if(wi.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return gi(e)},Li=function(e,t){if(wi.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Ti(e,t)},Ui=function(e,t){return 0!==t.letterSpacing?ki(e):Li(e,t)},Ii=[32,160,4961,65792,65793,4153,4241],Ti=function(e,t){for(var n,A=Ve(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),r=[],a=function(){if(n.value){var e=n.value.slice(),t=s(e),A="";t.forEach(function(e){-1===Ii.indexOf(e)?A+=c(e):(A.length&&r.push(A),r.push(c(e)),A="")}),A.length&&r.push(A)}};!(n=A.next()).done;)a();return r},Ni=function(){function e(e,t,n){this.text=Di(t.data,n.textTransform),this.textBounds=Si(e,this.text,n,t)}return e}(),Di=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Pi,Mi);case 2:return e.toUpperCase();default:return e}},Pi=/(^|\s|:|-|\(|\))([a-z])/g,Mi=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Hi=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.src=n.currentSrc||n.src,A.intrinsicWidth=n.naturalWidth,A.intrinsicHeight=n.naturalHeight,A.context.cache.addImage(A.src),A}return t(n,e),n}(Ca),Oi=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.canvas=n,A.intrinsicWidth=n.width,A.intrinsicHeight=n.height,A}return t(n,e),n}(Ca),_i=function(e){function n(t,n){var A=e.call(this,t,n)||this,r=new XMLSerializer,a=o(t,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),A.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(n)),A.intrinsicWidth=n.width.baseVal.value,A.intrinsicHeight=n.height.baseVal.value,A.context.cache.addImage(A.svg),A}return t(n,e),n}(Ca),Ri=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.value=n.value,A}return t(n,e),n}(Ca),Vi=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.start=n.start,A.reversed="boolean"==typeof n.reversed&&!0===n.reversed,A}return t(n,e),n}(Ca),Gi=[{type:15,flags:0,unit:"px",number:3}],Ki=[{type:16,flags:0,number:50}],zi=function(e){return e.width>e.height?new i(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new i(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Wi=function(e){var t=e.type===Yi?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},ji="checkbox",Xi="radio",Yi="password",Ji=707406591,qi=function(e){function n(t,n){var A=e.call(this,t,n)||this;switch(A.type=n.type.toLowerCase(),A.checked=n.checked,A.value=Wi(n),A.type!==ji&&A.type!==Xi||(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=1,A.styles.backgroundClip=[0],A.styles.backgroundOrigin=[0],A.bounds=zi(A.bounds)),A.type){case ji:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=Gi;break;case Xi:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=Ki}return A}return t(n,e),n}(Ca),Zi=function(e){function n(t,n){var A=e.call(this,t,n)||this,r=n.options[n.selectedIndex||0];return A.value=r&&r.text||"",A}return t(n,e),n}(Ca),$i=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.value=n.value,A}return t(n,e),n}(Ca),eo=function(e){function n(t,n){var A=e.call(this,t,n)||this;A.src=n.src,A.width=parseInt(n.width,10)||0,A.height=parseInt(n.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){A.tree=ro(t,n.contentWindow.document.documentElement);var r=n.contentWindow.document.documentElement?uA(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):hA.TRANSPARENT,a=n.contentWindow.document.body?uA(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):hA.TRANSPARENT;A.backgroundColor=AA(r)?AA(a)?A.styles.backgroundColor:a:r}}catch(Mt){}return A}return t(n,e),n}(Ca),to=["OL","UL","MENU"],no=function(e,t,n,A){for(var r=t.firstChild,a=void 0;r;r=a)if(a=r.nextSibling,oo(r)&&r.data.trim().length>0)n.textNodes.push(new Ni(e,r,n.styles));else if(lo(r))if(So(r)&&r.assignedNodes)r.assignedNodes().forEach(function(t){return no(e,t,n,A)});else{var i=Ao(e,r);i.styles.isVisible()&&(ao(r,i,A)?i.flags|=4:io(i.styles)&&(i.flags|=2),-1!==to.indexOf(r.tagName)&&(i.flags|=8),n.elements.push(i),r.slot,r.shadowRoot?no(e,r.shadowRoot,i,A):wo(r)||fo(r)||Fo(r)||no(e,r,i,A))}},Ao=function(e,t){return Bo(t)?new Hi(e,t):vo(t)?new Oi(e,t):fo(t)?new _i(e,t):uo(t)?new Ri(e,t):ho(t)?new Vi(e,t):go(t)?new qi(e,t):Fo(t)?new Zi(e,t):wo(t)?new $i(e,t):yo(t)?new eo(e,t):new Ca(e,t)},ro=function(e,t){var n=Ao(e,t);return n.flags|=4,no(e,t,n,n),n},ao=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||mo(e)&&n.styles.isTransparent()},io=function(e){return e.isPositioned()||e.isFloating()},oo=function(e){return e.nodeType===Node.TEXT_NODE},lo=function(e){return e.nodeType===Node.ELEMENT_NODE},so=function(e){return lo(e)&&"undefined"!=typeof e.style&&!co(e)},co=function(e){return"object"==typeof e.className},uo=function(e){return"LI"===e.tagName},ho=function(e){return"OL"===e.tagName},go=function(e){return"INPUT"===e.tagName},po=function(e){return"HTML"===e.tagName},fo=function(e){return"svg"===e.tagName},mo=function(e){return"BODY"===e.tagName},vo=function(e){return"CANVAS"===e.tagName},bo=function(e){return"VIDEO"===e.tagName},Bo=function(e){return"IMG"===e.tagName},yo=function(e){return"IFRAME"===e.tagName},Co=function(e){return"STYLE"===e.tagName},xo=function(e){return"SCRIPT"===e.tagName},wo=function(e){return"TEXTAREA"===e.tagName},Fo=function(e){return"SELECT"===e.tagName},So=function(e){return"SLOT"===e.tagName},Eo=function(e){return e.tagName.indexOf("-")>0},Qo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,A=e.counterReset,r=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(r=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var a=[];return r&&A.forEach(function(e){var n=t.counters[e.counter];a.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),a},e}(),ko={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Lo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Uo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Io={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},To=function(e,t,n,A,r,a){return e<t||e>n?Wo(e,r,a.length>0):A.integers.reduce(function(t,n,r){for(;e>=n;)e-=n,t+=A.values[r];return t},"")+a},No=function(e,t,n,A){var r="";do{n||e--,r=A(e)+r,e/=t}while(e*t>=t);return r},Do=function(e,t,n,A,r){var a=n-t+1;return(e<0?"-":"")+(No(Math.abs(e),a,A,function(e){return c(Math.floor(e%a)+t)})+r)},Po=function(e,t,n){void 0===n&&(n=". ");var A=t.length;return No(Math.abs(e),A,!1,function(e){return t[Math.floor(e%A)]})+n},Mo=1,Ho=2,Oo=4,_o=8,Ro=function(e,t,n,A,r,a){if(e<-9999||e>9999)return Wo(e,4,r.length>0);var i=Math.abs(e),o=r;if(0===i)return t[0]+o;for(var l=0;i>0&&l<=4;l++){var s=i%10;0===s&&ra(a,Mo)&&""!==o?o=t[s]+o:s>1||1===s&&0===l||1===s&&1===l&&ra(a,Ho)||1===s&&1===l&&ra(a,Oo)&&e>100||1===s&&l>1&&ra(a,_o)?o=t[s]+(l>0?n[l-1]:"")+o:1===s&&l>0&&(o=n[l-1]+o),i=Math.floor(i/10)}return(e<0?A:"")+o},Vo="十百千萬",Go="拾佰仟萬",Ko="マイナス",zo="마이너스",Wo=function(e,t,n){var A=n?". ":"",r=n?"、":"",a=n?", ":"",i=n?" ":"";switch(t){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=Do(e,48,57,!0,A);return o.length<4?"0"+o:o;case 4:return Po(e,"〇一二三四五六七八九",r);case 6:return To(e,1,3999,ko,3,A).toLowerCase();case 7:return To(e,1,3999,ko,3,A);case 8:return Do(e,945,969,!1,A);case 9:return Do(e,97,122,!1,A);case 10:return Do(e,65,90,!1,A);case 11:return Do(e,1632,1641,!0,A);case 12:case 49:return To(e,1,9999,Lo,3,A);case 35:return To(e,1,9999,Lo,3,A).toLowerCase();case 13:return Do(e,2534,2543,!0,A);case 14:case 30:return Do(e,6112,6121,!0,A);case 15:return Po(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Po(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Ro(e,"零一二三四五六七八九",Vo,"負",r,Ho|Oo|_o);case 47:return Ro(e,"零壹貳參肆伍陸柒捌玖",Go,"負",r,Mo|Ho|Oo|_o);case 42:return Ro(e,"零一二三四五六七八九",Vo,"负",r,Ho|Oo|_o);case 41:return Ro(e,"零壹贰叁肆伍陆柒捌玖",Go,"负",r,Mo|Ho|Oo|_o);case 26:return Ro(e,"〇一二三四五六七八九","十百千万",Ko,r,0);case 25:return Ro(e,"零壱弐参四伍六七八九","拾百千万",Ko,r,Mo|Ho|Oo);case 31:return Ro(e,"영일이삼사오육칠팔구","십백천만",zo,a,Mo|Ho|Oo);case 33:return Ro(e,"零一二三四五六七八九","十百千萬",zo,a,0);case 32:return Ro(e,"零壹貳參四五六七八九","拾百千",zo,a,Mo|Ho|Oo);case 18:return Do(e,2406,2415,!0,A);case 20:return To(e,1,19999,Io,3,A);case 21:return Do(e,2790,2799,!0,A);case 22:return Do(e,2662,2671,!0,A);case 22:return To(e,1,10999,Uo,3,A);case 23:return Po(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Po(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Do(e,3302,3311,!0,A);case 28:return Po(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Po(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Do(e,3792,3801,!0,A);case 37:return Do(e,6160,6169,!0,A);case 38:return Do(e,4160,4169,!0,A);case 39:return Do(e,2918,2927,!0,A);case 40:return Do(e,1776,1785,!0,A);case 43:return Do(e,3046,3055,!0,A);case 44:return Do(e,3174,3183,!0,A);case 45:return Do(e,3664,3673,!0,A);case 46:return Do(e,3872,3881,!0,A);default:return Do(e,48,57,!0,A)}},jo="data-html2canvas-ignore",Xo=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Qo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,a=Jo(e,t);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,l=a.contentWindow,s=l.document,c=$o(a).then(function(){return A(n,void 0,void 0,function(){var e,n;return r(this,function(A){switch(A.label){case 0:return this.scrolledElements.forEach(rl),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Zo(s)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(s,n)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(nl(document.doctype)+"<html></html>"),Al(this.referenceElement.ownerDocument,i,o),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),c},e.prototype.createElementClone=function(e){if(ya(e,2),vo(e))return this.createCanvasClone(e);if(bo(e))return this.createVideoClone(e);if(Co(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Bo(t)&&(Bo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Eo(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return tl(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),A=e.cloneNode(!1);return A.textContent=n,A}}catch(Mt){if(this.context.logger.error("Unable to access cssRules property",Mt),"SecurityError"!==Mt.name)throw Mt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(Mt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var A=e.cloneNode(!1);try{A.width=e.width,A.height=e.height;var r=e.getContext("2d"),a=A.getContext("2d");if(a)if(!this.options.allowTaint&&r)a.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var i=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(i){var o=i.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}a.drawImage(e,0,0)}return A}catch(Mt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return A},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(Mt){this.context.logger.info("Unable to clone video as it is tainted",e)}var A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},e.prototype.appendChildNode=function(e,t,n){lo(t)&&(xo(t)||t.hasAttribute(jo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&lo(t)&&Co(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var A=this,r=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;r;r=r.nextSibling)if(lo(r)&&So(r)&&"function"==typeof r.assignedNodes){var a=r.assignedNodes();a.length&&a.forEach(function(e){return A.appendChildNode(t,e,n)})}else this.appendChildNode(t,r,n)},e.prototype.cloneNode=function(e,t){if(oo(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&lo(e)&&(so(e)||co(e))){var A=this.createElementClone(e);A.style.transitionProperty="none";var r=n.getComputedStyle(e),a=n.getComputedStyle(e,":before"),i=n.getComputedStyle(e,":after");this.referenceElement===e&&so(A)&&(this.clonedReferenceElement=A),mo(A)&&cl(A);var o=this.counters.parse(new ma(this.context,r)),l=this.resolvePseudoContent(e,A,a,za.BEFORE);Eo(e)&&(t=!0),bo(e)||this.cloneChildNodes(e,A,t),l&&A.insertBefore(l,A.firstChild);var s=this.resolvePseudoContent(e,A,i,za.AFTER);return s&&A.appendChild(s),this.counters.pop(o),(r&&(this.options.copyStyles||co(e))&&!yo(e)||t)&&tl(r,A),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([A,e.scrollLeft,e.scrollTop]),(wo(e)||Fo(e))&&(wo(A)||Fo(A))&&(A.value=e.value),A}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,A){var r=this;if(n){var a=n.content,i=t.ownerDocument;if(i&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new ma(this.context,n));var o=new fa(this.context,n),l=i.createElement("html2canvaspseudoelement");tl(n,l),o.content.forEach(function(t){if(0===t.type)l.appendChild(i.createTextNode(t.value));else if(22===t.type){var n=i.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var A=t.values.filter(Tn);A.length&&l.appendChild(i.createTextNode(e.getAttribute(A[0].value)||""))}else if("counter"===t.name){var a=t.values.filter(Mn),s=a[0],c=a[1];if(s&&Tn(s)){var u=r.counters.getCounterValue(s.value),h=c&&Tn(c)?wr.parse(r.context,c.value):3;l.appendChild(i.createTextNode(Wo(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(Mn),g=(s=d[0],d[1]);if(c=d[2],s&&Tn(s)){var p=r.counters.getCounterValues(s.value),f=c&&Tn(c)?wr.parse(r.context,c.value):3,m=g&&0===g.type?g.value:"",v=p.map(function(e){return Wo(e,f,!1)}).join(m);l.appendChild(i.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(i.createTextNode(ca(o.quotes,r.quoteDepth++,!0)));break;case"close-quote":l.appendChild(i.createTextNode(ca(o.quotes,--r.quoteDepth,!1)));break;default:l.appendChild(i.createTextNode(t.value))}}),l.className=ol+" "+ll;var s=A===za.BEFORE?" "+ol:" "+ll;return co(t)?t.className.baseValue+=s:t.className+=s,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(za||(za={}));var Yo,Jo=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(jo,"true"),e.body.appendChild(n),n},qo=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},Zo=function(e){return Promise.all([].slice.call(e.images,0).map(qo))},$o=function(e){return new Promise(function(t,n){var A=e.contentWindow;if(!A)return n("No window assigned for iframe");var r=A.document;A.onload=e.onload=function(){A.onload=e.onload=null;var n=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(n),t(e))},50)}})},el=["all","d","content"],tl=function(e,t){for(var n=e.length-1;n>=0;n--){var A=e.item(n);-1===el.indexOf(A)&&t.style.setProperty(A,e.getPropertyValue(A))}return t},nl=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Al=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},rl=function(e){var t=e[0],n=e[1],A=e[2];t.scrollLeft=n,t.scrollTop=A},al=":before",il=":after",ol="___html2canvas___pseudoelement_before",ll="___html2canvas___pseudoelement_after",sl='{\n    content: "" !important;\n    display: none !important;\n}',cl=function(e){ul(e,"."+ol+al+sl+"\n         ."+ll+il+sl)},ul=function(e,t){var n=e.ownerDocument;if(n){var A=n.createElement("style");A.textContent=t,e.appendChild(A)}},hl=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),dl=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Bl(e)||ml(e)?((this._cache[e]=this.loadImage(e))["catch"](function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return A(this,void 0,void 0,function(){var t,n,A,a,i=this;return r(this,function(r){switch(r.label){case 0:return t=hl.isSameOrigin(e),n=!vl(e)&&!0===this._options.useCORS&&wi.SUPPORT_CORS_IMAGES&&!t,A=!vl(e)&&!t&&!Bl(e)&&"string"==typeof this._options.proxy&&wi.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||vl(e)||Bl(e)||A||n?(a=e,A?[4,this.proxy(a)]:[3,2]):[2];case 1:a=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var A=new Image;A.onload=function(){return e(A)},A.onerror=t,(bl(a)||n)&&(A.crossOrigin="anonymous"),A.src=a,!0===A.complete&&setTimeout(function(){return e(A)},500),i._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,r.sent()]}})})},e.prototype.has=function(e){return"undefined"!=typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var A=e.substring(0,256);return new Promise(function(r,a){var i=wi.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===i)r(o.response);else{var e=new FileReader;e.addEventListener("load",function(){return r(e.result)},!1),e.addEventListener("error",function(e){return a(e)},!1),e.readAsDataURL(o.response)}else a("Failed to proxy resource "+A+" with status code "+o.status)},o.onerror=a;var l=n.indexOf("?")>-1?"&":"?";if(o.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&o instanceof XMLHttpRequest&&(o.responseType=i),t._options.imageTimeout){var s=t._options.imageTimeout;o.timeout=s,o.ontimeout=function(){return a("Timed out ("+s+"ms) proxying "+A)}}o.send()})},e}(),gl=/^data:image\/svg\+xml/i,pl=/^data:image\/.*;base64,/i,fl=/^data:image\/.*/i,ml=function(e){return wi.SUPPORT_SVG_DRAWING||!yl(e)},vl=function(e){return fl.test(e)},bl=function(e){return pl.test(e)},Bl=function(e){return"blob"===e.substr(0,4)},yl=function(e){return"svg"===e.substr(-3).toLowerCase()||gl.test(e)},Cl=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),xl=function(e,t,n){return new Cl(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},wl=function(){function e(e,t,n,A){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=A}return e.prototype.subdivide=function(t,n){var A=xl(this.start,this.startControl,t),r=xl(this.startControl,this.endControl,t),a=xl(this.endControl,this.end,t),i=xl(A,r,t),o=xl(r,a,t),l=xl(i,o,t);return n?new e(this.start,A,i,l):new e(l,o,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Fl=function(e){return 1===e.type},Sl=function(){function e(e){var t=e.styles,n=e.bounds,A=Wn(t.borderTopLeftRadius,n.width,n.height),r=A[0],a=A[1],i=Wn(t.borderTopRightRadius,n.width,n.height),o=i[0],l=i[1],s=Wn(t.borderBottomRightRadius,n.width,n.height),c=s[0],u=s[1],h=Wn(t.borderBottomLeftRadius,n.width,n.height),d=h[0],g=h[1],p=[];p.push((r+o)/n.width),p.push((d+c)/n.width),p.push((a+g)/n.height),p.push((l+u)/n.height);var f=Math.max.apply(Math,p);f>1&&(r/=f,a/=f,o/=f,l/=f,c/=f,u/=f,d/=f,g/=f);var m=n.width-o,v=n.height-u,b=n.width-c,B=n.height-g,y=t.borderTopWidth,C=t.borderRightWidth,x=t.borderBottomWidth,w=t.borderLeftWidth,F=jn(t.paddingTop,e.bounds.width),S=jn(t.paddingRight,e.bounds.width),E=jn(t.paddingBottom,e.bounds.width),Q=jn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||a>0?El(n.left+w/3,n.top+y/3,r-w/3,a-y/3,Yo.TOP_LEFT):new Cl(n.left+w/3,n.top+y/3),this.topRightBorderDoubleOuterBox=r>0||a>0?El(n.left+m,n.top+y/3,o-C/3,l-y/3,Yo.TOP_RIGHT):new Cl(n.left+n.width-C/3,n.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?El(n.left+b,n.top+v,c-C/3,u-x/3,Yo.BOTTOM_RIGHT):new Cl(n.left+n.width-C/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=d>0||g>0?El(n.left+w/3,n.top+B,d-w/3,g-x/3,Yo.BOTTOM_LEFT):new Cl(n.left+w/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=r>0||a>0?El(n.left+2*w/3,n.top+2*y/3,r-2*w/3,a-2*y/3,Yo.TOP_LEFT):new Cl(n.left+2*w/3,n.top+2*y/3),this.topRightBorderDoubleInnerBox=r>0||a>0?El(n.left+m,n.top+2*y/3,o-2*C/3,l-2*y/3,Yo.TOP_RIGHT):new Cl(n.left+n.width-2*C/3,n.top+2*y/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?El(n.left+b,n.top+v,c-2*C/3,u-2*x/3,Yo.BOTTOM_RIGHT):new Cl(n.left+n.width-2*C/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=d>0||g>0?El(n.left+2*w/3,n.top+B,d-2*w/3,g-2*x/3,Yo.BOTTOM_LEFT):new Cl(n.left+2*w/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=r>0||a>0?El(n.left+w/2,n.top+y/2,r-w/2,a-y/2,Yo.TOP_LEFT):new Cl(n.left+w/2,n.top+y/2),this.topRightBorderStroke=r>0||a>0?El(n.left+m,n.top+y/2,o-C/2,l-y/2,Yo.TOP_RIGHT):new Cl(n.left+n.width-C/2,n.top+y/2),this.bottomRightBorderStroke=c>0||u>0?El(n.left+b,n.top+v,c-C/2,u-x/2,Yo.BOTTOM_RIGHT):new Cl(n.left+n.width-C/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=d>0||g>0?El(n.left+w/2,n.top+B,d-w/2,g-x/2,Yo.BOTTOM_LEFT):new Cl(n.left+w/2,n.top+n.height-x/2),this.topLeftBorderBox=r>0||a>0?El(n.left,n.top,r,a,Yo.TOP_LEFT):new Cl(n.left,n.top),this.topRightBorderBox=o>0||l>0?El(n.left+m,n.top,o,l,Yo.TOP_RIGHT):new Cl(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?El(n.left+b,n.top+v,c,u,Yo.BOTTOM_RIGHT):new Cl(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||g>0?El(n.left,n.top+B,d,g,Yo.BOTTOM_LEFT):new Cl(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||a>0?El(n.left+w,n.top+y,Math.max(0,r-w),Math.max(0,a-y),Yo.TOP_LEFT):new Cl(n.left+w,n.top+y),this.topRightPaddingBox=o>0||l>0?El(n.left+Math.min(m,n.width-C),n.top+y,m>n.width+C?0:Math.max(0,o-C),Math.max(0,l-y),Yo.TOP_RIGHT):new Cl(n.left+n.width-C,n.top+y),this.bottomRightPaddingBox=c>0||u>0?El(n.left+Math.min(b,n.width-w),n.top+Math.min(v,n.height-x),Math.max(0,c-C),Math.max(0,u-x),Yo.BOTTOM_RIGHT):new Cl(n.left+n.width-C,n.top+n.height-x),this.bottomLeftPaddingBox=d>0||g>0?El(n.left+w,n.top+Math.min(B,n.height-x),Math.max(0,d-w),Math.max(0,g-x),Yo.BOTTOM_LEFT):new Cl(n.left+w,n.top+n.height-x),this.topLeftContentBox=r>0||a>0?El(n.left+w+Q,n.top+y+F,Math.max(0,r-(w+Q)),Math.max(0,a-(y+F)),Yo.TOP_LEFT):new Cl(n.left+w+Q,n.top+y+F),this.topRightContentBox=o>0||l>0?El(n.left+Math.min(m,n.width+w+Q),n.top+y+F,m>n.width+w+Q?0:o-w+Q,l-(y+F),Yo.TOP_RIGHT):new Cl(n.left+n.width-(C+S),n.top+y+F),this.bottomRightContentBox=c>0||u>0?El(n.left+Math.min(b,n.width-(w+Q)),n.top+Math.min(v,n.height+y+F),Math.max(0,c-(C+S)),u-(x+E),Yo.BOTTOM_RIGHT):new Cl(n.left+n.width-(C+S),n.top+n.height-(x+E)),this.bottomLeftContentBox=d>0||g>0?El(n.left+w+Q,n.top+B,Math.max(0,d-(w+Q)),g-(x+E),Yo.BOTTOM_LEFT):new Cl(n.left+w+Q,n.top+n.height-(x+E))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Yo||(Yo={}));var El=function(e,t,n,A,r){var a=(Math.sqrt(2)-1)/3*4,i=n*a,o=A*a,l=e+n,s=t+A;switch(r){case Yo.TOP_LEFT:return new wl(new Cl(e,s),new Cl(e,s-o),new Cl(l-i,t),new Cl(l,t));case Yo.TOP_RIGHT:return new wl(new Cl(e,t),new Cl(e+i,t),new Cl(l,s-o),new Cl(l,s));case Yo.BOTTOM_RIGHT:return new wl(new Cl(l,t),new Cl(l,t+o),new Cl(e+i,s),new Cl(e,s));case Yo.BOTTOM_LEFT:default:return new wl(new Cl(l,s),new Cl(l-i,s),new Cl(e,t+o),new Cl(e,t))}},Ql=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},kl=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ll=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ul=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Il=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Tl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Nl=function(e){return 0===e.type},Dl=function(e){return 1===e.type},Pl=function(e){return 2===e.type},Ml=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},Hl=function(e,t,n,A,r){return e.map(function(e,a){switch(a){case 0:return e.add(t,n);case 1:return e.add(t+A,n);case 2:return e.add(t+A,n+r);case 3:return e.add(t,n+r)}return e})},Ol=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),_l=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Sl(this.container),this.container.styles.opacity<1&&this.effects.push(new Tl(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Ul(n,A,r))}if(0!==this.container.styles.overflowX){var a=Ql(this.curves),i=Ll(this.curves);Ml(a,i)?this.effects.push(new Il(a,6)):(this.effects.push(new Il(a,2)),this.effects.push(new Il(i,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,A=this.effects.slice(0);n;){var r=n.effects.filter(function(e){return!Dl(e)});if(t||0!==n.container.styles.position||!n.parent){if(A.unshift.apply(A,r),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=Ql(n.curves),i=Ll(n.curves);Ml(a,i)||A.unshift(new Il(i,6))}}else A.unshift.apply(A,r);n=n.parent}return A.filter(function(t){return ra(t.target,e)})},e}(),Rl=function(e,t,n,A){e.container.elements.forEach(function(r){var a=ra(r.flags,4),i=ra(r.flags,2),o=new _l(r,e);ra(r.styles.display,2048)&&A.push(o);var l=ra(r.flags,8)?[]:A;if(a||i){var s=a||r.styles.isPositioned()?n:t,c=new Ol(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var h=0;s.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),s.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;s.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),s.positiveZIndex.splice(d,0,c)}else s.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?s.nonPositionedFloats.push(c):s.nonPositionedInlineLevel.push(c);Rl(o,c,a?c:n,l)}else r.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Rl(o,t,n,l);ra(r.flags,8)&&Vl(r,l)})},Vl=function(e,t){for(var n=e instanceof Vi?e.start:1,A=e instanceof Vi&&e.reversed,r=0;r<t.length;r++){var a=t[r];a.container instanceof Ri&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=Wo(n,a.container.styles.listStyleType,!0),n+=A?-1:1}},Gl=function(e){var t=new _l(e,null),n=new Ol(t),A=[];return Rl(t,n,n,A),Vl(t.container,A),n},Kl=function(e,t){switch(t){case 0:return Yl(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Yl(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Yl(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return Yl(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},zl=function(e,t){switch(t){case 0:return Yl(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Yl(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Yl(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return Yl(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Wl=function(e,t){switch(t){case 0:return Yl(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Yl(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Yl(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return Yl(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},jl=function(e,t){switch(t){case 0:return Xl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Xl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Xl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Xl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Xl=function(e,t){var n=[];return Fl(e)?n.push(e.subdivide(.5,!1)):n.push(e),Fl(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Yl=function(e,t,n,A){var r=[];return Fl(e)?r.push(e.subdivide(.5,!1)):r.push(e),Fl(n)?r.push(n.subdivide(.5,!0)):r.push(n),Fl(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),Fl(t)?r.push(t.subdivide(.5,!1).reverse()):r.push(t),r},Jl=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ql=function(e){var t=e.styles,n=e.bounds,A=jn(t.paddingLeft,n.width),r=jn(t.paddingRight,n.width),a=jn(t.paddingTop,n.width),i=jn(t.paddingBottom,n.width);return n.add(A+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+A+r),-(t.borderTopWidth+t.borderBottomWidth+a+i))},Zl=function(e,t){return 0===e?t.bounds:2===e?ql(t):Jl(t)},$l=function(e,t){return 0===e?t.bounds:2===e?ql(t):Jl(t)},es=function(e,t,n){var A=Zl(rs(e.styles.backgroundOrigin,t),e),r=$l(rs(e.styles.backgroundClip,t),e),a=As(rs(e.styles.backgroundSize,t),n,A),i=a[0],o=a[1],l=Wn(rs(e.styles.backgroundPosition,t),A.width-i,A.height-o);return[as(rs(e.styles.backgroundRepeat,t),l,a,A,r),Math.round(A.left+l[0]),Math.round(A.top+l[1]),i,o]},ts=function(e){return Tn(e)&&e.value===PA.AUTO},ns=function(e){return"number"==typeof e},As=function(e,t,n){var A=t[0],r=t[1],a=t[2],i=e[0],o=e[1];if(!i)return[0,0];if(Rn(i)&&o&&Rn(o))return[jn(i,n.width),jn(o,n.height)];var l=ns(a);if(Tn(i)&&(i.value===PA.CONTAIN||i.value===PA.COVER))return ns(a)?n.width/n.height<a!=(i.value===PA.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];var s=ns(A),c=ns(r),u=s||c;if(ts(i)&&(!o||ts(o)))return s&&c?[A,r]:l||u?u&&l?[s?A:r*a,c?r:A/a]:[s?A:n.width,c?r:n.height]:[n.width,n.height];if(l){var h=0,d=0;return Rn(i)?h=jn(i,n.width):Rn(o)&&(d=jn(o,n.height)),ts(i)?h=d*a:o&&!ts(o)||(d=h/a),[h,d]}var g=null,p=null;if(Rn(i)?g=jn(i,n.width):o&&Rn(o)&&(p=jn(o,n.height)),null===g||o&&!ts(o)||(p=s&&c?g/A*r:n.height),null!==p&&ts(i)&&(g=s&&c?p/r*A:n.width),null!==g&&null!==p)return[g,p];throw new Error("Unable to calculate background-size for element")},rs=function(e,t){var n=e[t];return void 0===n?e[0]:n},as=function(e,t,n,A,r){var a=t[0],i=t[1],o=n[0],l=n[1];switch(e){case 2:return[new Cl(Math.round(A.left),Math.round(A.top+i)),new Cl(Math.round(A.left+A.width),Math.round(A.top+i)),new Cl(Math.round(A.left+A.width),Math.round(l+A.top+i)),new Cl(Math.round(A.left),Math.round(l+A.top+i))];case 3:return[new Cl(Math.round(A.left+a),Math.round(A.top)),new Cl(Math.round(A.left+a+o),Math.round(A.top)),new Cl(Math.round(A.left+a+o),Math.round(A.height+A.top)),new Cl(Math.round(A.left+a),Math.round(A.height+A.top))];case 1:return[new Cl(Math.round(A.left+a),Math.round(A.top+i)),new Cl(Math.round(A.left+a+o),Math.round(A.top+i)),new Cl(Math.round(A.left+a+o),Math.round(A.top+i+l)),new Cl(Math.round(A.left+a),Math.round(A.top+i+l))];default:return[new Cl(Math.round(r.left),Math.round(r.top)),new Cl(Math.round(r.left+r.width),Math.round(r.top)),new Cl(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Cl(Math.round(r.left),Math.round(r.height+r.top))]}},is="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",os="Hidden Text",ls=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),A=this._document.createElement("img"),r=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),A.src=is,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(os)),n.appendChild(r),n.appendChild(A);var i=A.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode(os)),n.style.lineHeight="normal",A.style.verticalAlign="super";var o=A.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:i,middle:o}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return"undefined"==typeof this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),ss=function(){function e(e,t){this.context=e,this.options=t}return e}(),cs=1e4,us=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A._activeEffects=[],A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),n.canvas||(A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px"),A.fontMetrics=new ls(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),A}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),Pl(e)&&(this.ctx.globalAlpha=e.opacity),Nl(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Dl(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return A(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return A(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return ra(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var A=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):ki(e.text).reduce(function(t,r){return A.ctx.fillText(r,t,e.bounds.top+n),t+A.ctx.measureText(r).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=fs(e.fontFamily).join(", "),A=Un(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,A,n].join(" "),n,A]},n.prototype.renderTextNode=function(e,t){return A(this,void 0,void 0,function(){var n,A,a,i,o,l,s,c,u=this;return r(this,function(r){return n=this.createFontStyle(t),A=n[0],a=n[1],i=n[2],this.ctx.font=A,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,i),l=o.baseline,s=o.middle,c=t.paintOrder,e.textBounds.forEach(function(e){c.forEach(function(n){switch(n){case 0:u.ctx.fillStyle=rA(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,l);var A=t.textShadow;A.length&&e.text.trim().length&&(A.slice(0).reverse().forEach(function(n){u.ctx.shadowColor=rA(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=rA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+s),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=rA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var A=ql(e),r=Ll(t);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return A(this,void 0,void 0,function(){var t,A,a,o,l,s,c,u,h,d,g,p,f,m,v,b,B,y;return r(this,function(r){switch(r.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,A=e.curves,a=t.styles,o=0,l=t.textNodes,r.label=1;case 1:return o<l.length?(s=l[o],[4,this.renderTextNode(s,a)]):[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof Hi))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return v=r.sent(),this.renderReplacedElement(t,A,v),[3,8];case 7:return r.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Oi&&this.renderReplacedElement(t,A,t.canvas),!(t instanceof _i))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return v=r.sent(),this.renderReplacedElement(t,A,v),[3,12];case 11:return r.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof eo&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=r.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),r.label=14;case 14:if(t instanceof qi&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===ji?t.checked&&(this.ctx.save(),this.path([new Cl(t.bounds.left+.39363*u,t.bounds.top+.79*u),new Cl(t.bounds.left+.16*u,t.bounds.top+.5549*u),new Cl(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new Cl(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new Cl(t.bounds.left+.72983*u,t.bounds.top+.23*u),new Cl(t.bounds.left+.84*u,t.bounds.top+.34085*u),new Cl(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=rA(Ji),this.ctx.fill(),this.ctx.restore()):t.type===Xi&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=rA(Ji),this.ctx.fill(),this.ctx.restore())),hs(t)&&t.value.length){switch(h=this.createFontStyle(a),B=h[0],d=h[1],g=this.fontMetrics.getMetrics(B,d).baseline,this.ctx.font=B,this.ctx.fillStyle=rA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=gs(t.styles.textAlign),y=ql(t),p=0,t.styles.textAlign){case 1:p+=y.width/2;break;case 2:p+=y.width}f=y.add(p,0,0,-y.height/2+1),this.ctx.save(),this.path([new Cl(y.left,y.top),new Cl(y.left+y.width,y.top),new Cl(y.left+y.width,y.top+y.height),new Cl(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Fi(t.value,f),a.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ra(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(m=t.styles.listStyleImage).type)return[3,18];v=void 0,b=m.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return v=r.sent(),this.ctx.drawImage(v,t.bounds.left-(v.width+10),t.bounds.top),[3,18];case 17:return r.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(B=this.createFontStyle(a)[0],this.ctx.font=B,this.ctx.fillStyle=rA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new i(t.bounds.left,t.bounds.top+jn(t.styles.paddingTop,t.bounds.width),t.bounds.width,yr(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Fi(e.listValue,y),a.letterSpacing,yr(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return A(this,void 0,void 0,function(){var t,n,A,a,i,o,l,s,c,u,h,d,g,p,f;return r(this,function(r){switch(r.label){case 0:return ra(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:r.sent(),t=0,n=e.negativeZIndex,r.label=2;case 2:return t<n.length?(f=n[t],[4,this.renderStack(f)]):[3,5];case 3:r.sent(),r.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:r.sent(),A=0,a=e.nonInlineLevel,r.label=7;case 7:return A<a.length?(f=a[A],[4,this.renderNode(f)]):[3,10];case 8:r.sent(),r.label=9;case 9:return A++,[3,7];case 10:i=0,o=e.nonPositionedFloats,r.label=11;case 11:return i<o.length?(f=o[i],[4,this.renderStack(f)]):[3,14];case 12:r.sent(),r.label=13;case 13:return i++,[3,11];case 14:l=0,s=e.nonPositionedInlineLevel,r.label=15;case 15:return l<s.length?(f=s[l],[4,this.renderStack(f)]):[3,18];case 16:r.sent(),r.label=17;case 17:return l++,[3,15];case 18:c=0,u=e.inlineLevel,r.label=19;case 19:return c<u.length?(f=u[c],[4,this.renderNode(f)]):[3,22];case 20:r.sent(),r.label=21;case 21:return c++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return h<d.length?(f=d[h],[4,this.renderStack(f)]):[3,26];case 24:r.sent(),r.label=25;case 25:return h++,[3,23];case 26:g=0,p=e.positiveZIndex,r.label=27;case 27:return g<p.length?(f=p[g],[4,this.renderStack(f)]):[3,30];case 28:r.sent(),r.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var A=Fl(e)?e.start:e;0===n?t.ctx.moveTo(A.x,A.y):t.ctx.lineTo(A.x,A.y),Fl(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,A){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,A),this.ctx.fill(),this.ctx.translate(-n,-A)},n.prototype.resizeImage=function(e,t,n){var A;if(e.width===t&&e.height===n)return e;var r=(null!==(A=this.canvas.ownerDocument)&&void 0!==A?A:document).createElement("canvas");return r.width=Math.max(1,t),r.height=Math.max(1,n),r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),r},n.prototype.renderBackgroundImage=function(e){return A(this,void 0,void 0,function(){var t,n,A,a,i,o;return r(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var a,i,o,l,s,c,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D;return r(this,function(r){switch(r.label){case 0:if(0!==n.type)return[3,5];a=void 0,i=n.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,A.context.cache.match(i)];case 2:return a=r.sent(),[3,4];case 3:return r.sent(),A.context.logger.error("Error loading background-image "+i),[3,4];case 4:return a&&(o=es(e,t,[a.width,a.height,a.width/a.height]),B=o[0],S=o[1],E=o[2],x=o[3],w=o[4],v=A.ctx.createPattern(A.resizeImage(a,x,w),"repeat"),A.renderRepeat(B,v,S,E)),[3,6];case 5:IA(n)?(l=es(e,t,[null,null,null]),B=l[0],S=l[1],E=l[2],x=l[3],w=l[4],s=vA(n.angle,x,w),c=s[0],u=s[1],h=s[2],d=s[3],g=s[4],(p=document.createElement("canvas")).width=x,p.height=w,f=p.getContext("2d"),m=f.createLinearGradient(u,d,h,g),fA(n.stops,c).forEach(function(e){return m.addColorStop(e.stop,rA(e.color))}),f.fillStyle=m,f.fillRect(0,0,x,w),x>0&&w>0&&(v=A.ctx.createPattern(p,"repeat"),A.renderRepeat(B,v,S,E))):TA(n)&&(b=es(e,t,[null,null,null]),B=b[0],y=b[1],C=b[2],x=b[3],w=b[4],F=0===n.position.length?[Kn]:n.position,S=jn(F[0],x),E=jn(F[F.length-1],w),Q=yA(n,S,E,x,w),k=Q[0],L=Q[1],k>0&&L>0&&(U=A.ctx.createRadialGradient(y+S,C+E,0,y+S,C+E,k),fA(n.stops,2*k).forEach(function(e){return U.addColorStop(e.stop,rA(e.color))}),A.path(B),A.ctx.fillStyle=U,k!==L?(I=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,D=1/(N=L/k),A.ctx.save(),A.ctx.translate(I,T),A.ctx.transform(1,0,0,N,0,0),A.ctx.translate(-I,-T),A.ctx.fillRect(y,D*(C-T)+T,x,w*D),A.ctx.restore()):A.ctx.fill())),r.label=6;case 6:return t--,[2]}})},A=this,a=0,i=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return a<i.length?(o=i[a],[5,n(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return A(this,void 0,void 0,function(){return r(this,function(A){return this.path(Kl(n,t)),this.ctx.fillStyle=rA(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,a){return A(this,void 0,void 0,function(){var A,i;return r(this,function(r){switch(r.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,a)]:[3,2];case 1:return r.sent(),[2];case 2:return A=zl(a,n),this.path(A),this.ctx.fillStyle=rA(e),this.ctx.fill(),i=Wl(a,n),this.path(i),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return A(this,void 0,void 0,function(){var t,n,A,a,i,o,l,s,c=this;return r(this,function(r){switch(r.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!AA(t.backgroundColor)||t.backgroundImage.length,A=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],a=ds(rs(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),AA(t.backgroundColor)||(this.ctx.fillStyle=rA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){c.ctx.save();var n=Ql(e.curves),A=t.inset?0:cs,r=Hl(n,-A+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(n),c.ctx.clip(),c.mask(r)):(c.mask(n),c.ctx.clip(),c.path(r)),c.ctx.shadowOffsetX=t.offsetX.number+A,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=rA(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?rA(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),r.label=2;case 2:i=0,o=0,l=A,r.label=3;case 3:return o<l.length?0!==(s=l[o]).style&&!AA(s.color)&&s.width>0?2!==s.style?[3,5]:[4,this.renderDashedDottedBorder(s.color,s.width,i,e.curves,2)]:[3,11]:[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==s.style?[3,7]:[4,this.renderDashedDottedBorder(s.color,s.width,i,e.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==s.style?[3,9]:[4,this.renderDoubleBorder(s.color,s.width,i,e.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(s.color,i,e.curves)];case 10:r.sent(),r.label=11;case 11:i++,r.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,i){return A(this,void 0,void 0,function(){var A,o,l,s,c,u,h,d,g,p,f,m,v,b,B,y;return r(this,function(r){return this.ctx.save(),A=jl(a,n),o=Kl(a,n),2===i&&(this.path(o),this.ctx.clip()),Fl(o[0])?(l=o[0].start.x,s=o[0].start.y):(l=o[0].x,s=o[0].y),Fl(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y),h=0===n||2===n?Math.abs(l-c):Math.abs(s-u),this.ctx.beginPath(),3===i?this.formatPath(A):this.formatPath(o.slice(0,2)),d=t<3?3*t:2*t,g=t<3?2*t:t,3===i&&(d=t,g=t),p=!0,h<=2*d?p=!1:h<=2*d+g?(d*=f=h/(2*d+g),g*=f):(m=Math.floor((h+g)/(d+g)),v=(h-m*d)/(m-1),g=(b=(h-(m+1)*d)/m)<=0||Math.abs(g-v)<Math.abs(g-b)?v:b),p&&(3===i?this.ctx.setLineDash([0,d+g]):this.ctx.setLineDash([d,g])),3===i?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=rA(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===i&&(Fl(o[0])&&(B=o[3],y=o[0],this.ctx.beginPath(),this.formatPath([new Cl(B.end.x,B.end.y),new Cl(y.start.x,y.start.y)]),this.ctx.stroke()),Fl(o[1])&&(B=o[1],y=o[2],this.ctx.beginPath(),this.formatPath([new Cl(B.end.x,B.end.y),new Cl(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return A(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Gl(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(ss),hs=function(e){return e instanceof $i||e instanceof Zi||e instanceof qi&&e.type!==Xi&&e.type!==ji},ds=function(e,t){switch(e){case 0:return Ql(t);case 2:return kl(t);default:return Ll(t)}},gs=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},ps=["-apple-system","system-ui"],fs=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===ps.indexOf(e)}):e},ms=function(e){function n(t,n){var A=e.call(this,t,n)||this;return A.canvas=n.canvas?n.canvas:document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=n,A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+"px",A.canvas.style.height=n.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),A}return t(n,e),n.prototype.render=function(e){return A(this,void 0,void 0,function(){var t,n;return r(this,function(A){switch(A.label){case 0:return t=Ci(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,vs(t)];case 1:return n=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(ss),vs=function(e){return new Promise(function(t,n){var A=new Image;A.onload=function(){t(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},bs=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,a([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,a([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Bs=function(){function e(t,n){var A;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new bs({id:this.instanceName,enabled:t.logging}),this.cache=null!==(A=t.cache)&&void 0!==A?A:new dl(this,t)}return e.instanceCount=1,e}(),ys=function(e,t){return void 0===t&&(t={}),Cs(e,t)};"undefined"!=typeof window&&hl.setContext(window);var Cs=function(e,t){return A(void 0,void 0,void 0,function(){var A,a,s,c,u,h,d,g,p,f,m,v,b,B,y,C,x,w,F,S,E,Q,k,L,U,I,T,N,D,P,M,H,O,_,R,V,G,K;return r(this,function(r){switch(r.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(A=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=A.defaultView))throw new Error("Document is not attached to a Window");return s={allowTaint:null!==(Q=t.allowTaint)&&void 0!==Q&&Q,imageTimeout:null!==(k=t.imageTimeout)&&void 0!==k?k:15e3,proxy:t.proxy,useCORS:null!==(L=t.useCORS)&&void 0!==L&&L},c=n({logging:null===(U=t.logging)||void 0===U||U,cache:t.cache},s),u={windowWidth:null!==(I=t.windowWidth)&&void 0!==I?I:a.innerWidth,windowHeight:null!==(T=t.windowHeight)&&void 0!==T?T:a.innerHeight,scrollX:null!==(N=t.scrollX)&&void 0!==N?N:a.pageXOffset,scrollY:null!==(D=t.scrollY)&&void 0!==D?D:a.pageYOffset},h=new i(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Bs(c,h),g=null!==(P=t.foreignObjectRendering)&&void 0!==P&&P,p={allowTaint:null!==(M=t.allowTaint)&&void 0!==M&&M,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:g,copyStyles:g},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),f=new Xo(d,e,p),(m=f.clonedReferenceElement)?[4,f.toIFrame(A,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=r.sent(),b=mo(m)||po(m)?l(m.ownerDocument):o(d,m),B=b.width,y=b.height,C=b.left,x=b.top,w=xs(d,m,t.backgroundColor),F={canvas:t.canvas,backgroundColor:w,scale:null!==(O=null!==(H=t.scale)&&void 0!==H?H:a.devicePixelRatio)&&void 0!==O?O:1,x:(null!==(_=t.x)&&void 0!==_?_:0)+C,y:(null!==(R=t.y)&&void 0!==R?R:0)+x,width:null!==(V=t.width)&&void 0!==V?V:Math.ceil(B),height:null!==(G=t.height)&&void 0!==G?G:Math.ceil(y)},g?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new ms(d,F).render(m)]):[3,3];case 2:return S=r.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+C+","+x+" with size "+B+"x"+y+" using computed rendering"),d.logger.debug("Starting DOM parsing"),E=ro(d,m),w===E.styles.backgroundColor&&(E.styles.backgroundColor=hA.TRANSPARENT),d.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),[4,new us(d,F).render(E)];case 4:S=r.sent(),r.label=5;case 5:return(null===(K=t.removeContainer)||void 0===K||K)&&(Xo.destroy(v)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,S]}})})},xs=function(e,t,n){var A=t.ownerDocument,r=A.documentElement?uA(e,getComputedStyle(A.documentElement).backgroundColor):hA.TRANSPARENT,a=A.body?uA(e,getComputedStyle(A.body).backgroundColor):hA.TRANSPARENT,i="string"==typeof n?uA(e,n):null===n?hA.TRANSPARENT:4294967295;return t===A.documentElement?AA(r)?AA(a)?i:a:r:i};return ys}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>oe});
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
const{entries:A,setPrototypeOf:r,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:l,seal:s,create:c}=Object,{apply:u,construct:h}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),s||(s=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),h||(h=function(e,t){return new e(...t)});const d=Q(Array.prototype.forEach),g=Q(Array.prototype.lastIndexOf),p=Q(Array.prototype.pop),f=Q(Array.prototype.push),m=Q(Array.prototype.splice),v=Q(String.prototype.toLowerCase),b=Q(String.prototype.toString),B=Q(String.prototype.match),y=Q(String.prototype.replace),C=Q(String.prototype.indexOf),x=Q(String.prototype.trim),w=Q(Object.prototype.hasOwnProperty),F=Q(RegExp.prototype.test),S=(E=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(E,t)});var E;function Q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,A=new Array(n>1?n-1:0),r=1;r<n;r++)A[r-1]=arguments[r];return u(e,t,A)}}function k(e,t){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:v;r&&r(e,null);let A=t.length;for(;A--;){let r=t[A];if("string"==typeof r){const e=n(r);e!==r&&(a(t)||(t[A]=e),r=e)}e[r]=!0}return e}function L(e){for(let t=0;t<e.length;t++){w(e,t)||(e[t]=null)}return e}function U(e){const t=c(null);for(const[n,r]of A(e)){w(e,n)&&(Array.isArray(r)?t[n]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=U(r):t[n]=r)}return t}function I(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return Q(n.get);if("function"==typeof n.value)return Q(n.value)}e=i(e)}return function(){return null}}const T=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=l(["#text"]),_=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),R=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=s(/<%[\w\W]*|[\w\W]*%>/gm),W=s(/\$\{[\w\W]*/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=s(/^aria-[\-\w]+$/),Y=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=s(/^(?:\w+script|data):/i),q=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=s(/^html$/i),$=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:$,DATA_ATTR:j,DOCTYPE_NAME:Z,ERB_EXPR:z,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:J,MUSTACHE_EXPR:K,TMPLIT_EXPR:W});const te=1,ne=3,Ae=7,re=8,ae=9,ie=function(){return"undefined"==typeof window?null:window};var oe=function le(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ie();const t=e=>le(e);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==ae||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,a=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:h,NamedNodeMap:E=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:Q,DOMParser:L,trustedTypes:K}=e,z=u.prototype,W=I(z,"cloneNode"),j=I(z,"remove"),X=I(z,"nextSibling"),J=I(z,"childNodes"),q=I(z,"parentNode");if("function"==typeof o){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let $,oe="";const{implementation:se,createNodeIterator:ce,createDocumentFragment:ue,getElementsByTagName:he}=n,{importNode:de}=r;let ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};t.isSupported="function"==typeof A&&"function"==typeof q&&se&&se.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:pe,ERB_EXPR:fe,TMPLIT_EXPR:me,DATA_ATTR:ve,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:Be,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:Ce}=ee;let{IS_ALLOWED_URI:xe}=ee,we=null;const Fe=k({},[...T,...N,...D,...M,...O]);let Se=null;const Ee=k({},[..._,...R,...V,...G]);let Qe=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Le=null,Ue=!0,Ie=!0,Te=!1,Ne=!0,De=!1,Pe=!0,Me=!1,He=!1,Oe=!1,_e=!1,Re=!1,Ve=!1,Ge=!0,Ke=!1,ze=!0,We=!1,je={},Xe=null;const Ye=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const qe=k({},["audio","video","img","source","image","track"]);let Ze=null;const $e=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let At=nt,rt=!1,at=null;const it=k({},[et,tt,nt],b);let ot=k({},["mi","mo","mn","ms","mtext"]),lt=k({},["annotation-xml"]);const st=k({},["title","style","font","a","script"]);let ct=null;const ut=["application/xhtml+xml","text/html"];let ht=null,dt=null;const gt=n.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!dt||dt!==e){if(e&&"object"==typeof e||(e={}),e=U(e),ct=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ct?b:v,we=w(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,ht):Fe,Se=w(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,ht):Ee,at=w(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,b):it,Ze=w(e,"ADD_URI_SAFE_ATTR")?k(U($e),e.ADD_URI_SAFE_ATTR,ht):$e,Je=w(e,"ADD_DATA_URI_TAGS")?k(U(qe),e.ADD_DATA_URI_TAGS,ht):qe,Xe=w(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,ht):Ye,ke=w(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,ht):U({}),Le=w(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,ht):U({}),je=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Ue=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Pe=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,_e=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ke=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||Y,At=e.NAMESPACE||nt,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,lt=e.HTML_INTEGRATION_POINTS||lt,Qe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Qe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Qe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Qe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ie=!1),Re&&(_e=!0),je&&(we=k({},O),Se=[],!0===je.html&&(k(we,T),k(Se,_)),!0===je.svg&&(k(we,N),k(Se,R),k(Se,G)),!0===je.svgFilters&&(k(we,D),k(Se,R),k(Se,G)),!0===je.mathMl&&(k(we,M),k(Se,V),k(Se,G))),e.ADD_TAGS&&(we===Fe&&(we=U(we)),k(we,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Se===Ee&&(Se=U(Se)),k(Se,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&k(Ze,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Xe===Ye&&(Xe=U(Xe)),k(Xe,e.FORBID_CONTENTS,ht)),ze&&(we["#text"]=!0),Me&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=e.TRUSTED_TYPES_POLICY,oe=$.createHTML("")}else $===undefined&&($=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const A="data-tt-policy-suffix";t&&t.hasAttribute(A)&&(n=t.getAttribute(A));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(K,a)),null!==$&&"string"==typeof oe&&(oe=$.createHTML(""));l&&l(e),dt=e}},mt=k({},[...N,...D,...P]),vt=k({},[...M,...H]),bt=function(e){f(t.removed,{element:e});try{q(e).removeChild(e)}catch(n){j(e)}},Bt=function(e,n){try{f(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(A){f(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(_e||Re)try{bt(n)}catch(A){}else try{n.setAttribute(e,"")}catch(A){}},yt=function(e){let t=null,A=null;if(Oe)e="<remove></remove>"+e;else{const t=B(e,/^[\r\n\t ]+/);A=t&&t[0]}"application/xhtml+xml"===ct&&At===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=$?$.createHTML(e):e;if(At===nt)try{t=(new L).parseFromString(r,ct)}catch(i){}if(!t||!t.documentElement){t=se.createDocument(At,"template",null);try{t.documentElement.innerHTML=rt?oe:r}catch(i){}}const a=t.body||t.documentElement;return e&&A&&a.insertBefore(n.createTextNode(A),a.childNodes[0]||null),At===nt?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},Ct=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof Q&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof E)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof s&&e instanceof s};function Ft(e,n,A){d(e,e=>{e.call(t,n,A,dt)})}const St=function(e){let n=null;if(Ft(ge.beforeSanitizeElements,e,null),xt(e))return bt(e),!0;const A=ht(e.nodeName);if(Ft(ge.uponSanitizeElement,e,{tagName:A,allowedTags:we}),Pe&&e.hasChildNodes()&&!wt(e.firstElementChild)&&F(/<[/\w!]/g,e.innerHTML)&&F(/<[/\w!]/g,e.textContent))return bt(e),!0;if(e.nodeType===Ae)return bt(e),!0;if(Pe&&e.nodeType===re&&F(/<[/\w]/g,e.data))return bt(e),!0;if(!we[A]||ke[A]){if(!ke[A]&&Qt(A)){if(Qe.tagNameCheck instanceof RegExp&&F(Qe.tagNameCheck,A))return!1;if(Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck(A))return!1}if(ze&&!Xe[A]){const t=q(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t){for(let A=n.length-1;A>=0;--A){const r=W(n[A],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,X(e))}}}return bt(e),!0}return e instanceof u&&!function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:At,tagName:"template"});const n=v(e.tagName),A=v(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===A||ot[A]):Boolean(mt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&lt[A]:Boolean(vt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[A])&&!(t.namespaceURI===et&&!ot[A])&&!vt[n]&&(st[n]||!mt[n]):!("application/xhtml+xml"!==ct||!at[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==A&&"noembed"!==A&&"noframes"!==A||!F(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===ne&&(n=e.textContent,d([pe,fe,me],e=>{n=y(n,e," ")}),e.textContent!==n&&(f(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ft(ge.afterSanitizeElements,e,null),!1):(bt(e),!0)},Et=function(e,t,A){if(Ge&&("id"===t||"name"===t)&&(A in n||A in gt))return!1;if(Ie&&!Le[t]&&F(ve,t));else if(Ue&&F(be,t));else if(!Se[t]||Le[t]){if(!(Qt(e)&&(Qe.tagNameCheck instanceof RegExp&&F(Qe.tagNameCheck,e)||Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck(e))&&(Qe.attributeNameCheck instanceof RegExp&&F(Qe.attributeNameCheck,t)||Qe.attributeNameCheck instanceof Function&&Qe.attributeNameCheck(t))||"is"===t&&Qe.allowCustomizedBuiltInElements&&(Qe.tagNameCheck instanceof RegExp&&F(Qe.tagNameCheck,A)||Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck(A))))return!1}else if(Ze[t]);else if(F(xe,y(A,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(A,"data:")||!Je[e]){if(Te&&!F(Be,y(A,ye,"")));else if(A)return!1}else;return!0},Qt=function(e){return"annotation-xml"!==e&&B(e,Ce)},kt=function(e){Ft(ge.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||xt(e))return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:undefined};let r=n.length;for(;r--;){const i=n[r],{name:o,namespaceURI:l,value:s}=i,c=ht(o),u=s;let h="value"===o?u:x(u);if(A.attrName=c,A.attrValue=h,A.keepAttr=!0,A.forceKeepAttr=undefined,Ft(ge.uponSanitizeAttribute,e,A),h=A.attrValue,!Ke||"id"!==c&&"name"!==c||(Bt(o,e),h="user-content-"+h),Pe&&F(/((--!?|])>)|<\/(style|title)/i,h)){Bt(o,e);continue}if(A.forceKeepAttr)continue;if(!A.keepAttr){Bt(o,e);continue}if(!Ne&&F(/\/>/i,h)){Bt(o,e);continue}De&&d([pe,fe,me],e=>{h=y(h,e," ")});const g=ht(e.nodeName);if(Et(g,c,h)){if($&&"object"==typeof K&&"function"==typeof K.getAttributeType)if(l);else switch(K.getAttributeType(g,c)){case"TrustedHTML":h=$.createHTML(h);break;case"TrustedScriptURL":h=$.createScriptURL(h)}if(h!==u)try{l?e.setAttributeNS(l,o,h):e.setAttribute(o,h),xt(e)?bt(e):p(t.removed)}catch(a){Bt(o,e)}}else Bt(o,e)}Ft(ge.afterSanitizeAttributes,e,null)},Lt=function Ut(e){let t=null;const n=Ct(e);for(Ft(ge.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ft(ge.uponSanitizeShadowNode,t,null),St(t),kt(t),t.content instanceof i&&Ut(t.content);Ft(ge.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},A=null,a=null,o=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!t.isSupported)return e;if(He||ft(n),t.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=ht(e.nodeName);if(!we[t]||ke[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)A=yt("\x3c!----\x3e"),a=A.ownerDocument.importNode(e,!0),a.nodeType===te&&"BODY"===a.nodeName||"HTML"===a.nodeName?A=a:A.appendChild(a);else{if(!_e&&!De&&!Me&&-1===e.indexOf("<"))return $&&Ve?$.createHTML(e):e;if(A=yt(e),!A)return _e?null:Ve?oe:""}A&&Oe&&bt(A.firstChild);const c=Ct(We?e:A);for(;o=c.nextNode();)St(o),kt(o),o.content instanceof i&&Lt(o.content);if(We)return e;if(_e){if(Re)for(l=ue.call(A.ownerDocument);A.firstChild;)l.appendChild(A.firstChild);else l=A;return(Se.shadowroot||Se.shadowrootmode)&&(l=de.call(r,l,!0)),l}let u=Me?A.outerHTML:A.innerHTML;return Me&&we["!doctype"]&&A.ownerDocument&&A.ownerDocument.doctype&&A.ownerDocument.doctype.name&&F(Z,A.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+A.ownerDocument.doctype.name+">\n"+u),De&&d([pe,fe,me],e=>{u=y(u,e," ")}),$&&Ve?$.createHTML(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ft(e),He=!0},t.clearConfig=function(){dt=null,He=!1},t.isValidAttribute=function(e,t,n){dt||ft({});const A=ht(e),r=ht(t);return Et(A,r,n)},t.addHook=function(e,t){"function"==typeof t&&f(ge[e],t)},t.removeHook=function(e,t){if(t!==undefined){const n=g(ge[e],t);return-1===n?undefined:m(ge[e],n,1)[0]}return p(ge[e])},t.removeHooks=function(e){ge[e]=[]},t.removeAllHooks=function(){ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},t}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AElement:()=>je,AnimateColorElement:()=>Re,AnimateElement:()=>_e,AnimateTransformElement:()=>Ve,BoundingBox:()=>me,CB1:()=>_,CB2:()=>R,CB3:()=>V,CB4:()=>G,Canvg:()=>wt,CircleElement:()=>Ee,ClipPathElement:()=>ct,DefsElement:()=>Ne,DescElement:()=>mt,Document:()=>yt,Element:()=>ue,EllipseElement:()=>Qe,FeColorMatrixElement:()=>ot,FeCompositeElement:()=>gt,FeDropShadowElement:()=>ht,FeGaussianBlurElement:()=>pt,FeMorphologyElement:()=>dt,FilterElement:()=>ut,Font:()=>fe,FontElement:()=>Ge,FontFaceElement:()=>Ke,GElement:()=>De,GlyphElement:()=>ye,GradientElement:()=>Pe,ImageElement:()=>Ze,LineElement:()=>ke,LinearGradientElement:()=>Me,MarkerElement:()=>Te,MaskElement:()=>lt,Matrix:()=>ie,MissingGlyphElement:()=>ze,Mouse:()=>J,PSEUDO_ZERO:()=>P,Parser:()=>ne,PathElement:()=>Be,PathParser:()=>ve,PatternElement:()=>Ie,Point:()=>Y,PolygonElement:()=>Ue,PolylineElement:()=>Le,Property:()=>j,QB1:()=>K,QB2:()=>z,QB3:()=>W,RadialGradientElement:()=>He,RectElement:()=>Se,RenderedElement:()=>be,Rotate:()=>re,SVGElement:()=>Fe,SVGFontLoader:()=>et,Scale:()=>ae,Screen:()=>$,Skew:()=>oe,SkewX:()=>le,SkewY:()=>se,StopElement:()=>Oe,StyleElement:()=>tt,SymbolElement:()=>$e,TRefElement:()=>We,TSpanElement:()=>xe,TextElement:()=>Ce,TextPathElement:()=>Je,TitleElement:()=>ft,Transform:()=>ce,Translate:()=>Ae,UnknownElement:()=>he,UseElement:()=>nt,ViewPort:()=>X,compressSpaces:()=>b,"default":()=>wt,getSelectorSpecificity:()=>D,normalizeAttributeName:()=>w,normalizeColor:()=>S,parseExternalUrl:()=>F,presets:()=>v,toNumbers:()=>C,trimLeft:()=>B,trimRight:()=>y,vectorMagnitude:()=>M,vectorsAngle:()=>O,vectorsRatio:()=>H});n(1696);var A=n(1720),r=(n(1721),n(1733),n(1735),n(166),n(1739),n(1742)),a=(n(105),n(1745),n(1746),n(1747)),i=(n(114),n(1749)),o=(n(84),n(1750),n(1751),n(1752)),l=(n(1753),n(1754));function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var A=0;return function(){return A>=e.length?{done:!0}:{done:!1,value:e[A++]}}}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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,A=Array(t);n<t;n++)A[n]=e[n];return A}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){for(var n=0;n<t.length;n++){var A=t[n];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,p(A.key),A)}}function g(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var A=n.call(e,t||"default");if("object"!=typeof A)return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},A=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,A,r,a){var l=A&&A.prototype instanceof o?A:o,s=Object.create(l.prototype);return m(s,"_invoke",function(n,A,r){var a,o,l,s=0,c=r||[],u=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,o=0,l=e,h.n=n,i}};function d(n,A){for(o=n,l=A,t=0;!u&&s&&!r&&t<c.length;t++){var r,a=c[t],d=h.p,g=a[2];n>3?(r=g===A)&&(l=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=d&&((r=n<2&&d<a[1])?(o=0,h.v=A,h.n=a[1]):d<g&&(r=n<3||a[0]>A||A>g)&&(a[4]=n,a[5]=A,h.n=g,o=0))}if(r||n>1)return i;throw u=!0,A}return function(r,c,g){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&d(c,g),o=c,l=g;(t=o<2?e:l)||!u;){a||(o?o<3?(o>1&&(h.n=-1),d(o,l)):h.n=l:h.v=l);try{if(s=2,a){if(o||(r="next"),t=a[r]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=a["return"])&&t.call(a),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);a=e}else if((t=(u=h.n<0)?l:n.call(A,h))!==i)break}catch(t){a=e,o=1,l=t}finally{s=1}}return{value:t,done:u}}}(n,r,a),!0),s}var i={};function o(){}function l(){}function s(){}t=Object.getPrototypeOf;var c=[][A]?t(t([][A]())):(m(t={},A,function(){return this}),t),u=s.prototype=o.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,m(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=s,m(u,"constructor",s),m(s,"constructor",l),l.displayName="GeneratorFunction",m(s,r,"GeneratorFunction"),m(u),m(u,r,"Generator"),m(u,A,function(){return this}),m(u,"toString",function(){return"[object Generator]"}),(f=function(){return{w:a,m:h}})()}function m(e,t,n,A){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}m=function(e,t,n,A){if(t)r?r(e,t,{value:n,enumerable:!A,configurable:!A,writable:!A}):e[t]=n;else{function a(t,n){m(e,t,function(e){return this._invoke(t,n,e)})}a("next",0),a("throw",1),a("return",2)}},m(e,t,n,A)}var v=Object.freeze({__proto__:null,offscreen:function(){var e=(arguments.length>0&&arguments[0]!==undefined?arguments[0]:{}).DOMParser,t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:function(e,t){return new OffscreenCanvas(e,t)},createImage:function(e){return(0,A["default"])(f().m(function t(){var n,A,r;return f().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,fetch(e);case 1:return n=t.v,t.n=2,n.blob();case 2:return A=t.v,t.n=3,createImageBitmap(A);case 3:return r=t.v,t.a(2,r)}},t)}))()}};return"undefined"==typeof DOMParser&&void 0!==e||Reflect.deleteProperty(t,"DOMParser"),t},node:function(e){var t=e.DOMParser,n=e.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:e.fetch,createCanvas:n.createCanvas,createImage:n.loadImage}}});function b(e){return e.replace(/(?!\u3000)\s+/gm," ")}function B(e){return e.replace(/^[\n \t]+/,"")}function y(e){return e.replace(/[\n \t]+$/,"")}function C(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var x=/^[A-Z-]+$/;function w(e){return x.test(e)?e.toLowerCase():e}function F(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function S(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,function(e,n){return t--&&n?String(Math.round(parseFloat(e))):e})}var E=/(\[[^\]]+\])/g,Q=/(#[^\s+>~.[:]+)/g,k=/(\.[^\s+>~.[:]+)/g,L=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,U=/(:[\w-]+\([^)]*\))/gi,I=/(:[^\s+>~.[:]+)/g,T=/([^\s+>~.[:]+)/g;function N(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function D(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),A=0,r=N(n,E);n=r[0],A=r[1],t[1]+=A;var a=N(n,Q);n=a[0],A=a[1],t[0]+=A;var i=N(n,k);n=i[0],A=i[1],t[1]+=A;var o=N(n,L);n=o[0],A=o[1],t[2]+=A;var l=N(n,U);n=l[0],A=l[1],t[1]+=A;var s=N(n,I);n=s[0],A=s[1],t[1]+=A;var c=N(n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),T);return n=c[0],A=c[1],t[2]+=A,t.join("")}var P=1e-8;function M(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function H(e,t){return(e[0]*t[0]+e[1]*t[1])/(M(e)*M(t))}function O(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(H(e,t))}function _(e){return e*e*e}function R(e){return 3*e*e*(1-e)}function V(e){return 3*e*(1-e)*(1-e)}function G(e){return(1-e)*(1-e)*(1-e)}function K(e){return e*e}function z(e){return 2*e*(1-e)}function W(e){return(1-e)*(1-e)}var j=function(){function e(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}e.empty=function(t){return new e(t,"EMPTY","")};var t=e.prototype;return t.split=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:" ",n=this.document,A=this.name;return b(this.getString()).trim().split(t).map(function(t){return new e(n,A,t)})},t.hasValue=function(e){var t=this.value;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t},t.isString=function(e){var t=this.value,n="string"==typeof t;return n&&e?e.test(t):n},t.isUrlDefinition=function(){return this.isString(/^url\(/)},t.isPixels=function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}},t.setValue=function(e){return this.value=e,this},t.getValue=function(e){return void 0===e||this.hasValue()?this.value:e},t.getNumber=function(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var t=this.value,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n},t.getString=function(e){return void 0===e||this.hasValue()?"undefined"==typeof this.value?"":String(this.value):String(e)},t.getColor=function(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=S(t),this.value=t),t},t.getDpi=function(){return 96},t.getRem=function(){return this.document.rootEmSize},t.getEm=function(){return this.document.emSize},t.getUnits=function(){return this.getString().replace(/[0-9.-]/g,"")},t.getPixels=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(!this.hasValue())return 0;var n="boolean"==typeof e?[undefined,e]:[e],A=n[0],r=n[1],a=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(A);default:var i=this.getNumber();return t&&i<1?i*a.computeSize(A):i}},t.getMilliseconds=function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0},t.getRadians=function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}},t.getDefinition=function(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]},t.getFillStyleDefinition=function(e,t){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var A=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),A.hasValue()&&n.getAttribute("patternTransform",!0).setValue(A.value)}return n.createPattern(this.document.ctx,e,t)}return null},t.getTextBaseline=function(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null},t.addOpacity=function(t){for(var n=this.getColor(),A=n.length,r=0,a=0;a<A&&(","===n[a]&&r++,3!==r);a++);if(t.hasValue()&&this.isString()&&3!==r){var o=new i(n);o.ok&&(o.alpha=t.getNumber(),n=o.toRGBA())}return new e(this.document,this.name,n)},e}();j.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var X=function(){function e(){this.viewPorts=[]}var t=e.prototype;return t.clear=function(){this.viewPorts=[]},t.setCurrent=function(e,t){this.viewPorts.push({width:e,height:t})},t.removeCurrent=function(){this.viewPorts.pop()},t.getCurrent=function(){var e=this.viewPorts;return e[e.length-1]},t.computeSize=function(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)},g(e,[{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}])}(),Y=function(){function e(e,t){this.x=e,this.y=t}e.parse=function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,A=C(t),r=A[0],a=void 0===r?n:r,i=A[1];return new e(a,void 0===i?n:i)},e.parseScale=function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,A=C(t),r=A[0],a=void 0===r?n:r,i=A[1];return new e(a,void 0===i?a:i)},e.parsePath=function(t){for(var n=C(t),A=n.length,r=[],a=0;a<A;a+=2)r.push(new e(n[a],n[a+1]));return r};var t=e.prototype;return t.angleTo=function(e){return Math.atan2(e.y-this.y,e.x-this.x)},t.applyTransform=function(e){var t=this.x,n=this.y,A=t*e[0]+n*e[2]+e[4],r=t*e[1]+n*e[3]+e[5];this.x=A,this.y=r},e}(),J=function(){function e(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}var t=e.prototype;return t.isWorking=function(){return this.working},t.start=function(){if(!this.working){var e=this.screen,t=this.onClick,n=this.onMouseMove,A=e.ctx.canvas;A.onclick=t,A.onmousemove=n,this.working=!0}},t.stop=function(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}},t.hasEvents=function(){return this.working&&this.events.length>0},t.runEvents=function(){if(this.working){var e=this.screen,t=this.events,n=this.eventElements,A=e.ctx.canvas.style;A&&(A.cursor=""),t.forEach(function(e,t){for(var A=e.run,r=n[t];r;)A(r),r=r.parent}),this.events=[],this.eventElements=[]}},t.checkPath=function(e,t){if(this.working&&t){var n=this.events,A=this.eventElements;n.forEach(function(n,r){var a=n.x,i=n.y;!A[r]&&t.isPointInPath&&t.isPointInPath(a,i)&&(A[r]=e)})}},t.checkBoundingBox=function(e,t){if(this.working&&t){var n=this.events,A=this.eventElements;n.forEach(function(n,r){var a=n.x,i=n.y;!A[r]&&t.isPointInBox(a,i)&&(A[r]=e)})}},t.mapXY=function(e,t){for(var n=this.screen,A=n.window,r=n.ctx,a=new Y(e,t),i=r.canvas;i;)a.x-=i.offsetLeft,a.y-=i.offsetTop,i=i.offsetParent;return A.scrollX&&(a.x+=A.scrollX),A.scrollY&&(a.y+=A.scrollY),a},t.onClick=function(e){var t=this.mapXY(e.clientX,e.clientY),n=t.x,A=t.y;this.events.push({type:"onclick",x:n,y:A,run:function(e){e.onClick&&e.onClick()}})},t.onMouseMove=function(e){var t=this.mapXY(e.clientX,e.clientY),n=t.x,A=t.y;this.events.push({type:"onmousemove",x:n,y:A,run:function(e){e.onMouseMove&&e.onMouseMove()}})},e}(),q="undefined"!=typeof window?window:null,Z="undefined"!=typeof fetch?fetch.bind(undefined):null,$=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.fetch,A=void 0===n?Z:n,r=t.window,a=void 0===r?q:r;this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new X,this.mouse=new J(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=A}var t=e.prototype;return t.wait=function(e){this.waits.push(e)},t.ready=function(){return this.readyPromise?this.readyPromise:Promise.resolve()},t.isReady=function(){if(this.isReadyLock)return!0;var e=this.waits.every(function(e){return e()});return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e},t.setDefaults=function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4},t.setViewBox=function(e){var t=e.document,n=e.ctx,A=e.aspectRatio,r=e.width,a=e.desiredWidth,i=e.height,o=e.desiredHeight,l=e.minX,s=void 0===l?0:l,c=e.minY,u=void 0===c?0:c,h=e.refX,d=e.refY,g=e.clip,p=void 0!==g&&g,f=e.clipX,m=void 0===f?0:f,v=e.clipY,B=void 0===v?0:v,y=b(A).replace(/^defer\s/,"").split(" "),C=y[0]||"xMidYMid",x=y[1]||"meet",w=r/a,F=i/o,S=Math.min(w,F),E=Math.max(w,F),Q=a,k=o;"meet"===x&&(Q*=S,k*=S),"slice"===x&&(Q*=E,k*=E);var L=new j(t,"refX",h),U=new j(t,"refY",d),I=L.hasValue()&&U.hasValue();if(I&&n.translate(-S*L.getPixels("x"),-S*U.getPixels("y")),p){var T=S*m,N=S*B;n.beginPath(),n.moveTo(T,N),n.lineTo(r,N),n.lineTo(r,i),n.lineTo(T,i),n.closePath(),n.clip()}if(!I){var D="meet"===x&&S===F,P="slice"===x&&E===F,M="meet"===x&&S===w,H="slice"===x&&E===w;C.startsWith("xMid")&&(D||P)&&n.translate(r/2-Q/2,0),C.endsWith("YMid")&&(M||H)&&n.translate(0,i/2-k/2),C.startsWith("xMax")&&(D||P)&&n.translate(r-Q,0),C.endsWith("YMax")&&(M||H)&&n.translate(0,i-k)}switch(!0){case"none"===C:n.scale(w,F);break;case"meet"===x:n.scale(S,S);break;case"slice"===x:n.scale(E,E)}n.translate(-s,-u)},t.start=function(e){var t=this,n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},A=n.enableRedraw,r=void 0!==A&&A,i=n.ignoreMouse,o=void 0!==i&&i,l=n.ignoreAnimation,s=void 0!==l&&l,c=n.ignoreDimensions,u=void 0!==c&&c,h=n.ignoreClear,d=void 0!==h&&h,g=n.forceRedraw,p=n.scaleWidth,f=n.scaleHeight,m=n.offsetX,v=n.offsetY,b=this.FRAMERATE,B=this.mouse,y=1e3/b;if(this.frameDuration=y,this.readyPromise=new Promise(function(e){t.resolveReady=e}),this.isReady()&&this.render(e,u,d,p,f,m,v),r){var C=Date.now(),x=C,w=0,F=function(){C=Date.now(),(w=C-x)>=y&&(x=C-w%y,t.shouldUpdate(s,g)&&(t.render(e,u,d,p,f,m,v),B.runEvents())),t.intervalId=a(F)};o||B.start(),this.intervalId=a(F)}},t.stop=function(){this.intervalId&&(a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()},t.shouldUpdate=function(e,t){if(!e){var n=this.frameDuration,A=this.animations.reduce(function(e,t){return t.update(n)||e},!1);if(A)return!0}return!("function"!=typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())},t.render=function(e,t,n,A,r,a,i){var o=this.CLIENT_WIDTH,l=this.CLIENT_HEIGHT,s=this.viewPort,c=this.ctx,u=this.isFirstRender,h=c.canvas;s.clear(),h.width&&h.height?s.setCurrent(h.width,h.height):s.setCurrent(o,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(u||"number"!=typeof A&&"number"!=typeof r)&&(d.hasValue()&&(h.width=d.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),g.hasValue()&&(h.height=g.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var p=h.clientWidth||h.width,f=h.clientHeight||h.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),f=g.getPixels("y")),s.setCurrent(p,f),"number"==typeof a&&e.getAttribute("x",!0).setValue(a),"number"==typeof i&&e.getAttribute("y",!0).setValue(i),"number"==typeof A||"number"==typeof r){var m=C(e.getAttribute("viewBox").getString()),v=0,b=0;if("number"==typeof A){var B=e.getStyle("width");B.hasValue()?v=B.getPixels("x")/A:isNaN(m[2])||(v=m[2]/A)}if("number"==typeof r){var y=e.getStyle("height");y.hasValue()?b=y.getPixels("y")/r:isNaN(m[3])||(b=m[3]/r)}v||(v=b),b||(b=v),e.getAttribute("width",!0).setValue(A),e.getAttribute("height",!0).setValue(r);var x=e.getStyle("transform",!0,!0);x.setValue("".concat(x.getString()," scale(").concat(1/v,", ").concat(1/b,")"))}n||c.clearRect(0,0,p,f),e.render(c),u&&(this.isFirstRender=!1)},e}();$.defaultWindow=q,$.defaultFetch=Z;var ee=$.defaultFetch,te="undefined"!=typeof DOMParser?DOMParser:null,ne=function(){function e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.fetch,n=void 0===t?ee:t,A=e.DOMParser,r=void 0===A?te:A;this.fetch=n,this.DOMParser=r}var t=e.prototype;return t.parse=function(e){var t=this;return(0,A["default"])(f().m(function n(){return f().w(function(n){for(;;)switch(n.n){case 0:if(!e.startsWith("<")){n.n=1;break}return n.a(2,t.parseFromString(e));case 1:return n.a(2,t.load(e))}},n)}))()},t.parseFromString=function(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(n){return this.checkDocument(t.parseFromString(e,"text/xml"))}},t.checkDocument=function(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e},t.load=function(e){var t=this;return(0,A["default"])(f().m(function n(){var A,r;return f().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,t.fetch(e);case 1:return A=n.v,n.n=2,A.text();case 2:return r=n.v,n.a(2,t.parseFromString(r))}},n)}))()},e}(),Ae=function(){function e(e,t){this.type="translate",this.point=null,this.point=Y.parse(t)}var t=e.prototype;return t.apply=function(e){var t=this.point,n=t.x,A=t.y;e.translate(n||0,A||0)},t.unapply=function(e){var t=this.point,n=t.x,A=t.y;e.translate(-1*n||0,-1*A||0)},t.applyToPoint=function(e){var t=this.point,n=t.x,A=t.y;e.applyTransform([1,0,0,1,n||0,A||0])},e}(),re=function(){function e(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var A=C(t);this.angle=new j(e,"angle",A[0]),this.originX=n[0],this.originY=n[1],this.cx=A[1]||0,this.cy=A[2]||0}var t=e.prototype;return t.apply=function(e){var t=this.cx,n=this.cy,A=this.originX,r=this.originY,a=this.angle,i=t+A.getPixels("x"),o=n+r.getPixels("y");e.translate(i,o),e.rotate(a.getRadians()),e.translate(-i,-o)},t.unapply=function(e){var t=this.cx,n=this.cy,A=this.originX,r=this.originY,a=this.angle,i=t+A.getPixels("x"),o=n+r.getPixels("y");e.translate(i,o),e.rotate(-1*a.getRadians()),e.translate(-i,-o)},t.applyToPoint=function(e){var t=this.cx,n=this.cy,A=this.angle.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])},e}(),ae=function(){function e(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var A=Y.parseScale(t);0!==A.x&&0!==A.y||(A.x=P,A.y=P),this.scale=A,this.originX=n[0],this.originY=n[1]}var t=e.prototype;return t.apply=function(e){var t=this.scale,n=t.x,A=t.y,r=this.originX,a=this.originY,i=r.getPixels("x"),o=a.getPixels("y");e.translate(i,o),e.scale(n,A||n),e.translate(-i,-o)},t.unapply=function(e){var t=this.scale,n=t.x,A=t.y,r=this.originX,a=this.originY,i=r.getPixels("x"),o=a.getPixels("y");e.translate(i,o),e.scale(1/n,1/A||n),e.translate(-i,-o)},t.applyToPoint=function(e){var t=this.scale,n=t.x,A=t.y;e.applyTransform([n||0,0,0,A||0,0,0])},e}(),ie=function(){function e(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=C(t),this.originX=n[0],this.originY=n[1]}var t=e.prototype;return t.apply=function(e){var t=this.originX,n=this.originY,A=this.matrix,r=t.getPixels("x"),a=n.getPixels("y");e.translate(r,a),e.transform(A[0],A[1],A[2],A[3],A[4],A[5]),e.translate(-r,-a)},t.unapply=function(e){var t=this.originX,n=this.originY,A=this.matrix,r=A[0],a=A[2],i=A[4],o=A[1],l=A[3],s=A[5],c=1/(r*(1*l-0*s)-a*(1*o-0*s)+i*(0*o-0*l)),u=t.getPixels("x"),h=n.getPixels("y");e.translate(u,h),e.transform(c*(1*l-0*s),c*(0*s-1*o),c*(0*i-1*a),c*(1*r-0*i),c*(a*s-i*l),c*(i*o-r*s)),e.translate(-u,-h)},t.applyToPoint=function(e){e.applyTransform(this.matrix)},e}(),oe=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="skew",r.angle=null,r.angle=new j(t,"angle",n),r}return u(t,e),t}(ie),le=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return u(t,e),t}(oe),se=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return u(t,e),t}(oe);var ce=function(){function e(t,n,A){var r=this;this.document=t,this.transforms=[];var a=function(e){return b(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(n);a.forEach(function(t){if("none"!==t){var n=function(e){var t=e.split("("),n=t[0],A=t[1];return[n.trim(),A.trim().replace(")","")]}(t),a=n[0],i=n[1],o=e.transformTypes[a];void 0!==o&&r.transforms.push(new o(r.document,i,A))}})}e.fromElement=function(t,n){var A=n.getStyle("transform",!1,!0),r=n.getStyle("transform-origin",!1,!0).split(),a=r[0],i=r[1],o=[a,void 0===i?a:i];return A.hasValue()?new e(t,A.getString(),o):null};var t=e.prototype;return t.apply=function(e){for(var t=this.transforms,n=t.length,A=0;A<n;A++)t[A].apply(e)},t.unapply=function(e){for(var t=this.transforms,n=t.length-1;n>=0;n--)t[n].unapply(e)},t.applyToPoint=function(e){for(var t=this.transforms,n=t.length,A=0;A<n;A++)t[A].applyToPoint(e)},e}();ce.transformTypes={translate:Ae,rotate:re,scale:ae,matrix:ie,skewX:le,skewY:se};var ue=function(){function e(e,t){var n=this,A=arguments.length>2&&arguments[2]!==undefined&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=A,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach(function(t){var A=w(t.nodeName);n.attributes[A]=new j(e,A,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(function(e){return e.trim()}).forEach(function(t){if(t){var A=t.split(":").map(function(e){return e.trim()}),r=A[0],a=A[1];n.styles[r]=new j(e,r,a)}});var r=e.definitions,a=this.getAttribute("id");a.hasValue()&&(r[a.getString()]||(r[a.getString()]=this)),Array.from(t.childNodes).forEach(function(t){if(1===t.nodeType)n.addChild(t);else if(A&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&n.addChild(r)}})}}var t=e.prototype;return t.getAttribute=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=this.attributes[e];if(!n&&t){var A=new j(this.document,e,"");return this.attributes[e]=A,A}return n||j.empty(this.document)},t.getHrefAttribute=function(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return j.empty(this.document)},t.getStyle=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],A=this.styles[e];if(A)return A;var r=this.getAttribute(e);if(null!=r&&r.hasValue())return this.styles[e]=r,r;if(!n){var a=this.parent;if(a){var i=a.getStyle(e);if(null!=i&&i.hasValue())return i}}if(t){var o=new j(this.document,e,"");return this.styles[e]=o,o}return A||j.empty(this.document)},t.render=function(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}},t.setContext=function(e){},t.applyEffects=function(e){var t=ce.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var A=n.getDefinition();A&&A.apply(e)}},t.clearContext=function(e){},t.renderChildren=function(e){this.children.forEach(function(t){t.render(e)})},t.addChild=function(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)},t.matchesSelector=function(e){var t,n=this.node;if("function"==typeof n.matches)return n.matches(e);var A=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!A||""===A)&&A.split(" ").some(function(t){return".".concat(t)===e})},t.addStylesFromStyleDefinition=function(){var e=this.document,t=e.styles,n=e.stylesSpecificity;for(var A in t)if(!A.startsWith("@")&&this.matchesSelector(A)){var r=t[A],a=n[A];if(r)for(var i in r){var o=this.stylesSpecificity[i];void 0===o&&(o="000"),a>=o&&(this.styles[i]=r[i],this.stylesSpecificity[i]=a)}}},t.removeStyles=function(e,t){return t.reduce(function(t,n){var A=e.getStyle(n);if(!A.hasValue())return t;var r=A.getString();return A.setValue(""),[].concat(t,[[n,r]])},[])},t.restoreStyles=function(e,t){t.forEach(function(t){var n=t[0],A=t[1];e.getStyle(n,!0).setValue(A)})},t.isFirstChild=function(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))},e}();ue.ignoreChildTypes=["title"];var he=function(e){function t(t,n,A){return e.call(this,t,n,A)||this}return u(t,e),t}(ue);function de(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function ge(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function pe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}var fe=function(){function e(t,n,A,r,a,i){var o=i?"string"==typeof i?e.parse(i):i:{};this.fontFamily=a||o.fontFamily,this.fontSize=r||o.fontSize,this.fontStyle=t||o.fontStyle,this.fontWeight=A||o.fontWeight,this.fontVariant=n||o.fontVariant}return e.parse=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",n=arguments.length>1?arguments[1]:undefined,A="",r="",a="",i="",o="",l=b(t).trim().split(" "),s={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(t){switch(!0){case!s.fontStyle&&e.styles.includes(t):"inherit"!==t&&(A=t),s.fontStyle=!0;break;case!s.fontVariant&&e.variants.includes(t):"inherit"!==t&&(r=t),s.fontStyle=!0,s.fontVariant=!0;break;case!s.fontWeight&&e.weights.includes(t):"inherit"!==t&&(a=t),s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0;break;case!s.fontSize:if("inherit"!==t){var n=t.split("/");i=n[0]}s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0,s.fontSize=!0;break;default:"inherit"!==t&&(o+=t)}}),new e(A,r,a,i,o,n)},e.prototype.toString=function(){return[ge(this.fontStyle),this.fontVariant,pe(this.fontWeight),this.fontSize,(e=this.fontFamily,"undefined"==typeof process?e:e.trim().split(",").map(de).join(","))].join(" ").trim();var e},e}();fe.styles="normal|italic|oblique|inherit",fe.variants="normal|small-caps|inherit",fe.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var me=function(){function e(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.NaN,n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Number.NaN,A=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=A,this.addPoint(e,t),this.addPoint(n,A)}var t=e.prototype;return t.addPoint=function(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},t.addX=function(e){this.addPoint(e,null)},t.addY=function(e){this.addPoint(null,e)},t.addBoundingBox=function(e){if(e){var t=e.x1,n=e.y1,A=e.x2,r=e.y2;this.addPoint(t,n),this.addPoint(A,r)}},t.sumCubic=function(e,t,n,A,r){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*A+Math.pow(e,3)*r},t.bezierCurveAdd=function(e,t,n,A,r){var a=6*t-12*n+6*A,i=-3*t+9*n-9*A+3*r,o=3*n-3*t;if(0!==i){var l=Math.pow(a,2)-4*o*i;if(!(l<0)){var s=(-a+Math.sqrt(l))/(2*i);0<s&&s<1&&(e?this.addX(this.sumCubic(s,t,n,A,r)):this.addY(this.sumCubic(s,t,n,A,r)));var c=(-a-Math.sqrt(l))/(2*i);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,A,r)):this.addY(this.sumCubic(c,t,n,A,r)))}}else{if(0===a)return;var u=-o/a;0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,A,r)):this.addY(this.sumCubic(u,t,n,A,r)))}},t.addBezierCurve=function(e,t,n,A,r,a,i,o){this.addPoint(e,t),this.addPoint(i,o),this.bezierCurveAdd(!0,e,n,r,i),this.bezierCurveAdd(!1,t,A,a,o)},t.addQuadraticCurve=function(e,t,n,A,r,a){var i=e+2/3*(n-e),o=t+2/3*(A-t),l=i+1/3*(r-e),s=o+1/3*(a-t);this.addBezierCurve(e,t,i,l,o,s,r,a)},t.isPointInBox=function(e,t){var n=this.x1,A=this.y1,r=this.x2,a=this.y2;return n<=e&&e<=r&&A<=t&&t<=a},g(e,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}])}(),ve=function(e){function t(t){var n;return(n=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))||this).control=null,n.start=null,n.current=null,n.command=null,n.commands=n.commands,n.i=-1,n.previousCommand=null,n.points=[],n.angles=[],n}u(t,e);var n=t.prototype;return n.reset=function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Y(0,0),this.control=new Y(0,0),this.current=new Y(0,0),this.points=[],this.angles=[]},n.isEnd=function(){return this.i>=this.commands.length-1},n.next=function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e},n.getPoint=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"y",n=new Y(this.command[e],this.command[t]);return this.makeAbsolute(n)},n.getAsControlPoint=function(e,t){var n=this.getPoint(e,t);return this.control=n,n},n.getAsCurrentPoint=function(e,t){var n=this.getPoint(e,t);return this.current=n,n},n.getReflectedControlPoint=function(){var e=this.previousCommand.type;if(e!==o.SVGPathData.CURVE_TO&&e!==o.SVGPathData.SMOOTH_CURVE_TO&&e!==o.SVGPathData.QUAD_TO&&e!==o.SVGPathData.SMOOTH_QUAD_TO)return this.current;var t=this.current,n=t.x,A=t.y,r=this.control,a=r.x,i=r.y;return new Y(2*n-a,2*A-i)},n.makeAbsolute=function(e){if(this.command.relative){var t=this.current,n=t.x,A=t.y;e.x+=n,e.y+=A}return e},n.addMarker=function(e,t,n){var A=this.points,r=this.angles;n&&r.length>0&&!r[r.length-1]&&(r[r.length-1]=A[A.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)},n.addMarkerAngle=function(e,t){this.points.push(e),this.angles.push(t)},n.getMarkerPoints=function(){return this.points},n.getMarkerAngles=function(){for(var e=this.angles,t=e.length,n=0;n<t;n++)if(!e[n])for(var A=n+1;A<t;A++)if(e[A]){e[n]=e[A];break}return e},t}(o.SVGPathData),be=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).modifiedEmSizeStack=!1,t}u(t,e);var n=t.prototype;return n.calculateOpacity=function(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e},n.setContext=function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(!t){var n=this.getStyle("fill"),A=this.getStyle("fill-opacity"),r=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var i=n.getFillStyleDefinition(this,A);i&&(e.fillStyle=i)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var o=n.getColor();"inherit"!==o&&(e.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(A.hasValue()){var l=new j(this.document,"fill",e.fillStyle).addOpacity(A).getColor();e.fillStyle=l}if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,a);s&&(e.strokeStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var c=r.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(a.hasValue()){var u=new j(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=u}var h=this.getStyle("stroke-width");if(h.hasValue()){var d=h.getPixels();e.lineWidth=d||P}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),f=this.getStyle("stroke-miterlimit"),m=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),f.hasValue()&&(e.miterLimit=f.getNumber()),m.hasValue()&&"none"!==m.getString()){var b=C(m.getString());"undefined"!=typeof e.setLineDash?e.setLineDash(b):"undefined"!=typeof e.webkitLineDash?e.webkitLineDash=b:"undefined"==typeof e.mozDash||1===b.length&&0===b[0]||(e.mozDash=b);var B=v.getPixels();"undefined"!=typeof e.lineDashOffset?e.lineDashOffset=B:"undefined"!=typeof e.webkitLineDashOffset?e.webkitLineDashOffset=B:"undefined"!=typeof e.mozDashOffset&&(e.mozDashOffset=B)}}if(this.modifiedEmSizeStack=!1,"undefined"!=typeof e.font){var y=this.getStyle("font"),x=this.getStyle("font-style"),w=this.getStyle("font-variant"),F=this.getStyle("font-weight"),S=this.getStyle("font-size"),E=this.getStyle("font-family"),Q=new fe(x.getString(),w.getString(),F.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",E.getString(),fe.parse(y.getString(),e.font));x.setValue(Q.fontStyle),w.setValue(Q.fontVariant),F.setValue(Q.fontWeight),S.setValue(Q.fontSize),E.setValue(Q.fontFamily),e.font=Q.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())},n.clearContext=function(t){e.prototype.clearContext.call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()},t}(ue),Be=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="path",r.pathParser=null,r.pathParser=new ve(r.getAttribute("d").getString()),r}u(t,e);var n=t.prototype;return n.path=function(e){var t=this.pathParser,n=new me;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case ve.MOVE_TO:this.pathM(e,n);break;case ve.LINE_TO:this.pathL(e,n);break;case ve.HORIZ_LINE_TO:this.pathH(e,n);break;case ve.VERT_LINE_TO:this.pathV(e,n);break;case ve.CURVE_TO:this.pathC(e,n);break;case ve.SMOOTH_CURVE_TO:this.pathS(e,n);break;case ve.QUAD_TO:this.pathQ(e,n);break;case ve.SMOOTH_QUAD_TO:this.pathT(e,n);break;case ve.ARC:this.pathA(e,n);break;case ve.CLOSE_PATH:this.pathZ(e,n)}return n},n.getBoundingBox=function(e){return this.path()},n.getMarkers=function(){var e=this.pathParser,t=e.getMarkerPoints(),n=e.getMarkerAngles();return t.map(function(e,t){return[e,n[t]]})},n.renderChildren=function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var A=n.length-1,r=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),i=this.getStyle("marker-end");if(r.isUrlDefinition()){var o=r.getDefinition(),l=n[0],s=l[0],c=l[1];o.render(e,s,c)}if(a.isUrlDefinition())for(var u=a.getDefinition(),h=1;h<A;h++){var d=n[h],g=d[0],p=d[1];u.render(e,g,p)}if(i.isUrlDefinition()){var f=i.getDefinition(),m=n[A],v=m[0],b=m[1];f.render(e,v,b)}}},t.pathM=function(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}},n.pathM=function(e,n){var A=this.pathParser,r=t.pathM(A).point,a=r.x,i=r.y;A.addMarker(r),n.addPoint(a,i),e&&e.moveTo(a,i)},t.pathL=function(e){return{current:e.current,point:e.getAsCurrentPoint()}},n.pathL=function(e,n){var A=this.pathParser,r=t.pathL(A),a=r.current,i=r.point,o=i.x,l=i.y;A.addMarker(i,a),n.addPoint(o,l),e&&e.lineTo(o,l)},t.pathH=function(e){var t=e.current,n=e.command,A=new Y((n.relative?t.x:0)+n.x,t.y);return e.current=A,{current:t,point:A}},n.pathH=function(e,n){var A=this.pathParser,r=t.pathH(A),a=r.current,i=r.point,o=i.x,l=i.y;A.addMarker(i,a),n.addPoint(o,l),e&&e.lineTo(o,l)},t.pathV=function(e){var t=e.current,n=e.command,A=new Y(t.x,(n.relative?t.y:0)+n.y);return e.current=A,{current:t,point:A}},n.pathV=function(e,n){var A=this.pathParser,r=t.pathV(A),a=r.current,i=r.point,o=i.x,l=i.y;A.addMarker(i,a),n.addPoint(o,l),e&&e.lineTo(o,l)},t.pathC=function(e){return{current:e.current,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}},n.pathC=function(e,n){var A=this.pathParser,r=t.pathC(A),a=r.current,i=r.point,o=r.controlPoint,l=r.currentPoint;A.addMarker(l,o,i),n.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,l.x,l.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,l.x,l.y)},t.pathS=function(e){return{current:e.current,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}},n.pathS=function(e,n){var A=this.pathParser,r=t.pathS(A),a=r.current,i=r.point,o=r.controlPoint,l=r.currentPoint;A.addMarker(l,o,i),n.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,l.x,l.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,l.x,l.y)},t.pathQ=function(e){return{current:e.current,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}},n.pathQ=function(e,n){var A=this.pathParser,r=t.pathQ(A),a=r.current,i=r.controlPoint,o=r.currentPoint;A.addMarker(o,i,i),n.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)},t.pathT=function(e){var t=e.current,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}},n.pathT=function(e,n){var A=this.pathParser,r=t.pathT(A),a=r.current,i=r.controlPoint,o=r.currentPoint;A.addMarker(o,i,i),n.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)},t.pathA=function(e){var t=e.current,n=e.command,A=n.rX,r=n.rY,a=n.xRot,i=n.lArcFlag,o=n.sweepFlag,l=a*(Math.PI/180),s=e.getAsCurrentPoint(),c=new Y(Math.cos(l)*(t.x-s.x)/2+Math.sin(l)*(t.y-s.y)/2,-Math.sin(l)*(t.x-s.x)/2+Math.cos(l)*(t.y-s.y)/2),u=Math.pow(c.x,2)/Math.pow(A,2)+Math.pow(c.y,2)/Math.pow(r,2);u>1&&(A*=Math.sqrt(u),r*=Math.sqrt(u));var h=(i===o?-1:1)*Math.sqrt((Math.pow(A,2)*Math.pow(r,2)-Math.pow(A,2)*Math.pow(c.y,2)-Math.pow(r,2)*Math.pow(c.x,2))/(Math.pow(A,2)*Math.pow(c.y,2)+Math.pow(r,2)*Math.pow(c.x,2)));isNaN(h)&&(h=0);var d=new Y(h*A*c.y/r,h*-r*c.x/A),g=new Y((t.x+s.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+s.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=O([1,0],[(c.x-d.x)/A,(c.y-d.y)/r]),f=[(c.x-d.x)/A,(c.y-d.y)/r],m=[(-c.x-d.x)/A,(-c.y-d.y)/r],v=O(f,m);return H(f,m)<=-1&&(v=Math.PI),H(f,m)>=1&&(v=0),{currentPoint:s,rX:A,rY:r,sweepFlag:o,xAxisRotation:l,centp:g,a1:p,ad:v}},n.pathA=function(e,n){var A=this.pathParser,r=t.pathA(A),a=r.currentPoint,i=r.rX,o=r.rY,l=r.sweepFlag,s=r.xAxisRotation,c=r.centp,u=r.a1,h=r.ad,d=1-l?1:-1,g=u+d*(h/2),p=new Y(c.x+i*Math.cos(g),c.y+o*Math.sin(g));if(A.addMarkerAngle(p,g-d*Math.PI/2),A.addMarkerAngle(a,g-d*Math.PI),n.addPoint(a.x,a.y),e&&!isNaN(u)&&!isNaN(h)){var f=i>o?i:o,m=i>o?1:i/o,v=i>o?o/i:1;e.translate(c.x,c.y),e.rotate(s),e.scale(m,v),e.arc(0,0,f,u,u+h,Boolean(1-l)),e.scale(1/m,1/v),e.rotate(-s),e.translate(-c.x,-c.y)}},t.pathZ=function(e){e.current=e.start},n.pathZ=function(e,n){t.pathZ(this.pathParser),e&&n.x1!==n.x2&&n.y1!==n.y2&&e.closePath()},t}(be),ye=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return u(t,e),t}(Be),Ce=function(e){function t(n,A,r){var a;return(a=e.call(this,n,A,(this instanceof t?this.constructor:void 0)===t||r)||this).type="text",a.x=0,a.y=0,a.measureCache=-1,a}u(t,e);var n=t.prototype;return n.setContext=function(t){var n=arguments.length>1&&arguments[1]!==undefined&&arguments[1];e.prototype.setContext.call(this,t,n);var A=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();A&&(t.textBaseline=A)},n.initializeCoordinates=function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY},n.getBoundingBox=function(e){var t=this;if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var n=null;return this.children.forEach(function(A,r){var a=t.getChildBoundingBox(e,t,t,r);n?n.addBoundingBox(a):n=a}),n},n.getFontSize=function(){var e=this.document,t=this.parent,n=fe.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(n)},n.getTElementBoundingBox=function(e){var t=this.getFontSize();return new me(this.x,this.y-t,this.x+this.measureText(e),this.y)},n.getGlyph=function(e,t,n){var A=t[n],r=null;if(e.isArabic){var a=t.length,i=t[n-1],o=t[n+1],l="isolated";if((0===n||" "===i)&&n<a-1&&" "!==o&&(l="terminal"),n>0&&" "!==i&&n<a-1&&" "!==o&&(l="medial"),n>0&&" "!==i&&(n===a-1||" "===o)&&(l="initial"),"undefined"!=typeof e.glyphs[A]){var s=e.glyphs[A];r=s instanceof ye?s:s[l]}}else r=e.glyphs[A];return r||(r=e.missingGlyph),r},n.getText=function(){return""},n.getTextFromNode=function(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),A=n.indexOf(t),r=n.length-1,a=b(t.textContent||"");return 0===A&&(a=B(a)),A===r&&(a=y(a)),a},n.renderChildren=function(e){var t=this;if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(function(n,A){t.renderChild(e,t,t,A)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)},n.renderTElementChildren=function(e){var t=this.document,n=this.parent,A=this.getText(),r=n.getStyle("font-family").getDefinition();if(r)for(var a=r.fontFace.unitsPerEm,i=fe.parse(t.ctx.font),o=n.getStyle("font-size").getNumber(i.fontSize),l=n.getStyle("font-style").getString(i.fontStyle),s=o/a,c=r.isRTL?A.split("").reverse().join(""):A,u=C(n.getAttribute("dx").getString()),h=c.length,d=0;d<h;d++){var g=this.getGlyph(r,c,d);e.translate(this.x,this.y),e.scale(s,-s);var p=e.lineWidth;e.lineWidth=e.lineWidth*a/o,"italic"===l&&e.transform(1,0,.4,1,0,0),g.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=p,e.scale(1/s,-1/s),e.translate(-this.x,-this.y),this.x+=o*(g.horizAdvX||r.horizAdvX)/a,"undefined"==typeof u[d]||isNaN(u[d])||(this.x+=u[d])}else{var f=this.x,m=this.y;e.fillStyle&&e.fillText(A,f,m),e.strokeStyle&&e.strokeText(A,f,m)}},n.applyAnchoring=function(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=0;n="start"===t?e.x-this.minX:"end"===t?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var A=this.textChunkStart;A<this.leafTexts.length;A++)this.leafTexts[A].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}},n.adjustChildCoordinatesRecursive=function(e){var t=this;this.children.forEach(function(n,A){t.adjustChildCoordinatesRecursiveCore(e,t,t,A)}),this.applyAnchoring()},n.adjustChildCoordinatesRecursiveCore=function(e,t,n,A){var r=n.children[A];r.children.length>0?r.children.forEach(function(n,A){t.adjustChildCoordinatesRecursiveCore(e,t,r,A)}):this.adjustChildCoordinates(e,t,n,A)},n.adjustChildCoordinates=function(e,t,n,A){var r=n.children[A];if("function"!=typeof r.measureText)return r;e.save(),r.setContext(e,!0);var a=r.getAttribute("x"),i=r.getAttribute("y"),o=r.getAttribute("dx"),l=r.getAttribute("dy"),s=r.getStyle("font-family").getDefinition(),c=Boolean(s)&&s.isRTL;0===A&&(a.hasValue()||a.setValue(r.getInheritedAttribute("x")),i.hasValue()||i.setValue(r.getInheritedAttribute("y")),o.hasValue()||o.setValue(r.getInheritedAttribute("dx")),l.hasValue()||l.setValue(r.getInheritedAttribute("dy")));var u=r.measureText(e);return c&&(t.x-=u),a.hasValue()?(t.applyAnchoring(),r.x=a.getPixels("x"),o.hasValue()&&(r.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),r.x=t.x),t.x=r.x,c||(t.x+=u),i.hasValue()?(r.y=i.getPixels("y"),l.hasValue()&&(r.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),r.y=t.y),t.y=r.y,t.leafTexts.push(r),t.minX=Math.min(t.minX,r.x,r.x+u),t.maxX=Math.max(t.maxX,r.x,r.x+u),r.clearContext(e),e.restore(),r},n.getChildBoundingBox=function(e,t,n,A){var r=n.children[A];if("function"!=typeof r.getBoundingBox)return null;var a=r.getBoundingBox(e);return a?(r.children.forEach(function(n,A){var i=t.getChildBoundingBox(e,t,r,A);a.addBoundingBox(i)}),a):null},n.renderChild=function(e,t,n,A){var r=n.children[A];r.render(e),r.children.forEach(function(n,A){t.renderChild(e,t,r,A)})},n.measureText=function(e){var t=this.measureCache;if(~t)return t;var n=this.getText(),A=this.measureTargetText(e,n);return this.measureCache=A,A},n.measureTargetText=function(e,t){if(!t.length)return 0;var n=this.parent,A=n.getStyle("font-family").getDefinition();if(A){for(var r=this.getFontSize(),a=A.isRTL?t.split("").reverse().join(""):t,i=C(n.getAttribute("dx").getString()),o=a.length,l=0,s=0;s<o;s++){l+=(this.getGlyph(A,a,s).horizAdvX||A.horizAdvX)*r/A.fontFace.unitsPerEm,"undefined"==typeof i[s]||isNaN(i[s])||(l+=i[s])}return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var c=e.measureText(t).width;return this.clearContext(e),e.restore(),c},n.getInheritedAttribute=function(e){for(var n=this;n instanceof t&&n.isFirstChild();){var A=n.parent.getAttribute(e);if(A.hasValue(!0))return A.getValue("0");n=n.parent}return null},t}(be),xe=function(e){function t(n,A,r){var a;return(a=e.call(this,n,A,(this instanceof t?this.constructor:void 0)===t||r)||this).type="tspan",a.text=a.children.length>0?"":a.getTextFromNode(),a}return u(t,e),t.prototype.getText=function(){return this.text},t}(Ce),we=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="textNode",t}return u(t,e),t}(xe),Fe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="svg",t.root=!1,t}u(t,e);var n=t.prototype;return n.setContext=function(t){var n,A=this.document,r=A.screen,a=A.window,i=t.canvas;if(r.setDefaults(t),i.style&&"undefined"!=typeof t.font&&a&&"undefined"!=typeof a.getComputedStyle){t.font=a.getComputedStyle(i).getPropertyValue("font");var o=new j(A,"fontSize",fe.parse(t.font).fontSize);o.hasValue()&&(A.rootEmSize=o.getPixels("y"),A.emSize=A.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var l=r.viewPort,s=l.width,c=l.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),h=this.getAttribute("refY"),d=this.getAttribute("viewBox"),g=d.hasValue()?C(d.getString()):null,p=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),f=0,m=0,v=0,b=0;g&&(f=g[0],m=g[1]),this.root||(s=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=f,b=m,f=0,m=0)),r.viewPort.setCurrent(s,c),!this.node||this.parent&&"foreignObject"!==(null===(n=this.node.parentNode)||void 0===n?void 0:n.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),e.prototype.setContext.call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),g&&(s=g[2],c=g[3]),A.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:s,height:r.viewPort.height,desiredHeight:c,minX:f,minY:m,refX:u.getValue(),refY:h.getValue(),clip:p,clipX:v,clipY:b}),g&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(s,c))},n.clearContext=function(t){e.prototype.clearContext.call(this,t),this.document.screen.viewPort.removeCurrent()},n.resize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e,n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],A=this.getAttribute("width",!0),r=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),i=this.getAttribute("style"),o=A.getNumber(0),l=r.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var s=this.getAttribute("preserveAspectRatio");s.hasValue()&&s.setValue(s.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(A.setValue(e),r.setValue(t),a.hasValue()||a.setValue("0 0 ".concat(o||e," ").concat(l||t)),i.hasValue()){var c=this.getStyle("width"),u=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),u.hasValue()&&u.setValue("".concat(t,"px"))}},t}(be),Se=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="rect",t}u(t,e);var n=t.prototype;return n.path=function(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),A=this.getStyle("width",!1,!0).getPixels("x"),r=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),i=this.getAttribute("ry"),o=a.getPixels("x"),l=i.getPixels("y");if(a.hasValue()&&!i.hasValue()&&(l=o),i.hasValue()&&!a.hasValue()&&(o=l),o=Math.min(o,A/2),l=Math.min(l,r/2),e){var s=(Math.sqrt(2)-1)/3*4;e.beginPath(),r>0&&A>0&&(e.moveTo(t+o,n),e.lineTo(t+A-o,n),e.bezierCurveTo(t+A-o+s*o,n,t+A,n+l-s*l,t+A,n+l),e.lineTo(t+A,n+r-l),e.bezierCurveTo(t+A,n+r-l+s*l,t+A-o+s*o,n+r,t+A-o,n+r),e.lineTo(t+o,n+r),e.bezierCurveTo(t+o-s*o,n+r,t,n+r-l+s*l,t,n+r-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-s*l,t+o-s*o,n,t+o,n),e.closePath())}return new me(t,n,t+A,n+r)},n.getMarkers=function(){return null},t}(Be),Ee=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="circle",t}u(t,e);var n=t.prototype;return n.path=function(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),A=this.getAttribute("r").getPixels();return e&&A>0&&(e.beginPath(),e.arc(t,n,A,0,2*Math.PI,!1),e.closePath()),new me(t-A,n-A,t+A,n+A)},n.getMarkers=function(){return null},t}(Be),Qe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="ellipse",t}u(t,e);var n=t.prototype;return n.path=function(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),A=this.getAttribute("ry").getPixels("y"),r=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&n>0&&A>0&&(e.beginPath(),e.moveTo(r+n,a),e.bezierCurveTo(r+n,a+t*A,r+t*n,a+A,r,a+A),e.bezierCurveTo(r-t*n,a+A,r-n,a+t*A,r-n,a),e.bezierCurveTo(r-n,a-t*A,r-t*n,a-A,r,a-A),e.bezierCurveTo(r+t*n,a-A,r+n,a-t*A,r+n,a),e.closePath()),new me(r-n,a-A,r+n,a+A)},n.getMarkers=function(){return null},t}(Be),ke=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="line",t}u(t,e);var n=t.prototype;return n.getPoints=function(){return[new Y(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Y(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]},n.path=function(e){var t=this.getPoints(),n=t[0],A=n.x,r=n.y,a=t[1],i=a.x,o=a.y;return e&&(e.beginPath(),e.moveTo(A,r),e.lineTo(i,o)),new me(A,r,i,o)},n.getMarkers=function(){var e=this.getPoints(),t=e[0],n=e[1],A=t.angleTo(n);return[[t,A],[n,A]]},t}(Be),Le=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="polyline",r.points=[],r.points=Y.parsePath(r.getAttribute("points").getString()),r}u(t,e);var n=t.prototype;return n.path=function(e){var t=this.points,n=t[0],A=n.x,r=n.y,a=new me(A,r);return e&&(e.beginPath(),e.moveTo(A,r)),t.forEach(function(t){var n=t.x,A=t.y;a.addPoint(n,A),e&&e.lineTo(n,A)}),a},n.getMarkers=function(){var e=this.points,t=e.length-1,n=[];return e.forEach(function(A,r){r!==t&&n.push([A,A.angleTo(e[r+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n},t}(Be),Ue=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="polygon",t}return u(t,e),t.prototype.path=function(t){var n=e.prototype.path.call(this,t),A=this.points[0],r=A.x,a=A.y;return t&&(t.lineTo(r,a),t.closePath()),n},t}(Le),Ie=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="pattern",t}return u(t,e),t.prototype.createPattern=function(e,t,n){var A=this.getStyle("width").getPixels("x",!0),r=this.getStyle("height").getPixels("y",!0),a=new Fe(this.document,null);a.attributes.viewBox=new j(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new j(this.document,"width","".concat(A,"px")),a.attributes.height=new j(this.document,"height","".concat(r,"px")),a.attributes.transform=new j(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var i=this.document.createCanvas(A,r),o=i.getContext("2d"),l=this.getAttribute("x"),s=this.getAttribute("y");l.hasValue()&&s.hasValue()&&o.translate(l.getPixels("x",!0),s.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var u=-1;u<=1;u++)o.save(),a.attributes.x=new j(this.document,"x",c*i.width),a.attributes.y=new j(this.document,"y",u*i.height),a.render(o),o.restore();return e.createPattern(i,"repeat")},t}(ue),Te=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="marker",t}return u(t,e),t.prototype.render=function(e,t,n){if(t){var A=t.x,r=t.y,a=this.getAttribute("orient").getString("auto"),i=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(A,r),"auto"===a&&e.rotate(n),"strokeWidth"===i&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new Fe(this.document,null);o.type=this.type,o.attributes.viewBox=new j(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new j(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new j(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new j(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new j(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new j(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new j(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new j(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),"strokeWidth"===i&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===a&&e.rotate(-n),e.translate(-A,-r)}},t}(ue),Ne=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="defs",t}return u(t,e),t.prototype.render=function(){},t}(ue),De=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="g",t}return u(t,e),t.prototype.getBoundingBox=function(e){var t=new me;return this.children.forEach(function(n){t.addBoundingBox(n.getBoundingBox(e))}),t},t}(be),Pe=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).attributesToInherit=["gradientUnits"],r.stops=[];var a=r,i=a.stops;return a.children.forEach(function(e){"stop"===e.type&&i.push(e)}),r}u(t,e);var n=t.prototype;return n.getGradientUnits=function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")},n.createGradient=function(e,t,n){var A=this,r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var a=r.stops,i=this.getGradient(e,t);if(!i)return this.addParentOpacity(n,a[a.length-1].color);if(a.forEach(function(e){i.addColorStop(e.offset,A.addParentOpacity(n,e.color))}),this.getAttribute("gradientTransform").hasValue()){var o=this.document,l=o.screen,s=l.MAX_VIRTUAL_PIXELS,c=l.viewPort.viewPorts[0],u=new Se(o,null);u.attributes.x=new j(o,"x",-s/3),u.attributes.y=new j(o,"y",-s/3),u.attributes.width=new j(o,"width",s),u.attributes.height=new j(o,"height",s);var h=new De(o,null);h.attributes.transform=new j(o,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[u];var d=new Fe(o,null);d.attributes.x=new j(o,"x",0),d.attributes.y=new j(o,"y",0),d.attributes.width=new j(o,"width",c.width),d.attributes.height=new j(o,"height",c.height),d.children=[h];var g=o.createCanvas(c.width,c.height),p=g.getContext("2d");return p.fillStyle=i,d.render(p),p.createPattern(g,"no-repeat")}return i},n.inheritStopContainer=function(e){var t=this;this.attributesToInherit.forEach(function(n){!t.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&t.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})},n.addParentOpacity=function(e,t){return e.hasValue()?new j(this.document,"color",t).addOpacity(e).getColor():t},t}(ue),Me=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return u(t,e),t.prototype.getGradient=function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),A=n?t.getBoundingBox(e):null;if(n&&!A)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var r=n?A.x+A.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=n?A.y+A.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),i=n?A.x+A.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=n?A.y+A.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return r===i&&a===o?null:e.createLinearGradient(r,a,i,o)},t}(Pe),He=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return u(t,e),t.prototype.getGradient=function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),A=t.getBoundingBox(e);if(n&&!A)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var r=n?A.x+A.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=n?A.y+A.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),i=r,o=a;this.getAttribute("fx").hasValue()&&(i=n?A.x+A.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=n?A.y+A.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(A.width+A.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),s=this.getAttribute("fr").getPixels();return e.createRadialGradient(i,o,s,r,a,l)},t}(Pe),Oe=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="stop";var a=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),i=r.getStyle("stop-opacity"),o=r.getStyle("stop-color",!0);return""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),r.offset=a,r.color=o.getColor(),r}return u(t,e),t}(ue),_e=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,t.screen.animations.push(r),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new j(t,"values",null);var a=r.getAttribute("values");return a.hasValue()&&r.values.setValue(a.getString().split(";")),r}u(t,e);var n=t.prototype;return n.getProperty=function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)},n.calcValue=function(){var e=this.initialUnits,t=this.getProgress(),n=t.progress,A=t.from,r=t.to,a=A.getNumber()+(r.getNumber()-A.getNumber())*n;return"%"===e&&(a*=100),"".concat(a).concat(e)},n.update=function(e){var t=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var A=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==A||this.frozen){if("remove"===A&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var r=!1;if(this.begin<this.duration){var a=this.calcValue(),i=this.getAttribute("type");if(i.hasValue()){var o=i.getString();a="".concat(o,"(").concat(a,")")}n.setValue(a),r=!0}return r},n.getProgress=function(){var e=this.document,t=this.values,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var A=n.progress*(t.getValue().length-1),r=Math.floor(A),a=Math.ceil(A);n.from=new j(e,"from",parseFloat(t.getValue()[r])),n.to=new j(e,"to",parseFloat(t.getValue()[a])),n.progress=(A-r)/(a-r)}else n.from=this.from,n.to=this.to;return n},t}(ue),Re=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="animateColor",t}return u(t,e),t.prototype.calcValue=function(){var e=this.getProgress(),t=e.progress,n=e.from,A=e.to,r=new i(n.getColor()),a=new i(A.getColor());if(r.ok&&a.ok){var o=r.r+(a.r-r.r)*t,l=r.g+(a.g-r.g)*t,s=r.b+(a.b-r.b)*t;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(l),", ").concat(Math.floor(s),")")}return this.getAttribute("from").getColor()},t}(_e),Ve=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="animateTransform",t}return u(t,e),t.prototype.calcValue=function(){var e=this.getProgress(),t=e.progress,n=e.from,A=e.to,r=C(n.getString()),a=C(A.getString()),i=r.map(function(e,n){return e+(a[n]-e)*t}).join(" ");return i},t}(_e),Ge=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="font",r.glyphs=Object.create(null),r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber();for(var a,i=t.definitions,o=s(r.children);!(a=o()).done;){var l=a.value;switch(l.type){case"font-face":r.fontFace=l;var c=l.getStyle("font-family");c.hasValue()&&(i[c.getString()]=r);break;case"missing-glyph":r.missingGlyph=l;break;case"glyph":var u=l;u.arabicForm?(r.isRTL=!0,r.isArabic=!0,"undefined"==typeof r.glyphs[u.unicode]&&(r.glyphs[u.unicode]=Object.create(null)),r.glyphs[u.unicode][u.arabicForm]=u):r.glyphs[u.unicode]=u}}return r}return u(t,e),t.prototype.render=function(){},t}(ue),Ke=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return u(t,e),t}(ue),ze=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="missing-glyph",t.horizAdvX=0,t}return u(t,e),t}(Be),We=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="tref",t}return u(t,e),t.prototype.getText=function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""},t}(Ce),je=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="a";var a=n.childNodes,i=a[0],o=a.length>0&&Array.from(a).every(function(e){return 3===e.nodeType});return r.hasText=o,r.text=o?r.getTextFromNode(i):"",r}u(t,e);var n=t.prototype;return n.getText=function(){return this.text},n.renderChildren=function(t){if(this.hasText){e.prototype.renderChildren.call(this,t);var n=this.document,A=this.x,r=this.y,a=n.screen.mouse,i=new j(n,"fontSize",fe.parse(n.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new me(A,r-i.getPixels("y"),A+this.measureText(t),r))}else if(this.children.length>0){var o=new De(this.document,null);o.children=this.children,o.parent=this,o.render(t)}},n.onClick=function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())},n.onMouseMove=function(){this.document.ctx.canvas.style.cursor="pointer"},t}(Ce);function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Je=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="textPath",r.textWidth=0,r.textHeight=0,r.pathLength=-1,r.glyphInfo=null,r.letterSpacingCache=[],r.measuresCache=new Map([["",0]]);var a=r.getHrefAttribute().getDefinition();return r.text=r.getTextFromNode(),r.dataArray=r.parsePathData(a),r}u(t,e);var n=t.prototype;return n.getText=function(){return this.text},n.path=function(e){var t=this.dataArray;e&&e.beginPath(),t.forEach(function(t){var n=t.type,A=t.points;switch(n){case ve.LINE_TO:e&&e.lineTo(A[0],A[1]);break;case ve.MOVE_TO:e&&e.moveTo(A[0],A[1]);break;case ve.CURVE_TO:e&&e.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case ve.QUAD_TO:e&&e.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case ve.ARC:var r=A[0],a=A[1],i=A[2],o=A[3],l=A[4],s=A[5],c=A[6],u=A[7],h=i>o?i:o,d=i>o?1:i/o,g=i>o?o/i:1;e&&(e.translate(r,a),e.rotate(c),e.scale(d,g),e.arc(0,0,h,l,l+s,Boolean(1-u)),e.scale(1/d,1/g),e.rotate(-c),e.translate(-r,-a));break;case ve.CLOSE_PATH:e&&e.closePath()}})},n.renderChildren=function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),A=this.glyphInfo,r=e.fillStyle;"underline"===t&&e.beginPath(),A.forEach(function(A,r){var a=A.p0,i=A.p1,o=A.rotation,l=A.text;e.save(),e.translate(a.x,a.y),e.rotate(o),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===r&&e.moveTo(a.x,a.y+n/8),e.lineTo(i.x,i.y+n/5))}),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=r,e.stroke(),e.closePath()),e.restore()},n.getLetterSpacingAt=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;return this.letterSpacingCache[e]||0},n.findSegmentToFitChar=function(e,t,n,A,r,a,i,o,l){var s=a,c=this.measureText(e,o);" "===o&&"justify"===t&&n<A&&(c+=(A-n)/r),l>-1&&(s+=this.getLetterSpacingAt(l));var u=this.textHeight/20,h=this.getEquidistantPointOnPath(s,u,0),d=this.getEquidistantPointOnPath(s+c,u,0),g={p0:h,p1:d},p=h&&d?Math.atan2(d.y-h.y,d.x-h.x):0;if(i){var f=Math.cos(Math.PI/2+p)*i,m=Math.cos(-p)*i;g.p0=Ye(Ye({},h),{},{x:h.x+f,y:h.y+m}),g.p1=Ye(Ye({},d),{},{x:d.x+f,y:d.y+m})}return{offset:s+=c,segment:g,rotation:p}},n.measureText=function(e,t){var n=this.measuresCache,A=t||this.getText();if(n.has(A))return n.get(A);var r=this.measureTargetText(e,A);return n.set(A,r),r},n.setTextData=function(e){var t=this;if(!this.glyphInfo){var n=this.getText(),A=n.split(""),r=n.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(function(e){return e.getPixels("x")}),i=this.parent.getAttribute("dy").getPixels("y"),o=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),s=this.parent.getStyle("letter-spacing"),c=0;l.hasValue()&&"inherit"!==l.getValue()?l.hasValue()&&"initial"!==l.getValue()&&"unset"!==l.getValue()&&(c=l.getPixels()):c=s.getPixels();var u=[],h=n.length;this.letterSpacingCache=u;for(var d=0;d<h;d++)u.push("undefined"!=typeof a[d]?a[d]:c);var g=u.reduce(function(e,t,n){return 0===n?0:e+t||0},0),p=this.measureText(e),f=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*m,b=0;"middle"!==o&&"center"!==o||(b=-f/2),"end"!==o&&"right"!==o||(b=-f),b+=v,A.forEach(function(n,a){var l=t.findSegmentToFitChar(e,o,f,m,r,b,i,n,a),s=l.offset,c=l.segment,u=l.rotation;b=s,c.p0&&c.p1&&t.glyphInfo.push({text:A[a],p0:c.p0,p1:c.p1,rotation:u})})}},n.parsePathData=function(e){if(this.pathLength=-1,!e)return[];var t=[],n=e.pathParser;for(n.reset();!n.isEnd();){var A=n.current,r=A?A.x:0,a=A?A.y:0,i=n.next(),o=i.type,l=[];switch(i.type){case ve.MOVE_TO:this.pathM(n,l);break;case ve.LINE_TO:o=this.pathL(n,l);break;case ve.HORIZ_LINE_TO:o=this.pathH(n,l);break;case ve.VERT_LINE_TO:o=this.pathV(n,l);break;case ve.CURVE_TO:this.pathC(n,l);break;case ve.SMOOTH_CURVE_TO:o=this.pathS(n,l);break;case ve.QUAD_TO:this.pathQ(n,l);break;case ve.SMOOTH_QUAD_TO:o=this.pathT(n,l);break;case ve.ARC:l=this.pathA(n);break;case ve.CLOSE_PATH:Be.pathZ(n)}i.type!==ve.CLOSE_PATH?t.push({type:o,points:l,start:{x:r,y:a},pathLength:this.calcLength(r,a,o,l)}):t.push({type:ve.CLOSE_PATH,points:[],pathLength:0})}return t},n.pathM=function(e,t){var n=Be.pathM(e).point,A=n.x,r=n.y;t.push(A,r)},n.pathL=function(e,t){var n=Be.pathL(e).point,A=n.x,r=n.y;return t.push(A,r),ve.LINE_TO},n.pathH=function(e,t){var n=Be.pathH(e).point,A=n.x,r=n.y;return t.push(A,r),ve.LINE_TO},n.pathV=function(e,t){var n=Be.pathV(e).point,A=n.x,r=n.y;return t.push(A,r),ve.LINE_TO},n.pathC=function(e,t){var n=Be.pathC(e),A=n.point,r=n.controlPoint,a=n.currentPoint;t.push(A.x,A.y,r.x,r.y,a.x,a.y)},n.pathS=function(e,t){var n=Be.pathS(e),A=n.point,r=n.controlPoint,a=n.currentPoint;return t.push(A.x,A.y,r.x,r.y,a.x,a.y),ve.CURVE_TO},n.pathQ=function(e,t){var n=Be.pathQ(e),A=n.controlPoint,r=n.currentPoint;t.push(A.x,A.y,r.x,r.y)},n.pathT=function(e,t){var n=Be.pathT(e),A=n.controlPoint,r=n.currentPoint;return t.push(A.x,A.y,r.x,r.y),ve.QUAD_TO},n.pathA=function(e){var t=Be.pathA(e),n=t.rX,A=t.rY,r=t.sweepFlag,a=t.xAxisRotation,i=t.centp,o=t.a1,l=t.ad;return 0===r&&l>0&&(l-=2*Math.PI),1===r&&l<0&&(l+=2*Math.PI),[i.x,i.y,n,A,o,l,a,r]},n.calcLength=function(e,t,n,A){var r=0,a=null,i=null,o=0;switch(n){case ve.LINE_TO:return this.getLineLength(e,t,A[0],A[1]);case ve.CURVE_TO:for(r=0,a=this.getPointOnCubicBezier(0,e,t,A[0],A[1],A[2],A[3],A[4],A[5]),o=.01;o<=1;o+=.01)i=this.getPointOnCubicBezier(o,e,t,A[0],A[1],A[2],A[3],A[4],A[5]),r+=this.getLineLength(a.x,a.y,i.x,i.y),a=i;return r;case ve.QUAD_TO:for(r=0,a=this.getPointOnQuadraticBezier(0,e,t,A[0],A[1],A[2],A[3]),o=.01;o<=1;o+=.01)i=this.getPointOnQuadraticBezier(o,e,t,A[0],A[1],A[2],A[3]),r+=this.getLineLength(a.x,a.y,i.x,i.y),a=i;return r;case ve.ARC:r=0;var l=A[4],s=A[5],c=A[4]+s,u=Math.PI/180;if(Math.abs(l-c)<u&&(u=Math.abs(l-c)),a=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],l,0),s<0)for(o=l-u;o>c;o-=u)i=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],o,0),r+=this.getLineLength(a.x,a.y,i.x,i.y),a=i;else for(o=l+u;o<c;o+=u)i=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],o,0),r+=this.getLineLength(a.x,a.y,i.x,i.y),a=i;return i=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],c,0),r+=this.getLineLength(a.x,a.y,i.x,i.y)}return 0},n.getPointOnLine=function(e,t,n,A,r){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:t,i=arguments.length>6&&arguments[6]!==undefined?arguments[6]:n,o=(r-n)/(A-t+P),l=Math.sqrt(e*e/(1+o*o));A<t&&(l*=-1);var s=o*l,c=null;if(A===t)c={x:a,y:i+s};else if((i-n)/(a-t+P)===o)c={x:a+l,y:i+s};else{var u,h,d=this.getLineLength(t,n,A,r);if(d<P)return null;var g=(a-t)*(A-t)+(i-n)*(r-n);u=t+(g/=d*d)*(A-t),h=n+g*(r-n);var p=this.getLineLength(a,i,u,h),f=Math.sqrt(e*e-p*p);l=Math.sqrt(f*f/(1+o*o)),A<t&&(l*=-1),c={x:u+l,y:h+(s=o*l)}}return c},n.getPointOnPath=function(e){var t=this.getPathLength(),n=0,A=null;if(e<-5e-5||e-5e-5>t)return null;for(var r,a=s(this.dataArray);!(r=a()).done;){var i=r.value;if(!i||!(i.pathLength<5e-5||n+i.pathLength+5e-5<e)){var o=e-n,l=0;switch(i.type){case ve.LINE_TO:A=this.getPointOnLine(o,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case ve.ARC:var c=i.points[4],u=i.points[5],h=i.points[4]+u;if(l=c+o/i.pathLength*u,u<0&&l<h||u>=0&&l>h)break;A=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],l,i.points[6]);break;case ve.CURVE_TO:(l=o/i.pathLength)>1&&(l=1),A=this.getPointOnCubicBezier(l,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case ve.QUAD_TO:(l=o/i.pathLength)>1&&(l=1),A=this.getPointOnQuadraticBezier(l,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(A)return A;break}n+=i.pathLength}return null},n.getLineLength=function(e,t,n,A){return Math.sqrt((n-e)*(n-e)+(A-t)*(A-t))},n.getPathLength=function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(function(e,t){return t.pathLength>0?e+t.pathLength:e},0)),this.pathLength},n.getPointOnCubicBezier=function(e,t,n,A,r,a,i,o,l){return{x:o*_(e)+a*R(e)+A*V(e)+t*G(e),y:l*_(e)+i*R(e)+r*V(e)+n*G(e)}},n.getPointOnQuadraticBezier=function(e,t,n,A,r,a,i){return{x:a*K(e)+A*z(e)+t*W(e),y:i*K(e)+r*z(e)+n*W(e)}},n.getPointOnEllipticalArc=function(e,t,n,A,r,a){var i=Math.cos(a),o=Math.sin(a),l=n*Math.cos(r),s=A*Math.sin(r);return{x:e+(l*i-s*o),y:t+(l*o+s*i)}},n.buildEquidistantCache=function(e,t){var n=this.getPathLength(),A=t||.25,r=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==r||this.equidistantCache.precision!==A){this.equidistantCache={step:r,precision:A,points:[]};for(var a=0,i=0;i<=n;i+=A){var o=this.getPointOnPath(i),l=this.getPointOnPath(i+A);o&&l&&((a+=this.getLineLength(o.x,o.y,l.x,l.y))>=r&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:i}),a-=r))}}},n.getEquidistantPointOnPath=function(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var A=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[A]||null},t}(Ce),qe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ze=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="image",r.loaded=!1;var a=r.getHrefAttribute().getString();if(!a)return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r);var i=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);return t.images.push(r),i?r.loadSvg(a):r.loadImage(a),r.isSvg=i,r}u(t,e);var n=t.prototype;return n.loadImage=function(e){var t=this;return(0,A["default"])(f().m(function n(){var A,r;return f().w(function(n){for(;;)switch(n.n){case 0:return n.p=0,n.n=1,t.document.createImage(e);case 1:A=n.v,t.image=A,n.n=3;break;case 2:n.p=2,r=n.v,console.error('Error while loading image "'.concat(e,'":'),r);case 3:t.loaded=!0;case 4:return n.a(2)}},n,null,[[0,2]])}))()},n.loadSvg=function(e){var t=this;return(0,A["default"])(f().m(function n(){var A,r,a,i,o;return f().w(function(n){for(;;)switch(n.n){case 0:if(!(A=qe.exec(e))){n.n=1;break}r=A[5],"base64"===A[4]?t.image=atob(r):t.image=decodeURIComponent(r),n.n=5;break;case 1:return n.p=1,n.n=2,t.document.fetch(e);case 2:return a=n.v,n.n=3,a.text();case 3:i=n.v,t.image=i,n.n=5;break;case 4:n.p=4,o=n.v,console.error('Error while loading image "'.concat(e,'":'),o);case 5:t.loaded=!0;case 6:return n.a(2)}},n,null,[[1,4]])}))()},n.renderChildren=function(e){var t=this.document,n=this.image,A=this.loaded,r=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(A&&n&&i&&o){if(e.save(),e.translate(r,a),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:i,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var s=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i,desiredWidth:s.width,height:o,desiredHeight:s.height}),this.loaded&&("undefined"==typeof s.complete||s.complete)&&e.drawImage(s,0,0)}e.restore()}},n.getBoundingBox=function(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),A=this.getStyle("height").getPixels("y");return new me(e,t,e+n,t+A)},t}(be),$e=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="symbol",t}return u(t,e),t.prototype.render=function(e){},t}(be),et=function(){function e(e){this.document=e,this.loaded=!1,e.fonts.push(this)}return e.prototype.load=function(e,t){var n=this;return(0,A["default"])(f().m(function r(){var A,a,i,o;return f().w(function(r){for(;;)switch(r.n){case 0:return r.p=0,A=n.document,r.n=1,A.canvg.parser.load(t);case 1:a=r.v,i=a.getElementsByTagName("font"),Array.from(i).forEach(function(t){var n=A.createElement(t);A.definitions[e]=n}),r.n=3;break;case 2:r.p=2,o=r.v,console.error('Error while loading font "'.concat(t,'":'),o);case 3:n.loaded=!0;case 4:return r.a(2)}},r,null,[[0,2]])}))()},e}(),tt=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="style",b(Array.from(n.childNodes).map(function(e){return e.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(e){var n=e.trim();if(n){var A=n.split("{"),r=A[0].split(","),a=A[1].split(";");r.forEach(function(e){var n=e.trim();if(n){var A=t.styles[n]||{};if(a.forEach(function(e){var n=e.indexOf(":"),r=e.substr(0,n).trim(),a=e.substr(n+1,e.length-n).trim();r&&a&&(A[r]=new j(t,r,a))}),t.styles[n]=A,t.stylesSpecificity[n]=D(n),"@font-face"===n){var r=A["font-family"].getString().replace(/"|'/g,"");A.src.getString().split(",").forEach(function(e){if(e.indexOf('format("svg")')>0){var n=F(e);n&&new et(t).load(r,n)}})}}})}}),r}return u(t,e),t}(ue);tt.parseExternalUrl=F;var nt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="use",t}u(t,e);var n=t.prototype;return n.setContext=function(t){e.prototype.setContext.call(this,t);var n=this.getAttribute("x"),A=this.getAttribute("y");n.hasValue()&&t.translate(n.getPixels("x"),0),A.hasValue()&&t.translate(0,A.getPixels("y"))},n.path=function(e){var t=this.element;t&&t.path(e)},n.renderChildren=function(e){var t=this.document,n=this.element;if(n){var A=n;if("symbol"===n.type&&((A=new Fe(t,null)).attributes.viewBox=new j(t,"viewBox",n.getAttribute("viewBox").getString()),A.attributes.preserveAspectRatio=new j(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),A.attributes.overflow=new j(t,"overflow",n.getAttribute("overflow").getString()),A.children=n.children,n.styles.opacity=new j(t,"opacity",this.calculateOpacity())),"svg"===A.type){var r=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);r.hasValue()&&(A.attributes.width=new j(t,"width",r.getString())),a.hasValue()&&(A.attributes.height=new j(t,"height",a.getString()))}var i=A.parent;A.parent=this,A.render(e),A.parent=i}},n.getBoundingBox=function(e){var t=this.element;return t?t.getBoundingBox(e):null},n.elementTransform=function(){var e=this.document,t=this.element;return ce.fromElement(e,t)},g(t,[{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}])}(be);function At(e,t,n,A,r,a){return e[n*A*4+4*t+a]}function rt(e,t,n,A,r,a,i){e[n*A*4+4*t+a]=i}function at(e,t,n){return e[t]*n}function it(e,t,n,A){return t+Math.cos(e)*n+Math.sin(e)*A}var ot=function(e){function t(t,n,A){var r;(r=e.call(this,t,n,A)||this).type="feColorMatrix";var a=C(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":var i=a[0];a=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=a[0]*Math.PI/180;a=[it(o,.213,.787,-.213),it(o,.715,-.715,-.715),it(o,.072,-.072,.928),0,0,it(o,.213,-.213,.143),it(o,.715,.285,.14),it(o,.072,-.072,-.283),0,0,it(o,.213,-.213,-.787),it(o,.715,-.715,.715),it(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return r.matrix=a,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return u(t,e),t.prototype.apply=function(e,t,n,A,r){for(var a=this.includeOpacity,i=this.matrix,o=e.getImageData(0,0,A,r),l=0;l<r;l++)for(var s=0;s<A;s++){var c=At(o.data,s,l,A,0,0),u=At(o.data,s,l,A,0,1),h=At(o.data,s,l,A,0,2),d=At(o.data,s,l,A,0,3),g=at(i,0,c)+at(i,1,u)+at(i,2,h)+at(i,3,d)+at(i,4,1),p=at(i,5,c)+at(i,6,u)+at(i,7,h)+at(i,8,d)+at(i,9,1),f=at(i,10,c)+at(i,11,u)+at(i,12,h)+at(i,13,d)+at(i,14,1),m=at(i,15,c)+at(i,16,u)+at(i,17,h)+at(i,18,d)+at(i,19,1);a&&(g=0,p=0,f=0,m*=d/255),rt(o.data,s,l,A,0,0,g),rt(o.data,s,l,A,0,1,p),rt(o.data,s,l,A,0,2,f),rt(o.data,s,l,A,0,3,m)}e.clearRect(0,0,A,r),e.putImageData(o,0,0)},t}(ue),lt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="mask",t}u(t,e);var n=t.prototype;return n.apply=function(e,n){var A=this.document,r=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!i&&!o){var l=new me;this.children.forEach(function(t){l.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(l.x1),a=Math.floor(l.y1),i=Math.floor(l.width),o=Math.floor(l.height)}var s=this.removeStyles(n,t.ignoreStyles),c=A.createCanvas(r+i,a+o),u=c.getContext("2d");A.screen.setDefaults(u),this.renderChildren(u),new ot(A,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,r+i,a+o);var h=A.createCanvas(r+i,a+o),d=h.getContext("2d");A.screen.setDefaults(d),n.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=u.createPattern(c,"no-repeat"),d.fillRect(0,0,r+i,a+o),e.fillStyle=d.createPattern(h,"no-repeat"),e.fillRect(0,0,r+i,a+o),this.restoreStyles(n,s)},n.render=function(e){},t}(ue);lt.ignoreStyles=["mask","transform","clip-path"];var st=function(){},ct=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="clipPath",t}u(t,e);var n=t.prototype;return n.apply=function(e){var t=this.document,n=Reflect.getPrototypeOf(e),A=e.beginPath,r=e.closePath;n&&(n.beginPath=st,n.closePath=st),Reflect.apply(A,e,[]),this.children.forEach(function(A){if("undefined"!=typeof A.path){var a="undefined"!=typeof A.elementTransform?A.elementTransform():null;a||(a=ce.fromElement(t,A)),a&&a.apply(e),A.path(e),n&&(n.closePath=r),a&&a.unapply(e)}}),Reflect.apply(r,e,[]),e.clip(),n&&(n.beginPath=A,n.closePath=r)},n.render=function(e){},t}(ue),ut=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="filter",t}u(t,e);var n=t.prototype;return n.apply=function(e,n){var A=this.document,r=this.children,a=n.getBoundingBox(e);if(a){var i=0,o=0;r.forEach(function(e){var t=e.extraFilterDistance||0;i=Math.max(i,t),o=Math.max(o,t)});var l=Math.floor(a.width),s=Math.floor(a.height),c=l+2*i,u=s+2*o;if(!(c<1||u<1)){var h=Math.floor(a.x),d=Math.floor(a.y),g=this.removeStyles(n,t.ignoreStyles),p=A.createCanvas(c,u),f=p.getContext("2d");A.screen.setDefaults(f),f.translate(-h+i,-d+o),n.render(f),r.forEach(function(e){"function"==typeof e.apply&&e.apply(f,0,0,c,u)}),e.drawImage(p,0,0,c,u,h-i,d-o,c,u),this.restoreStyles(n,g)}}},n.render=function(e){},t}(ue);ut.ignoreStyles=["filter","transform","clip-path"];var ht=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return u(t,e),t.prototype.apply=function(e,t,n,A,r){},t}(ue),dt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="feMorphology",t}return u(t,e),t.prototype.apply=function(e,t,n,A,r){},t}(ue),gt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="feComposite",t}return u(t,e),t.prototype.apply=function(e,t,n,A,r){},t}(ue),pt=function(e){function t(t,n,A){var r;return(r=e.call(this,t,n,A)||this).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return u(t,e),t.prototype.apply=function(e,t,n,A,r){var a=this.document,i=this.blurRadius,o=a.window?a.window.document.body:null,s=e.canvas;s.id=a.getUniqueId(),o&&(s.style.display="none",o.appendChild(s)),(0,l.canvasRGBA)(s,t,n,A,r,i),o&&o.removeChild(s)},t}(ue),ft=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="title",t}return u(t,e),t}(ue),mt=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).type="desc",t}return u(t,e),t}(ue),vt={svg:Fe,rect:Se,circle:Ee,ellipse:Qe,line:ke,polyline:Le,polygon:Ue,path:Be,pattern:Ie,marker:Te,defs:Ne,linearGradient:Me,radialGradient:He,stop:Oe,animate:_e,animateColor:Re,animateTransform:Ve,font:Ge,"font-face":Ke,"missing-glyph":ze,glyph:ye,text:Ce,tspan:xe,tref:We,a:je,textPath:Je,image:Ze,g:De,symbol:$e,style:tt,use:nt,mask:lt,clipPath:ct,filter:ut,feDropShadow:ht,feMorphology:dt,feComposite:gt,feColorMatrix:ot,feGaussianBlur:pt,title:ft,desc:mt};function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function Bt(){return Bt=(0,A["default"])(f().m(function e(t){var n,A,r=arguments;return f().w(function(e){for(;;)if(0===e.n)return n=r.length>1&&r[1]!==undefined&&r[1],A=document.createElement("img"),n&&(A.crossOrigin="Anonymous"),e.a(2,new Promise(function(e,n){A.onload=function(){e(A)},A.onerror=function(e,t,A,r,a){n(a)},A.src=t}))},e)})),Bt.apply(this,arguments)}var yt=function(){function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},A=n.rootEmSize,r=void 0===A?12:A,a=n.emSize,i=void 0===a?12:a,o=n.createCanvas,l=void 0===o?e.createCanvas:o,s=n.createImage,c=void 0===s?e.createImage:s,u=n.anonymousCrossOrigin;this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=r,this.emSize=i,this.createCanvas=l,this.createImage=this.bindCreateImage(c,u),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}var t=e.prototype;return t.bindCreateImage=function(e,t){return"boolean"==typeof t?function(n,A){return e(n,"boolean"==typeof A?A:t)}:e},t.popEmSize=function(){this.emSizeStack.pop()},t.getUniqueId=function(){return"canvg".concat(++this.uniqueId)},t.isImagesLoaded=function(){return this.images.every(function(e){return e.loaded})},t.isFontsLoaded=function(){return this.fonts.every(function(e){return e.loaded})},t.createDocumentElement=function(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t},t.createElement=function(t){var n=t.nodeName.replace(/^[^:]+:/,""),A=e.elementTypes[n];return void 0!==A?new A(this,t):new he(this,t)},t.createTextNode=function(e){return new we(this,e)},t.setViewBox=function(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({document:this},e))},g(e,[{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var e=this.emSizeStack;return e[e.length-1]},set:function(e){this.emSizeStack.push(e)}}])}();function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,A)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(t){(0,r["default"])(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}yt.createCanvas=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},yt.createImage=function(e){return Bt.apply(this,arguments)},yt.elementTypes=vt;var wt=function(){function e(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.parser=new ne(n),this.screen=new $(e,n),this.options=n;var A=new yt(this,n),r=A.createDocumentElement(t);this.document=A,this.documentElement=r}e.from=function(t,n){var r=arguments;return(0,A["default"])(f().m(function a(){var A,i,o;return f().w(function(a){for(;;)switch(a.n){case 0:return A=r.length>2&&r[2]!==undefined?r[2]:{},i=new ne(A),a.n=1,i.parse(n);case 1:return o=a.v,a.a(2,new e(t,o,A))}},a)}))()},e.fromString=function(t,n){var A=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return new e(t,new ne(A).parseFromString(n),A)};var t=e.prototype;return t.fork=function(t,n){var A=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return e.from(t,n,xt(xt({},this.options),A))},t.forkString=function(t,n){var A=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return e.fromString(t,n,xt(xt({},this.options),A))},t.ready=function(){return this.screen.ready()},t.isReady=function(){return this.screen.isReady()},t.render=function(){var e=arguments,t=this;return(0,A["default"])(f().m(function n(){var A;return f().w(function(n){for(;;)switch(n.n){case 0:return A=e.length>0&&e[0]!==undefined?e[0]:{},t.start(xt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},A)),n.n=1,t.ready();case 1:t.stop();case 2:return n.a(2)}},n)}))()},t.start=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=this.documentElement,n=this.screen,A=this.options;n.start(t,xt(xt({enableRedraw:!0},A),e))},t.stop=function(){this.screen.stop()},t.resize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e,n=arguments.length>2&&arguments[2]!==undefined&&arguments[2];this.documentElement.resize(e,t,n)},e}()},(e,t,n)=>{"use strict";n(1697),n(1713),n(1715),n(1716),n(1717),n(1718)},(e,t,n)=>{"use strict";var A,r,a,i,o=n(3),l=n(36),s=n(107),c=n(4),u=n(70),h=n(8),d=n(47),g=n(172),p=n(131),f=n(233),m=n(30),v=n(21),b=n(20),B=n(229),y=n(1698),C=n(1700).set,x=n(1703),w=n(1708),F=n(1709),S=n(1705),E=n(51),Q=n(1710),k=n(1711),L=n(1712),U="Promise",I=k.CONSTRUCTOR,T=k.REJECTION_EVENT,N=k.SUBCLASSING,D=E.getterFor(U),P=E.set,M=Q&&Q.prototype,H=Q,O=M,_=c.TypeError,R=c.document,V=c.process,G=L.f,K=G,z=!!(R&&R.createEvent&&c.dispatchEvent),W="unhandledrejection",j=function(e){var t;return!(!b(e)||!v(t=e.then))&&t},X=function(e,t){var n,A,r,a=t.value,i=1===t.state,o=i?e.ok:e.fail,l=e.resolve,s=e.reject,c=e.domain;try{o?(i||(2===t.rejection&&$(t),t.rejection=1),!0===o?n=a:(c&&c.enter(),n=o(a),c&&(c.exit(),r=!0)),n===e.promise?s(new _("Promise-chain cycle")):(A=j(n))?h(A,n,l,s):l(n)):s(a)}catch(u){c&&!r&&c.exit(),s(u)}},Y=function(e,t){e.notified||(e.notified=!0,x(function(){for(var n,A=e.reactions;n=A.get();)X(n,e);e.notified=!1,t&&!e.rejection&&q(e)}))},J=function(e,t,n){var A,r;z?((A=R.createEvent("Event")).promise=t,A.reason=n,A.initEvent(e,!1,!0),c.dispatchEvent(A)):A={promise:t,reason:n},!T&&(r=c["on"+e])?r(A):e===W&&w("Unhandled promise rejection",n)},q=function(e){h(C,c,function(){var t,n=e.facade,A=e.value;if(Z(e)&&(t=F(function(){s?V.emit("unhandledRejection",A,n):J(W,n,A)}),e.rejection=s||Z(e)?2:1,t.error))throw t.value})},Z=function(e){return 1!==e.rejection&&!e.parent},$=function(e){h(C,c,function(){var t=e.facade;s?V.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(A){e(t,A,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new _("Promise can't be resolved itself");var A=j(t);A?x(function(){var n={done:!1};try{h(A,t,ee(ne,n,e),ee(te,n,e))}catch(r){te(n,r,e)}}):(e.value=t,e.state=1,Y(e,!1))}catch(r){te({done:!1},r,e)}}};if(I&&(H=function(e){B(this,O),m(e),h(A,this);var t=D(this);try{e(ee(ne,t),ee(te,t))}catch(n){te(t,n)}},O=H.prototype,(A=function(e){P(this,{type:U,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=d(O,"then",function(e,t){var n=D(this),A=G(y(this,H));return n.parent=!0,A.ok=!v(e)||e,A.fail=v(t)&&t,A.domain=s?V.domain:undefined,0===n.state?n.reactions.add(A):x(function(){X(A,n)}),A.promise}),r=function(){var e=new A,t=D(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},L.f=G=function(e){return e===H||e===a?new r(e):K(e)},!l&&v(Q)&&M!==Object.prototype)){i=M.then,N||d(M,"then",function(e,t){var n=this;return new H(function(e,t){h(i,n,e,t)}).then(e,t)},{unsafe:!0});try{delete M.constructor}catch(Ae){}g&&g(M,O)}o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:H}),a=u.Promise,p(H,U,!1,!0),f(U)},(e,t,n)=>{"use strict";var A=n(46),r=n(1699),a=n(17),i=n(33)("species");e.exports=function(e,t){var n,o=A(e).constructor;return o===undefined||a(n=A(o)[i])?t:r(n)}},(e,t,n)=>{"use strict";var A=n(96),r=n(31),a=TypeError;e.exports=function(e){if(A(e))return e;throw new a(r(e)+" is not a constructor")}},(e,t,n)=>{"use strict";var A,r,a,i,o=n(4),l=n(136),s=n(92),c=n(21),u=n(38),h=n(7),d=n(80),g=n(69),p=n(42),f=n(1701),m=n(1702),v=n(107),b=o.setImmediate,B=o.clearImmediate,y=o.process,C=o.Dispatch,x=o.Function,w=o.MessageChannel,F=o.String,S=0,E={},Q="onreadystatechange";h(function(){A=o.location});var k=function(e){if(u(E,e)){var t=E[e];delete E[e],t()}},L=function(e){return function(){k(e)}},U=function(e){k(e.data)},I=function(e){o.postMessage(F(e),A.protocol+"//"+A.host)};b&&B||(b=function(e){f(arguments.length,1);var t=c(e)?e:x(e),n=g(arguments,1);return E[++S]=function(){l(t,undefined,n)},r(S),S},B=function(e){delete E[e]},v?r=function(e){y.nextTick(L(e))}:C&&C.now?r=function(e){C.now(L(e))}:w&&!m?(i=(a=new w).port2,a.port1.onmessage=U,r=s(i.postMessage,i)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&A&&"file:"!==A.protocol&&!h(I)?(r=I,o.addEventListener("message",U,!1)):r=Q in p("script")?function(e){d.appendChild(p("script"))[Q]=function(){d.removeChild(this),k(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:b,clear:B}},e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},(e,t,n)=>{"use strict";var A=n(28);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(A)},(e,t,n)=>{"use strict";var A,r,a,i,o,l=n(4),s=n(1704),c=n(92),u=n(1700).set,h=n(1705),d=n(1702),g=n(1706),p=n(1707),f=n(107),m=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,B=l.Promise,y=s("queueMicrotask");if(!y){var C=new h,x=function(){var e,t;for(f&&(e=b.domain)&&e.exit();t=C.get();)try{t()}catch(n){throw C.head&&A(),n}e&&e.enter()};d||f||p||!m||!v?!g&&B&&B.resolve?((i=B.resolve(undefined)).constructor=B,o=c(i.then,i),A=function(){o(x)}):f?A=function(){b.nextTick(x)}:(u=c(u,l),A=function(){u(x)}):(r=!0,a=v.createTextNode(""),new m(x).observe(a,{characterData:!0}),A=function(){a.data=r=!r}),y=function(e){C.head||A(),C.add(e)}}e.exports=y},(e,t,n)=>{"use strict";var A=n(4),r=n(6),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return A[e];var t=a(A,e);return t&&t.value}},e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},(e,t,n)=>{"use strict";var A=n(28);e.exports=/ipad|iphone|ipod/i.test(A)&&"undefined"!=typeof Pebble},(e,t,n)=>{"use strict";var A=n(28);e.exports=/web0s(?!.*chrome)/i.test(A)},e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},(e,t,n)=>{"use strict";var A=n(4);e.exports=A.Promise},(e,t,n)=>{"use strict";var A=n(4),r=n(1710),a=n(21),i=n(67),o=n(50),l=n(33),s=n(108),c=n(36),u=n(27),h=r&&r.prototype,d=l("species"),g=!1,p=a(A.PromiseRejectionEvent),f=i("Promise",function(){var e=o(r),t=e!==String(r);if(!t&&66===u)return!0;if(c&&(!h["catch"]||!h["finally"]))return!0;if(!u||u<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),A=function(e){e(function(){},function(){})};if((n.constructor={})[d]=A,!(g=n.then(function(){})instanceof A))return!0}return!(t||"BROWSER"!==s&&"DENO"!==s||p)});e.exports={CONSTRUCTOR:f,REJECTION_EVENT:p,SUBCLASSING:g}},(e,t,n)=>{"use strict";var A=n(30),r=TypeError,a=function(e){var t,n;this.promise=new e(function(e,A){if(t!==undefined||n!==undefined)throw new r("Bad Promise constructor");t=e,n=A}),this.resolve=A(t),this.reject=A(n)};e.exports.f=function(e){return new a(e)}},(e,t,n)=>{"use strict";var A=n(3),r=n(8),a=n(30),i=n(1712),o=n(1709),l=n(178);A({target:"Promise",stat:!0,forced:n(1714)},{all:function(e){var t=this,n=i.f(t),A=n.resolve,s=n.reject,c=o(function(){var n=a(t.resolve),i=[],o=0,c=1;l(e,function(e){var a=o++,l=!1;c++,r(n,t,e).then(function(e){l||(l=!0,i[a]=e,--c||A(i))},s)}),--c||A(i)});return c.error&&s(c.value),n.promise}})},(e,t,n)=>{"use strict";var A=n(1710),r=n(198),a=n(1711).CONSTRUCTOR;e.exports=a||!r(function(e){A.all(e).then(undefined,function(){})})},(e,t,n)=>{"use strict";var A=n(3),r=n(36),a=n(1711).CONSTRUCTOR,i=n(1710),o=n(23),l=n(21),s=n(47),c=i&&i.prototype;if(A({target:"Promise",proto:!0,forced:a,real:!0},{"catch":function(e){return this.then(undefined,e)}}),!r&&l(i)){var u=o("Promise").prototype["catch"];c["catch"]!==u&&s(c,"catch",u,{unsafe:!0})}},(e,t,n)=>{"use strict";var A=n(3),r=n(8),a=n(30),i=n(1712),o=n(1709),l=n(178);A({target:"Promise",stat:!0,forced:n(1714)},{race:function(e){var t=this,n=i.f(t),A=n.reject,s=o(function(){var i=a(t.resolve);l(e,function(e){r(i,t,e).then(n.resolve,A)})});return s.error&&A(s.value),n.promise}})},(e,t,n)=>{"use strict";var A=n(3),r=n(1712);A({target:"Promise",stat:!0,forced:n(1711).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},(e,t,n)=>{"use strict";var A=n(3),r=n(23),a=n(36),i=n(1710),o=n(1711).CONSTRUCTOR,l=n(1719),s=r("Promise"),c=a&&!o;A({target:"Promise",stat:!0,forced:a||o},{resolve:function(e){return l(c&&this===s?i:this,e)}})},(e,t,n)=>{"use strict";var A=n(46),r=n(20),a=n(1712);e.exports=function(e,t){if(A(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},(e,t,n)=>{"use strict";function A(e,t,n,A,r,a,i){try{var o=e[a](i),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(A,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){A(i,r,a,o,l,"next",e)}function l(e){A(i,r,a,o,l,"throw",e)}o(void 0)})}}n.r(t),n.d(t,{"default":()=>r})},(e,t,n)=>{"use strict";var A=n(8),r=n(14),a=n(1722),i=n(46),o=n(20),l=n(64),s=n(116),c=n(16),u=n(29),h=n(1729),d=n(1730),g=n(1732),p=r("".indexOf);a("match",function(e,t,n){return[function(t){var n=c(this),r=o(t)?u(t,e):undefined;return r?A(r,t,n):new RegExp(t)[e](s(n))},function(e){var A=i(this),r=s(e),a=n(t,A,r);if(a.done)return a.value;var o=s(d(A));if(-1===p(o,"g"))return g(A,r);var c=-1!==p(o,"u");A.lastIndex=0;for(var u,f=[],m=0;null!==(u=g(A,r));){var v=s(u[0]);f[m]=v,""===v&&(A.lastIndex=h(r,l(A.lastIndex),c)),m++}return 0===m?null:f}]})},(e,t,n)=>{"use strict";n(1723);var A=n(8),r=n(47),a=n(1724),i=n(7),o=n(33),l=n(43),s=o("species"),c=RegExp.prototype;e.exports=function(e,t,n,u){var h=o(e),d=!i(function(){var t={};return t[h]=function(){return 7},7!==""[e](t)}),g=d&&!i(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t});if(!d||!g||n){var p=/./[h],f=t(h,""[e],function(e,t,n,r,i){var o=t.exec;return o===a||o===c.exec?d&&!i?{done:!0,value:A(p,t,n,r)}:{done:!0,value:A(e,n,t,r)}:{done:!1}});r(String.prototype,e,f[0]),r(c,h,f[1])}u&&l(c[h],"sham",!0)}},(e,t,n)=>{"use strict";var A=n(3),r=n(1724);A({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},(e,t,n)=>{"use strict";var A,r,a=n(8),i=n(14),o=n(116),l=n(1725),s=n(1726),c=n(34),u=n(77),h=n(51).get,d=n(1727),g=n(1728),p=c("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,v=i("".charAt),b=i("".indexOf),B=i("".replace),y=i("".slice),C=(r=/b*/g,a(f,A=/a/,"a"),a(f,r,"a"),0!==A.lastIndex||0!==r.lastIndex),x=s.BROKEN_CARET,w=/()??/.exec("")[1]!==undefined;(C||w||x||d||g)&&(m=function(e){var t,n,A,r,i,s,c,d=this,g=h(d),F=o(e),S=g.raw;if(S)return S.lastIndex=d.lastIndex,t=a(m,S,F),d.lastIndex=S.lastIndex,t;var E=g.groups,Q=x&&d.sticky,k=a(l,d),L=d.source,U=0,I=F;if(Q&&(k=B(k,"y",""),-1===b(k,"g")&&(k+="g"),I=y(F,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==v(F,d.lastIndex-1))&&(L="(?: "+L+")",I=" "+I,U++),n=new RegExp("^(?:"+L+")",k)),w&&(n=new RegExp("^"+L+"$(?!\\s)",k)),C&&(A=d.lastIndex),r=a(f,Q?n:d,I),Q?r?(r.input=y(r.input,U),r[0]=y(r[0],U),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:C&&r&&(d.lastIndex=d.global?r.index+r[0].length:A),w&&r&&r.length>1&&a(p,r[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===undefined&&(r[i]=undefined)}),r&&E)for(r.groups=s=u(null),i=0;i<E.length;i++)s[(c=E[i])[0]]=r[c[1]];return r}),e.exports=m},(e,t,n)=>{"use strict";var A=n(46);e.exports=function(){var e=A(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,n)=>{"use strict";var A=n(7),r=n(4).RegExp,a=A(function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),i=a||A(function(){return!r("a","y").sticky}),o=a||A(function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")});e.exports={BROKEN_CARET:o,MISSED_STICKY:i,UNSUPPORTED_Y:a}},(e,t,n)=>{"use strict";var A=n(7),r=n(4).RegExp;e.exports=A(function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},(e,t,n)=>{"use strict";var A=n(7),r=n(4).RegExp;e.exports=A(function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},(e,t,n)=>{"use strict";var A=n(194).charAt;e.exports=function(e,t,n){return t+(n?A(e,t).length:1)}},(e,t,n)=>{"use strict";var A=n(8),r=n(38),a=n(24),i=n(1731),o=n(1725),l=RegExp.prototype;e.exports=i.correct?function(e){return e.flags}:function(e){return i.correct||!a(l,e)||r(e,"flags")?e.flags:A(o,e)}},(e,t,n)=>{"use strict";var A=n(4),r=n(7),a=A.RegExp,i=!r(function(){var e=!0;try{a(".","d")}catch(l){e=!1}var t={},n="",A=e?"dgimsy":"gimsy",r=function(e,A){Object.defineProperty(t,e,{get:function(){return n+=A,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)r(o,i[o]);return Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(t)!==A||n!==A});e.exports={correct:i}},(e,t,n)=>{"use strict";var A=n(8),r=n(46),a=n(21),i=n(15),o=n(1724),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var s=A(n,e,t);return null!==s&&r(s),s}if("RegExp"===i(e))return A(o,e,t);throw new l("RegExp#exec called on incompatible receiver")}},(e,t,n)=>{"use strict";var A=n(136),r=n(8),a=n(14),i=n(1722),o=n(7),l=n(46),s=n(21),c=n(20),u=n(61),h=n(64),d=n(116),g=n(16),p=n(1729),f=n(29),m=n(1734),v=n(1730),b=n(1732),B=n(33)("replace"),y=Math.max,C=Math.min,x=a([].concat),w=a([].push),F=a("".indexOf),S=a("".slice),E=function(e){return e===undefined?e:String(e)},Q="$0"==="a".replace(/./,"$0"),k=!!/./[B]&&""===/./[B]("a","$0");i("replace",function(e,t,n){var a=k?"$":"$0";return[function(e,n){var A=g(this),a=c(e)?f(e,B):undefined;return a?r(a,e,A,n):r(t,d(A),e,n)},function(e,r){var i=l(this),o=d(e);if("string"==typeof r&&-1===F(r,a)&&-1===F(r,"$<")){var c=n(t,i,o,r);if(c.done)return c.value}var g=s(r);g||(r=d(r));var f,B=d(v(i)),Q=-1!==F(B,"g");Q&&(f=-1!==F(B,"u"),i.lastIndex=0);for(var k,L=[];null!==(k=b(i,o))&&(w(L,k),Q);){""===d(k[0])&&(i.lastIndex=p(o,h(i.lastIndex),f))}for(var U="",I=0,T=0;T<L.length;T++){for(var N,D=d((k=L[T])[0]),P=y(C(u(k.index),o.length),0),M=[],H=1;H<k.length;H++)w(M,E(k[H]));var O=k.groups;if(g){var _=x([D],M,P,o);O!==undefined&&w(_,O),N=d(A(r,undefined,_))}else N=m(D,o,P,M,O,r);P>=I&&(U+=S(o,I,P)+N,I=P+D.length)}return U+S(o,I)}]},!!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!Q||k)},(e,t,n)=>{"use strict";var A=n(14),r=n(39),a=Math.floor,i=A("".charAt),o=A("".replace),l=A("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,A,u,h){var d=n+e.length,g=A.length,p=c;return u!==undefined&&(u=r(u),p=s),o(h,p,function(r,o){var s;switch(i(o,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":s=u[l(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>g){var h=a(c/10);return 0===h?r:h<=g?A[h-1]===undefined?i(o,1):A[h-1]+i(o,1):r}s=A[c-1]}return s===undefined?"":s})}},(e,t,n)=>{"use strict";var A,r=n(3),a=n(85),i=n(5).f,o=n(64),l=n(116),s=n(1736),c=n(16),u=n(1738),h=n(36),d=a("".slice),g=Math.min,p=u("startsWith");r({target:"String",proto:!0,forced:!!(h||p||(A=i(String.prototype,"startsWith"),!A||A.writable))&&!p},{startsWith:function(e){var t=l(c(this));s(e);var n=o(g(arguments.length>1?arguments[1]:undefined,t.length)),A=l(e);return d(t,n,n+A.length)===A}})},(e,t,n)=>{"use strict";var A=n(1737),r=TypeError;e.exports=function(e){if(A(e))throw new r("The method doesn't accept regular expressions");return e}},(e,t,n)=>{"use strict";var A=n(20),r=n(15),a=n(33)("match");e.exports=function(e){var t;return A(e)&&((t=e[a])!==undefined?!!t:"RegExp"===r(e))}},(e,t,n)=>{"use strict";var A=n(33)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[A]=!1,"/./"[e](t)}catch(r){}}return!1}},(e,t,n)=>{"use strict";var A=n(4),r=n(1740),a=n(1741),i=n(166),o=n(43),l=n(131),s=n(33)("iterator"),c=i.values,u=function(e,t){if(e){if(e[s]!==c)try{o(e,s,c)}catch(A){e[s]=c}if(l(e,t,!0),r[t])for(var n in i)if(e[n]!==i[n])try{o(e,n,i[n])}catch(A){e[n]=i[n]}}};for(var h in r)u(A[h]&&A[h].prototype,h);u(a,"DOMTokenList")},e=>{"use strict";e.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}},(e,t,n)=>{"use strict";var A=n(42)("span").classList,r=A&&A.constructor&&A.constructor.prototype;e.exports=r===Object.prototype?undefined:r},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(1743);function r(e,t,n){return(t=(0,A["default"])(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>a});var A=n(459),r=n(1744);function a(e){var t=(0,r["default"])(e,"string");return"symbol"==(0,A["default"])(t)?t:t+""}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{"default":()=>r});var A=n(459);function r(e,t){if("object"!=(0,A["default"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,A["default"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},(e,t,n)=>{"use strict";var A,r=n(3),a=n(85),i=n(5).f,o=n(64),l=n(116),s=n(1736),c=n(16),u=n(1738),h=n(36),d=a("".slice),g=Math.min,p=u("endsWith");r({target:"String",proto:!0,forced:!!(h||p||(A=i(String.prototype,"endsWith"),!A||A.writable))&&!p},{endsWith:function(e){var t=l(c(this));s(e);var n=arguments.length>1?arguments[1]:undefined,A=t.length,r=n===undefined?A:g(o(n),A),a=l(e);return d(t,r-a.length,r)===a}})},(e,t,n)=>{"use strict";var A=n(8),r=n(14),a=n(1722),i=n(46),o=n(20),l=n(16),s=n(1698),c=n(1729),u=n(64),h=n(116),d=n(29),g=n(1732),p=n(1726),f=n(7),m=p.UNSUPPORTED_Y,v=Math.min,b=r([].push),B=r("".slice),y=!f(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),C="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;a("split",function(e,t,n){var r="0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:A(t,this,e,n)}:t;return[function(t,n){var a=l(this),i=o(t)?d(t,e):undefined;return i?A(i,t,a,n):A(r,h(a),t,n)},function(e,A){var a=i(this),o=h(e);if(!C){var l=n(r,a,o,A,r!==t);if(l.done)return l.value}var d=s(a,RegExp),p=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(m?"g":"y"),y=new d(m?"^(?:"+a.source+")":a,f),x=A===undefined?4294967295:A>>>0;if(0===x)return[];if(0===o.length)return null===g(y,o)?[o]:[];for(var w=0,F=0,S=[];F<o.length;){y.lastIndex=m?0:F;var E,Q=g(y,m?B(o,F):o);if(null===Q||(E=v(u(y.lastIndex+(m?F:0)),o.length))===w)F=c(o,F,p);else{if(b(S,B(o,w,F)),S.length===x)return S;for(var k=1;k<=Q.length-1;k++)if(b(S,Q[k]),S.length===x)return S;F=w=E}}return b(S,B(o,w)),S}]},C||!y,m)},(e,t,n)=>{for(var A=n(1748),r="undefined"==typeof window?n.g:window,a=["moz","webkit"],i="AnimationFrame",o=r["request"+i],l=r["cancel"+i]||r["cancelRequest"+i],s=0;!o&&s<a.length;s++)o=r[a[s]+"Request"+i],l=r[a[s]+"Cancel"+i]||r[a[s]+"CancelRequest"+i];if(!o||!l){var c=0,u=0,h=[],d=1e3/60;o=function(e){if(0===h.length){var t=A(),n=Math.max(0,d-(t-c));c=n+t,setTimeout(function(){var e=h.slice(0);h.length=0;for(var t=function(){if(!e[n].cancelled)try{e[n].callback(c)}catch(t){setTimeout(function(){throw t},0)}},n=0;n<e.length;n++)t()},Math.round(n))}return h.push({handle:++u,callback:e,cancelled:!1}),u},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return o.call(r,e)},e.exports.cancel=function(){l.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=o,e.cancelAnimationFrame=l}},function(e){(function(){var t,n,A,r,a,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},n=process.hrtime,r=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),i=1e9*process.uptime(),a=r-i):Date.now?(e.exports=function(){return Date.now()-A},A=Date.now()):(e.exports=function(){return(new Date).getTime()-A},A=(new Date).getTime())}).call(this)},e=>{e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],A=0;A<n.length;A++){var r=n[A].re,a=n[A].process,i=r.exec(e);if(i){var o=a(i);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,A=0;A<n.length;A++)for(var r=n[A].example,a=0;a<r.length;a++)e[e.length]=r[a];for(var i in t)e[e.length]=i;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(A=0;A<e.length;A++)try{var l=document.createElement("li"),s=new RGBColor(e[A]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+s.toHex()+"; color:"+s.toHex(),c.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+e[A]+" -> "+s.toRGB()+" -> "+s.toHex());l.appendChild(c),l.appendChild(u),o.appendChild(l)}catch(h){}return o}}},(e,t,n)=>{"use strict";var A=n(3),r=n(14),a=n(1736),i=n(16),o=n(116),l=n(1738),s=r("".indexOf);A({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~s(o(i(this)),o(a(e)),arguments.length>1?arguments[1]:undefined)}})},(e,t,n)=>{"use strict";var A=n(3),r=n(14),a=n(95),i=r([].reverse),o=[1,2];A({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),i(this)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{COMMAND_ARG_COUNTS:()=>x,SVGPathData:()=>C,SVGPathDataParser:()=>y,SVGPathDataTransformer:()=>u,encodeSVGPath:()=>a});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var A=e[n];if(A.type===C.CLOSE_PATH)t+="z";else if(A.type===C.HORIZ_LINE_TO)t+=(A.relative?"h":"H")+A.x;else if(A.type===C.VERT_LINE_TO)t+=(A.relative?"v":"V")+A.y;else if(A.type===C.MOVE_TO)t+=(A.relative?"m":"M")+A.x+" "+A.y;else if(A.type===C.LINE_TO)t+=(A.relative?"l":"L")+A.x+" "+A.y;else if(A.type===C.CURVE_TO)t+=(A.relative?"c":"C")+A.x1+" "+A.y1+" "+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===C.SMOOTH_CURVE_TO)t+=(A.relative?"s":"S")+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===C.QUAD_TO)t+=(A.relative?"q":"Q")+A.x1+" "+A.y1+" "+A.x+" "+A.y;else if(A.type===C.SMOOTH_QUAD_TO)t+=(A.relative?"t":"T")+A.x+" "+A.y;else{if(A.type!==C.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+n+".");t+=(A.relative?"a":"A")+A.rX+" "+A.rY+" "+A.xRot+" "+ +A.lArcFlag+" "+ +A.sweepFlag+" "+A.x+" "+A.y}}return t}function i(e,t){var n=e[0],A=e[1];return[n*Math.cos(t)-A*Math.sin(t),n*Math.sin(t)+A*Math.cos(t)]}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var l=Math.PI;function s(e,t,n){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var A=e.rX,r=e.rY,a=e.x,o=e.y;A=Math.abs(e.rX),r=Math.abs(e.rY);var s=i([(t-a)/2,(n-o)/2],-e.xRot/180*l),c=s[0],u=s[1],h=Math.pow(c,2)/Math.pow(A,2)+Math.pow(u,2)/Math.pow(r,2);1<h&&(A*=Math.sqrt(h),r*=Math.sqrt(h)),e.rX=A,e.rY=r;var d=Math.pow(A,2)*Math.pow(u,2)+Math.pow(r,2)*Math.pow(c,2),g=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(r,2)-d)/d)),p=A*u/r*g,f=-r*c/A*g,m=i([p,f],e.xRot/180*l);e.cX=m[0]+(t+a)/2,e.cY=m[1]+(n+o)/2,e.phi1=Math.atan2((u-f)/r,(c-p)/A),e.phi2=Math.atan2((-u-f)/r,(-c-p)/A),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*l),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*l),e.phi1*=180/l,e.phi2*=180/l}function c(e,t,n){o(e,t,n);var A=e*e+t*t-n*n;if(0>A)return[];if(0===A)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var r=Math.sqrt(A);return[[(e*n+t*r)/(e*e+t*t),(t*n-e*r)/(e*e+t*t)],[(e*n-t*r)/(e*e+t*t),(t*n+e*r)/(e*e+t*t)]]}var u,h=Math.PI/180;function d(e,t,n){return(1-n)*e+n*t}function g(e,t,n,A){return e+Math.cos(A/180*l)*t+Math.sin(A/180*l)*n}function p(e,t,n,A){var r=1e-6,a=t-e,i=n-t,o=3*a+3*(A-n)-6*i,l=6*(i-a),s=3*a;return Math.abs(o)<r?[-s/l]:function(e,t,n){void 0===n&&(n=1e-6);var A=e*e/4-t;if(A<-n)return[];if(A<=n)return[-e/2];var r=Math.sqrt(A);return[-e/2-r,-e/2+r]}(l/o,s/o,r)}function f(e,t,n,A,r){var a=1-r;return e*(a*a*a)+t*(3*a*a*r)+n*(3*a*r*r)+A*(r*r*r)}!function(e){function t(){return r(function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e})}function n(){var e=NaN,t=NaN,n=NaN,A=NaN;return r(function(r,a,i){return r.type&C.SMOOTH_CURVE_TO&&(r.type=C.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?i:t,r.x1=r.relative?a-e:2*a-e,r.y1=r.relative?i-t:2*i-t),r.type&C.CURVE_TO?(e=r.relative?a+r.x2:r.x2,t=r.relative?i+r.y2:r.y2):(e=NaN,t=NaN),r.type&C.SMOOTH_QUAD_TO&&(r.type=C.QUAD_TO,n=isNaN(n)?a:n,A=isNaN(A)?i:A,r.x1=r.relative?a-n:2*a-n,r.y1=r.relative?i-A:2*i-A),r.type&C.QUAD_TO?(n=r.relative?a+r.x1:r.x1,A=r.relative?i+r.y1:r.y1):(n=NaN,A=NaN),r})}function A(){var e=NaN,t=NaN;return r(function(n,A,r){if(n.type&C.SMOOTH_QUAD_TO&&(n.type=C.QUAD_TO,e=isNaN(e)?A:e,t=isNaN(t)?r:t,n.x1=n.relative?A-e:2*A-e,n.y1=n.relative?r-t:2*r-t),n.type&C.QUAD_TO){e=n.relative?A+n.x1:n.x1,t=n.relative?r+n.y1:n.y1;var a=n.x1,i=n.y1;n.type=C.CURVE_TO,n.x1=((n.relative?0:A)+2*a)/3,n.y1=((n.relative?0:r)+2*i)/3,n.x2=(n.x+2*a)/3,n.y2=(n.y+2*i)/3}else e=NaN,t=NaN;return n})}function r(e){var t=0,n=0,A=NaN,r=NaN;return function(a){if(isNaN(A)&&!(a.type&C.MOVE_TO))throw new Error("path must start with moveto");var i=e(a,t,n,A,r);return a.type&C.CLOSE_PATH&&(t=A,n=r),void 0!==a.x&&(t=a.relative?t+a.x:a.x),void 0!==a.y&&(n=a.relative?n+a.y:a.y),a.type&C.MOVE_TO&&(A=t,r=n),i}}function a(e,t,n,A,a,i){return o(e,t,n,A,a,i),r(function(r,o,l,s){var c=r.x1,u=r.x2,h=r.relative&&!isNaN(s),d=void 0!==r.x?r.x:h?0:o,g=void 0!==r.y?r.y:h?0:l;function p(e){return e*e}r.type&C.HORIZ_LINE_TO&&0!==t&&(r.type=C.LINE_TO,r.y=r.relative?0:l),r.type&C.VERT_LINE_TO&&0!==n&&(r.type=C.LINE_TO,r.x=r.relative?0:o),void 0!==r.x&&(r.x=r.x*e+g*n+(h?0:a)),void 0!==r.y&&(r.y=d*t+r.y*A+(h?0:i)),void 0!==r.x1&&(r.x1=r.x1*e+r.y1*n+(h?0:a)),void 0!==r.y1&&(r.y1=c*t+r.y1*A+(h?0:i)),void 0!==r.x2&&(r.x2=r.x2*e+r.y2*n+(h?0:a)),void 0!==r.y2&&(r.y2=u*t+r.y2*A+(h?0:i));var f=e*A-t*n;if(void 0!==r.xRot&&(1!==e||0!==t||0!==n||1!==A))if(0===f)delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag,r.type=C.LINE_TO;else{var m=r.xRot*Math.PI/180,v=Math.sin(m),b=Math.cos(m),B=1/p(r.rX),y=1/p(r.rY),x=p(b)*B+p(v)*y,w=2*v*b*(B-y),F=p(v)*B+p(b)*y,S=x*A*A-w*t*A+F*t*t,E=w*(e*A+t*n)-2*(x*n*A+F*e*t),Q=x*n*n-w*e*n+F*e*e,k=(Math.atan2(E,S-Q)+Math.PI)%Math.PI/2,L=Math.sin(k),U=Math.cos(k);r.rX=Math.abs(f)/Math.sqrt(S*p(U)+E*L*U+Q*p(L)),r.rY=Math.abs(f)/Math.sqrt(S*p(L)-E*L*U+Q*p(U)),r.xRot=180*k/Math.PI}return void 0!==r.sweepFlag&&0>f&&(r.sweepFlag=+!r.sweepFlag),r})}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),o(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return r(function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e})},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),r(function(A,r,a,i,o){if(isNaN(i)&&!(A.type&C.MOVE_TO))throw new Error("path must start with moveto");return t&&A.type&C.HORIZ_LINE_TO&&(A.type=C.LINE_TO,A.y=A.relative?0:a),n&&A.type&C.VERT_LINE_TO&&(A.type=C.LINE_TO,A.x=A.relative?0:r),e&&A.type&C.CLOSE_PATH&&(A.type=C.LINE_TO,A.x=A.relative?i-r:i,A.y=A.relative?o-a:o),A.type&C.ARC&&(0===A.rX||0===A.rY)&&(A.type=C.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A})},e.NORMALIZE_ST=n,e.QT_TO_C=A,e.INFO=r,e.SANITIZE=function(e){void 0===e&&(e=0),o(e);var t=NaN,n=NaN,A=NaN,a=NaN;return r(function(r,i,o,l,s){var c=Math.abs,u=!1,h=0,d=0;if(r.type&C.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:i-t,d=isNaN(n)?0:o-n),r.type&(C.CURVE_TO|C.SMOOTH_CURVE_TO)?(t=r.relative?i+r.x2:r.x2,n=r.relative?o+r.y2:r.y2):(t=NaN,n=NaN),r.type&C.SMOOTH_QUAD_TO?(A=isNaN(A)?i:2*i-A,a=isNaN(a)?o:2*o-a):r.type&C.QUAD_TO?(A=r.relative?i+r.x1:r.x1,a=r.relative?o+r.y1:r.y2):(A=NaN,a=NaN),r.type&C.LINE_COMMANDS||r.type&C.ARC&&(0===r.rX||0===r.rY||!r.lArcFlag)||r.type&C.CURVE_TO||r.type&C.SMOOTH_CURVE_TO||r.type&C.QUAD_TO||r.type&C.SMOOTH_QUAD_TO){var g=void 0===r.x?0:r.relative?r.x:r.x-i,p=void 0===r.y?0:r.relative?r.y:r.y-o;h=isNaN(A)?void 0===r.x1?h:r.relative?r.x:r.x1-i:A-i,d=isNaN(a)?void 0===r.y1?d:r.relative?r.y:r.y1-o:a-o;var f=void 0===r.x2?0:r.relative?r.x:r.x2-i,m=void 0===r.y2?0:r.relative?r.y:r.y2-o;c(g)<=e&&c(p)<=e&&c(h)<=e&&c(d)<=e&&c(f)<=e&&c(m)<=e&&(u=!0)}return r.type&C.CLOSE_PATH&&c(i-l)<=e&&c(o-s)<=e&&(u=!0),u?[]:r})},e.MATRIX=a,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),o(e,t,n);var A=Math.sin(e),r=Math.cos(e);return a(r,A,-A,r,t-t*r+n*A,n-t*A-n*r)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),o(e,t),a(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),o(e,t),a(e,0,0,t,0,0)},e.SKEW_X=function(e){return o(e),a(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return o(e),a(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),o(e),a(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),o(e),a(1,0,0,-1,0,e)},e.A_TO_C=function(){return r(function(e,t,n){return C.ARC===e.type?function(e,t,n){var A,r,a,o;e.cX||s(e,t,n);for(var l=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-l,u=Math.ceil(c/90),g=new Array(u),p=t,f=n,m=0;m<u;m++){var v=d(e.phi1,e.phi2,m/u),b=d(e.phi1,e.phi2,(m+1)/u),B=b-v,y=4/3*Math.tan(B*h/4),x=[Math.cos(v*h)-y*Math.sin(v*h),Math.sin(v*h)+y*Math.cos(v*h)],w=x[0],F=x[1],S=[Math.cos(b*h),Math.sin(b*h)],E=S[0],Q=S[1],k=[E+y*Math.sin(b*h),Q-y*Math.cos(b*h)],L=k[0],U=k[1];g[m]={relative:e.relative,type:C.CURVE_TO};var I=function(t,n){var A=i([t*e.rX,n*e.rY],e.xRot),r=A[0],a=A[1];return[e.cX+r,e.cY+a]};A=I(w,F),g[m].x1=A[0],g[m].y1=A[1],r=I(L,U),g[m].x2=r[0],g[m].y2=r[1],a=I(E,Q),g[m].x=a[0],g[m].y=a[1],e.relative&&(g[m].x1-=p,g[m].y1-=f,g[m].x2-=p,g[m].y2-=f,g[m].x-=p,g[m].y-=f),p=(o=[g[m].x,g[m].y])[0],f=o[1]}return g}(e,e.relative?0:t,e.relative?0:n):e})},e.ANNOTATE_ARCS=function(){return r(function(e,t,n){return e.relative&&(t=0,n=0),C.ARC===e.type&&s(e,t,n),e})},e.CLONE=function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),a=A(),i=n(),o=r(function(t,n,A){var r=i(a(e(function(e){var t={};for(var n in e)t[n]=e[n];return t}(t))));function l(e){e>o.maxX&&(o.maxX=e),e<o.minX&&(o.minX=e)}function u(e){e>o.maxY&&(o.maxY=e),e<o.minY&&(o.minY=e)}if(r.type&C.DRAWING_COMMANDS&&(l(n),u(A)),r.type&C.HORIZ_LINE_TO&&l(r.x),r.type&C.VERT_LINE_TO&&u(r.y),r.type&C.LINE_TO&&(l(r.x),u(r.y)),r.type&C.CURVE_TO){l(r.x),u(r.y);for(var h=0,d=p(n,r.x1,r.x2,r.x);h<d.length;h++)0<(T=d[h])&&1>T&&l(f(n,r.x1,r.x2,r.x,T));for(var m=0,v=p(A,r.y1,r.y2,r.y);m<v.length;m++)0<(T=v[m])&&1>T&&u(f(A,r.y1,r.y2,r.y,T))}if(r.type&C.ARC){l(r.x),u(r.y),s(r,n,A);for(var b=r.xRot/180*Math.PI,B=Math.cos(b)*r.rX,y=Math.sin(b)*r.rX,x=-Math.sin(b)*r.rY,w=Math.cos(b)*r.rY,F=r.phi1<r.phi2?[r.phi1,r.phi2]:-180>r.phi2?[r.phi2+360,r.phi1+360]:[r.phi2,r.phi1],S=F[0],E=F[1],Q=function(e){var t=e[0],n=e[1],A=180*Math.atan2(n,t)/Math.PI;return A<S?A+360:A},k=0,L=c(x,-B,0).map(Q);k<L.length;k++)(T=L[k])>S&&T<E&&l(g(r.cX,B,x,T));for(var U=0,I=c(w,-y,0).map(Q);U<I.length;U++){var T;(T=I[U])>S&&T<E&&u(g(r.cY,y,w,T))}}return t});return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(u||(u={}));var m,v=function(){function e(){}return e.prototype.round=function(e){return this.transform(u.ROUND(e))},e.prototype.toAbs=function(){return this.transform(u.TO_ABS())},e.prototype.toRel=function(){return this.transform(u.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(u.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},e.prototype.aToC=function(){return this.transform(u.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(u.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(u.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(u.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(u.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,A,r,a){return this.transform(u.MATRIX(e,t,n,A,r,a))},e.prototype.skewX=function(e){return this.transform(u.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(u.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(u.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(u.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},e}(),b=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},B=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},y=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return r(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var A=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},r=0;r<e.length;r++){var a=e[r],i=!(this.curCommandType!==C.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=B(a)&&("0"===this.curNumber&&"0"===a||i);if(!B(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||i){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+r);if(this.curCommandType===C.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+r+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+r+'"');this.curArgs.push(l),this.curArgs.length===x[this.curCommandType]&&(C.HORIZ_LINE_TO===this.curCommandType?A({type:C.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):C.VERT_LINE_TO===this.curCommandType?A({type:C.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===C.MOVE_TO||this.curCommandType===C.LINE_TO||this.curCommandType===C.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),C.MOVE_TO===this.curCommandType&&(this.curCommandType=C.LINE_TO)):this.curCommandType===C.CURVE_TO?A({type:C.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===C.SMOOTH_CURVE_TO?A({type:C.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===C.QUAD_TO?A({type:C.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===C.ARC&&A({type:C.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!b(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+r+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+r+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=C.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=C.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=C.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=C.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=C.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=C.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=C.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=C.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+r+".");this.curCommandType=C.ARC,this.curCommandRelative="a"===a}else t.push({type:C.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var A=0,r=Object.getPrototypeOf(this).parse.call(this,t);A<r.length;A++){var a=r[A],i=e(a);Array.isArray(i)?n.push.apply(n,i):n.push(i)}return n}}})},t}(v),C=function(e){function t(n){var A=e.call(this)||this;return A.commands="string"==typeof n?t.parse(n):n,A}return r(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=u.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,A=this.commands;n<A.length;n++){var r=e(A[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return this.commands=t,this},t.encode=function(e){return a(e)},t.parse=function(e){var t=new y,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(v),x=((m={})[C.MOVE_TO]=2,m[C.LINE_TO]=2,m[C.HORIZ_LINE_TO]=1,m[C.VERT_LINE_TO]=1,m[C.CLOSE_PATH]=0,m[C.QUAD_TO]=4,m[C.SMOOTH_QUAD_TO]=2,m[C.CURVE_TO]=6,m[C.SMOOTH_CURVE_TO]=4,m[C.ARC]=7,m)},(e,t,n)=>{"use strict";var A=n(49).PROPER,r=n(47),a=n(46),i=n(116),o=n(7),l=n(1730),s="toString",c=RegExp.prototype,u=c[s],h=o(function(){return"/a/b"!==u.call({source:"a",flags:"b"})}),d=A&&u.name!==s;(h||d)&&r(c,s,function(){var e=a(this);return"/"+i(e.source)+"/"+i(l(e))},{unsafe:!0})},(e,t,n)=>{"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}n.r(t),n.d(t,{BlurStack:()=>h,canvasRGB:()=>c,canvasRGBA:()=>l,image:()=>i,imageDataRGB:()=>u,imageDataRGBA:()=>s});var r=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],a=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function i(e,t,n,A,r,a){if("string"==typeof e&&(e=document.getElementById(e)),e&&("HTMLImageElement"!==Object.prototype.toString.call(e).slice(8,-1)||"naturalWidth"in e)){var i=r?"offset":"natural",o=e[i+"Width"],s=e[i+"Height"];if("ImageBitmap"===Object.prototype.toString.call(e).slice(8,-1)&&(o=e.width,s=e.height),"string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){a||(t.style.width=o+"px",t.style.height=s+"px"),t.width=o,t.height=s;var u=t.getContext("2d");u.clearRect(0,0,o,s),u.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,o,s),isNaN(n)||n<1||(A?l(t,0,0,o,s,n):c(t,0,0,o,s,n))}}}function o(e,t,n,r,a){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==A(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,n,r,a)}catch(o){throw new Error("unable to access image data: "+o)}}function l(e,t,n,A,r,a){if(!(isNaN(a)||a<1)){a|=0;var i=o(e,t,n,A,r);i=s(i,t,n,A,r,a),e.getContext("2d").putImageData(i,t,n)}}function s(e,t,n,A,i,o){for(var l,s=e.data,c=2*o+1,u=A-1,d=i-1,g=o+1,p=g*(g+1)/2,f=new h,m=f,v=1;v<c;v++)m=m.next=new h,v===g&&(l=m);m.next=f;for(var b=null,B=null,y=0,C=0,x=r[o],w=a[o],F=0;F<i;F++){m=f;for(var S=s[C],E=s[C+1],Q=s[C+2],k=s[C+3],L=0;L<g;L++)m.r=S,m.g=E,m.b=Q,m.a=k,m=m.next;for(var U=0,I=0,T=0,N=0,D=g*S,P=g*E,M=g*Q,H=g*k,O=p*S,_=p*E,R=p*Q,V=p*k,G=1;G<g;G++){var K=C+((u<G?u:G)<<2),z=s[K],W=s[K+1],j=s[K+2],X=s[K+3],Y=g-G;O+=(m.r=z)*Y,_+=(m.g=W)*Y,R+=(m.b=j)*Y,V+=(m.a=X)*Y,U+=z,I+=W,T+=j,N+=X,m=m.next}b=f,B=l;for(var J=0;J<A;J++){var q=V*x>>>w;if(s[C+3]=q,0!==q){var Z=255/q;s[C]=(O*x>>>w)*Z,s[C+1]=(_*x>>>w)*Z,s[C+2]=(R*x>>>w)*Z}else s[C]=s[C+1]=s[C+2]=0;O-=D,_-=P,R-=M,V-=H,D-=b.r,P-=b.g,M-=b.b,H-=b.a;var $=J+o+1;$=y+($<u?$:u)<<2,O+=U+=b.r=s[$],_+=I+=b.g=s[$+1],R+=T+=b.b=s[$+2],V+=N+=b.a=s[$+3],b=b.next;var ee=B,te=ee.r,ne=ee.g,Ae=ee.b,re=ee.a;D+=te,P+=ne,M+=Ae,H+=re,U-=te,I-=ne,T-=Ae,N-=re,B=B.next,C+=4}y+=A}for(var ae=0;ae<A;ae++){var ie=s[C=ae<<2],oe=s[C+1],le=s[C+2],se=s[C+3],ce=g*ie,ue=g*oe,he=g*le,de=g*se,ge=p*ie,pe=p*oe,fe=p*le,me=p*se;m=f;for(var ve=0;ve<g;ve++)m.r=ie,m.g=oe,m.b=le,m.a=se,m=m.next;for(var be=A,Be=0,ye=0,Ce=0,xe=0,we=1;we<=o;we++){C=be+ae<<2;var Fe=g-we;ge+=(m.r=ie=s[C])*Fe,pe+=(m.g=oe=s[C+1])*Fe,fe+=(m.b=le=s[C+2])*Fe,me+=(m.a=se=s[C+3])*Fe,xe+=ie,Be+=oe,ye+=le,Ce+=se,m=m.next,we<d&&(be+=A)}C=ae,b=f,B=l;for(var Se=0;Se<i;Se++){var Ee=C<<2;s[Ee+3]=se=me*x>>>w,se>0?(se=255/se,s[Ee]=(ge*x>>>w)*se,s[Ee+1]=(pe*x>>>w)*se,s[Ee+2]=(fe*x>>>w)*se):s[Ee]=s[Ee+1]=s[Ee+2]=0,ge-=ce,pe-=ue,fe-=he,me-=de,ce-=b.r,ue-=b.g,he-=b.b,de-=b.a,Ee=ae+((Ee=Se+g)<d?Ee:d)*A<<2,ge+=xe+=b.r=s[Ee],pe+=Be+=b.g=s[Ee+1],fe+=ye+=b.b=s[Ee+2],me+=Ce+=b.a=s[Ee+3],b=b.next,ce+=ie=B.r,ue+=oe=B.g,he+=le=B.b,de+=se=B.a,xe-=ie,Be-=oe,ye-=le,Ce-=se,B=B.next,C+=A}}return e}function c(e,t,n,A,r,a){if(!(isNaN(a)||a<1)){a|=0;var i=o(e,t,n,A,r);i=u(i,t,n,A,r,a),e.getContext("2d").putImageData(i,t,n)}}function u(e,t,n,A,i,o){for(var l,s=e.data,c=2*o+1,u=A-1,d=i-1,g=o+1,p=g*(g+1)/2,f=new h,m=f,v=1;v<c;v++)m=m.next=new h,v===g&&(l=m);m.next=f;for(var b,B,y=null,C=null,x=r[o],w=a[o],F=0,S=0,E=0;E<i;E++){var Q=s[S],k=s[S+1],L=s[S+2],U=g*Q,I=g*k,T=g*L,N=p*Q,D=p*k,P=p*L;m=f;for(var M=0;M<g;M++)m.r=Q,m.g=k,m.b=L,m=m.next;for(var H=0,O=0,_=0,R=1;R<g;R++)b=S+((u<R?u:R)<<2),N+=(m.r=Q=s[b])*(B=g-R),D+=(m.g=k=s[b+1])*B,P+=(m.b=L=s[b+2])*B,H+=Q,O+=k,_+=L,m=m.next;y=f,C=l;for(var V=0;V<A;V++)s[S]=N*x>>>w,s[S+1]=D*x>>>w,s[S+2]=P*x>>>w,N-=U,D-=I,P-=T,U-=y.r,I-=y.g,T-=y.b,b=F+((b=V+o+1)<u?b:u)<<2,N+=H+=y.r=s[b],D+=O+=y.g=s[b+1],P+=_+=y.b=s[b+2],y=y.next,U+=Q=C.r,I+=k=C.g,T+=L=C.b,H-=Q,O-=k,_-=L,C=C.next,S+=4;F+=A}for(var G=0;G<A;G++){var K=s[S=G<<2],z=s[S+1],W=s[S+2],j=g*K,X=g*z,Y=g*W,J=p*K,q=p*z,Z=p*W;m=f;for(var $=0;$<g;$++)m.r=K,m.g=z,m.b=W,m=m.next;for(var ee=0,te=0,ne=0,Ae=1,re=A;Ae<=o;Ae++)S=re+G<<2,J+=(m.r=K=s[S])*(B=g-Ae),q+=(m.g=z=s[S+1])*B,Z+=(m.b=W=s[S+2])*B,ee+=K,te+=z,ne+=W,m=m.next,Ae<d&&(re+=A);S=G,y=f,C=l;for(var ae=0;ae<i;ae++)s[b=S<<2]=J*x>>>w,s[b+1]=q*x>>>w,s[b+2]=Z*x>>>w,J-=j,q-=X,Z-=Y,j-=y.r,X-=y.g,Y-=y.b,b=G+((b=ae+g)<d?b:d)*A<<2,J+=ee+=y.r=s[b],q+=te+=y.g=s[b+1],Z+=ne+=y.b=s[b+2],y=y.next,j+=K=C.r,X+=z=C.g,Y+=W=C.b,ee-=K,te-=z,ne-=W,C=C.next,S+=A}return e}var h=function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}])]);
//# sourceMappingURL=http://localhost:3052/4.2.0/map/eval/fusioncharts.common.js.map