mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 03:07:56 +00:00
2 lines
303 KiB
JavaScript
2 lines
303 KiB
JavaScript
/*! For license information please see modu.b2b9f8184a4b1ea4.js.LICENSE.txt */
|
||
(("undefined"!=typeof self?self:this).webpackChunk_pezkuwi_apps=("undefined"!=typeof self?self:this).webpackChunk_pezkuwi_apps||[]).push([[2701],{3468(t){"use strict";t.exports=TypeError},5731(t){"use strict";t.exports=SyntaxError},6095(t){"use strict";t.exports=Function.prototype.apply},7131(t,e,i){"use strict";var n=e;n.base=i(85174),n.short=i(60277),n.mont=i(63245),n.edwards=i(21547)},13257(t,e,i){"use strict";var n=i(35615),s=i(63275),a=i(25586),r=i(13229),o=i(47589);function c(t){o.call(this,"digest"),this._hash=t}n(c,o),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new s:"rmd160"===t||"ripemd160"===t?new a:new c(r(t))}},13360(t,e,i){"use strict";var n=e;n.version=i(30183).rE,n.utils=i(41874),n.rand=i(47048),n.curve=i(7131),n.curves=i(86443),n.ec=i(15064),n.eddsa=i(84807)},14607(t,e,i){"use strict";var n=i(528),s=i(79903),a=s([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&a(t,".prototype.")>-1?s([i]):i}},15064(t,e,i){"use strict";var n=i(82823),s=i(84742),a=i(41874),r=i(86443),o=i(47048),c=a.assert,d=i(47531),h=i(57782);function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(c(Object.prototype.hasOwnProperty.call(r,t),"Unknown curve "+t),t=r[t]),t instanceof r.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new d(this,t)},f.prototype.keyFromPrivate=function(t,e){return d.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return d.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new s({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),a=this.n.sub(new n(2));;){var r=new n(e.generate(i));if(!(r.cmp(a)>0))return r.iaddn(1),this.keyFromPrivate(r)}},f.prototype._truncateToN=function(t,e,i){var s;if(n.isBN(t)||"number"==typeof t)s=(t=new n(t,16)).byteLength();else if("object"==typeof t)s=t.length,t=new n(t,16);else{var a=t.toString();s=a.length+1>>>1,t=new n(a,16)}"number"!=typeof i&&(i=8*s);var r=i-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,i,a){if("object"==typeof i&&(a=i,i=null),a||(a={}),"string"!=typeof t&&"number"!=typeof t&&!n.isBN(t)){c("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(t.length>>>0===t.length);for(var r=0;r<t.length;r++)c((255&t[r])===t[r])}e=this.keyFromPrivate(e,i),t=this._truncateToN(t,!1,a.msgBitLength),c(!t.isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),d=e.getPrivate().toArray("be",o),f=t.toArray("be",o);c(new n(f).eq(t),"Can not sign message");for(var l=new s({hash:this.hash,entropy:d,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new n(1)),b=0;;b++){var p=a.k?a.k(b):new n(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(u)>=0)){var g=this.g.mul(p);if(!g.isInfinity()){var m=g.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var x=p.invm(this.n).mul(y.mul(e.getPrivate()).iadd(t));if(0!==(x=x.umod(this.n)).cmpn(0)){var v=(g.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return a.canonical&&x.cmp(this.nh)>0&&(x=this.n.sub(x),v^=1),new h({r:y,s:x,recoveryParam:v})}}}}}},f.prototype.verify=function(t,e,i,n,s){s||(s={}),t=this._truncateToN(t,!1,s.msgBitLength),i=this.keyFromPublic(i,n);var a=(e=new h(e,"hex")).r,r=e.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;var o,c=r.invm(this.n),d=c.mul(t).umod(this.n),f=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(d,i.getPublic(),f)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(d,i.getPublic(),f)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},f.prototype.recoverPubKey=function(t,e,i,s){c((3&i)===i,"The recovery param is more than two bits"),e=new h(e,s);var a=this.n,r=new n(t),o=e.r,d=e.s,f=1&i,l=i>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var u=e.r.invm(a),b=a.sub(r).mul(u).umod(a),p=d.mul(u).umod(a);return this.g.mulAdd(b,o,p)},f.prototype.getKeyRecoveryParam=function(t,e,i,n){if(null!==(e=new h(e,n)).recoveryParam)return e.recoveryParam;for(var s=0;s<4;s++){var a;try{a=this.recoverPubKey(t,e,s)}catch(t){continue}if(a.eq(i))return s}throw new Error("Unable to find valid recovery factor")}},18401(t,e,i){"use strict";var n=i(82823),s=i(41874),a=s.assert,r=s.cachedProperty,o=s.parseBytes;function c(t,e){this.eddsa=t,"object"!=typeof e&&(e=o(e)),Array.isArray(e)&&(a(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),a(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}r(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),r(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),r(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),r(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return s.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},21547(t,e,i){"use strict";var n=i(41874),s=i(82823),a=i(35615),r=i(85174),o=n.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,r.call(this,"edwards",t),this.a=new s(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function d(t,e,i,n,a){r.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(e,16),this.y=new s(i,16),this.z=n?new s(n,16):this.curve.one,this.t=a&&new s(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,r),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,i,n){return this.point(t,e,i,n)},c.prototype.pointFromX=function(t,e){(t=new s(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=this.c2.redSub(this.a.redMul(i)),a=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=n.redMul(a.redInvm()),o=r.redSqrt();if(0!==o.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var c=o.fromRed().isOdd();return(e&&!c||!e&&c)&&(o=o.redNeg()),this.point(t,o)},c.prototype.pointFromY=function(t,e){(t=new s(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),n=i.redSub(this.c2),a=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=n.redMul(a.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var o=r.redSqrt();if(0!==o.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==e&&(o=o.redNeg()),this.point(o,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),n=e.redMul(this.a).redAdd(i),s=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===n.cmp(s)},a(d,r.BasePoint),c.prototype.pointFromJSON=function(t){return d.fromJSON(this,t)},c.prototype.point=function(t,e,i,n){return new d(this,t,e,i,n)},d.fromJSON=function(t,e){return new d(t,e[0],e[1],e[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(t),s=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),a=n.redAdd(e),r=a.redSub(i),o=n.redSub(e),c=s.redMul(r),d=a.redMul(o),h=s.redMul(o),f=r.redMul(a);return this.curve.point(c,d,f,h)},d.prototype._projDbl=function(){var t,e,i,n,s,a,r=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var d=(n=this.curve._mulA(o)).redAdd(c);this.zOne?(t=r.redSub(o).redSub(c).redMul(d.redSub(this.curve.two)),e=d.redMul(n.redSub(c)),i=d.redSqr().redSub(d).redSub(d)):(s=this.z.redSqr(),a=d.redSub(s).redISub(s),t=r.redSub(o).redISub(c).redMul(a),e=d.redMul(n.redSub(c)),i=d.redMul(a))}else n=o.redAdd(c),s=this.curve._mulC(this.z).redSqr(),a=n.redSub(s).redSub(s),t=this.curve._mulC(r.redISub(n)).redMul(a),e=this.curve._mulC(n).redMul(o.redISub(c)),i=n.redMul(a);return this.curve.point(t,e,i)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),s=this.z.redMul(t.z.redAdd(t.z)),a=i.redSub(e),r=s.redSub(n),o=s.redAdd(n),c=i.redAdd(e),d=a.redMul(r),h=o.redMul(c),f=a.redMul(c),l=r.redMul(o);return this.curve.point(d,h,l,f)},d.prototype._projAdd=function(t){var e,i,n=this.z.redMul(t.z),s=n.redSqr(),a=this.x.redMul(t.x),r=this.y.redMul(t.y),o=this.curve.d.redMul(a).redMul(r),c=s.redSub(o),d=s.redAdd(o),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(r),f=n.redMul(c).redMul(h);return this.curve.twisted?(e=n.redMul(d).redMul(r.redSub(this.curve._mulA(a))),i=c.redMul(d)):(e=n.redMul(d).redMul(r.redSub(a)),i=this.curve._mulC(c).redMul(d)),this.curve.point(f,e,i)},d.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},d.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},d.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},d.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},24661(t,e,i){"use strict";i.d(e,{o0:()=>u});var n=i(39907),s=function(t,e,i){if(i||2===arguments.length)for(var n,s=0,a=e.length;s<a;s++)!n&&s in e||(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return t.concat(n||Array.prototype.slice.call(e))},a=function(t,e,i){this.name=t,this.version=e,this.os=i,this.type="browser"},r=function(t){this.version=t,this.type="node",this.name="node",this.os=n.platform},o=function(t,e,i,n){this.name=t,this.version=e,this.os=i,this.bot=n,this.type="bot-device"},c=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},d=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},h=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function u(t){return t?b(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new d:"undefined"!=typeof navigator?b(navigator.userAgent):void 0!==n&&n.version?new r(n.version.slice(1)):null}function b(t){var e=function(t){return""!==t&&f.reduce(function(e,i){var n=i[0],s=i[1];if(e)return e;var a=s.exec(t);return!!a&&[n,a]},!1)}(t);if(!e)return null;var i=e[0],n=e[1];if("searchbot"===i)return new c;var r=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);r?r.length<3&&(r=s(s([],r,!0),function(t){for(var e=[],i=0;i<t;i++)e.push("0");return e}(3-r.length),!0)):r=[];var d=r.join("."),u=function(t){for(var e=0,i=l.length;e<i;e++){var n=l[e],s=n[0];if(n[1].exec(t))return s}return null}(t),b=h.exec(t);return b&&b[1]?new o(i,d,u,b[1]):new a(i,d,u)}},27037(t,e,i){"use strict";i.d(e,{$:()=>Xt,A:()=>at,B:()=>st,C:()=>qt,D:()=>G,E:()=>re,F:()=>p,G:()=>Ne,H:()=>z,I:()=>Te,J:()=>He,K:()=>We,L:()=>lt,M:()=>Ee,N:()=>H,O:()=>h,P:()=>O,Q:()=>b,R:()=>de,S:()=>tt,T:()=>E,U:()=>Y,V:()=>jt,W:()=>et,X:()=>Bt,Y:()=>$t,Z:()=>Kt,_:()=>ht,a:()=>ce,a0:()=>oe,a1:()=>bt,a2:()=>pt,a3:()=>Tt,a4:()=>v,a5:()=>k,a6:()=>Dt,a7:()=>P,a8:()=>le,a9:()=>fe,aA:()=>Xe,aB:()=>Ye,aC:()=>gt,aD:()=>Ue,aE:()=>Vt,aF:()=>J,aG:()=>s,aH:()=>$,aI:()=>W,aJ:()=>q,aK:()=>B,aL:()=>U,aM:()=>Et,aN:()=>j,aO:()=>Nt,aP:()=>rt,aQ:()=>nt,aa:()=>ue,ab:()=>_,ac:()=>a,ad:()=>ut,ae:()=>Be,af:()=>Wt,ag:()=>C,ah:()=>si,ai:()=>g,aj:()=>I,ak:()=>it,al:()=>Q,am:()=>ne,an:()=>Oe,ao:()=>Ze,ap:()=>Qe,aq:()=>qe,ar:()=>$e,as:()=>Ve,at:()=>Yt,au:()=>Ut,av:()=>Ht,aw:()=>Qt,ax:()=>se,ay:()=>ae,az:()=>Ke,b:()=>o,b4:()=>R,b5:()=>F,b6:()=>L,c:()=>Mt,d:()=>Lt,e:()=>wt,f:()=>M,g:()=>d,h:()=>A,i:()=>c,j:()=>he,k:()=>r,l:()=>ct,m:()=>l,n:()=>u,o:()=>It,p:()=>Z,q:()=>mt,r:()=>ft,s:()=>N,t:()=>X,u:()=>dt,v:()=>f,w:()=>yt,x:()=>V,y:()=>Me,z:()=>Le});var n=i(86892);function s(){}const a=(()=>{let t=0;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 c(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function d(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function h(t,e){return d(t)?t:e}function f(t,e){return void 0===t?e:t}const l=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function b(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function p(t,e,i,n){let s,a,r;if(o(t))if(a=t.length,n)for(s=a-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<a;s++)e.call(i,t[s],s);else if(c(t))for(r=Object.keys(t),a=r.length,s=0;s<a;s++)e.call(i,t[r[s]],r[s])}function g(t,e){let i,n,s,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],a=e[i],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function m(t){if(o(t))return t.map(m);if(c(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=m(t[i[s]]);return e}return t}function y(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function x(t,e,i,n){if(!y(t))return;const s=e[t],a=i[t];c(s)&&c(a)?v(s,a,n):e[t]=m(a)}function v(t,e,i){const n=o(e)?e:[e],s=n.length;if(!c(t))return t;const a=(i=i||{}).merger||x;let r;for(let e=0;e<s;++e){if(r=n[e],!c(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;++e)a(s[e],t,r,i)}return t}function _(t,e){return v(t,e,{merger:w})}function w(t,e,i){if(!y(t))return;const n=e[t],s=i[t];c(n)&&c(s)?_(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m(s))}const S={"":t=>t,x:t=>t.x,y:t=>t.y};function M(t,e){const i=S[e]||(S[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 k(t){return t.charAt(0).toUpperCase()+t.slice(1)}const A=t=>void 0!==t,P=t=>"function"==typeof t,C=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function I(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const O=Math.PI,E=2*O,T=E+O,D=Number.POSITIVE_INFINITY,R=O/180,z=O/2,F=O/4,L=2*O/3,j=Math.log10,N=Math.sign;function B(t,e,i){return Math.abs(t-e)<i}function W(t){const e=Math.round(t);t=B(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(j(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function H(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}function V(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function $(t,e,i){let n,s,a;for(n=0,s=t.length;n<s;n++)a=t[n][i],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function X(t){return t*(O/180)}function Y(t){return t*(180/O)}function U(t){if(!d(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function G(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let a=Math.atan2(n,i);return a<-.5*O&&(a+=E),{angle:a,distance:s}}function J(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function K(t,e){return(t-e+T)%E-O}function Q(t){return(t%E+E)%E}function Z(t,e,i,n){const s=Q(t),a=Q(e),r=Q(i),o=Q(a-s),c=Q(r-s),d=Q(s-a),h=Q(s-r);return s===a||s===r||n&&a===r||o>c&&d<h}function tt(t,e,i){return Math.max(e,Math.min(i,t))}function et(t){return tt(t,-32768,32767)}function it(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function nt(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,a=0;for(;s-a>1;)n=a+s>>1,i(n)?a=n:s=n;return{lo:a,hi:s}}const st=(t,e,i,n)=>nt(t,i,n?n=>{const s=t[n][e];return s<i||s===i&&t[n+1][e]===i}:n=>t[n][e]<i),at=(t,e,i)=>nt(t,i,n=>t[n][e]>=i);function rt(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}const ot=["push","pop","shift","splice","unshift"];function ct(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ot.forEach(e=>{const i="_onData"+k(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...e)}),s}})}))}function dt(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>0||(ot.forEach(e=>{delete t[e]}),delete t._chartjs)}function ht(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ft="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function lt(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,ft.call(window,()=>{n=!1,t.apply(e,i)}))}}function ut(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}const bt=t=>"start"===t?"left":"end"===t?"right":"center",pt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,gt=(t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e;function mt(t,e,i){const n=e.length;let s=0,a=n;if(t._sorted){const{iScale:o,vScale:c,_parsed:d}=t,h=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,f=o.axis,{min:l,max:u,minDefined:b,maxDefined:p}=o.getUserBounds();if(b){if(s=Math.min(st(d,f,l).lo,i?n:st(e,f,o.getPixelForValue(l)).lo),h){const t=d.slice(0,s+1).reverse().findIndex(t=>!r(t[c.axis]));s-=Math.max(0,t)}s=tt(s,0,n-1)}if(p){let t=Math.max(st(d,o.axis,u,!0).hi+1,i?0:st(e,f,o.getPixelForValue(u),!0).hi+1);if(h){const e=d.slice(t-1).findIndex(t=>!r(t[c.axis]));t+=Math.max(0,e)}a=tt(t,s,n)-s}else a=n-s}return{start:s,count:a}}function yt(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 a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),a}const xt=t=>0===t||1===t,vt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*E/i),_t=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*E/i)+1,wt={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*z),easeOutSine:t=>Math.sin(t*z),easeInOutSine:t=>-.5*(Math.cos(O*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=>xt(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=>xt(t)?t:vt(t,.075,.3),easeOutElastic:t=>xt(t)?t:_t(t,.075,.3),easeInOutElastic(t){const e=.1125;return xt(t)?t:t<.5?.5*vt(2*t,e,.45):.5+.5*_t(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-wt.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*wt.easeInBounce(2*t):.5*wt.easeOutBounce(2*t-1)+.5};function St(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Mt(t){return St(t)?t:new n.Q1(t)}function kt(t){return St(t)?t:new n.Q1(t).saturate(.5).darken(.1).hexString()}const At=["x","y","borderWidth","radius","tension"],Pt=["color","borderColor","backgroundColor"],Ct=new Map;function It(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Ct.get(i);return n||(n=new Intl.NumberFormat(t,e),Ct.set(i,n)),n}(e,i).format(t)}const Ot={values:t=>o(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,a=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"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const r=j(Math.abs(a)),o=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(c,this.options.ticks.format),It(t,n,c)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(j(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?Ot.numeric.call(this,t,e,i):""}};var Et={formatters:Ot};const Tt=Object.create(null),Dt=Object.create(null);function Rt(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?v(Rt(t,e),i):v(Rt(t,""),e)}class Ft{constructor(t,e){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)=>kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>kt(e.borderColor),this.hoverColor=(t,e)=>kt(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={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return zt(this,t,e)}get(t){return Rt(this,t)}describe(t,e){return zt(Dt,t,e)}override(t,e){return zt(Tt,t,e)}route(t,e,i,n){const s=Rt(this,t),a=Rt(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[n];return c(t)?Object.assign({},e,t):f(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach(t=>t(this))}}var Lt=new Ft({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Pt},numbers:{type:"number",properties:At}}),t.describe("animations",{_fallback:"animation"}),t.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}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:Et.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function jt(t,e,i,n,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,i.push(s)),a>n&&(n=a),n}function Nt(t,e,i,n){let s=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const c=i.length;let d,h,f,l,u;for(d=0;d<c;d++)if(l=i[d],null==l||o(l)){if(o(l))for(h=0,f=l.length;h<f;h++)u=l[h],null==u||o(u)||(r=jt(t,s,a,r,u))}else r=jt(t,s,a,r,l);t.restore();const b=a.length/2;if(b>i.length){for(d=0;d<b;d++)delete s[a[d]];a.splice(0,b)}return r}function Bt(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 Wt(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ht(t,e,i,n){Vt(t,e,i,n,null)}function Vt(t,e,i,n,s){let a,r,o,c,d,h,f,l;const u=e.pointStyle,b=e.rotation,p=e.radius;let g=(b||0)*R;if(u&&"object"==typeof u&&(a=u.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(i,n),t.rotate(g),t.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),u){default:s?t.ellipse(i,n,s/2,p,0,0,E):t.arc(i,n,p,0,E),t.closePath();break;case"triangle":h=s?s/2:p,t.moveTo(i+Math.sin(g)*h,n-Math.cos(g)*p),g+=L,t.lineTo(i+Math.sin(g)*h,n-Math.cos(g)*p),g+=L,t.lineTo(i+Math.sin(g)*h,n-Math.cos(g)*p),t.closePath();break;case"rectRounded":d=.516*p,c=p-d,r=Math.cos(g+F)*c,f=Math.cos(g+F)*(s?s/2-d:c),o=Math.sin(g+F)*c,l=Math.sin(g+F)*(s?s/2-d:c),t.arc(i-f,n-o,d,g-O,g-z),t.arc(i+l,n-r,d,g-z,g),t.arc(i+f,n+o,d,g,g+z),t.arc(i-l,n+r,d,g+z,g+O),t.closePath();break;case"rect":if(!b){c=Math.SQRT1_2*p,h=s?s/2:c,t.rect(i-h,n-c,2*h,2*c);break}g+=F;case"rectRot":f=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,o=Math.sin(g)*p,l=Math.sin(g)*(s?s/2:p),t.moveTo(i-f,n-o),t.lineTo(i+l,n-r),t.lineTo(i+f,n+o),t.lineTo(i-l,n+r),t.closePath();break;case"crossRot":g+=F;case"cross":f=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,o=Math.sin(g)*p,l=Math.sin(g)*(s?s/2:p),t.moveTo(i-f,n-o),t.lineTo(i+f,n+o),t.moveTo(i+l,n-r),t.lineTo(i-l,n+r);break;case"star":f=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,o=Math.sin(g)*p,l=Math.sin(g)*(s?s/2:p),t.moveTo(i-f,n-o),t.lineTo(i+f,n+o),t.moveTo(i+l,n-r),t.lineTo(i-l,n+r),g+=F,f=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,o=Math.sin(g)*p,l=Math.sin(g)*(s?s/2:p),t.moveTo(i-f,n-o),t.lineTo(i+f,n+o),t.moveTo(i+l,n-r),t.lineTo(i-l,n+r);break;case"line":r=s?s/2:Math.cos(g)*p,o=Math.sin(g)*p,t.moveTo(i-r,n-o),t.lineTo(i+r,n+o);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(g)*(s?s/2:p),n+Math.sin(g)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function qt(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 $t(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Xt(t){t.restore()}function Yt(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 Ut(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 Gt(t,e,i,n,s){if(s.strikethrough||s.underline){const a=t.measureText(n),r=e-a.actualBoundingBoxLeft,o=e+a.actualBoundingBoxRight,c=i-a.actualBoundingBoxAscent,d=i+a.actualBoundingBoxDescent,h=s.strikethrough?(c+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(o,h),t.stroke()}}function Jt(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Kt(t,e,i,n,s,a={}){const c=o(e)?e:[e],d=a.strokeWidth>0&&""!==a.strokeColor;let h,f;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),h=0;h<c.length;++h)f=c[h],a.backdrop&&Jt(t,a.backdrop),d&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),r(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(f,i,n,a.maxWidth)),t.fillText(f,i,n,a.maxWidth),Gt(t,i,n,f,a),n+=Number(s.lineHeight);t.restore()}function Qt(t,e){const{x:i,y:n,w:s,h:a,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,1.5*O,O,!0),t.lineTo(i,n+a-r.bottomLeft),t.arc(i+r.bottomLeft,n+a-r.bottomLeft,r.bottomLeft,O,z,!0),t.lineTo(i+s-r.bottomRight,n+a),t.arc(i+s-r.bottomRight,n+a-r.bottomRight,r.bottomRight,z,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-z,!0),t.lineTo(i+r.topLeft,n)}const Zt=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,te=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ee(t,e){const i=(""+t).match(Zt);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 ie=t=>+t||0;function ne(t,e){const i={},n=c(e),s=n?Object.keys(e):e,a=c(t)?n?i=>f(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=ie(a(t));return i}function se(t){return ne(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ae(t){return ne(t,["topLeft","topRight","bottomLeft","bottomRight"])}function re(t){const e=se(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function oe(t,e){t=t||{},e=e||Lt.font;let i=f(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=f(t.style,e.style);n&&!(""+n).match(te)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:f(t.family,e.family),lineHeight:ee(f(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:f(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 ce(t,e,i,n){let s,a,r,c=!0;for(s=0,a=t.length;s<a;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),c=!1),void 0!==i&&o(r)&&(r=r[i%r.length],c=!1),void 0!==r))return n&&!c&&(n.cacheable=!1),r}function de(t,e,i){const{min:n,max:s}=t,a=u(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(a)),max:r(s,a)}}function he(t,e){return Object.assign(Object.create(t),e)}function fe(t,e=[""],i,n,s=()=>t[0]){const a=i||t;void 0===n&&(n=we("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:n,_getTarget:s,override:i=>fe([i,...t],e,a,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>ge(i,n,()=>function(t,e,i,n){let s;for(const a of e)if(s=we(be(a,t),i),void 0!==s)return pe(t,s)?ve(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)=>Se(t).includes(e),ownKeys:t=>Se(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function le(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:ue(t,n),setContext:e=>le(t,e,i,n),override:s=>le(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>ge(t,e,()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:a,_descriptors:r}=t;let d=n[e];return P(d)&&r.isScriptable(e)&&(d=function(t,e,i,n){const{_proxy:s,_context:a,_subProxy:r,_stack:o}=i;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let c=e(a,r||n);return o.delete(t),pe(t,c)&&(c=ve(s._scopes,s,t,c)),c}(e,d,t,i)),o(d)&&d.length&&(d=function(t,e,i,n){const{_proxy:s,_context:a,_subProxy:r,_descriptors:o}=i;if(void 0!==a.index&&n(t))return e[a.index%e.length];if(c(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const c of i){const i=ve(n,s,t,c);e.push(le(i,a,r&&r[t],o))}}return e}(e,d,t,r.isIndexable)),pe(e,d)&&(d=le(d,s,a&&a[e],r)),d}(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 ue(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:P(i)?i:()=>i,isIndexable:P(n)?n:()=>n}}const be=(t,e)=>t?t+k(e):e,pe=(t,e)=>c(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ge(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=i();return t[e]=n,n}function me(t,e,i){return P(t)?t(e,i):t}const ye=(t,e)=>!0===t?e:"string"==typeof t?M(e,t):void 0;function xe(t,e,i,n,s){for(const a of e){const e=ye(i,a);if(e){t.add(e);const a=me(e._fallback,i,s);if(void 0!==a&&a!==i&&a!==n)return a}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function ve(t,e,i,n){const s=e._rootScopes,a=me(e._fallback,i,n),r=[...t,...s],d=new Set;d.add(n);let h=_e(d,r,i,a||i,n);return null!==h&&(void 0===a||a===i||(h=_e(d,r,a,h,n),null!==h))&&fe(Array.from(d),[""],s,a,()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return o(s)&&c(i)?i:s||{}}(e,i,n))}function _e(t,e,i,n,s){for(;i;)i=xe(t,e,i,n,s);return i}function we(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Se(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 Me(t,e,i,n){const{iScale:s}=t,{key:a="r"}=this._parsing,r=new Array(n);let o,c,d,h;for(o=0,c=n;o<c;++o)d=o+i,h=e[d],r[o]={r:s.parse(M(h,a),d)};return r}const ke=Number.EPSILON||1e-14,Ae=(t,e)=>e<t.length&&!t[e].skip&&t[e],Pe=t=>"x"===t?"y":"x";function Ce(t,e,i,n){const s=t.skip?e:t,a=e,r=i.skip?e:i,o=J(a,s),c=J(r,a);let d=o/(o+c),h=c/(o+c);d=isNaN(d)?0:d,h=isNaN(h)?0:h;const f=n*d,l=n*h;return{previous:{x:a.x-f*(r.x-s.x),y:a.y-f*(r.y-s.y)},next:{x:a.x+l*(r.x-s.x),y:a.y+l*(r.y-s.y)}}}function Ie(t,e,i){return Math.max(Math.min(t,i),e)}function Oe(t,e,i,n,s){let a,r,o,c;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=Pe(e),n=t.length,s=Array(n).fill(0),a=Array(n);let r,o,c,d=Ae(t,0);for(r=0;r<n;++r)if(o=c,c=d,d=Ae(t,r+1),c){if(d){const t=d[e]-c[e];s[r]=0!==t?(d[i]-c[i])/t:0}a[r]=o?d?N(s[r-1])!==N(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,a,r,o,c,d=Ae(t,0);for(let h=0;h<n-1;++h)c=d,d=Ae(t,h+1),c&&d&&(B(e[h],0,ke)?i[h]=i[h+1]=0:(s=i[h]/e[h],a=i[h+1]/e[h],o=Math.pow(s,2)+Math.pow(a,2),o<=9||(r=3/Math.sqrt(o),i[h]=s*r*e[h],i[h+1]=a*r*e[h])))}(t,s,a),function(t,e,i="x"){const n=Pe(i),s=t.length;let a,r,o,c=Ae(t,0);for(let d=0;d<s;++d){if(r=o,o=c,c=Ae(t,d+1),!o)continue;const s=o[i],h=o[n];r&&(a=(s-r[i])/3,o[`cp1${i}`]=s-a,o[`cp1${n}`]=h-a*e[d]),c&&(a=(c[i]-s)/3,o[`cp2${i}`]=s+a,o[`cp2${n}`]=h+a*e[d])}}(t,a,e)}(t,s);else{let i=n?t[t.length-1]:t[0];for(a=0,r=t.length;a<r;++a)o=t[a],c=Ce(i,o,t[Math.min(a+1,r-(n?0:1))%r],e.tension),o.cp1x=c.previous.x,o.cp1y=c.previous.y,o.cp2x=c.next.x,o.cp2y=c.next.y,i=o}e.capBezierPoints&&function(t,e){let i,n,s,a,r,o=qt(t[0],e);for(i=0,n=t.length;i<n;++i)r=a,a=o,o=i<n-1&&qt(t[i+1],e),a&&(s=t[i],r&&(s.cp1x=Ie(s.cp1x,e.left,e.right),s.cp1y=Ie(s.cp1y,e.top,e.bottom)),o&&(s.cp2x=Ie(s.cp2x,e.left,e.right),s.cp2y=Ie(s.cp2y,e.top,e.bottom)))}(t,i)}function Ee(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Te(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function De(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 Re=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),ze=["top","right","bottom","left"];function Fe(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const a=ze[s];n[a]=parseFloat(t[e+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Le(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=Re(i),a="border-box"===s.boxSizing,r=Fe(s,"padding"),o=Fe(s,"border","width"),{x:c,y:d,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:a}=n;let r,o,c=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(s,a,t.target))r=s,o=a;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,o=n.clientY-t.top,c=!0}return{x:r,y:o,box:c}}(t,i),f=r.left+(h&&o.left),l=r.top+(h&&o.top);let{width:u,height:b}=e;return a&&(u-=r.width+o.width,b-=r.height+o.height),{x:Math.round((c-f)/u*i.width/n),y:Math.round((d-l)/b*i.height/n)}}const je=t=>Math.round(10*t)/10;function Ne(t,e,i,n){const s=Re(t),a=Fe(s,"margin"),r=De(s.maxWidth,t,"clientWidth")||D,o=De(s.maxHeight,t,"clientHeight")||D,c=function(t,e,i){let n,s;if(void 0===e||void 0===i){const a=t&&Te(t);if(a){const t=a.getBoundingClientRect(),r=Re(a),o=Fe(r,"border","width"),c=Fe(r,"padding");e=t.width-c.width-o.width,i=t.height-c.height-o.height,n=De(r.maxWidth,a,"clientWidth"),s=De(r.maxHeight,a,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||D,maxHeight:s||D}}(t,e,i);let{width:d,height:h}=c;if("content-box"===s.boxSizing){const t=Fe(s,"border","width"),e=Fe(s,"padding");d-=e.width+t.width,h-=e.height+t.height}return d=Math.max(0,d-a.width),h=Math.max(0,n?d/n:h-a.height),d=je(Math.min(d,r,c.maxWidth)),h=je(Math.min(h,o,c.maxHeight)),d&&!h&&(h=je(d/2)),(void 0!==e||void 0!==i)&&n&&c.height&&h>c.height&&(h=c.height,d=je(Math.floor(h*n))),{width:d,height:h}}function Be(t,e,i){const n=e||1,s=je(t.height*n),a=je(t.width*n);t.height=je(t.height),t.width=je(t.width);const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==a)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0)}const We=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Ee()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function He(t,e){const i=function(t,e){return Re(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Ve(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function qe(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 $e(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},r=Ve(t,s,i),o=Ve(s,a,i),c=Ve(a,e,i),d=Ve(r,o,i),h=Ve(o,c,i);return Ve(d,h,i)}function Xe(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 Ye(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 Ue(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ge(t){return"angle"===t?{between:Z,compare:K,normalize:Q}:{between:it,compare:(t,e)=>t-e,normalize:t=>t}}function Je({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 Ke(t,e,i){if(!i)return[t];const{property:n,start:s,end:a}=i,r=e.length,{compare:o,between:c,normalize:d}=Ge(n),{start:h,end:f,loop:l,style:u}=function(t,e,i){const{property:n,start:s,end:a}=i,{between:r,normalize:o}=Ge(n),c=e.length;let d,h,{start:f,end:l,loop:u}=t;if(u){for(f+=c,l+=c,d=0,h=c;d<h&&r(o(e[f%c][n]),s,a);++d)f--,l--;f%=c,l%=c}return l<f&&(l+=c),{start:f,end:l,loop:u,style:t.style}}(t,e,i),b=[];let p,g,m,y=!1,x=null;const v=()=>y||c(s,m,p)&&0!==o(s,m),_=()=>!y||0===o(a,p)||c(a,m,p);for(let t=h,i=h;t<=f;++t)g=e[t%r],g.skip||(p=d(g[n]),p!==m&&(y=c(p,s,a),null===x&&v()&&(x=0===o(p,s)?t:i),null!==x&&_()&&(b.push(Je({start:x,end:t,loop:l,count:r,style:u})),x=null),i=t,m=p));return null!==x&&b.push(Je({start:x,end:f,loop:l,count:r,style:u})),b}function Qe(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const a=Ke(n[s],t.points,e);a.length&&i.push(...a)}return i}function Ze(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const a=!!t._loop,{start:r,end:o}=function(t,e,i,n){let s=0,a=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(a+=s);a>s&&t[a%e].skip;)a--;return a%=e,{start:s,end:a}}(i,s,a,n);return ti(t,!0===n?[{start:r,end:o,loop:a}]:function(t,e,i,n){const s=t.length,a=[];let r,o=e,c=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?c.skip||(n=!1,a.push({start:e%s,end:(r-1)%s,loop:n}),e=o=i.stop?r:null):(o=r,c.skip&&(e=r)),c=i}return null!==o&&a.push({start:e%s,end:o%s,loop:n}),a}(i,r,o<r?o+s:o,!!t._fullLoop&&0===r&&o===s-1),i,e)}function ti(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),a=ei(t.options),{_datasetIndex:r,options:{spanGaps:o}}=t,c=i.length,d=[];let h=a,f=e[0].start,l=f;function u(t,e,n,s){const a=o?-1:1;if(t!==e){for(t+=c;i[t%c].skip;)t-=a;for(;i[e%c].skip;)e+=a;t%c!==e%c&&(d.push({start:t%c,end:e%c,loop:n,style:s}),h=s,f=e%c)}}for(const t of e){f=o?f:t.start;let e,a=i[f%c];for(l=f+1;l<=t.end;l++){const o=i[l%c];e=ei(n.setContext(he(s,{type:"segment",p0:a,p1:o,p0DataIndex:(l-1)%c,p1DataIndex:l%c,datasetIndex:r}))),ii(e,h)&&u(f,l-1,t.loop,h),a=o,h=e}f<l-1&&u(f,l-1,t.loop,h)}return d}(t,e,i,n):e}function ei(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ii(t,e){if(!e)return!1;const i=[],n=function(t,e){return St(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}function ni(t,e,i){return t.options.clip?t[i]:e[i]}function si(t,e){const i=e._clip;if(i.disabled)return!1;const n=function(t,e){const{xScale:i,yScale:n}=t;return i&&n?{left:ni(i,e,"left"),right:ni(i,e,"right"),top:ni(n,e,"top"),bottom:ni(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===i.left?0:n.left-(!0===i.left?0:i.left),right:!1===i.right?t.width:n.right+(!0===i.right?0:i.right),top:!1===i.top?0:n.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?t.height:n.bottom+(!0===i.bottom?0:i.bottom)}}},28498(t,e,i){"use strict";var n=i(26108),s=i(64940),a=i(79903),r=i(62012);t.exports=function(t){var e=a(arguments),i=t.length-(arguments.length-1);return n(e,1+(i>0?i:0),!0)},s?s(t.exports,"apply",{value:r}):t.exports.apply=r},29110(t){"use strict";t.exports=EvalError},29838(t){"use strict";t.exports=Error},30183(t){"use strict";t.exports={rE:"6.6.1"}},32140(t){"use strict";t.exports=URIError},32239(t,e,i){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=i(1048).Buffer.isBuffer},36469(t,e,i){"use strict";function n(t){const e=[],i=String(t||"");let n=i.indexOf(","),s=0,a=!1;for(;!a;){-1===n&&(n=i.length,a=!0);const t=i.slice(s,n).trim();!t&&a||e.push(t),s=n+1,n=i.indexOf(",",s)}return e}function s(t,e){const i=e||{};return(""===t[t.length-1]?[...t,""]:t).join((i.padRight?" ":"")+","+(!1===i.padLeft?"":" ")).trim()}i.d(e,{A:()=>s,q:()=>n})},40200(t,e,i){"use strict";var n=i(71761),s={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var i,a,r,o,c,d,h=!1;e||(e={}),i=e.debug||!1;try{if(r=n(),o=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=t,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),e.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=s[e.format]||s.default;window.clipboardData.setData(a,t)}else n.clipboardData.clearData(),n.clipboardData.setData(e.format,t);e.onCopy&&(n.preventDefault(),e.onCopy(n.clipboardData))}),document.body.appendChild(d),o.selectNodeContents(d),c.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");h=!0}catch(n){i&&console.error("unable to copy using execCommand: ",n),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),h=!0}catch(n){i&&console.error("unable to copy using clipboardData: ",n),i&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(o):c.removeAllRanges()),d&&document.body.removeChild(d),r()}return h}},41874(t,e,i){"use strict";var n=e,s=i(82823),a=i(7784),r=i(89042);n.assert=a,n.toArray=r.toArray,n.zero2=r.zero2,n.toHex=r.toHex,n.encode=r.encode,n.getNAF=function(t,e,i){var n,s=new Array(Math.max(t.bitLength(),i)+1);for(n=0;n<s.length;n+=1)s[n]=0;var a=1<<e+1,r=t.clone();for(n=0;n<s.length;n++){var o,c=r.andln(a-1);r.isOdd()?(o=c>(a>>1)-1?(a>>1)-c:c,r.isubn(o)):o=0,s[n]=o,r.iushrn(1)}return s},n.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var n,s=0,a=0;t.cmpn(-s)>0||e.cmpn(-a)>0;){var r,o,c=t.andln(3)+s&3,d=e.andln(3)+a&3;3===c&&(c=-1),3===d&&(d=-1),r=1&c?3!=(n=t.andln(7)+s&7)&&5!==n||2!==d?c:-c:0,i[0].push(r),o=1&d?3!=(n=e.andln(7)+a&7)&&5!==n||2!==c?d:-d:0,i[1].push(o),2*s===r+1&&(s=1-s),2*a===o+1&&(a=1-a),t.iushrn(1),e.iushrn(1)}return i},n.cachedProperty=function(t,e,i){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new s(t,"hex","le")}},44085(t,e,i){"use strict";i.d(e,{A:()=>Gt});var n=i(54004),s=i(27037);const a={point:(t,e)=>o(t,e,{intersect:!0}),nearest:(t,e,i)=>function(t,e,i){let n=Number.POSITIVE_INFINITY;return o(t,e,i).reduce((t,a)=>{const r=a.getCenterPoint(),o=function(t,e,i){return"x"===i?{x:t.x,y:e.y}:"y"===i?{x:e.x,y:t.y}:e}(e,r,i.axis),c=(0,s.aF)(e,o);return c<n?(t=[a],n=c):c===n&&t.push(a),t},[]).sort((t,e)=>t._index-e._index).slice(0,1)}(t,e,i),x:(t,e,i)=>o(t,e,{intersect:i.intersect,axis:"x"}),y:(t,e,i)=>o(t,e,{intersect:i.intersect,axis:"y"})};function r(t,e,i){return(a[i.mode]||a.nearest)(t,e,i)}function o(t,e,i){return t.filter(t=>i.intersect?t.inRange(e.x,e.y):function(t,e,i){return"x"!==i&&"y"!==i?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,i,!0)}(t,e,i.axis))}function c(t,e,i){const n=Math.cos(i),s=Math.sin(i),a=e.x,r=e.y;return{x:a+n*(t.x-a)-s*(t.y-r),y:r+s*(t.x-a)+n*(t.y-r)}}const d=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,h=.001,f=(t,e,i)=>Math.min(i,Math.max(e,t)),l=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function u(t,e,i){for(const n of Object.keys(t))t[n]=f(t[n],e,i);return t}function b(t,{x:e,y:i,x2:n,y2:s},a,{borderWidth:r,hitTolerance:o}){const c=(r+o)/2,d=t.x>=e-c-h&&t.x<=n+c+h,f=t.y>=i-c-h&&t.y<=s+c+h;return"x"===a?d:("y"===a||d)&&f}function p(t,{rect:e,center:i},n,{rotation:a,borderWidth:r,hitTolerance:o}){return b(c(t,i,(0,s.t)(-a)),e,n,{borderWidth:r,hitTolerance:o})}function g(t,e){const{centerX:i,centerY:n}=t.getProps(["centerX","centerY"],e);return{x:i,y:n}}const m=t=>"string"==typeof t&&t.endsWith("%"),y=t=>parseFloat(t)/100,x=t=>f(y(t),0,1),v=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),_={box:t=>v(t.centerX,t.centerY),doughnutLabel:t=>v(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>v(t.centerX,t.centerY),line:t=>v(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>v(t.centerX,t.centerY)};function w(t,e){return"start"===e?0:"end"===e?t:m(e)?x(e)*t:t/2}function S(t,e,i=!0){return"number"==typeof e?e:m(e)?(i?x(e):y(e))*t:t}function M(t,e,{borderWidth:i,position:n,xAdjust:a,yAdjust:r},o){const c=(0,s.i)(o),d=e.width+(c?o.width:0)+i,h=e.height+(c?o.height:0)+i,f=k(n),l=I(t.x,d,a,f.x),u=I(t.y,h,r,f.y);return{x:l,y:u,x2:l+d,y2:u+h,width:d,height:h,centerX:l+d/2,centerY:u+h/2}}function k(t,e="center"){return(0,s.i)(t)?{x:(0,s.v)(t.x,e),y:(0,s.v)(t.y,e)}:{x:t=(0,s.v)(t,e),y:t}}const A=(t,e)=>t&&t.autoFit&&e<1;function P(t,e){const i=t.font,n=(0,s.b)(i)?i:[i];return A(t,e)?n.map(function(t){const i=(0,s.a0)(t);return i.size=Math.floor(t.size*e),i.lineHeight=t.lineHeight,(0,s.a0)(i)}):n.map(t=>(0,s.a0)(t))}function C(t){return t&&((0,s.h)(t.xValue)||(0,s.h)(t.yValue))}function I(t,e,i=0,n){return t-w(e,n)+i}function O(t,e,i){const n=i.init;if(n)return!0===n?T(e,i):function(t,e,i){const n=(0,s.Q)(i.init,[{chart:t,properties:e,options:i}]);return!0===n?T(e,i):(0,s.i)(n)?n:void 0}(t,e,i)}function E(t,e,i){let n=!1;return e.forEach(e=>{(0,s.a7)(t[e])?(n=!0,i[e]=t[e]):(0,s.h)(i[e])&&delete i[e]}),n}function T(t,e){const i=e.type||"line";return _[i](t)}const D=new Map;function R(t){if(t&&"object"==typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function z(t,{x:e,y:i},n){n&&(t.translate(e,i),t.rotate((0,s.t)(n)),t.translate(-e,-i))}function F(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function L(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function j(t,e){const i=e.content;if(R(i))return{width:S(i.width,e.width),height:S(i.height,e.height)};const n=P(e),a=e.textStrokeWidth,r=(0,s.b)(i)?i:[i],o=r.join()+(t=>t.reduce(function(t,e){return t+e.string},""))(n)+a+(t._measureText?"-spriting":"");return D.has(o)||D.set(o,function(t,e,i,n){t.save();const s=e.length;let a=0,r=n;for(let o=0;o<s;o++){const s=i[Math.min(o,i.length-1)];t.font=s.string;const c=e[o];a=Math.max(a,t.measureText(c).width+n),r+=s.lineHeight}return t.restore(),{width:a,height:r}}(t,r,n,a)),D.get(o)}function N(t,e,i){const{x:n,y:a,width:r,height:o}=e;t.save(),L(t,i);const c=F(t,i);t.fillStyle=i.backgroundColor,t.beginPath(),(0,s.aw)(t,{x:n,y:a,w:r,h:o,radius:u((0,s.ay)(i.borderRadius),0,Math.min(r,o)/2)}),t.closePath(),t.fill(),c&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}function B(t,e,i,n){const a=i.content;if(R(a))return t.save(),t.globalAlpha=function(t,e){const i=(0,s.x)(t)?t:e;return(0,s.x)(i)?f(i,0,1):1}(i.opacity,a.style.opacity),t.drawImage(a,e.x,e.y,e.width,e.height),void t.restore();const r=(0,s.b)(a)?a:[a],o=P(i,n),c=i.color,d=(0,s.b)(c)?c:[c],h=function(t,e){const{x:i,width:n}=t,s=e.textAlign;return"center"===s?i+n/2:"end"===s||"right"===s?i+n:i}(e,i),l=e.y+i.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=i.textAlign,function(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}(t,i)&&function(t,{x:e,y:i},n,s){t.beginPath();let a=0;n.forEach(function(n,r){const o=s[Math.min(r,s.length-1)],c=o.lineHeight;t.font=o.string,t.strokeText(n,e,i+c/2+a),a+=c}),t.stroke()}(t,{x:h,y:l},r,o),function(t,{x:e,y:i},n,{fonts:s,colors:a}){let r=0;n.forEach(function(n,o){const c=a[Math.min(o,a.length-1)],d=s[Math.min(o,s.length-1)],h=d.lineHeight;t.beginPath(),t.font=d.string,t.fillStyle=c,t.fillText(n,e,i+h/2+r),r+=h,t.fill()})}(t,{x:h,y:l},r,{fonts:o,colors:d}),t.restore()}const W=["left","bottom","top","right"];const H={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function V(t,e,i){return e="number"==typeof e?e:t.parse(e),(0,s.g)(e)?t.getPixelForValue(e):i}function q(t,e,i){const n=e[i];if(n||"scaleID"===i)return n;const s=i.charAt(0),a=Object.values(t).filter(t=>t.axis&&t.axis===s);return a.length?a[0].id:s}function $(t,e){if(t){const i=t.options.reverse;return{start:V(t,e.min,i?e.end:e.start),end:V(t,e.max,i?e.start:e.end)}}}function X(t,e){const{chartArea:i,scales:n}=t,s=n[q(n,e,"xScaleID")],a=n[q(n,e,"yScaleID")];let r=i.width/2,o=i.height/2;return s&&(r=V(s,e.xValue,s.left+s.width/2)),a&&(o=V(a,e.yValue,a.top+a.height/2)),{x:r,y:o}}function Y(t,e){const i=t.scales,n=i[q(i,e,"xScaleID")],s=i[q(i,e,"yScaleID")];if(!n&&!s)return{};let{left:a,right:r}=n||t.chartArea,{top:o,bottom:c}=s||t.chartArea;const d=J(n,{min:e.xMin,max:e.xMax,start:a,end:r});a=d.start,r=d.end;const h=J(s,{min:e.yMin,max:e.yMax,start:c,end:o});return o=h.start,c=h.end,{x:a,y:o,x2:r,y2:c,width:r-a,height:c-o,centerX:a+(r-a)/2,centerY:o+(c-o)/2}}function U(t,e){if(!C(e)){const i=Y(t,e);let n=e.radius;n&&!isNaN(n)||(n=Math.min(i.width,i.height)/2,e.radius=n);const s=2*n,a=i.centerX+e.xAdjust,r=i.centerY+e.yAdjust;return{x:a-n,y:r-n,x2:a+n,y2:r+n,centerX:a,centerY:r,width:s,height:s,radius:n}}return function(t,e){const i=X(t,e),n=2*e.radius;return{x:i.x-e.radius+e.xAdjust,y:i.y-e.radius+e.yAdjust,x2:i.x+e.radius+e.xAdjust,y2:i.y+e.radius+e.yAdjust,centerX:i.x+e.xAdjust,centerY:i.y+e.yAdjust,radius:e.radius,width:n,height:n}}(t,e)}function G(t,e){const i=Y(t,e);return i.initProperties=O(t,i,e),i.elements=[{type:"label",optionScope:"label",properties:Q(t,i,e),initProperties:i.initProperties}],i}function J(t,e){const i=$(t,e)||e;return{start:Math.min(i.start,i.end),end:Math.max(i.start,i.end)}}function K(t,e){const{start:i,end:n,borderWidth:s}=t,{position:a,padding:{start:r,end:o},adjust:c}=e;return i+s/2+c+w(n-s-i-r-o-e.size,a)}function Q(t,e,i){const n=i.label;n.backgroundColor="transparent",n.callout.display=!1;const a=k(n.position),r=(0,s.E)(n.padding),o=j(t.ctx,n),c=function({properties:t,options:e},i,n,s){const{x:a,x2:r,width:o}=t;return K({start:a,end:r,size:o,borderWidth:e.borderWidth},{position:n.x,padding:{start:s.left,end:s.right},adjust:e.label.xAdjust,size:i.width})}({properties:e,options:i},o,a,r),d=function({properties:t,options:e},i,n,s){const{y:a,y2:r,height:o}=t;return K({start:a,end:r,size:o,borderWidth:e.borderWidth},{position:n.y,padding:{start:s.top,end:s.bottom},adjust:e.label.yAdjust,size:i.height})}({properties:e,options:i},o,a,r),h=o.width+r.width,f=o.height+r.height;return{x:c,y:d,x2:c+h,y2:d+f,width:h,height:f,centerX:c+h/2,centerY:d+f/2,rotation:n.rotation}}const Z=["enter","leave"],tt=Z.concat("click");function et({state:t,event:e},i,n,s){let a;for(const r of n)s.indexOf(r)<0&&(a=it(r.options[i]||t.listeners[i],r,e)||a);return a}function it(t,e,i){return!0===(0,s.Q)(t,[e.$context,i])}const nt=["afterDraw","beforeDraw"];function st(t,e,i){if(t.hooked){const n=e.options[i]||t.hooks[i];return(0,s.Q)(n,[e.$context])}}function at(t,e,i,n){if((0,s.g)(e[i])&&!function(t,e,i){return(0,s.h)(t[e])||(0,s.h)(t[i])}(t.options,i,n)){const n=t[i]!==e[i];return t[i]=e[i],n}}function rt(t,e){for(const i of["scaleID","xScaleID","yScaleID"]){const n=q(e,t,i);n&&!e[n]&&ot(t,i)&&console.warn(`No scale found with id '${n}' for annotation '${t.id}'`)}}function ot(t,e){if("scaleID"===e)return!0;const i=e.charAt(0);for(const e of["Min","Max","Value"])if((0,s.h)(t[i+e]))return!0;return!1}function ct(t,e,i,n){for(const a of i){const i=t[a];if((0,s.h)(i)){const t=e.parse(i);n.min=Math.min(n.min,t),n.max=Math.max(n.max,t)}}}class dt extends n.Hg{inRange(t,e,i,n){const{x:a,y:r}=c({x:t,y:e},this.getCenterPoint(n),(0,s.t)(-this.options.rotation));return b({x:a,y:r},this.getProps(["x","y","x2","y2"],n),i,this.options)}getCenterPoint(t){return g(this,t)}draw(t){t.save(),z(t,this.getCenterPoint(),this.options.rotation),N(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return G(t,e)}}dt.id="boxAnnotation",dt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},dt.defaultRoutes={borderColor:"color",backgroundColor:"color"},dt.descriptors={label:{_fallback:!0}};class ht extends n.Hg{inRange(t,e,i,n){return p({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},i,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return g(this,t)}draw(t){const e=this.options;e.display&&e.content&&(function(t,e){const{_centerX:i,_centerY:n,_radius:s,_startAngle:a,_endAngle:r,_counterclockwise:o,options:c}=e;t.save();const d=F(t,c);t.fillStyle=c.backgroundColor,t.beginPath(),t.arc(i,n,s,a,r,o),t.closePath(),t.fill(),d&&t.stroke(),t.restore()}(t,this),t.save(),z(t,this.getCenterPoint(),this.rotation),B(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){const i=function(t,e){return t.getSortedVisibleDatasetMetas().reduce(function(i,s){const a=s.controller;return a instanceof n.ju&&function(t,e,i){if(!e.autoHide)return!0;for(let e=0;e<i.length;e++)if(!i[e].hidden&&t.getDataVisibility(e))return!0}(t,e,s.data)&&(!i||a.innerRadius<i.controller.innerRadius)&&a.options.circumference>=90?s:i},void 0)}(t,e);if(!i)return{};const{controllerMeta:a,point:r,radius:o}=function({chartArea:t},e,i){const{left:n,top:a,right:r,bottom:o}=t,{innerRadius:c,offsetX:d,offsetY:h}=i.controller,f=(n+r)/2+d,l=(a+o)/2+h,u=Math.max(f-c,n),b=Math.min(f+c,r),p=Math.max(l-c,a),g=Math.min(l+c,o),m={x:(u+b)/2,y:(p+g)/2},y=e.spacing+e.borderWidth/2,x=c-y,v=m.y>l,_=function(t,e,i,n){const a=Math.pow(i-t,2),r=Math.pow(n,2),o=-2*e,c=Math.pow(e,2)+a-r,d=Math.pow(o,2)-4*c;if(d<=0)return{_startAngle:0,_endAngle:s.T};const h=(-o-Math.sqrt(d))/2,f=(-o+Math.sqrt(d))/2;return{_startAngle:(0,s.D)({x:e,y:i},{x:h,y:t}).angle,_endAngle:(0,s.D)({x:e,y:i},{x:f,y:t}).angle}}(v?a+y:o-y,f,l,x);return{controllerMeta:{_centerX:f,_centerY:l,_radius:x,_counterclockwise:v,..._},point:m,radius:Math.min(c,Math.min(b-u,g-p)/2)}}(t,e,i);let c=j(t.ctx,e);const d=function({width:t,height:e},i){return 2*i/Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}(c,o);A(e,d)&&(c={width:c.width*d,height:c.height*d});const{position:h,xAdjust:f,yAdjust:l}=e,u=M(r,c,{borderWidth:0,position:h,xAdjust:f,yAdjust:l});return{initProperties:O(t,u,e),...u,...a,rotation:e.rotation,_fitRatio:d}}}ht.id="doughnutLabelAnnotation",ht.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},ht.defaultRoutes={};class ft extends n.Hg{inRange(t,e,i,n){return p({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},i,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return g(this,t)}draw(t){const e=this.options,i=!(0,s.h)(this._visible)||this._visible;e.display&&e.content&&i&&(t.save(),z(t,this.getCenterPoint(),this.rotation),function(t,e){const{pointX:i,pointY:n,options:a}=e,r=a.callout,o=r&&r.display&&function(t,e){const i=e.position;return W.includes(i)?i:function(t,e){const{x:i,y:n,x2:a,y2:r,width:o,height:d,pointX:h,pointY:f,centerX:l,centerY:u,rotation:b}=t,p={x:l,y:u},g=e.start,m=S(o,g),y=[i,i+m,i+m,a],x=[n+S(d,g),r,n,r],v=[];for(let t=0;t<4;t++){const e=c({x:y[t],y:x[t]},p,(0,s.t)(b));v.push({position:W[t],distance:(0,s.aF)(e,{x:h,y:f})})}return v.sort((t,e)=>t.distance-e.distance)[0].position}(t,e)}(e,r);if(!o||function(t,e,i){const{pointX:n,pointY:s}=t,a=e.margin;let r=n,o=s;return"left"===i?r+=a:"right"===i?r-=a:"top"===i?o+=a:"bottom"===i&&(o-=a),t.inRange(r,o)}(e,r,o))return;if(t.save(),t.beginPath(),!F(t,r))return t.restore();const{separatorStart:d,separatorEnd:h}=function(t,e){const{x:i,y:n,x2:s,y2:a}=t,r=function(t,e){const{width:i,height:n,options:s}=t,a=s.callout.margin+s.borderWidth/2;return"right"===e?i+a:"bottom"===e?n+a:-a}(t,e);let o,c;return"left"===e||"right"===e?(o={x:i+r,y:n},c={x:o.x,y:a}):(o={x:i,y:n+r},c={x:s,y:o.y}),{separatorStart:o,separatorEnd:c}}(e,o),{sideStart:f,sideEnd:l}=function(t,e,i){const{y:n,width:s,height:a,options:r}=t,o=r.callout.start,c=function(t,e){const i=e.side;return"left"===t||"top"===t?-i:i}(e,r.callout);let d,h;return"left"===e||"right"===e?(d={x:i.x,y:n+S(a,o)},h={x:d.x+c,y:d.y}):(d={x:i.x+S(s,o),y:i.y},h={x:d.x,y:d.y+c}),{sideStart:d,sideEnd:h}}(e,o,d);(r.margin>0||0===a.borderWidth)&&(t.moveTo(d.x,d.y),t.lineTo(h.x,h.y)),t.moveTo(f.x,f.y),t.lineTo(l.x,l.y);const u=c({x:i,y:n},e.getCenterPoint(),(0,s.t)(-e.rotation));t.lineTo(u.x,u.y),t.stroke(),t.restore()}(t,this),N(t,this,e),B(t,function({x:t,y:e,width:i,height:n,options:a}){const r=a.borderWidth/2,o=(0,s.E)(a.padding);return{x:t+o.left+r,y:e+o.top+r,width:i-o.left-o.right-a.borderWidth,height:n-o.top-o.bottom-a.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let i;if(C(e))i=X(t,e);else{const{centerX:n,centerY:s}=Y(t,e);i={x:n,y:s}}const n=(0,s.E)(e.padding),a=M(i,j(t.ctx,e),e,n);return{initProperties:O(t,a,e),pointX:i.x,pointY:i.y,...a,rotation:e.rotation}}}ft.id="labelAnnotation",ft.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ft.defaultRoutes={borderColor:"color"};const lt=(t,e,i)=>({x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}),ut=(t,e,i)=>lt(e,i,Math.abs((t-e.y)/(i.y-e.y))).x,bt=(t,e,i)=>lt(e,i,Math.abs((t-e.x)/(i.x-e.x))).y,pt=t=>t*t,gt=(t,e,i,n)=>(1-n)*(1-n)*t+2*(1-n)*n*e+n*n*i,mt=(t,e,i,n)=>({x:gt(t.x,e.x,i.x,n),y:gt(t.y,e.y,i.y,n)}),yt=(t,e,i,n)=>2*(1-n)*(e-t)+2*n*(i-e),xt=(t,e,i,n)=>-Math.atan2(yt(t.x,e.x,i.x,n),yt(t.y,e.y,i.y,n))+.5*s.P;class vt extends n.Hg{inRange(t,e,i,n){const s=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==i&&"y"!==i){const i={mouseX:t,mouseY:e},{path:a,ctx:r}=this;if(a){F(r,this.options),r.lineWidth+=this.options.hitTolerance;const{chart:s}=this.$context,o=t*s.currentDevicePixelRatio,c=e*s.currentDevicePixelRatio,d=r.isPointInStroke(a,o,c)||St(this,i,n);return r.restore(),d}return function(t,{mouseX:e,mouseY:i},n=.001,s){const{x:a,y:r,x2:o,y2:c}=t.getProps(["x","y","x2","y2"],s),d=o-a,h=c-r,f=pt(d)+pt(h),l=0===f?-1:((e-a)*d+(i-r)*h)/f;let u,b;return l<0?(u=a,b=r):l>1?(u=o,b=c):(u=a+l*d,b=r+l*h),pt(e-u)+pt(i-b)<=n}(this,i,pt(s),n)||St(this,i,n)}return function(t,{mouseX:e,mouseY:i},n,{hitSize:s,useFinalPosition:a}){const r=((t,e,{x:i,y:n,x2:s,y2:a},r)=>"y"===r?{start:Math.min(n,a),end:Math.max(n,a),value:e}:{start:Math.min(i,s),end:Math.max(i,s),value:t})(e,i,t.getProps(["x","y","x2","y2"],a),n);return l(r,s)||St(t,{mouseX:e,mouseY:i},a,n)}(this,{mouseX:t,mouseY:e},i,{hitSize:s,useFinalPosition:n})}getCenterPoint(t){return g(this,t)}draw(t){const{x:e,y:i,x2:n,y2:a,cp:r,options:o}=this;if(t.save(),!F(t,o))return t.restore();L(t,o);const c=Math.sqrt(Math.pow(n-e,2)+Math.pow(a-i,2));if(o.curve&&r)return function(t,e,i,n){const{x:a,y:r,x2:o,y2:c,options:d}=e,{startOpts:h,endOpts:f,startAdjust:l,endAdjust:u}=At(e),b={x:a,y:r},p={x:o,y:c},g=xt(b,i,p,0),m=xt(b,i,p,1)-s.P,y=mt(b,i,p,l/n),x=mt(b,i,p,1-u/n),v=new Path2D;t.beginPath(),v.moveTo(y.x,y.y),v.quadraticCurveTo(i.x,i.y,x.x,x.y),t.shadowColor=d.borderShadowColor,t.stroke(v),e.path=v,e.ctx=t,It(t,y,{angle:g,adjust:l},h),It(t,x,{angle:m,adjust:u},f)}(t,this,r,c),t.restore();const{startOpts:d,endOpts:h,startAdjust:f,endAdjust:l}=At(this),u=Math.atan2(a-i,n-e);t.translate(e,i),t.rotate(u),t.beginPath(),t.moveTo(0+f,0),t.lineTo(c-l,0),t.shadowColor=o.borderShadowColor,t.stroke(),Ct(t,0,f,d),Ct(t,c,-l,h),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const i=function(t,e){const{scales:i,chartArea:n}=t,s=i[e.scaleID],a={x:n.left,y:n.top,x2:n.right,y2:n.bottom};return s?function(t,e,i){const n=V(t,i.value,NaN),s=V(t,i.endValue,n);t.isHorizontal()?(e.x=n,e.x2=s):(e.y=n,e.y2=s)}(s,a,e):function(t,e,i){for(const n of Object.keys(H)){const s=t[q(t,i,n)];if(s){const{min:t,max:a,start:r,end:o,startProp:c,endProp:d}=H[n],h=$(s,{min:i[t],max:i[a],start:s[r],end:s[o]});e[c]=h.start,e[d]=h.end}}}(i,a,e),a}(t,e),{x:n,y:a,x2:r,y2:o}=i,d=function({x:t,y:e,x2:i,y2:n},{top:s,right:a,bottom:r,left:o}){return!(t<o&&i<o||t>a&&i>a||e<s&&n<s||e>r&&n>r)}(i,t.chartArea),h=d?function(t,e,i){const{x:n,y:s}=wt(t,e,i),{x:a,y:r}=wt(e,t,i);return{x:n,y:s,x2:a,y2:r,width:Math.abs(a-n),height:Math.abs(r-s)}}({x:n,y:a},{x:r,y:o},t.chartArea):{x:n,y:a,x2:r,y2:o,width:Math.abs(r-n),height:Math.abs(o-a)};if(h.centerX=(r+n)/2,h.centerY=(o+a)/2,h.initProperties=O(t,h,e),e.curve){const t={x:h.x,y:h.y},i={x:h.x2,y:h.y2};h.cp=function(t,e,i){const{x:n,y:s,x2:a,y2:r,centerX:o,centerY:d}=t,h=Math.atan2(r-s,a-n),f=k(e.controlPoint,0);return c({x:o+S(i,f.x,!1),y:d+S(i,f.y,!1)},{x:o,y:d},h)}(h,e,(0,s.aF)(t,i))}const f=function(t,e,i){const n=i.borderWidth,a=(0,s.E)(i.padding),r=j(t.ctx,i);return function(t,e,i,n){const{width:a,height:r,padding:o}=i,{xAdjust:c,yAdjust:d}=e,h={x:t.x,y:t.y},f={x:t.x2,y:t.y2},l="auto"===e.rotation?function(t){const{x:e,y:i,x2:n,y2:a}=t,r=Math.atan2(a-i,n-e);return r>s.P/2?r-s.P:r<s.P/-2?r+s.P:r}(t):(0,s.t)(e.rotation),u=function(t,e,i){const n=Math.cos(i),s=Math.sin(i);return{w:Math.abs(t*n)+Math.abs(e*s),h:Math.abs(t*s)+Math.abs(e*n)}}(a,r,l),b=function(t,e,i,n){let s;const a=function(t,e){const{x:i,x2:n,y:s,y2:a}=t,r=Math.min(s,a)-e.top,o=Math.min(i,n)-e.left,c=e.bottom-Math.max(s,a),d=e.right-Math.max(i,n);return{x:Math.min(o,d),y:Math.min(r,c),dx:o<=d?1:-1,dy:r<=c?1:-1}}(t,n);return s="start"===e.position?Mt({w:t.x2-t.x,h:t.y2-t.y},i,0,a):"end"===e.position?1-Mt({w:t.x-t.x2,h:t.y-t.y2},i,0,a):w(1,e.position),s}(t,e,{labelSize:u,padding:o},n),p=t.cp?mt(h,t.cp,f,b):lt(h,f,b),g={size:u.w,min:n.left,max:n.right,padding:o.left},m={size:u.h,min:n.top,max:n.bottom,padding:o.top},y=kt(p.x,g)+c,x=kt(p.y,m)+d;return{x:y-a/2,y:x-r/2,x2:y+a/2,y2:x+r/2,centerX:y,centerY:x,pointX:p.x,pointY:p.y,width:a,height:r,rotation:(0,s.U)(l)}}(e,i,{width:r.width+a.width+n,height:r.height+a.height+n,padding:a},t.chartArea)}(t,h,e.label);return f._visible=d,h.elements=[{type:"label",optionScope:"label",properties:f,initProperties:h.initProperties}],h}}vt.id="lineAnnotation";const _t={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function wt({x:t,y:e},i,{top:n,right:s,bottom:a,left:r}){return t<r&&(e=bt(r,{x:t,y:e},i),t=r),t>s&&(e=bt(s,{x:t,y:e},i),t=s),e<n&&(t=ut(n,{x:t,y:e},i),e=n),e>a&&(t=ut(a,{x:t,y:e},i),e=a),{x:t,y:e}}function St(t,{mouseX:e,mouseY:i},n,s){const a=t.label;return a.options.display&&a.inRange(e,i,s,n)}function Mt(t,e,i,n){const{labelSize:s,padding:a}=e,r=t.w*n.dx,o=t.h*n.dy,c=r>0&&(s.w/2+a.left-n.x)/r,d=o>0&&(s.h/2+a.top-n.y)/o;return f(Math.max(c,d),0,.25)}function kt(t,e){const{size:i,min:n,max:s,padding:a}=e,r=i/2;return i>s-n?(s+n)/2:(n>=t-a-r&&(t=n+a+r),s<=t+a+r&&(t=s-a-r),t)}function At(t){const e=t.options,i=e.arrowHeads&&e.arrowHeads.start,n=e.arrowHeads&&e.arrowHeads.end;return{startOpts:i,endOpts:n,startAdjust:Pt(t,i),endAdjust:Pt(t,n)}}function Pt(t,e){if(!e||!e.display)return 0;const{length:i,width:n}=e,s=t.options.borderWidth/2,a={x:i,y:n+s},r={x:0,y:s};return Math.abs(ut(0,a,r))}function Ct(t,e,i,n){if(!n||!n.display)return;const{length:s,width:a,fill:r,backgroundColor:o,borderColor:c}=n,d=Math.abs(e-s)+i;t.beginPath(),L(t,n),F(t,n),t.moveTo(d,-a),t.lineTo(e+i,0),t.lineTo(d,a),!0===r?(t.fillStyle=o||c,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=n.borderShadowColor,t.stroke()}function It(t,{x:e,y:i},{angle:n,adjust:s},a){a&&a.display&&(t.save(),t.translate(e,i),t.rotate(n),Ct(t,0,-s,a),t.restore())}vt.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},_t),fill:!1,length:12,start:Object.assign({},_t),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},ft.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},vt.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},vt.defaultRoutes={borderColor:"color"};class Ot extends n.Hg{inRange(t,e,i,n){const a=this.options.rotation,r=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==i&&"y"!==i)return function(t,e,i,n){const{width:a,height:r,centerX:o,centerY:c}=e,d=a/2,h=r/2;if(d<=0||h<=0)return!1;const f=(0,s.t)(i||0),l=Math.cos(f),u=Math.sin(f),b=Math.pow(l*(t.x-o)+u*(t.y-c),2),p=Math.pow(u*(t.x-o)-l*(t.y-c),2);return b/Math.pow(d+n,2)+p/Math.pow(h+n,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],n),a,r);const{x:o,y:d,x2:f,y2:l}=this.getProps(["x","y","x2","y2"],n),u="y"===i?{start:d,end:l}:{start:o,end:f},b=c({x:t,y:e},this.getCenterPoint(n),(0,s.t)(-a));return b[i]>=u.start-r-h&&b[i]<=u.end+r+h}getCenterPoint(t){return g(this,t)}draw(t){const{width:e,height:i,centerX:n,centerY:a,options:r}=this;t.save(),z(t,this.getCenterPoint(),r.rotation),L(t,this.options),t.beginPath(),t.fillStyle=r.backgroundColor;const o=F(t,r);t.ellipse(n,a,i/2,e/2,s.P/2,0,2*s.P),t.fill(),o&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return G(t,e)}}Ot.id="ellipseAnnotation",Ot.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},dt.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Ot.defaultRoutes={borderColor:"color",backgroundColor:"color"},Ot.descriptors={label:{_fallback:!0}};class Et extends n.Hg{inRange(t,e,i,n){const{x:s,y:a,x2:r,y2:o,width:c}=this.getProps(["x","y","x2","y2","width"],n),d=(this.options.borderWidth+this.options.hitTolerance)/2;return"x"!==i&&"y"!==i?function(t,e,i,n){return!(!t||!e||i<=0)&&Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i+n,2)}({x:t,y:e},this.getCenterPoint(n),c/2,d):l("y"===i?{start:a,end:o,value:e}:{start:s,end:r,value:t},d)}getCenterPoint(t){return g(this,t)}draw(t){const e=this.options,i=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,L(t,e);const n=F(t,e);(function(t,e,i,n){const{radius:a,options:r}=e,o=r.pointStyle,c=r.rotation;let d=(c||0)*s.b4;if(R(o))return t.save(),t.translate(i,n),t.rotate(d),t.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),void t.restore();(t=>isNaN(t)||t<=0)(a)||function(t,{x:e,y:i,radius:n,rotation:a,style:r,rad:o}){let c,d,h,f;switch(t.beginPath(),r){default:t.arc(e,i,n,0,s.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(o)*n,i-Math.cos(o)*n),o+=s.b6,t.lineTo(e+Math.sin(o)*n,i-Math.cos(o)*n),o+=s.b6,t.lineTo(e+Math.sin(o)*n,i-Math.cos(o)*n),t.closePath();break;case"rectRounded":f=.516*n,h=n-f,c=Math.cos(o+s.b5)*h,d=Math.sin(o+s.b5)*h,t.arc(e-c,i-d,f,o-s.P,o-s.H),t.arc(e+d,i-c,f,o-s.H,o),t.arc(e+c,i+d,f,o,o+s.H),t.arc(e-d,i+c,f,o+s.H,o+s.P),t.closePath();break;case"rect":if(!a){h=Math.SQRT1_2*n,t.rect(e-h,i-h,2*h,2*h);break}o+=s.b5;case"rectRot":c=Math.cos(o)*n,d=Math.sin(o)*n,t.moveTo(e-c,i-d),t.lineTo(e+d,i-c),t.lineTo(e+c,i+d),t.lineTo(e-d,i+c),t.closePath();break;case"crossRot":o+=s.b5;case"cross":c=Math.cos(o)*n,d=Math.sin(o)*n,t.moveTo(e-c,i-d),t.lineTo(e+c,i+d),t.moveTo(e+d,i-c),t.lineTo(e-d,i+c);break;case"star":c=Math.cos(o)*n,d=Math.sin(o)*n,t.moveTo(e-c,i-d),t.lineTo(e+c,i+d),t.moveTo(e+d,i-c),t.lineTo(e-d,i+c),o+=s.b5,c=Math.cos(o)*n,d=Math.sin(o)*n,t.moveTo(e-c,i-d),t.lineTo(e+c,i+d),t.moveTo(e+d,i-c),t.lineTo(e-d,i+c);break;case"line":c=Math.cos(o)*n,d=Math.sin(o)*n,t.moveTo(e-c,i-d),t.lineTo(e+c,i+d);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(o)*n,i+Math.sin(o)*n)}t.fill()}(t,{x:i,y:n,radius:a,rotation:c,style:o,rad:d})})(t,this,this.centerX,this.centerY),n&&!R(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=i}resolveElementProperties(t,e){const i=U(t,e);return i.initProperties=O(t,i,e),i}}Et.id="pointAnnotation",Et.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Et.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Tt extends n.Hg{inRange(t,e,i,n){if("x"!==i&&"y"!==i)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,i,n){let s=!1,a=t[t.length-1].getProps(["bX","bY"],n);for(const r of t){const t=r.getProps(["bX","bY"],n);t.bY>i!=a.bY>i&&e<(a.bX-t.bX)*(i-t.bY)/(a.bY-t.bY)+t.bX&&(s=!s),a=t}return s}(this.elements,t,e,n);const a=c({x:t,y:e},this.getCenterPoint(n),(0,s.t)(-this.options.rotation)),r=this.elements.map(t=>"y"===i?t.bY:t.bX),o=Math.min(...r),d=Math.max(...r);return a[i]>=o&&a[i]<=d}getCenterPoint(t){return g(this,t)}draw(t){const{elements:e,options:i}=this;t.save(),t.beginPath(),t.fillStyle=i.backgroundColor,L(t,i);const n=F(t,i);let s=!0;for(const i of e)s?(t.moveTo(i.x,i.y),s=!1):t.lineTo(i.x,i.y);t.closePath(),t.fill(),n&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const i=U(t,e),{sides:n,rotation:a}=e,r=[],o=2*s.P/n;let c=a*s.b4;for(let s=0;s<n;s++,c+=o){const n=Dt(i,e,c);n.initProperties=O(t,i,e),r.push(n)}return i.elements=r,i}}function Dt({centerX:t,centerY:e},{radius:i,borderWidth:n,hitTolerance:s},a){const r=(n+s)/2,o=Math.sin(a),c=Math.cos(a),d={x:t+o*i,y:e-c*i};return{type:"point",optionScope:"point",properties:{x:d.x,y:d.y,centerX:d.x,centerY:d.y,bX:t+o*(i+r),bY:e-c*(i+r)}}}Tt.id="polygonAnnotation",Tt.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Tt.defaultRoutes={borderColor:"color",backgroundColor:"color"};const Rt={box:dt,doughnutLabel:ht,ellipse:Ot,label:ft,line:vt,point:Et,polygon:Tt};Object.keys(Rt).forEach(t=>{s.d.describe(`elements.${Rt[t].id}`,{_fallback:"plugins.annotation.common"})});const zt={update:Object.assign},Ft=tt.concat(nt),Lt=(t,e)=>(0,s.i)(e)?qt(t,e):t,jt=t=>"color"===t||"font"===t;function Nt(t="line"){return Rt[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function Bt(t){return isNaN(t.x)||isNaN(t.y)}function Wt(t,e,i,n){const s=t.elements||(t.elements=[]);s.length=e.length;for(let t=0;t<e.length;t++){const a=e[t],r=a.properties,o=Ht(s,t,a.type,a.initProperties),c=i[a.optionScope].override(a);r.options=Vt(c),n.update(o,r)}}function Ht(t,e,i,n){const s=Rt[Nt(i)];let a=t[e];return a&&a instanceof s||(a=t[e]=new s,Object.assign(a,n)),a}function Vt(t){const e=Rt[Nt(t.type)],i={};i.id=t.id,i.type=t.type,i.drawTime=t.drawTime,Object.assign(i,qt(t,e.defaults),qt(t,e.defaultRoutes));for(const e of Ft)i[e]=t[e];return i}function qt(t,e){const i={};for(const n of Object.keys(e)){const a=e[n],r=t[n];jt(n)&&(0,s.b)(r)?i[n]=r.map(t=>Lt(t,a)):i[n]=Lt(r,a)}return i}function $t(t,e,i,n){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return i.filter(t=>t&&t.options)},id:n.id,type:"annotation"}))}const Xt=new Map,Yt=t=>"doughnutLabel"!==t.type,Ut=tt.concat(nt);var Gt={id:"annotation",version:"3.1.0",beforeRegister(){!function(t,e,i,n=!0){const s=i.split(".");let a=0;for(const r of e.split(".")){const o=s[a++];if(parseInt(r,10)<parseInt(o,10))break;if(d(o,r)){if(n)throw new Error(`${t} v${i} is not supported. v${e} or newer is required.`);return!1}}}("chart.js","4.0",n.t1.version)},afterRegister(){n.t1.register(Rt)},afterUnregister(){n.t1.unregister(Rt)},beforeInit(t){Xt.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,i){const n=Xt.get(t).annotations=[];let a=i.annotations;(0,s.i)(a)?Object.keys(a).forEach(t=>{const e=a[t];(0,s.i)(e)&&(e.id=t,n.push(e))}):(0,s.b)(a)&&n.push(...a),function(t,e){for(const i of t)rt(i,e)}(n.filter(Yt),t.scales)},afterDataLimits(t,e){const i=Xt.get(t);!function(t,e,i){const n=function(t,e,i){const n=e.axis,a=e.id,r=n+"ScaleID",o={min:(0,s.v)(e.min,Number.NEGATIVE_INFINITY),max:(0,s.v)(e.max,Number.POSITIVE_INFINITY)};for(const s of i)s.scaleID===a?ct(s,e,["value","endValue"],o):q(t,s,r)===a&&ct(s,e,[n+"Min",n+"Max",n+"Value"],o);return o}(t.scales,e,i);let a=at(e,n,"min","suggestedMin");a=at(e,n,"max","suggestedMax")||a,a&&(0,s.a7)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}(t,e.scale,i.annotations.filter(Yt).filter(t=>t.display&&t.adjustScaleRange))},afterUpdate(t,e,i){const a=Xt.get(t);!function(t,e,i){e.listened=E(i,tt,e.listeners),e.moveListened=!1,Z.forEach(t=>{(0,s.a7)(i[t])&&(e.moveListened=!0)}),e.listened&&e.moveListened||e.annotations.forEach(t=>{!e.listened&&(0,s.a7)(t.click)&&(e.listened=!0),e.moveListened||Z.forEach(i=>{(0,s.a7)(t[i])&&(e.listened=!0,e.moveListened=!0)})})}(0,a,i),function(t,e,i,a){const r=function(t,e,i){return"reset"===i||"none"===i||"resize"===i?zt:new n.Qw(t,e)}(t,i.animations,a),o=e.annotations,c=function(t,e){const i=e.length,n=t.length;if(n<i){const e=i-n;t.splice(n,0,...new Array(e))}else n>i&&t.splice(i,n-i);return t}(e.elements,o);for(let e=0;e<o.length;e++){const i=o[e],n=Ht(c,e,i.type),a=i.setContext($t(t,n,c,i)),d=n.resolveElementProperties(t,a);d.skip=Bt(d),"elements"in d&&(Wt(n,d.elements,a,r),delete d.elements),(0,s.h)(n.x)||Object.assign(n,d),Object.assign(n,d.initProperties),d.options=Vt(a),r.update(n,d)}}(t,a,i,e.mode),a.visibleElements=a.elements.filter(t=>!t.skip&&t.options.display),function(t,e,i){const n=e.visibleElements;e.hooked=E(i,nt,e.hooks),e.hooked||n.forEach(t=>{e.hooked||nt.forEach(i=>{(0,s.a7)(t.options[i])&&(e.hooked=!0)})})}(0,a,i)},beforeDatasetsDraw(t,e,i){Jt(t,"beforeDatasetsDraw",i.clip)},afterDatasetsDraw(t,e,i){Jt(t,"afterDatasetsDraw",i.clip)},beforeDatasetDraw(t,e,i){Jt(t,e.index,i.clip)},beforeDraw(t,e,i){Jt(t,"beforeDraw",i.clip)},afterDraw(t,e,i){Jt(t,"afterDraw",i.clip)},beforeEvent(t,e,i){(function(t,e,i){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return function(t,e,i){if(!t.moveListened)return;let n;n="mousemove"===e.type?r(t.visibleElements,e,i.interaction):[];const s=t.hovered;t.hovered=n;const a={state:t,event:e};let o=et(a,"leave",s,n);return et(a,"enter",n,s)||o}(t,e,i);case"click":return function(t,e,i){const n=t.listeners,s=r(t.visibleElements,e,i.interaction);let a;for(const t of s)a=it(t.options.click||n.click,t,e)||a;return a}(t,e,i)}})(Xt.get(t),e.event,i)&&(e.changed=!0)},afterDestroy(t){Xt.delete(t)},getAnnotations(t){const e=Xt.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode:(t,e,i)=>r(t,e,i),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!Ut.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${Rt[Nt(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:jt,_fallback:!0},_indexable:jt}},additionalOptionScopes:[""]};function Jt(t,e,i){const{ctx:n,chartArea:a}=t,r=Xt.get(t);i&&(0,s.Y)(n,a);const o=function(t,e){const i=[];for(const n of t)if(n.options.drawTime===e&&i.push({element:n,main:!0}),n.elements&&n.elements.length)for(const t of n.elements)t.options.display&&t.options.drawTime===e&&i.push({element:t});return i}(r.visibleElements,e).sort((t,e)=>t.element.options.z-e.element.options.z);for(const t of o)Kt(n,a,r,t);i&&(0,s.$)(n)}function Kt(t,e,i,n){const s=n.element;n.main?(st(i,s,"beforeDraw"),s.draw(t,e),st(i,s,"afterDraw")):s.draw(t,e)}},46423(t,e,i){"use strict";var n,s=i(79903),a=i(69336);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var r=!!n&&a&&a(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;t.exports=r&&"function"==typeof r.get?s([r.get]):"function"==typeof c&&function(t){return c(null==t?t:o(t))}},47531(t,e,i){"use strict";var n=i(82823),s=i(41874).assert;function a(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=a,a.fromPublic=function(t,e,i){return e instanceof a?e:new a(t,{pub:e,pubEnc:i})},a.fromPrivate=function(t,e,i){return e instanceof a?e:new a(t,{priv:e,privEnc:i})},a.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},a.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?s(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},a.prototype.derive=function(t){return t.validate()||s(t.validate(),"public point not validated"),t.mul(this.priv).getX()},a.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},a.prototype.verify=function(t,e,i){return this.ec.verify(t,e,this,void 0,i)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},47589(t,e,i){"use strict";var n=i(25636).Buffer,s=i(31983).Transform,a=i(18888).I,r=i(35615),o=i(48764);function c(t){s.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(c,s),c.prototype.update=function(t,e,i){var n=o(t,e),s=this._update(n);return this.hashMode?this:(i&&(s=this._toString(s,i)),s)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},c.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},c.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},c.prototype._transform=function(t,e,i){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{i(n)}},c.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},c.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},c.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can’t switch encodings");var n=this._decoder.write(t);return i&&(n+=this._decoder.end()),n},t.exports=c},47695(t,e,i){"use strict";i.d(e,{BX:()=>v,LV:()=>l});const n=Symbol("Comlink.proxy"),s=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),r=Symbol("Comlink.finalizer"),o=Symbol("Comlink.thrown"),c=t=>"object"==typeof t&&null!==t||"function"==typeof t,d=new Map([["proxy",{canHandle:t=>c(t)&&t[n],serialize(t){const{port1:e,port2:i}=new MessageChannel;return h(t,e),[i,[i]]},deserialize:t=>(t.start(),l(t))}],["throw",{canHandle:t=>c(t)&&o in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function h(t,e=globalThis,i=["*"]){e.addEventListener("message",function n(s){if(!s||!s.data)return;if(!function(t,e){for(const i of t){if(e===i||"*"===i)return!0;if(i instanceof RegExp&&i.test(e))return!0}return!1}(i,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:a,type:c,path:d}=Object.assign({path:[]},s.data),l=(s.data.argumentList||[]).map(w);let u;try{const e=d.slice(0,-1).reduce((t,e)=>t[e],t),i=d.reduce((t,e)=>t[e],t);switch(c){case"GET":u=i;break;case"SET":e[d.slice(-1)[0]]=w(s.data.value),u=!0;break;case"APPLY":u=i.apply(e,l);break;case"CONSTRUCT":u=v(new i(...l));break;case"ENDPOINT":{const{port1:e,port2:i}=new MessageChannel;h(t,i),u=function(t,e){return x.set(t,e),t}(e,[e])}break;case"RELEASE":u=void 0;break;default:return}}catch(t){u={value:t,[o]:0}}Promise.resolve(u).catch(t=>({value:t,[o]:0})).then(i=>{const[s,o]=_(i);e.postMessage(Object.assign(Object.assign({},s),{id:a}),o),"RELEASE"===c&&(e.removeEventListener("message",n),f(e),r in t&&"function"==typeof t[r]&&t[r]())}).catch(t=>{const[i,n]=_({value:new TypeError("Unserializable return value"),[o]:0});e.postMessage(Object.assign(Object.assign({},i),{id:a}),n)})}),e.start&&e.start()}function f(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function l(t,e){const i=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const n=i.get(e.id);if(n)try{n(e)}finally{i.delete(e.id)}}),m(t,i,[],e)}function u(t){if(t)throw new Error("Proxy has been released and is not useable")}function b(t){return S(t,new Map,{type:"RELEASE"}).then(()=>{f(t)})}const p=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(p.get(t)||0)-1;p.set(t,e),0===e&&b(t)});function m(t,e,i=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,s){if(u(r),s===a)return()=>{!function(t){g&&g.unregister(t)}(o),b(t),e.clear(),r=!0};if("then"===s){if(0===i.length)return{then:()=>o};const n=S(t,e,{type:"GET",path:i.map(t=>t.toString())}).then(w);return n.then.bind(n)}return m(t,e,[...i,s])},set(n,s,a){u(r);const[o,c]=_(a);return S(t,e,{type:"SET",path:[...i,s].map(t=>t.toString()),value:o},c).then(w)},apply(n,a,o){u(r);const c=i[i.length-1];if(c===s)return S(t,e,{type:"ENDPOINT"}).then(w);if("bind"===c)return m(t,e,i.slice(0,-1));const[d,h]=y(o);return S(t,e,{type:"APPLY",path:i.map(t=>t.toString()),argumentList:d},h).then(w)},construct(n,s){u(r);const[a,o]=y(s);return S(t,e,{type:"CONSTRUCT",path:i.map(t=>t.toString()),argumentList:a},o).then(w)}});return function(t,e){const i=(p.get(e)||0)+1;p.set(e,i),g&&g.register(t,e,t)}(o,t),o}function y(t){const e=t.map(_);return[e.map(t=>t[0]),(i=e.map(t=>t[1]),Array.prototype.concat.apply([],i))];var i}const x=new WeakMap;function v(t){return Object.assign(t,{[n]:!0})}function _(t){for(const[e,i]of d)if(i.canHandle(t)){const[n,s]=i.serialize(t);return[{type:"HANDLER",name:e,value:n},s]}return[{type:"RAW",value:t},x.get(t)||[]]}function w(t){switch(t.type){case"HANDLER":return d.get(t.name).deserialize(t.value);case"RAW":return t.value}}function S(t,e,i,n){return new Promise(s=>{const a=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(a,s),t.start&&t.start(),t.postMessage(Object.assign({id:a},i),n)})}},51157(t,e,i){"use strict";i.d(e,{s:()=>s});const n=document.createElement("i");function s(t){const e="&"+t+";";n.innerHTML=e;const i=n.textContent;return(59!==i.charCodeAt(i.length-1)||"semi"===t)&&i!==e&&i}},53373(t,e){var i;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=r(t,a(i)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return s.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)n.call(t,i)&&t[i]&&(e=r(e,i));return e}function r(t,e){return e?t?t+" "+e:t+e:t}t.exports?(s.default=s,t.exports=s):void 0===(i=function(){return s}.apply(e,[]))||(t.exports=i)}()},53892(t,e,i){"use strict";i.d(e,{A:()=>c});const n="%[a-f0-9]{2}",s=new RegExp("("+n+")|([^%]+?)","gi"),a=new RegExp("("+n+")+","gi");function r(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;e=e||1;const i=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],r(i),r(n))}function o(t){try{return decodeURIComponent(t)}catch{let e=t.match(s)||[];for(let i=1;i<e.length;i++)e=(t=r(e,i).join("")).match(s)||[];return t}}function c(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return function(t){const e={"%FE%FF":"��","%FF%FE":"��"};let i=a.exec(t);for(;i;){try{e[i[0]]=decodeURIComponent(i[0])}catch{const t=o(i[0]);t!==i[0]&&(e[i[0]]=t)}i=a.exec(t)}e["%C2"]="�";const n=Object.keys(e);for(const i of n)t=t.replace(new RegExp(i,"g"),e[i]);return t}(t)}}},54004(t,e,i){"use strict";i.d(e,{A6:()=>O,FN:()=>he,Hg:()=>bt,No:()=>ce,PP:()=>Ie,Qw:()=>d,ZT:()=>T,hE:()=>le,ju:()=>E,kc:()=>Te,m_:()=>Pe,t1:()=>Zt});var n=i(27037);class s{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],a=e.duration;s.forEach(n=>n({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=n.r.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 a,r=s.length-1,o=!1;for(;r>=0;--r)a=s[r],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(t),o=!0):(s[r]=s[s.length-1],s.pop());o&&(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)}}var a=new s;const r="transparent",o={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=(0,n.c)(t||r),a=s.valid&&(0,n.c)(e||r);return a&&a.valid?a.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class c{constructor(t,e,i,s){const a=e[i];s=(0,n.a)([t.to,s,a,t.from]);const r=(0,n.a)([t.from,a,s]);this._active=!0,this._fn=t.fn||o[t.type||typeof r],this._easing=n.e[t.easing]||n.e.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=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],a=i-this._start,r=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=(0,n.a)([t.to,e,s,t.from]),this._from=(0,n.a)([t.from,s,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,a=this._loop,r=this._to;let o;if(this._active=s!==r&&(a||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(o=e/i%2,o=a&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[n]=this._fn(s,r,o))}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]()}}class d{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,n.i)(t))return;const e=Object.keys(n.d.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const a=t[s];if(!(0,n.i)(a))return;const r={};for(const t of e)r[t]=a[t];((0,n.b)(a.properties)&&a.properties||[s]).forEach(t=>{t!==s&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(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={}),a=Object.keys(e),r=Date.now();let o;for(o=a.length-1;o>=0;--o){const d=a[o];if("$"===d.charAt(0))continue;if("options"===d){n.push(...this._animateOptions(t,e));continue}const h=e[d];let f=s[d];const l=i.get(d);if(f){if(l&&f.active()){f.update(l,h,r);continue}f.cancel()}l&&l.duration?(s[d]=f=new c(l,t,d,h),n.push(f)):t[d]=h}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?(a.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,a=void 0===i.max?e:0;return{start:n?a:s,end:n?s:a}}function f(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=n.length;s<a;++s)i.push(n[s].index);return i}function l(t,e,i,s={}){const a=t.keys,r="single"===s.mode;let o,c,d,h;if(null===e)return;let f=!1;for(o=0,c=a.length;o<c;++o){if(d=+a[o],d===i){if(f=!0,s.all)continue;break}h=t.values[d],(0,n.g)(h)&&(r||0===e||(0,n.s)(e)===(0,n.s)(h))&&(e+=h)}return f||s.all?e:0}function u(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function b(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function p(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 g(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:a,vScale:r,index:o}=n,c=a.axis,d=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(a,r,n),f=e.length;let l;for(let t=0;t<f;++t){const i=e[t],{[c]:a,[d]:f}=i;l=(i._stacks||(i._stacks={}))[d]=b(s,h,a),l[o]=f,l._top=p(l,r,!0,n.type),l._bottom=p(l,r,!1,n.type),(l._visualValues||(l._visualValues={}))[o]=f}}function m(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function y(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],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i]}}}const x=t=>"reset"===t||"none"===t,v=(t,e)=>e?t:Object.assign({},t);class _{static defaults={};static datasetElementType=null;static dataElementType=null;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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=u(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&y(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,a=e.xAxisID=(0,n.v)(i.xAxisID,m(t,"x")),r=e.yAxisID=(0,n.v)(i.yAxisID,m(t,"y")),o=e.rAxisID=(0,n.v)(i.rAxisID,m(t,"r")),c=e.indexAxis,d=e.iAxisID=s(c,a,r,o),h=e.vAxisID=s(c,r,a,o);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(d),e.vScale=this.getScaleForId(h)}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&&(0,n.u)(this._data,this),t._stacked&&y(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,n.i)(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:n}=e,s="x"===i.axis?"x":"y",a="x"===n.axis?"x":"y",r=Object.keys(t),o=new Array(r.length);let c,d,h;for(c=0,d=r.length;c<d;++c)h=r[c],o[c]={[s]:h,[a]:t[h]};return o}(e,t)}else if(i!==e){if(i){(0,n.u)(i,this);const t=this._cachedMeta;y(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,n.l)(e,this),this._syncList=[],this._data=e}}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=u(e.vScale,e),e.stack!==i.stack&&(n=!0,y(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&(g(this,e._parsed),e._stacked=u(e.vScale,e))}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:s}=this,{iScale:a,_stacked:r}=i,o=a.axis;let c,d,h,f=0===t&&e===s.length||i._sorted,l=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=(0,n.b)(s[t])?this.parseArrayData(i,s,t,e):(0,n.i)(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const a=()=>null===d[o]||l&&d[o]<l[o];for(c=0;c<e;++c)i._parsed[c+t]=d=h[c],f&&(a()&&(f=!1),l=d);i._sorted=f}r&&g(this,h)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:a}=t,r=s.axis,o=a.axis,c=s.getLabels(),d=s===a,h=new Array(n);let f,l,u;for(f=0,l=n;f<l;++f)u=f+i,h[f]={[r]:d||s.parse(c[u],u),[o]:a.parse(e[u],u)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:a}=t,r=new Array(n);let o,c,d,h;for(o=0,c=n;o<c;++o)d=o+i,h=e[d],r[o]={x:s.parse(h[0],d),y:a.parse(h[1],d)};return r}parseObjectData(t,e,i,s){const{xScale:a,yScale:r}=t,{xAxisKey:o="x",yAxisKey:c="y"}=this._parsing,d=new Array(s);let h,f,l,u;for(h=0,f=s;h<f;++h)l=h+i,u=e[l],d[h]={x:a.parse((0,n.f)(u,o),l),y:r.parse((0,n.f)(u,c),l)};return d}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,a=e[t.axis];return l({keys:f(n,!0),values:e._stacks[t.axis]._visualValues},a,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let a=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,a=l(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,a=i._sorted&&t===i.iScale,r=s.length,o=this._getOtherScale(t),c=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:f(i,!0),values:null})(e,i,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:l}=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 u,b;function p(){b=s[u];const e=b[o.axis];return!(0,n.g)(b[t.axis])||h>e||l<e}for(u=0;u<r&&(p()||(this.updateRangeFromParsed(d,t,b,c),!a));++u);if(a)for(u=r-1;u>=0;--u)if(!p()){this.updateRangeFromParsed(d,t,b,c);break}return d}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,a,r;for(s=0,a=e.length;s<a;++s)r=e[s][t.axis],(0,n.g)(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,s,a;return(0,n.i)(t)?(e=t.top,i=t.right,s=t.bottom,a=t.left):e=i=s=a=t,{top:e,right:i,bottom:s,left:a,disabled:!1===t}}((0,n.v)(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=h(t,i),s=h(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,a=[],r=this._drawStart||0,o=this._drawCount||n.length-r,c=this.options.drawActiveElementsOnTop;let d;for(i.dataset&&i.dataset.draw(t,s,r,o),d=r;d<r+o;++d){const e=n[d];e.hidden||(e.active&&c?a.push(e):e.draw(t,s))}for(d=0;d<a.length;++d)a[d].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 s=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];a=e.$context||(e.$context=function(t,e,i){return(0,n.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),a.parsed=this.getParsed(t),a.raw=s.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=function(t,e){return(0,n.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!e,a.mode=i,a}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 s="active"===e,a=this._cachedDataOpts,r=t+"-"+e,o=a[r],c=this.enableOptionSharing&&(0,n.h)(i);if(o)return v(o,c);const d=this.chart.config,h=d.datasetElementScopeKeys(this._type,t),f=s?[`${t}Hover`,"hover",t,""]:[t,""],l=d.getOptionScopes(this.getDataset(),h),u=Object.keys(n.d.elements[t]),b=d.resolveNamedOptions(l,u,()=>this.getContext(i,s,e),f);return b.$shared&&(b.$shared=c,a[r]=Object.freeze(v(b,c))),b}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,a=`animation-${e}`,r=s[a];if(r)return r;let o;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),s);o=n.createResolver(a,this.getContext(t,i,e))}const c=new d(n,o&&o.animations);return o&&o._cacheable&&(s[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||x(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),a=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:a}}updateElement(t,e,i,n){x(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!x(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,a=Math.min(s,n);a&&this.parse(0,a),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,a=t+e;let r;const o=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(o(s),r=t;r<a;++r)s[r]=new this.dataElementType;this._parsing&&o(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&&y(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 w(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=(0,n._)(s.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let s,a,r,o,c=e._length;const d=()=>{32767!==r&&-32768!==r&&((0,n.h)(o)&&(c=Math.min(c,Math.abs(r-o)||c)),o=r)};for(s=0,a=i.length;s<a;++s)r=e.getPixelForValue(i[s]),d();for(o=void 0,s=0,a=e.ticks.length;s<a;++s)r=e.getPixelForTick(s),d();return c}function S(t,e,i,s){return(0,n.b)(t)?function(t,e,i,n){const s=i.parse(t[0],n),a=i.parse(t[1],n),r=Math.min(s,a),o=Math.max(s,a);let c=r,d=o;Math.abs(r)>Math.abs(o)&&(c=o,d=r),e[i.axis]=d,e._custom={barStart:c,barEnd:d,start:s,end:a,min:r,max:o}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function M(t,e,i,n){const s=t.iScale,a=t.vScale,r=s.getLabels(),o=s===a,c=[];let d,h,f,l;for(d=i,h=i+n;d<h;++d)l=e[d],f={},f[s.axis]=o||s.parse(r[d],d),c.push(S(l,f,a,d));return c}function k(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function A(t,e,i,n){let s=e.borderSkipped;const a={};if(!s)return void(t.borderSkipped=a);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:o,reverse:c,top:d,bottom:h}=function(t){let e,i,n,s,a;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",a="start"):(s="start",a="end"),{start:i,end:n,reverse:e,top:s,bottom:a}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=d:(i._bottom||0)===n?s=h:(a[P(h,r,o,c)]=!0,s=d)),a[P(s,r,o,c)]=!0,t.borderSkipped=a}function P(t,e,i,n){var s,a,r;return n?(r=i,t=C(t=(s=t)===(a=e)?r:s===r?a:s,i,e)):t=C(t,e,i),t}function C(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}class O extends _{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,n){return M(t,e,i,n)}parseArrayData(t,e,i,n){return M(t,e,i,n)}parseObjectData(t,e,i,s){const{iScale:a,vScale:r}=t,{xAxisKey:o="x",yAxisKey:c="y"}=this._parsing,d="x"===a.axis?o:c,h="x"===r.axis?o:c,f=[];let l,u,b,p;for(l=i,u=i+s;l<u;++l)p=e[l],b={},b[a.axis]=a.parse((0,n.f)(p,d),l),f.push(S((0,n.f)(p,h),b,r,l));return f}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),a=s._custom,r=k(a)?"["+a.start+", "+a.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}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,s){const a="reset"===s,{index:r,_cachedMeta:{vScale:o}}=this,c=o.getBasePixel(),d=o.isHorizontal(),h=this._getRuler(),{sharedOptions:f,includeOptions:l}=this._getSharedOptions(e,s);for(let u=e;u<e+i;u++){const e=this.getParsed(u),i=a||(0,n.k)(e[o.axis])?{base:c,head:c}:this._calculateBarValuePixels(u),b=this._calculateBarIndexPixels(u,h),p=(e._stacks||{})[o.axis],g={horizontal:d,base:i.base,enableBorderRadius:!p||k(e._custom)||r===p._top||r===p._bottom,x:d?i.head:b.center,y:d?b.center:i.head,height:d?b.size:Math.abs(i.size),width:d?Math.abs(i.size):b.size};l&&(g.options=f||this.resolveDataElementOptions(u,t[u].active?"active":s));const m=g.options||t[u].options;A(g,m,p,r),I(g,m,h.ratio),this.updateElement(t[u],u,g,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),a=i.options.stacked,r=[],o=this._cachedMeta.controller.getParsed(e),c=o&&o[i.axis],d=t=>{const e=t._parsed.find(t=>t[i.axis]===c),s=e&&e[t.vScale.axis];if((0,n.k)(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!d(i))&&((!1===a||-1===r.indexOf(i.stack)||void 0===a&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[(0,n.v)("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,e)]=!0;return Object.keys(t)}_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,a;for(s=0,a=e.data.length;s<a;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||w(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:a,minBarLength:r}}=this,o=a||0,c=this.getParsed(t),d=c._custom,h=k(d);let f,l,u=c[e.axis],b=0,p=i?this.applyStack(e,c,i):u;p!==u&&(b=p-u,p=u),h&&(u=d.barStart,p=d.barEnd-d.barStart,0!==u&&(0,n.s)(u)!==(0,n.s)(d.barEnd)&&(b=0),b+=u);const g=(0,n.k)(a)||h?b:a;let m=e.getPixelForValue(g);if(f=this.chart.getDataVisibility(t)?e.getPixelForValue(b+p):m,l=f-m,Math.abs(l)<r){l=function(t,e,i){return 0!==t?(0,n.s)(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(l,e,o)*r,u===o&&(m-=l/2);const t=e.getPixelForDecimal(0),a=e.getPixelForDecimal(1),d=Math.min(t,a),b=Math.max(t,a);m=Math.max(Math.min(m,b),d),f=m+l,i&&!h&&(c._stacks[e.axis]._visualValues[s]=e.getValueForPixel(f)-e.getValueForPixel(m))}if(m===e.getPixelForValue(o)){const t=(0,n.s)(l)*e.getLineWidthForValue(o)/2;m+=t,l-=t}return{size:l,base:m,head:f,center:f+l/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,a=s.skipNull,r=(0,n.v)(s.maxBarThickness,1/0);let o,c;const d=this._getAxisCount();if(e.grouped){const i=a?this._getStackCount(t):e.stackCount,h="flex"===s.barThickness?function(t,e,i,n){const s=e.pixels,a=s[t];let r=t>0?s[t-1]:null,o=t<s.length-1?s[t+1]:null;const c=i.categoryPercentage;null===r&&(r=a-(null===o?e.end-e.start:o-a)),null===o&&(o=a+a-r);const d=a-(a-Math.min(r,o))/2*c;return{chunk:Math.abs(o-r)/2*c/n,ratio:i.barPercentage,start:d}}(t,e,s,i*d):function(t,e,i,s){const a=i.barThickness;let r,o;return(0,n.k)(a)?(r=e.min*i.categoryPercentage,o=i.barPercentage):(r=a*s,o=1),{chunk:r/s,ratio:o,start:e.pixels[t]-r/2}}(t,e,s,i*d),f="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,l=this._getAxis().indexOf((0,n.v)(f,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+l;o=h.start+h.chunk*u+h.chunk/2,c=Math.min(r,h.chunk*h.ratio)}else o=i.getPixelForValue(this.getParsed(t)[i.axis],t),c=Math.min(r,e.min*e.ratio);return{base:o-c/2,head:o+c/2,center:o,size:c}}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].hidden||i[s].draw(this._ctx)}}class E extends _{static id="doughnut";static 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"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:i,textAlign:n,color:s,useBorderRadius:a,borderRadius:r}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,o)=>{const c=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:c.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(o),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:n,pointStyle:i,borderRadius:a&&(r||c.borderRadius),index:o}}):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};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,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let a,r,o=t=>+i[t];if((0,n.i)(i[t])){const{key:t="value"}=this._parsing;o=e=>+(0,n.f)(i[e],t)}for(a=t,r=t+e;a<r;++a)s._parsed[a]=o(a)}}_getRotation(){return(0,n.t)(this.options.rotation-90)}_getCircumference(){return(0,n.t)(this.options.circumference)}_getRotationExtents(){let t=n.T,e=-n.T;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),a=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,a=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-r)/2,0),c=Math.min((0,n.m)(this.options.cutout,o),1),d=this._getRingWeight(this.index),{circumference:h,rotation:f}=this._getRotationExtents(),{ratioX:l,ratioY:u,offsetX:b,offsetY:p}=function(t,e,i){let s=1,a=1,r=0,o=0;if(e<n.T){const c=t,d=c+e,h=Math.cos(c),f=Math.sin(c),l=Math.cos(d),u=Math.sin(d),b=(t,e,s)=>(0,n.p)(t,c,d,!0)?1:Math.max(e,e*i,s,s*i),p=(t,e,s)=>(0,n.p)(t,c,d,!0)?-1:Math.min(e,e*i,s,s*i),g=b(0,h,l),m=b(n.H,f,u),y=p(n.P,h,l),x=p(n.P+n.H,f,u);s=(g-y)/2,a=(m-x)/2,r=-(g+y)/2,o=-(m+x)/2}return{ratioX:s,ratioY:a,offsetX:r,offsetY:o}}(f,h,c),g=(i.width-r)/l,m=(i.height-r)/u,y=Math.max(Math.min(g,m)/2,0),x=(0,n.n)(this.options.radius,y),v=(x-Math.max(x*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=b*x,this.offsetY=p*x,s.total=this.calculateTotal(),this.outerRadius=x-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*d,0),this.updateElements(a,0,a.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,a=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*a/n.T)}updateElements(t,e,i,n){const s="reset"===n,a=this.chart,r=a.chartArea,o=a.options.animation,c=(r.left+r.right)/2,d=(r.top+r.bottom)/2,h=s&&o.animateScale,f=h?0:this.innerRadius,l=h?0:this.outerRadius,{sharedOptions:u,includeOptions:b}=this._getSharedOptions(e,n);let p,g=this._getRotation();for(p=0;p<e;++p)g+=this._circumference(p,s);for(p=e;p<e+i;++p){const e=this._circumference(p,s),i=t[p],a={x:c+this.offsetX,y:d+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:l,innerRadius:f};b&&(a.options=u||this.resolveDataElementOptions(p,i.active?"active":n)),g+=e,this.updateElement(i,p,a,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)?n.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],a=(0,n.o)(e._parsed[t],i.options.locale);return{label:s[t]||"",value:a}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,a,r,o;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){a=i.getDatasetMeta(n),t=a.data,r=a.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)o=r.resolveDataElementOptions(n),"inner"!==o.borderAlign&&(e=Math.max(e,o.borderWidth||0,o.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((0,n.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class T extends _{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:a}=e,r=this.chart._animationsDisabled;let{start:o,count:c}=(0,n.q)(e,s,r);this._drawStart=o,this._drawCount=c,(0,n.w)(e)&&(o=0,c=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=s;const d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:d},t),this.updateElements(s,o,c,t)}updateElements(t,e,i,s){const a="reset"===s,{iScale:r,vScale:o,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(e,s),l=r.axis,u=o.axis,{spanGaps:b,segment:p}=this.options,g=(0,n.x)(b)?b:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||a||"none"===s,y=e+i,x=t.length;let v=e>0&&this.getParsed(e-1);for(let i=0;i<x;++i){const b=t[i],x=m?b:{};if(i<e||i>=y){x.skip=!0;continue}const _=this.getParsed(i),w=(0,n.k)(_[u]),S=x[l]=r.getPixelForValue(_[l],i),M=x[u]=a||w?o.getBasePixel():o.getPixelForValue(c?this.applyStack(o,_,c):_[u],i);x.skip=isNaN(S)||isNaN(M)||w,x.stop=i>0&&Math.abs(_[l]-v[l])>g,p&&(x.parsed=_,x.raw=d.data[i]),f&&(x.options=h||this.resolveDataElementOptions(i,b.active?"active":s)),m||this.updateElement(b,i,x,s),v=_}}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)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function D(t,e,i,s){const{controller:a,data:r,_sorted:o}=t,c=a._cachedMeta.iScale,d=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(c&&e===c.axis&&"r"!==e&&o&&r.length){const o=c._reversePixels?n.A:n.B;if(!s){const s=o(r,e,i);if(d){const{vScale:e}=a._cachedMeta,{_parsed:i}=t,r=i.slice(0,s.lo+1).reverse().findIndex(t=>!(0,n.k)(t[e.axis]));s.lo-=Math.max(0,r);const o=i.slice(s.hi).findIndex(t=>!(0,n.k)(t[e.axis]));s.hi+=Math.max(0,o)}return s}if(a._sharedOptions){const t=r[0],n="function"==typeof t.getRange&&t.getRange(e);if(n){const t=o(r,e,i-n),s=o(r,e,i+n);return{lo:t.lo,hi:s.hi}}}}return{lo:0,hi:r.length-1}}function R(t,e,i,n,s){const a=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=a.length;t<i;++t){const{index:i,data:o}=a[t],{lo:c,hi:d}=D(a[t],e,r,s);for(let t=c;t<=d;++t){const e=o[t];e.skip||n(e,i,t)}}}function z(t,e,i,s,a){const r=[];return a||t.isPointInArea(e)?(R(t,i,e,function(i,o,c){(a||(0,n.C)(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&r.push({element:i,datasetIndex:o,index:c})},!0),r):r}function F(t,e,i,s,a,r){return r||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,n,s,a){let r=[];const o=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,a=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}(i);let c=Number.POSITIVE_INFINITY;return R(t,i,e,function(i,d,h){const f=i.inRange(e.x,e.y,s);if(n&&!f)return;const l=i.getCenterPoint(s);if(!a&&!t.isPointInArea(l)&&!f)return;const u=o(e,l);u<c?(r=[{element:i,datasetIndex:d,index:h}],c=u):u===c&&r.push({element:i,datasetIndex:d,index:h})}),r}(t,e,i,s,a,r):function(t,e,i,s){let a=[];return R(t,i,e,function(t,i,r){const{startAngle:o,endAngle:c}=t.getProps(["startAngle","endAngle"],s),{angle:d}=(0,n.D)(t,{x:e.x,y:e.y});(0,n.p)(d,o,c)&&a.push({element:t,datasetIndex:i,index:r})}),a}(t,e,i,a):[]}function L(t,e,i,n,s){const a=[],r="x"===i?"inXRange":"inYRange";let o=!1;return R(t,i,e,(t,n,c)=>{t[r]&&t[r](e[i],s)&&(a.push({element:t,datasetIndex:n,index:c}),o=o||t.inRange(e.x,e.y,s))}),n&&!o?[]:a}var j={evaluateInteractionItems:R,modes:{index(t,e,i,s){const a=(0,n.z)(e,t),r=i.axis||"x",o=i.includeInvisible||!1,c=i.intersect?z(t,a,r,s,o):F(t,a,r,!1,s,o),d=[];return c.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=c[0].index,i=t.data[e];i&&!i.skip&&d.push({element:i,datasetIndex:t.index,index:e})}),d):[]},dataset(t,e,i,s){const a=(0,n.z)(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;let c=i.intersect?z(t,a,r,s,o):F(t,a,r,!1,s,o);if(c.length>0){const e=c[0].datasetIndex,i=t.getDatasetMeta(e).data;c=[];for(let t=0;t<i.length;++t)c.push({element:i[t],datasetIndex:e,index:t})}return c},point:(t,e,i,s)=>z(t,(0,n.z)(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const a=(0,n.z)(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;return F(t,a,r,i.intersect,s,o)},x:(t,e,i,s)=>L(t,(0,n.z)(e,t),"x",i.intersect,s),y:(t,e,i,s)=>L(t,(0,n.z)(e,t),"y",i.intersect,s)}};const N=["left","top","right","bottom"];function B(t,e){return t.filter(t=>t.pos===e)}function W(t,e){return t.filter(t=>-1===N.indexOf(t.pos)&&t.box.axis===e)}function H(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 V(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function q(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 $(t,e,i,s){const{pos:a,box:r}=i,o=t.maxPadding;if(!(0,n.i)(a)){i.size&&(t[a]-=i.size);const e=s[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[a]+=i.size}r.getPadding&&q(o,r.getPadding());const c=Math.max(0,e.outerWidth-V(o,t,"left","right")),d=Math.max(0,e.outerHeight-V(o,t,"top","bottom")),h=c!==t.w,f=d!==t.h;return t.w=c,t.h=d,i.horizontal?{same:h,other:f}:{same:f,other:h}}function X(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],i[t])}),n}(t?["left","right"]:["top","bottom"])}function Y(t,e,i,n){const s=[];let a,r,o,c,d,h;for(a=0,r=t.length,d=0;a<r;++a){o=t[a],c=o.box,c.update(o.width||e.w,o.height||e.h,X(o.horizontal,e));const{same:r,other:f}=$(e,i,o,n);d|=r&&s.length,h=h||f,c.fullSize||s.push(o)}return d&&Y(s,e,i,n)||h}function U(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 G(t,e,i,s){const a=i.padding;let{x:r,y:o}=e;for(const c of t){const t=c.box,d=s[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/d.weight||1;if(c.horizontal){const s=e.w*h,r=d.size||t.height;(0,n.h)(d.start)&&(o=d.start),t.fullSize?U(t,a.left,o,i.outerWidth-a.right-a.left,r):U(t,e.left+d.placed,o,s,r),d.start=o,d.placed+=s,o=t.bottom}else{const s=e.h*h,o=d.size||t.width;(0,n.h)(d.start)&&(r=d.start),t.fullSize?U(t,r,a.top,o,i.outerHeight-a.bottom-a.top):U(t,r,e.top+d.placed,o,s),d.start=r,d.placed+=s,r=t.right}}e.x=r,e.y=o}var J={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,s){if(!t)return;const a=(0,n.E)(t.options.layout.padding),r=Math.max(e-a.width,0),o=Math.max(i-a.height,0),c=function(t){const e=function(t){const e=[];let i,n,s,a,r,o;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:a,options:{stack:r,stackWeight:o=1}}=s),e.push({index:i,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&a+r,stackWeight:o});return e}(t),i=H(e.filter(t=>t.box.fullSize),!0),n=H(B(e,"left"),!0),s=H(B(e,"right")),a=H(B(e,"top"),!0),r=H(B(e,"bottom")),o=W(e,"x"),c=W(e,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:s.concat(c).concat(r).concat(o),chartArea:B(e,"chartArea"),vertical:n.concat(s).concat(c),horizontal:a.concat(r).concat(o)}}(t.boxes),d=c.vertical,h=c.horizontal;(0,n.F)(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const f=d.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,l=Object.freeze({outerWidth:e,outerHeight:i,padding:a,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/f,hBoxMaxHeight:o/2}),u=Object.assign({},a);q(u,(0,n.E)(s));const b=Object.assign({maxPadding:u,w:r,h:o,x:a.left,y:a.top},a),p=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!N.includes(n))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let a,r,o;for(a=0,r=t.length;a<r;++a){o=t[a];const{fullSize:r}=o.box,c=i[o.stack],d=c&&o.stackWeight/c.weight;o.horizontal?(o.width=d?d*n:r&&e.availableWidth,o.height=s):(o.width=n,o.height=d?d*s:r&&e.availableHeight)}return i}(d.concat(h),l);Y(c.fullSize,b,l,p),Y(d,b,l,p),Y(h,b,l,p)&&Y(d,b,l,p),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")}(b),G(c.leftAndTop,b,l,p),b.x+=b.w,b.y+=b.h,G(c.rightAndBottom,b,l,p),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},(0,n.F)(c.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class K{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 Q extends K{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Z="$chartjs",tt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},et=t=>null===t||""===t,it=!!n.K&&{passive:!0};function nt(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,it)}function st(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function at(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||st(i.addedNodes,n),e=e&&!st(i.removedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function rt(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||st(i.removedNodes,n),e=e&&!st(i.addedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const ot=new Map;let ct=0;function dt(){const t=window.devicePixelRatio;t!==ct&&(ct=t,ot.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function ht(t,e,i){const s=t.canvas,a=s&&(0,n.I)(s);if(!a)return;const r=(0,n.L)((t,e)=>{const n=a.clientWidth;i(t,e),n<a.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(a),function(t,e){ot.size||window.addEventListener("resize",dt),ot.set(t,e)}(t,r),o}function ft(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ot.delete(t),ot.size||window.removeEventListener("resize",dt)}(t)}function lt(t,e,i){const s=t.canvas,a=(0,n.L)(e=>{null!==t.ctx&&i(function(t,e){const i=tt[t.type]||t.type,{x:s,y:a}=(0,n.z)(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==a?a:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,it)}(s,e,a),a}class ut extends K{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),a=t.getAttribute("width");if(t[Z]={initial:{height:s,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",et(a)){const e=(0,n.J)(t,"width");void 0!==e&&(t.width=e)}if(et(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,n.J)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Z])return!1;const i=e[Z].initial;["height","width"].forEach(t=>{const s=i[t];(0,n.k)(s)?e.removeAttribute(t):e.setAttribute(t,s)});const s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[Z],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:at,detach:rt,resize:ht}[e]||lt;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:ft,detach:ft,resize:ft}[e]||nt)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return(0,n.G)(t,e,i,s)}isAttached(t){const e=t&&(0,n.I)(t);return!(!e||!e.isConnected)}}class bt{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,n.x)(this.x)&&(0,n.x)(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}}function pt(t,e,i,s,a){const r=(0,n.v)(s,0),o=Math.min((0,n.v)(a,t.length),t.length);let c,d,h,f=0;for(i=Math.ceil(i),a&&(c=a-s,i=c/Math.floor(c/i)),h=r;h<0;)f++,h=Math.round(r+f*i);for(d=Math.max(r,0);d<o;d++)d===h&&(e.push(t[d]),f++,h=Math.round(r+f*i))}const gt=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,mt=(t,e)=>Math.min(e||t,t);function yt(t,e){const i=[],n=t.length/e,s=t.length;let a=0;for(;a<s;a+=n)i.push(t[Math.floor(a)]);return i}function xt(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),a=t._startPixel,r=t._endPixel,o=1e-6;let c,d=t.getPixelForTick(s);if(!(i&&(c=1===n?Math.max(d-a,r-d):0===e?(t.getPixelForTick(1)-d)/2:(d-t.getPixelForTick(s-1))/2,d+=s<e?c:-c,d<a-o||d>r+o)))return d}function vt(t){return t.drawTicks?t.tickLength:0}function _t(t,e){if(!t.display)return 0;const i=(0,n.a0)(t.font,e),s=(0,n.E)(t.padding);return((0,n.b)(t.text)?t.text.length:1)*i.lineHeight+s.height}function wt(t,e,i){let s=(0,n.a1)(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class St extends bt{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:s}=this;return t=(0,n.O)(t,Number.POSITIVE_INFINITY),e=(0,n.O)(e,Number.NEGATIVE_INFINITY),i=(0,n.O)(i,Number.POSITIVE_INFINITY),s=(0,n.O)(s,Number.NEGATIVE_INFINITY),{min:(0,n.O)(t,i),max:(0,n.O)(e,s),minDefined:(0,n.g)(t),maxDefined:(0,n.g)(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:a,maxDefined:r}=this.getUserBounds();if(a&&r)return{min:i,max:s};const o=this.getMatchingVisibleMetas();for(let n=0,c=o.length;n<c;++n)e=o[n].controller.getMinMax(this,t),a||(i=Math.min(i,e.min)),r||(s=Math.max(s,e.max));return i=r&&i>s?s:i,s=a&&i>s?i:s,{min:(0,n.O)(i,(0,n.O)(s,i)),max:(0,n.O)(s,(0,n.O)(i,s))}}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||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,n.Q)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:a,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=(0,n.R)(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=o<this.ticks.length;this._convertTicksToLabels(c?yt(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=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),a=Math.min(i.maxTicksLimit||s,s),r=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=r.length,c=r[0],d=r[o-1],h=[];if(o>a)return function(t,e,i,n){let s,a=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),a++,r=i[a*n])}(e,h,r,o/a),h;const f=function(t,e,i){const s=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),a=e.length/i;if(!s)return Math.max(a,1);const r=(0,n.N)(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>a)return e}return Math.max(a,1)}(r,e,a);if(o>0){let t,i;const s=o>1?Math.round((d-c)/(o-1)):null;for(pt(e,h,f,(0,n.k)(s)?0:c-s,c),t=0,i=o-1;t<i;t++)pt(e,h,f,r[t],r[t+1]);return pt(e,h,f,d,(0,n.k)(s)?e.length:d+s),h}return pt(e,h,f),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&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(){(0,n.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,n.Q)(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(){(0,n.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,n.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,n.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,a;for(i=0,s=t.length;i<s;i++)a=t[i],a.label=(0,n.Q)(e.callback,[a.value,i,t],this)}afterTickToLabelConversion(){(0,n.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,n.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=mt(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,a=e.maxRotation;let r,o,c,d=s;if(!this._isVisible()||!e.display||s>=a||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),f=h.widest.width,l=h.highest.height,u=(0,n.S)(this.chart.width-f,0,this.maxWidth);r=t.offset?this.maxWidth/i:u/(i-1),f+6>r&&(r=u/(i-(t.offset?.5:1)),o=this.maxHeight-vt(t.grid)-e.padding-_t(t.title,this.chart.options.font),c=Math.sqrt(f*f+l*l),d=(0,n.U)(Math.min(Math.asin((0,n.S)((h.highest.height+6)/r,-1,1)),Math.asin((0,n.S)(o/c,-1,1))-Math.asin((0,n.S)(l/c,-1,1)))),d=Math.max(s,Math.min(a,d))),this.labelRotation=d}afterCalculateLabelRotation(){(0,n.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,n.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:a}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){const r=_t(s,e.options.font);if(o?(t.width=this.maxWidth,t.height=vt(a)+r):(t.height=this.maxHeight,t.width=vt(a)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:a,highest:r}=this._getLabelSizes(),c=2*i.padding,d=(0,n.t)(this.labelRotation),h=Math.cos(d),f=Math.sin(d);if(o){const e=i.mirror?0:f*a.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+c)}else{const e=i.mirror?0:h*a.width+f*r.height;t.width=Math.min(this.maxWidth,t.width+e+c)}this._calculatePadding(e,s,f,h)}}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:a},position:r}=this.options,o=0!==this.labelRotation,c="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;o?c?(h=n*t.width,f=i*e.height):(h=i*t.height,f=n*e.width):"start"===s?f=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,f=e.width/2),this.paddingLeft=Math.max((h-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),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+a,this.paddingBottom=n+a}}_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(){(0,n.Q)(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++)(0,n.k)(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=yt(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:a}=this,r=[],o=[],c=Math.floor(e/mt(e,i));let d,h,f,l,u,b,p,g,m,y,x,v=0,_=0;for(d=0;d<e;d+=c){if(l=t[d].label,u=this._resolveTickFontOptions(d),s.font=b=u.string,p=a[b]=a[b]||{data:{},gc:[]},g=u.lineHeight,m=y=0,(0,n.k)(l)||(0,n.b)(l)){if((0,n.b)(l))for(h=0,f=l.length;h<f;++h)x=l[h],(0,n.k)(x)||(0,n.b)(x)||(m=(0,n.V)(s,p.data,p.gc,m,x),y+=g)}else m=(0,n.V)(s,p.data,p.gc,m,l),y=g;r.push(m),o.push(y),v=Math.max(m,v),_=Math.max(y,_)}!function(t,e){(0,n.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)}})}(a,e);const w=r.indexOf(v),S=o.indexOf(_),M=t=>({width:r[t]||0,height:o[t]||0});return{first:M(0),last:M(e-1),widest:M(w),highest:M(S),widths:r,heights:o}}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(0,n.W)(this._alignToPixels?(0,n.X)(this.chart,e,0):e)}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(0,n.j)(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=(i=this.chart.getContext(),(0,n.j)(i,{scale:this,type:"scale"})));var i}_tickSize(){const t=this.options.ticks,e=(0,n.t)(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),a=this._getLabelSizes(),r=t.autoSkipPadding||0,o=a?a.widest.width+r:0,c=a?a.highest.height+r:0;return this.isHorizontal()?c*i>o*s?o/i:c/s:c*s<o*i?c/i:o/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:a,position:r,border:o}=s,c=a.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),f=vt(a),l=[],u=o.setContext(this.getContext()),b=u.display?u.width:0,p=b/2,g=function(t){return(0,n.X)(i,t,b)};let m,y,x,v,_,w,S,M,k,A,P,C;if("top"===r)m=g(this.bottom),w=this.bottom-f,M=m-p,A=g(t.top)+p,C=t.bottom;else if("bottom"===r)m=g(this.top),A=t.top,C=g(t.bottom)-p,w=m+p,M=this.top+f;else if("left"===r)m=g(this.right),_=this.right-f,S=m-p,k=g(t.left)+p,P=t.right;else if("right"===r)m=g(this.left),k=t.left,P=g(t.right)-p,_=m+p,S=this.left+f;else if("x"===e){if("center"===r)m=g((t.top+t.bottom)/2+.5);else if((0,n.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}A=t.top,C=t.bottom,w=m+p,M=w+f}else if("y"===e){if("center"===r)m=g((t.left+t.right)/2);else if((0,n.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}_=m-p,S=_-f,k=t.left,P=t.right}const I=(0,n.v)(s.ticks.maxTicksLimit,h),O=Math.max(1,Math.ceil(h/I));for(y=0;y<h;y+=O){const t=this.getContext(y),e=a.setContext(t),s=o.setContext(t),r=e.lineWidth,h=e.color,f=s.dash||[],u=s.dashOffset,b=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;x=xt(this,y,c),void 0!==x&&(v=(0,n.X)(i,x,r),d?_=S=k=P=v:w=M=A=C=v,l.push({tx1:_,ty1:w,tx2:S,ty2:M,x1:k,y1:A,x2:P,y2:C,width:r,color:h,borderDash:f,borderDashOffset:u,tickWidth:b,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=m,l}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:a}=i,r=this.isHorizontal(),o=this.ticks,{align:c,crossAlign:d,padding:h,mirror:f}=a,l=vt(i.grid),u=l+h,b=f?-h:u,p=-(0,n.t)(this.labelRotation),g=[];let m,y,x,v,_,w,S,M,k,A,P,C,I="middle";if("top"===s)w=this.bottom-b,S=this._getXAxisLabelAlignment();else if("bottom"===s)w=this.top+b,S=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(l);S=t.textAlign,_=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(l);S=t.textAlign,_=t.x}else if("x"===e){if("center"===s)w=(t.top+t.bottom)/2+u;else if((0,n.i)(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)+u}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)_=(t.left+t.right)/2-u;else if((0,n.i)(s)){const t=Object.keys(s)[0],e=s[t];_=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(l).textAlign}"y"===e&&("start"===c?I="top":"end"===c&&(I="bottom"));const O=this._getLabelSizes();for(m=0,y=o.length;m<y;++m){x=o[m],v=x.label;const t=a.setContext(this.getContext(m));M=this.getPixelForTick(m)+a.labelOffset,k=this._resolveTickFontOptions(m),A=k.lineHeight,P=(0,n.b)(v)?v.length:1;const e=P/2,i=t.color,c=t.textStrokeColor,h=t.textStrokeWidth;let l,u=S;if(r?(_=M,"inner"===S&&(u=m===y-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),C="top"===s?"near"===d||0!==p?-P*A+A/2:"center"===d?-O.highest.height/2-e*A+A:-O.highest.height+A/2:"near"===d||0!==p?A/2:"center"===d?O.highest.height/2-e*A:O.highest.height-P*A,f&&(C*=-1),0===p||t.showLabelBackdrop||(_+=A/2*Math.sin(p))):(w=M,C=(1-P)*A/2),t.showLabelBackdrop){const e=(0,n.E)(t.backdropPadding),i=O.heights[m],s=O.widths[m];let a=C-e.top,r=0-e.left;switch(I){case"middle":a-=i/2;break;case"bottom":a-=i}switch(S){case"center":r-=s/2;break;case"right":r-=s;break;case"inner":m===y-1?r-=s:m>0&&(r-=s/2)}l={left:r,top:a,width:s+e.width,height:i+e.height,color:t.backdropColor}}g.push({label:v,font:k,textOffset:C,options:{rotation:p,color:i,strokeColor:c,strokeWidth:h,textAlign:u,textBaseline:I,translation:[_,w],backdrop:l}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,n.t)(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,a=t+s,r=this._getLabelSizes().widest.width;let o,c;return"left"===e?n?(c=this.right+s,"near"===i?o="left":"center"===i?(o="center",c+=r/2):(o="right",c+=r)):(c=this.right-a,"near"===i?o="right":"center"===i?(o="center",c-=r/2):(o="left",c=this.left)):"right"===e?n?(c=this.left+s,"near"===i?o="right":"center"===i?(o="center",c-=r/2):(o="left",c-=r)):(c=this.left+a,"near"===i?o="left":"center"===i?(o="center",c+=r/2):(o="right",c=this.right)):o="right",{textAlign:o,x:c}}_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}:"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:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,a),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);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,a;const r=(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,a=n.length;s<a;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({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:{border:i,grid:s}}=this,a=i.setContext(this.getContext()),r=i.display?a.width:0;if(!r)return;const o=s.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,h,f,l;this.isHorizontal()?(d=(0,n.X)(t,this.left,r)-r/2,h=(0,n.X)(t,this.right,o)+o/2,f=l=c):(f=(0,n.X)(t,this.top,r)-r/2,l=(0,n.X)(t,this.bottom,o)+o/2,d=h=c),e.save(),e.lineWidth=a.width,e.strokeStyle=a.color,e.beginPath(),e.moveTo(d,f),e.lineTo(h,l),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&(0,n.Y)(e,i);const s=this.getLabelItems(t);for(const t of s){const i=t.options,s=t.font,a=t.label,r=t.textOffset;(0,n.Z)(e,a,0,r,s,i)}i&&(0,n.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const a=(0,n.a0)(i.font),r=(0,n.E)(i.padding),o=i.align;let c=a.lineHeight/2;"bottom"===e||"center"===e||(0,n.i)(e)?(c+=r.bottom,(0,n.b)(i.text)&&(c+=a.lineHeight*(i.text.length-1))):c+=r.top;const{titleX:d,titleY:h,maxWidth:f,rotation:l}=function(t,e,i,s){const{top:a,left:r,bottom:o,right:c,chart:d}=t,{chartArea:h,scales:f}=d;let l,u,b,p=0;const g=o-a,m=c-r;if(t.isHorizontal()){if(u=(0,n.a2)(s,r,c),(0,n.i)(i)){const t=Object.keys(i)[0],n=i[t];b=f[t].getPixelForValue(n)+g-e}else b="center"===i?(h.bottom+h.top)/2+g-e:gt(t,i,e);l=c-r}else{if((0,n.i)(i)){const t=Object.keys(i)[0],n=i[t];u=f[t].getPixelForValue(n)-m+e}else u="center"===i?(h.left+h.right)/2-m+e:gt(t,i,e);b=(0,n.a2)(s,o,a),p="left"===i?-n.H:n.H}return{titleX:u,titleY:b,maxWidth:l,rotation:p}}(this,c,e,o);(0,n.Z)(t,i.text,0,0,a,{color:i.color,maxWidth:f,rotation:l,textAlign:wt(o,e,s),textBaseline:"middle",translation:[d,h]})}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=(0,n.v)(t.grid&&t.grid.z,-1),s=(0,n.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===St.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,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,a;for(s=0,a=e.length;s<a;++s){const a=e[s];a[i]!==this.id||t&&a.type!==t||n.push(a)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,n.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Mt{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 s=this.items,a=t.id,r=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in s||(s[a]=t,function(t,e,i){const s=(0,n.a4)(Object.create(null),[i?n.d.get(i):{},n.d.get(e),t.defaults]);n.d.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(i=>{const s=i.split("."),a=s.pop(),r=[t].concat(s).join("."),o=e[i].split("."),c=o.pop(),d=o.join(".");n.d.route(r,a,d,c)})}(e,t.defaultRoutes),t.descriptors&&n.d.describe(e,t.descriptors)}(t,r,i),this.override&&n.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in n.d[s]&&(delete n.d[s][i],this.override&&delete n.a3[i])}}class kt{constructor(){this.controllers=new Mt(_,"datasets",!0),this.elements=new Mt(bt,"elements"),this.plugins=new Mt(Object,"plugins"),this.scales=new Mt(St,"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 s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):(0,n.F)(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const s=(0,n.a5)(t);(0,n.Q)(i["before"+s],[],i),e[t](i),(0,n.Q)(i["after"+s],[],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}}var At=new kt;class Pt{constructor(){this._init=void 0}notify(t,e,i,n){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const s=n?this._descriptors(t).filter(n):this._descriptors(t),a=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),a}_notify(t,e,i,s){s=s||{};for(const a of t){const t=a.plugin,r=t[i],o=[e,s,a.options];if(!1===(0,n.Q)(r,o,t)&&s.cancelable)return!1}return!0}invalidate(){(0,n.k)(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,s=(0,n.v)(i.options&&i.options.plugins,{}),a=function(t){const e={},i=[],n=Object.keys(At.plugins.items);for(let t=0;t<n.length;t++)i.push(At.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!==s||e?function(t,{plugins:e,localIds:i},n,s){const a=[],r=t.getContext();for(const o of e){const e=o.id,c=Ct(n[e],s);null!==c&&a.push({plugin:o,options:It(t.config,{plugin:o,local:i[e]},c,r)})}return a}(t,a,s,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 Ct(t,e){return e||!1!==t?!0===t?{}:t:null}function It(t,{plugin:e,local:i},n,s){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(n,a);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ot(t,e){const i=n.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Et(t){if("x"===t||"y"===t||"r"===t)return t}function Tt(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Dt(t,...e){if(Et(t))return t;for(const i of e){const e=i.axis||Tt(i.position)||t.length>1&&Et(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Rt(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function zt(t){const e=t.options||(t.options={});e.plugins=(0,n.v)(e.plugins,{}),e.scales=function(t,e){const i=n.a3[t.type]||{scales:{}},s=e.scales||{},a=Ot(t.type,e),r=Object.create(null);return Object.keys(s).forEach(e=>{const o=s[e];if(!(0,n.i)(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const c=Dt(e,o,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return Rt(t,"x",i[0])||Rt(t,"y",i[0])}return{}}(e,t),n.d.scales[o.type]),d=function(t,e){return t===e?"_index_":"_value_"}(c,a),h=i.scales||{};r[e]=(0,n.ab)(Object.create(null),[{axis:c},o,h[c],h[d]])}),t.data.datasets.forEach(i=>{const a=i.type||t.type,o=i.indexAxis||Ot(a,e),c=(n.a3[a]||{}).scales||{};Object.keys(c).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),a=i[e+"AxisID"]||e;r[a]=r[a]||Object.create(null),(0,n.ab)(r[a],[{axis:e},s[a],c[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];(0,n.ab)(e,[n.d.scales[e.type],n.d.scale])}),r}(t,e)}function Ft(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Lt=new Map,jt=new Set;function Nt(t,e){let i=Lt.get(t);return i||(i=e(),Lt.set(t,i),jt.add(i)),i}const Bt=(t,e,i)=>{const s=(0,n.f)(e,i);void 0!==s&&t.add(s)};class Wt{constructor(t){this._config=function(t){return(t=t||{}).data=Ft(t.data),zt(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=Ft(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(),zt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Nt(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Nt(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Nt(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Nt(`${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:s,type:a}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;const c=new Set;e.forEach(e=>{t&&(c.add(t),e.forEach(e=>Bt(c,t,e))),e.forEach(t=>Bt(c,s,t)),e.forEach(t=>Bt(c,n.a3[a]||{},t)),e.forEach(t=>Bt(c,n.d,t)),e.forEach(t=>Bt(c,n.a6,t))});const d=Array.from(c);return 0===d.length&&d.push(Object.create(null)),jt.has(e)&&r.set(e,d),d}chartOptionScopes(){const{options:t,type:e}=this;return[t,n.a3[e]||{},n.d.datasets[e]||{},{type:e},n.d,n.a6]}resolveNamedOptions(t,e,i,s=[""]){const a={$shared:!0},{resolver:r,subPrefixes:o}=Ht(this._resolverCache,t,s);let c=r;if(function(t,e){const{isScriptable:i,isIndexable:s}=(0,n.aa)(t);for(const a of e){const e=i(a),r=s(a),o=(r||e)&&t[a];if(e&&((0,n.a7)(o)||Vt(o))||r&&(0,n.b)(o))return!0}return!1}(r,e)){a.$shared=!1,i=(0,n.a7)(i)?i():i;const e=this.createResolver(t,i,o);c=(0,n.a8)(r,i,e)}for(const t of e)a[t]=c[t];return a}createResolver(t,e,i=[""],s){const{resolver:a}=Ht(this._resolverCache,t,i);return(0,n.i)(e)?(0,n.a8)(a,e,void 0,s):a}}function Ht(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const a=i.join();let r=s.get(a);return r||(r={resolver:(0,n.a9)(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(a,r)),r}const Vt=t=>(0,n.i)(t)&&Object.getOwnPropertyNames(t).some(e=>(0,n.a7)(t[e])),qt=["top","bottom","left","right","chartArea"];function $t(t,e){return"top"===t||"bottom"===t||-1===qt.indexOf(t)&&"x"===e}function Xt(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Yt(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,n.Q)(i&&i.onComplete,[t],e)}function Ut(t){const e=t.chart,i=e.options.animation;(0,n.Q)(i&&i.onProgress,[t],e)}function Gt(t){return(0,n.M)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Jt={},Kt=t=>{const e=Gt(t);return Object.values(Jt).filter(t=>t.canvas===e).pop()};function Qt(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const a=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=a)}}}class Zt{static defaults=n.d;static instances=Jt;static overrides=n.a3;static registry=At;static version="4.5.1";static getChart=Kt;static register(...t){At.add(...t),te()}static unregister(...t){At.remove(...t),te()}constructor(t,e){const i=this.config=new Wt(e),s=Gt(t),r=Kt(s);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!(0,n.M)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Q:ut}(s)),this.platform.updateConfig(i);const c=this.platform.acquireContext(s,o.aspectRatio),d=c&&c.canvas,h=d&&d.height,f=d&&d.width;this.id=(0,n.ac)(),this.ctx=c,this.canvas=d,this.width=f,this.height=h,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 Pt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,n.ad)(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],Jt[this.id]=this,c&&d?(a.listen(this,"complete",Yt),a.listen(this,"progress",Ut),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:s,_aspectRatio:a}=this;return(0,n.k)(t)?e&&a?a:s?i/s: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}get registry(){return At}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,n.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,n.af)(this.canvas,this.ctx),this}stop(){return a.stop(this),this}resize(t,e){a.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,a),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,n.ae)(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),(0,n.Q)(i.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,n.F)(t,(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let a=[];e&&(a=a.concat(Object.keys(e).map(t=>{const i=e[t],n=Dt(t,i),s="r"===n,a="x"===n;return{options:i,dposition:s?"chartArea":a?"bottom":"left",dtype:s?"radialLinear":a?"category":"linear"}}))),(0,n.F)(a,e=>{const a=e.options,r=a.id,o=Dt(r,a),c=(0,n.v)(a.type,e.dtype);void 0!==a.position&&$t(a.position,o)===$t(e.dposition)||(a.position=e.dposition),s[r]=!0;let d=null;r in i&&i[r].type===c?d=i[r]:(d=new(At.getScale(c))({id:r,type:c,ctx:this.ctx,chart:this}),i[d.id]=d),d.init(a,t)}),(0,n.F)(s,(t,e)=>{t||delete i[e]}),(0,n.F)(i,t=>{J.configure(this,t,t.options),J.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(Xt("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,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let a=this.getDatasetMeta(i);const r=s.type||this.config.type;if(a.type&&a.type!==r&&(this._destroyDatasetMeta(i),a=this.getDatasetMeta(i)),a.type=r,a.indexAxis=s.indexAxis||Ot(r,this.options),a.order=s.order||0,a.index=i,a.label=""+s.label,a.visible=this.isDatasetVisible(i),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{const e=At.getController(r),{datasetElementType:s,dataElementType:o}=n.d.datasets[r];Object.assign(e,{dataElementType:At.getElement(o),datasetElementType:s&&At.getElement(s)}),a.controller=new e(this,i),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){(0,n.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()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const a=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=!s&&-1===a.indexOf(e);e.buildOrUpdateElements(i),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||(0,n.F)(a,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Xt("z","_idx"));const{_active:o,_lastEvent:c}=this;c?this._eventHandler(c,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){(0,n.F)(this.scales,t=>{J.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,n.ag)(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)Qt(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(","))),s=i(0);for(let t=1;t<e;t++)if(!(0,n.ag)(s,i(t)))return;return Array.from(s).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;J.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,n.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,(0,n.a7)(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})&&(a.has(this)?this.attached&&!a.running(this)&&a.start(this):(this.draw(),Yt({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}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={meta:t,index:t.index,cancelable:!0},s=(0,n.ah)(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(s&&(0,n.Y)(e,s),t.controller.draw(),s&&(0,n.$)(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return(0,n.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=j.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=(0,n.j)(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 s=i?"show":"hide",a=this.getDatasetMeta(t),r=a.controller._resolveAnimations(void 0,s);(0,n.h)(e)?(a.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(a,{visible:i}),this.update(e=>e.datasetIndex===t?s: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(),a.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(),(0,n.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Jt[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},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,n.F)(this.options.events,t=>i(t,s))}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 a;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",a)};a=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){(0,n.F)(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},(0,n.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,a,r,o;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,o=t.length;r<o;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[n+"HoverStyle"](a.element,a.datasetIndex,a.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}});!(0,n.ai)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_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)),a=s(e,t),r=i?t:s(t,e);a.length&&this.updateHoverStyle(a,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,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:s=[],options:a}=this,r=e,o=this._getActiveElements(t,s,i,r),c=(0,n.aj)(t),d=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,c);i&&(this._lastEvent=null,(0,n.Q)(a.onHover,[t,o,this],this),c&&(0,n.Q)(a.onClick,[t,o,this],this));const h=!(0,n.ai)(o,s);return(h||e)&&(this._active=o,this._updateHoverStyles(o,s,e)),this._lastEvent=d,h}_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)}}function te(){return(0,n.F)(Zt.instances,t=>t._plugins.invalidate())}function ee(t,e,i=e){t.lineCap=(0,n.v)(i.borderCapStyle,e.borderCapStyle),t.setLineDash((0,n.v)(i.borderDash,e.borderDash)),t.lineDashOffset=(0,n.v)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,n.v)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,n.v)(i.borderWidth,e.borderWidth),t.strokeStyle=(0,n.v)(i.borderColor,e.borderColor)}function ie(t,e,i){t.lineTo(i.x,i.y)}function ne(t,e,i={}){const n=t.length,{start:s=0,end:a=n-1}=i,{start:r,end:o}=e,c=Math.max(s,r),d=Math.min(a,o),h=s<r&&a<r||s>o&&a>o;return{count:n,start:c,loop:e.loop,ilen:d<c&&!h?n+d-c:d-c}}function se(t,e,i,s){const{points:a,options:r}=e,{count:o,start:c,loop:d,ilen:h}=ne(a,i,s),f=function(t){return t.stepped?n.at:t.tension||"monotone"===t.cubicInterpolationMode?n.au:ie}(r);let l,u,b,{move:p=!0,reverse:g}=s||{};for(l=0;l<=h;++l)u=a[(c+(g?h-l:l))%o],u.skip||(p?(t.moveTo(u.x,u.y),p=!1):f(t,b,u,g,r.stepped),b=u);return d&&(u=a[(c+(g?h:0))%o],f(t,b,u,g,r.stepped)),!!d}function ae(t,e,i,n){const s=e.points,{count:a,start:r,ilen:o}=ne(s,i,n),{move:c=!0,reverse:d}=n||{};let h,f,l,u,b,p,g=0,m=0;const y=t=>(r+(d?o-t:t))%a,x=()=>{u!==b&&(t.lineTo(g,b),t.lineTo(g,u),t.lineTo(g,p))};for(c&&(f=s[y(0)],t.moveTo(f.x,f.y)),h=0;h<=o;++h){if(f=s[y(h)],f.skip)continue;const e=f.x,i=f.y,n=0|e;n===l?(i<u?u=i:i>b&&(b=i),g=(m*g+e)/++m):(x(),t.lineTo(e,i),l=n,m=0,u=b=i),p=i}x()}function re(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?se:ae}const oe="function"==typeof Path2D;class ce extends bt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};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 s=i.spanGaps?this._loop:this._fullLoop;(0,n.an)(this._points,i,t,s,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=(0,n.ao)(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,s=t[e],a=this.points,r=(0,n.ap)(this,{property:e,start:s,end:s});if(!r.length)return;const o=[],c=function(t){return t.stepped?n.aq:t.tension||"monotone"===t.cubicInterpolationMode?n.ar:n.as}(i);let d,h;for(d=0,h=r.length;d<h;++d){const{start:n,end:h}=r[d],f=a[n],l=a[h];if(f===l){o.push(f);continue}const u=c(f,l,Math.abs((s-f[e])/(l[e]-f[e])),i.stepped);u[e]=t[e],o.push(u)}return 1===o.length?o[0]:o}pathSegment(t,e,i){return re(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=re(this);let a=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)a&=s(t,this,r,{start:e,end:e+i-1});return!!a}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),function(t,e,i,n){oe&&!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()),ee(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:a}=e,r=re(e);for(const o of s)ee(t,a,o.style),t.beginPath(),r(t,e,o,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function de(t,e,i,n){const s=t.options,{[i]:a}=t.getProps([i],n);return Math.abs(e-a)<s.radius+s.hitRadius}class he extends bt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};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:a}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-a,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return de(this,t,"x",e)}inYRange(t,e){return de(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;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!(0,n.C)(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,(0,n.av)(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}class fe extends bt{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 s=(0,n.b)(i.text)?i.text.length:1;this._padding=(0,n.E)(i.padding);const a=s*(0,n.a0)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:a,options:r}=this,o=r.align;let c,d,h,f=0;return this.isHorizontal()?(d=(0,n.a2)(o,i,a),h=e+t,c=a-i):("left"===r.position?(d=i+t,h=(0,n.a2)(o,s,e),f=-.5*n.P):(d=a-t,h=(0,n.a2)(o,e,s),f=.5*n.P),c=s-e),{titleX:d,titleY:h,maxWidth:c,rotation:f}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,n.a0)(e.font),s=i.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:o,rotation:c}=this._drawArgs(s);(0,n.Z)(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:c,textAlign:(0,n.a1)(e.align),textBaseline:"middle",translation:[a,r]})}}var le={id:"title",_element:fe,start(t,e,i){!function(t,e){const i=new fe({ctx:t.ctx,options:e,chart:t});J.configure(t,i,e),J.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;J.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;J.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}};new WeakMap;const ue={average(t){if(!t.length)return!1;let e,i,n=new Set,s=0,a=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n.add(t.x),s+=t.y,++a}}return 0!==a&&0!==n.size&&{x:[...n].reduce((t,e)=>t+e)/n.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let i,s,a,r=e.x,o=e.y,c=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=s.getCenterPoint(),i=(0,n.aF)(e,t);i<c&&(c=i,a=s)}}if(a){const t=a.tooltipPosition();r=t.x,o=t.y}return{x:r,y:o}}};function be(t,e){return e&&((0,n.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function pe(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ge(t,e){const{element:i,datasetIndex:n,index:s}=e,a=t.getDatasetMeta(n).controller,{label:r,value:o}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:o,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function me(t,e){const i=t.chart.ctx,{body:s,footer:a,title:r}=t,{boxWidth:o,boxHeight:c}=e,d=(0,n.a0)(e.bodyFont),h=(0,n.a0)(e.titleFont),f=(0,n.a0)(e.footerFont),l=r.length,u=a.length,b=s.length,p=(0,n.E)(e.padding);let g=p.height,m=0,y=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);y+=t.beforeBody.length+t.afterBody.length,l&&(g+=l*h.lineHeight+(l-1)*e.titleSpacing+e.titleMarginBottom),y&&(g+=b*(e.displayColors?Math.max(c,d.lineHeight):d.lineHeight)+(y-b)*d.lineHeight+(y-1)*e.bodySpacing),u&&(g+=e.footerMarginTop+u*f.lineHeight+(u-1)*e.footerSpacing);let x=0;const v=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,(0,n.F)(t.title,v),i.font=d.string,(0,n.F)(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?o+2+e.boxPadding:0,(0,n.F)(s,t=>{(0,n.F)(t.before,v),(0,n.F)(t.lines,v),(0,n.F)(t.after,v)}),x=0,i.font=f.string,(0,n.F)(t.footer,v),i.restore(),m+=p.width,{width:m,height:g}}function ye(t,e,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:o,right:c}}=t;let d="center";return"center"===n?d=s<=(o+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),function(t,e,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+a+r>e.width||"right"===t&&s-a-r<0||void 0}(d,t,e,i)&&(d="center"),d}function xe(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||ye(t,e,i,n),yAlign:n}}function ve(t,e,i,s){const{caretSize:a,caretPadding:r,cornerRadius:o}=t,{xAlign:c,yAlign:d}=i,h=a+r,{topLeft:f,topRight:l,bottomLeft:u,bottomRight:b}=(0,n.ay)(o);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,c);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,d,h);return"center"===d?"left"===c?p+=h:"right"===c&&(p-=h):"left"===c?p-=Math.max(f,u)+a:"right"===c&&(p+=Math.max(l,b)+a),{x:(0,n.S)(p,0,s.width-e.width),y:(0,n.S)(g,0,s.height-e.height)}}function _e(t,e,i){const s=(0,n.E)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function we(t){return be([],pe(t))}function Se(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Me={beforeTitle:n.aG,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.aG,beforeBody:n.aG,beforeLabel:n.aG,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(0,n.k)(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.aG,afterBody:n.aG,beforeFooter:n.aG,footer:n.aG,afterFooter:n.aG};function ke(t,e,i,n){const s=t[e].call(i,n);return void 0===s?Me[e].call(i,n):s}class Ae extends bt{static positioners=ue;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,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 d(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this._tooltipItems,(0,n.j)(t,{tooltip:this,tooltipItems:e,type:"tooltip"})));var t,e}getTitle(t,e){const{callbacks:i}=e,n=ke(i,"beforeTitle",this,t),s=ke(i,"title",this,t),a=ke(i,"afterTitle",this,t);let r=[];return r=be(r,pe(n)),r=be(r,pe(s)),r=be(r,pe(a)),r}getBeforeBody(t,e){return we(ke(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return(0,n.F)(t,t=>{const e={before:[],lines:[],after:[]},n=Se(i,t);be(e.before,pe(ke(n,"beforeLabel",this,t))),be(e.lines,ke(n,"label",this,t)),be(e.after,pe(ke(n,"afterLabel",this,t))),s.push(e)}),s}getAfterBody(t,e){return we(ke(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=ke(i,"beforeFooter",this,t),s=ke(i,"footer",this,t),a=ke(i,"afterFooter",this,t);let r=[];return r=be(r,pe(n)),r=be(r,pe(s)),r=be(r,pe(a)),r}_createItems(t){const e=this._active,i=this.chart.data,s=[],a=[],r=[];let o,c,d=[];for(o=0,c=e.length;o<c;++o)d.push(ge(this.chart,e[o]));return t.filter&&(d=d.filter((e,n,s)=>t.filter(e,n,s,i))),t.itemSort&&(d=d.sort((e,n)=>t.itemSort(e,n,i))),(0,n.F)(d,e=>{const i=Se(t.callbacks,e);s.push(ke(i,"labelColor",this,e)),a.push(ke(i,"labelPointStyle",this,e)),r.push(ke(i,"labelTextColor",this,e))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=d,d}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,a=[];if(n.length){const t=ue[i.position].call(this,n,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const e=this._size=me(this,i),r=Object.assign({},t,e),o=xe(this.chart,i,r),c=ve(i,r,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,s={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=a,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:s,yAlign:a}=this,{caretSize:r,cornerRadius:o}=i,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=(0,n.ay)(o),{x:l,y:u}=t,{width:b,height:p}=e;let g,m,y,x,v,_;return"center"===a?(v=u+p/2,"left"===s?(g=l,m=g-r,x=v+r,_=v-r):(g=l+b,m=g+r,x=v-r,_=v+r),y=g):(m="left"===s?l+Math.max(c,h)+r:"right"===s?l+b-Math.max(d,f)-r:this.caretX,"top"===a?(x=u,v=x-r,g=m-r,y=m+r):(x=u+p,v=x+r,g=m+r,y=m-r),_=x),{x1:g,x2:m,x3:y,y1:x,y2:v,y3:_}}drawTitle(t,e,i){const s=this.title,a=s.length;let r,o,c;if(a){const d=(0,n.aA)(i.rtl,this.x,this.width);for(t.x=_e(this,i.titleAlign,i),e.textAlign=d.textAlign(i.titleAlign),e.textBaseline="middle",r=(0,n.a0)(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,c=0;c<a;++c)e.fillText(s[c],d.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+o,c+1===a&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,s,a){const r=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:c,boxWidth:d}=a,h=(0,n.a0)(a.bodyFont),f=_e(this,"left",a),l=s.x(f),u=c<h.lineHeight?(h.lineHeight-c)/2:0,b=e.y+u;if(a.usePointStyle){const e={radius:Math.min(d,c)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=s.leftForLtr(l,d)+d/2,h=b+c/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,(0,n.av)(t,e,i,h),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,(0,n.av)(t,e,i,h)}else{t.lineWidth=(0,n.i)(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=s.leftForLtr(l,d),i=s.leftForLtr(s.xPlus(l,1),d-2),o=(0,n.ay)(r.borderRadius);Object.values(o).some(t=>0!==t)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,(0,n.aw)(t,{x:e,y:b,w:d,h:c,radius:o}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,n.aw)(t,{x:i,y:b+1,w:d-2,h:c-2,radius:o}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,b,d,c),t.strokeRect(e,b,d,c),t.fillStyle=r.backgroundColor,t.fillRect(i,b+1,d-2,c-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:a,bodyAlign:r,displayColors:o,boxHeight:c,boxWidth:d,boxPadding:h}=i,f=(0,n.a0)(i.bodyFont);let l=f.lineHeight,u=0;const b=(0,n.aA)(i.rtl,this.x,this.width),p=function(i){e.fillText(i,b.x(t.x+u),t.y+l/2),t.y+=l+a},g=b.textAlign(r);let m,y,x,v,_,w,S;for(e.textAlign=r,e.textBaseline="middle",e.font=f.string,t.x=_e(this,g,i),e.fillStyle=i.bodyColor,(0,n.F)(this.beforeBody,p),u=o&&"right"!==g?"center"===r?d/2+h:d+2+h:0,v=0,w=s.length;v<w;++v){for(m=s[v],y=this.labelTextColors[v],e.fillStyle=y,(0,n.F)(m.before,p),x=m.lines,o&&x.length&&(this._drawColorBox(e,t,v,b,i),l=Math.max(f.lineHeight,c)),_=0,S=x.length;_<S;++_)p(x[_]),l=f.lineHeight;(0,n.F)(m.after,p)}u=0,l=f.lineHeight,(0,n.F)(this.afterBody,p),t.y-=a}drawFooter(t,e,i){const s=this.footer,a=s.length;let r,o;if(a){const c=(0,n.aA)(i.rtl,this.x,this.width);for(t.x=_e(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=c.textAlign(i.footerAlign),e.textBaseline="middle",r=(0,n.a0)(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,o=0;o<a;++o)e.fillText(s[o],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:a,yAlign:r}=this,{x:o,y:c}=t,{width:d,height:h}=i,{topLeft:f,topRight:l,bottomLeft:u,bottomRight:b}=(0,n.ay)(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(o+f,c),"top"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+d-l,c),e.quadraticCurveTo(o+d,c,o+d,c+l),"center"===r&&"right"===a&&this.drawCaret(t,e,i,s),e.lineTo(o+d,c+h-b),e.quadraticCurveTo(o+d,c+h,o+d-b,c+h),"bottom"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+u,c+h),e.quadraticCurveTo(o,c+h,o,c+h-u),"center"===r&&"left"===a&&this.drawCaret(t,e,i,s),e.lineTo(o,c+f),e.quadraticCurveTo(o,c,o+f,c),e.closePath(),e.fill(),s.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=ue[t.position].call(this,this._active,this._eventPosition);if(!i)return;const a=this._size=me(this,t),r=Object.assign({},i,this._size),o=xe(e,t,r),c=ve(t,r,o,e);n._to===c.x&&s._to===c.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=a.width,this.height=a.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=(0,n.E)(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(a,t,s,e),(0,n.aB)(t,e.textDirection),a.y+=r.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),(0,n.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=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}}),a=!(0,n.ai)(i,s),r=this._positionChanged(s,e);(a||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],r=this._getActiveElements(t,a,e,i),o=this._positionChanged(r,t),c=e||!(0,n.ai)(r,a)||o;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const a=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,a=ue[s.position].call(this,t,e);return!1!==a&&(i!==a.x||n!==a.y)}}var Pe={id:"tooltip",_element:Ae,positioners:ue,afterInit(t,e,i){i&&(t.tooltip=new Ae({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,cancelable:!0}))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:Me},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"]};function Ce(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ie extends St{static id="category";static defaults={ticks:{callback:Ce}};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((0,n.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,n.S)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,n){const s=t.indexOf(e);return-1===s?((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):s!==t.lastIndexOf(e)?i:s}(i,t,(0,n.v)(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){return Ce.call(this,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 Oe(t,e,{horizontal:i,minRotation:s}){const a=(0,n.t)(s),r=(i?Math.sin(a):Math.cos(a))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class Ee extends St{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(0,n.k)(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:s,max:a}=this;const r=t=>s=e?s:t,o=t=>a=i?a:t;if(t){const t=(0,n.s)(s),e=(0,n.s)(a);t<0&&e<0?o(0):t>0&&e>0&&r(0)}if(s===a){let e=0===a?1:Math.abs(.05*a);o(a+e),t||r(s-e)}this.min=s,this.max=a}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 s=function(t,e){const i=[],{bounds:s,step:a,min:r,max:o,precision:c,count:d,maxTicks:h,maxDigits:f,includeBounds:l}=t,u=a||1,b=h-1,{min:p,max:g}=e,m=!(0,n.k)(r),y=!(0,n.k)(o),x=!(0,n.k)(d),v=(g-p)/(f+1);let _,w,S,M,k=(0,n.aI)((g-p)/b/u)*u;if(k<1e-14&&!m&&!y)return[{value:p},{value:g}];M=Math.ceil(g/k)-Math.floor(p/k),M>b&&(k=(0,n.aI)(M*k/b/u)*u),(0,n.k)(c)||(_=Math.pow(10,c),k=Math.ceil(k*_)/_),"ticks"===s?(w=Math.floor(p/k)*k,S=Math.ceil(g/k)*k):(w=p,S=g),m&&y&&a&&(0,n.aJ)((o-r)/a,k/1e3)?(M=Math.round(Math.min((o-r)/k,h)),k=(o-r)/M,w=r,S=o):x?(w=m?r:w,S=y?o:S,M=d-1,k=(S-w)/M):(M=(S-w)/k,M=(0,n.aK)(M,Math.round(M),k/1e3)?Math.round(M):Math.ceil(M));const A=Math.max((0,n.aL)(k),(0,n.aL)(w));_=Math.pow(10,(0,n.k)(c)?A:c),w=Math.round(w*_)/_,S=Math.round(S*_)/_;let P=0;for(m&&(l&&w!==r?(i.push({value:r}),w<r&&P++,(0,n.aK)(Math.round((w+P*k)*_)/_,r,Oe(r,v,t))&&P++):w<r&&P++);P<M;++P){const t=Math.round((w+P*k)*_)/_;if(y&&t>o)break;i.push({value:t})}return y&&l&&S!==o?i.length&&(0,n.aK)(i[i.length-1].value,o,Oe(o,v,t))?i[i.length-1].value=o:i.push({value:o}):y&&S!==o||i.push({value:S}),i}({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&&(0,n.aH)(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}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(0,n.o)(t,this.chart.options.locale,this.options.ticks.format)}}class Te extends Ee{static id="linear";static defaults={ticks:{callback:n.aM.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,n.g)(t)?t:0,this.max=(0,n.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=(0,n.t)(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}n.aM.formatters.logarithmic,n.aM.formatters.numeric},54672(t,e,i){"use strict";var n=i(41874),s=n.assert,a=n.parseBytes,r=n.cachedProperty;function o(t,e){this.eddsa=t,this._secret=a(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=a(e.pub)}o.fromPublic=function(t,e){return e instanceof o?e:new o(t,{pub:e})},o.fromSecret=function(t,e){return e instanceof o?e:new o(t,{secret:e})},o.prototype.secret=function(){return this._secret},r(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),r(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),r(o,"privBytes",function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n}),r(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),r(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),r(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(t){return s(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},o.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},o.prototype.getSecret=function(t){return s(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},o.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=o},57782(t,e,i){"use strict";var n=i(82823),s=i(41874),a=s.assert;function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(a(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function o(){this.place=0}function c(t,e){var i=t[e.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var s=0,a=0,r=e.place;a<n;a++,r++)s<<=8,s|=t[r],s>>>=0;return!(s<=127)&&(e.place=r,s)}function d(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e<i;)e++;return 0===e?t:t.slice(e)}function h(t,e){if(e<128)t.push(e);else{var i=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}t.exports=r,r.prototype._importDER=function(t,e){t=s.toArray(t,e);var i=new o;if(48!==t[i.place++])return!1;var a=c(t,i);if(!1===a)return!1;if(a+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;var r=c(t,i);if(!1===r)return!1;if(128&t[i.place])return!1;var d=t.slice(i.place,r+i.place);if(i.place+=r,2!==t[i.place++])return!1;var h=c(t,i);if(!1===h)return!1;if(t.length!==h+i.place)return!1;if(128&t[i.place])return!1;var f=t.slice(i.place,h+i.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(d),this.s=new n(f),this.recoveryParam=null,!0},r.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=d(e),i=d(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];h(n,e.length),(n=n.concat(e)).push(2),h(n,i.length);var a=n.concat(i),r=[48];return h(r,a.length),r=r.concat(a),s.encode(r,t)}},59777(t,e,i){"use strict";i.d(e,{Mj:()=>C});var n={grad:.9,turn:360,rad:360/(2*Math.PI)},s=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},a=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},r=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),t>i?i:t>e?t:e},o=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},c=function(t){return{r:r(t.r,0,255),g:r(t.g,0,255),b:r(t.b,0,255),a:r(t.a)}},d=function(t){return{r:a(t.r),g:a(t.g),b:a(t.b),a:a(t.a,3)}},h=/^#([0-9a-f]{3,8})$/i,f=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},l=function(t){var e=t.r,i=t.g,n=t.b,s=t.a,a=Math.max(e,i,n),r=a-Math.min(e,i,n),o=r?a===e?(i-n)/r:a===i?2+(n-e)/r:4+(e-i)/r:0;return{h:60*(o<0?o+6:o),s:a?r/a*100:0,v:a/255*100,a:s}},u=function(t){var e=t.h,i=t.s,n=t.v,s=t.a;e=e/360*6,i/=100,n/=100;var a=Math.floor(e),r=n*(1-i),o=n*(1-(e-a)*i),c=n*(1-(1-e+a)*i),d=a%6;return{r:255*[n,o,r,r,c,n][d],g:255*[c,n,n,o,r,r][d],b:255*[r,r,c,n,n,o][d],a:s}},b=function(t){return{h:o(t.h),s:r(t.s,0,100),l:r(t.l,0,100),a:r(t.a)}},p=function(t){return{h:a(t.h),s:a(t.s),l:a(t.l),a:a(t.a,3)}},g=function(t){return u((i=(e=t).s,{h:e.h,s:(i*=((n=e.l)<50?n:100-n)/100)>0?2*i/(n+i)*100:0,v:n+i,a:e.a}));var e,i,n},m=function(t){return{h:(e=l(t)).h,s:(s=(200-(i=e.s))*(n=e.v)/100)>0&&s<200?i*n/100/(s<=100?s:200-s)*100:0,l:s/2,a:e.a};var e,i,n,s},y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(t){var e=h.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?a(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?a(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=v.exec(t)||_.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:c({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=y.exec(t)||x.exec(t);if(!e)return null;var i,s,a=b({h:(i=e[1],s=e[2],void 0===s&&(s="deg"),Number(i)*(n[s]||1)),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)});return g(a)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,n=t.b,a=t.a,r=void 0===a?1:a;return s(e)&&s(i)&&s(n)?c({r:Number(e),g:Number(i),b:Number(n),a:Number(r)}):null},"rgb"],[function(t){var e=t.h,i=t.s,n=t.l,a=t.a,r=void 0===a?1:a;if(!s(e)||!s(i)||!s(n))return null;var o=b({h:Number(e),s:Number(i),l:Number(n),a:Number(r)});return g(o)},"hsl"],[function(t){var e=t.h,i=t.s,n=t.v,a=t.a,c=void 0===a?1:a;if(!s(e)||!s(i)||!s(n))return null;var d=function(t){return{h:o(t.h),s:r(t.s,0,100),v:r(t.v,0,100),a:r(t.a)}}({h:Number(e),s:Number(i),v:Number(n),a:Number(c)});return u(d)},"hsv"]]},S=function(t,e){for(var i=0;i<e.length;i++){var n=e[i][0](t);if(n)return[n,e[i][1]]}return[null,void 0]},M=function(t,e){var i=m(t);return{h:i.h,s:r(i.s+100*e,0,100),l:i.l,a:i.a}},k=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},A=function(t,e){var i=m(t);return{h:i.h,s:i.s,l:r(i.l+100*e,0,100),a:i.a}},P=function(){function t(t){this.parsed=function(t){return"string"==typeof t?S(t.trim(),w.string):"object"==typeof t&&null!==t?S(t,w.object):[null,void 0]}(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return a(k(this.rgba),2)},t.prototype.isDark=function(){return k(this.rgba)<.5},t.prototype.isLight=function(){return k(this.rgba)>=.5},t.prototype.toHex=function(){return e=(t=d(this.rgba)).r,i=t.g,n=t.b,r=(s=t.a)<1?f(a(255*s)):"","#"+f(e)+f(i)+f(n)+r;var t,e,i,n,s,r},t.prototype.toRgb=function(){return d(this.rgba)},t.prototype.toRgbString=function(){return e=(t=d(this.rgba)).r,i=t.g,n=t.b,(s=t.a)<1?"rgba("+e+", "+i+", "+n+", "+s+")":"rgb("+e+", "+i+", "+n+")";var t,e,i,n,s},t.prototype.toHsl=function(){return p(m(this.rgba))},t.prototype.toHslString=function(){return e=(t=p(m(this.rgba))).h,i=t.s,n=t.l,(s=t.a)<1?"hsla("+e+", "+i+"%, "+n+"%, "+s+")":"hsl("+e+", "+i+"%, "+n+"%)";var t,e,i,n,s},t.prototype.toHsv=function(){return t=l(this.rgba),{h:a(t.h),s:a(t.s),v:a(t.v),a:a(t.a,3)};var t},t.prototype.invert=function(){return C({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},t.prototype.saturate=function(t){return void 0===t&&(t=.1),C(M(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),C(M(this.rgba,-t))},t.prototype.grayscale=function(){return C(M(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),C(A(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),C(A(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){return"number"==typeof t?C({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):a(this.rgba.a,3);var e},t.prototype.hue=function(t){var e=m(this.rgba);return"number"==typeof t?C({h:t,s:e.s,l:e.l,a:e.a}):a(e.h)},t.prototype.isEqual=function(t){return this.toHex()===C(t).toHex()},t}(),C=function(t){return t instanceof P?t:new P(t)}},60277(t,e,i){"use strict";var n=i(41874),s=i(82823),a=i(35615),r=i(85174),o=n.assert;function c(t){r.call(this,"short",t),this.a=new s(t.a,16).toRed(this.red),this.b=new s(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(t,e,i,n){r.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(e,16),this.y=new s(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(t,e,i,n){r.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(e,16),this.y=new s(i,16),this.z=new s(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,r),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,i;if(t.beta)e=new s(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)i=new s(t.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(e))?i=a[0]:(i=a[1],o(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:i,basis:t.basis?t.basis.map(function(t){return{a:new s(t.a,16),b:new s(t.b,16)}}):this._getEndoBasis(i)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:s.mont(t),i=new s(2).toRed(e).redInvm(),n=i.redNeg(),a=new s(3).toRed(e).redNeg().redSqrt().redMul(i);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,i,n,a,r,o,c,d,h,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,u=this.n.clone(),b=new s(1),p=new s(0),g=new s(0),m=new s(1),y=0;0!==l.cmpn(0);){var x=u.div(l);d=u.sub(x.mul(l)),h=g.sub(x.mul(b));var v=m.sub(x.mul(p));if(!n&&d.cmp(f)<0)e=c.neg(),i=b,n=d.neg(),a=h;else if(n&&2===++y)break;c=d,u=l,l=d,g=b,b=h,m=p,p=v}r=d.neg(),o=h;var _=n.sqr().add(a.sqr());return r.sqr().add(o.sqr()).cmp(_)>=0&&(r=e,o=i),n.negative&&(n=n.neg(),a=a.neg()),r.negative&&(r=r.neg(),o=o.neg()),[{a:n,b:a},{a:r,b:o}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],n=e[1],s=n.b.mul(t).divRound(this.n),a=i.b.neg().mul(t).divRound(this.n),r=s.mul(i.a),o=a.mul(n.a),c=s.mul(i.b),d=a.mul(n.b);return{k1:t.sub(r).sub(o),k2:c.add(d).neg()}},c.prototype.pointFromX=function(t,e){(t=new s(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var a=n.fromRed().isOdd();return(e&&!a||!e&&a)&&(n=n.redNeg()),this.point(t,n)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,i=t.y,n=this.a.redMul(e),s=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(s).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,i){for(var n=this._endoWnafT1,s=this._endoWnafT2,a=0;a<t.length;a++){var r=this._endoSplit(e[a]),o=t[a],c=o._getBeta();r.k1.negative&&(r.k1.ineg(),o=o.neg(!0)),r.k2.negative&&(r.k2.ineg(),c=c.neg(!0)),n[2*a]=o,n[2*a+1]=c,s[2*a]=r.k1,s[2*a+1]=r.k2}for(var d=this._wnafMulAdd(1,n,s,2*a,i),h=0;h<2*a;h++)n[h]=null,s[h]=null;return d},a(d,r.BasePoint),c.prototype.point=function(t,e,i){return new d(this,t,e,i)},c.prototype.pointFromJSON=function(t,e){return d.fromJSON(this,t,e)},d.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,n=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(t,e,i){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],i);if(!e[2])return n;function s(e){return t.point(e[0],e[1],i)}var a=e[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(s))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(s))}},n},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var i=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},d.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr(),n=t.redInvm(),s=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(n),a=s.redSqr().redISub(this.x.redAdd(this.x)),r=s.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,r)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(t){return t=new s(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,i){var n=[this,e],s=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s):this.curve._wnafMulAdd(1,n,s,2)},d.prototype.jmulAdd=function(t,e,i){var n=[this,e],s=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s,!0):this.curve._wnafMulAdd(1,n,s,2,!0)},d.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},d.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return e},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(h,r.BasePoint),c.prototype.jpoint=function(t,e,i){return new h(this,t,e,i)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(i,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(e),s=t.x.redMul(i),a=this.y.redMul(e.redMul(t.z)),r=t.y.redMul(i.redMul(this.z)),o=n.redSub(s),c=a.redSub(r);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),h=d.redMul(o),f=n.redMul(d),l=c.redSqr().redIAdd(h).redISub(f).redISub(f),u=c.redMul(f.redISub(l)).redISub(a.redMul(h)),b=this.z.redMul(t.z).redMul(o);return this.curve.jpoint(l,u,b)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,n=t.x.redMul(e),s=this.y,a=t.y.redMul(e).redMul(this.z),r=i.redSub(n),o=s.redSub(a);if(0===r.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=r.redSqr(),d=c.redMul(r),h=i.redMul(c),f=o.redSqr().redIAdd(d).redISub(h).redISub(h),l=o.redMul(h.redISub(f)).redISub(s.redMul(d)),u=this.z.redMul(r);return this.curve.jpoint(f,l,u)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var i=this;for(e=0;e<t;e++)i=i.dbl();return i}var n=this.curve.a,s=this.curve.tinv,a=this.x,r=this.y,o=this.z,c=o.redSqr().redSqr(),d=r.redAdd(r);for(e=0;e<t;e++){var h=a.redSqr(),f=d.redSqr(),l=f.redSqr(),u=h.redAdd(h).redIAdd(h).redIAdd(n.redMul(c)),b=a.redMul(f),p=u.redSqr().redISub(b.redAdd(b)),g=b.redISub(p),m=u.redMul(g);m=m.redIAdd(m).redISub(l);var y=d.redMul(o);e+1<t&&(c=c.redMul(l)),a=p,o=y,d=m}return this.curve.jpoint(a,d.redMul(s),o)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var t,e,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),a=s.redSqr(),r=this.x.redAdd(s).redSqr().redISub(n).redISub(a);r=r.redIAdd(r);var o=n.redAdd(n).redIAdd(n),c=o.redSqr().redISub(r).redISub(r),d=a.redIAdd(a);d=(d=d.redIAdd(d)).redIAdd(d),t=c,e=o.redMul(r.redISub(c)).redISub(d),i=this.y.redAdd(this.y)}else{var h=this.x.redSqr(),f=this.y.redSqr(),l=f.redSqr(),u=this.x.redAdd(f).redSqr().redISub(h).redISub(l);u=u.redIAdd(u);var b=h.redAdd(h).redIAdd(h),p=b.redSqr(),g=l.redIAdd(l);g=(g=g.redIAdd(g)).redIAdd(g),t=p.redISub(u).redISub(u),e=b.redMul(u.redISub(t)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(t,e,i)},h.prototype._threeDbl=function(){var t,e,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),a=s.redSqr(),r=this.x.redAdd(s).redSqr().redISub(n).redISub(a);r=r.redIAdd(r);var o=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=o.redSqr().redISub(r).redISub(r);t=c;var d=a.redIAdd(a);d=(d=d.redIAdd(d)).redIAdd(d),e=o.redMul(r.redISub(c)).redISub(d),i=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),f=this.y.redSqr(),l=this.x.redMul(f),u=this.x.redSub(h).redMul(this.x.redAdd(h));u=u.redAdd(u).redIAdd(u);var b=l.redIAdd(l),p=(b=b.redIAdd(b)).redAdd(b);t=u.redSqr().redISub(p),i=this.y.redAdd(this.z).redSqr().redISub(f).redISub(h);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=u.redMul(b.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,i)},h.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,n=this.z,s=n.redSqr().redSqr(),a=e.redSqr(),r=i.redSqr(),o=a.redAdd(a).redIAdd(a).redIAdd(t.redMul(s)),c=e.redAdd(e),d=(c=c.redIAdd(c)).redMul(r),h=o.redSqr().redISub(d.redAdd(d)),f=d.redISub(h),l=r.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=o.redMul(f).redISub(l),b=i.redAdd(i).redMul(n);return this.curve.jpoint(h,u,b)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr(),n=e.redSqr(),s=t.redAdd(t).redIAdd(t),a=s.redSqr(),r=this.x.redAdd(e).redSqr().redISub(t).redISub(n),o=(r=(r=(r=r.redIAdd(r)).redAdd(r).redIAdd(r)).redISub(a)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=s.redIAdd(r).redSqr().redISub(a).redISub(o).redISub(c),h=e.redMul(d);h=(h=h.redIAdd(h)).redIAdd(h);var f=this.x.redMul(o).redISub(h);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.y.redMul(d.redMul(c.redISub(d)).redISub(r.redMul(o)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=this.z.redAdd(r).redSqr().redISub(i).redISub(o);return this.curve.jpoint(f,l,u)},h.prototype.mul=function(t,e){return t=new s(t,e),this.curve._wnafMul(this,t)},h.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),i=t.z.redSqr();if(0!==this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),s=i.redMul(t.z);return 0===this.y.redMul(s).redISub(t.y.redMul(n)).cmpn(0)},h.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(var n=t.clone(),s=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(s),0===this.x.cmp(i))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},61155(t){"use strict";t.exports=RangeError},62012(t,e,i){"use strict";var n=i(79138),s=i(6095),a=i(68165);t.exports=function(){return a(n,s,arguments)}},63245(t,e,i){"use strict";var n=i(82823),s=i(35615),a=i(85174),r=i(41874);function o(t){a.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,i){a.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}s(o,a),t.exports=o,o.prototype.validate=function(t){var e=t.normalize().x,i=e.redSqr(),n=i.redMul(e).redAdd(i.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},s(c,a.BasePoint),o.prototype.decodePoint=function(t,e){return this.point(r.toArray(t,e),1)},o.prototype.point=function(t,e){return new c(this,t,e)},o.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),n=t.redMul(e),s=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,s)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),s=t.x.redAdd(t.z),a=t.x.redSub(t.z).redMul(i),r=s.redMul(n),o=e.z.redMul(a.redAdd(r).redSqr()),c=e.x.redMul(a.redISub(r).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(t){for(var e=t.clone(),i=this,n=this.curve.point(null,null),s=[];0!==e.cmpn(0);e.iushrn(1))s.push(e.andln(1));for(var a=s.length-1;a>=0;a--)0===s[a]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},64531(t){"use strict";t.exports=Function.prototype.call},64940(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},68165(t,e,i){"use strict";var n=i(79138),s=i(6095),a=i(64531),r=i(87196);t.exports=r||n.call(a,s)},69820(t,e,i){"use strict";function n(){}function s(){}i.d(e,{HB:()=>s,ok:()=>n})},70686(t,e,i){"use strict";var n=i(64940),s=i(5731),a=i(3468),r=i(69336);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],f=!!r&&r(t,e);if(n)n(t,e,{configurable:null===d&&f?f.configurable:!d,enumerable:null===o&&f?f.enumerable:!o,value:i,writable:null===c&&f?f.writable:!c});else{if(!h&&(o||c||d))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},72251(t,e,i){"use strict";i.d(e,{A:()=>b});var n,s="20px",a='"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',r="40px",o="\n .codeflask {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n\n .codeflask, .codeflask * {\n box-sizing: border-box;\n }\n\n .codeflask__pre {\n pointer-events: none;\n z-index: 3;\n overflow: hidden;\n }\n\n .codeflask__textarea {\n background: none;\n border: none;\n color: "+(n="caret-color",(("undefined"!=typeof CSS?CSS.supports(n,"#000"):"undefined"!=typeof document&&function(t){return(t=t.split("-").filter(function(t){return!!t}).map(function(t){return t[0].toUpperCase()+t.substr(1)}).join(""))[0].toLowerCase()+t.substr(1)}(n)in document.body.style)?"#fff":"#ccc")+";\n z-index: 1;\n resize: none;\n font-family: ")+a+";\n -webkit-appearance: pre;\n caret-color: #111;\n z-index: 2;\n width: 100%;\n height: 100%;\n }\n\n .codeflask--has-line-numbers .codeflask__textarea {\n width: calc(100% - "+r+");\n }\n\n .codeflask__code {\n display: block;\n font-family: "+a+";\n overflow: hidden;\n }\n\n .codeflask__flatten {\n padding: 10px;\n font-size: 13px;\n line-height: "+s+";\n white-space: pre;\n position: absolute;\n top: 0;\n left: 0;\n overflow: auto;\n margin: 0 !important;\n outline: none;\n text-align: left;\n }\n\n .codeflask--has-line-numbers .codeflask__flatten {\n width: calc(100% - "+r+");\n left: "+r+";\n }\n\n .codeflask__line-highlight {\n position: absolute;\n top: 10px;\n left: 0;\n width: 100%;\n height: "+s+";\n background: rgba(0,0,0,0.1);\n z-index: 1;\n }\n\n .codeflask__lines {\n padding: 10px 4px;\n font-size: 12px;\n line-height: "+s+";\n font-family: 'Cousine', monospace;\n position: absolute;\n left: 0;\n top: 0;\n width: "+r+";\n height: 100%;\n text-align: right;\n color: #999;\n z-index: 2;\n }\n\n .codeflask__lines__line {\n display: block;\n }\n\n .codeflask.codeflask--has-line-numbers {\n padding-left: "+r+";\n }\n\n .codeflask.codeflask--has-line-numbers:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: "+r+";\n height: 100%;\n background: #eee;\n z-index: 1;\n }\n";function c(t,e,i){var n=e||"codeflask-style",s=i||document.head;if(!t)return!1;if(document.getElementById(n))return!0;var a=document.createElement("style");return a.innerHTML=t,a.id=n,s.appendChild(a),!0}var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function h(t){return String(t).replace(/[&<>"'`=/]/g,function(t){return d[t]})}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},l=function(t,e){return function(t){var e=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,i=0,n={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function(t){return t instanceof s?new s(t.type,n.util.encode(t.content),t.alias):Array.isArray(t)?t.map(n.util.encode):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++i}),t.__id},clone:function t(e,i){var s,a,r=n.util.type(e);switch(i=i||{},r){case"Object":if(a=n.util.objId(e),i[a])return i[a];for(var o in s={},i[a]=s,e)e.hasOwnProperty(o)&&(s[o]=t(e[o],i));return s;case"Array":return a=n.util.objId(e),i[a]?i[a]:(s=[],i[a]=s,e.forEach(function(e,n){s[n]=t(e,i)}),s);default:return e}}},languages:{extend:function(t,e){var i=n.util.clone(n.languages[t]);for(var s in e)i[s]=e[s];return i},insertBefore:function(t,e,i,s){var a=(s=s||n.languages)[t],r={};for(var o in a)if(a.hasOwnProperty(o)){if(o==e)for(var c in i)i.hasOwnProperty(c)&&(r[c]=i[c]);i.hasOwnProperty(o)||(r[o]=a[o])}var d=s[t];return s[t]=r,n.languages.DFS(n.languages,function(e,i){i===d&&e!=t&&(this[e]=r)}),r},DFS:function t(e,i,s,a){a=a||{};var r=n.util.objId;for(var o in e)if(e.hasOwnProperty(o)){i.call(e,o,e[o],s||o);var c=e[o],d=n.util.type(c);"Object"!==d||a[r(c)]?"Array"!==d||a[r(c)]||(a[r(c)]=!0,t(c,i,o,a)):(a[r(c)]=!0,t(c,i,null,a))}}},plugins:{},highlightAll:function(t,e){n.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,i){var s={callback:i,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",s);for(var a,r=s.elements||t.querySelectorAll(s.selector),o=0;a=r[o++];)n.highlightElement(a,!0===e,s.callback)},highlightElement:function(i,s,a){for(var r,o,c=i;c&&!e.test(c.className);)c=c.parentNode;c&&(r=(c.className.match(e)||[,""])[1].toLowerCase(),o=n.languages[r]),i.className=i.className.replace(e,"").replace(/\s+/g," ")+" language-"+r,i.parentNode&&(c=i.parentNode,/pre/i.test(c.nodeName)&&(c.className=c.className.replace(e,"").replace(/\s+/g," ")+" language-"+r));var d={element:i,language:r,grammar:o,code:i.textContent},h=function(t){d.highlightedCode=t,n.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,n.hooks.run("after-highlight",d),n.hooks.run("complete",d),a&&a.call(d.element)};if(n.hooks.run("before-sanity-check",d),d.code)if(n.hooks.run("before-highlight",d),d.grammar)if(s&&t.Worker){var f=new Worker(n.filename);f.onmessage=function(t){h(t.data)},f.postMessage(JSON.stringify({language:d.language,code:d.code,immediateClose:!0}))}else h(n.highlight(d.code,d.grammar,d.language));else h(n.util.encode(d.code));else n.hooks.run("complete",d)},highlight:function(t,e,i){var a={code:t,grammar:e,language:i};return n.hooks.run("before-tokenize",a),a.tokens=n.tokenize(a.code,a.grammar),n.hooks.run("after-tokenize",a),s.stringify(n.util.encode(a.tokens),a.language)},matchGrammar:function(t,e,i,a,r,o,c){for(var d in i)if(i.hasOwnProperty(d)&&i[d]){if(d==c)return;var h=i[d];h="Array"===n.util.type(h)?h:[h];for(var f=0;f<h.length;++f){var l=h[f],u=l.inside,b=!!l.lookbehind,p=!!l.greedy,g=0,m=l.alias;if(p&&!l.pattern.global){var y=l.pattern.toString().match(/[imuy]*$/)[0];l.pattern=RegExp(l.pattern.source,y+"g")}l=l.pattern||l;for(var x=a,v=r;x<e.length;v+=e[x].length,++x){var _=e[x];if(e.length>t.length)return;if(!(_ instanceof s)){if(p&&x!=e.length-1){if(l.lastIndex=v,!(P=l.exec(t)))break;for(var w=P.index+(b?P[1].length:0),S=P.index+P[0].length,M=x,k=v,A=e.length;M<A&&(k<S||!e[M].type&&!e[M-1].greedy);++M)w>=(k+=e[M].length)&&(++x,v=k);if(e[x]instanceof s)continue;C=M-x,_=t.slice(v,k),P.index-=v}else{l.lastIndex=0;var P=l.exec(_),C=1}if(P){b&&(g=P[1]?P[1].length:0),S=(w=P.index+g)+(P=P[0].slice(g)).length;var I=_.slice(0,w),O=_.slice(S),E=[x,C];I&&(++x,v+=I.length,E.push(I));var T=new s(d,u?n.tokenize(P,u):P,m,P,p);if(E.push(T),O&&E.push(O),Array.prototype.splice.apply(e,E),1!=C&&n.matchGrammar(t,e,i,x,v,!0,d),o)break}else if(o)break}}}}},tokenize:function(t,e){var i=[t],s=e.rest;if(s){for(var a in s)e[a]=s[a];delete e.rest}return n.matchGrammar(t,i,e,0,0,!1),i},hooks:{all:{},add:function(t,e){var i=n.hooks.all;i[t]=i[t]||[],i[t].push(e)},run:function(t,e){var i=n.hooks.all[t];if(i&&i.length)for(var s,a=0;s=i[a++];)s(e)}},Token:s};function s(t,e,i,n,s){this.type=t,this.content=e,this.alias=i,this.length=0|(n||"").length,this.greedy=!!s}if(t.Prism=n,s.stringify=function(t,e,i){if("string"==typeof t)return t;if(Array.isArray(t))return t.map(function(i){return s.stringify(i,e,t)}).join("");var a={type:t.type,content:s.stringify(t.content,e,i),tag:"span",classes:["token",t.type],attributes:{},language:e,parent:i};if(t.alias){var r=Array.isArray(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}n.hooks.run("wrap",a);var o=Object.keys(a.attributes).map(function(t){return t+'="'+(a.attributes[t]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(o?" "+o:"")+">"+a.content+"</"+a.tag+">"},!t.document)return t.addEventListener?(n.disableWorkerMessageHandler||t.addEventListener("message",function(e){var i=JSON.parse(e.data),s=i.language,a=i.code,r=i.immediateClose;t.postMessage(n.highlight(a,n.languages[s],s)),r&&t.close()},!1),n):n;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(n.filename=a.src,n.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),n}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=e),void 0!==f&&(f.Prism=e),e.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,i){var n={};n["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};s["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var a={};a[t]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,t),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",a)}}),e.languages.xml=e.languages.extend("markup",{}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?[\s\S]*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:RegExp("url\\((?:"+e.source+"|.*?)\\)","i"),selector:RegExp("[^{}\\s](?:[^{};\"']|"+e.source+")*?(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var i=t.languages.markup;i&&(i.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:i.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:t.languages.css}},alias:"language-css"}},i.tag))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+)n?|\d+n|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&e.languages.markup.tag.addInlined("script","javascript"),e.languages.js=e.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(t){t=t||document;var i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(t.querySelectorAll("pre[data-src]")).forEach(function(t){if(!t.hasAttribute("data-src-loaded")){for(var n,s=t.getAttribute("data-src"),a=t,r=/\blang(?:uage)?-([\w-]+)\b/i;a&&!r.test(a.className);)a=a.parentNode;if(a&&(n=(t.className.match(r)||[,""])[1]),!n){var o=(s.match(/\.(\w+)$/)||[,""])[1];n=i[o]||o}var c=document.createElement("code");c.className="language-"+n,t.textContent="",c.textContent="Loading…",t.appendChild(c);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(c.textContent=d.responseText,e.highlightElement(c),t.setAttribute("data-src-loaded","")):d.status>=400?c.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:c.textContent="✖ Error: File does not exist or is empty")},d.send(null)}}),e.plugins.toolbar&&e.plugins.toolbar.registerButton("download-file",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-src")&&e.hasAttribute("data-download-link")){var i=e.getAttribute("data-src"),n=document.createElement("a");return n.textContent=e.getAttribute("data-download-link-label")||"Download",n.setAttribute("download",""),n.href=i,n}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}(e={exports:{}}),e.exports}(),u=function(t,e){if(!t)throw Error("CodeFlask expects a parameter which is Element or a String selector");if(!e)throw Error("CodeFlask expects an object containing options as second parameter");if(t.nodeType)this.editorRoot=t;else{var i=document.querySelector(t);i&&(this.editorRoot=i)}this.opts=e,this.startEditor()};u.prototype.startEditor=function(){if(!c(o,null,this.opts.styleParent))throw Error("Failed to inject CodeFlask CSS.");this.createWrapper(),this.createTextarea(),this.createPre(),this.createCode(),this.runOptions(),this.listenTextarea(),this.populateDefault(),this.updateCode(this.code)},u.prototype.createWrapper=function(){this.code=this.editorRoot.innerHTML,this.editorRoot.innerHTML="",this.elWrapper=this.createElement("div",this.editorRoot),this.elWrapper.classList.add("codeflask")},u.prototype.createTextarea=function(){this.elTextarea=this.createElement("textarea",this.elWrapper),this.elTextarea.classList.add("codeflask__textarea","codeflask__flatten")},u.prototype.createPre=function(){this.elPre=this.createElement("pre",this.elWrapper),this.elPre.classList.add("codeflask__pre","codeflask__flatten")},u.prototype.createCode=function(){this.elCode=this.createElement("code",this.elPre),this.elCode.classList.add("codeflask__code","language-"+(this.opts.language||"html"))},u.prototype.createLineNumbers=function(){this.elLineNumbers=this.createElement("div",this.elWrapper),this.elLineNumbers.classList.add("codeflask__lines"),this.setLineNumber()},u.prototype.createElement=function(t,e){var i=document.createElement(t);return e.appendChild(i),i},u.prototype.runOptions=function(){this.opts.rtl=this.opts.rtl||!1,this.opts.tabSize=this.opts.tabSize||2,this.opts.enableAutocorrect=this.opts.enableAutocorrect||!1,this.opts.lineNumbers=this.opts.lineNumbers||!1,this.opts.defaultTheme=!1!==this.opts.defaultTheme,this.opts.areaId=this.opts.areaId||null,this.opts.ariaLabelledby=this.opts.ariaLabelledby||null,this.opts.readonly=this.opts.readonly||null,"boolean"!=typeof this.opts.handleTabs&&(this.opts.handleTabs=!0),"boolean"!=typeof this.opts.handleSelfClosingCharacters&&(this.opts.handleSelfClosingCharacters=!0),"boolean"!=typeof this.opts.handleNewLineIndentation&&(this.opts.handleNewLineIndentation=!0),!0===this.opts.rtl&&(this.elTextarea.setAttribute("dir","rtl"),this.elPre.setAttribute("dir","rtl")),!1===this.opts.enableAutocorrect&&(this.elTextarea.setAttribute("spellcheck","false"),this.elTextarea.setAttribute("autocapitalize","off"),this.elTextarea.setAttribute("autocomplete","off"),this.elTextarea.setAttribute("autocorrect","off")),this.opts.lineNumbers&&(this.elWrapper.classList.add("codeflask--has-line-numbers"),this.createLineNumbers()),this.opts.defaultTheme&&c("\n.codeflask {\n background: #fff;\n color: #4f559c;\n}\n\n.codeflask .token.punctuation {\n color: #4a4a4a;\n}\n\n.codeflask .token.keyword {\n color: #8500ff;\n}\n\n.codeflask .token.operator {\n color: #ff5598;\n}\n\n.codeflask .token.string {\n color: #41ad8f;\n}\n\n.codeflask .token.comment {\n color: #9badb7;\n}\n\n.codeflask .token.function {\n color: #8500ff;\n}\n\n.codeflask .token.boolean {\n color: #8500ff;\n}\n\n.codeflask .token.number {\n color: #8500ff;\n}\n\n.codeflask .token.selector {\n color: #8500ff;\n}\n\n.codeflask .token.property {\n color: #8500ff;\n}\n\n.codeflask .token.tag {\n color: #8500ff;\n}\n\n.codeflask .token.attr-value {\n color: #8500ff;\n}\n","theme-default",this.opts.styleParent),this.opts.areaId&&this.elTextarea.setAttribute("id",this.opts.areaId),this.opts.ariaLabelledby&&this.elTextarea.setAttribute("aria-labelledby",this.opts.ariaLabelledby),this.opts.readonly&&this.enableReadonlyMode()},u.prototype.updateLineNumbersCount=function(){for(var t="",e=1;e<=this.lineNumber;e++)t=t+'<span class="codeflask__lines__line">'+e+"</span>";this.elLineNumbers.innerHTML=t},u.prototype.listenTextarea=function(){var t=this;this.elTextarea.addEventListener("input",function(e){t.code=e.target.value,t.elCode.innerHTML=h(e.target.value),t.highlight(),setTimeout(function(){t.runUpdate(),t.setLineNumber()},1)}),this.elTextarea.addEventListener("keydown",function(e){t.handleTabs(e),t.handleSelfClosingCharacters(e),t.handleNewLineIndentation(e)}),this.elTextarea.addEventListener("scroll",function(e){t.elPre.style.transform="translate3d(-"+e.target.scrollLeft+"px, -"+e.target.scrollTop+"px, 0)",t.elLineNumbers&&(t.elLineNumbers.style.transform="translate3d(0, -"+e.target.scrollTop+"px, 0)")})},u.prototype.handleTabs=function(t){if(this.opts.handleTabs){if(9!==t.keyCode)return;t.preventDefault();var e=this.elTextarea,i=e.selectionDirection,n=e.selectionStart,s=e.selectionEnd,a=e.value,r=a.substr(0,n),o=a.substring(n,s),c=a.substring(s),d=" ".repeat(this.opts.tabSize);if(n!==s&&o.length>=d.length){var h=n-r.split("\n").pop().length,f=d.length,l=d.length;t.shiftKey?(a.substr(h,d.length)===d?(f=-f,h>n?(o=o.substring(0,h)+o.substring(h+d.length),l=0):h===n?(f=0,l=0,o=o.substring(d.length)):(l=-l,r=r.substring(0,h)+r.substring(h+d.length))):(f=0,l=0),o=o.replace(new RegExp("\n"+d.split("").join("\\"),"g"),"\n")):(r=r.substr(0,h)+d+r.substring(h,n),o=o.replace(/\n/g,"\n"+d)),e.value=r+o+c,e.selectionStart=n+f,e.selectionEnd=n+o.length+l,e.selectionDirection=i}else e.value=r+d+c,e.selectionStart=n+d.length,e.selectionEnd=n+d.length;var u=e.value;this.updateCode(u),this.elTextarea.selectionEnd=s+this.opts.tabSize}},u.prototype.handleSelfClosingCharacters=function(t){if(this.opts.handleSelfClosingCharacters){var e=t.key;if(["(","[","{","<","'",'"'].includes(e)||[")","]","}",">","'",'"'].includes(e))switch(e){case"(":case")":case"[":case"]":case"{":case"}":case"<":case">":case"'":case'"':this.closeCharacter(e)}}},u.prototype.setLineNumber=function(){this.lineNumber=this.code.split("\n").length,this.opts.lineNumbers&&this.updateLineNumbersCount()},u.prototype.handleNewLineIndentation=function(t){if(this.opts.handleNewLineIndentation&&13===t.keyCode){t.preventDefault();var e=this.elTextarea,i=e.selectionStart,n=e.selectionEnd,s=e.value,a=s.substr(0,i),r=s.substring(n),o=s.lastIndexOf("\n",i-1),c=o+s.slice(o+1).search(/[^ ]|$/),d=c>o?c-o:0,h=a+"\n"+" ".repeat(d)+r;e.value=h,e.selectionStart=i+d+1,e.selectionEnd=i+d+1,this.updateCode(e.value)}},u.prototype.closeCharacter=function(t){var e=this.elTextarea.selectionStart,i=this.elTextarea.selectionEnd;if(this.skipCloseChar(t)){var n=this.code.substr(i,1)===t,s=n?i+1:i,a=!n&&["'",'"'].includes(t)?t:"",r=""+this.code.substring(0,e)+a+this.code.substring(s);this.updateCode(r),this.elTextarea.selectionEnd=++this.elTextarea.selectionStart}else{var o=t;switch(t){case"(":o=String.fromCharCode(t.charCodeAt()+1);break;case"<":case"{":case"[":o=String.fromCharCode(t.charCodeAt()+2)}var c=this.code.substring(e,i),d=""+this.code.substring(0,e)+c+o+this.code.substring(i);this.updateCode(d)}this.elTextarea.selectionEnd=e},u.prototype.skipCloseChar=function(t){var e=this.elTextarea.selectionStart,i=this.elTextarea.selectionEnd,n=Math.abs(i-e)>0;return[")","}","]",">"].includes(t)||["'",'"'].includes(t)&&!n},u.prototype.updateCode=function(t){this.code=t,this.elTextarea.value=t,this.elCode.innerHTML=h(t),this.highlight(),this.setLineNumber(),setTimeout(this.runUpdate.bind(this),1)},u.prototype.updateLanguage=function(t){var e=this.opts.language;this.elCode.classList.remove("language-"+e),this.elCode.classList.add("language-"+t),this.opts.language=t,this.highlight()},u.prototype.addLanguage=function(t,e){l.languages[t]=e},u.prototype.populateDefault=function(){this.updateCode(this.code)},u.prototype.highlight=function(){l.highlightElement(this.elCode,!1)},u.prototype.onUpdate=function(t){if(t&&"[object Function]"!=={}.toString.call(t))throw Error("CodeFlask expects callback of type Function");this.updateCallBack=t},u.prototype.getCode=function(){return this.code},u.prototype.runUpdate=function(){this.updateCallBack&&this.updateCallBack(this.code)},u.prototype.enableReadonlyMode=function(){this.elTextarea.setAttribute("readonly",!0)},u.prototype.disableReadonlyMode=function(){this.elTextarea.removeAttribute("readonly")};const b=u},79903(t,e,i){"use strict";var n=i(79138),s=i(3468),a=i(64531),r=i(68165);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new s("a function is required");return r(n,a,t)}},83986(t){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},84700(t,e,i){"use strict";i.d(e,{A:()=>n});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},84807(t,e,i){"use strict";var n=i(99499),s=i(86443),a=i(41874),r=a.assert,o=a.parseBytes,c=i(54672),d=i(18401);function h(t){if(r("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);t=s[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=h,h.prototype.sign=function(t,e){t=o(t);var i=this.keyFromSecret(e),n=this.hashInt(i.messagePrefix(),t),s=this.g.mul(n),a=this.encodePoint(s),r=this.hashInt(a,i.pubBytes(),t).mul(i.priv()),c=n.add(r).umod(this.curve.n);return this.makeSignature({R:s,S:c,Rencoded:a})},h.prototype.verify=function(t,e,i){if(t=o(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(i),s=this.hashInt(e.Rencoded(),n.pubBytes(),t),a=this.g.mul(e.S());return e.R().add(n.pub().mul(s)).eq(a)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return a.intFromLE(t.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},h.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},h.prototype.makeSignature=function(t){return t instanceof d?t:new d(this,t)},h.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},h.prototype.decodePoint=function(t){var e=(t=a.parseBytes(t)).length-1,i=t.slice(0,e).concat(-129&t[e]),n=!!(128&t[e]),s=a.intFromLE(i);return this.curve.pointFromY(s,n)},h.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},h.prototype.decodeInt=function(t){return a.intFromLE(t)},h.prototype.isPoint=function(t){return t instanceof this.pointClass}},85174(t,e,i){"use strict";var n=i(82823),s=i(41874),a=s.getNAF,r=s.getJSF,o=s.assert;function c(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){o(t.precomputed);var i=t._getDoubles(),n=a(e,1,this._bitLength),s=(1<<i.step+1)-(i.step%2==0?2:1);s/=3;var r,c,d=[];for(r=0;r<n.length;r+=i.step){c=0;for(var h=r+i.step-1;h>=r;h--)c=(c<<1)+n[h];d.push(c)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),u=s;u>0;u--){for(r=0;r<d.length;r++)(c=d[r])===u?l=l.mixedAdd(i.points[r]):c===-u&&(l=l.mixedAdd(i.points[r].neg()));f=f.add(l)}return f.toP()},c.prototype._wnafMul=function(t,e){var i=4,n=t._getNAFPoints(i);i=n.wnd;for(var s=n.points,r=a(e,i,this._bitLength),c=this.jpoint(null,null,null),d=r.length-1;d>=0;d--){for(var h=0;d>=0&&0===r[d];d--)h++;if(d>=0&&h++,c=c.dblp(h),d<0)break;var f=r[d];o(0!==f),c="affine"===t.type?f>0?c.mixedAdd(s[f-1>>1]):c.mixedAdd(s[-f-1>>1].neg()):f>0?c.add(s[f-1>>1]):c.add(s[-f-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,i,n,s){var o,c,d,h=this._wnafT1,f=this._wnafT2,l=this._wnafT3,u=0;for(o=0;o<n;o++){var b=(d=e[o])._getNAFPoints(t);h[o]=b.wnd,f[o]=b.points}for(o=n-1;o>=1;o-=2){var p=o-1,g=o;if(1===h[p]&&1===h[g]){var m=[e[p],null,null,e[g]];0===e[p].y.cmp(e[g].y)?(m[1]=e[p].add(e[g]),m[2]=e[p].toJ().mixedAdd(e[g].neg())):0===e[p].y.cmp(e[g].y.redNeg())?(m[1]=e[p].toJ().mixedAdd(e[g]),m[2]=e[p].add(e[g].neg())):(m[1]=e[p].toJ().mixedAdd(e[g]),m[2]=e[p].toJ().mixedAdd(e[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],x=r(i[p],i[g]);for(u=Math.max(x[0].length,u),l[p]=new Array(u),l[g]=new Array(u),c=0;c<u;c++){var v=0|x[0][c],_=0|x[1][c];l[p][c]=y[3*(v+1)+(_+1)],l[g][c]=0,f[p]=m}}else l[p]=a(i[p],h[p],this._bitLength),l[g]=a(i[g],h[g],this._bitLength),u=Math.max(l[p].length,u),u=Math.max(l[g].length,u)}var w=this.jpoint(null,null,null),S=this._wnafT4;for(o=u;o>=0;o--){for(var M=0;o>=0;){var k=!0;for(c=0;c<n;c++)S[c]=0|l[c][o],0!==S[c]&&(k=!1);if(!k)break;M++,o--}if(o>=0&&M++,w=w.dblp(M),o<0)break;for(c=0;c<n;c++){var A=S[c];0!==A&&(A>0?d=f[c][A-1>>1]:A<0&&(d=f[c][-A-1>>1].neg()),w="affine"===d.type?w.mixedAdd(d):w.add(d))}}for(o=0;o<n;o++)f[o]=null;return s?w:w.toP()},c.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=s.toArray(t,e);var i=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*i)return 6===t[0]?o(t[t.length-1]%2==0):7===t[0]&&o(t[t.length-1]%2==1),this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));if((2===t[0]||3===t[0])&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),3===t[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(t){return this.encode(t,!0)},d.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},d.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},d.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},d.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},d.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,s=0;s<e;s+=t){for(var a=0;a<t;a++)n=n.dbl();i.push(n)}return{step:t,points:i}},d.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,n=1===i?null:this.dbl(),s=1;s<i;s++)e[s]=e[s-1].add(n);return{wnd:t,points:e}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},85338(t,e,i){"use strict";i.d(e,{Ay:()=>a});var n=i(27037),s={line:{color:"#F66",width:1,dashPattern:[]},sync:{enabled:!0,group:1,suppressTooltips:!1},zoom:{enabled:!0,zoomboxBackgroundColor:"rgba(66,133,244,0.2)",zoomboxBorderColor:"#48F",zoomButtonText:"Reset Zoom",zoomButtonClass:"reset-zoom"},snap:{enabled:!1},callbacks:{beforeZoom:function(t,e){return!0},afterZoom:function(t,e){}}},a={id:"crosshair",afterInit:function(t){if(t.config.options.scales.x){var e=t.config.options.scales.x.type;"linear"!==e&&"time"!==e&&"category"!==e&&"logarithmic"!==e||(void 0===t.options.plugins.crosshair&&(t.options.plugins.crosshair=s),t.crosshair={enabled:!1,suppressUpdate:!1,x:null,originalData:[],originalXRange:{},dragStarted:!1,dragStartX:null,dragEndX:null,suppressTooltips:!1,ignoreNextEvents:0,reset:function(){this.resetZoom(t,!1,!1)}.bind(this)},this.getOption(t,"sync","enabled")&&(t.crosshair.syncEventHandler=function(e){this.handleSyncEvent(t,e)}.bind(this),t.crosshair.resetZoomEventHandler=function(e){var i=this.getOption(t,"sync","group");e.chartId!==t.id&&e.syncGroup===i&&this.resetZoom(t,!0)}.bind(this),window.addEventListener("sync-event",t.crosshair.syncEventHandler),window.addEventListener("reset-zoom-event",t.crosshair.resetZoomEventHandler)),t.panZoom=this.panZoom.bind(this,t))}},afterDestroy:function(t){this.getOption(t,"sync","enabled")&&(window.removeEventListener("sync-event",t.crosshair.syncEventHandler),window.removeEventListener("reset-zoom-event",t.crosshair.resetZoomEventHandler))},panZoom:function(t,e){if(0!==t.crosshair.originalData.length){var i=t.crosshair.end-t.crosshair.start,n=t.crosshair.min,s=t.crosshair.max;e<0?(t.crosshair.start=Math.max(t.crosshair.start+e,n),t.crosshair.end=t.crosshair.start===n?n+i:t.crosshair.end+e):(t.crosshair.end=Math.min(t.crosshair.end+e,t.crosshair.max),t.crosshair.start=t.crosshair.end===s?s-i:t.crosshair.start+e),this.doZoom(t,t.crosshair.start,t.crosshair.end)}},getOption:function(t,e,i){return(0,n.v)(t.options.plugins.crosshair[e]?t.options.plugins.crosshair[e][i]:void 0,s[e][i])},getXScale:function(t){return t.data.datasets.length?t.scales[t.getDatasetMeta(0).xAxisID]:null},getYScale:function(t){return t.scales[t.getDatasetMeta(0).yAxisID]},handleSyncEvent:function(t,e){var i=this.getOption(t,"sync","group");if(e.chartId!==t.id&&e.syncGroup===i){var n=this.getXScale(t);if(n){var s=void 0===e.original.native.buttons?e.original.native.which:e.original.native.buttons;"mouseup"===e.original.type&&(s=0);var a={type:"click"==e.original.type?"mousemove":e.original.type,chart:t,x:n.getPixelForValue(e.xValue),y:e.original.y,native:{buttons:s},stop:!0};t._eventHandler(a)}}},afterEvent:function(t,e){if(0==t.config.options.scales.x.length)return;let i=e.event;var n=t.config.options.scales.x.type;if("linear"===n||"time"===n||"category"===n||"logarithmic"===xscaleType){var s=this.getXScale(t);if(s)if(t.crosshair.ignoreNextEvents>0)t.crosshair.ignoreNextEvents-=1;else{var a=void 0===i.native.buttons?i.native.which:i.native.buttons;"mouseup"===i.native.type&&(a=0);var r=this.getOption(t,"sync","enabled"),o=this.getOption(t,"sync","group");!i.stop&&r&&((e=new CustomEvent("sync-event")).chartId=t.id,e.syncGroup=o,e.original=i,e.xValue=s.getValueForPixel(i.x),window.dispatchEvent(e));var c=this.getOption(t,"sync","suppressTooltips");if(t.crosshair.suppressTooltips=i.stop&&c,t.crosshair.enabled="mouseout"!==i.type&&i.x>s.getPixelForValue(s.min)&&i.x<s.getPixelForValue(s.max),!t.crosshair.enabled&&!t.crosshair.suppressUpdate)return i.x>s.getPixelForValue(s.max)&&(t.crosshair.suppressUpdate=!0,t.update("none")),t.crosshair.dragStarted=!1,!1;t.crosshair.suppressUpdate=!1;var d=this.getOption(t,"zoom","enabled");if(1===a&&!t.crosshair.dragStarted&&d&&(t.crosshair.dragStartX=i.x,t.crosshair.dragStarted=!0),t.crosshair.dragStarted&&0===a){t.crosshair.dragStarted=!1;var h=s.getValueForPixel(t.crosshair.dragStartX),f=s.getValueForPixel(t.crosshair.x);Math.abs(t.crosshair.dragStartX-t.crosshair.x)>1&&this.doZoom(t,h,f),t.update("none")}t.crosshair.x=i.x,t.draw()}}},afterDraw:function(t){if(t.crosshair.enabled)return t.crosshair.dragStarted?this.drawZoombox(t):(this.drawTraceLine(t),this.interpolateValues(t),this.drawTracePoints(t)),!0},beforeTooltipDraw:function(t){return!t.crosshair.dragStarted&&!t.crosshair.suppressTooltips},resetZoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(i){if(t.crosshair.originalData.length>0)for(var n=0;n<t.data.datasets.length;n++)t.data.datasets[n].data=t.crosshair.originalData.shift(0);t.crosshair.originalXRange.min?(t.options.scales.x.min=t.crosshair.originalXRange.min,t.crosshair.originalXRange.min=null):delete t.options.scales.x.min,t.crosshair.originalXRange.max?(t.options.scales.x.max=t.crosshair.originalXRange.max,t.crosshair.originalXRange.max=null):delete t.options.scales.x.max}t.crosshair.button&&t.crosshair.button.parentNode&&(t.crosshair.button.parentNode.removeChild(t.crosshair.button),t.crosshair.button=!1);var s=this.getOption(t,"sync","enabled");if(!e&&i&&s){var a=this.getOption(t,"sync","group"),r=new CustomEvent("reset-zoom-event");r.chartId=t.id,r.syncGroup=a,window.dispatchEvent(r)}i&&t.update("none")},doZoom:function(t,e,i){if(e>i){var a=e;e=i,i=a}if(!(0,n.v)(t.options.plugins.crosshair.callbacks?t.options.plugins.crosshair.callbacks.beforeZoom:void 0,s.callbacks.beforeZoom)(e,i))return!1;if(t.crosshair.dragStarted=!1,t.options.scales.x.min&&0===t.crosshair.originalData.length&&(t.crosshair.originalXRange.min=t.options.scales.x.min),t.options.scales.x.max&&0===t.crosshair.originalData.length&&(t.crosshair.originalXRange.max=t.options.scales.x.max),!t.crosshair.button){var r=document.createElement("button"),o=this.getOption(t,"zoom","zoomButtonText"),c=this.getOption(t,"zoom","zoomButtonClass"),d=document.createTextNode(o);r.appendChild(d),r.className=c,r.addEventListener("click",function(){this.resetZoom(t)}.bind(this)),t.canvas.parentNode.appendChild(r),t.crosshair.button=r}t.options.scales.x.min=e,t.options.scales.x.max=i;var h=0===t.crosshair.originalData.length;if("category"!==t.config.options.scales.x.type)for(var f=0;f<t.data.datasets.length;f++){var l=[],u=0,b=!1,p=!1;h&&(t.crosshair.originalData[f]=t.data.datasets[f].data);for(var g=t.crosshair.originalData[f],m=0;m<g.length;m++){var y=g[m],x=void 0!==y.x?y.x:NaN;x>=e&&!b&&u>0&&(l.push(g[u-1]),b=!0),x>=e&&x<=i&&l.push(y),x>i&&!p&&u<g.length&&(l.push(y),p=!0),u+=1}t.data.datasets[f].data=l}if(t.crosshair.start=e,t.crosshair.end=i,h){var v=this.getXScale(t);t.crosshair.min=v.min,t.crosshair.max=v.max}t.crosshair.ignoreNextEvents=2,t.update("none"),this.getOption(t,"callbacks","afterZoom")(e,i)},drawZoombox:function(t){var e=this.getYScale(t),i=this.getOption(t,"zoom","zoomboxBorderColor"),n=this.getOption(t,"zoom","zoomboxBackgroundColor");t.ctx.beginPath(),t.ctx.rect(t.crosshair.dragStartX,e.getPixelForValue(e.max),t.crosshair.x-t.crosshair.dragStartX,e.getPixelForValue(e.min)-e.getPixelForValue(e.max)),t.ctx.lineWidth=1,t.ctx.strokeStyle=i,t.ctx.fillStyle=n,t.ctx.fill(),t.ctx.fillStyle="",t.ctx.stroke(),t.ctx.closePath()},drawTraceLine:function(t){var e=this.getYScale(t),i=this.getOption(t,"line","width"),n=this.getOption(t,"line","color"),s=this.getOption(t,"line","dashPattern"),a=this.getOption(t,"snap","enabled"),r=t.crosshair.x;a&&t._active.length&&(r=t._active[0].element.x),t.ctx.beginPath(),t.ctx.setLineDash(s),t.ctx.moveTo(r,e.getPixelForValue(e.max)),t.ctx.lineWidth=i,t.ctx.strokeStyle=n,t.ctx.lineTo(r,e.getPixelForValue(e.min)),t.ctx.stroke(),t.ctx.setLineDash([])},drawTracePoints:function(t){for(var e=0;e<t.data.datasets.length;e++){var i=t.data.datasets[e],n=t.getDatasetMeta(e),s=t.scales[n.yAxisID];!n.hidden&&i.interpolate&&(t.ctx.beginPath(),t.ctx.arc(t.crosshair.x,s.getPixelForValue(i.interpolatedValue),3,0,2*Math.PI,!1),t.ctx.fillStyle="white",t.ctx.lineWidth=2,t.ctx.strokeStyle=i.borderColor,t.ctx.fill(),t.ctx.stroke())}},interpolateValues:function(t){for(var e=0;e<t.data.datasets.length;e++){var i=t.data.datasets[e],n=t.getDatasetMeta(e),s=t.scales[n.xAxisID].getValueForPixel(t.crosshair.x);if(!n.hidden&&i.interpolate){var a=i.data,r=a.findIndex(function(t){return t.x>=s}),o=a[r-1],c=a[r];if(t.data.datasets[e].steppedLine&&o)i.interpolatedValue=o.y;else if(o&&c){var d=(c.y-o.y)/(c.x-o.x);i.interpolatedValue=o.y+(s-o.x)*d}else i.interpolatedValue=NaN}}}}},86443(t,e,i){"use strict";var n,s=e,a=i(99499),r=i(7131),o=i(41874).assert;function c(t){"short"===t.type?this.curve=new r.short(t):"edwards"===t.type?this.curve=new r.edwards(t):this.curve=new r.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(t,e){Object.defineProperty(s,t,{configurable:!0,enumerable:!0,get:function(){var i=new c(e);return Object.defineProperty(s,t,{configurable:!0,enumerable:!0,value:i}),i}})}s.PresetCurve=c,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(83986)}catch(t){n=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},87196(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},94943(t){"use strict";t.exports=ReferenceError}}]); |