PageSourceSearch

https://www.werkenbijfortezza.nl/build/6324.js?21c032a5

js werkenbijfortezza.nl collected 2026-09-25 23:09:31 UTC 258,508 bytes, 2 lines download raw bytes

1/*! For license information please see 6324.js.LICENSE.txt */
2(self.webpackChunkcms=self.webpackChunkcms||[]).push([[6324],{20181(t,e,i){var n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,h="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=h||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return c.Date.now()};function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return NaN;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var i=r.test(t);return i||o.test(t)?a(t.slice(2),i?2:8):s.test(t)?NaN:+t}t.exports=function(t,e,i){var n,s,r,o,a,h,l=0,c=!1,u=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(e){var i=n,r=s;return n=s=void 0,l=e,o=t.apply(r,i)}function v(t){var i=t-h;return void 0===h||i>=e||i<0||u&&t-l>=r}function y(){var t=p();if(v(t))return _(t);a=setTimeout(y,function(t){var i=e-(t-h);return u?f(i,r-(t-l)):i}(t))}function _(t){return a=void 0,b&&n?x(t):(n=s=void 0,o)}function w(){var t=p(),i=v(t);if(n=arguments,s=this,h=t,i){if(void 0===a)return function(t){return l=t,a=setTimeout(y,e),c?x(t):o}(h);if(u)return a=setTimeout(y,e),x(h)}return void 0===a&&(a=setTimeout(y,e)),o}return e=m(e)||0,g(i)&&(c=!!i.leading,r=(u="maxWait"in i)?d(m(i.maxWait)||0,e):r,b="trailing"in i?!!i.trailing:b),w.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=h=s=a=void 0},w.flush=function(){return void 0===a?o:_(p())},w}},35548(t,e,i){"use strict";var n=i(33517),s=i(16823),r=TypeError;t.exports=function(t){if(n(t))return t;throw new r(s(t)+" is not a constructor")}},90235(t,e,i){"use strict";var n=i(59213).forEach,s=i(34598)("forEach");t.exports=s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},97916(t,e,i){"use strict";var n=i(76080),s=i(69565),r=i(48981),o=i(96319),a=i(44209),h=i(33517),l=i(26198),c=i(97040),u=i(70081),d=i(50851),f=Array;t.exports=function(t){var e=r(t),i=h(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=n(g,p>2?arguments[2]:void 0));var b,x,v,y,_,w,M=d(e),k=0;if(!M||this===f&&a(M))for(b=l(e),x=i?new this(b):f(b);b>k;k++)w=m?g(e[k],k):e[k],c(x,k,w);else for(x=i?new this:[],_=(y=u(e,M)).next;!(v=s(_,y)).done;k++)w=m?o(y,g,[v.value,k],!0):v.value,c(x,k,w);return x.length=k,x}},92804(t){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=e+"+/",n=e+"-_",s=function(t){for(var e={},i=0;i<64;i++)e[t.charAt(i)]=i;return e};t.exports={i2c:i,c2i:s(i),i2cUrl:n,c2iUrl:s(n)}},84428(t,e,i){"use strict";var n=i(78227)("iterator"),s=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){s=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!s)return!1}catch(t){return!1}var i=!1;try{var r={};r[n]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i}},41436(t,e,i){"use strict";var n=i(78227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},53640(t,e,i){"use strict";var n=i(28551),s=i(84270),r=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new r("Incorrect hint");return s(this,t)}},55002(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1}
2,NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},44265(t,e,i){"use strict";var n=i(82839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},89544(t,e,i){"use strict";var n=i(82839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},38574(t,e,i){"use strict";var n=i(84215);t.exports="NODE"===n},7860(t,e,i){"use strict";var n=i(82839);t.exports=/web0s(?!.*chrome)/i.test(n)},16193(t,e,i){"use strict";var n=i(79504),s=Error,r=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,h=a.test(o);t.exports=function(t,e){if(h&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=r(t,a,"");return t}},80747(t,e,i){"use strict";var n=i(66699),s=i(16193),r=i(24659),o=Error.captureStackTrace;t.exports=function(t,e,i,a){r&&(o?o(t,e):n(t,"stack",s(i,a)))}},24659(t,e,i){"use strict";var n=i(79039),s=i(6980);t.exports=!n(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)})},77536(t,e,i){"use strict";var n=i(43724),s=i(79039),r=i(28551),o=i(32603),a=Error.prototype.toString,h=s(function(){if(n){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==a.call(t))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})});t.exports=h?function(){var t=r(this),e=o(t.name,"Error"),i=o(t.message);return e?i?e+": "+i:e:i}:a},30566(t,e,i){"use strict";var n=i(79504),s=i(79306),r=i(20034),o=i(39297),a=i(67680),h=i(40616),l=Function,c=n([].concat),u=n([].join),d={};t.exports=h?l.bind:function(t){var e=s(this),i=e.prototype,n=a(arguments,1),h=function(){var i=c(n,a(arguments));return this instanceof h?function(t,e,i){if(!o(d,e)){for(var n=[],s=0;s<e;s++)n[s]="a["+s+"]";d[e]=l("C,a","return new C("+u(n,",")+")")}return d[e](t,i)}(e,i.length,i):e.apply(t,i)};return r(i)&&(h.prototype=i),h}},89429(t,e,i){"use strict";var n=i(44576),s=i(38574);t.exports=function(t){if(s){try{return n.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},2478(t,e,i){"use strict";var n=i(79504),s=i(48981),r=Math.floor,o=n("".charAt),a=n("".replace),h=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,u,d){var f=i+t.length,p=n.length,g=c;return void 0!==u&&(u=s(u),g=l),a(d,g,function(s,a){var l;switch(o(a,0)){case"$":return"$";case"&":return t;case"`":return h(e,0,i);case"'":return h(e,f);case"<":l=u[h(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>p){var d=r(c/10);return 0===d?s:d<=p?void 0===n[d-1]?o(a,1):n[d-1]+o(a,1):s}l=n[c-1]}return void 0===l?"":l})}},90757(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},23167(t,e,i){"use strict";var n=i(94901),s=i(20034),r=i(52967);t.exports=function(t,e,i){var o,a;return r&&n(o=e.constructor)&&o!==i&&s(a=o.prototype)&&a!==i.prototype&&r(t,a),t}},77584(t,e,i){"use strict";var n=i(20034),s=i(66699);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},16575(t,e,i){"use strict";var n=i(39297);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},2087(t,e,i){"use strict";var n=i(20034),s=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&s(t)===t}},60788(t,e,i){"use strict";var n=i(20034),s=i(22195),r=i(78227)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"===s(t))}},91955(t,e,i){"use strict";var n,s,r,o,a,h=i(44576),l=i(93389),c=i(76080),u=i(59225).set,d=i(18265),f=i(89544),p=i(44265),g=i(7860),m=i(38574),b=h.MutationObserver||h.WebKitMutationObserver,x=h.document,v=h.process,y=h.Promise,_=l("queueMicrotask");if(!_){var w=new d,M=function(){var t,e;for(m&&(t=v.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&n(),t}t&&t.enter()};f||m||g||!b||!x?!p&&y&&y.resolve?((o=y.resolve(void 0)).constructor=y,a=c(o.then,o),n=function(){a(M)}):m?n=function(){v.nextTick(M)}:(u=c(u,h),n=function(){u(M)}):(s=!0,r=x.createTextNode(""),new b(M).observe(r,{characterData:!0}
vendor: 5,112 bytes, line 2
2),n=function(){r.data=s=!s}),_=function(t){w.head||n(),w.add(t)}}t.exports=_},36043(t,e,i){"use strict";var n=i(79306),s=TypeError,r=function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw new s("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new r(t)}},32603(t,e,i){"use strict";var n=i(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},60511(t,e,i){"use strict";var n=i(60788),s=TypeError;t.exports=function(t){if(n(t))throw new s("The method doesn't accept regular expressions");return t}},33904(t,e,i){"use strict";var n=i(44576),s=i(79039),r=i(79504),o=i(655),a=i(43802).trim,h=i(47452),l=r("".charAt),c=n.parseFloat,u=n.Symbol,d=u&&u.iterator,f=1/c(h+"-0")!=-1/0||d&&!s(function(){c(Object(d))});t.exports=f?function(t){var e=a(o(t)),i=c(e);return 0===i&&"-"===l(e,0)?-0:i}:c},44213(t,e,i){"use strict";var n=i(43724),s=i(79504),r=i(69565),o=i(79039),a=i(71072),h=i(33717),l=i(48773),c=i(48981),u=i(47055),d=Object.assign,f=Object.defineProperty,p=s([].concat);t.exports=!d||o(function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return t[i]=7,s.split("").forEach(function(t){e[t]=t}),7!==d({},t)[i]||a(d({},e)).join("")!==s})?function(t,e){for(var i=c(t),s=arguments.length,o=1,d=h.f,f=l.f;s>o;)for(var g,m=u(arguments[o++]),b=d?p(a(m),d(m)):a(m),x=b.length,v=0;x>v;)g=b[v++],n&&!r(f,m,g)||(i[g]=m[g]);return i}:d},32357(t,e,i){"use strict";var n=i(43724),s=i(79039),r=i(79504),o=i(42787),a=i(71072),h=i(25397),l=r(i(48773).f),c=r([].push),u=n&&s(function(){var t=Object.create(null);return t[2]=2,!l(t,2)}),d=function(t){return function(e){for(var i,s=h(e),r=a(s),d=u&&null===o(s),f=r.length,p=0,g=[];f>p;)i=r[p++],n&&!(d?i in s:l(s,i))||c(g,t?[i,s[i]]:s[i]);return g}};t.exports={entries:d(!0),values:d(!1)}},1103(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},10916(t,e,i){"use strict";var n=i(44576),s=i(80550),r=i(94901),o=i(92796),a=i(33706),h=i(78227),l=i(84215),c=i(96395),u=i(39519),d=s&&s.prototype,f=h("species"),p=!1,g=r(n.PromiseRejectionEvent),m=o("Promise",function(){var t=a(s),e=t!==String(s);if(!e&&66===u)return!0;if(c&&(!d.catch||!d.finally))return!0;if(!u||u<51||!/native code/.test(t)){var i=new s(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((i.constructor={})[f]=n,!(p=i.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==l&&"DENO"!==l||g)});t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},80550(t,e,i){"use strict";var n=i(44576);t.exports=n.Promise},93438(t,e,i){"use strict";var n=i(28551),s=i(20034),r=i(36043);t.exports=function(t,e){if(n(t),s(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},90537(t,e,i){"use strict";var n=i(80550),s=i(84428),r=i(10916).CONSTRUCTOR;t.exports=r||!s(function(t){n.all(t).then(void 0,function(){})})},11056(t,e,i){"use strict";var n=i(24913).f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},18265(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},61034(t,e,i){"use strict";var n=i(69565),s=i(39297),r=i(1625),o=i(67979),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||s(t,"flags")||!r(a,t)?e:n(o,t)}},93389(t,e,i){"use strict";var n=i(44576),s=i(43724),r=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!s)return n[t];var e=r(n,t);return e&&e.value}},3470(t){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},87633(t,e,i){"use strict";var n=i(97751),s=i(62106),r=i(78227),o=i(43724),a=r("species");t.exports=function(t){var e=n(t);o&&e&&!e[a]&&s(e,a,{configurable:!0,get:function(){return this}})}},2293(t,e,i){"use strict";var n=i(28551),s=i(35548),r=i(64117),o=i(78227)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||r(i=n(a)[o])?e:s(i)}},83063(t,e,i){"use strict";var n=i(82839);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},60533(t,e,i){"use strict";var n=i(79504),s=i(18014),r=i(655),o=i(72333),a=i(67750),h=n(o),l=n("".slice),c=Math.ceil,u=function(t){return function(e,i,n){var o,u,d=r(a(e)),f=s(i),p=d.length,g=void 0===n?" ":r(n);return f<=p||""===g?d:((u=h(g,c((o=f-p)/g.length))).length>o&&(u=l(u,0,o)),t?d+u:u+d)}};t.exports={start:u(!1),end:u(!0)}},3717(t,e,i){"use strict";var n=i(79504),s=2147483647,r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",h=RangeError,l=n(o.exec),c=Math.floor,u=String.fromCharCode,d=n("".charCodeAt),f=n([].join),p=n([].push),g=n("".replace),m=n("".split),b=n("".toLowerCase),x=function(t){return t+22+75*(t<26)}
vendor: 8,944 bytes, line 2
2,v=function(t,e,i){var n=0;for(t=i?c(t/700):t>>1,t+=c(t/e);t>455;)t=c(t/35),n+=36;return c(n+36*t/(t+38))},y=function(t){var e=[];t=function(t){for(var e=[],i=0,n=t.length;i<n;){var s=d(t,i++);if(s>=55296&&s<=56319&&i<n){var r=d(t,i++);56320==(64512&r)?p(e,((1023&s)<<10)+(1023&r)+65536):(p(e,s),i--)}else p(e,s)}return e}(t);var i,n,r=t.length,o=128,l=0,g=72;for(i=0;i<t.length;i++)(n=t[i])<128&&p(e,u(n));var m=e.length,b=m;for(m&&p(e,"-");b<r;){var y=s;for(i=0;i<t.length;i++)(n=t[i])>=o&&n<y&&(y=n);var _=b+1;if(y-o>c((s-l)/_))throw new h(a);for(l+=(y-o)*_,o=y,i=0;i<t.length;i++){if((n=t[i])<o&&++l>s)throw new h(a);if(n===o){for(var w=l,M=36;;){var k=M<=g?1:M>=g+26?26:M-g;if(w<k)break;var S=w-k,P=36-k;p(e,u(x(k+S%P))),w=c(S/P),M+=36}p(e,u(x(w))),g=v(l,_,b===m),l=0,b++}}l++,o++}return f(e,"")};t.exports=function(t){var e,i,n=[],s=m(g(b(t),o,"."),".");for(e=0;e<s.length;e++)i=s[e],p(n,l(r,i)?"xn--"+y(i):i);return f(n,".")}},72333(t,e,i){"use strict";var n=i(91291),s=i(655),r=i(67750),o=RangeError;t.exports=function(t){var e=s(r(this)),i="",a=n(t);if(a<0||a===1/0)throw new o("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(i+=e);return i}},60706(t,e,i){"use strict";var n=i(10350).PROPER,s=i(79039),r=i(47452);t.exports=function(t){return s(function(){return!!r[t]()||"​…᠎"!=="​…᠎"[t]()||n&&r[t].name!==t})}},59225(t,e,i){"use strict";var n,s,r,o,a=i(44576),h=i(18745),l=i(76080),c=i(94901),u=i(39297),d=i(79039),f=i(20397),p=i(67680),g=i(4055),m=i(22812),b=i(89544),x=i(38574),v=a.setImmediate,y=a.clearImmediate,_=a.process,w=a.Dispatch,M=a.Function,k=a.MessageChannel,S=a.String,P=0,E={},O="onreadystatechange";d(function(){n=a.location});var R=function(t){if(u(E,t)){var e=E[t];delete E[t],e()}},D=function(t){return function(){R(t)}},A=function(t){R(t.data)},C=function(t){a.postMessage(S(t),n.protocol+"//"+n.host)};v&&y||(v=function(t){m(arguments.length,1);var e=c(t)?t:M(t),i=p(arguments,1);return E[++P]=function(){h(e,void 0,i)},s(P),P},y=function(t){delete E[t]},x?s=function(t){_.nextTick(D(t))}:w&&w.now?s=function(t){w.now(D(t))}:k&&!b?(o=(r=new k).port2,r.port1.onmessage=A,s=l(o.postMessage,o)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(C)?(s=C,a.addEventListener("message",A,!1)):s=O in g("script")?function(t){f.appendChild(g("script"))[O]=function(){f.removeChild(this),R(t)}}:function(t){setTimeout(D(t),0)}),t.exports={set:v,clear:y}},31240(t,e,i){"use strict";var n=i(79504);t.exports=n(1..valueOf)},67416(t,e,i){"use strict";var n=i(79039),s=i(78227),r=i(43724),o=i(96395),a=s("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),n+=i+t}),i.delete("a",2),i.delete("b",void 0),o&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(o||!r)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},14601(t,e,i){"use strict";var n=i(97751),s=i(39297),r=i(66699),o=i(1625),a=i(52967),h=i(77740),l=i(11056),c=i(23167),u=i(32603),d=i(77584),f=i(80747),p=i(43724),g=i(96395);t.exports=function(t,e,i,m){var b="stackTraceLimit",x=m?2:1,v=t.split("."),y=v[v.length-1],_=n.apply(null,v);if(_){var w=_.prototype;if(!g&&s(w,"cause")&&delete w.cause,!i)return _;var M=n("Error"),k=e(function(t,e){var i=u(m?e:t,void 0),n=m?new _(t):new _;return void 0!==i&&r(n,"message",i),f(n,k,n.stack,2),this&&o(w,this)&&c(n,this,k),arguments.length>x&&d(n,arguments[x]),n});if(k.prototype=w,"Error"!==y?a?a(k,M):h(k,M,{name:!0}):p&&b in _&&(l(k,_,b),l(k,_,"prepareStackTrace")),h(k,_),!g)try{w.name!==y&&r(w,"name",y),w.constructor=k}catch(t){}return k}}},28706(t,e,i){"use strict";var n=i(46518),s=i(79039),r=i(34376),o=i(20034),a=i(48981),h=i(26198),l=i(96837),c=i(97040),u=i(1469),d=i(70597),f=i(78227),p=i(39519),g=f("isConcatSpreadable"),m=p>=51||!s(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),b=function(t){if(!o(t))return!1;var e=t[g];return void 0!==e?!!e:r(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!d("concat")},{concat:function(t){var e,i,n,s,r,o=a(this),d=u(o,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(b(r=-1===e?o:arguments[e]))for(s=h(r),l(f+s),i=0;i<s;i++,f++)i in r&&c(d,f,r[i]);else l(f+1),c(d,f++,r);return d.length=f,d}})},48980(t,e,i){"use strict";var n=i(46518),s=i(59213).findIndex,r=i(6469),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n({target:"Array",proto:!0,forced:a},{findIndex:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),r(o)},51629(t,e,i){"use strict";var n=i(46518),s=i(90235);n({target:"Array",proto:!0,forced:[].forEach!==s},{forEach:s})},23418(t,e,i){"use strict";var n=i(46518),s=i(97916);n({target:"Array",stat:!0,forced:!i(84428)(function(t){Array.from(t)})},{from:s})},74423(t,e,i){"use strict";var n=i(46518),s=i(19617).includes,r=i(79039),o=i(6469);n({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},64346(t,e,i){"use strict";i(46518)({target:"Array",stat:!0},{isArray:i(34376)})},48598(t,e,i){"use strict";var n=i(46518),s=i(79504),r=i(47055),o=i(25397),a=i(34598),h=s([].join);n({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(t){return h(o(this),void 0===t?",":t)}})},62062(t,e,i){"use strict";var n=i(46518),s=i(59213).map;n({target:"Array",proto:!0,forced:!i(70597)("map")},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},15086(t,e,i){"use strict";var n=i(46518),s=i(59213).some;n({target:"Array",proto:!0,forced:!i(34598)("some")},{some:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},13609(t,e,i){"use strict";var n=i(46518),s=i(48981),r=i(26198),o=i(34527),a=i(84606),h=i(96837);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=s(this),i=r(e),n=arguments.length;if(n){h(i+n);for(var l=i;l--;){var c=l+n;l in e?e[c]=e[l]:a(e,c)}for(var u=0;u<n;u++)e[u]=arguments[u]}return o(e,i+n)}})},60739(t,e,i){"use strict";var n=i(46518),s=i(79039),r=i(48981),o=i(72777);n({target:"Date",proto:!0,arity:1,forced:s(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=r(this),i=o(e,"number");return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},89572(t,e,i){"use strict";var n=i(39297),s=i(36840),r=i(53640),o=i(78227)("toPrimitive"),a=Date.prototype;n(a,o)||s(a,o,r)},23288(t,e,i){"use strict";var n=i(79504),s=i(36840),r=Date.prototype,o="Invalid Date",a="toString",h=n(r[a]),l=n(r.getTime);String(new Date(NaN))!==o&&s(r,a,function(){var t=l(this);return t==t?h(this):o})},16280(t,e,i){"use strict";var n=i(46518),s=i(44576),r=i(18745),o=i(14601),a="WebAssembly",h=s[a],l=7!==new Error("e",{cause:7}).cause,c=function(t,e){var i={};i[t]=o(t,e,l),n({global:!0,constructor:!0,arity:1,forced:l},i)},u=function(t,e){if(h&&h[t]){var i={};i[t]=o(a+"."+t,e,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},i)}};c("Error",function(t){return function(e){return r(t,this,arguments)}}),c("EvalError",function(t){return function(e){return r(t,this,arguments)}}),c("RangeError",function(t){return function(e){return r(t,this,arguments)}}),c("ReferenceError",function(t){return function(e){return r(t,this,arguments)}}),c("SyntaxError",function(t){return function(e){return r(t,this,arguments)}}),c("TypeError",function(t){return function(e){return r(t,this,arguments)}}),c("URIError",function(t){return function(e){return r(t,this,arguments)}}),u("CompileError",function(t){return function(e){return r(t,this,arguments)}}),u("LinkError",function(t){return function(e){return r(t,this,arguments)}}),u("RuntimeError",function(t){return function(e){return r(t,this,arguments)}})},76918(t,e,i){"use strict";var n=i(36840),s=i(77536),r=Error.prototype;r.toString!==s&&n(r,"toString",s)},94170(t,e,i){"use strict";var n=i(46518),s=i(30566);n({target:"Function",proto:!0,forced:Function.bind!==s},{bind:s})},62010(t,e,i){"use strict";var n=i(43724),s=i(10350).EXISTS,r=i(79504),o=i(62106),a=Function.prototype,h=r(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=r(l.exec);n&&!s&&o(a,"name",{configurable:!0,get:function(){try{return c(l,h(this))[1]}catch(t){return""}}})},7588(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(72652),o=i(79306),a=i(28551),h=i(1767),l=i(9539),c=i(84549)("forEac
2h",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(t){a(this);try{o(t)}catch(t){l(this,"throw",t)}if(c)return s(c,this,t);var e=h(this),i=0;r(e,function(e){t(e,i++)},{IS_RECORD:!0})}})},61701(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(79306),o=i(28551),a=i(1767),h=i(19462),l=i(96319),c=i(9539),u=i(84549),d=i(96395),f=!d&&u("map",TypeError),p=h(function(){var t=this.iterator,e=o(s(this.next,t));if(!(this.done=!!e.done))return l(t,this.mapper,[e.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:d||f},{map:function(t){o(this);try{r(t)}catch(t){c(this,"throw",t)}return f?s(f,this,t):new p(a(this),{mapper:t})}})},13579(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(72652),o=i(79306),a=i(28551),h=i(1767),l=i(9539),c=i(84549)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(t){a(this);try{o(t)}catch(t){l(this,"throw",t)}if(c)return s(c,this,t);var e=h(this),i=0;return r(e,function(e,n){if(t(e,i++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2892(t,e,i){"use strict";var n=i(46518),s=i(96395),r=i(43724),o=i(44576),a=i(19167),h=i(79504),l=i(92796),c=i(39297),u=i(23167),d=i(1625),f=i(10757),p=i(72777),g=i(79039),m=i(38480).f,b=i(77347).f,x=i(24913).f,v=i(31240),y=i(43802).trim,_="Number",w=o[_],M=a[_],k=w.prototype,S=o.TypeError,P=h("".slice),E=h("".charCodeAt),O=function(t){var e,i,n,s,r,o,a,h,l=p(t,"number");if(f(l))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=y(l),43===(e=E(l,0))||45===e){if(88===(i=E(l,2))||120===i)return NaN}else if(48===e){switch(E(l,1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+l}for(o=(r=P(l,2)).length,a=0;a<o;a++)if((h=E(r,a))<48||h>s)return NaN;return parseInt(r,n)}return+l},R=l(_,!w(" 0o1")||!w("0b1")||w("+0x1")),D=function(t){var e,i=arguments.length<1?0:w(function(t){var e=p(t,"number");return"bigint"==typeof e?e:O(e)}(t));return d(k,e=this)&&g(function(){v(e)})?u(Object(i),this,D):i};D.prototype=k,R&&!s&&(k.constructor=D),n({global:!0,constructor:!0,wrap:!0,forced:R},{Number:D});var A=function(t,e){for(var i,n=r?m(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),s=0;n.length>s;s++)c(e,i=n[s])&&!c(t,i)&&x(t,i,b(e,i))};s&&M&&A(a[_],M),(R||s)&&A(a[_],w)},32637(t,e,i){"use strict";i(46518)({target:"Number",stat:!0},{isInteger:i(2087)})},87220(t,e,i){"use strict";var n=i(46518),s=i(33904);n({target:"Number",stat:!0,forced:Number.parseFloat!==s},{parseFloat:s})},9868(t,e,i){"use strict";var n=i(46518),s=i(79504),r=i(91291),o=i(31240),a=i(72333),h=i(79039),l=RangeError,c=String,u=Math.floor,d=s(a),f=s("".slice),p=s(1..toFixed),g=function(t,e,i){return 0===e?i:e%2==1?g(t,e-1,i*t):g(t*t,e/2,i)},m=function(t,e,i){for(var n=-1,s=i;++n<6;)s+=e*t[n],t[n]=s%1e7,s=u(s/1e7)},b=function(t,e){for(var i=6,n=0;--i>=0;)n+=t[i],t[i]=u(n/e),n=n%e*1e7},x=function(t){for(var e=6,i="";--e>=0;)if(""!==i||0===e||0!==t[e]){var n=c(t[e]);i=""===i?n:i+d("0",7-n.length)+n}return i};n({target:"Number",proto:!0,forced:h(function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)})||!h(function(){p({})})},{toFixed:function(t){var e,i,n,s,a=o(this),h=r(t),u=[0,0,0,0,0,0],p="",v="0";if(h<0||h>20)throw new l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return c(a);if(a<0&&(p="-",a=-a),a>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(a*g(2,69,1))-69)<0?a*g(2,-e,1):a/g(2,e,1),i*=4503599627370496,(e=52-e)>0){for(m(u,0,i),n=h;n>=7;)m(u,1e7,0),n-=7;for(m(u,g(10,n,1),0),n=e-1;n>=23;)b(u,1<<23),n-=23;b(u,1<<n),m(u,1,1),b(u,2),v=x(u)}else m(u,0,i),m(u,1<<-e,0),v=x(u)+d("0",h);return v=h>0?p+((s=v.length)<=h?"0."+d("0",h-s)+v:f(v,0,s-h)+"."+f(v,s-h)):p+v}})},69085(t,e,i){"use strict";var n=i(46518),s=i(44213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},59904(t,e,i){"use strict";i(46518)({target:"Object",stat:!0,sham:!i(43724)},{create:i(2360)})}
vendor: 3,273 bytes, line 2
2,67945(t,e,i){"use strict";var n=i(46518),s=i(43724),r=i(96801).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!s},{defineProperties:r})},84185(t,e,i){"use strict";var n=i(46518),s=i(43724),r=i(24913).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!s},{defineProperty:r})},5506(t,e,i){"use strict";var n=i(46518),s=i(32357).entries;n({target:"Object",stat:!0},{entries:function(t){return s(t)}})},53921(t,e,i){"use strict";var n=i(46518),s=i(72652),r=i(97040);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return s(t,function(t,i){r(e,t,i)},{AS_ENTRIES:!0}),e}})},83851(t,e,i){"use strict";var n=i(46518),s=i(79039),r=i(25397),o=i(77347).f,a=i(43724);n({target:"Object",stat:!0,forced:!a||s(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(t,e){return o(r(t),e)}})},81278(t,e,i){"use strict";var n=i(46518),s=i(43724),r=i(35031),o=i(25397),a=i(77347),h=i(97040);n({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),s=a.f,l=r(n),c={},u=0;l.length>u;)void 0!==(i=s(n,e=l[u++]))&&h(c,e,i);return c}})},40875(t,e,i){"use strict";var n=i(46518),s=i(79039),r=i(48981),o=i(42787),a=i(12211);n({target:"Object",stat:!0,forced:s(function(){o(1)}),sham:!a},{getPrototypeOf:function(t){return o(r(t))}})},79432(t,e,i){"use strict";var n=i(46518),s=i(48981),r=i(71072);n({target:"Object",stat:!0,forced:i(79039)(function(){r(1)})},{keys:function(t){return r(s(t))}})},10287(t,e,i){"use strict";i(46518)({target:"Object",stat:!0},{setPrototypeOf:i(52967)})},16034(t,e,i){"use strict";var n=i(46518),s=i(32357).values;n({target:"Object",stat:!0},{values:function(t){return s(t)}})},16499(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(79306),o=i(36043),a=i(1103),h=i(72652);n({target:"Promise",stat:!0,forced:i(90537)},{all:function(t){var e=this,i=o.f(e),n=i.resolve,l=i.reject,c=a(function(){var i=r(e.resolve),o=[],a=0,c=1;h(t,function(t){var r=a++,h=!1;c++,s(i,e,t).then(function(t){h||(h=!0,o[r]=t,--c||n(o))},l)}),--c||n(o)});return c.error&&l(c.value),i.promise}})},82003(t,e,i){"use strict";var n=i(46518),s=i(96395),r=i(10916).CONSTRUCTOR,o=i(80550),a=i(97751),h=i(94901),l=i(36840),c=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!s&&h(o)){var u=a("Promise").prototype.catch;c.catch!==u&&l(c,"catch",u,{unsafe:!0})}},10436(t,e,i){"use strict";var n,s,r,o=i(46518),a=i(96395),h=i(38574),l=i(44576),c=i(69565),u=i(36840),d=i(52967),f=i(10687),p=i(87633),g=i(79306),m=i(94901),b=i(20034),x=i(90679),v=i(2293),y=i(59225).set,_=i(91955),w=i(90757),M=i(1103),k=i(18265),S=i(91181),P=i(80550),E=i(10916),O=i(36043),R="Promise",D=E.CONSTRUCTOR,A=E.REJECTION_EVENT,C=E.SUBCLASSING,T=S.getterFor(R),L=S.set,I=P&&P.prototype,F=P,z=I,N=l.TypeError,j=l.document,B=l.process,V=O.f,W=V,H=!!(j&&j.createEvent&&l.dispatchEvent),U="unhandledrejection",$=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},Y=function(t,e){var i,n,s,r=e.value,o=1===e.state,a=o?t.ok:t.fail,h=t.resolve,l=t.reject,u=t.domain;try{a?(o||(2===e.rejection&&J(e),e.rejection=1),!0===a?i=r:(u&&u.enter(),i=a(r),u&&(u.exit(),s=!0)),i===t.promise?l(new N("Promise-chain cycle")):(n=$(i))?c(n,i,h,l):h(i)):l(r)}catch(t){u&&!s&&u.exit(),l(t)}
vendor: 15,295 bytes, line 2
2},q=function(t,e){t.notified||(t.notified=!0,_(function(){for(var i,n=t.reactions;i=n.get();)Y(i,t);t.notified=!1,e&&!t.rejection&&G(t)}))},X=function(t,e,i){var n,s;H?((n=j.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:i},!A&&(s=l["on"+t])?s(n):t===U&&w("Unhandled promise rejection",i)},G=function(t){c(y,l,function(){var e,i=t.facade,n=t.value;if(K(t)&&(e=M(function(){h?B.emit("unhandledRejection",n,i):X(U,i,n)}),t.rejection=h||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t){c(y,l,function(){var e=t.facade;h?B.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)})},Q=function(t,e,i){return function(n){t(e,n,i)}},Z=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new N("Promise can't be resolved itself");var n=$(e);n?_(function(){var i={done:!1};try{c(n,e,Q(tt,i,t),Q(Z,i,t))}catch(e){Z(i,e,t)}}):(t.value=e,t.state=1,q(t,!1))}catch(e){Z({done:!1},e,t)}}};if(D&&(z=(F=function(t){x(this,z),g(t),c(n,this);var e=T(this);try{t(Q(tt,e),Q(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=u(z,"then",function(t,e){var i=T(this),n=V(v(this,F));return i.parent=!0,n.ok=!m(t)||t,n.fail=m(e)&&e,n.domain=h?B.domain:void 0,0===i.state?i.reactions.add(n):_(function(){Y(n,i)}),n.promise}),s=function(){var t=new n,e=T(t);this.promise=t,this.resolve=Q(tt,e),this.reject=Q(Z,e)},O.f=V=function(t){return t===F||void 0===t?new s(t):W(t)},!a&&m(P)&&I!==Object.prototype)){r=I.then,C||u(I,"then",function(t,e){var i=this;return new F(function(t,e){c(r,i,t,e)}).then(t,e)},{unsafe:!0});try{delete I.constructor}catch(t){}d&&d(I,z)}o({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:F}),f(F,R,!1,!0),p(R)},9391(t,e,i){"use strict";var n=i(46518),s=i(96395),r=i(80550),o=i(79039),a=i(97751),h=i(94901),l=i(2293),c=i(93438),u=i(36840),d=r&&r.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!r&&o(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=l(this,a("Promise")),i=h(t);return this.then(i?function(i){return c(e,t()).then(function(){return i})}:t,i?function(i){return c(e,t()).then(function(){throw i})}:t)}}),!s&&h(r)){var f=a("Promise").prototype.finally;d.finally!==f&&u(d,"finally",f,{unsafe:!0})}},3362(t,e,i){"use strict";i(10436),i(16499),i(82003),i(7743),i(51481),i(40280)},7743(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(79306),o=i(36043),a=i(1103),h=i(72652);n({target:"Promise",stat:!0,forced:i(90537)},{race:function(t){var e=this,i=o.f(e),n=i.reject,l=a(function(){var o=r(e.resolve);h(t,function(t){s(o,e,t).then(i.resolve,n)})});return l.error&&n(l.value),i.promise}})},51481(t,e,i){"use strict";var n=i(46518),s=i(36043);n({target:"Promise",stat:!0,forced:i(10916).CONSTRUCTOR},{reject:function(t){var e=s.f(this);return(0,e.reject)(t),e.promise}})},40280(t,e,i){"use strict";var n=i(46518),s=i(97751),r=i(96395),o=i(80550),a=i(10916).CONSTRUCTOR,h=i(93438),l=s("Promise"),c=r&&!a;n({target:"Promise",stat:!0,forced:r||a},{resolve:function(t){return h(c&&this===l?o:this,t)}})},60825(t,e,i){"use strict";var n=i(46518),s=i(97751),r=i(18745),o=i(30566),a=i(35548),h=i(28551),l=i(20034),c=i(2360),u=i(79039),d=s("Reflect","construct"),f=Object.prototype,p=[].push,g=u(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!u(function(){d(function(){})}),b=g||m;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){a(t),h(e);var i=arguments.length<3?t:a(arguments[2]);if(m&&!g)return d(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return r(p,n,e),new(r(o,t,n))}var s=i.prototype,u=c(l(s)?s:f),b=r(t,u,e);return l(b)?b:u}})},40888(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(20034),o=i(28551),a=i(16575),h=i(77347),l=i(42787);n({target:"Reflect",stat:!0},{get:function t(e,i){var n,c,u=arguments.length<3?e:arguments[2];return o(e)===u?e[i]:(n=h.f(e,i))?a(n)?n.value:void 0===n.get?void 0:s(n.get,u):r(c=l(e))?t(c,i,u):void 0}})},15472(t,e,i){"use strict";var n=i(46518),s=i(44576),r=i(10687);n({global:!0},{Reflect:{}}),r(s.Reflect,"Reflect",!0)},38781(t,e,i){"use strict";var n=i(10350).PROPER,s=i(36840),r=i(28551),o=i(655),a=i(79039),h=i(61034),l="toString",c=RegExp.prototype,u=c[l],d=a(function(){return"/a/b"!==u.call({source:"a",flags:"b"})}),f=n&&u.name!==l;(d||f)&&s(c,l,function(){var t=r(this);return"/"+o(t.source)+"/"+o(h(t))},{unsafe:!0})},99449(t,e,i){"use strict";var n,s=i(46518),r=i(27476),o=i(77347).f,a=i(18014),h=i(655),l=i(60511),c=i(67750),u=i(41436),d=i(96395),f=r("".slice),p=Math.min,g=u("endsWith");s({target:"String",proto:!0,forced:!!(d||g||(n=o(String.prototype,"endsWith"),!n||n.writable))&&!g},{endsWith:function(t){var e=h(c(this));l(t);var i=arguments.length>1?arguments[1]:void 0,n=e.length,s=void 0===i?n:p(a(i),n),r=h(t);return f(e,s-r.length,s)===r}})},27337(t,e,i){"use strict";var n=i(46518),s=i(79504),r=i(35610),o=RangeError,a=String.fromCharCode,h=String.fromCodePoint,l=s([].join);n({target:"String",stat:!0,arity:1,forced:!!h&&1!==h.length},{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,s=0;n>s;){if(e=+arguments[s++],r(e,1114111)!==e)throw new o(e+" is not a valid code point");i[s]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return l(i,"")}})},21699(t,e,i){"use strict";var n=i(46518),s=i(79504),r=i(60511),o=i(67750),a=i(655),h=i(41436),l=s("".indexOf);n({target:"String",proto:!0,forced:!h("includes")},{includes:function(t){return!!~l(a(o(this)),a(r(t)),arguments.length>1?arguments[1]:void 0)}})},68156(t,e,i){"use strict";var n=i(46518),s=i(60533).start;n({target:"String",proto:!0,forced:i(83063)},{padStart:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},79978(t,e,i){"use strict";var n=i(46518),s=i(69565),r=i(79504),o=i(67750),a=i(94901),h=i(20034),l=i(60788),c=i(655),u=i(55966),d=i(61034),f=i(2478),p=i(78227),g=i(96395),m=p("replace"),b=TypeError,x=r("".indexOf),v=r("".replace),y=r("".slice),_=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,r,p,w,M,k,S,P,E,O=o(this),R=0,D="";if(h(t)){if((i=l(t))&&(n=c(o(d(t))),!~x(n,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(r=u(t,m))return s(r,t,O,e);if(g&&i)return v(c(O),t,e)}for(p=c(O),w=c(t),(M=a(e))||(e=c(e)),k=w.length,S=_(1,k),P=x(p,w);-1!==P;)E=M?c(e(w,P,p)):f(w,p,P,[],void 0,e),D+=y(p,R,P)+E,R=P+k,P=P+S>p.length?-1:x(p,w,P+S);return R<p.length&&(D+=y(p,R)),D}})},25440(t,e,i){"use strict";var n=i(18745),s=i(69565),r=i(79504),o=i(89228),a=i(79039),h=i(28551),l=i(94901),c=i(20034),u=i(91291),d=i(18014),f=i(655),p=i(67750),g=i(57829),m=i(55966),b=i(2478),x=i(56682),v=i(78227)("replace"),y=Math.max,_=Math.min,w=r([].concat),M=r([].push),k=r("".indexOf),S=r("".slice),P=function(t){return void 0===t?t:String(t)},E="$0"==="a".replace(/./,"$0"),O=!!/./[v]&&""===/./[v]("a","$0");o("replace",function(t,e,i){var r=O?"$":"$0";return[function(t,i){var n=p(this),r=c(t)?m(t,v):void 0;return r?s(r,t,n,i):s(e,f(n),t,i)},function(t,s){var o=h(this),a=f(t);if("string"==typeof s&&-1===k(s,r)&&-1===k(s,"$<")){var c=i(e,o,a,s);if(c.done)return c.value}var p=l(s);p||(s=f(s));var m,v=o.global;v&&(m=o.unicode,o.lastIndex=0);for(var E,O=[];null!==(E=x(o,a))&&(M(O,E),v);){""===f(E[0])&&(o.lastIndex=g(a,d(o.lastIndex),m))}for(var R="",D=0,A=0;A<O.length;A++){for(var C,T=f((E=O[A])[0]),L=y(_(u(E.index),a.length),0),I=[],F=1;F<E.length;F++)M(I,P(E[F]));var z=E.groups;if(p){var N=w([T],I,L,a);void 0!==z&&M(N,z),C=f(n(s,void 0,N))}else C=b(T,a,L,I,z,s);L>=D&&(R+=S(a,D,L)+C,D=L+T.length)}return R+S(a,D)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!E||O)},5746(t,e,i){"use strict";var n=i(69565),s=i(89228),r=i(28551),o=i(20034),a=i(67750),h=i(3470),l=i(655),c=i(55966),u=i(56682);s("search",function(t,e,i){return[function(e){var i=a(this),s=o(e)?c(e,t):void 0;return s?n(s,e,i):new RegExp(e)[t](l(i))},function(t){var n=r(this),s=l(t),o=i(e,n,s);if(o.done)return o.value;var a=n.lastIndex;h(a,0)||(n.lastIndex=0);var c=u(n,s);return h(n.lastIndex,a)||(n.lastIndex=a),null===c?-1:c.index}]})},11392(t,e,i){"use strict";var n,s=i(46518),r=i(27476),o=i(77347).f,a=i(18014),h=i(655),l=i(60511),c=i(67750),u=i(41436),d=i(96395),f=r("".slice),p=Math.min,g=u("startsWith");s({target:"String",proto:!0,forced:!!(d||g||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!g},{startsWith:function(t){var e=h(c(this));l(t);var i=a(p(arguments.length>1?arguments[1]:void 0,e.length)),n=h(t);return f(e,i,i+n.length)===n}})},50375(t,e,i){"use strict";var n=i(46518),s=i(79504),r=i(67750),o=i(91291),a=i(655),h=s("".slice),l=Math.max,c=Math.min;n({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var i,n,s=a(r(this)),u=s.length,d=o(t);return d===1/0&&(d=0),d<0&&(d=l(u+d,0)),(i=void 0===e?u:o(e))<=0||i===1/0||d>=(n=c(d+i,u))?"":h(s,d,n)}})},42762(t,e,i){"use strict";var n=i(46518),s=i(43802).trim;n({target:"String",proto:!0,forced:i(60706)("trim")},{trim:function(){return s(this)}})},45700(t,e,i){"use strict";var n=i(70511),s=i(58242);n("toPrimitive"),s()},3949(t,e,i){"use strict";i(7588)},81454(t,e,i){"use strict";i(61701)},2945(t,e,i){"use strict";var n=i(46518),s=i(44576),r=i(97751),o=i(79504),a=i(69565),h=i(79039),l=i(655),c=i(22812),u=i(92804).c2i,d=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,g=r("atob"),m=String.fromCharCode,b=o("".charAt),x=o("".replace),v=o(d.exec),y=!!g&&!h(function(){return"hi"!==g("aGk=")}),_=y&&h(function(){return""!==g(" ")}),w=y&&!h(function(){g("a")}),M=y&&!h(function(){g()}),k=y&&1!==g.length;n({global:!0,bind:!0,enumerable:!0,forced:!y||_||w||M||k},{atob:function(t){if(c(arguments.length,1),y&&!_&&!w)return a(g,s,t);var e,i,n,o=x(l(t),f,""),h="",M=0,k=0;if(o.length%4==0&&(o=x(o,p,"")),(e=o.length)%4==1||v(d,o))throw new(r("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;M<e;)i=b(o,M++),n=k%4?64*n+u[i]:u[i],k++%4&&(h+=m(255&n>>(-2*k&6)));return h}})},42207(t,e,i){"use strict";var n=i(46518),s=i(44576),r=i(97751),o=i(79504),a=i(69565),h=i(79039),l=i(655),c=i(22812),u=i(92804).i2c,d=r("btoa"),f=o("".charAt),p=o("".charCodeAt),g=!!d&&!h(function(){return"aGk="!==d("hi")}),m=g&&!h(function(){d()}),b=g&&h(function(){return"bnVsbA=="!==d(null)}),x=g&&1!==d.length;n({global:!0,bind:!0,enumerable:!0,forced:!g||m||b||x},{btoa:function(t){if(c(arguments.length,1),g)return a(d,s,l(t));for(var e,i,n=l(t),o="",h=0,m=u;f(n,h)||(m="=",h%1);){if((i=p(n,h+=3/4))>255)throw new(r("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=f(m,63&(e=e<<8|i)>>8-h%1*8)}return o}})},23500(t,e,i){"use strict";var n=i(44576),s=i(67400),r=i(79296),o=i(90235),a=i(66699),h=function(t){if(t&&t.forEach!==o)try{a(t,"forEach",o)}catch(e){t.forEach=o}};for(var l in s)s[l]&&h(n[l]&&n[l].prototype);h(r)},55815(t,e,i){"use strict";var n=i(46518),s=i(97751),r=i(89429),o=i(79039),a=i(2360),h=i(6980),l=i(24913).f,c=i(36840),u=i(62106),d=i(39297),f=i(90679),p=i(28551),g=i(77536),m=i(32603),b=i(55002),x=i(16193),v=i(91181),y=i(43724),_=i(96395),w="DOMException",M="DATA_CLONE_ERR",k=s("Error"),S=s(w)||function(){try{(new(s("MessageChannel")||r("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===M&&25===t.code)return t.constructor}}(),P=S&&S.prototype,E=k.prototype,O=v.set,R=v.getterFor(w),D="stack"in new k(w),A=function(t){return d(b,t)&&b[t].m?b[t].c:0},C=function(){f(this,T);var t=arguments.length,e=m(t<1?void 0:arguments[0]),i=m(t<2?void 0:arguments[1],"Error"),n=A(i);if(O(this,{type:w,name:i,message:e,code:n}),y||(this.name=i,this.message=e,this.code=n),D){var s=new k(e);s.name=w,l(this,"stack",h(1,x(s.stack,1)))}},T=C.prototype=a(E),L=function(t){return{enumerable:!0,configurable:!0,get:t}},I=function(t){return L(function(){return R(this)[t]})};y&&(u(T,"code",I("code")),u(T,"message",I("message")),u(T,"name",I("name"))),l(T,"constructor",h(1,C));var F=o(function(){return!(new S instanceof k)}),z=F||o(function(){return E.toString!==g||"2: 1"!==String(new S(1,2))}),N=F||o(function(){return 25!==new S(1,"DataCloneError").code}),j=F||25!==S[M]||25!==P[M],B=_?z||N||j:F;n({global:!0,constructor:!0,forced:B},{DOMException:B?C:S});var V=s(w),W=V.prototype;for(var H in z&&(_||S===V)&&c(W,"toString",g),N&&y&&S===V&&u(W,"code",L(function(){return A(p(this).name)})),b)if(d(b,H)){var U=b[H],$=U.s,Y=h(6,U.c);d(V,$)||l(V,$,Y),d(W,$)||l(W,$,Y)}},64979(t,e,i){"use strict";var n=i(46518),s=i(44576),r=i(97751),o=i(6980),a=i(24913).f,h=i(39297),l=i(90679),c=i(23167),u=i(32603),d=i(55002),f=i(16193),p=i(43724),g=i(96395),m="DOMException",b=r("Error"),x=r(m),v=function(){l(this,y);var t=arguments.length,e=u(t<1?void 0:arguments[0]),i=u(t<2?void 0:arguments[1],"Error"),n=new x(e,i),s=new b(e);return s.name=m,a(n,"stack",o(1,f(s.stack,1))),c(n,this,v),n},y=v.prototype=x.prototype,_="stack"in new b(m),w="stack"in new x(1,2),M=x&&p&&Object.getOwnPropertyDescriptor(s,m),k=!(!M||M.writable&&M.configurable),S=_&&!k&&!w;n({global:!0,constructor:!0,forced:g||S},{DOMException:S?v:x});var P=r(m),E=P.prototype;if(E.constructor!==P)for(var O in g||a(E,"constructor",o(1,P)),d)if(h(d,O)){var R=d[O],D=R.s;h(P,D)||a(P,D,o(6,R.c))}},79739(t,e,i){"use strict";var n=i(97751),s="DOMException";i(10687)(n(s),s)},98406(t,e,i){"use strict";i(23792),i(27337);var n=i(46518),s=i(44576),r=i(93389),o=i(97751),a=i(69565),h=i(79504),l=i(43724),c=i(67416),u=i(36840),d=i(62106),f=i(56279),p=i(10687),g=i(33994),m=i(91181),b=i(90679),x=i(94901),v=i(39297),y=i(76080),_=i(36955),w=i(28551),M=i(20034),k=i(655),S=i(2360),P=i(6980),E=i(70081),O=i(50851),R=i(62529),D=i(22812),A=i(78227),C=i(74488),T=A("iterator"),L="URLSearchParams",I=L+"Iterator",F=m.set,z=m.getterFor(L),N=m.getterFor(I),j=r("fetch"),B=r("Request"),V=r("Headers"),W=B&&B.prototype,H=V&&V.prototype,U=s.TypeError,$=s.encodeURIComponent,Y=String.fromCharCode,q=o("String","fromCodePoint"),X=parseInt,G=h("".charAt),K=h([].join),J=h([].push),Q=h("".replace),Z=h([].shift),tt=h([].splice),et=h("".split),it=h("".slice),nt=h(/./.exec),st=/\+/g,rt=/^[0-9a-f]+$/i,ot=function(t,e){var i=it(t,e,e+2);return nt(rt,i)?X(i,16):NaN},at=function(t){for(var e=0,i=128;i>0&&0!==(t&i);i>>=1)e++;return e},ht=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},lt=function(t){for(var e=(t=Q(t,st," ")).length,i="",n=0;n<e;){var s=G(t,n);if("%"===s){if("%"===G(t,n+1)||n+3>e){i+="%",n++;continue}var r=ot(t,n+1);if(r!=r){i+=s,n++;continue}n+=2;var o=at(r);if(0===o)s=Y(r);else{if(1===o||o>4){i+="�",n++;continue}for(var a=[r],h=1;h<o&&!(++n+3>e||"%"!==G(t,n));){var l=ot(t,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;J(a,l),n+=2,h++}if(a.length!==o){i+="�";continue}var c=ht(a);null===c?i+="�":s=q(c)}}i+=s,n++}return i}
vendor: 6,000 bytes, line 2
2,ct=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dt=function(t){return ut[t]},ft=function(t){return Q($(t),ct,dt)},pt=g(function(t,e){F(this,{type:I,target:z(t).entries,index:0,kind:e})},L,function(){var t=N(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,R(void 0,!0);var n=e[i];switch(t.kind){case"keys":return R(n.key,!1);case"values":return R(n.value,!1)}return R([n.key,n.value],!1)},!0),gt=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?it(t,1):t:k(t)))};gt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,s,r,o,h,l=this.entries,c=O(t);if(c)for(i=(e=E(t,c)).next;!(n=a(i,e)).done;){if(r=(s=E(w(n.value))).next,(o=a(r,s)).done||(h=a(r,s)).done||!a(r,s).done)throw new U("Expected sequence with length 2");J(l,{key:k(o.value),value:k(h.value)})}else for(var u in t)v(t,u)&&J(l,{key:u,value:k(t[u])})},parseQuery:function(t){if(t)for(var e,i,n=this.entries,s=et(t,"&"),r=0;r<s.length;)(e=s[r++]).length&&(i=et(e,"="),J(n,{key:lt(Z(i)),value:lt(K(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],J(i,ft(t.key)+"="+ft(t.value));return K(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){b(this,bt);var t=F(this,new gt(arguments.length>0?arguments[0]:void 0));l||(this.size=t.entries.length)},bt=mt.prototype;if(f(bt,{append:function(t,e){var i=z(this);D(arguments.length,2),J(i.entries,{key:k(t),value:k(e)}),l||this.length++,i.updateURL()},delete:function(t){for(var e=z(this),i=D(arguments.length,1),n=e.entries,s=k(t),r=i<2?void 0:arguments[1],o=void 0===r?r:k(r),a=0;a<n.length;){var h=n[a];if(h.key!==s||void 0!==o&&h.value!==o)a++;else if(tt(n,a,1),void 0!==o)break}l||(this.size=n.length),e.updateURL()},get:function(t){var e=z(this).entries;D(arguments.length,1);for(var i=k(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){var e=z(this).entries;D(arguments.length,1);for(var i=k(t),n=[],s=0;s<e.length;s++)e[s].key===i&&J(n,e[s].value);return n},has:function(t){for(var e=z(this).entries,i=D(arguments.length,1),n=k(t),s=i<2?void 0:arguments[1],r=void 0===s?s:k(s),o=0;o<e.length;){var a=e[o++];if(a.key===n&&(void 0===r||a.value===r))return!0}return!1},set:function(t,e){var i=z(this);D(arguments.length,1);for(var n,s=i.entries,r=!1,o=k(t),a=k(e),h=0;h<s.length;h++)(n=s[h]).key===o&&(r?tt(s,h--,1):(r=!0,n.value=a));r||J(s,{key:o,value:a}),l||(this.size=s.length),i.updateURL()},sort:function(){var t=z(this);C(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,i=z(this).entries,n=y(t,arguments.length>1?arguments[1]:void 0),s=0;s<i.length;)n((e=i[s++]).value,e.key,this)},keys:function(){return new pt(this,"keys")},values:function(){return new pt(this,"values")},entries:function(){return new pt(this,"entries")}},{enumerable:!0}),u(bt,T,bt.entries,{name:"entries"}),u(bt,"toString",function(){return z(this).serialize()},{enumerable:!0}),l&&d(bt,"size",{get:function(){return z(this).entries.length},configurable:!0,enumerable:!0}),p(mt,L),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:mt}),!c&&x(V)){var xt=h(H.has),vt=h(H.set),yt=function(t){if(M(t)){var e,i=t.body;if(_(i)===L)return e=t.headers?new V(t.headers):new V,xt(e,"content-type")||vt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(t,{body:P(0,k(i)),headers:P(0,e)})}return t};if(x(j)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return j(t,arguments.length>1?yt(arguments[1]):{})}}),x(B)){var _t=function(t){return b(this,W),new B(t,arguments.length>1?yt(arguments[1]):{})};W.constructor=_t,_t.prototype=W,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:_t})}}t.exports={URLSearchParams:mt,getState:z}},48408(t,e,i){"use strict";i(98406)},45806(t,e,i){"use strict";i(47764);var n,s=i(46518),r=i(43724),o=i(67416),a=i(44576),h=i(76080),l=i(79504),c=i(36840),u=i(62106),d=i(90679),f=i(39297),p=i(44213),g=i(97916),m=i(67680),b=i(68183).codeAt,x=i(3717),v=i(655),y=i(10687),_=i(22812),w=i(98406),M=i(91181),k=M.set,S=M.getterFor("URL"),P=w.URLSearchParams,E=w.getState,O=a.URL,R=a.TypeError,D=a.parseInt,A=Math.floor,C=Math.pow,T=l("".charAt),L=l(/./.exec),I=l([].join),F=l(1..toString),z=l([].pop),N=l([].push),j=l("".replace),B=l([].shift),V=l("".split),W=l("".slice),H=l("".toLowerCase),U=l([].unshift),$="Invalid scheme",Y="Invalid host",q="Invalid port",X=/[a-z]/i,G=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+/,st=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,rt=/[\t\n\r]/g,ot=function(t){var e,i,n,s;if("number"==typeof t){for(e=[],i=0;i<4;i++)U(e,t%256),t=A(t/256);return I(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,s=0,r=0;r<8;r++)0!==t[r]?(s>i&&(e=n,i=s),n=null,s=0):(null===n&&(n=r),++s);return s>i?n:e}(t),i=0;i<8;i++)s&&0===t[i]||(s&&(s=!1),n===i?(e+=i?":":"::",s=!0):(e+=F(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},at={},ht=p({},at,{" ":1,'"':1,"<":1,">":1,"`":1}),lt=p({},ht,{"#":1,"?":1,"{":1,"}":1}),ct=p({},lt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ut=function(t,e){var i=b(t,0);return i>32&&i<127&&!f(e,t)?t:encodeURIComponent(t)},dt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ft=function(t,e){var i;return 2===t.length&&L(X,T(t,0))&&(":"===(i=T(t,1))||!e&&"|"===i)},pt=function(t){var e;return t.length>1&&ft(W(t,0,2))&&(2===t.length||"/"===(e=T(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===H(t)},mt=function(t){return".."===(t=H(t))||"%2e."===t||".%2e"===t||"%2e%2e"===t},bt={},xt={},vt={},yt={},_t={},wt={},Mt={},kt={},St={},Pt={},Et={},Ot={},Rt={},Dt={},At={},Ct={},Tt={},Lt={},It={},Ft={},zt={}
vendor: 9,519 bytes, line 2
2,Nt=function(t,e,i){var n,s,r,o=v(t);if(e){if(s=this.parse(o))throw new R(s);this.searchParams=null}else{if(void 0!==i&&(n=new Nt(i,!0)),s=this.parse(o,null,n))throw new R(s);(r=E(new P)).bindURL(this),this.searchParams=r}};Nt.prototype={type:"URL",parse:function(t,e,i){var s,r,o,a,h=this,l=e||bt,c=0,u="",d=!1,p=!1,b=!1;for(t=v(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=j(t,nt,""),t=j(t,st,"$1")),t=j(t,rt,""),s=g(t);c<=s.length;){switch(r=s[c],l){case bt:if(!r||!L(X,r)){if(e)return $;l=vt;continue}u+=H(r),l=xt;break;case xt:if(r&&(L(G,r)||"+"===r||"-"===r||"."===r))u+=H(r);else{if(":"!==r){if(e)return $;u="",l=vt,c=0;continue}if(e&&(h.isSpecial()!==f(dt,u)||"file"===u&&(h.includesCredentials()||null!==h.port)||"file"===h.scheme&&!h.host))return;if(h.scheme=u,e)return void(h.isSpecial()&&dt[h.scheme]===h.port&&(h.port=null));u="","file"===h.scheme?l=Dt:h.isSpecial()&&i&&i.scheme===h.scheme?l=yt:h.isSpecial()?l=kt:"/"===s[c+1]?(l=_t,c++):(h.cannotBeABaseURL=!0,N(h.path,""),l=It)}break;case vt:if(!i||i.cannotBeABaseURL&&"#"!==r)return $;if(i.cannotBeABaseURL&&"#"===r){h.scheme=i.scheme,h.path=m(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,l=zt;break}l="file"===i.scheme?Dt:wt;continue;case yt:if("/"!==r||"/"!==s[c+1]){l=wt;continue}l=St,c++;break;case _t:if("/"===r){l=Pt;break}l=Lt;continue;case wt:if(h.scheme=i.scheme,r===n)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query;else if("/"===r||"\\"===r&&h.isSpecial())l=Mt;else if("?"===r)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query="",l=Ft;else{if("#"!==r){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.path.length--,l=Lt;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query,h.fragment="",l=zt}break;case Mt:if(!h.isSpecial()||"/"!==r&&"\\"!==r){if("/"!==r){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,l=Lt;continue}l=Pt}else l=St;break;case kt:if(l=St,"/"!==r||"/"!==T(u,c+1))continue;c++;break;case St:if("/"!==r&&"\\"!==r){l=Pt;continue}break;case Pt:if("@"===r){d&&(u="%40"+u),d=!0,o=g(u);for(var x=0;x<o.length;x++){var y=o[x];if(":"!==y||b){var _=ut(y,ct);b?h.password+=_:h.username+=_}else b=!0}u=""}else if(r===n||"/"===r||"?"===r||"#"===r||"\\"===r&&h.isSpecial()){if(d&&""===u)return"Invalid authority";c-=g(u).length+1,u="",l=Et}else u+=r;break;case Et:case Ot:if(e&&"file"===h.scheme){l=Ct;continue}if(":"!==r||p){if(r===n||"/"===r||"?"===r||"#"===r||"\\"===r&&h.isSpecial()){if(h.isSpecial()&&""===u)return Y;if(e&&""===u&&(h.includesCredentials()||null!==h.port))return;if(a=h.parseHost(u))return a;if(u="",l=Tt,e)return;continue}"["===r?p=!0:"]"===r&&(p=!1),u+=r}else{if(""===u)return Y;if(a=h.parseHost(u))return a;if(u="",l=Rt,e===Ot)return}break;case Rt:if(!L(K,r)){if(r===n||"/"===r||"?"===r||"#"===r||"\\"===r&&h.isSpecial()||e){if(""!==u){var w=D(u,10);if(w>65535)return q;h.port=h.isSpecial()&&w===dt[h.scheme]?null:w,u=""}if(e)return;l=Tt;continue}return q}u+=r;break;case Dt:if(h.scheme="file","/"===r||"\\"===r)l=At;else{if(!i||"file"!==i.scheme){l=Lt;continue}switch(r){case n:h.host=i.host,h.path=m(i.path),h.query=i.query;break;case"?":h.host=i.host,h.path=m(i.path),h.query="",l=Ft;break;case"#":h.host=i.host,h.path=m(i.path),h.query=i.query,h.fragment="",l=zt;break;default:pt(I(m(s,c),""))||(h.host=i.host,h.path=m(i.path),h.shortenPath()),l=Lt;continue}}break;case At:if("/"===r||"\\"===r){l=Ct;break}i&&"file"===i.scheme&&!pt(I(m(s,c),""))&&(ft(i.path[0],!0)?N(h.path,i.path[0]):h.host=i.host),l=Lt;continue;case Ct:if(r===n||"/"===r||"\\"===r||"?"===r||"#"===r){if(!e&&ft(u))l=Lt;else if(""===u){if(h.host="",e)return;l=Tt}else{if(a=h.parseHost(u))return a;if("localhost"===h.host&&(h.host=""),e)return;u="",l=Tt}continue}u+=r;break;case Tt:if(h.isSpecial()){if(l=Lt,"/"!==r&&"\\"!==r)continue}else if(e||"?"!==r)if(e||"#"!==r){if(r!==n&&(l=Lt,"/"!==r))continue}else h.fragment="",l=zt;else h.query="",l=Ft;break;case Lt:if(r===n||"/"===r||"\\"===r&&h.isSpecial()||!e&&("?"===r||"#"===r)){if(mt(u)?(h.shortenPath(),"/"===r||"\\"===r&&h.isSpecial()||N(h.path,"")):gt(u)?"/"===r||"\\"===r&&h.isSpecial()||N(h.path,""):("file"===h.scheme&&!h.path.length&&ft(u)&&(h.host&&(h.host=""),u=T(u,0)+":"),N(h.path,u)),u="","file"===h.scheme&&(r===n||"?"===r||"#"===r))for(;h.path.length>1&&""===h.path[0];)B(h.path);"?"===r?(h.query="",l=Ft):"#"===r&&(h.fragment="",l=zt)}else u+=ut(r,lt);break;case It:"?"===r?(h.query="",l=Ft):"#"===r?(h.fragment="",l=zt):r!==n&&(h.path[0]+=ut(r,at));break;case Ft:e||"#"!==r?r!==n&&("'"===r&&h.isSpecial()?h.query+="%27":h.query+="#"===r?"%23":ut(r,at)):(h.fragment="",l=zt);break;case zt:r!==n&&(h.fragment+=ut(r,ht))}c++}},parseHost:function(t){var e,i,n;if("["===T(t,0)){if("]"!==T(t,t.length-1))return Y;if(e=function(t){var e,i,n,s,r,o,a,h=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,d=function(){return T(t,u)};if(":"===d()){if(":"!==T(t,1))return;u+=2,c=++l}for(;d();){if(8===l)return;if(":"!==d()){for(e=i=0;i<4&&L(tt,d());)e=16*e+D(d(),16),u++,i++;if("."===d()){if(0===i)return;if(u-=i,l>6)return;for(n=0;d();){if(s=null,n>0){if(!("."===d()&&n<4))return;u++}if(!L(K,d()))return;for(;L(K,d());){if(r=D(d(),10),null===s)s=r;else{if(0===s)return;s=10*s+r}if(s>255)return;u++}h[l]=256*h[l]+s,2!==++n&&4!==n||l++}if(4!==n)return;break}if(":"===d()){if(u++,!d())return}else if(d())return;h[l++]=e}else{if(null!==c)return;u++,c=++l}}if(null!==c)for(o=l-c,l=7;0!==l&&o>0;)a=h[l],h[l--]=h[c+o-1],h[c+--o]=a;else if(8!==l)return;return h}(W(t,1,-1)),!e)return Y;this.host=e}else if(this.isSpecial()){if(t=x(t),L(et,t))return Y;if(e=function(t){var e,i,n,s,r,o,a,h=V(t,".");if(h.length&&""===h[h.length-1]&&h.length--,(e=h.length)>4)return t;for(i=[],n=0;n<e;n++){if(""===(s=h[n]))return t;if(r=10,s.length>1&&"0"===T(s,0)&&(r=L(J,s)?16:8,s=W(s,8===r?1:2)),""===s)o=0;else{if(!L(10===r?Z:8===r?Q:tt,s))return t;o=D(s,r)}N(i,o)}for(n=0;n<e;n++)if(o=i[n],n===e-1){if(o>=C(256,5-e))return null}else if(o>255)return null;for(a=z(i),n=0;n<i.length;n++)a+=i[n]*C(256,3-n);return a}(t),null===e)return Y;this.host=e}else{if(L(it,t))return Y;for(e="",i=g(t),n=0;n<i.length;n++)e+=ut(i[n],at);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(dt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&ft(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,n=t.password,s=t.host,r=t.port,o=t.path,a=t.query,h=t.fragment,l=e+":";return null!==s?(l+="//",t.includesCredentials()&&(l+=i+(n?":"+n:"")+"@"),l+=ot(s),null!==r&&(l+=":"+r)):"file"===e&&(l+="//"),l+=t.cannotBeABaseURL?o[0]:o.length?"/"+I(o,"/"):"",null!==a&&(l+="?"+a),null!==h&&(l+="#"+h),l},setHref:function(t){var e=this.parse(t);if(e)throw new R(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new jt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(v(t)+":",bt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(v(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ut(e[i],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(v(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ut(e[i],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getPort:function(){var t=this.port;return null===t?"":v(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=v(t))?this.port=null:this.parse(t,Rt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+I(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Tt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=v(t))?this.query=null:("?"===T(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Ft)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=v(t))?("#"===T(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,zt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var jt=function(t){var e=d(this,Bt),i=_(arguments.length,1)>1?arguments[1]:void 0,n=k(e,new Nt(t,!1,i));r||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Bt=jt.prototype,Vt=function(t,e){return{get:function(){return S(this)[t]()},set:e&&function(t){return S(this)[e](t)},configurable:!0,enumerable:!0}};
2if(r&&(u(Bt,"href",Vt("serialize","setHref")),u(Bt,"origin",Vt("getOrigin")),u(Bt,"protocol",Vt("getProtocol","setProtocol")),u(Bt,"username",Vt("getUsername","setUsername")),u(Bt,"password",Vt("getPassword","setPassword")),u(Bt,"host",Vt("getHost","setHost")),u(Bt,"hostname",Vt("getHostname","setHostname")),u(Bt,"port",Vt("getPort","setPort")),u(Bt,"pathname",Vt("getPathname","setPathname")),u(Bt,"search",Vt("getSearch","setSearch")),u(Bt,"searchParams",Vt("getSearchParams")),u(Bt,"hash",Vt("getHash","setHash"))),c(Bt,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),c(Bt,"toString",function(){return S(this).serialize()},{enumerable:!0}),O){var Wt=O.createObjectURL,Ht=O.revokeObjectURL;Wt&&c(jt,"createObjectURL",h(Wt,O)),Ht&&c(jt,"revokeObjectURL",h(Ht,O))}y(jt,"URL"),s({global:!0,constructor:!0,forced:!o,sham:!r},{URL:jt})},3296(t,e,i){"use strict";i(45806)},27208(t,e,i){"use strict";var n=i(46518),s=i(69565);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return s(URL.prototype.toString,this)}})},33050(t,e,i){"use strict";function n(){}i.d(e,{Bs:()=>Ts,t1:()=>Ss,ju:()=>Xi,m_:()=>Nr,$L:()=>go});const s=function(){let t=0;return function(){return t++}}();function r(t){return null==t}function o(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function a(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const h=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function l(t,e){return h(t)?t:e}function c(t,e){return void 0===t?e:t}const u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function f(t,e,i,n){let s,r,h;if(o(t))if(r=t.length,n)for(s=r-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<r;s++)e.call(i,t[s],s);else if(a(t))for(h=Object.keys(t),r=h.length,s=0;s<r;s++)e.call(i,t[h[s]],h[s])}function p(t,e){let i,n,s,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],r=e[i],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function g(t){if(o(t))return t.map(g);if(a(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=g(t[i[s]]);return e}return t}function m(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function b(t,e,i,n){if(!m(t))return;const s=e[t],r=i[t];a(s)&&a(r)?x(s,r,n):e[t]=g(r)}function x(t,e,i){const n=o(e)?e:[e],s=n.length;if(!a(t))return t;const r=(i=i||{}).merger||b;for(let o=0;o<s;++o){if(!a(e=n[o]))continue;const s=Object.keys(e);for(let n=0,o=s.length;n<o;++n)r(s[n],t,e,i)}return t}function v(t,e){return x(t,e,{merger:y})}function y(t,e,i){if(!m(t))return;const n=e[t],s=i[t];a(n)&&a(s)?v(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=g(s))}const _={"":t=>t,x:t=>t.x,y:t=>t.y};function w(t,e){const i=_[e]||(_[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}const k=t=>void 0!==t,S=t=>"function"==typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const E=Math.PI,O=2*E,R=O+E,D=Number.POSITIVE_INFINITY,A=E/180,C=E/2,T=E/4,L=2*E/3,I=Math.log10,F=Math.sign;function z(t){const e=Math.round(t);t=j(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(I(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function j(t,e,i){return Math.abs(t-e)<i}function B(t,e,i){let n,s,r;for(n=0,s=t.length;n<s;n++)r=t[n][i],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function V(t){return t*(E/180)}function W(t){return t*(180/E)}function H(t){if(!h(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function U(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let r=Math.atan2(n,i);return r<-.5*E&&(r+=O),{angle:r,distance:s}}function $(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Y(t,e){return(t-e+R)%O-E}function q(t){return(t%O+O)%O}function X(t,e,i,n){const s=q(t),r=q(e),o=q(i),a=q(r-s),h=q(o-s),l=q(s-r),c=q(s-o);return s===r||s===o||n&&r===o||a>h&&l<c}function G(t,e,i){return Math.max(e,Math.min(i,t))}function K(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function J(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,r=0;for(;s-r>1;)n=r+s>>1,i(n)?r=n:s=n;return{lo:r,hi:s}}const Q=(t,e,i,n)=>J(t,i,n?n=>t[n][e]<=i:n=>t[n][e]<i),Z=(t,e,i)=>J(t,i,n=>t[n][e]>=i);const tt=["push","pop","shift","splice","unshift"];function et(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>
vendor: 1,889 bytes, line 2
20||(tt.forEach(e=>{delete t[e]}),delete t._chartjs)}function it(t){const e=new Set;let i,n;for(i=0,n=t.length;i<n;++i)e.add(t[i]);return e.size===n?t:Array.from(e)}const nt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function st(t,e,i){const n=i||(t=>Array.prototype.slice.call(t));let s=!1,r=[];return function(...i){r=n(i),s||(s=!0,nt.call(window,()=>{s=!1,t.apply(e,r)}))}}const rt=t=>"start"===t?"left":"end"===t?"right":"center",ot=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function at(t,e,i){const n=e.length;let s=0,r=n;if(t._sorted){const{iScale:o,_parsed:a}=t,h=o.axis,{min:l,max:c,minDefined:u,maxDefined:d}=o.getUserBounds();u&&(s=G(Math.min(Q(a,o.axis,l).lo,i?n:Q(e,h,o.getPixelForValue(l)).lo),0,n-1)),r=d?G(Math.max(Q(a,o.axis,c,!0).hi+1,i?0:Q(e,h,o.getPixelForValue(c),!0).hi+1),s,n)-s:n-s}return{start:s,count:r}}function ht(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const r=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),r}const lt=t=>0===t||1===t,ct=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*O/i),ut=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*O/i)+1,dt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*C),easeOutSine:t=>Math.sin(t*C),easeInOutSine:t=>-.5*(Math.cos(E*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>
vendor: 5,696 bytes, line 2
2lt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>lt(t)?t:ct(t,.075,.3),easeOutElastic:t=>lt(t)?t:ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return lt(t)?t:t<.5?.5*ct(2*t,e,.45):.5+.5*ut(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-dt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*dt.easeInBounce(2*t):.5*dt.easeOutBounce(2*t-1)+.5};function ft(t){return t+.5|0}const pt=(t,e,i)=>Math.max(Math.min(t,i),e);function gt(t){return pt(ft(2.55*t),0,255)}function mt(t){return pt(ft(255*t),0,255)}function bt(t){return pt(ft(t/2.55)/100,0,1)}function xt(t){return pt(ft(100*t),0,100)}const vt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},yt=[..."0123456789ABCDEF"],_t=t=>yt[15&t],wt=t=>yt[(240&t)>>4]+yt[15&t],Mt=t=>(240&t)>>4==(15&t);function kt(t){var e=(t=>Mt(t.r)&&Mt(t.g)&&Mt(t.b)&&Mt(t.a))(t)?_t:wt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const St=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pt(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Et(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Ot(t,e,i){const n=Pt(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Rt(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),r=Math.min(e,i,n),o=(s+r)/2;let a,h,l;return s!==r&&(l=s-r,h=o>.5?l/(2-s-r):l/(s+r),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,l,s),a=60*a+.5),[0|a,h||0,o]}function Dt(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(mt)}function At(t,e,i){return Dt(Pt,t,e,i)}function Ct(t){return(t%360+360)%360}function Tt(t){const e=St.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?gt(+e[5]):mt(+e[5]));const s=Ct(+e[2]),r=+e[3]/100,o=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Dt(Ot,t,e,i)}(s,r,o):"hsv"===e[1]?function(t,e,i){return Dt(Et,t,e,i)}(s,r,o):At(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}const Lt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},It={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ft;function zt(t){Ft||(Ft=function(){const t={},e=Object.keys(It),i=Object.keys(Lt);let n,s,r,o,a;for(n=0;n<e.length;n++){for(o=a=e[n],s=0;s<i.length;s++)r=i[s],a=a.replace(r,Lt[r]);r=parseInt(It[o],16),t[a]=[r>>16&255,r>>8&255,255&r]}return t}(),Ft.transparent=[0,0,0,0]);const e=Ft[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Nt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const jt=t=>
vendor: 4,113 bytes, line 2
2t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Vt(t,e,i){if(t){let n=Rt(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=At(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Wt(t,e){return t?Object.assign(e||{},t):t}function Ht(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=mt(t[3]))):(e=Wt(t,{r:0,g:0,b:0,a:1})).a=mt(e.a),e}function Ut(t){return"r"===t.charAt(0)?function(t){const e=Nt.exec(t);let i,n,s,r=255;if(e){if(e[7]!==i){const t=+e[7];r=e[8]?gt(t):pt(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?gt(i):pt(i,0,255)),n=255&(e[4]?gt(n):pt(n,0,255)),s=255&(e[6]?gt(s):pt(s,0,255)),{r:i,g:n,b:s,a:r}}}(t):Tt(t)}class $t{constructor(t){if(t instanceof $t)return t;const e=typeof t;let i;var n,s,r;"object"===e?i=Ht(t):"string"===e&&(r=(n=t).length,"#"===n[0]&&(4===r||5===r?s={r:255&17*vt[n[1]],g:255&17*vt[n[2]],b:255&17*vt[n[3]],a:5===r?17*vt[n[4]]:255}:7!==r&&9!==r||(s={r:vt[n[1]]<<4|vt[n[2]],g:vt[n[3]]<<4|vt[n[4]],b:vt[n[5]]<<4|vt[n[6]],a:9===r?vt[n[7]]<<4|vt[n[8]]:255})),i=s||zt(t)||Ut(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Wt(this._rgb);return t&&(t.a=bt(t.a)),t}set rgb(t){this._rgb=Ht(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${bt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?kt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Rt(t),i=e[0],n=xt(e[1]),s=xt(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${bt(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const r=e===s?.5:e,o=2*r-1,a=i.a-n.a,h=((o*a===-1?o:(o+a)/(1+o*a))+1)/2;s=1-h,i.r=255&h*i.r+s*n.r+.5,i.g=255&h*i.g+s*n.g+.5,i.b=255&h*i.b+s*n.b+.5,i.a=r*i.a+(1-r)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=Bt(bt(t.r)),s=Bt(bt(t.g)),r=Bt(bt(t.b));return{r:mt(jt(n+i*(Bt(bt(e.r))-n))),g:mt(jt(s+i*(Bt(bt(e.g))-s))),b:mt(jt(r+i*(Bt(bt(e.b))-r))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new $t(this.rgb)}alpha(t){return this._rgb.a=mt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ft(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vt(this._rgb,2,t),this}darken(t){return Vt(this._rgb,2,-t),this}saturate(t){return Vt(this._rgb,1,t),this}desaturate(t){return Vt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Rt(t);i[0]=Ct(i[0]+e),i=At(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Yt(t){return new $t(t)}function qt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Xt(t){return qt(t)?t:Yt(t)}function Gt(t){return qt(t)?t:Yt(t).saturate(.5).darken(.1).hexString()}const Kt=Object.create(null),Jt=Object.create(null);function Qt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function Zt(t,e,i){return"string"==typeof e?x(Qt(t,e),i):x(Qt(t,""),e)}var te=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Gt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Gt(e.borderColor),this.hoverColor=(t,e)=>Gt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 34,474 bytes, line 2
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Zt(this,t,e)}get(t){return Qt(this,t)}describe(t,e){return Zt(Jt,t,e)}override(t,e){return Zt(Kt,t,e)}route(t,e,i,n){const s=Qt(this,t),r=Qt(this,i),o="_"+e;Object.defineProperties(s,{[o]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=r[n];return a(t)?Object.assign({},e,t):c(t,e)},set(t){this[o]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ee(t,e,i,n,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,i.push(s)),r>n&&(n=r),n}function ie(t,e,i,n){let s=(n=n||{}).data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},r=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const h=i.length;let l,c,u,d,f;for(l=0;l<h;l++)if(d=i[l],null!=d&&!0!==o(d))a=ee(t,s,r,a,d);else if(o(d))for(c=0,u=d.length;c<u;c++)f=d[c],null==f||o(f)||(a=ee(t,s,r,a,f));t.restore();const p=r.length/2;if(p>i.length){for(l=0;l<p;l++)delete s[r[l]];r.splice(0,p)}return a}function ne(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function se(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function re(t,e,i,n){oe(t,e,i,n,null)}function oe(t,e,i,n,s){let r,o,a,h,l,c;const u=e.pointStyle,d=e.rotation,f=e.radius;let p=(d||0)*A;if(u&&"object"==typeof u&&(r=u.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,n),t.rotate(p),t.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),u){default:s?t.ellipse(i,n,s/2,f,0,0,O):t.arc(i,n,f,0,O),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(p)*f,n-Math.cos(p)*f),p+=L,t.lineTo(i+Math.sin(p)*f,n-Math.cos(p)*f),p+=L,t.lineTo(i+Math.sin(p)*f,n-Math.cos(p)*f),t.closePath();break;case"rectRounded":l=.516*f,h=f-l,o=Math.cos(p+T)*h,a=Math.sin(p+T)*h,t.arc(i-o,n-a,l,p-E,p-C),t.arc(i+a,n-o,l,p-C,p),t.arc(i+o,n+a,l,p,p+C),t.arc(i-a,n+o,l,p+C,p+E),t.closePath();break;case"rect":if(!d){h=Math.SQRT1_2*f,c=s?s/2:h,t.rect(i-c,n-h,2*c,2*h);break}p+=T;case"rectRot":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+a,n-o),t.lineTo(i+o,n+a),t.lineTo(i-a,n+o),t.closePath();break;case"crossRot":p+=T;case"cross":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"star":o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o),p+=T,o=Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a),t.moveTo(i+a,n-o),t.lineTo(i-a,n+o);break;case"line":o=s?s/2:Math.cos(p)*f,a=Math.sin(p)*f,t.moveTo(i-o,n-a),t.lineTo(i+o,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(p)*f,n+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function ae(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function he(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function le(t){t.restore()}function ce(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ue(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function de(t,e,i,n,s,a={}){const h=o(e)?e:[e],l=a.strokeWidth>0&&""!==a.strokeColor;let c,u;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);r(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),c=0;c<h.length;++c)u=h[c],l&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),r(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(u,i,n,a.maxWidth)),t.fillText(u,i,n,a.maxWidth),fe(t,i,n,u,a),n+=s.lineHeight;t.restore()}function fe(t,e,i,n,s){if(s.strikethrough||s.underline){const r=t.measureText(n),o=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,h=i-r.actualBoundingBoxAscent,l=i+r.actualBoundingBoxDescent,c=s.strikethrough?(h+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,c),t.lineTo(a,c),t.stroke()}}function pe(t,e){const{x:i,y:n,w:s,h:r,radius:o}=e;t.arc(i+o.topLeft,n+o.topLeft,o.topLeft,-C,E,!0),t.lineTo(i,n+r-o.bottomLeft),t.arc(i+o.bottomLeft,n+r-o.bottomLeft,o.bottomLeft,E,C,!0),t.lineTo(i+s-o.bottomRight,n+r),t.arc(i+s-o.bottomRight,n+r-o.bottomRight,o.bottomRight,C,0,!0),t.lineTo(i+s,n+o.topRight),t.arc(i+s-o.topRight,n+o.topRight,o.topRight,0,-C,!0),t.lineTo(i+o.topLeft,n)}const ge=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),me=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function be(t,e){const i=(""+t).match(ge);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const xe=t=>+t||0;function ve(t,e){const i={},n=a(e),s=n?Object.keys(e):e,r=a(t)?n?i=>c(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=xe(r(t));return i}function ye(t){return ve(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(t){return ve(t,["topLeft","topRight","bottomLeft","bottomRight"])}function we(t){const e=ye(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Me(t,e){t=t||{},e=e||te.font;let i=c(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=c(t.style,e.style);n&&!(""+n).match(me)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:c(t.family,e.family),lineHeight:be(c(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:c(t.weight,e.weight),string:""};return s.string=function(t){return!t||r(t.size)||r(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function ke(t,e,i,n){let s,r,a,h=!0;for(s=0,r=t.length;s<r;++s)if(a=t[s],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),h=!1),void 0!==i&&o(a)&&(a=a[i%a.length],h=!1),void 0!==a))return n&&!h&&(n.cacheable=!1),a}function Se(t,e){return Object.assign(Object.create(t),e)}function Pe(t,e=[""],i=t,n,s=()=>t[0]){k(n)||(n=ze("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>Pe([s,...t],e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Ae(i,n,()=>function(t,e,i,n){let s;for(const r of e)if(s=ze(Re(r,t),i),k(s))return De(t,s)?Ie(i,n,t,s):s}(n,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ne(t).includes(e),ownKeys:t=>Ne(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function Ee(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Oe(t,n),setContext:e=>Ee(t,e,i,n),override:s=>Ee(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ae(t,e,()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:r,_descriptors:h}=t;let l=n[e];S(l)&&h.isScriptable(e)&&(l=function(t,e,i,n){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(r,o||n),a.delete(t),De(t,e)&&(e=Ie(s._scopes,s,t,e));return e}(e,l,t,i));o(l)&&l.length&&(l=function(t,e,i,n){const{_proxy:s,_context:r,_subProxy:o,_descriptors:h}=i;if(k(r.index)&&n(t))e=e[r.index%e.length];else if(a(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const a of i){const i=Ie(n,s,t,a);e.push(Ee(i,r,o&&o[t],h))}}return e}(e,l,t,h.isIndexable));De(e,l)&&(l=Ee(l,s,r&&r[e],h));return l}(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function Oe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:S(i)?i:()=>i,isIndexable:S(n)?n:()=>n}}const Re=(t,e)=>t?t+M(e):e,De=(t,e)=>a(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ae(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Ce(t,e,i){return S(t)?t(e,i):t}const Te=(t,e)=>!0===t?e:"string"==typeof t?w(e,t):void 0;function Le(t,e,i,n,s){for(const r of e){const e=Te(i,r);if(e){t.add(e);const r=Ce(e._fallback,i,s);if(k(r)&&r!==i&&r!==n)return r}else if(!1===e&&k(n)&&i!==n)return null}return!1}function Ie(t,e,i,n){const s=e._rootScopes,r=Ce(e._fallback,i,n),h=[...t,...s],l=new Set;l.add(n);let c=Fe(l,h,i,r||i,n);return null!==c&&((!k(r)||r===i||(c=Fe(l,h,r,c,n),null!==c))&&Pe(Array.from(l),[""],s,r,()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];if(o(s)&&a(i))return i;return s}(e,i,n)))}function Fe(t,e,i,n,s){for(;i;)i=Le(t,e,i,n,s);return i}function ze(t,e){for(const i of e){if(!i)continue;const e=i[t];if(k(e))return e}}function Ne(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function je(t,e,i,n){const{iScale:s}=t,{key:r="r"}=this._parsing,o=new Array(n);let a,h,l,c;for(a=0,h=n;a<h;++a)l=a+i,c=e[l],o[a]={r:s.parse(w(c,r),l)};return o}const Be=Number.EPSILON||1e-14,Ve=(t,e)=>e<t.length&&!t[e].skip&&t[e],We=t=>"x"===t?"y":"x";function He(t,e,i,n){const s=t.skip?e:t,r=e,o=i.skip?e:i,a=$(r,s),h=$(o,r);let l=a/(a+h),c=h/(a+h);l=isNaN(l)?0:l,c=isNaN(c)?0:c;const u=n*l,d=n*c;return{previous:{x:r.x-u*(o.x-s.x),y:r.y-u*(o.y-s.y)},next:{x:r.x+d*(o.x-s.x),y:r.y+d*(o.y-s.y)}}}function Ue(t,e="x"){const i=We(e),n=t.length,s=Array(n).fill(0),r=Array(n);let o,a,h,l=Ve(t,0);for(o=0;o<n;++o)if(a=h,h=l,l=Ve(t,o+1),h){if(l){const t=l[e]-h[e];s[o]=0!==t?(l[i]-h[i])/t:0}r[o]=a?l?F(s[o-1])!==F(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}!function(t,e,i){const n=t.length;let s,r,o,a,h,l=Ve(t,0);for(let c=0;c<n-1;++c)h=l,l=Ve(t,c+1),h&&l&&(j(e[c],0,Be)?i[c]=i[c+1]=0:(s=i[c]/e[c],r=i[c+1]/e[c],a=Math.pow(s,2)+Math.pow(r,2),a<=9||(o=3/Math.sqrt(a),i[c]=s*o*e[c],i[c+1]=r*o*e[c])))}(t,s,r),function(t,e,i="x"){const n=We(i),s=t.length;let r,o,a,h=Ve(t,0);for(let l=0;l<s;++l){if(o=a,a=h,h=Ve(t,l+1),!a)continue;const s=a[i],c=a[n];o&&(r=(s-o[i])/3,a[`cp1${i}`]=s-r,a[`cp1${n}`]=c-r*e[l]),h&&(r=(h[i]-s)/3,a[`cp2${i}`]=s+r,a[`cp2${n}`]=c+r*e[l])}}(t,r,e)}function $e(t,e,i){return Math.max(Math.min(t,i),e)}function Ye(t,e,i,n,s){let r,o,a,h;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Ue(t,s);else{let i=n?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)a=t[r],h=He(i,a,t[Math.min(r+1,o-(n?0:1))%o],e.tension),a.cp1x=h.previous.x,a.cp1y=h.previous.y,a.cp2x=h.next.x,a.cp2y=h.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,s,r,o,a=ae(t[0],e);for(i=0,n=t.length;i<n;++i)o=r,r=a,a=i<n-1&&ae(t[i+1],e),r&&(s=t[i],o&&(s.cp1x=$e(s.cp1x,e.left,e.right),s.cp1y=$e(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=$e(s.cp2x,e.left,e.right),s.cp2y=$e(s.cp2y,e.top,e.bottom)))}(t,i)}function qe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Xe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ge(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const Ke=t=>window.getComputedStyle(t,null);const Je=["top","right","bottom","left"];function Qe(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const r=Je[s];n[r]=parseFloat(t[e+"-"+r+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Ze(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=Ke(i),r="border-box"===s.boxSizing,o=Qe(s,"padding"),a=Qe(s,"border","width"),{x:h,y:l,box:c}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:r}=n;let o,a,h=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(s,r,t.target))o=s,a=r;else{const t=e.getBoundingClientRect();o=n.clientX-t.left,a=n.clientY-t.top,h=!0}return{x:o,y:a,box:h}}(t,i),u=o.left+(c&&a.left),d=o.top+(c&&a.top);let{width:f,height:p}=e;return r&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((h-u)/f*i.width/n),y:Math.round((l-d)/p*i.height/n)}}const ti=t=>Math.round(10*t)/10;function ei(t,e,i,n){const s=Ke(t),r=Qe(s,"margin"),o=Ge(s.maxWidth,t,"clientWidth")||D,a=Ge(s.maxHeight,t,"clientHeight")||D,h=function(t,e,i){let n,s;if(void 0===e||void 0===i){const r=Xe(t);if(r){const t=r.getBoundingClientRect(),o=Ke(r),a=Qe(o,"border","width"),h=Qe(o,"padding");e=t.width-h.width-a.width,i=t.height-h.height-a.height,n=Ge(o.maxWidth,r,"clientWidth"),s=Ge(o.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||D,maxHeight:s||D}}(t,e,i);let{width:l,height:c}=h;if("content-box"===s.boxSizing){const t=Qe(s,"border","width"),e=Qe(s,"padding");l-=e.width+t.width,c-=e.height+t.height}return l=Math.max(0,l-r.width),c=Math.max(0,n?Math.floor(l/n):c-r.height),l=ti(Math.min(l,o,h.maxWidth)),c=ti(Math.min(c,a,h.maxHeight)),l&&!c&&(c=ti(l/2)),{width:l,height:c}}function ii(t,e,i){const n=e||1,s=Math.floor(t.height*n),r=Math.floor(t.width*n);t.height=s/n,t.width=r/n;const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||o.height!==s||o.width!==r)&&(t.currentDevicePixelRatio=n,o.height=s,o.width=r,t.ctx.setTransform(n,0,0,n,0,0),!0)}const ni=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function si(t,e){const i=function(t,e){return Ke(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ri(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function oi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function ai(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=ri(t,s,i),a=ri(s,r,i),h=ri(r,e,i),l=ri(o,a,i),c=ri(a,h,i);return ri(l,c,i)}const hi=new Map;function li(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=hi.get(i);return n||(n=new Intl.NumberFormat(t,e),hi.set(i,n)),n}(e,i).format(t)}function ci(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function ui(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function di(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fi(t){return"angle"===t?{between:X,compare:Y,normalize:q}:{between:K,compare:(t,e)=>t-e,normalize:t=>t}}function pi({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function gi(t,e,i){if(!i)return[t];const{property:n,start:s,end:r}=i,o=e.length,{compare:a,between:h,normalize:l}=fi(n),{start:c,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:s,end:r}=i,{between:o,normalize:a}=fi(n),h=e.length;let l,c,{start:u,end:d,loop:f}=t;if(f){for(u+=h,d+=h,l=0,c=h;l<c&&o(a(e[u%h][n]),s,r);++l)u--,d--;u%=h,d%=h}return d<u&&(d+=h),{start:u,end:d,loop:f,style:t.style}}(t,e,i),p=[];let g,m,b,x=!1,v=null;const y=()=>x||h(s,b,g)&&0!==a(s,b),_=()=>!x||0===a(r,g)||h(r,b,g);for(let t=c,i=c;t<=u;++t)m=e[t%o],m.skip||(g=l(m[n]),g!==b&&(x=h(g,s,r),null===v&&y()&&(v=0===a(g,s)?t:i),null!==v&&_()&&(p.push(pi({start:v,end:t,loop:d,count:o,style:f})),v=null),i=t,b=g));return null!==v&&p.push(pi({start:v,end:u,loop:d,count:o,style:f})),p}function mi(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const r=gi(n[s],t.points,e);r.length&&i.push(...r)}return i}function bi(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),r=xi(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,h=i.length,l=[];let c=r,u=e[0].start,d=u;function f(t,e,n,s){const r=a?-1:1;if(t!==e){for(t+=h;i[t%h].skip;)t-=r;for(;i[e%h].skip;)e+=r;t%h!==e%h&&(l.push({start:t%h,end:e%h,loop:n,style:s}),c=s,u=e%h)}}for(const t of e){u=a?u:t.start;let e,r=i[u%h];for(d=u+1;d<=t.end;d++){const a=i[d%h];e=xi(n.setContext(Se(s,{type:"segment",p0:r,p1:a,p0DataIndex:(d-1)%h,p1DataIndex:d%h,datasetIndex:o}))),vi(e,c)&&f(u,d-1,t.loop,c),r=a,c=e}u<d-1&&f(u,d-1,t.loop,c)}return l}(t,e,i,n):e}function xi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function vi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var yi=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],r=e.duration;s.forEach(n=>n({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=nt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let r,o=s.length-1,a=!1;for(;o>=0;--o)r=s[o],r._active?(r._total>i.duration&&(i.duration=r._total),r.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const _i="transparent",wi={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Xt(t||_i),s=n.valid&&Xt(e||_i);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Mi{constructor(t,e,i,n){const s=e[i];n=ke([t.to,n,s,t.from]);const r=ke([t.from,s,n]);this._active=!0,this._fn=t.fn||wi[t.type||typeof r],this._easing=dt[t.easing]||dt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,r=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=ke([t.to,e,n,t.from]),this._from=ke([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,r=this._loop,o=this._to;let a;if(this._active=s!==o&&(r||e<i),!this._active)return this._target[n]=o,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=r&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}te.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ki=Object.keys(te.animation);te.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),te.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),te.describe("animations",{_fallback:"animation"}),te.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class Si{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!a(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const n=t[i];if(!a(n))return;const s={};for(const t of ki)s[t]=n[t];(o(n.properties)&&n.properties||[i]).forEach(t=>{t!==i&&e.has(t)||e.set(t,s)})})}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),r=Object.keys(e),o=Date.now();let a;for(a=r.length-1;a>=0;--a){const h=r[a];if("$"===h.charAt(0))continue;if("options"===h){n.push(...this._animateOptions(t,e));continue}const l=e[h];let c=s[h];const u=i.get(h);if(c){if(u&&c.active()){c.update(u,l,o);continue}c.cancel()}u&&u.duration?(s[h]=c=new Mi(u,t,h,l),n.push(c)):t[h]=l}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(yi.add(this._chart,i),!0):void 0}}function Pi(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:n?r:s,end:n?s:r}}function Ei(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,r;for(s=0,r=n.length;s<r;++s)i.push(n[s].index);return i}function Oi(t,e,i,n={}){const s=t.keys,r="single"===n.mode;let o,a,l,c;if(null!==e){for(o=0,a=s.length;o<a;++o){if(l=+s[o],l===i){if(n.all)continue;break}c=t.values[l],h(c)&&(r||0===e||F(e)===F(c))&&(e+=c)}return e}}function Ri(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Di(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Ai(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function Ci(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:r,vScale:o,index:a}=n,h=r.axis,l=o.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(r,o,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[h]:r,[l]:u}=i;d=(i._stacks||(i._stacks={}))[l]=Di(s,c,r),d[a]=u,d._top=Ai(d,o,!0,n.type),d._bottom=Ai(d,o,!1,n.type)}}function Ti(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function Li(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const Ii=t=>"reset"===t||"none"===t,Fi=(t,e)=>e?t:Object.assign({},t);class zi{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ri(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Li(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=c(i.xAxisID,Ti(t,"x")),r=e.yAxisID=c(i.yAxisID,Ti(t,"y")),o=e.rAxisID=c(i.rAxisID,Ti(t,"r")),a=e.indexAxis,h=e.iAxisID=n(a,s,r,o),l=e.vAxisID=n(a,r,s,o);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&et(this._data,this),t._stacked&&Li(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(a(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,r;for(n=0,s=e.length;n<s;++n)r=e[n],i[n]={x:r,y:t[r]};return i}(e);else if(i!==e){if(i){et(i,this);const t=this._cachedMeta;Li(t),t._parsed=[]}e&&Object.isExtensible(e)&&(s=this,(n=e)._chartjs?n._chartjs.listeners.push(s):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),tt.forEach(t=>{const e="_onData"+M(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),s}})}))),this._syncList=[],this._data=e}var n,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Ri(e.vScale,e),e.stack!==i.stack&&(n=!0,Li(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&Ci(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:r}=i,h=s.axis;let l,c,u,d=0===t&&e===n.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,u=n;else{u=o(n[t])?this.parseArrayData(i,n,t,e):a(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===c[h]||f&&c[h]<f[h];for(l=0;l<e;++l)i._parsed[l+t]=c=u[l],d&&(s()&&(d=!1),f=c);i._sorted=d}r&&Ci(this,u)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:r}=t,o=s.axis,a=r.axis,h=s.getLabels(),l=s===r,c=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,c[u]={[o]:l||s.parse(h[f],f),[a]:r.parse(e[f],f)};return c}parseArrayData(t,e,i,n){const{xScale:s,yScale:r}=t,o=new Array(n);let a,h,l,c;for(a=0,h=n;a<h;++a)l=a+i,c=e[l],o[a]={x:s.parse(c[0],l),y:r.parse(c[1],l)};return o}parseObjectData(t,e,i,n){const{xScale:s,yScale:r}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,h=new Array(n);let l,c,u,d;for(l=0,c=n;l<c;++l)u=l+i,d=e[u],h[l]={x:s.parse(w(d,o),u),y:r.parse(w(d,a),u)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,r=e[t.axis];return Oi({keys:Ei(n,!0),values:e._stacks[t.axis]},r,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let r=null===s?NaN:s;const o=n&&i._stacks[e.axis];n&&o&&(n.values=o,r=Oi(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,r=n.length,o=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Ei(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(o);let d,f;function p(){f=n[d];const e=f[o.axis];return!h(f[t.axis])||c>e||u<e}for(d=0;d<r&&(p()||(this.updateRangeFromParsed(l,t,f,a),!s));++d);if(s)for(d=r-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,f,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,r;for(n=0,s=e.length;n<s;++n)r=e[n][t.axis],h(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,s;return a(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(c(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Pi(t,i),s=Pi(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,r=[],o=this._drawStart||0,a=this._drawCount||n.length-o,h=this.options.drawActiveElementsOnTop;let l;for(i.dataset&&i.dataset.draw(t,s,o,a),l=o;l<o+a;++l){const e=n[l];e.hidden||(e.active&&h?r.push(e):e.draw(t,s))}for(l=0;l<r.length;++l)r[l].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,i){return Se(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return Se(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,r=t+"-"+e,o=s[r],a=this.enableOptionSharing&&k(i);if(o)return Fi(o,a);const h=this.chart.config,l=h.datasetElementScopeKeys(this._type,t),c=n?[`${t}Hover`,"hover",t,""]:[t,""],u=h.getOptionScopes(this.getDataset(),l),d=Object.keys(te.elements[t]),f=h.resolveNamedOptions(u,d,()=>this.getContext(i,n),c);return f.$shared&&(f.$shared=a,s[r]=Object.freeze(Fi(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,r=`animation-${e}`,o=s[r];if(o)return o;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),r=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(r,this.getContext(t,i,e))}const h=new Si(n,a&&a.animations);return a&&a._cacheable&&(s[r]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ii(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),r=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:r}}updateElement(t,e,i,n){Ii(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Ii(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,r=Math.min(s,n);r&&this.parse(0,r),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,r=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=r;o--)t[o]=t[o-e]};for(a(s),o=t;o<r;++o)s[o]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&Li(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Ni(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=it(n.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let n,s,r,o,a=e._length;const h=()=>{32767!==r&&-32768!==r&&(k(o)&&(a=Math.min(a,Math.abs(r-o)||a)),o=r)};for(n=0,s=i.length;n<s;++n)r=e.getPixelForValue(i[n]),h();for(o=void 0,n=0,s=e.ticks.length;n<s;++n)r=e.getPixelForTick(n),h();return a}
vendor: 1,180 bytes, line 2
2function ji(t,e,i,n){return o(t)?function(t,e,i,n){const s=i.parse(t[0],n),r=i.parse(t[1],n),o=Math.min(s,r),a=Math.max(s,r);let h=o,l=a;Math.abs(o)>Math.abs(a)&&(h=a,l=o),e[i.axis]=l,e._custom={barStart:h,barEnd:l,start:s,end:r,min:o,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Bi(t,e,i,n){const s=t.iScale,r=t.vScale,o=s.getLabels(),a=s===r,h=[];let l,c,u,d;for(l=i,c=i+n;l<c;++l)d=e[l],u={},u[s.axis]=a||s.parse(o[l],l),h.push(ji(d,u,r,l));return h}function Vi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Wi(t,e,i,n){let s=e.borderSkipped;const r={};if(!s)return void(t.borderSkipped=r);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:h,top:l,bottom:c}=function(t){let e,i,n,s,r;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",r="start"):(s="start",r="end"),{start:i,end:n,reverse:e,top:s,bottom:r}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=l:(i._bottom||0)===n?s=c:(r[Hi(c,o,a,h)]=!0,s=l)),r[Hi(s,o,a,h)]=!0,t.borderSkipped=r}function Hi(t,e,i,n){var s,r,o;return n?(o=i,t=Ui(t=(s=t)===(r=e)?o:s===o?r:s,i,e)):t=Ui(t,e,i),t}
vendor: 4,135 bytes, line 2
2function Ui(t,e,i){return"start"===t?e:"end"===t?i:t}function $i(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}zi.defaults={},zi.prototype.datasetElementType=null,zi.prototype.dataElementType=null;class Yi extends zi{parsePrimitiveData(t,e,i,n){return Bi(t,e,i,n)}parseArrayData(t,e,i,n){return Bi(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:r}=t,{xAxisKey:o="x",yAxisKey:a="y"}=this._parsing,h="x"===s.axis?o:a,l="x"===r.axis?o:a,c=[];let u,d,f,p;for(u=i,d=i+n;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(w(p,h),u),c.push(ji(w(p,l),f,r,u));return c}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),r=s._custom,o=Vi(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:a}}=this,h=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,n);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=s||r(e[a.axis])?{base:h,head:h}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,c),g=(e._stacks||{})[a.axis],m={horizontal:l,base:i.base,enableBorderRadius:!g||Vi(e._custom)||o===g._top||o===g._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(f,t[f].active?"active":n));const b=m.options||t[f].options;Wi(m,b,g,o),$i(m,b,c.ratio),this.updateElement(t[f],f,m,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),s=i.options.stacked,o=[],a=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(r(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!a(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,r;for(s=0,r=e.data.length;s<r;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const o=t.barThickness;return{min:o||Ni(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:n,minBarLength:s}}=this,o=n||0,a=this.getParsed(t),h=a._custom,l=Vi(h);let c,u,d=a[e.axis],f=0,p=i?this.applyStack(e,a,i):d;p!==d&&(f=p-d,p=d),l&&(d=h.barStart,p=h.barEnd-h.barStart,0!==d&&F(d)!==F(h.barEnd)&&(f=0),f+=d);const g=r(n)||l?f:n;let m=e.getPixelForValue(g);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):m,u=c-m,Math.abs(u)<s){u=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,o)*s,d===o&&(m-=u/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),r=Math.max(t,i);m=Math.max(Math.min(m,r),n),c=m+u}if(m===e.getPixelForValue(o)){const t=F(u)*e.getLineWidthForValue(o)/2;m+=t,u-=t}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=c(n.maxBarThickness,1/0);let a,h;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,r=s[t];let o=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const h=i.categoryPercentage;null===o&&(o=r-(null===a?e.end-e.start:a-r)),null===a&&(a=r+r-o);const l=r-(r-Math.min(o,a))/2*h;return{chunk:Math.abs(a-o)/2*h/n,ratio:i.barPercentage,start:l}}
vendor: 12,889 bytes, line 2
2(t,e,n,i):function(t,e,i,n){const s=i.barThickness;let o,a;return r(s)?(o=e.min*i.categoryPercentage,a=i.barPercentage):(o=s*n,a=1),{chunk:o/n,ratio:a,start:e.pixels[t]-o/2}}(t,e,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);a=l.start+l.chunk*c+l.chunk/2,h=Math.min(o,l.chunk*l.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),h=Math.min(o,e.min*e.ratio);return{base:a-h/2,head:a+h/2,center:a,size:h}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}Yi.id="bar",Yi.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Yi.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class qi extends zi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=c(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=c(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,s=this.getParsed(t),r=i.getLabelForValue(s.x),o=n.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+r+", "+o+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:r,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:h}=this._getSharedOptions(e,n),l=r.axis,c=o.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!s&&this.getParsed(u),d={},f=d[l]=s?r.getPixelForDecimal(.5):r.getPixelForValue(i[l]),p=d[c]=s?o.getBasePixel():o.getPixelForValue(i[c]);d.skip=isNaN(f)||isNaN(p),h&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),s&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=c(i&&i._custom,s),n}}qi.id="bubble",qi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},qi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Xi extends zi{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,r,o=t=>+i[t];if(a(i[t])){const{key:t="value"}=this._parsing;o=e=>+w(i[e],t)}for(s=t,r=t+e;s<r;++s)n._parsed[s]=o(s)}}_getRotation(){return V(this.options.rotation-90)}_getCircumference(){return V(this.options.circumference)}_getRotationExtents(){let t=O,e=-O;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),r=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,r=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-r)/2,0),a=Math.min((h=this.options.cutout,l=o,"string"==typeof h&&h.endsWith("%")?parseFloat(h)/100:h/l),1);var h,l;const c=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:m,offsetY:b}=function(t,e,i){let n=1,s=1,r=0,o=0;if(e<O){const a=t,h=a+e,l=Math.cos(a),c=Math.sin(a),u=Math.cos(h),d=Math.sin(h),f=(t,e,n)=>X(t,a,h,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>X(t,a,h,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,l,u),m=f(C,c,d),b=p(E,l,u),x=p(E+C,c,d);n=(g-b)/2,s=(m-x)/2,r=-(g+b)/2,o=-(m+x)/2}return{ratioX:n,ratioY:s,offsetX:r,offsetY:o}}(f,d,a),x=(i.width-r)/p,v=(i.height-r)/g,y=Math.max(Math.min(x,v)/2,0),_=u(this.options.radius,y),w=(_-Math.max(_*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*_,this.offsetY=b*_,n.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/O)}updateElements(t,e,i,n){const s="reset"===n,r=this.chart,o=r.chartArea,a=r.options.animation,h=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=s&&a.animateScale,u=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,s);for(g=e;g<e+i;++g){const e=this._circumference(g,s),i=t[g],r={x:h+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};p&&(r.options=f||this.resolveDataElementOptions(g,i.active?"active":n)),m+=e,this.updateElement(i,g,r,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?O*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=li(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,r,o,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){r=i.getDatasetMeta(n),t=r.data,o=r.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=o.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(c(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Xi.id="doughnut",Xi.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Xi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Xi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return o(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Gi extends zi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,r=this.chart._animationsDisabled;let{start:o,count:a}=at(e,n,r);this._drawStart=o,this._drawCount=a,ht(e)&&(o=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:h},t),this.updateElements(n,o,a,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:a,_stacked:h,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,n),d=o.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=N(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let x=e>0&&this.getParsed(e-1);for(let p=e;p<e+i;++p){const e=t[p],i=this.getParsed(p),v=b?e:{},y=r(i[f]),_=v[d]=o.getPixelForValue(i[d],p),w=v[f]=s||y?a.getBasePixel():a.getPixelForValue(h?this.applyStack(a,i,h):i[f],p);v.skip=isNaN(_)||isNaN(w)||y,v.stop=p>0&&Math.abs(i[d]-x[d])>m,g&&(v.parsed=i,v.raw=l.data[p]),u&&(v.options=c||this.resolveDataElementOptions(p,e.active?"active":n)),b||this.updateElement(e,p,v,n),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Gi.id="line",Gi.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Gi.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ki extends zi{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=li(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return je.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),r=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,n){const s="reset"===n,r=this.chart,o=r.options.animation,a=this._cachedMeta.rScale,h=a.xCenter,l=a.yCenter,c=a.getIndexAngle(0)-.5*E;let u,d=c;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,n,f);for(u=e;u<e+i;u++){const e=t[u];let i=d,p=d+this._computeAngle(u,n,f),g=r.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=p,s&&(o.animateScale&&(g=0),o.animateRotate&&(i=p=c));const m={x:h,y:l,innerRadius:0,outerRadius:g,startAngle:i,endAngle:p,options:this.resolveDataElementOptions(u,e.active?"active":n)};this.updateElement(e,u,m,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?V(this.resolveDataElementOptions(t,e).angle||i):0}}Ki.id="polarArea",Ki.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ki.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ji extends Xi{}Ji.id="pie",Ji.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Qi extends zi{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}
vendor: 17,904 bytes, line 2
2parseObjectData(t,e,i,n){return je.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,r="reset"===n;for(let o=e;o<e+i;o++){const e=t[o],i=this.resolveDataElementOptions(o,e.active?"active":n),a=s.getPointPositionForValue(o,this.getParsed(o).r),h=r?s.xCenter:a.x,l=r?s.yCenter:a.y,c={x:h,y:l,angle:a.angle,skip:isNaN(h)||isNaN(l),options:i};this.updateElement(e,o,c,n)}}}Qi.id="radar",Qi.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Qi.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Zi{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return N(this.x)&&N(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach(t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),n}}Zi.defaults={},Zi.defaultRoutes=void 0;const tn={values:t=>o(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),r=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const o=I(Math.abs(r)),a=Math.max(Math.min(-1*Math.floor(o),20),0),h={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(h,this.options.ticks.format),li(t,n,h)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(I(t)));return 1===n||2===n||5===n?tn.numeric.call(this,t,e,i):""}};var en={formatters:tn};function nn(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],o=s.length,a=s[0],h=s[o-1],l=[];if(o>n)return function(t,e,i,n){let s,r=0,o=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===o&&(e.push(t[s]),r++,o=i[r*n])}(e,l,s,o/n),l;const c=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const r=function(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n===0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}(n);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>s)return e}return Math.max(s,1)}(s,e,n);if(o>0){let t,i;const n=o>1?Math.round((h-a)/(o-1)):null;for(sn(e,l,c,r(n)?0:a-n,a),t=0,i=o-1;t<i;t++)sn(e,l,c,s[t],s[t+1]);return sn(e,l,c,h,r(n)?e.length:h+n),l}return sn(e,l,c),l}function sn(t,e,i,n,s){const r=c(n,0),o=Math.min(c(s,t.length),t.length);let a,h,l,u=0;for(i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),l=r;l<0;)u++,l=Math.round(r+u*i);for(h=Math.max(r,0);h<o;h++)h===l&&(e.push(t[h]),u++,l=Math.round(r+u*i))}te.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:en.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),te.route("scale.ticks","color","","color"),te.route("scale.grid","color","","borderColor"),te.route("scale.grid","borderColor","","borderColor"),te.route("scale.title","color","","color"),te.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),te.describe("scales",{_fallback:"scale"}),te.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const rn=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function on(t,e){const i=[],n=t.length/e,s=t.length;let r=0;for(;r<s;r+=n)i.push(t[Math.floor(r)]);return i}function an(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),r=t._startPixel,o=t._endPixel,a=1e-6;let h,l=t.getPixelForTick(s);if(!(i&&(h=1===n?Math.max(l-r,o-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(s-1))/2,l+=s<e?h:-h,l<r-a||l>o+a)))return l}function hn(t){return t.drawTicks?t.tickLength:0}function ln(t,e){if(!t.display)return 0;const i=Me(t.font,e),n=we(t.padding);return(o(t.text)?t.text.length:1)*i.lineHeight+n.height}function cn(t,e,i){let n=rt(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class un extends Zi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=l(t,Number.POSITIVE_INFINITY),e=l(e,Number.NEGATIVE_INFINITY),i=l(i,Number.POSITIVE_INFINITY),n=l(n,Number.NEGATIVE_INFINITY),{min:l(t,i),max:l(e,n),minDefined:h(t),maxDefined:h(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:r}=this.getUserBounds();if(s&&r)return{min:i,max:n};const o=this.getMatchingVisibleMetas();for(let a=0,h=o.length;a<h;++a)e=o[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),r||(n=Math.max(n,e.max));return i=r&&i>n?n:i,n=s&&i>n?i:n,{min:l(i,l(n,i)),max:l(n,l(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:n,max:s}=t,r=u(e,(s-n)/2),o=(t,e)=>i&&0===t?0:t+e;return{min:o(n,-Math.abs(r)),max:o(s,r)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=o<this.ticks.length;this._convertTicksToLabels(a?on(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=nn(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){d(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),d(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=d(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,n=e.minRotation||0,s=e.maxRotation;let r,o,a,h=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const l=this._getLabelSizes(),c=l.widest.width,u=l.highest.height,d=G(this.chart.width-c,0,this.maxWidth);r=t.offset?this.maxWidth/i:d/(i-1),c+6>r&&(r=d/(i-(t.offset?.5:1)),o=this.maxHeight-hn(t.grid)-e.padding-ln(t.title,this.chart.options.font),a=Math.sqrt(c*c+u*u),h=W(Math.min(Math.asin(G((l.highest.height+6)/r,-1,1)),Math.asin(G(o/a,-1,1))-Math.asin(G(u/a,-1,1)))),h=Math.max(n,Math.min(s,h))),this.labelRotation=h}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){const r=ln(n,e.options.font);if(o?(t.width=this.maxWidth,t.height=hn(s)+r):(t.height=this.maxHeight,t.width=hn(s)+r),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:r}=this._getLabelSizes(),a=2*i.padding,h=V(this.labelRotation),l=Math.cos(h),c=Math.sin(h);if(o){const e=i.mirror?0:c*s.width+l*r.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:l*s.width+c*r.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,c,l)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:r},position:o}=this.options,a=0!==this.labelRotation,h="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,u=0;a?h?(c=n*t.width,u=i*e.height):(c=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?c=t.width:"inner"!==s&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-o+r)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-l+r)*this.width/(this.width-l),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+r,this.paddingBottom=n+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)r(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=on(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:n}=this,s=[],a=[];let h,l,c,u,d,p,g,m,b,x,v,y=0,_=0;for(h=0;h<e;++h){if(u=t[h].label,d=this._resolveTickFontOptions(h),i.font=p=d.string,g=n[p]=n[p]||{data:{},gc:[]},m=d.lineHeight,b=x=0,r(u)||o(u)){if(o(u))for(l=0,c=u.length;l<c;++l)v=u[l],r(v)||o(v)||(b=ee(i,g.data,g.gc,b,v),x+=m)}else b=ee(i,g.data,g.gc,b,u),x=m;s.push(b),a.push(x),y=Math.max(b,y),_=Math.max(x,_)}!function(t,e){f(t,t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}})}(n,e);const w=s.indexOf(y),M=a.indexOf(_),k=t=>({width:s[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(M),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return G(this._alignToPixels?ne(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return Se(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Se(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=V(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),r=t.autoSkipPadding||0,o=s?s.widest.width+r:0,a=s?s.highest.height+r:0;return this.isHorizontal()?a*i>o*n?o/i:a/n:a*n<o*i?a/i:o/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:r}=n,o=s.offset,h=this.isHorizontal(),l=this.ticks.length+(o?1:0),u=hn(s),d=[],f=s.setContext(this.getContext()),p=f.drawBorder?f.borderWidth:0,g=p/2,m=function(t){return ne(i,t,p)};let b,x,v,y,_,w,M,k,S,P,E,O;if("top"===r)b=m(this.bottom),w=this.bottom-u,k=b-g,P=m(t.top)+g,O=t.bottom;else if("bottom"===r)b=m(this.top),P=t.top,O=m(t.bottom)-g,w=b+g,k=this.top+u;else if("left"===r)b=m(this.right),_=this.right-u,M=b-g,S=m(t.left)+g,E=t.right;else if("right"===r)b=m(this.left),S=t.left,E=m(t.right)-g,_=b+g,M=this.left+u;else if("x"===e){if("center"===r)b=m((t.top+t.bottom)/2+.5);else if(a(r)){const t=Object.keys(r)[0],e=r[t];b=m(this.chart.scales[t].getPixelForValue(e))}P=t.top,O=t.bottom,w=b+g,k=w+u}else if("y"===e){if("center"===r)b=m((t.left+t.right)/2);else if(a(r)){const t=Object.keys(r)[0],e=r[t];b=m(this.chart.scales[t].getPixelForValue(e))}_=b-g,M=_-u,S=t.left,E=t.right}const R=c(n.ticks.maxTicksLimit,l),D=Math.max(1,Math.ceil(l/R));for(x=0;x<l;x+=D){const t=s.setContext(this.getContext(x)),e=t.lineWidth,n=t.color,r=t.borderDash||[],a=t.borderDashOffset,l=t.tickWidth,c=t.tickColor,u=t.tickBorderDash||[],f=t.tickBorderDashOffset;v=an(this,x,o),void 0!==v&&(y=ne(i,v,e),h?_=M=S=E=y:w=k=P=O=y,d.push({tx1:_,ty1:w,tx2:M,ty2:k,x1:S,y1:P,x2:E,y2:O,width:e,color:n,borderDash:r,borderDashOffset:a,tickWidth:l,tickColor:c,tickBorderDash:u,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=b,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,r=this.isHorizontal(),h=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=hn(i.grid),p=f+u,g=d?-u:p,m=-V(this.labelRotation),b=[];let x,v,y,_,w,M,k,S,P,E,O,R,D="middle";if("top"===n)M=this.bottom-g,k=this._getXAxisLabelAlignment();else if("bottom"===n)M=this.top+g,k=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if("x"===e){if("center"===n)M=(t.top+t.bottom)/2+p;else if(a(n)){const t=Object.keys(n)[0],e=n[t];M=this.chart.scales[t].getPixelForValue(e)+p}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)w=(t.left+t.right)/2-p;else if(a(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===l?D="top":"end"===l&&(D="bottom"));const A=this._getLabelSizes();for(x=0,v=h.length;x<v;++x){y=h[x],_=y.label;const t=s.setContext(this.getContext(x));S=this.getPixelForTick(x)+s.labelOffset,P=this._resolveTickFontOptions(x),E=P.lineHeight,O=o(_)?_.length:1;const e=O/2,i=t.color,a=t.textStrokeColor,l=t.textStrokeWidth;let u,f=k;
vendor: 1,752 bytes, line 2
2if(r?(w=S,"inner"===k&&(f=x===v-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),R="top"===n?"near"===c||0!==m?-O*E+E/2:"center"===c?-A.highest.height/2-e*E+E:-A.highest.height+E/2:"near"===c||0!==m?E/2:"center"===c?A.highest.height/2-e*E:A.highest.height-O*E,d&&(R*=-1)):(M=S,R=(1-O)*E/2),t.showLabelBackdrop){const e=we(t.backdropPadding),i=A.heights[x],n=A.widths[x];let s=M+R-e.top,r=w-e.left;switch(D){case"middle":s-=i/2;break;case"bottom":s-=i}switch(k){case"center":r-=n/2;break;case"right":r-=n}u={left:r,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:_,font:P,color:i,strokeColor:a,strokeWidth:l,textOffset:R,textAlign:f,textBaseline:D,translation:[w,M],backdrop:u})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-V(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,r=t+s,o=this._getLabelSizes().widest.width;let a,h;return"left"===e?n?(h=this.right+s,"near"===i?a="left":"center"===i?(a="center",h+=o/2):(a="right",h+=o)):(h=this.right-r,"near"===i?a="right":"center"===i?(a="center",h-=o/2):(a="left",h=this.left)):"right"===e?n?(h=this.left+s,"near"===i?a="right":"center"===i?(a="center",h-=o/2):(a="left",h-=o)):(h=this.left+r,"near"===i?a="left":"center"===i?(a="center",h+=o/2):(a="right",h=this.right)):a="right",{textAlign:a,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
vendor: 4,149 bytes, line 2
2:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(e=>e.value===t);if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,r;const o=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,r=n.length;s<r;++s){const t=n[s];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,n=i.setContext(this.getContext()),s=i.drawBorder?n.borderWidth:0;if(!s)return;const r=i.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let a,h,l,c;this.isHorizontal()?(a=ne(t,this.left,s)-s/2,h=ne(t,this.right,r)+r/2,l=c=o):(l=ne(t,this.top,s)-s/2,c=ne(t,this.bottom,r)+r/2,a=h=o),e.save(),e.lineWidth=n.borderWidth,e.strokeStyle=n.borderColor,e.beginPath(),e.moveTo(a,l),e.lineTo(h,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&he(e,i);const n=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,r;for(s=0,r=n.length;s<r;++s){const t=n[s],i=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),de(e,r,0,t.textOffset,i,t)}i&&le(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=Me(i.font),r=we(i.padding),h=i.align;let l=s.lineHeight/2;"bottom"===e||"center"===e||a(e)?(l+=r.bottom,o(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=function(t,e,i,n){const{top:s,left:r,bottom:o,right:h,chart:l}=t,{chartArea:c,scales:u}=l;let d,f,p,g=0;const m=o-s,b=h-r;if(t.isHorizontal()){if(f=ot(n,r,h),a(i)){const t=Object.keys(i)[0],n=i[t];p=u[t].getPixelForValue(n)+m-e}else p="center"===i?(c.bottom+c.top)/2+m-e:rn(t,i,e);d=h-r}else{if(a(i)){const t=Object.keys(i)[0],n=i[t];f=u[t].getPixelForValue(n)-b+e}else f="center"===i?(c.left+c.right)/2-b+e:rn(t,i,e);p=ot(n,o,s),g="left"===i?-C:C}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}(this,l,e,h);de(t,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:f,textAlign:cn(h,e,n),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=c(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===un.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,r;for(s=0,r=e.length;s<r;++s){const r=e[s];r[i]!==this.id||t&&r.type!==t||n.push(r)}return n}_resolveTickFontOptions(t){return Me(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class dn{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const n=this.items,s=t.id,r=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);
vendor: 5,207 bytes, line 2
2return s in n||(n[s]=t,function(t,e,i){const n=x(Object.create(null),[i?te.get(i):{},te.get(e),t.defaults]);te.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(i=>{const n=i.split("."),s=n.pop(),r=[t].concat(n).join("."),o=e[i].split("."),a=o.pop(),h=o.join(".");te.route(r,s,h,a)})}(e,t.defaultRoutes);t.descriptors&&te.describe(e,t.descriptors)}(t,r,i),this.override&&te.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in te[n]&&(delete te[n][i],this.override&&delete Kt[i])}}var fn=new class{constructor(){this.controllers=new dn(zi,"datasets",!0),this.elements=new dn(Zi,"elements"),this.plugins=new dn(Object,"plugins"),this.scales=new dn(un,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):f(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const n=M(t);d(i["before"+n],[],i),e[t](i),d(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class pn extends zi{update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:s,count:r}=at(e,i,n);if(this._drawStart=s,this._drawCount=r,ht(e)&&(s=0,r=i.length),this.options.showLine){const{dataset:s,_dataset:r}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=i;const o=this.resolveDatasetElementOptions(t);o.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:o},t)}this.updateElements(i,s,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=fn.getElement("line")),super.addElements()}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:a,_stacked:h,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),u=this.getSharedOptions(c),d=this.includeOptions(n,u),f=o.axis,p=a.axis,{spanGaps:g,segment:m}=this.options,b=N(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||"none"===n;let v=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),g=x?e:{},y=r(i[p]),_=g[f]=o.getPixelForValue(i[f],c),w=g[p]=s||y?a.getBasePixel():a.getPixelForValue(h?this.applyStack(a,i,h):i[p],c);g.skip=isNaN(_)||isNaN(w)||y,g.stop=c>0&&Math.abs(i[f]-v[f])>b,m&&(g.parsed=i,g.raw=l.data[c]),d&&(g.options=u||this.resolveDataElementOptions(c,e.active?"active":n)),x||this.updateElement(e,c,g,n),v=i}this.updateSharedOptions(u,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,r)/2}}pn.id="scatter",pn.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},pn.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var gn=Object.freeze({__proto__:null,BarController:Yi,BubbleController:qi,DoughnutController:Xi,LineController:Gi,PolarAreaController:Ki,PieController:Ji,RadarController:Qi,ScatterController:pn});function mn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class bn{constructor(t){this.options=t||{}}init(t){}formats(){return mn()}parse(t,e){return mn()}format(t,e){return mn()}add(t,e,i){return mn()}diff(t,e,i){return mn()}startOf(t,e,i){return mn()}endOf(t,e){return mn()}}bn.override=function(t){Object.assign(bn.prototype,t)};var xn={_date:bn};function vn(t,e,i,n){const{controller:s,data:r,_sorted:o}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&r.length){const t=a._reversePixels?Z:Q;if(!n)return t(r,e,i);if(s._sharedOptions){const n=r[0],s="function"==typeof n.getRange&&n.getRange(e);if(s){const n=t(r,e,i-s),o=t(r,e,i+s);return{lo:n.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}
vendor: 29,619 bytes, line 2
2function yn(t,e,i,n,s){const r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let t=0,i=r.length;t<i;++t){const{index:i,data:a}=r[t],{lo:h,hi:l}=vn(r[t],e,o,s);for(let t=h;t<=l;++t){const e=a[t];e.skip||n(e,i,t)}}}function _n(t,e,i,n,s){const r=[];if(!s&&!t.isPointInArea(e))return r;return yn(t,i,e,function(i,o,a){(s||ae(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&r.push({element:i,datasetIndex:o,index:a})},!0),r}function wn(t,e,i,n,s,r){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,r=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(r,2))}}(i);let h=Number.POSITIVE_INFINITY;return yn(t,i,e,function(i,l,c){const u=i.inRange(e.x,e.y,s);if(n&&!u)return;const d=i.getCenterPoint(s);if(!(!!r||t.isPointInArea(d))&&!u)return;const f=a(e,d);f<h?(o=[{element:i,datasetIndex:l,index:c}],h=f):f===h&&o.push({element:i,datasetIndex:l,index:c})}),o}function Mn(t,e,i,n,s,r){return r||t.isPointInArea(e)?"r"!==i||n?wn(t,e,i,n,s,r):function(t,e,i,n){let s=[];return yn(t,i,e,function(t,i,r){const{startAngle:o,endAngle:a}=t.getProps(["startAngle","endAngle"],n),{angle:h}=U(t,{x:e.x,y:e.y});X(h,o,a)&&s.push({element:t,datasetIndex:i,index:r})}),s}(t,e,i,s):[]}function kn(t,e,i,n,s){const r=[],o="x"===i?"inXRange":"inYRange";let a=!1;return yn(t,i,e,(t,n,h)=>{t[o](e[i],s)&&(r.push({element:t,datasetIndex:n,index:h}),a=a||t.inRange(e.x,e.y,s))}),n&&!a?[]:r}var Sn={evaluateInteractionItems:yn,modes:{index(t,e,i,n){const s=Ze(e,t),r=i.axis||"x",o=i.includeInvisible||!1,a=i.intersect?_n(t,s,r,n,o):Mn(t,s,r,!1,n,o),h=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&h.push({element:i,datasetIndex:t.index,index:e})}),h):[]},dataset(t,e,i,n){const s=Ze(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;let a=i.intersect?_n(t,s,r,n,o):Mn(t,s,r,!1,n,o);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point:(t,e,i,n)=>_n(t,Ze(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=Ze(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;return Mn(t,s,r,i.intersect,n,o)},x:(t,e,i,n)=>kn(t,Ze(e,t),"x",i.intersect,n),y:(t,e,i,n)=>kn(t,Ze(e,t),"y",i.intersect,n)}};const Pn=["left","top","right","bottom"];function En(t,e){return t.filter(t=>t.pos===e)}function On(t,e){return t.filter(t=>-1===Pn.indexOf(t.pos)&&t.box.axis===e)}function Rn(t,e){return t.sort((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function Dn(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!Pn.includes(n))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let r,o,a;for(r=0,o=t.length;r<o;++r){a=t[r];const{fullSize:o}=a.box,h=i[a.stack],l=h&&a.stackWeight/h.weight;a.horizontal?(a.width=l?l*n:o&&e.availableWidth,a.height=s):(a.width=n,a.height=l?l*s:o&&e.availableHeight)}return i}function An(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Cn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Tn(t,e,i,n){const{pos:s,box:r}=i,o=t.maxPadding;if(!a(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[s]+=i.size}r.getPadding&&Cn(o,r.getPadding());const h=Math.max(0,e.outerWidth-An(o,t,"left","right")),l=Math.max(0,e.outerHeight-An(o,t,"top","bottom")),c=h!==t.w,u=l!==t.h;return t.w=h,t.h=l,i.horizontal?{same:c,other:u}:{same:u,other:c}}function Ln(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function In(t,e,i,n){const s=[];let r,o,a,h,l,c;for(r=0,o=t.length,l=0;r<o;++r){a=t[r],h=a.box,h.update(a.width||e.w,a.height||e.h,Ln(a.horizontal,e));const{same:o,other:u}=Tn(e,i,a,n);l|=o&&s.length,c=c||u,h.fullSize||s.push(a)}return l&&In(s,e,i,n)||c}function Fn(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function zn(t,e,i,n){const s=i.padding;let{x:r,y:o}=e;for(const a of t){const t=a.box,h=n[a.stack]||{count:1,placed:0,weight:1},l=a.stackWeight/h.weight||1;if(a.horizontal){const n=e.w*l,r=h.size||t.height;k(h.start)&&(o=h.start),t.fullSize?Fn(t,s.left,o,i.outerWidth-s.right-s.left,r):Fn(t,e.left+h.placed,o,n,r),h.start=o,h.placed+=n,o=t.bottom}else{const n=e.h*l,o=h.size||t.width;k(h.start)&&(r=h.start),t.fullSize?Fn(t,r,s.top,o,i.outerHeight-s.bottom-s.top):Fn(t,r,e.top+h.placed,o,n),h.start=r,h.placed+=n,r=t.right}}e.x=r,e.y=o}te.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Nn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=we(t.options.layout.padding),r=Math.max(e-s.width,0),o=Math.max(i-s.height,0),a=function(t){const e=function(t){const e=[];let i,n,s,r,o,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:r,options:{stack:o,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:a});return e}(t),i=Rn(e.filter(t=>t.box.fullSize),!0),n=Rn(En(e,"left"),!0),s=Rn(En(e,"right")),r=Rn(En(e,"top"),!0),o=Rn(En(e,"bottom")),a=On(e,"x"),h=On(e,"y");return{fullSize:i,leftAndTop:n.concat(r),rightAndBottom:s.concat(h).concat(o).concat(a),chartArea:En(e,"chartArea"),vertical:n.concat(s).concat(h),horizontal:r.concat(o).concat(a)}}(t.boxes),h=a.vertical,l=a.horizontal;f(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const c=h.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/c,hBoxMaxHeight:o/2}),d=Object.assign({},s);Cn(d,we(n));const p=Object.assign({maxPadding:d,w:r,h:o,x:s.left,y:s.top},s),g=Dn(h.concat(l),u);In(a.fullSize,p,u,g),In(h,p,u,g),In(l,p,u,g)&&In(h,p,u,g),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),zn(a.leftAndTop,p,u,g),p.x+=p.w,p.y+=p.h,zn(a.rightAndBottom,p,u,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},f(a.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class jn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class Bn extends jn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Vn="$chartjs",Wn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Hn=t=>null===t||""===t;const Un=!!ni&&{passive:!0};function $n(t,e,i){t.canvas.removeEventListener(e,i,Un)}function Yn(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function qn(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||Yn(i.addedNodes,n),e=e&&!Yn(i.removedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function Xn(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||Yn(i.removedNodes,n),e=e&&!Yn(i.addedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const Gn=new Map;let Kn=0;function Jn(){const t=window.devicePixelRatio;t!==Kn&&(Kn=t,Gn.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function Qn(t,e,i){const n=t.canvas,s=n&&Xe(n);if(!s)return;const r=st((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()},window),o=new ResizeObserver(t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||r(i,n)});return o.observe(s),function(t,e){Gn.size||window.addEventListener("resize",Jn),Gn.set(t,e)}(t,r),o}function Zn(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Gn.delete(t),Gn.size||window.removeEventListener("resize",Jn)}(t)}function ts(t,e,i){const n=t.canvas,s=st(e=>{null!==t.ctx&&i(function(t,e){const i=Wn[t.type]||t.type,{x:n,y:s}=Ze(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,i){t.addEventListener(e,i,Un)}(n,e,s),s}class es extends jn{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Vn]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Hn(s)){const e=si(t,"width");void 0!==e&&(t.width=e)}if(Hn(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=si(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Vn])return!1;const i=e[Vn].initial;["height","width"].forEach(t=>{const n=i[t];r(n)?e.removeAttribute(t):e.setAttribute(t,n)});const n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e[Vn],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:qn,detach:Xn,resize:Qn}[e]||ts;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Zn,detach:Zn,resize:Zn}[e]||$n)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return ei(t,e,i,n)}isAttached(t){const e=Xe(t);return!(!e||!e.isConnected)}}class is{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===d(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){r(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=c(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],n=Object.keys(fn.plugins.items);for(let t=0;t<n.length;t++)i.push(fn.getPlugin(n[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const n=s[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,s){const r=[],o=t.getContext();for(const a of e){const e=a.id,h=ns(n[e],s);null!==h&&r.push({plugin:a,options:ss(t.config,{plugin:a,local:i[e]},h,o)})}return r}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function ns(t,e){return e||!1!==t?!0===t?{}:t:null}function ss(t,{plugin:e,local:i},n,s){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(n,r);return i&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rs(t,e){const i=te.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function os(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function as(t){const e=t.options||(t.options={});e.plugins=c(e.plugins,{}),e.scales=function(t,e){const i=Kt[t.type]||{scales:{}},n=e.scales||{},s=rs(t.type,e),r=Object.create(null),o=Object.create(null);return Object.keys(n).forEach(t=>{const e=n[t];if(!a(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const h=os(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(h,s),c=i.scales||{};r[h]=r[h]||t,o[t]=v(Object.create(null),[{axis:h},e,c[h],c[l]])}),t.data.datasets.forEach(i=>{const s=i.type||t.type,a=i.indexAxis||rs(s,e),h=(Kt[s]||{}).scales||{};Object.keys(h).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),s=i[e+"AxisID"]||r[e]||e;o[s]=o[s]||Object.create(null),v(o[s],[{axis:e},n[s],h[t]])})}),Object.keys(o).forEach(t=>{const e=o[t];v(e,[te.scales[e.type],te.scale])}),o}(t,e)}function hs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ls=new Map,cs=new Set;function us(t,e){let i=ls.get(t);return i||(i=e(),ls.set(t,i),cs.add(i)),i}const ds=(t,e,i)=>{const n=w(e,i);void 0!==n&&t.add(n)};class fs{constructor(t){this._config=function(t){return(t=t||{}).data=hs(t.data),as(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=hs(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),as(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return us(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return us(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return us(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return us(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>ds(a,t,e))),e.forEach(t=>ds(a,n,t)),e.forEach(t=>ds(a,Kt[s]||{},t)),e.forEach(t=>ds(a,te,t)),e.forEach(t=>ds(a,Jt,t))});const h=Array.from(a);return 0===h.length&&h.push(Object.create(null)),cs.has(e)&&r.set(e,h),h}chartOptionScopes(){const{options:t,type:e}=this;return[t,Kt[e]||{},te.datasets[e]||{},{type:e},te,Jt]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=ps(this._resolverCache,t,n);let h=r;if(function(t,e){const{isScriptable:i,isIndexable:n}=Oe(t);for(const s of e){const e=i(s),r=n(s),a=(r||e)&&t[s];if(e&&(S(a)||gs(a))||r&&o(a))return!0}return!1}(r,e)){s.$shared=!1;h=Ee(r,i=S(i)?i():i,this.createResolver(t,i,a))}for(const t of e)s[t]=h[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=ps(this._resolverCache,t,i);return a(e)?Ee(s,e,void 0,n):s}}function ps(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let r=n.get(s);if(!r){r={resolver:Pe(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(s,r)}return r}const gs=t=>a(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||S(t[i]),!1);const ms=["top","bottom","left","right","chartArea"];function bs(t,e){return"top"===t||"bottom"===t||-1===ms.indexOf(t)&&"x"===e}function xs(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function vs(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),d(i&&i.onComplete,[t],e)}function ys(t){const e=t.chart,i=e.options.animation;d(i&&i.onProgress,[t],e)}function _s(t){return qe()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ws={},Ms=t=>{const e=_s(t);return Object.values(ws).filter(t=>t.canvas===e).pop()};function ks(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const r=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=r)}}}class Ss{constructor(t,e){const i=this.config=new fs(e),n=_s(t),r=Ms(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!qe()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bn:es}(n)),this.platform.updateConfig(i);const a=this.platform.acquireContext(n,o.aspectRatio),h=a&&a.canvas,l=h&&h.height,c=h&&h.width;this.id=s(),this.ctx=a,this.canvas=h,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new is,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],ws[this.id]=this,a&&h?(yi.listen(this,"complete",vs),yi.listen(this,"progress",ys),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return r(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ii(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return se(this.canvas,this.ctx),this}stop(){return yi.stop(this),this}resize(t,e){yi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,s),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ii(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),d(i.onResize,[this,r],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){f(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let s=[];e&&(s=s.concat(Object.keys(e).map(t=>{const i=e[t],n=os(t,i),s="r"===n,r="x"===n;return{options:i,dposition:s?"chartArea":r?"bottom":"left",dtype:s?"radialLinear":r?"category":"linear"}}))),f(s,e=>{const s=e.options,r=s.id,o=os(r,s),a=c(s.type,e.dtype);void 0!==s.position&&bs(s.position,o)===bs(e.dposition)||(s.position=e.dposition),n[r]=!0;let h=null;if(r in i&&i[r].type===a)h=i[r];else{h=new(fn.getScale(a))({id:r,type:a,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(s,t)}),f(n,(t,e)=>{t||delete i[e]}),f(i,t=>{Nn.configure(this,t,t.options),Nn.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(xs("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const r=n.type||this.config.type;if(s.type&&s.type!==r&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=r,s.indexAxis=n.indexAxis||rs(r,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=fn.getController(r),{datasetElementType:n,dataElementType:o}=te.datasets[r];Object.assign(e.prototype,{dataElementType:fn.getElement(o),datasetElementType:n&&fn.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){f(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),n||f(s,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(xs("z","_idx"));const{_active:o,_lastEvent:a}=this;a?this._eventHandler(a,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){f(this.scales,t=>{Nn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);P(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e){ks(t,n,"_removeElements"===i?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),n=i(0);for(let t=1;t<e;t++)if(!P(n,i(t)))return;return Array.from(n).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Nn.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],f(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(yi.has(this)?this.attached&&!yi.running(this)&&yi.start(this):(this.draw(),vs({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,s=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(n&&he(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&le(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ae(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Sn.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Se(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),r=s.controller._resolveAnimations(void 0,n);k(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(s,{visible:i}),this.update(e=>e.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),yi.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),se(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete ws[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};f(this.options.events,t=>i(t,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const o=()=>{n("attach",o),this.attached=!0,this.resize(),i("resize",s),i("detach",r)};r=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",o)},e.isAttached(this.canvas)?o():r()}unbindEvents(){f(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},f(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,r,o,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){r=t[o];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});!p(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=s(e,t),o=i?t:s(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),o.length&&n.mode&&this.updateHoverStyle(o,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,r=e,o=this._getActiveElements(t,n,i,r),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}
vendor: 2,106 bytes, line 2
2(t),h=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,d(s.onHover,[t,o,this],this),a&&d(s.onClick,[t,o,this],this));const l=!p(o,n);return(l||e)&&(this._active=o,this._updateHoverStyles(o,n,e)),this._lastEvent=h,l}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}const Ps=()=>f(Ss.instances,t=>t._plugins.invalidate()),Es=!0;function Os(t,e,i){const{startAngle:n,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:h}=e;let l=s/a;t.beginPath(),t.arc(r,o,a,n-l,i+l),h>s?(l=s/h,t.arc(r,o,h,i+l,n-l,!0)):t.arc(r,o,s,i+C,n-C),t.closePath(),t.clip()}function Rs(t,e,i,n){const s=ve(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(i-e)/2,o=Math.min(r,n*e/2),a=t=>{const e=(i-Math.min(r,t))*n/2;return G(t,0,Math.min(r,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:G(s.innerStart,0,o),innerEnd:G(s.innerEnd,0,o)}}function Ds(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function As(t,e,i,n,s,r){const{x:o,y:a,startAngle:h,pixelMargin:l,innerRadius:c}=e,u=Math.max(e.outerRadius+n+i-l,0),d=c>0?c+n+i+l:0;let f=0;const p=s-h;if(n){const t=((c>0?c-n:0)+(u>0?u-n:0))/2;f=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*u-i/E)/u)/2,m=h+g+f,b=s-g-f,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=Rs(e,d,u,b-m),w=u-x,M=u-v,k=m+x/w,S=b-v/M,P=d+y,O=d+_,R=m+y/P,D=b-_/O;if(t.beginPath(),r){if(t.arc(o,a,u,k,S),v>0){const e=Ds(M,S,o,a);t.arc(e.x,e.y,v,S,b+C)}const e=Ds(O,b,o,a);if(t.lineTo(e.x,e.y),_>0){const e=Ds(O,D,o,a);t.arc(e.x,e.y,_,b+C,D+Math.PI)}if(t.arc(o,a,d,b-_/d,m+y/d,!0),y>0){const e=Ds(P,R,o,a);t.arc(e.x,e.y,y,R+Math.PI,m-C)}const i=Ds(w,m,o,a);if(t.lineTo(i.x,i.y),x>0){const e=Ds(w,k,o,a);t.arc(e.x,e.y,x,m-C,k)}}else{t.moveTo(o,a);const e=Math.cos(k)*u+o,i=Math.sin(k)*u+a;t.lineTo(e,i);const n=Math.cos(S)*u+o,s=Math.sin(S)*u+a;t.lineTo(n,s)}t.closePath()}function Cs(t,e,i,n,s,r){const{options:o}=e,{borderWidth:a,borderJoinStyle:h}=o,l="inner"===o.borderAlign;
vendor: 2,375 bytes, line 2
2a&&(l?(t.lineWidth=2*a,t.lineJoin=h||"round"):(t.lineWidth=a,t.lineJoin=h||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:s,startAngle:r,pixelMargin:o,fullCircles:a}=e,h=Math.max(e.outerRadius-o,0),l=e.innerRadius+o;let c;for(i&&Os(t,e,r+O),t.beginPath(),t.arc(n,s,l,r+O,r,!0),c=0;c<a;++c)t.stroke();for(t.beginPath(),t.arc(n,s,h,r,r+O),c=0;c<a;++c)t.stroke()}(t,e,l),l&&Os(t,e,s),As(t,e,i,n,s,r),t.stroke())}Object.defineProperties(Ss,{defaults:{enumerable:Es,value:te},instances:{enumerable:Es,value:ws},overrides:{enumerable:Es,value:Kt},registry:{enumerable:Es,value:fn},version:{enumerable:Es,value:"3.9.1"},getChart:{enumerable:Es,value:Ms},register:{enumerable:Es,value:(...t)=>{fn.add(...t),Ps()}},unregister:{enumerable:Es,value:(...t)=>{fn.remove(...t),Ps()}}});class Ts extends Zi{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:r}=U(n,{x:t,y:e}),{startAngle:o,endAngle:a,innerRadius:h,outerRadius:l,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,f=c(u,a-o)>=O||X(s,o,a),p=K(r,h+d,l+d);return f&&p}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:r,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:h}=this.options,l=(n+s)/2,c=(r+o+h+a)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>O?Math.floor(i/O):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(n){o=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=E&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,i,n,s){const{fullCircles:r,startAngle:o,circumference:a}=e;let h=e.endAngle;if(r){As(t,e,i,n,o+O,s);for(let e=0;e<r;++e)t.fill();isNaN(a)||(h=o+a%O,a%O===0&&(h+=O))}return As(t,e,i,n,h,s),t.fill(),h}(t,this,o,s,r);Cs(t,this,o,s,a,r),t.restore()}}
vendor: 18,843 bytes, line 2
2function Ls(t,e,i=e){t.lineCap=c(i.borderCapStyle,e.borderCapStyle),t.setLineDash(c(i.borderDash,e.borderDash)),t.lineDashOffset=c(i.borderDashOffset,e.borderDashOffset),t.lineJoin=c(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=c(i.borderWidth,e.borderWidth),t.strokeStyle=c(i.borderColor,e.borderColor)}function Is(t,e,i){t.lineTo(i.x,i.y)}function Fs(t,e,i={}){const n=t.length,{start:s=0,end:r=n-1}=i,{start:o,end:a}=e,h=Math.max(s,o),l=Math.min(r,a),c=s<o&&r<o||s>a&&r>a;return{count:n,start:h,loop:e.loop,ilen:l<h&&!c?n+l-h:l-h}}function zs(t,e,i,n){const{points:s,options:r}=e,{count:o,start:a,loop:h,ilen:l}=Fs(s,i,n),c=function(t){return t.stepped?ce:t.tension||"monotone"===t.cubicInterpolationMode?ue:Is}(r);let u,d,f,{move:p=!0,reverse:g}=n||{};for(u=0;u<=l;++u)d=s[(a+(g?l-u:u))%o],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):c(t,f,d,g,r.stepped),f=d);return h&&(d=s[(a+(g?l:0))%o],c(t,f,d,g,r.stepped)),!!h}function Ns(t,e,i,n){const s=e.points,{count:r,start:o,ilen:a}=Fs(s,i,n),{move:h=!0,reverse:l}=n||{};let c,u,d,f,p,g,m=0,b=0;const x=t=>(o+(l?a-t:t))%r,v=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(h&&(u=s[x(0)],t.moveTo(u.x,u.y)),c=0;c<=a;++c){if(u=s[x(c)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),m=(b*m+e)/++b):(v(),t.lineTo(e,i),d=n,b=0,f=p=i),g=i}v()}function js(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Ns:zs}Ts.id="arc",Ts.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ts.defaultRoutes={backgroundColor:"backgroundColor"};const Bs="function"==typeof Path2D;function Vs(t,e,i,n){Bs&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),Ls(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:r}=e,o=js(e);for(const a of s)Ls(t,r,a.style),t.beginPath(),o(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Ws extends Zi{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;Ye(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const r=!!t._loop,{start:o,end:a}=function(t,e,i,n){let s=0,r=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(r+=s);r>s&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}(i,s,r,n);return bi(t,!0===n?[{start:o,end:a,loop:r}]:function(t,e,i,n){const s=t.length,r=[];let o,a=e,h=t[e];for(o=e+1;o<=i;++o){const i=t[o%s];i.skip||i.stop?h.skip||(n=!1,r.push({start:e%s,end:(o-1)%s,loop:n}),e=a=i.stop?o:null):(a=o,h.skip&&(e=o)),h=i}return null!==a&&r.push({start:e%s,end:a%s,loop:n}),r}(i,o,a<o?a+s:a,!!t._fullLoop&&0===o&&a===s-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,r=mi(this,{property:e,start:n,end:n});if(!r.length)return;const o=[],a=function(t){return t.stepped?oi:t.tension||"monotone"===t.cubicInterpolationMode?ai:ri}(i);let h,l;for(h=0,l=r.length;h<l;++h){const{start:l,end:c}=r[h],u=s[l],d=s[c];if(u===d){o.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],o.push(f)}return 1===o.length?o[0]:o}pathSegment(t,e,i){return js(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=js(this);let r=this._loop;e=e||0,i=i||this.points.length-e;for(const o of n)r&=s(t,this,o,{start:e,end:e+i-1});return!!r}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Vs(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Hs(t,e,i,n){const s=t.options,{[i]:r}=t.getProps([i],n);return Math.abs(e-r)<s.radius+s.hitRadius}Ws.id="line",Ws.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ws.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ws.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Us extends Zi{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:r}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-r,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Hs(this,t,"x",e)}inYRange(t,e){return Hs(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!ae(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,re(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function $s(t,e){const{x:i,y:n,base:s,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let a,h,l,c,u;return t.horizontal?(u=o/2,a=Math.min(i,s),h=Math.max(i,s),l=n-u,c=n+u):(u=r/2,a=i-u,h=i+u,l=Math.min(n,s),c=Math.max(n,s)),{left:a,top:l,right:h,bottom:c}}function Ys(t,e,i,n){return t?0:G(e,i,n)}function qs(t){const e=$s(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,r=ye(n);return{t:Ys(s.top,r.top,0,i),r:Ys(s.right,r.right,0,e),b:Ys(s.bottom,r.bottom,0,i),l:Ys(s.left,r.left,0,e)}}(t,i/2,n/2),r=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,r=_e(s),o=Math.min(e,i),h=t.borderSkipped,l=n||a(s);return{topLeft:Ys(!l||h.top||h.left,r.topLeft,0,o),topRight:Ys(!l||h.top||h.right,r.topRight,0,o),bottomLeft:Ys(!l||h.bottom||h.left,r.bottomLeft,0,o),bottomRight:Ys(!l||h.bottom||h.right,r.bottomRight,0,o)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function Xs(t,e,i,n){const s=null===e,r=null===i,o=t&&!(s&&r)&&$s(t,n);return o&&(s||K(e,o.left,o.right))&&(r||K(i,o.top,o.bottom))}function Gs(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ks(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,r=(t.x+t.w!==i.x+i.w?e:0)-n,o=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+r,h:t.h+o,radius:t.radius}}Us.id="point",Us.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Us.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Js extends Zi{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:r}=qs(this),o=(a=r.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?pe:Gs;var a;t.save(),r.w===s.w&&r.h===s.h||(t.beginPath(),o(t,Ks(r,e,s)),t.clip(),o(t,Ks(s,-e,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,Ks(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return Xs(this,t,e,i)}inXRange(t,e){return Xs(this,t,null,e)}inYRange(t,e){return Xs(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Js.id="bar",Js.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Js.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Qs=Object.freeze({__proto__:null,ArcElement:Ts,LineElement:Ws,PointElement:Us,BarElement:Js});function Zs(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function tr(t){t.data.datasets.forEach(t=>{Zs(t)})}var er={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void tr(t);const n=t.width;t.data.datasets.forEach((e,s)=>{const{_data:o,indexAxis:a}=e,h=t.getDatasetMeta(s),l=o||e.data;if("y"===ke([a,t.options.indexAxis]))return;if(!h.controller.supportsDecimation)return;const c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const i=e.length;let n,s=0;const{iScale:r}=t,{min:o,max:a,minDefined:h,maxDefined:l}=r.getUserBounds();return h&&(s=G(Q(e,r.axis,o).lo,0,i-1)),n=l?G(Q(e,r.axis,a).hi+1,s,i)-s:i-s,{start:s,count:n}}(h,l);if(d<=(i.threshold||4*n))return void Zs(e);let f;switch(r(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":f=function(t,e,i,n,s){const r=s.samples||n;if(r>=i)return t.slice(e,e+i);const o=[],a=(i-2)/(r-2);let h=0;const l=e+i-1;let c,u,d,f,p,g=e;for(o[h++]=t[g],c=0;c<r-2;c++){let n,s=0,r=0;const l=Math.floor((c+1)*a)+1+e,m=Math.min(Math.floor((c+2)*a)+1,i)+e,b=m-l;for(n=l;n<m;n++)s+=t[n].x,r+=t[n].y;s/=b,r/=b;const x=Math.floor(c*a)+1+e,v=Math.min(Math.floor((c+1)*a)+1,i)+e,{x:y,y:_}=t[g];for(d=f=-1,n=x;n<v;n++)f=.5*Math.abs((y-s)*(t[n].y-_)-(y-t[n].x)*(r-_)),f>d&&(d=f,u=t[n],p=n);o[h++]=u,g=p}return o[h++]=t[l],o}(l,u,d,n,i);break;case"min-max":f=function(t,e,i,n){let s,o,a,h,l,c,u,d,f,p,g=0,m=0;const b=[],x=e+i-1,v=t[e].x,y=t[x].x-v;for(s=e;s<e+i;++s){o=t[s],a=(o.x-v)/y*n,h=o.y;const e=0|a;if(e===l)h<f?(f=h,c=s):h>p&&(p=h,u=s),g=(m*g+o.x)/++m;else{const i=s-1;if(!r(c)&&!r(u)){const e=Math.min(c,u),n=Math.max(c,u);e!==d&&e!==i&&b.push({...t[e],x:g}),n!==d&&n!==i&&b.push({...t[n],x:g})}s>0&&i!==d&&b.push(t[i]),b.push(o),l=e,m=0,f=p=h,c=u=d=s}}return b}(l,u,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=f})},destroy(t){tr(t)}};function ir(t,e,i,n){if(n)return;let s=e[t],r=i[t];return"angle"===t&&(s=q(s),r=q(r)),{property:t,start:s,end:r}}function nr(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function sr(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function rr(t,e){let i=[],n=!1;return o(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=nr(t,e,s);const o=s[t],a=s[e];null!==n?(r.push({x:o.x,y:n}),r.push({x:a.x,y:n})):null!==i&&(r.push({x:i,y:o.y}),r.push({x:i,y:a.y}))}),r}(t,e),i.length?new Ws({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function or(t){return t&&!1!==t.fill}function ar(t,e,i){let n=t[e].fill;const s=[e];let r;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!h(n))return n;if(r=t[n],!r)return!1;if(r.visible)return n;s.push(n),n=r.fill}return!1}function hr(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=c(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if(a(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return h(s)&&Math.floor(s)===s?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function lr(t,e,i){const n=[];for(let s=0;s<i.length;s++){const r=i[s],{first:o,last:a,point:h}=cr(r,e,"x");if(!(!h||o&&a))if(o)n.unshift(h);else if(t.push(h),!a)break}t.push(...n)}function cr(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],r=t.segments,o=t.points;let a=!1,h=!1;for(let t=0;t<r.length;t++){const e=r[t],n=o[e.start][i],l=o[e.end][i];if(K(s,n,l)){a=s===n,h=s===l;break}}return{first:a,last:h,point:n}}class ur{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:r}=this;return e=e||{start:0,end:O},t.arc(n,s,r,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function dr(t){const{chart:e,fill:i,line:n}=t;if(h(i))return function(t,e){const i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e);return n?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],r=n.segments,o=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const s=n[t];if(s.index===e)break;s.hidden||i.unshift(s.dataset)}return i}(e,i);a.push(rr({x:null,y:e.bottom},n));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)lr(s,o[t],a)}return new Ws({points:s,options:{}})}(t);if("shape"===i)return!0;const s=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,r=n.reverse?e.max:e.min,o=function(t,e,i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:a(t)?t.value:e.getBaseValue(),n}(i,e,r),h=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,r);return new ur({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(o)})}for(let t=0;t<s;++t)h.push(e.getPointPositionForValue(t,o));return h}(t);return function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:a(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(h(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return s instanceof ur?s:rr(s,n)}function fr(t,e,i){const n=dr(e),{line:s,scale:r,axis:o}=e,a=s.options,h=a.fill,l=a.backgroundColor,{above:c=l,below:u=l}=h||{};n&&s.points.length&&(he(t,i),function(t,e){const{line:i,target:n,above:s,below:r,area:o,scale:a}=e,h=i._loop?"angle":e.axis;t.save(),"x"===h&&r!==s&&(pr(t,n,o.top),gr(t,{line:i,target:n,color:s,scale:a,property:h}),t.restore(),t.save(),pr(t,n,o.bottom));gr(t,{line:i,target:n,color:r,scale:a,property:h}),t.restore()}(t,{line:s,target:n,above:c,below:u,area:i,scale:r,axis:o}),le(t))}function pr(t,e,i){const{segments:n,points:s}=e;let r=!0,o=!1;t.beginPath();for(const a of n){const{start:n,end:h}=a,l=s[n],c=s[nr(n,h,s)];r?(t.moveTo(l.x,l.y),r=!1):(t.lineTo(l.x,i),t.lineTo(l.x,l.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function gr(t,e){const{line:i,target:n,property:s,color:r,scale:o}=e,a=function(t,e,i){const n=t.segments,s=t.points,r=e.points,o=[];for(const t of n){let{start:n,end:a}=t;a=nr(n,a,s);const h=ir(i,s[n],s[a],t.loop);if(!e.segments){o.push({source:t,target:h,start:s[n],end:s[a]});continue}const l=mi(e,h);for(const e of l){const n=ir(i,r[e.start],r[e.end],e.loop),a=gi(t,s,n);for(const t of a)o.push({source:t,target:e,start:{[i]:sr(h,n,"start",Math.max)},end:{[i]:sr(h,n,"end",Math.min)}})}}return o}(i,n,s);for(const{source:e,target:h,start:l,end:c}of a){const{style:{backgroundColor:a=r}={}}=e,u=!0!==n;t.save(),t.fillStyle=a,mr(t,o,u&&ir(s,l,c)),t.beginPath();const d=!!i.pathSegment(t,e);let f;if(u){d?t.closePath():br(t,n,c,s);const e=!!n.pathSegment(t,h,{move:d,reverse:!0});f=d&&e,f||br(t,n,l,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function mr(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:r,start:o,end:a}=i||{};"x"===r&&(t.beginPath(),t.rect(o,n,a-o,s-n),t.clip())}function br(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var xr={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let r,o,a,h;for(o=0;o<n;++o)r=t.getDatasetMeta(o),a=r.dataset,h=null,a&&a.options&&a instanceof Ws&&(h={visible:t.isDatasetVisible(o),index:o,fill:hr(a,o,n),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=h,s.push(h);for(o=0;o<n;++o)h=s[o],h&&!1!==h.fill&&(h.fill=ar(s,o,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(r,i.axis),n&&i.fill&&fr(t.ctx,i,r))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;or(i)&&fr(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;or(n)&&"beforeDatasetDraw"===i.drawTime&&fr(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vr=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class yr extends Zi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=d(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=Me(i.font),s=n.size,r=this._computeTitleHeight(),{boxWidth:o,itemHeight:a}=vr(i,s);let h,l;e.font=n.string,this.isHorizontal()?(h=this.maxWidth,l=this._fitRows(r,s,o,a)+10):(l=this.maxHeight,h=this._fitCols(r,s,o,a)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}
vendor: 3,230 bytes, line 2
2_fitRows(t,e,i,n){const{ctx:s,maxWidth:r,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],h=this.lineWidths=[0],l=n+o;let c=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-l;return this.legendItems.forEach((t,f)=>{const p=i+e/2+s.measureText(t.text).width;(0===f||h[h.length-1]+p+2*o>r)&&(c+=l,h[h.length-(f>0?0:1)]=0,d+=l,u++),a[f]={left:0,top:d,row:u,width:p,height:n},h[h.length-1]+=p+o}),c}_fitCols(t,e,i,n){const{ctx:s,maxHeight:r,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],h=this.columnSizes=[],l=r-t;let c=o,u=0,d=0,f=0,p=0;return this.legendItems.forEach((t,r)=>{const g=i+e/2+s.measureText(t.text).width;r>0&&d+n+2*o>l&&(c+=u+o,h.push({width:u,height:d}),f+=u+o,p++,u=d=0),a[r]={left:f,top:d,col:p,width:g,height:n},u=Math.max(u,g),d+=n+o}),c+=u,h.push({width:u,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,r=ci(s,this.left,this.width);if(this.isHorizontal()){let s=0,o=ot(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,o=ot(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=r.leftForLtr(r.x(o),a.width),o+=a.width+n}else{let s=0,o=ot(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,o=ot(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=o,a.left+=this.left+n,a.left=r.leftForLtr(r.x(a.left),a.width),o+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;he(t,this),this._draw(),le(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:r}=t,o=te.color,a=ci(t.rtl,this.left,this.width),h=Me(r.font),{color:l,padding:u}=r,d=h.size,f=d/2;let p;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=h.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=vr(r,d),x=this.isHorizontal(),v=this._computeTitleHeight();p=x?{x:ot(s,this.left+u,this.right-i[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:ot(s,this.top+v+u,this.bottom-e[0].height),line:0},ui(this.ctx,t.textDirection);const y=b+u;this.legendItems.forEach((_,w)=>{n.strokeStyle=_.fontColor||l,n.fillStyle=_.fontColor||l;const M=n.measureText(_.text).width,k=a.textAlign(_.textAlign||(_.textAlign=r.textAlign)),S=g+f+M;let P=p.x,E=p.y;a.setWidth(this.width),x?w>0&&P+S+u>this.right&&(E=p.y+=y,p.line++,P=p.x=ot(s,this.left+u,this.right-i[p.line])):w>0&&E+y>this.bottom&&(P=p.x=P+e[p.line].width+u,p.line++,E=p.y=ot(s,this.top+v+u,this.bottom-e[p.line].height));!function(t,e,i){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;n.save();const s=c(i.lineWidth,1);if(n.fillStyle=c(i.fillStyle,o),n.lineCap=c(i.lineCap,"butt"),n.lineDashOffset=c(i.lineDashOffset,0),n.lineJoin=c(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=c(i.strokeStyle,o),n.setLineDash(c(i.lineDash,[])),r.usePointStyle){const o={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},h=a.xPlus(t,g/2);oe(n,o,h,e+f,r.pointStyleWidth&&g)}else{const r=e+Math.max((d-m)/2,0),o=a.leftForLtr(t,g),h=_e(i.borderRadius);n.beginPath(),Object.values(h).some(t=>
vendor: 11,651 bytes, line 2
20!==t)?pe(n,{x:o,y:r,w:g,h:m,radius:h}):n.rect(o,r,g,m),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(P),E,_),P=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(k,P+g+f,x?P+S:this.right,t.rtl),function(t,e,i){de(n,i.text,t,e+b/2,h,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(P),E,_),x?p.x+=S+u:p.y+=y}),di(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Me(e.font),n=we(e.padding);if(!e.display)return;const s=ci(t.rtl,this.left,this.width),r=this.ctx,o=e.position,a=i.size/2,h=n.top+a;let l,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),l=this.top+h,c=ot(t.align,c,this.right-u);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);l=h+ot(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=ot(o,c,c+u);r.textAlign=s.textAlign(rt(o)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,de(r,e.text,d,l,i)}_computeTitleHeight(){const t=this.options.title,e=Me(t.font),i=we(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(K(t,this.left,this.right)&&K(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],K(t,n.left,n.left+n.width)&&K(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,o=(s=i,null!==(n=r)&&null!==s&&n.datasetIndex===s.datasetIndex&&n.index===s.index);r&&!o&&d(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&d(e.onHover,[t,i,this],this)}else i&&d(e.onClick,[t,i,this],this);var n,s}}var _r={id:"legend",_element:yr,start(t,e,i){const n=t.legend=new yr({ctx:t.ctx,options:i,chart:t});Nn.configure(t,n,i),Nn.addBox(t,n)},stop(t){Nn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Nn.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const o=t.controller.getStyle(i?0:void 0),a=we(o.borderWidth);return{text:e[t.index].label,fillStyle:o.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(a.width+a.height)/4,strokeStyle:o.borderColor,pointStyle:n||o.pointStyle,rotation:o.rotation,textAlign:s||o.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class wr extends Zi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=o(i.text)?i.text.length:1;this._padding=we(i.padding);const s=n*Me(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:r}=this,o=r.align;let a,h,l,c=0;return this.isHorizontal()?(h=ot(o,i,s),l=e+t,a=s-i):("left"===r.position?(h=i+t,l=ot(o,n,e),c=-.5*E):(h=s-t,l=ot(o,e,n),c=.5*E),a=n-e),{titleX:h,titleY:l,maxWidth:a,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Me(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:r,maxWidth:o,rotation:a}=this._drawArgs(n);de(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:a,textAlign:rt(e.align),textBaseline:"middle",translation:[s,r]})}}var Mr={id:"title",_element:wr,start(t,e,i){!function(t,e){const i=new wr({ctx:t.ctx,options:e,chart:t});Nn.configure(t,i,e),Nn.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Nn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Nn.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const kr=new WeakMap;var Sr={id:"subtitle",start(t,e,i){const n=new wr({ctx:t.ctx,options:i,chart:t});Nn.configure(t,n,i),Nn.addBox(t,n),kr.set(t,n)},stop(t){Nn.removeBox(t,kr.get(t)),kr.delete(t)},beforeUpdate(t,e,i){const n=kr.get(t);Nn.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Pr={average(t){if(!t.length)return!1;let e,i,n=0,s=0,r=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++r}}return{x:n/r,y:s/r}},nearest(t,e){if(!t.length)return!1;let i,n,s,r=e.x,o=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=$(e,n.getCenterPoint());t<a&&(a=t,s=n)}}if(s){const t=s.tooltipPosition();r=t.x,o=t.y}return{x:r,y:o}}};function Er(t,e){return e&&(o(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Or(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Rr(t,e){const{element:i,datasetIndex:n,index:s}=e,r=t.getDatasetMeta(n).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function Dr(t,e){const i=t.chart.ctx,{body:n,footer:s,title:r}=t,{boxWidth:o,boxHeight:a}=e,h=Me(e.bodyFont),l=Me(e.titleFont),c=Me(e.footerFont),u=r.length,d=s.length,p=n.length,g=we(e.padding);let m=g.height,b=0,x=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*l.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){m+=p*(e.displayColors?Math.max(a,h.lineHeight):h.lineHeight)+(x-p)*h.lineHeight+(x-1)*e.bodySpacing}d&&(m+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let v=0;const y=function(t){b=Math.max(b,i.measureText(t).width+v)};return i.save(),i.font=l.string,f(t.title,y),i.font=h.string,f(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?o+2+e.boxPadding:0,f(n,t=>{f(t.before,y),f(t.lines,y),f(t.after,y)}),v=0,i.font=c.string,f(t.footer,y),i.restore(),b+=g.width,{width:b,height:m}}function Ar(t,e,i,n){const{x:s,width:r}=i,{width:o,chartArea:{left:a,right:h}}=t;let l="center";return"center"===n?l=s<=(a+h)/2?"left":"right":s<=r/2?l="left":s>=o-r/2&&(l="right"),function(t,e,i,n){const{x:s,width:r}=n,o=i.caretSize+i.caretPadding;return"left"===t&&s+r+o>e.width||"right"===t&&s-r-o<0||void 0}(l,t,e,i)&&(l="center"),l}function Cr(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Ar(t,e,i,n),yAlign:n}}function Tr(t,e,i,n){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:h}=i,l=s+r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=_e(o);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,h,l);return"center"===h?"left"===a?p+=l:"right"===a&&(p-=l):"left"===a?p-=Math.max(c,d)+s:"right"===a&&(p+=Math.max(u,f)+s),{x:G(p,0,n.width-e.width),y:G(g,0,n.height-e.height)}}function Lr(t,e,i){const n=we(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ir(t){return Er([],Or(t))}function Fr(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class zr extends Zi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new Si(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,Se(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),s=i.title.apply(this,[t]),r=i.afterTitle.apply(this,[t]);let o=[];return o=Er(o,Or(n)),o=Er(o,Or(s)),o=Er(o,Or(r)),o}getBeforeBody(t,e){return Ir(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return f(t,t=>{const e={before:[],lines:[],after:[]},s=Fr(i,t);Er(e.before,Or(s.beforeLabel.call(this,t))),Er(e.lines,s.label.call(this,t)),Er(e.after,Or(s.afterLabel.call(this,t))),n.push(e)}),n}getAfterBody(t,e){return Ir(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),s=i.footer.apply(this,[t]),r=i.afterFooter.apply(this,[t]);let o=[];return o=Er(o,Or(n)),o=Er(o,Or(s)),o=Er(o,Or(r)),o}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],r=[];let o,a,h=[];for(o=0,a=e.length;o<a;++o)h.push(Rr(this.chart,e[o]));return t.filter&&(h=h.filter((e,n,s)=>t.filter(e,n,s,i))),t.itemSort&&(h=h.sort((e,n)=>t.itemSort(e,n,i))),f(h,e=>{const i=Fr(t.callbacks,e);n.push(i.labelColor.call(this,e)),s.push(i.labelPointStyle.call(this,e)),r.push(i.labelTextColor.call(this,e))}),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=r,this.dataPoints=h,h}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,r=[];if(n.length){const t=Pr[i.position].call(this,n,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const e=this._size=Dr(this,i),o=Object.assign({},t,e),a=Cr(this.chart,i,o),h=Tr(i,o,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0}
vendor: 25,999 bytes, line 2
2);this._tooltipItems=r,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:r,cornerRadius:o}=i,{topLeft:a,topRight:h,bottomLeft:l,bottomRight:c}=_e(o),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,x,v,y;return"center"===s?(v=d+p/2,"left"===n?(g=u,m=g-r,x=v+r,y=v-r):(g=u+f,m=g+r,x=v-r,y=v+r),b=g):(m="left"===n?u+Math.max(a,l)+r:"right"===n?u+f-Math.max(h,c)-r:this.caretX,"top"===s?(x=d,v=x-r,g=m-r,b=m+r):(x=d+p,v=x+r,g=m+r,b=m-r),y=x),{x1:g,x2:m,x3:b,y1:x,y2:v,y3:y}}drawTitle(t,e,i){const n=this.title,s=n.length;let r,o,a;if(s){const h=ci(i.rtl,this.x,this.width);for(t.x=Lr(this,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",r=Me(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,a=0;a<s;++a)e.fillText(n[a],h.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+o,a+1===s&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,n,s){const r=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:h,boxWidth:l,boxPadding:c}=s,u=Me(s.bodyFont),d=Lr(this,"left",s),f=n.x(d),p=h<u.lineHeight?(u.lineHeight-h)/2:0,g=e.y+p;if(s.usePointStyle){const e={radius:Math.min(l,h)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=n.leftForLtr(f,l)+l/2,a=g+h/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,re(t,e,i,a),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,re(t,e,i,a)}else{t.lineWidth=a(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=n.leftForLtr(f,l-c),i=n.leftForLtr(n.xPlus(f,1),l-c-2),o=_e(r.borderRadius);Object.values(o).some(t=>0!==t)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,pe(t,{x:e,y:g,w:l,h,radius:o}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),pe(t,{x:i,y:g+1,w:l-2,h:h-2,radius:o}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,g,l,h),t.strokeRect(e,g,l,h),t.fillStyle=r.backgroundColor,t.fillRect(i,g+1,l-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:r,displayColors:o,boxHeight:a,boxWidth:h,boxPadding:l}=i,c=Me(i.bodyFont);let u=c.lineHeight,d=0;const p=ci(i.rtl,this.x,this.width),g=function(i){e.fillText(i,p.x(t.x+d),t.y+u/2),t.y+=u+s},m=p.textAlign(r);let b,x,v,y,_,w,M;for(e.textAlign=r,e.textBaseline="middle",e.font=c.string,t.x=Lr(this,m,i),e.fillStyle=i.bodyColor,f(this.beforeBody,g),d=o&&"right"!==m?"center"===r?h/2+l:h+2+l:0,y=0,w=n.length;y<w;++y){for(b=n[y],x=this.labelTextColors[y],e.fillStyle=x,f(b.before,g),v=b.lines,o&&v.length&&(this._drawColorBox(e,t,y,p,i),u=Math.max(c.lineHeight,a)),_=0,M=v.length;_<M;++_)g(v[_]),u=c.lineHeight;f(b.after,g)}d=0,u=c.lineHeight,f(this.afterBody,g),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let r,o;if(s){const a=ci(i.rtl,this.x,this.width);for(t.x=Lr(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",r=Me(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,o=0;o<s;++o)e.fillText(n[o],a.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:r}=this,{x:o,y:a}=t,{width:h,height:l}=i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=_e(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(o+c,a),"top"===r&&this.drawCaret(t,e,i,n),e.lineTo(o+h-u,a),e.quadraticCurveTo(o+h,a,o+h,a+u),"center"===r&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(o+h,a+l-f),e.quadraticCurveTo(o+h,a+l,o+h-f,a+l),"bottom"===r&&this.drawCaret(t,e,i,n),e.lineTo(o+d,a+l),e.quadraticCurveTo(o,a+l,o,a+l-d),"center"===r&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(o,a+c),e.quadraticCurveTo(o,a,o+c,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Pr[t.position].call(this,this._active,this._eventPosition);if(!i)return;const r=this._size=Dr(this,t),o=Object.assign({},i,this._size),a=Cr(e,t,o),h=Tr(t,o,a,e);n._to===h.x&&s._to===h.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=we(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),ui(t,e.textDirection),s.y+=r.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),di(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!p(i,n),r=this._positionChanged(n,e);(s||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],r=this._getActiveElements(t,s,e,i),o=this._positionChanged(r,t),a=e||!p(r,s)||o;return a&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e;const r=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,r=Pr[s.position].call(this,t,e);return!1!==r&&(i!==r.x||n!==r.y)}}zr.positioners=Pr;var Nr={id:"tooltip",_element:zr,positioners:Pr,afterInit(t,e,i){i&&(t.tooltip=new zr({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:n,beforeBody:n,beforeLabel:n,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return r(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:n,afterBody:n,beforeFooter:n,footer:n,afterFooter:n}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},jr=Object.freeze({__proto__:null,Decimation:er,Filler:xr,Legend:_r,SubTitle:Sr,Title:Mr,Tooltip:Nr});function Br(t,e,i,n){const s=t.indexOf(e);if(-1===s)return((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return s!==t.lastIndexOf(e)?i:s}class Vr extends un{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(r(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:G(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Br(i,t,c(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Wr(t,e){const i=[],{bounds:n,step:s,min:o,max:a,precision:h,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,f=s||1,p=c-1,{min:g,max:m}=e,b=!r(o),x=!r(a),v=!r(l),y=(m-g)/(u+1);let _,w,M,k,S=z((m-g)/p/f)*f;if(S<1e-14&&!b&&!x)return[{value:g},{value:m}];k=Math.ceil(m/S)-Math.floor(g/S),k>p&&(S=z(k*S/p/f)*f),r(h)||(_=Math.pow(10,h),S=Math.ceil(S*_)/_),"ticks"===n?(w=Math.floor(g/S)*S,M=Math.ceil(m/S)*S):(w=g,M=m),b&&x&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((a-o)/s,S/1e3)?(k=Math.round(Math.min((a-o)/S,c)),S=(a-o)/k,w=o,M=a):v?(w=b?o:w,M=x?a:M,k=l-1,S=(M-w)/k):(k=(M-w)/S,k=j(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const P=Math.max(H(S),H(w));_=Math.pow(10,r(h)?P:h),w=Math.round(w*_)/_,M=Math.round(M*_)/_;let E=0;for(b&&(d&&w!==o?(i.push({value:o}),w<o&&E++,j(Math.round((w+E*S)*_)/_,o,Hr(o,y,t))&&E++):w<o&&E++);E<k;++E)i.push({value:Math.round((w+E*S)*_)/_});return x&&d&&M!==a?i.length&&j(i[i.length-1].value,a,Hr(a,y,t))?i[i.length-1].value=a:i.push({value:a}):x&&M!==a||i.push({value:M}),i}function Hr(t,e,{horizontal:i,minRotation:n}){const s=V(n),r=(i?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}Vr.id="category",Vr.defaults={ticks:{callback:Vr.prototype.getLabelForValue}};class Ur extends un{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return r(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const r=t=>n=e?n:t,o=t=>s=i?s:t;if(t){const t=F(n),e=F(s);t<0&&e<0?o(0):t>0&&e>0&&r(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),o(s+e),t||r(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=Wr({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&B(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return li(t,this.chart.options.locale,this.options.ticks.format)}}class $r extends Ur{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?t:0,this.max=h(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=V(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Yr(t){return 1===t/Math.pow(10,Math.floor(I(t)))}$r.id="linear",$r.defaults={ticks:{callback:en.formatters.numeric}};class qr extends un{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ur.prototype.parse.apply(this,[t,e]);if(0!==i)return h(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?Math.max(0,t):null,this.max=h(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,r=t=>n=e?n:t,o=(t,e)=>Math.pow(10,Math.floor(I(t))+e);i===n&&(i<=0?(s(1),r(10)):(s(o(i,-1)),r(o(n,1)))),i<=0&&s(o(n,-1)),n<=0&&r(o(i,1)),this._zero&&this.min!==this._suggestedMin&&i===o(this.min,0)&&s(o(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(I(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[];let r=l(t.min,Math.pow(10,Math.floor(I(e.min)))),o=Math.floor(I(r)),a=Math.floor(r/Math.pow(10,o)),h=o<0?Math.pow(10,Math.abs(o)):1;do{s.push({value:r,major:Yr(r)}),++a,10===a&&(a=1,++o,h=o>=0?1:h),r=Math.round(a*Math.pow(10,o)*h)/h}while(o<i||o===i&&a<n);const c=l(t.max,r);return s.push({value:c,major:Yr(r)}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&B(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":li(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=I(t),this._valueRange=I(this.max)-I(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(I(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Xr(t){const e=t.ticks;if(e.display&&t.display){const t=we(e.backdropPadding);return c(e.font&&e.font.size,te.font.size)+t.height}return 0}function Gr(t,e,i){return i=o(i)?i:[i],{w:ie(t,e.string,i),h:i.length*e.lineHeight}}function Kr(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function Jr(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],r=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?E/r:0;for(let h=0;h<r;h++){const r=o.setContext(t.getPointLabelContext(h));s[h]=r.padding;const l=t.getPointPosition(h,t.drawingArea+s[h],a),c=Me(r.font),u=Gr(t.ctx,c,t._pointLabels[h]);n[h]=u;const d=q(t.getIndexAngle(h)+a),f=Math.round(W(d));Qr(i,e,d,Kr(f,l.x,u.w,0,180),Kr(f,l.y,u.h,90,270))}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const n=[],s=t._pointLabels.length,r=t.options,o=Xr(r)/2,a=t.drawingArea,h=r.pointLabels.centerPointLabels?E/s:0;for(let r=0;r<s;r++){const s=t.getPointPosition(r,a+o+i[r],h),l=Math.round(W(q(s.angle+C))),c=e[r],u=eo(s.y,c.h,l),d=Zr(l),f=to(s.x,c.w,d);n.push({x:s.x,y:u,textAlign:d,left:f,top:u,right:f+c.w,bottom:u+c.h})}return n}(t,n,s)}function Qr(t,e,i,n,s){const r=Math.abs(Math.sin(i)),o=Math.abs(Math.cos(i));let a=0,h=0;n.start<e.l?(a=(e.l-n.start)/r,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(h=(e.t-s.start)/o,t.t=Math.min(t.t,e.t-h)):s.end>e.b&&(h=(s.end-e.b)/o,t.b=Math.max(t.b,e.b+h))}function Zr(t){return 0===t||180===t?"center":t<180?"left":"right"}function to(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function eo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function io(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,O);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let r=1;r<n;r++)i=t.getPointPosition(r,e),s.lineTo(i.x,i.y)}}qr.id="logarithmic",qr.defaults={ticks:{callback:en.formatters.logarithmic,major:{enabled:!0}}};class no extends Ur{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=we(Xr(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=h(t)&&!isNaN(t)?t:0,this.max=h(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Xr(this.options))}generateTickLabels(t){Ur.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=d(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Jr(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return q(t*(O/(this._pointLabels.length||1))+V(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(r(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(r(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return Se(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-C+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),io(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n}=e,s=this._pointLabels.length;let o,a,h;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=n.setContext(t.getPointLabelContext(s)),o=Me(e.font),{x:a,y:h,textAlign:l,left:c,top:u,right:d,bottom:f}=t._pointLabelItems[s],{backdropColor:p}=e;if(!r(p)){const t=_e(e.borderRadius),n=we(e.backdropPadding);i.fillStyle=p;const s=c-n.left,r=u-n.top,o=d-c+n.width,a=f-u+n.height;Object.values(t).some(t=>0!==t)?(i.beginPath(),pe(i,{x:s,y:r,w:o,h:a,radius:t}),i.fill()):i.fillRect(s,r,o,a)}de(i,t._pointLabels[s],a,h+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,s),n.display&&this.ticks.forEach((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,n){const s=t.ctx,r=e.circular,{color:o,lineWidth:a}=e;!r&&!n||!o||!a||i<0||(s.save(),s.strokeStyle=o,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),io(t,i,r,n),s.closePath(),s.stroke(),s.restore())}(this,n.setContext(this.getContext(e-1)),a,s)}}),i.display){for(t.save(),o=s-1;o>=0;o--){const n=i.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:r}=n;r&&s&&(t.lineWidth=r,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),h=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((n,o)=>{if(0===o&&!e.reverse)return;const a=i.setContext(this.getContext(o)),h=Me(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[o].value),a.showLabelBackdrop){t.font=h.string,r=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=we(a.backdropPadding);t.fillRect(-r/2-e.left,-s-h.size/2-e.top,r+e.width,h.size+e.height)}de(t,n.label,0,-s,h,{color:a.color})}),t.restore()}drawTitle(){}}no.id="radialLinear",no.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:en.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},no.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},no.descriptors={angleLines:{_fallback:"grid"}};const so={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ro=Object.keys(so);function oo(t,e){return t-e}function ao(t,e){if(r(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof n&&(a=n(a)),h(a)||(a="string"==typeof n?i.parse(a,n):i.parse(a)),null===a?null:(s&&(a="week"!==s||!N(o)&&!0!==o?i.startOf(a,s):i.startOf(a,"isoWeek",o)),+a)}function ho(t,e,i,n){const s=ro.length;for(let r=ro.indexOf(t);r<s-1;++r){const t=so[ro[r]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return ro[r]}return ro[s-1]}function lo(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=J(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function co(t,e,i){const n=[],s={},r=e.length;let o,a;for(o=0;o<r;++o)a=e[o],s[a]=o,n.push({value:a,major:!1});return 0!==r&&i?function(t,e,i,n){const s=t._adapter,r=+s.startOf(e[0].value,n),o=e[e.length-1].value;let a,h;for(a=r;a<=o;a=+s.add(a,1,n))h=i[a],h>=0&&(e[h].major=!0);return e}(t,n,s,i):n}class uo extends un{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new xn._date(t.adapters.date);n.init(e),v(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ao(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:r,maxDefined:o}=this.getUserBounds();function a(t){r||isNaN(t.min)||(n=Math.min(n,t.min)),o||isNaN(t.max)||(s=Math.max(s,t.max))}r&&o||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=h(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=h(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);
vendor: 3,732 bytes, line 2
2const s=this.min,r=function(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}(n,s,this.max);return this._unit=e.unit||(i.autoSkip?ho(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let r=ro.length-1;r>=ro.indexOf(i);r--){const i=ro[r];if(so[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return ro[i?ro.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=ro.indexOf(t)+1,i=ro.length;e<i;++e)if(so[ro[e]].common)return ro[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&r.reverse(),co(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=G(n,0,r),s=G(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,r=s.unit||ho(s.minUnit,e,i,this._getLabelCapacity(e)),o=c(s.stepSize,1),a="week"===r&&s.isoWeekday,h=N(a)||!0===a,l={};let u,d,f=e;if(h&&(f=+t.startOf(f,"isoWeek",a)),f=+t.startOf(f,h?"day":r),t.diff(i,e,r)>1e5*o)throw new Error(e+" and "+i+" are too far apart with stepSize of "+o+" "+r);const p="data"===n.ticks.source&&this.getDataTimestamps();for(u=f,d=0;u<i;u=+t.add(u,o,r),d++)lo(l,u,p);return u!==i&&"ticks"!==n.bounds&&1!==d||lo(l,u,p),Object.keys(l).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const s=this.options,r=s.time.displayFormats,o=this._unit,a=this._majorUnit,h=o&&r[o],l=a&&r[a],c=i[e],u=a&&l&&c&&c.major,f=this._adapter.format(t,n||(u?l:h)),p=s.ticks.callback;return p?d(p,[f,e,i],this):f}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=V(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),r=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:i*s+o*r,h:i*r+o*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,co(this,[t],this._majorUnit),n),r=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return o>0?o:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(ao(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return it(t.sort(oo))}}function fo(t,e,i){let n,s,r,o,a=0,h=t.length-1;i?(e>=t[a].pos&&e<=t[h].pos&&({lo:a,hi:h}=Q(t,"pos",e)),({pos:n,time:r}=t[a]),({pos:s,time:o}
vendor: 1,561 bytes, line 2
2=t[h])):(e>=t[a].time&&e<=t[h].time&&({lo:a,hi:h}=Q(t,"time",e)),({time:n,pos:r}=t[a]),({time:s,pos:o}=t[h]));const l=s-n;return l?r+(o-r)*(e-n)/l:r}uo.id="time",uo.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class po extends uo{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=fo(e,this.min),this._tableRange=fo(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let r,o,a,h,l;for(r=0,o=t.length;r<o;++r)h=t[r],h>=e&&h<=i&&n.push(h);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,o=n.length;r<o;++r)l=n[r+1],a=n[r-1],h=n[r],Math.round((l+a)/2)!==h&&s.push({time:h,pos:r/(o-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(fo(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return fo(this._table,i*this._tableRange+this._minPos,!0)}}po.id="timeseries",po.defaults=uo.defaults;const go=[gn,Qs,jr,Object.freeze({__proto__:null,CategoryScale:Vr,LinearScale:$r,LogarithmicScale:qr,RadialLinearScale:no,TimeScale:uo,TimeSeriesScale:po})]}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.