MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/opt/netdata/netdata-web-files/v3/2170.11a079d4ce200cb2a3a4.chunk.js
/*! For license information please see 2170.11a079d4ce200cb2a3a4.chunk.js.LICENSE.txt */
try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8af1c6ad-c4cd-4a00-9b3b-67d26a116757",t._sentryDebugIdIdentifier="sentry-dbid-8af1c6ad-c4cd-4a00-9b3b-67d26a116757")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"c7a85fdbc93bb7925a0f36510d6eb791929e4aa8"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2170],{194:(t,e,i)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=h(i(5556)),o=h(i(41537)),s=h(i(46641)),a=i(96540),l=h(a),c=h(i(41853));function h(t){return t&&t.__esModule?t:{default:t}}var u={bgColor:r.default.oneOfType([r.default.object,r.default.string]),fgColor:r.default.oneOfType([r.default.object,r.default.string]),level:r.default.string,size:r.default.number,value:r.default.string.isRequired},d=(0,a.forwardRef)((function(t,e){var i=t.bgColor,r=void 0===i?"#FFFFFF":i,a=t.fgColor,h=void 0===a?"#000000":a,u=t.level,d=void 0===u?"L":u,f=t.size,p=void 0===f?256:f,g=t.value,b=function(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}(t,["bgColor","fgColor","level","size","value"]),m=new s.default(-1,o.default[d]);m.addData(g),m.make();var x=m.modules;return l.default.createElement(c.default,n({},b,{bgColor:r,bgD:x.map((function(t,e){return t.map((function(t,i){return t?"":"M "+i+" "+e+" l 1 0 0 1 -1 0 Z"})).join(" ")})).join(" "),fgColor:h,fgD:x.map((function(t,e){return t.map((function(t,i){return t?"M "+i+" "+e+" l 1 0 0 1 -1 0 Z":""})).join(" ")})).join(" "),ref:e,size:p,viewBoxSize:x.length}))}));d.displayName="QRCode",d.propTypes=u,e.Ay=d},241:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=i(41917).A.Symbol},1801:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(90565);const r=function(t,e){var i=e?(0,n.A)(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}},2383:(t,i,n)=>{"use strict";n.d(i,{A:()=>f});var r=n(241),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,l=r.A?r.A.toStringTag:void 0;const c=function(t){var i=s.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(e){}var o=a.call(t);return r&&(i?t[l]=n:delete t[l]),o};var h=Object.prototype.toString;const u=function(t){return h.call(t)};var d=r.A?r.A.toStringTag:void 0;const f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?c(t):u(t)}},3456:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(241),r=i(45572),o=i(92049),s=i(61882),a=n.A?n.A.prototype:void 0,l=a?a.toString:void 0;const c=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,r.A)(e,t)+"";if((0,s.A)(e))return l?l.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i};const h=function(t){return null==t?"":c(t)}},4334:(t,e,i)=>{"use strict";i.d(e,{A:()=>P});var n=i(22080),r=i(52528),o=i(66984);const s=function(t,e,i){(void 0!==i&&!(0,o.A)(t[e],i)||void 0===i&&!(e in t))&&(0,r.A)(t,e,i)};var a=i(97132),l=i(80154),c=i(1801),h=i(39759),u=i(32729),d=i(25175),f=i(92049),p=i(53533),g=i(41200),b=i(89610),m=i(23149),x=i(34963),v=i(54749);const y=function(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]};var _=i(22031),w=i(79999);const k=function(t){return(0,_.A)(t,(0,w.A)(t))};const A=function(t,e,i,n,r,o,a){var _=y(t,i),w=y(e,i),A=a.get(w);if(A)s(t,i,A);else{var M=o?o(_,w,i+"",t,e,a):void 0,S=void 0===M;if(S){var E=(0,f.A)(w),C=!E&&(0,g.A)(w),O=!E&&!C&&(0,v.A)(w);M=w,E||C||O?(0,f.A)(_)?M=_:(0,p.A)(_)?M=(0,h.A)(_):C?(S=!1,M=(0,l.A)(w,!0)):O?(S=!1,M=(0,c.A)(w,!0)):M=[]:(0,x.A)(w)||(0,d.A)(w)?(M=_,(0,d.A)(_)?M=k(_):(0,m.A)(_)&&!(0,b.A)(_)||(M=(0,u.A)(w))):S=!1}S&&(a.set(w,M),r(M,w,n,o,a),a.delete(w)),s(t,i,M)}};const M=function t(e,i,r,o,l){e!==i&&(0,a.A)(i,(function(a,c){if(l||(l=new n.A),(0,m.A)(a))A(e,i,c,r,t,o,l);else{var h=o?o(y(e,c),a,c+"",e,i,l):void 0;void 0===h&&(h=a),s(e,c,h)}}),w.A)};var S=i(24326),E=i(38446),C=i(25353);const O=function(t,e,i){if(!(0,m.A)(i))return!1;var n=typeof e;return!!("number"==n?(0,E.A)(i)&&(0,C.A)(e,i.length):"string"==n&&e in i)&&(0,o.A)(i[e],t)};const P=function(t){return(0,S.A)((function(e,i){var n=-1,r=i.length,o=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&O(i[0],i[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=i[n];a&&t(e,a,n,o)}return e}))}((function(t,e,i){M(t,e,i)}))},5128:(t,e,i)=>{var n=i(80909),r=i(64894);t.exports=function(t,e){var i=-1,o=r(t)?Array(t.length):[];return n(t,(function(t,n,r){o[++i]=e(t,n,r)})),o}},5254:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6372:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function i(t){if(255===(t>>24&255)){var e=t>>16&255,i=t>>8&255,n=255&t;255===e?(e=0,255===i?(i=0,255===n?n=0:++n):++i):++e,t=0,t+=e<<16,t+=i<<8,t+=n}else t+=1<<24;return t}function n(t){return 0===(t[0]=i(t[0]))&&(t[1]=i(t[1])),t}var r=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var a=s.slice(0);i.encryptBlock(a,0);for(var l=0;l<r;l++)t[e+l]^=a[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman)}()},6440:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,i=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)}()},7628:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib,n=i.WordArray,r=i.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=o.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],i=0;i<56;i++){var n=s[i]-1;e[i]=t[n>>>5]>>>31-n%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var c=r[o]=[],h=l[o];for(i=0;i<24;i++)c[i/6|0]|=e[(a[i]-1+h)%28]<<31-i%6,c[4+(i/6|0)]|=e[28+(a[i+24]-1+h)%28]<<31-i%6;for(c[0]=c[0]<<1|c[0]>>>31,i=1;i<7;i++)c[i]=c[i]>>>4*(i-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(i=0;i<16;i++)u[i]=r[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,i){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var r=i[n],o=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((s^r[l])&h[l])>>>0];this._lBlock=s,this._rBlock=o^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<<t}function f(t,e){var i=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<<t}t.DES=r._createHelper(u);var p=o.TripleDES=r.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=u.createEncryptor(n.create(e)),this._des2=u.createEncryptor(n.create(i)),this._des3=u.createEncryptor(n.create(r))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),e.TripleDES)}()},8058:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(72641),r=i(94288),o=i(99922),s=i(92049);const a=function(t,e){return((0,s.A)(t)?n.A:r.A)(t,(0,o.A)(e))}},8300:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(62050);const r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const o=function(t){return this.__data__.has(t)};function s(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new n.A;++e<i;)this.add(t[e])}s.prototype.add=s.prototype.push=r,s.prototype.has=o;const a=s},8471:(t,e,i)=>{"use strict";i.d(e,{A:()=>k});var n=i(22080),r=i(22955);const o=function(t,e,i,o){var s=i.length,a=s,l=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=i[s];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var h=(c=i[s])[0],u=t[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in t))return!1}else{var f=new n.A;if(o)var p=o(u,d,h,t,e,f);if(!(void 0===p?(0,r.A)(d,u,3,o,f):p))return!1}}return!0};var s=i(23149);const a=function(t){return t===t&&!(0,s.A)(t)};var l=i(27422);const c=function(t){for(var e=(0,l.A)(t),i=e.length;i--;){var n=e[i],r=t[n];e[i]=[n,r,a(r)]}return e};const h=function(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in Object(i)))}};const u=function(t){var e=c(t);return 1==e.length&&e[0][2]?h(e[0][0],e[0][1]):function(i){return i===t||o(i,t,e)}};var d=i(77500),f=i(46964),p=i(86586),g=i(30901);const b=function(t,e){return(0,p.A)(t)&&a(e)?h((0,g.A)(t),e):function(i){var n=(0,d.A)(i,t);return void 0===n&&n===e?(0,f.A)(i,t):(0,r.A)(e,n,3)}};var m=i(29008),x=i(92049);const v=function(t){return function(e){return null==e?void 0:e[t]}};var y=i(66318);const _=function(t){return function(e){return(0,y.A)(e,t)}};const w=function(t){return(0,p.A)(t)?v((0,g.A)(t)):_(t)};const k=function(t){return"function"==typeof t?t:null==t?m.A:"object"==typeof t?(0,x.A)(t)?b(t[0],t[1]):u(t):w(t)}},9137:(t,e,i)=>{"use strict";i.d(e,{A:()=>k});var n=i(28562),r=i(41917);const o=(0,n.A)(r.A,"DataView");var s=i(68335);const a=(0,n.A)(r.A,"Promise");var l=i(39857);const c=(0,n.A)(r.A,"WeakMap");var h=i(2383),u=i(81121),d="[object Map]",f="[object Promise]",p="[object Set]",g="[object WeakMap]",b="[object DataView]",m=(0,u.A)(o),x=(0,u.A)(s.A),v=(0,u.A)(a),y=(0,u.A)(l.A),_=(0,u.A)(c),w=h.A;(o&&w(new o(new ArrayBuffer(1)))!=b||s.A&&w(new s.A)!=d||a&&w(a.resolve())!=f||l.A&&w(new l.A)!=p||c&&w(new c)!=g)&&(w=function(t){var e=(0,h.A)(t),i="[object Object]"==e?t.constructor:void 0,n=i?(0,u.A)(i):"";if(n)switch(n){case m:return b;case x:return d;case v:return f;case y:return p;case _:return g}return e});const k=w},10046:t=>{function e(){this.buffer=new Array,this.length=0}e.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i<e;i++)this.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},10482:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.pad.Iso97971={pad:function(t,i){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,i)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971)}()},12835:(t,e,i)=>{var n=i(41537);function r(t,e){this.totalCount=t,this.dataCount=e}r.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r.getRSBlocks=function(t,e){var i=r.getRsBlockTable(t,e);if(void 0==i)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=i.length/3,o=new Array,s=0;s<n;s++)for(var a=i[3*s+0],l=i[3*s+1],c=i[3*s+2],h=0;h<a;h++)o.push(new r(l,c));return o},r.getRsBlockTable=function(t,e){switch(e){case n.L:return r.RS_BLOCK_TABLE[4*(t-1)+0];case n.M:return r.RS_BLOCK_TABLE[4*(t-1)+1];case n.Q:return r.RS_BLOCK_TABLE[4*(t-1)+2];case n.H:return r.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},t.exports=r},13153:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(){return[]}},14453:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(97271);const r=(0,i(40367).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,n.A)(t))return r(t);var e=[];for(var i in Object(t))o.call(t,i)&&"constructor"!=i&&e.push(i);return e}},15647:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=(0,i(40367).A)(Object.getPrototypeOf,Object)},16099:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const r=n(i(86308));function o(t){if(!t.options.indentation&&!t.options.lineSeparator)return;let e;for(t.content+=t.options.lineSeparator,e=0;e<t.level;e++)t.content+=t.options.indentation}function s(t,e){t.content+=e}function a(t,e,i){if("Element"===t.type)!function(t,e,i){e.path.push(t.name),!i&&e.content.length>0&&o(e);if(s(e,"<"+t.name),function(t,e){Object.keys(e).forEach((function(i){const n=e[i].replace(/"/g,"&quot;");s(t," "+i+'="'+n+'"')}))}(e,t.attributes),null===t.children||e.options.forceSelfClosingEmptyTag&&0===t.children.length){const t=e.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";s(e,t)}else if(0===t.children.length)s(e,"></"+t.name+">");else{const n=t.children;s(e,">"),e.level++;let r="preserve"===t.attributes["xml:space"]||i,l=!1;if(!r&&e.options.ignoredPaths&&(l=function(t,e){const i="/"+t.join("/"),n=t[t.length-1];return e.includes(n)||e.includes(i)}(e.path,e.options.ignoredPaths),r=l),!r&&e.options.collapseContent){let t=!1,e=!1,o=!1;n.forEach((function(r,s){"Text"===r.type?(r.content.includes("\n")?(e=!0,r.content=r.content.trim()):0!==s&&s!==n.length-1||i||0===r.content.trim().length&&(r.content=""),(r.content.trim().length>0||1===n.length)&&(t=!0)):"CDATA"===r.type?t=!0:o=!0})),!t||o&&e||(r=!0)}n.forEach((function(t){a(t,e,i||r)})),e.level--,i||r||o(e),l&&function(t){let e;for(t.content=t.content.replace(/ +$/,""),e=0;e<t.level;e++)t.content+=t.options.indentation}(e),s(e,"</"+t.name+">")}e.path.pop()}(t,e,i);else if("ProcessingInstruction"===t.type)l(t,e);else{if("string"!==typeof t.content)throw new Error("Unknown node type: "+t.type);!function(t,e,i){if(!i){const i=t.trim();(e.options.lineSeparator||0===i.length)&&(t=i)}t.length>0&&(!i&&e.content.length>0&&o(e),s(e,t))}(t.content,e,i)}}function l(t,e){e.content.length>0&&o(e),s(e,"<?"+t.name),s(e," "+t.content.trim()),s(e,"?>")}function c(t,e={}){e.indentation="indentation"in e?e.indentation:"    ",e.collapseContent=!0===e.collapseContent,e.lineSeparator="lineSeparator"in e?e.lineSeparator:"\r\n",e.whiteSpaceAtEndOfSelfclosingTag=!0===e.whiteSpaceAtEndOfSelfclosingTag,e.throwOnFailure=!1!==e.throwOnFailure;try{const i=(0,r.default)(t,{filter:e.filter,strictMode:e.strictMode}),n={content:"",level:0,options:e,path:[]};return i.declaration&&l(i.declaration,n),i.children.forEach((function(t){a(t,n,!1)})),e.lineSeparator?n.content.replace(/\r\n/g,"\n").replace(/\n/g,e.lineSeparator):n.content}catch(i){if(e.throwOnFailure)throw i;return t}}c.minify=(t,e={})=>c(t,Object.assign(Object.assign({},e),{indentation:"",lineSeparator:""})),t.exports=c,e.default=c},16489:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});const n=function(t,e){for(var i=-1,n=null==t?0:t.length,r=0,o=[];++i<n;){var s=t[i];e(s,i,t)&&(o[r++]=s)}return o};var r=i(13153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return o.call(t,e)})))}:r.A},16686:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hover=void 0;var n,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(96540),s=(n=o)&&n.__esModule?n:{default:n};function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=e.hover=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function n(){var i,o,l;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var c=arguments.length,h=Array(c),u=0;u<c;u++)h[u]=arguments[u];return o=l=a(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(h))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return s.default.createElement(e,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},s.default.createElement(t,r({},l.props,l.state)))},a(l,o)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,i),n}(s.default.Component)};e.default=l},16798:(t,e,i)=>{"use strict";i.d(e,{B:()=>o});var n=i(52365),r=i(84287);function o(t,e){return(0,r.k)(t,(0,n.A)(t),e)}},17790:(t,e,i)=>{var n=i(19852);function r(t){this.mode=n.MODE_8BIT_BYTE,this.data=t}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},t.exports=r},19021:function(t,i,n){t.exports=function(){var t=t||function(t,i){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(m){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),a={},l=a.lib={},c=l.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=i?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<r;o++){var s=i[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<r;a+=4)e[n+a>>>2]=i[a>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(o());return new h.init(e,t)}}),u=a.enc={},d=u.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new h.init(i,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var o=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new h.init(i,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},g=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i,n=this._data,r=n.words,o=n.sigBytes,s=this.blockSize,a=o/(4*s),l=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,c=t.min(4*l,o);if(l){for(var u=0;u<l;u+=s)this._doProcessBlock(r,u);i=r.splice(0,l),n.sigBytes-=c}return new h.init(i,c)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),b=(l.Hasher=g.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new b.HMAC.init(t,i).finalize(e)}}}),a.algo={});return a}(Math);return t}()},19042:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(33831),r=i(16489),o=i(27422);const s=function(t){return(0,n.A)(t,o.A,r.A)}},19852:t=>{t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},20748:(t,e,i)=>{"use strict";var n,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(96540),s=(n=o)&&n.__esModule?n:{default:n};e.A=function(t){var e=t.fill,i=void 0===e?"currentColor":e,n=t.width,o=void 0===n?24:n,a=t.height,l=void 0===a?24:a,c=t.style,h=void 0===c?{}:c,u=function(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}(t,["fill","width","height","style"]);return s.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:i,width:o,height:l},h)},u),s.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},20772:(t,e,i)=>{"use strict";var n=i(69565),r=i(97751),o=i(55966);t.exports=function(t,e,i,s){try{var a=o(t,"return");if(a)return r("Promise").resolve(n(a,t)).then((function(){e(i)}),(function(t){s(t)}))}catch(l){return s(l)}e(i)}},21396:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(43240),i(6440),i(45503),i(80754),i(64725),i(84636),i(45471),i(63009),i(36308),i(81380),i(89557),i(45953),i(78056),i(51025),i(70019),i(39506),i(57165),i(82169),i(96939),i(6372),i(73797),i(38454),i(42073),i(54905),i(10482),i(52155),i(58124),i(70025),i(40955),i(7628),i(77193),i(96298),i(22696),i(43128),e)}()},22031:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(52851),r=i(52528);const o=function(t,e,i,o){var s=!i;i||(i={});for(var a=-1,l=e.length;++a<l;){var c=e[a],h=o?o(i[c],t[c],c,i,t):void 0;void 0===h&&(h=t[c]),s?(0,r.A)(i,c,h):(0,n.A)(i,c,h)}return i}},22080:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var n=i(89469);const r=function(){this.__data__=new n.A,this.size=0};const o=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i};const s=function(t){return this.__data__.get(t)};const a=function(t){return this.__data__.has(t)};var l=i(68335),c=i(62050);const h=function(t,e){var i=this.__data__;if(i instanceof n.A){var r=i.__data__;if(!l.A||r.length<199)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new c.A(r)}return i.set(t,e),this.size=i.size,this};function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=h;const d=u},22696:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib.StreamCipher,n=t.algo,r=[],o=[],s=[],a=n.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;for(n[0]^=c,n[1]^=u,n[2]^=h,n[3]^=d,n[4]^=c,n[5]^=u,n[6]^=h,n[7]^=d,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(t,e){var i=this._X;l.call(this),r[0]=i[0]^i[5]>>>16^i[3]<<16,r[1]=i[2]^i[7]>>>16^i[5]<<16,r[2]=i[4]^i[1]>>>16^i[7]<<16,r[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)r[n]=16711935&(r[n]<<8|r[n]>>>24)|4278255360&(r[n]<<24|r[n]>>>8),t[e+n]^=r[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,i=0;i<8;i++)o[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],r=65535&n,a=n>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[i]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=i._createHelper(a)}(),e.RabbitLegacy)}()},22955:(t,e,i)=>{"use strict";i.d(e,{A:()=>O});var n=i(22080),r=i(8300);const o=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1};var s=i(64099);const a=function(t,e,i,n,a,l){var c=1&i,h=t.length,u=e.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(t),f=l.get(e);if(d&&f)return d==e&&f==t;var p=-1,g=!0,b=2&i?new r.A:void 0;for(l.set(t,e),l.set(e,t);++p<h;){var m=t[p],x=e[p];if(n)var v=c?n(x,m,p,e,t,l):n(m,x,p,t,e,l);if(void 0!==v){if(v)continue;g=!1;break}if(b){if(!o(e,(function(t,e){if(!(0,s.A)(b,e)&&(m===t||a(m,t,i,n,l)))return b.push(e)}))){g=!1;break}}else if(m!==x&&!a(m,x,i,n,l)){g=!1;break}}return l.delete(t),l.delete(e),g};var l=i(241),c=i(43988),h=i(66984);const u=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i};var d=i(29959),f=l.A?l.A.prototype:void 0,p=f?f.valueOf:void 0;const g=function(t,e,i,n,r,o,s){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new c.A(t),new c.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,h.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=u;case"[object Set]":var f=1&n;if(l||(l=d.A),t.size!=e.size&&!f)return!1;var g=s.get(t);if(g)return g==e;n|=2,s.set(t,e);var b=a(l(t),l(e),n,r,o,s);return s.delete(t),b;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1};var b=i(19042),m=Object.prototype.hasOwnProperty;const x=function(t,e,i,n,r,o){var s=1&i,a=(0,b.A)(t),l=a.length;if(l!=(0,b.A)(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:m.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<l;){var g=t[h=a[c]],x=e[h];if(n)var v=s?n(x,g,h,e,t,o):n(g,x,h,t,e,o);if(!(void 0===v?g===x||r(g,x,i,n,o):v)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=t.constructor,_=e.constructor;y==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(f=!1)}return o.delete(t),o.delete(e),f};var v=i(9137),y=i(92049),_=i(41200),w=i(54749),k="[object Arguments]",A="[object Array]",M="[object Object]",S=Object.prototype.hasOwnProperty;const E=function(t,e,i,r,o,s){var l=(0,y.A)(t),c=(0,y.A)(e),h=l?A:(0,v.A)(t),u=c?A:(0,v.A)(e),d=(h=h==k?M:h)==M,f=(u=u==k?M:u)==M,p=h==u;if(p&&(0,_.A)(t)){if(!(0,_.A)(e))return!1;l=!0,d=!1}if(p&&!d)return s||(s=new n.A),l||(0,w.A)(t)?a(t,e,i,r,o,s):g(t,e,h,i,r,o,s);if(!(1&i)){var b=d&&S.call(t,"__wrapped__"),m=f&&S.call(e,"__wrapped__");if(b||m){var E=b?t.value():t,C=m?e.value():e;return s||(s=new n.A),o(E,C,i,r,s)}}return!!p&&(s||(s=new n.A),x(t,e,i,r,o,s))};var C=i(53098);const O=function t(e,i,n,r,o){return e===i||(null==e||null==i||!(0,C.A)(e)&&!(0,C.A)(i)?e!==e&&i!==i:E(e,i,n,r,t,o))}},23149:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},24066:(t,e,i)=>{var n=i(83488);t.exports=function(t){return"function"==typeof t?t:n}},24326:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(29008),r=i(65255),o=i(46778);const s=function(t,e){return(0,o.A)((0,r.A)(t,e,n.A),t+"")}},25175:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var n=i(2383),r=i(53098);const o=function(t){return(0,r.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const c=o(function(){return arguments}())?o:function(t){return(0,r.A)(t)&&a.call(t,"callee")&&!l.call(t,"callee")}},25353:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=/^(?:0|[1-9]\d*)$/;const r=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<e}},26892:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoprefix=void 0;var n,r=i(33215),o=(n=r)&&n.__esModule?n:{default:n},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};var a={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){var i=e[t];return i||{extend:t}}},l=e.autoprefix=function(t){var e={};return(0,o.default)(t,(function(t,i){var n={};(0,o.default)(t,(function(t,e){var i=a[e];i?n=s({},n,i(t)):n[e]=t})),e[i]=n})),e};e.default=l},27422:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(50423),r=i(14453),o=i(38446);const s=function(t){return(0,o.A)(t)?(0,n.A)(t):(0,r.A)(t)}},28562:(t,e,i)=>{"use strict";i.d(e,{A:()=>m});var n=i(89610);const r=i(41917).A["__core-js_shared__"];var o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const s=function(t){return!!o&&o in t};var a=i(23149),l=i(81121),c=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,d=h.toString,f=u.hasOwnProperty,p=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(t){return!(!(0,a.A)(t)||s(t))&&((0,n.A)(t)?p:c).test((0,l.A)(t))};const b=function(t,e){return null==t?void 0:t[e]};const m=function(t,e){var i=b(t,e);return g(i)?i:void 0}},29008:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return t}},29959:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}},30501:(t,e,i)=>{var n=i(39341);function r(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var i=0;i<t.length&&0==t[i];)i++;this.num=new Array(t.length-i+e);for(var n=0;n<t.length-i;n++)this.num[n]=t[n+i]}r.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var o=0;o<t.getLength();o++)e[i+o]^=n.gexp(n.glog(this.get(i))+n.glog(t.get(o)));return new r(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=n.glog(this.get(0))-n.glog(t.get(0)),i=new Array(this.getLength()),o=0;o<this.getLength();o++)i[o]=this.get(o);for(o=0;o<t.getLength();o++)i[o]^=n.gexp(n.glog(t.get(o))+e);return new r(i,0).mod(t)}},t.exports=r},30901:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(61882);const r=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},32729:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(59712),r=i(15647),o=i(97271);const s=function(t){return"function"!=typeof t.constructor||(0,o.A)(t)?{}:(0,n.A)((0,r.A)(t))}},33215:(t,e,i)=>{var n=i(30641),r=i(24066);t.exports=function(t,e){return t&&n(t,r(e))}},33811:(t,e,i)=>{"use strict";var n=i(46518),r=i(90679),o=i(42787),s=i(66699),a=i(39297),l=i(78227),c=i(53982),h=i(96395),u=l("toStringTag"),d=TypeError,f=function(){if(r(this,c),o(this)===c)throw new d("Abstract class AsyncIterator not directly constructable")};f.prototype=c,a(c,u)||s(c,u,"AsyncIterator"),!h&&a(c,"constructor")&&c.constructor!==Object||s(c,"constructor",f),n({global:!0,constructor:!0,forced:h},{AsyncIterator:f})},33831:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(76912),r=i(92049);const o=function(t,e,i){var o=e(t);return(0,r.A)(t)?o:(0,n.A)(o,i(t))}},34963:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var n=i(2383),r=i(15647),o=i(53098),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,h=l.call(Object);const u=function(t){if(!(0,o.A)(t)||"[object Object]"!=(0,n.A)(t))return!1;var e=(0,r.A)(t);if(null===e)return!0;var i=c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==h}},36308:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(63009),function(){var t=e,i=t.lib.WordArray,n=t.algo,r=n.SHA256,o=n.SHA224=r.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=r._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=r._createHelper(o),t.HmacSHA224=r._createHmacHelper(o)}(),e.SHA224)}()},36639:(t,e,i)=>{"use strict";var n=i(69565),r=i(79306),o=i(28551),s=i(20034),a=i(96837),l=i(97751),c=i(1767),h=i(20772),u=function(t){var e=0===t,i=1===t,u=2===t,d=3===t;return function(t,f,p){o(t);var g=void 0!==f;!g&&e||r(f);var b=c(t),m=l("Promise"),x=b.iterator,v=b.next,y=0;return new m((function(t,r){var l=function(t){h(x,r,t,r)},c=function(){try{if(g)try{a(y)}catch(b){l(b)}m.resolve(o(n(v,x))).then((function(n){try{if(o(n).done)e?(p.length=y,t(p)):t(!d&&(u||void 0));else{var a=n.value;try{if(g){var b=f(a,y),v=function(n){if(i)c();else if(u)n?c():h(x,t,!1,r);else if(e)try{p[y++]=n,c()}catch(o){l(o)}else n?h(x,t,d||a,r):c()};s(b)?m.resolve(b).then(v,l):v(b)}else p[y++]=a,c()}catch(_){l(_)}}}catch(w){r(w)}}),r)}catch(_){r(_)}};c()}))}};t.exports={toArray:u(0),forEach:u(1),every:u(2),some:u(3),find:u(4)}},37216:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(62050);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(r.Cache||n.A),i}r.Cache=n.A;const o=r;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const l=function(t){var e=o(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,i,n,r){e.push(n?r.replace(a,"$1"):i||t)})),e}))},38446:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(89610),r=i(5254);const o=function(t){return null!=t&&(0,r.A)(t.length)&&!(0,n.A)(t)}},38454:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t}(),e.mode.ECB)}()},38759:(t,e,i)=>{var n=i(19852),r=i(30501),o=i(39341),s=0,a=1,l=2,c=3,h=4,u=5,d=6,f=7,p={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;p.getBCHDigit(e)-p.getBCHDigit(p.G15)>=0;)e^=p.G15<<p.getBCHDigit(e)-p.getBCHDigit(p.G15);return(t<<10|e)^p.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;p.getBCHDigit(e)-p.getBCHDigit(p.G18)>=0;)e^=p.G18<<p.getBCHDigit(e)-p.getBCHDigit(p.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return p.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case s:return(e+i)%2==0;case a:return e%2==0;case l:return i%3==0;case c:return(e+i)%3==0;case h:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case u:return e*i%2+e*i%3==0;case d:return(e*i%2+e*i%3)%2==0;case f:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new r([1],0),i=0;i<t;i++)e=e.multiply(new r([1,o.gexp(i)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),i=0,n=0;n<e;n++)for(var r=0;r<e;r++){for(var o=0,s=t.isDark(n,r),a=-1;a<=1;a++)if(!(n+a<0||e<=n+a))for(var l=-1;l<=1;l++)r+l<0||e<=r+l||0==a&&0==l||s==t.isDark(n+a,r+l)&&o++;o>5&&(i+=3+o-5)}for(n=0;n<e-1;n++)for(r=0;r<e-1;r++){var c=0;t.isDark(n,r)&&c++,t.isDark(n+1,r)&&c++,t.isDark(n,r+1)&&c++,t.isDark(n+1,r+1)&&c++,0!=c&&4!=c||(i+=3)}for(n=0;n<e;n++)for(r=0;r<e-6;r++)t.isDark(n,r)&&!t.isDark(n,r+1)&&t.isDark(n,r+2)&&t.isDark(n,r+3)&&t.isDark(n,r+4)&&!t.isDark(n,r+5)&&t.isDark(n,r+6)&&(i+=40);for(r=0;r<e;r++)for(n=0;n<e-6;n++)t.isDark(n,r)&&!t.isDark(n+1,r)&&t.isDark(n+2,r)&&t.isDark(n+3,r)&&t.isDark(n+4,r)&&!t.isDark(n+5,r)&&t.isDark(n+6,r)&&(i+=40);var h=0;for(r=0;r<e;r++)for(n=0;n<e;n++)t.isDark(n,r)&&h++;return i+=10*(Math.abs(100*h/e/e-50)/5)}};t.exports=p},39341:t=>{for(var e={glog:function(t){if(t<1)throw new Error("glog("+t+")");return e.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)e.EXP_TABLE[i]=1<<i;for(i=8;i<256;i++)e.EXP_TABLE[i]=e.EXP_TABLE[i-4]^e.EXP_TABLE[i-5]^e.EXP_TABLE[i-6]^e.EXP_TABLE[i-8];for(i=0;i<255;i++)e.LOG_TABLE[e.EXP_TABLE[i]]=i;t.exports=e},39506:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(45471),i(51025),function(){var t=e,i=t.lib,n=i.Base,r=i.WordArray,o=t.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var i,n=this.cfg,o=n.hasher.create(),s=r.create(),a=s.words,l=n.keySize,c=n.iterations;a.length<l;){i&&o.update(i),i=o.update(t).finalize(e),o.reset();for(var h=1;h<c;h++)i=o.finalize(i),o.reset();s.concat(i)}return s.sigBytes=4*l,s}});t.EvpKDF=function(t,e,i){return a.create(i).compute(t,e)}}(),e.EvpKDF)}()},39759:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){var i=-1,n=t.length;for(e||(e=Array(n));++i<n;)e[i]=t[i];return e}},39857:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(28562),r=i(41917);const o=(0,n.A)(r.A,"Set")},40367:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){return function(i){return t(e(i))}}},40955:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib.BlockCipher,n=t.algo,r=[],o=[],s=[],a=[],l=[],c=[],h=[],u=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var i=0,n=0;for(e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,r[i]=p,o[p]=i;var g=t[i],b=t[g],m=t[b],x=257*t[p]^16843008*p;s[i]=x<<24|x>>>8,a[i]=x<<16|x>>>16,l[i]=x<<8|x>>>24,c[i]=x,x=16843009*m^65537*b^257*g^16843008*i,h[p]=x<<24|x>>>8,u[p]=x<<16|x>>>16,d[p]=x<<8|x>>>24,f[p]=x,i?(i=g^t[t[t[m^g]]],n^=t[t[n]]):i=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,n=4*((this._nRounds=i+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<i?o[s]=e[s]:(c=o[s-1],s%i?i>6&&s%i==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=p[s/i|0]<<24),o[s]=o[s-i]^c);for(var a=this._invKeySchedule=[],l=0;l<n;l++){if(s=n-l,l%4)var c=o[s];else c=o[s-4];a[l]=l<4||s<=4?c:h[r[c>>>24]]^u[r[c>>>16&255]]^d[r[c>>>8&255]]^f[r[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,l,c,r)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,h,u,d,f,o),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,n,r,o,s,a){for(var l=this._nRounds,c=t[e]^i[0],h=t[e+1]^i[1],u=t[e+2]^i[2],d=t[e+3]^i[3],f=4,p=1;p<l;p++){var g=n[c>>>24]^r[h>>>16&255]^o[u>>>8&255]^s[255&d]^i[f++],b=n[h>>>24]^r[u>>>16&255]^o[d>>>8&255]^s[255&c]^i[f++],m=n[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^s[255&h]^i[f++],x=n[d>>>24]^r[c>>>16&255]^o[h>>>8&255]^s[255&u]^i[f++];c=g,h=b,u=m,d=x}g=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^i[f++],b=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^i[f++],m=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^i[f++],x=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^i[f++],t[e]=g,t[e+1]=b,t[e+2]=m,t[e+3]=x},keySize:8});t.AES=i._createHelper(g)}(),e.AES)}()},41200:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(41917);const r=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?n.A.Buffer:void 0;const l=(a?a.isBuffer:void 0)||r},41537:t=>{t.exports={L:1,M:0,Q:3,H:2}},41795:(t,e,i)=>{"use strict";i(61806)},41853:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=a(i(5556)),o=i(96540),s=a(o);function a(t){return t&&t.__esModule?t:{default:t}}var l={bgColor:r.default.oneOfType([r.default.object,r.default.string]).isRequired,bgD:r.default.string.isRequired,fgColor:r.default.oneOfType([r.default.object,r.default.string]).isRequired,fgD:r.default.string.isRequired,size:r.default.number.isRequired,title:r.default.string,viewBoxSize:r.default.number.isRequired,xmlns:r.default.string},c=(0,o.forwardRef)((function(t,e){var i=t.bgColor,r=t.bgD,o=t.fgD,a=t.fgColor,l=t.size,c=t.title,h=t.viewBoxSize,u=t.xmlns,d=void 0===u?"http://www.w3.org/2000/svg":u,f=function(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}(t,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return s.default.createElement("svg",n({},f,{height:l,ref:e,viewBox:"0 0 "+h+" "+h,width:l,xmlns:d}),c?s.default.createElement("title",null,c):null,s.default.createElement("path",{d:r,fill:i}),s.default.createElement("path",{d:o,fill:a}))}));c.displayName="QRCodeSvg",c.propTypes=l,e.default=c},41917:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(72136),r="object"==typeof self&&self&&self.Object===Object&&self;const o=n.A||r||Function("return this")()},42073:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.pad.AnsiX923={pad:function(t,e){var i=t.sigBytes,n=4*e,r=n-i%n,o=i+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},e.pad.Ansix923)}()},42561:(t,e)=>{"use strict";e.A=void 0;e.A=function(t){var e=[];for(t=t.parentNode;t;)e.push(t),t=t.parentNode;return e}},43119:(t,e,i)=>{"use strict";e.A=void 0;var n=i(96540);e.A=function(t){return(0,n.useEffect)((function(){if(t){var e=function(e){27===e.keyCode&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[t])}},43128:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib.BlockCipher,n=t.algo;const r=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function l(t,e){let i=e>>24&255,n=e>>16&255,r=e>>8&255,o=255&e,s=t.sbox[0][i]+t.sbox[1][n];return s^=t.sbox[2][r],s+=t.sbox[3][o],s}function c(t,e,i){let n,o=e,s=i;for(let a=0;a<r;++a)o^=t.pbox[a],s=l(t,o)^s,n=o,o=s,s=n;return n=o,o=s,s=n,s^=t.pbox[r],o^=t.pbox[r+1],{left:o,right:s}}function h(t,e,i){let n,o=e,s=i;for(let a=r+1;a>1;--a)o^=t.pbox[a],s=l(t,o)^s,n=o,o=s,s=n;return n=o,o=s,s=n,s^=t.pbox[1],o^=t.pbox[0],{left:o,right:s}}function u(t,e,i){for(let r=0;r<4;r++){t.sbox[r]=[];for(let e=0;e<256;e++)t.sbox[r][e]=s[r][e]}let n=0;for(let s=0;s<r+2;s++)t.pbox[s]=o[s]^e[n],n++,n>=i&&(n=0);let a=0,l=0,h=0;for(let o=0;o<r+2;o+=2)h=c(t,a,l),a=h.left,l=h.right,t.pbox[o]=a,t.pbox[o+1]=l;for(let r=0;r<4;r++)for(let e=0;e<256;e+=2)h=c(t,a,l),a=h.left,l=h.right,t.sbox[r][e]=a,t.sbox[r][e+1]=l;return!0}var d=n.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4;u(a,e,i)}},encryptBlock:function(t,e){var i=c(a,t[e],t[e+1]);t[e]=i.left,t[e+1]=i.right},decryptBlock:function(t,e){var i=h(a,t[e],t[e+1]);t[e]=i.left,t[e+1]=i.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=i._createHelper(d)}(),e.Blowfish)}()},43240:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(t){var i=e,n=i.lib,r=n.Base,o=n.WordArray,s=i.x64={};s.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=r.extend({init:function(e,i){e=this.words=e||[],this.sigBytes=i!=t?i:8*e.length},toX32:function(){for(var t=this.words,e=t.length,i=[],n=0;n<e;n++){var r=t[n];i.push(r.high),i.push(r.low)}return o.create(i,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),i=e.length,n=0;n<i;n++)e[n]=e[n].clone();return t}})}(),e)}()},43988:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=i(41917).A.Uint8Array},44731:(t,e,i)=>{"use strict";i.d(e,{nu:()=>p,t1:()=>u,yP:()=>f});var n=i(96540),r=i(66118);const o="label";function s(t,e){"function"===typeof t?t(e):t&&(t.current=e)}function a(t,e){t.labels=e}function l(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;const n=[];t.datasets=e.map((e=>{const r=t.datasets.find((t=>t[i]===e[i]));return r&&e.data&&!n.includes(r)?(n.push(r),Object.assign(r,e),r):{...e}}))}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;const i={labels:[],datasets:[]};return a(i,t.labels),l(i,t.datasets,e),i}function h(t,e){const{height:i=150,width:o=300,redraw:h=!1,datasetIdKey:u,type:d,data:f,options:p,plugins:g=[],fallbackContent:b,updateMode:m,...x}=t,v=(0,n.useRef)(null),y=(0,n.useRef)(null),_=()=>{v.current&&(y.current=new r.t1(v.current,{type:d,data:c(f,u),options:p&&{...p},plugins:g}),s(e,y.current))},w=()=>{s(e,null),y.current&&(y.current.destroy(),y.current=null)};return(0,n.useEffect)((()=>{!h&&y.current&&p&&function(t,e){const i=t.options;i&&e&&Object.assign(i,e)}(y.current,p)}),[h,p]),(0,n.useEffect)((()=>{!h&&y.current&&a(y.current.config.data,f.labels)}),[h,f.labels]),(0,n.useEffect)((()=>{!h&&y.current&&f.datasets&&l(y.current.config.data,f.datasets,u)}),[h,f.datasets]),(0,n.useEffect)((()=>{y.current&&(h?(w(),setTimeout(_)):y.current.update(m))}),[h,p,f.labels,f.datasets,m]),(0,n.useEffect)((()=>{y.current&&(w(),setTimeout(_))}),[d]),(0,n.useEffect)((()=>(_(),()=>w())),[]),n.createElement("canvas",{ref:v,role:"img",height:i,width:o,...x},b)}const u=(0,n.forwardRef)(h);function d(t,e){return r.t1.register(e),(0,n.forwardRef)(((e,i)=>n.createElement(u,{...e,ref:i,type:t})))}const f=d("bar",r.A6),p=d("doughnut",r.ju)},45471:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){var t=e,i=t.lib,n=i.WordArray,r=i.Hasher,o=t.algo,s=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],a=i[3],l=i[4],c=0;c<80;c++){if(c<16)s[c]=0|t[e+c];else{var h=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=h<<1|h>>>31}var u=(n<<5|n>>>27)+l+s[c];u+=c<20?1518500249+(r&o|~r&a):c<40?1859775393+(r^o^a):c<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,l=a,a=o,o=r<<30|r>>>2,r=n,n=u}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=r._createHelper(a),t.HmacSHA1=r._createHmacHelper(a)}(),e.SHA1)}()},45503:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){var t=e,i=t.lib.WordArray,n=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}},n.Utf16LE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o<i;o+=2){var s=r(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return i.create(n,2*e)}}}(),e.enc.Utf16)}()},45572:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r}},45710:(t,e,i)=>{"use strict";i.d(e,{R:()=>r});var n=i(29407);function r(t){return+(0,n.a)(t)<Date.now()}},45953:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(43240),function(t){var i=e,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.x64.Word,a=i.algo,l=[],c=[],h=[];!function(){for(var t=1,e=0,i=0;i<24;i++){l[t+5*e]=(i+1)*(i+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,u=0,d=0;d<7;d++){if(1&r){var f=(1<<d)-1;f<32?u^=1<<f:a^=1<<f-32}128&r?r=r<<1^113:r<<=1}h[o]=s.create(a,u)}}();var u=[];!function(){for(var t=0;t<25;t++)u[t]=s.create()}();var d=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var i=this._state,n=this.blockSize/2,r=0;r<n;r++){var o=t[e+2*r],s=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(C=i[r]).high^=s,C.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,g=0;g<5;g++)f^=(C=i[d+5*g]).high,p^=C.low;var b=u[d];b.high=f,b.low=p}for(d=0;d<5;d++){var m=u[(d+4)%5],x=u[(d+1)%5],v=x.high,y=x.low;for(f=m.high^(v<<1|y>>>31),p=m.low^(y<<1|v>>>31),g=0;g<5;g++)(C=i[d+5*g]).high^=f,C.low^=p}for(var _=1;_<25;_++){var w=(C=i[_]).high,k=C.low,A=l[_];A<32?(f=w<<A|k>>>32-A,p=k<<A|w>>>32-A):(f=k<<A-32|w>>>64-A,p=w<<A-32|k>>>64-A);var M=u[c[_]];M.high=f,M.low=p}var S=u[0],E=i[0];for(S.high=E.high,S.low=E.low,d=0;d<5;d++)for(g=0;g<5;g++){var C=i[_=d+5*g],O=u[_],P=u[(d+1)%5+5*g],D=u[(d+2)%5+5*g];C.high=O.high^~P.high&D.high,C.low=O.low^~P.low&D.low}C=i[0];var B=h[a];C.high^=B.high,C.low^=B.low}},_doFinalize:function(){var e=this._data,i=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;i[n>>>5]|=1<<24-n%32,i[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*i.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],h=0;h<l;h++){var u=s[h],d=u.high,f=u.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(d)}return new r.init(c,a)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),i=0;i<25;i++)e[i]=e[i].clone();return t}});i.SHA3=o._createHelper(d),i.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3)}()},46641:(t,e,i)=>{var n=i(17790),r=i(12835),o=i(10046),s=i(38759),a=i(30501);function l(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(t){var e=new n(t);this.dataList.push(e),this.dataCache=null},c.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=r.getRSBlocks(t,this.errorCorrectLevel),i=new o,n=0,a=0;a<e.length;a++)n+=e[a].dataCount;for(a=0;a<this.dataList.length;a++){var l=this.dataList[a];i.put(l.mode,4),i.put(l.getLength(),s.getLengthInBits(l.mode,t)),l.write(i)}if(i.getLengthInBits()<=8*n)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[i][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},c.setupPositionProbePattern=function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+i][e+n]=0<=i&&i<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=n&&n<=4)},c.getBestMaskPattern=function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var n=s.getLostPoint(this);(0==i||t>n)&&(t=n,e=i)}return e},c.createMovieClip=function(t,e,i){var n=t.createEmptyMovieClip(e,i);this.make();for(var r=0;r<this.modules.length;r++)for(var o=1*r,s=0;s<this.modules[r].length;s++){var a=1*s;this.modules[r][s]&&(n.beginFill(0,100),n.moveTo(a,o),n.lineTo(a+1,o),n.lineTo(a+1,o+1),n.lineTo(a,o+1),n.endFill())}return n},c.setupTimingPattern=function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},c.setupPositionAdjustPattern=function(){for(var t=s.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var i=0;i<t.length;i++){var n=t[e],r=t[i];if(null==this.modules[n][r])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.modules[n+o][r+a]=-2==o||2==o||-2==a||2==a||0==o&&0==a}},c.setupTypeNumber=function(t){for(var e=s.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var n=!t&&1==(e>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n}for(i=0;i<18;i++){n=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},c.setupTypeInfo=function(t,e){for(var i=this.errorCorrectLevel<<3|e,n=s.getBCHTypeInfo(i),r=0;r<15;r++){var o=!t&&1==(n>>r&1);r<6?this.modules[r][8]=o:r<8?this.modules[r+1][8]=o:this.modules[this.moduleCount-15+r][8]=o}for(r=0;r<15;r++){o=!t&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=o:r<9?this.modules[8][15-r-1+1]=o:this.modules[8][15-r-1]=o}this.modules[this.moduleCount-8][8]=!t},c.mapData=function(t,e){for(var i=-1,n=this.moduleCount-1,r=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var l=0;l<2;l++)if(null==this.modules[n][a-l]){var c=!1;o<t.length&&(c=1==(t[o]>>>r&1)),s.getMask(e,n,a-l)&&(c=!c),this.modules[n][a-l]=c,-1==--r&&(o++,r=7)}if((n+=i)<0||this.moduleCount<=n){n-=i,i=-i;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(t,e,i){for(var n=r.getRSBlocks(t,e),a=new o,c=0;c<i.length;c++){var h=i[c];a.put(h.mode,4),a.put(h.getLength(),s.getLengthInBits(h.mode,t)),h.write(a)}var u=0;for(c=0;c<n.length;c++)u+=n[c].dataCount;if(a.getLengthInBits()>8*u)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*u+")");for(a.getLengthInBits()+4<=8*u&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*u)&&(a.put(l.PAD0,8),!(a.getLengthInBits()>=8*u));)a.put(l.PAD1,8);return l.createBytes(a,n)},l.createBytes=function(t,e){for(var i=0,n=0,r=0,o=new Array(e.length),l=new Array(e.length),c=0;c<e.length;c++){var h=e[c].dataCount,u=e[c].totalCount-h;n=Math.max(n,h),r=Math.max(r,u),o[c]=new Array(h);for(var d=0;d<o[c].length;d++)o[c][d]=255&t.buffer[d+i];i+=h;var f=s.getErrorCorrectPolynomial(u),p=new a(o[c],f.getLength()-1).mod(f);l[c]=new Array(f.getLength()-1);for(d=0;d<l[c].length;d++){var g=d+p.getLength()-l[c].length;l[c][d]=g>=0?p.get(g):0}}var b=0;for(d=0;d<e.length;d++)b+=e[d].totalCount;var m=new Array(b),x=0;for(d=0;d<n;d++)for(c=0;c<e.length;c++)d<o[c].length&&(m[x++]=o[c][d]);for(d=0;d<r;d++)for(c=0;c<e.length;c++)d<l[c].length&&(m[x++]=l[c][d]);return m},t.exports=l},46778:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});const n=function(t){return function(){return t}};var r=i(84171),o=i(29008);const s=r.A?function(t,e){return(0,r.A)(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o.A;var a=Date.now;const l=function(t){var e=0,i=0;return function(){var n=a(),r=16-(n-i);if(i=n,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(s)},46964:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});const n=function(t,e){return null!=t&&e in Object(t)};var r=i(85054);const o=function(t,e){return null!=t&&(0,r.A)(t,e,n)}},50423:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(59520),r=i(25175),o=i(92049),s=i(41200),a=i(25353),l=i(54749),c=Object.prototype.hasOwnProperty;const h=function(t,e){var i=(0,o.A)(t),h=!i&&(0,r.A)(t),u=!i&&!h&&(0,s.A)(t),d=!i&&!h&&!u&&(0,l.A)(t),f=i||h||u||d,p=f?(0,n.A)(t.length,String):[],g=p.length;for(var b in t)!e&&!c.call(t,b)||f&&("length"==b||u&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||(0,a.A)(b,g))||p.push(b);return p}},50751:(t,e,i)=>{"use strict";i.d(e,{A:()=>f});var n=/\s/;const r=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e};var o=/^\s+/;const s=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t};var a=i(23149),l=i(61882),c=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;const f=function(t){if("number"==typeof t)return t;if((0,l.A)(t))return NaN;if((0,a.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,a.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var i=h.test(t);return i||u.test(t)?d(t.slice(2),i?2:8):c.test(t)?NaN:+t}},51025:function(t,e,i){!function(){var e;t.exports=(e=i(19021),void function(){var t=e,i=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var i=t.blockSize,r=4*i;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,l=s.words,c=0;c<i;c++)a[c]^=1549556828,l[c]^=909522486;o.sigBytes=s.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,i=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(i))}})}())}()},52155:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.pad.ZeroPadding={pad:function(t,e){var i=4*e;t.clamp(),t.sigBytes+=i-(t.sigBytes%i||i)},unpad:function(t){var e=t.words,i=t.sigBytes-1;for(i=t.sigBytes-1;i>=0;i--)if(e[i>>>2]>>>24-i%4*8&255){t.sigBytes=i+1;break}}},e.pad.ZeroPadding)}()},52365:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(43329);function r(t){return(0,n.w)(t,Date.now())}},52528:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(84171);const r=function(t,e,i){"__proto__"==e&&n.A?(0,n.A)(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},52789:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return function(e){return t(e)}}},52851:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(52528),r=i(66984),o=Object.prototype.hasOwnProperty;const s=function(t,e,i){var s=t[e];o.call(t,e)&&(0,r.A)(s,i)&&(void 0!==i||e in t)||(0,n.A)(t,e,i)}},53098:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},53533:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(38446),r=i(53098);const o=function(t){return(0,r.A)(t)&&(0,n.A)(t)}},53982:(t,e,i)=>{"use strict";var n,r,o=i(44576),s=i(77629),a=i(94901),l=i(2360),c=i(42787),h=i(36840),u=i(78227),d=i(96395),f="USE_FUNCTION_CONSTRUCTOR",p=u("asyncIterator"),g=o.AsyncIterator,b=s.AsyncIteratorPrototype;if(b)n=b;else if(a(g))n=g.prototype;else if(s[f]||o[f])try{r=c(c(c(Function("return async function*(){}()")()))),c(r)===Object.prototype&&(n=r)}catch(m){}n?d&&(n=l(n)):n={},a(n[p])||h(n,p,(function(){return this})),t.exports=n},54657:(t,e,i)=>{"use strict";var n,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(96540),s=(n=o)&&n.__esModule?n:{default:n};e.A=function(t){var e=t.fill,i=void 0===e?"currentColor":e,n=t.width,o=void 0===n?24:n,a=t.height,l=void 0===a?24:a,c=t.style,h=void 0===c?{}:c,u=function(t,e){var i={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}(t,["fill","width","height","style"]);return s.default.createElement("svg",r({viewBox:"0 0 24 24",style:r({fill:i,width:o,height:l},h)},u),s.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},54749:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var n=i(2383),r=i(5254),o=i(53098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.A)(t)&&(0,r.A)(t.length)&&!!s[(0,n.A)(t)]};var l=i(52789),c=i(64841),h=c.A&&c.A.isTypedArray;const u=h?(0,l.A)(h):a},54905:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.pad.Iso10126={pad:function(t,i){var n=4*i,r=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},e.pad.Iso10126)}()},55378:(t,e,i)=>{var n=i(34932),r=i(15389),o=i(5128),s=i(56449);t.exports=function(t,e){return(s(t)?n:o)(t,r(e,3))}},57165:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(39506),void(e.lib.Cipher||function(t){var i=e,n=i.lib,r=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=i.enc,l=(a.Utf8,a.Base64),c=i.algo.EvpKDF,h=n.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:m}return function(e){return{encrypt:function(i,n,r){return t(n).encrypt(e,i,n,r)},decrypt:function(i,n,r){return t(n).decrypt(e,i,n,r)}}}}()}),u=(n.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),i.mode={}),d=n.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=u.CBC=function(){var e=d.extend();function i(e,i,n){var r,o=this._iv;o?(r=o,this._iv=t):r=this._prevBlock;for(var s=0;s<n;s++)e[i+s]^=r[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize;i.call(this,t,e,r),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=t.slice(e,e+r);n.decryptBlock(t,e),i.call(this,t,e,r),this._prevBlock=o}}),e}(),p=(i.pad={}).Pkcs7={pad:function(t,e){for(var i=4*e,n=i-t.sigBytes%i,r=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(r);var l=o.create(s,n);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},g=(n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:f,padding:p}),reset:function(){var t;h.reset.call(this);var e=this.cfg,i=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,i&&i.words):(this._mode=t.call(n,this,i&&i.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;return(i?o.create([1398893684,1701076831]).concat(i).concat(e):e).toString(l)},parse:function(t){var e,i=l.parse(t),n=i.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=o.create(n.slice(2,4)),n.splice(0,4),i.sigBytes-=16),g.create({ciphertext:i,salt:e})}},m=n.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var r=t.createEncryptor(i,n),o=r.finalize(e),s=r.cfg;return g.create({ciphertext:o,key:i,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(i,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),x=(i.kdf={}).OpenSSL={execute:function(t,e,i,n,r){if(n||(n=o.random(8)),r)s=c.create({keySize:e+i,hasher:r}).compute(t,n);else var s=c.create({keySize:e+i}).compute(t,n);var a=o.create(s.words.slice(e),4*i);return s.sigBytes=4*e,g.create({key:s,iv:a,salt:n})}},v=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:x}),encrypt:function(t,e,i,n){var r=(n=this.cfg.extend(n)).kdf.execute(i,t.keySize,t.ivSize,n.salt,n.hasher);n.iv=r.iv;var o=m.encrypt.call(this,t,e,r.key,n);return o.mixIn(r),o},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var r=n.kdf.execute(i,t.keySize,t.ivSize,e.salt,n.hasher);return n.iv=r.iv,m.decrypt.call(this,t,e,r.key,n)}})}()))}()},58124:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)}()},58527:(t,e,i)=>{"use strict";e.H8=void 0;var n=c(i(99265)),r=c(i(76203)),o=c(i(26892)),s=c(i(16686)),a=c(i(75268)),l=c(i(62693));function c(t){return t&&t.__esModule?t:{default:t}}s.default,e.H8=s.default,a.default,l.default;var h=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];var a=(0,n.default)(i),l=(0,r.default)(t,a);return(0,o.default)(l)};e.Ay=h},59520:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}},59712:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(23149),r=Object.create;const o=function(){function t(){}return function(e){if(!(0,n.A)(e))return{};if(r)return r(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}()},61806:(t,e,i)=>{"use strict";var n=i(46518),r=i(28551),o=i(72652),s=i(1767),a=[].push;n({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return o(s(r(this)),a,{that:t,IS_RECORD:!0}),t}})},61882:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(2383),r=i(53098);const o=function(t){return"symbol"==typeof t||(0,r.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},62050:(t,e,i)=>{"use strict";i.d(e,{A:()=>k});const n=(0,i(28562).A)(Object,"create");const r=function(){this.__data__=n?n(null):{},this.size=0};const o=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var s=Object.prototype.hasOwnProperty;const a=function(t){var e=this.__data__;if(n){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return s.call(e,t)?e[t]:void 0};var l=Object.prototype.hasOwnProperty;const c=function(t){var e=this.__data__;return n?void 0!==e[t]:l.call(e,t)};const h=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};function u(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=c,u.prototype.set=h;const d=u;var f=i(89469),p=i(68335);const g=function(){this.size=0,this.__data__={hash:new d,map:new(p.A||f.A),string:new d}};const b=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const m=function(t,e){var i=t.__data__;return b(e)?i["string"==typeof e?"string":"hash"]:i.map};const x=function(t){var e=m(this,t).delete(t);return this.size-=e?1:0,e};const v=function(t){return m(this,t).get(t)};const y=function(t){return m(this,t).has(t)};const _=function(t,e){var i=m(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this};function w(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}w.prototype.clear=g,w.prototype.delete=x,w.prototype.get=v,w.prototype.has=y,w.prototype.set=_;const k=w},62693:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var i={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];i[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2===0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),i}},63009:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(t){var i=e,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[],l=[];!function(){function e(e){for(var i=t.sqrt(e),n=2;n<=i;n++)if(!(e%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var n=2,r=0;r<64;)e(n)&&(r<8&&(a[r]=i(t.pow(n,.5))),l[r]=i(t.pow(n,1/3)),r++),n++}();var c=[],h=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],u=i[6],d=i[7],f=0;f<64;f++){if(f<16)c[f]=0|t[e+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,b=c[f-2],m=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;c[f]=g+c[f-7]+m+c[f-16]}var x=n&r^n&o^r&o,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),y=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&u)+l[f]+c[f];d=u,u=h,h=a,a=s+y|0,s=o,o=r,r=n,n=y+(v+x)|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+a|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+d|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=t.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});i.SHA256=o._createHelper(h),i.HmacSHA256=o._createHmacHelper(h)}(Math),e.SHA256)}()},64099:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){return t.has(e)}},64725:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){var t=e,i=t.lib.WordArray;function n(t,e,n){for(var r=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}t.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var i=t.words,n=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],s=0;s<n;s+=3)for(var a=(i[s>>>2]>>>24-s%4*8&255)<<16|(i[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|i[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l<n;l++)o.push(r.charAt(a>>>6*(3-l)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var i=t.length,r=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<r.length;s++)o[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var l=t.indexOf(a);-1!==l&&(i=l)}return n(t,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url)}()},64841:(t,i,n)=>{"use strict";n.d(i,{A:()=>l});var r=n(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o&&r.A.process;const l=function(){try{var t=s&&s.require&&s.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}()},65255:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});const n=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)};var r=Math.max;const o=function(t,e,i){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=r(o.length-e,0),l=Array(a);++s<a;)l[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=i(l),n(t,this,c)}}},66118:(t,e,i)=>{"use strict";i.d(e,{$L:()=>hn,A6:()=>P,Bs:()=>ge,E8:()=>Re,FN:()=>Se,Hg:()=>kt,Jb:()=>D,No:()=>Ae,P$:()=>L,PP:()=>Li,Qw:()=>c,UA:()=>ln,ZT:()=>R,ij:()=>H,ju:()=>B,kc:()=>ji,m_:()=>Di,s$:()=>di,t1:()=>ce});var n=i(81692);class r{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const r=e.listeners[n],o=e.duration;r.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_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 r=i.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),r.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=r.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 o=new r;const s="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const r=(0,n.c)(t||s),o=r.valid&&(0,n.c)(e||s);return o&&o.valid?o.mix(r,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class l{constructor(t,e,i,r){const o=e[i];r=(0,n.a)([t.to,r,o,t.from]);const s=(0,n.a)([t.from,o,r]);this._active=!0,this._fn=t.fn||a[t.type||typeof s],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=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,n.a)([t.to,e,r,t.from]),this._from=(0,n.a)([t.from,r,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,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<i),!this._active)return this._target[n]=s,void this._notify(!0);e<0?this._target[n]=r:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;n<i.length;n++)i[n][e]()}}class c{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((r=>{const o=t[r];if(!(0,n.i)(o))return;const s={};for(const t of e)s[t]=o[t];((0,n.b)(o.properties)&&o.properties||[r]).forEach((t=>{t!==r&&i.has(t)||i.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const r=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let r=0;r<n.length;r++){const e=t[n[r]];e&&e.active()&&i.push(e.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),r}_createAnimations(t,e){const i=this._properties,n=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const c=o[a];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const h=e[c];let u=r[c];const d=i.get(c);if(u){if(d&&u.active()){u.update(d,h,s);continue}u.cancel()}d&&d.duration?(r[c]=u=new l(d,t,c,h),n.push(u)):t[c]=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?(o.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},n=i.reverse,r=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:r,end:n?r:o}}function u(t,e){const i=[],n=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=n.length;r<o;++r)i.push(n[r].index);return i}function d(t,e,i,r={}){const o=t.keys,s="single"===r.mode;let a,l,c,h;if(null===e)return;let u=!1;for(a=0,l=o.length;a<l;++a){if(c=+o[a],c===i){if(u=!0,r.all)continue;break}h=t.values[c],(0,n.g)(h)&&(s||0===e||(0,n.s)(e)===(0,n.s)(h))&&(e+=h)}return u||r.all?e:0}function f(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function p(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function g(t,e,i,n){for(const r of e.getMatchingVisibleMetas(n).reverse()){const e=t[r.index];if(i&&e>0||!i&&e<0)return r.index}return null}function b(t,e){const{chart:i,_cachedMeta:n}=t,r=i._stacks||(i._stacks={}),{iScale:o,vScale:s,index:a}=n,l=o.axis,c=s.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,s,n),u=e.length;let d;for(let f=0;f<u;++f){const t=e[f],{[l]:i,[c]:o}=t;d=(t._stacks||(t._stacks={}))[c]=p(r,h,i),d[a]=o,d._top=g(d,s,!0,n.type),d._bottom=g(d,s,!1,n.type);(d._visualValues||(d._visualValues={}))[a]=o}}function m(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function x(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 v=t=>"reset"===t||"none"===t,y=(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=f(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&&x(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,o=e.xAxisID=(0,n.v)(i.xAxisID,m(t,"x")),s=e.yAxisID=(0,n.v)(i.yAxisID,m(t,"y")),a=e.rAxisID=(0,n.v)(i.rAxisID,m(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,o,s,a),h=e.vAxisID=r(l,s,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),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&&x(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,r="x"===i.axis?"x":"y",o="x"===n.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,h;for(l=0,c=s.length;l<c;++l)h=s[l],a[l]={[r]:h,[o]:t[h]};return a}(e,t)}else if(i!==e){if(i){(0,n.u)(i,this);const t=this._cachedMeta;x(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 r=e._stacked;e._stacked=f(e.vScale,e),e.stack!==i.stack&&(n=!0,x(e),e.stack=i.stack),this._resyncElements(t),(n||r!==e._stacked)&&(b(this,e._parsed),e._stacked=f(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:r}=this,{iScale:o,_stacked:s}=i,a=o.axis;let l,c,h,u=0===t&&e===r.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=r,i._sorted=!0,h=r;else{h=(0,n.b)(r[t])?this.parseArrayData(i,r,t,e):(0,n.i)(r[t])?this.parseObjectData(i,r,t,e):this.parsePrimitiveData(i,r,t,e);const o=()=>null===c[a]||d&&c[a]<d[a];for(l=0;l<e;++l)i._parsed[l+t]=c=h[l],u&&(o()&&(u=!1),d=c);i._sorted=u}s&&b(this,h)}parsePrimitiveData(t,e,i,n){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,l=r.getLabels(),c=r===o,h=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,h[u]={[s]:c||r.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:r,yScale:o}=t,s=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],s[a]={x:r.parse(h[0],c),y:o.parse(h[1],c)};return s}parseObjectData(t,e,i,r){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r);let h,u,d,f;for(h=0,u=r;h<u;++h)d=h+i,f=e[d],c[h]={x:o.parse((0,n.f)(f,a),d),y:s.parse((0,n.f)(f,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,r=this._cachedMeta,o=e[t.axis];return d({keys:u(n,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const r=i[e.axis];let o=null===r?NaN:r;const s=n&&i._stacks[e.axis];n&&s&&(n.values=s,o=d(n,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,r=i._parsed,o=i._sorted&&t===i.iScale,s=r.length,a=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:u(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=function(t){const{min:e,max:i,minDefined:n,maxDefined:r}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}(a);let f,p;function g(){p=r[f];const e=p[a.axis];return!(0,n.g)(p[t.axis])||h>e||d<e}for(f=0;f<s&&(g()||(this.updateRangeFromParsed(c,t,p,l),!o));++f);if(o)for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,p,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,o,s;for(r=0,o=e.length;r<o;++r)s=e[r][t.axis],(0,n.g)(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,r=this.getParsed(t);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:n?""+n.getLabelForValue(r[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,r,o;return(0,n.i)(t)?(e=t.top,i=t.right,r=t.bottom,o=t.left):e=i=r=o=t,{top:e,right:i,bottom:r,left:o,disabled:!1===t}}((0,n.v)(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=h(t,i),r=h(e,i);return{top:r.end,right:n.end,bottom:r.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||[],r=e.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||n.length-s,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,r,s,a),c=s;c<s+a;++c){const e=n[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}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 r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=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)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=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)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=i,o}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 r="active"===e,o=this._cachedDataOpts,s=t+"-"+e,a=o[s],l=this.enableOptionSharing&&(0,n.h)(i);if(a)return y(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),h),f=Object.keys(n.d.elements[t]),p=c.resolveNamedOptions(d,f,(()=>this.getContext(i,r,e)),u);return p.$shared&&(p.$shared=l,o[s]=Object.freeze(y(p,l))),p}_resolveAnimations(t,e,i){const n=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==n.options.animation){const n=this.chart.config,r=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),r);a=n.createResolver(o,this.getContext(t,i,e))}const l=new c(n,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||v(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(e,r)||r!==n;return this.updateSharedOptions(r,e,i),{sharedOptions:r,includeOptions:o}}updateElement(t,e,i,n){v(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!v(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const r=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}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[s,a,l]of this._syncList)this[s](a,l);this._syncList=[];const n=i.length,r=e.length,o=Math.min(r,n);o&&this.parse(0,o),r>n?this._insertElements(n,r-n,t):r<n&&this._removeElements(r,n-r)}_insertElements(t,e,i=!0){const n=this._cachedMeta,r=n.data,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(r,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&&x(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 r=[];for(let e=0,n=i.length;e<n;e++)r=r.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=(0,n._)(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,o,s,a,l=e._length;const c=()=>{32767!==s&&-32768!==s&&((0,n.h)(a)&&(l=Math.min(l,Math.abs(s-a)||l)),a=s)};for(r=0,o=i.length;r<o;++r)s=e.getPixelForValue(i[r]),c();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)s=e.getPixelForTick(r),c();return l}function k(t,e,i,r){return(0,n.b)(t)?function(t,e,i,n){const r=i.parse(t[0],n),o=i.parse(t[1],n),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,i,r):e[i.axis]=i.parse(t,r),e}function A(t,e,i,n){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,h,u,d;for(c=i,h=i+n;c<h;++c)d=e[c],u={},u[r.axis]=a||r.parse(s[c],c),l.push(k(d,u,o,c));return l}function M(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function S(t,e,i,n){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,n,r,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(r="end",o="start"):(r="start",o="end"),{start:i,end:n,reverse:e,top:r,bottom:o}}(t);"middle"===r&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?r=c:(i._bottom||0)===n?r=h:(o[E(h,s,a,l)]=!0,r=c)),o[E(r,s,a,l)]=!0,t.borderSkipped=o}function E(t,e,i,n){var r,o,s;return n?(s=i,t=C(t=(r=t)===(o=e)?s:r===s?o:r,i,e)):t=C(t,e,i),t}function C(t,e,i){return"start"===t?e:"end"===t?i:t}function O(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class P 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 A(t,e,i,n)}parseArrayData(t,e,i,n){return A(t,e,i,n)}parseObjectData(t,e,i,r){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c="x"===o.axis?a:l,h="x"===s.axis?a:l,u=[];let d,f,p,g;for(d=i,f=i+r;d<f;++d)g=e[d],p={},p[o.axis]=o.parse((0,n.f)(g,c),d),u.push(k((0,n.f)(g,h),p,s,d));return u}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const r=i._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,r=this.getParsed(t),o=r._custom,s=M(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(r[n.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:s}}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,r){const o="reset"===r,{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=o||(0,n.k)(e[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),g=(e._stacks||{})[a.axis],b={horizontal:c,base:i.base,enableBorderRadius:!g||M(e._custom)||s===g._top||s===g._bottom,x:c?i.head:p.center,y:c?p.center:i.head,height:c?p.size:Math.abs(i.size),width:c?Math.abs(i.size):p.size};d&&(b.options=u||this.resolveDataElementOptions(f,t[f].active?"active":r));const m=b.options||t[f].options;S(b,m,g,s),O(b,m,h.ratio),this.updateElement(t[f],f,b,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=i.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[i.axis],c=t=>{const e=t._parsed.find((t=>t[i.axis]===l)),r=e&&e[t.vScale.axis];if((0,n.k)(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!c(n))&&((!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_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),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let r,o;for(r=0,o=e.data.length;r<o;++r)n.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const s=t.barThickness;return{min:s||w(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=M(c);let u,d,f=l[e.axis],p=0,g=i?this.applyStack(e,l,i):f;g!==f&&(p=g-f,g=f),h&&(f=c.barStart,g=c.barEnd-c.barStart,0!==f&&(0,n.s)(f)!==(0,n.s)(c.barEnd)&&(p=0),p+=f);const b=(0,n.k)(o)||h?p:o;let m=e.getPixelForValue(b);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):m,d=u-m,Math.abs(d)<s){d=function(t,e,i){return 0!==t?(0,n.s)(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,a)*s,f===a&&(m-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),c=Math.min(t,o),p=Math.max(t,o);m=Math.max(Math.min(m,p),c),u=m+d,i&&!h&&(l._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(a)){const t=(0,n.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,o=r.skipNull,s=(0,n.v)(r.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,h="flex"===r.barThickness?function(t,e,i,n){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=i.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,r,i*c):function(t,e,i,r){const o=i.barThickness;let s,a;return(0,n.k)(o)?(s=e.min*i.categoryPercentage,a=i.barPercentage):(s=o*r,a=1),{chunk:s/r,ratio:a,start:e.pixels[t]-s/2}}(t,e,r,i*c),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf((0,n.v)(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+d;a=h.start+h.chunk*f+h.chunk/2,l=Math.min(s,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(s,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let r=0;for(;r<n;++r)null===this.getParsed(r)[e.axis]||i[r].hidden||i[r].draw(this._ctx)}}class D extends _{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const r=super.parsePrimitiveData(t,e,i,n);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+i).radius;return r}parseArrayData(t,e,i,r){const o=super.parseArrayData(t,e,i,r);for(let s=0;s<o.length;s++){const t=e[i+s];o[s]._custom=(0,n.v)(t[2],this.resolveDataElementOptions(s+i).radius)}return o}parseObjectData(t,e,i,r){const o=super.parseObjectData(t,e,i,r);for(let s=0;s<o.length;s++){const t=e[i+s];o[s]._custom=(0,n.v)(t&&t.r&&+t.r,this.resolveDataElementOptions(s+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:r}=e,o=this.getParsed(t),s=n.getLabelForValue(o.x),a=r.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=s.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!r&&this.getParsed(u),d={},f=d[c]=r?o.getPixelForDecimal(.5):o.getPixelForValue(i[c]),p=d[h]=r?s.getBasePixel():s.getPixelForValue(i[h]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),r&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==e&&(r.radius=0),r.radius+=(0,n.v)(i&&i._custom,o),r}}class B 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:r,useBorderRadius:o,borderRadius:s}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map(((e,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:e,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.getDataVisibility(a),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:n,pointStyle:i,borderRadius:o&&(s||l.borderRadius),index:a}})):[]}},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,r=this._cachedMeta;if(!1===this._parsing)r._parsed=i;else{let o,s,a=t=>+i[t];if((0,n.i)(i[t])){const{key:t="value"}=this._parsing;a=e=>+(0,n.f)(i[e],t)}for(o=t,s=t+e;o<s;++o)r._parsed[o]=a(o)}}_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,r=n._getRotation(),o=n._getCircumference();t=Math.min(t,r),e=Math.max(e,r+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,r=this._cachedMeta,o=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-s)/2,0),l=Math.min((0,n.m)(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:p,offsetY:g}=function(t,e,i){let r=1,o=1,s=0,a=0;if(e<n.T){const l=t,c=l+e,h=Math.cos(l),u=Math.sin(l),d=Math.cos(c),f=Math.sin(c),p=(t,e,r)=>(0,n.p)(t,l,c,!0)?1:Math.max(e,e*i,r,r*i),g=(t,e,r)=>(0,n.p)(t,l,c,!0)?-1:Math.min(e,e*i,r,r*i),b=p(0,h,d),m=p(n.H,u,f),x=g(n.P,h,d),v=g(n.P+n.H,u,f);r=(b-x)/2,o=(m-v)/2,s=-(b+x)/2,a=-(m+v)/2}return{ratioX:r,ratioY:o,offsetX:s,offsetY:a}}(u,h,l),b=(i.width-s)/d,m=(i.height-s)/f,x=Math.max(Math.min(b,m)/2,0),v=(0,n.n)(this.options.radius,x),y=(v-Math.max(v*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=g*v,r.total=this.calculateTotal(),this.outerRadius=v-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/n.T)}updateElements(t,e,i,n){const r="reset"===n,o=this.chart,s=o.chartArea,a=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,h=r&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,b=this._getRotation();for(g=0;g<e;++g)b+=this._circumference(g,r);for(g=e;g<e+i;++g){const e=this._circumference(g,r),i=t[g],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:d,innerRadius:u};p&&(o.options=f||this.resolveDataElementOptions(g,i.active?"active":n)),b+=e,this.updateElement(i,g,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const r=t._parsed[i];null===r||isNaN(r)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(r))}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,r=i.data.labels||[],o=(0,n.o)(e._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,r,o,s,a;if(!t)for(n=0,r=i.data.datasets.length;n<r;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,s=o.controller;break}if(!t)return 0;for(n=0,r=t.length;n<r;++n)a=s.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max((0,n.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class R 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:r=[],_dataset:o}=e,s=this.chart._animationsDisabled;let{start:a,count:l}=(0,n.q)(e,r,s);this._drawStart=a,this._drawCount=l,(0,n.w)(e)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,i,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,r),d=s.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,b=(0,n.x)(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===r,x=e+i,v=t.length;let y=e>0&&this.getParsed(e-1);for(let _=0;_<v;++_){const i=t[_],p=m?i:{};if(_<e||_>=x){p.skip=!0;continue}const v=this.getParsed(_),w=(0,n.k)(v[f]),k=p[d]=s.getPixelForValue(v[d],_),A=p[f]=o||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,v,l):v[f],_);p.skip=isNaN(k)||isNaN(A)||w,p.stop=_>0&&Math.abs(v[d]-y[d])>b,g&&(p.parsed=v,p.raw=c.data[_]),u&&(p.options=h||this.resolveDataElementOptions(_,i.active?"active":r)),m||this.updateElement(i,_,p,r),y=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 r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class T extends _{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=(0,n.o)(e._parsed[t].r,i.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,e,i,r){return n.y.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(n/2,0),o=(r-Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,r){const o="reset"===r,s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,u=l.getIndexAngle(0)-.5*n.P;let d,f=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)f+=this._computeAngle(d,r,p);for(d=e;d<e+i;d++){const e=t[d];let i=f,n=f+this._computeAngle(d,r,p),g=s.getDataVisibility(d)?l.getDistanceFromCenterForValue(this.getParsed(d).r):0;f=n,o&&(a.animateScale&&(g=0),a.animateRotate&&(i=n=u));const b={x:c,y:h,innerRadius:0,outerRadius:g,startAngle:i,endAngle:n,options:this.resolveDataElementOptions(d,e.active?"active":r)};this.updateElement(e,d,b,r)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,n.t)(this.resolveDataElementOptions(t,e).angle||i):0}}class L extends B{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}var F=Object.freeze({__proto__:null,BarController:P,BubbleController:D,DoughnutController:B,LineController:R,PieController:L,PolarAreaController:T,RadarController:class extends _{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return n.y.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],r=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const r=this._cachedMeta.rScale,o="reset"===n;for(let s=e;s<e+i;s++){const e=t[s],i=this.resolveDataElementOptions(s,e.active?"active":n),a=r.getPointPositionForValue(s,this.getParsed(s).r),l=o?r.xCenter:a.x,c=o?r.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,s,h,n)}}},ScatterController:class extends _{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:r}=e,o=this.getParsed(t),s=n.getLabelForValue(o.x),a=r.getLabelForValue(o.y);return{label:i[t]||"",value:"("+s+", "+a+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled;let{start:o,count:s}=(0,n.q)(e,i,r);if(this._drawStart=o,this._drawCount=s,(0,n.w)(e)&&(o=0,s=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:s},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,h=this.resolveDataElementOptions(e,r),u=this.getSharedOptions(h),d=this.includeOptions(r,u),f=s.axis,p=a.axis,{spanGaps:g,segment:b}=this.options,m=(0,n.x)(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===r;let v=e>0&&this.getParsed(e-1);for(let y=e;y<e+i;++y){const e=t[y],i=this.getParsed(y),h=x?e:{},g=(0,n.k)(i[p]),_=h[f]=s.getPixelForValue(i[f],y),w=h[p]=o||g?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,i,l):i[p],y);h.skip=isNaN(_)||isNaN(w)||g,h.stop=y>0&&Math.abs(i[f]-v[f])>m,b&&(h.parsed=i,h.raw=c.data[y]),d&&(h.options=u||this.resolveDataElementOptions(y,e.active?"active":r)),x||this.updateElement(e,y,h,r),v=i}this.updateSharedOptions(u,r,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,r,o)/2}}});function z(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class j{static override(t){Object.assign(j.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return z()}parse(){return z()}format(){return z()}add(){return z()}diff(){return z()}startOf(){return z()}endOf(){return z()}}var H={_date:j};function I(t,e,i,r){const{controller:o,data:s,_sorted:a}=t,l=o._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(l&&e===l.axis&&"r"!==e&&a&&s.length){const a=l._reversePixels?n.A:n.B;if(!r){const r=a(s,e,i);if(c){const{vScale:e}=o._cachedMeta,{_parsed:i}=t,s=i.slice(0,r.lo+1).reverse().findIndex((t=>!(0,n.k)(t[e.axis])));r.lo-=Math.max(0,s);const a=i.slice(r.hi).findIndex((t=>!(0,n.k)(t[e.axis])));r.hi+=Math.max(0,a)}return r}if(o._sharedOptions){const t=s[0],n="function"===typeof t.getRange&&t.getRange(e);if(n){const t=a(s,e,i-n),r=a(s,e,i+n);return{lo:t.lo,hi:r.hi}}}}return{lo:0,hi:s.length-1}}function N(t,e,i,n,r){const o=t.getSortedVisibleDatasetMetas(),s=i[e];for(let a=0,l=o.length;a<l;++a){const{index:t,data:i}=o[a],{lo:l,hi:c}=I(o[a],e,s,r);for(let e=l;e<=c;++e){const r=i[e];r.skip||n(r,t,e)}}}function W(t,e,i,r,o){const s=[];if(!o&&!t.isPointInArea(e))return s;return N(t,i,e,(function(i,a,l){(o||(0,n.C)(i,t.chartArea,0))&&i.inRange(e.x,e.y,r)&&s.push({element:i,datasetIndex:a,index:l})}),!0),s}function V(t,e,i,n,r,o){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const r=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return N(t,i,e,(function(i,c,h){const u=i.inRange(e.x,e.y,r);if(n&&!u)return;const d=i.getCenterPoint(r);if(!(!!o||t.isPointInArea(d))&&!u)return;const f=a(e,d);f<l?(s=[{element:i,datasetIndex:c,index:h}],l=f):f===l&&s.push({element:i,datasetIndex:c,index:h})})),s}function U(t,e,i,r,o,s){return s||t.isPointInArea(e)?"r"!==i||r?V(t,e,i,r,o,s):function(t,e,i,r){let o=[];return N(t,i,e,(function(t,i,s){const{startAngle:a,endAngle:l}=t.getProps(["startAngle","endAngle"],r),{angle:c}=(0,n.D)(t,{x:e.x,y:e.y});(0,n.p)(c,a,l)&&o.push({element:t,datasetIndex:i,index:s})})),o}(t,e,i,o):[]}function $(t,e,i,n,r){const o=[],s="x"===i?"inXRange":"inYRange";let a=!1;return N(t,i,e,((t,n,l)=>{t[s]&&t[s](e[i],r)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,r))})),n&&!a?[]:o}var X={evaluateInteractionItems:N,modes:{index(t,e,i,r){const o=(0,n.z)(e,t),s=i.axis||"x",a=i.includeInvisible||!1,l=i.intersect?W(t,o,s,r,a):U(t,o,s,!1,r,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,i=t.data[e];i&&!i.skip&&c.push({element:i,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,i,r){const o=(0,n.z)(e,t),s=i.axis||"xy",a=i.includeInvisible||!1;let l=i.intersect?W(t,o,s,r,a):U(t,o,s,!1,r,a);if(l.length>0){const e=l[0].datasetIndex,i=t.getDatasetMeta(e).data;l=[];for(let t=0;t<i.length;++t)l.push({element:i[t],datasetIndex:e,index:t})}return l},point:(t,e,i,r)=>W(t,(0,n.z)(e,t),i.axis||"xy",r,i.includeInvisible||!1),nearest(t,e,i,r){const o=(0,n.z)(e,t),s=i.axis||"xy",a=i.includeInvisible||!1;return U(t,o,s,i.intersect,r,a)},x:(t,e,i,r)=>$(t,(0,n.z)(e,t),"x",i.intersect,r),y:(t,e,i,r)=>$(t,(0,n.z)(e,t),"y",i.intersect,r)}};const Y=["left","top","right","bottom"];function G(t,e){return t.filter((t=>t.pos===e))}function K(t,e){return t.filter((t=>-1===Y.indexOf(t.pos)&&t.box.axis===e))}function q(t,e){return t.sort(((t,i)=>{const n=e?i:t,r=e?t:i;return n.weight===r.weight?n.index-r.index:n.weight-r.weight}))}function Q(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:r}=i;if(!t||!Y.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:s&&e.availableWidth,a.height=r):(a.width=n,a.height=c?c*r:s&&e.availableHeight)}return i}function Z(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function J(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 tt(t,e,i,r){const{pos:o,box:s}=i,a=t.maxPadding;if(!(0,n.i)(o)){i.size&&(t[o]-=i.size);const e=r[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?s.height:s.width),i.size=e.size/e.count,t[o]+=i.size}s.getPadding&&J(a,s.getPadding());const l=Math.max(0,e.outerWidth-Z(a,t,"left","right")),c=Math.max(0,e.outerHeight-Z(a,t,"top","bottom")),h=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,i.horizontal?{same:h,other:u}:{same:u,other:h}}function et(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function it(t,e,i,n){const r=[];let o,s,a,l,c,h;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,et(a.horizontal,e));const{same:s,other:u}=tt(e,i,a,n);c|=s&&r.length,h=h||u,l.fullSize||r.push(a)}return c&&it(r,e,i,n)||h}function nt(t,e,i,n,r){t.top=i,t.left=e,t.right=e+n,t.bottom=i+r,t.width=n,t.height=r}function rt(t,e,i,r){const o=i.padding;let{x:s,y:a}=e;for(const l of t){const t=l.box,c=r[l.stack]||{count:1,placed:0,weight:1},h=l.stackWeight/c.weight||1;if(l.horizontal){const r=e.w*h,s=c.size||t.height;(0,n.h)(c.start)&&(a=c.start),t.fullSize?nt(t,o.left,a,i.outerWidth-o.right-o.left,s):nt(t,e.left+c.placed,a,r,s),c.start=a,c.placed+=r,a=t.bottom}else{const r=e.h*h,a=c.size||t.width;(0,n.h)(c.start)&&(s=c.start),t.fullSize?nt(t,s,o.top,a,i.outerHeight-o.bottom-o.top):nt(t,s,e.top+c.placed,a,r),c.start=s,c.placed+=r,s=t.right}}e.x=s,e.y=a}var ot={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,r){if(!t)return;const o=(0,n.E)(t.options.layout.padding),s=Math.max(e-o.width,0),a=Math.max(i-o.height,0),l=function(t){const e=function(t){const e=[];let i,n,r,o,s,a;for(i=0,n=(t||[]).length;i<n;++i)r=t[i],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:i,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),i=q(e.filter((t=>t.box.fullSize)),!0),n=q(G(e,"left"),!0),r=q(G(e,"right")),o=q(G(e,"top"),!0),s=q(G(e,"bottom")),a=K(e,"x"),l=K(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:G(e,"chartArea"),vertical:n.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),c=l.vertical,h=l.horizontal;(0,n.F)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const u=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},o);J(f,(0,n.E)(r));const p=Object.assign({maxPadding:f,w:s,h:a,x:o.left,y:o.top},o),g=Q(c.concat(h),d);it(l.fullSize,p,d,g),it(c,p,d,g),it(h,p,d,g)&&it(c,p,d,g),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),rt(l.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,rt(l.rightAndBottom,p,d,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,n.F)(l.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class st{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 at extends st{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const lt="$chartjs",ct={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ht=t=>null===t||""===t;const ut=!!n.K&&{passive:!0};function dt(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,ut)}function ft(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function pt(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ft(i.addedNodes,n),e=e&&!ft(i.removedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}function gt(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ft(i.removedNodes,n),e=e&&!ft(i.addedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}const bt=new Map;let mt=0;function xt(){const t=window.devicePixelRatio;t!==mt&&(mt=t,bt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function vt(t,e,i){const r=t.canvas,o=r&&(0,n.I)(r);if(!o)return;const s=(0,n.L)(((t,e)=>{const n=o.clientWidth;i(t,e),n<o.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||s(i,n)}));return a.observe(o),function(t,e){bt.size||window.addEventListener("resize",xt),bt.set(t,e)}(t,s),a}function yt(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){bt.delete(t),bt.size||window.removeEventListener("resize",xt)}(t)}function _t(t,e,i){const r=t.canvas,o=(0,n.L)((e=>{null!==t.ctx&&i(function(t,e){const i=ct[t.type]||t.type,{x:r,y:o}=(0,n.z)(t,e);return{type:i,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,ut)}(r,e,o),o}class wt extends st{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[lt]={initial:{height:r,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",ht(o)){const e=(0,n.J)(t,"width");void 0!==e&&(t.width=e)}if(ht(r))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[lt])return!1;const i=e[lt].initial;["height","width"].forEach((t=>{const r=i[t];(0,n.k)(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=i.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[lt],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:pt,detach:gt,resize:vt}[e]||_t;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:yt,detach:yt,resize:yt}[e]||dt)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return(0,n.G)(t,e,i,r)}isAttached(t){const e=t&&(0,n.I)(t);return!(!e||!e.isConnected)}}class kt{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 At(t,e){const i=t.options.ticks,r=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),r=t._maxLength/i;return Math.floor(Math.min(n,r))}(t),o=Math.min(i.maxTicksLimit||r,r),s=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],a=s.length,l=s[0],c=s[a-1],h=[];if(a>o)return function(t,e,i,n){let r,o=0,s=i[0];for(n=Math.ceil(n),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=i[o*n])}(e,h,s,a/o),h;const u=function(t,e,i){const r=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),o=e.length/i;if(!r)return Math.max(o,1);const s=(0,n.N)(r);for(let n=0,a=s.length-1;n<a;n++){const t=s[n];if(t>o)return t}return Math.max(o,1)}(s,e,o);if(a>0){let t,i;const r=a>1?Math.round((c-l)/(a-1)):null;for(Mt(e,h,u,(0,n.k)(r)?0:l-r,l),t=0,i=a-1;t<i;t++)Mt(e,h,u,s[t],s[t+1]);return Mt(e,h,u,c,(0,n.k)(r)?e.length:c+r),h}return Mt(e,h,u),h}function Mt(t,e,i,r,o){const s=(0,n.v)(r,0),a=Math.min((0,n.v)(o,t.length),t.length);let l,c,h,u=0;for(i=Math.ceil(i),o&&(l=o-r,i=l/Math.floor(l/i)),h=s;h<0;)u++,h=Math.round(s+u*i);for(c=Math.max(s,0);c<a;c++)c===h&&(e.push(t[c]),u++,h=Math.round(s+u*i))}const St=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,Et=(t,e)=>Math.min(e||t,t);function Ct(t,e){const i=[],n=t.length/e,r=t.length;let o=0;for(;o<r;o+=n)i.push(t[Math.floor(o)]);return i}function Ot(t,e,i){const n=t.ticks.length,r=Math.min(e,n-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(i&&(l=1===n?Math.max(c-o,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<o-a||c>s+a)))return c}function Pt(t){return t.drawTicks?t.tickLength:0}function Dt(t,e){if(!t.display)return 0;const i=(0,n.a0)(t.font,e),r=(0,n.E)(t.padding);return((0,n.b)(t.text)?t.text.length:1)*i.lineHeight+r.height}function Bt(t,e,i){let r=(0,n.a1)(t);return(i&&"right"!==e||!i&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class Rt extends kt{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:r}=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),r=(0,n.O)(r,Number.NEGATIVE_INFINITY),{min:(0,n.O)(t,i),max:(0,n.O)(e,r),minDefined:(0,n.g)(t),maxDefined:(0,n.g)(e)}}getMinMax(t){let e,{min:i,max:r,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:i,max:r};const a=this.getMatchingVisibleMetas();for(let n=0,l=a.length;n<l;++n)e=a[n].controller.getMinMax(this,t),o||(i=Math.min(i,e.min)),s||(r=Math.max(r,e.max));return i=s&&i>r?r:i,r=o&&i>r?i:r,{min:(0,n.O)(i,(0,n.O)(r,i)),max:(0,n.O)(r,(0,n.O)(i,r))}}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:r,grace:o,ticks:s}=this.options,a=s.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,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Ct(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=At(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&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,r,o;for(i=0,r=t.length;i<r;i++)o=t[i],o.label=(0,n.Q)(e.callback,[o.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=Et(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let s,a,l,c=r;if(!this._isVisible()||!e.display||r>=o||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=(0,n.S)(this.chart.width-u,0,this.maxWidth);s=t.offset?this.maxWidth/i:f/(i-1),u+6>s&&(s=f/(i-(t.offset?.5:1)),a=this.maxHeight-Pt(t.grid)-e.padding-Dt(t.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),c=(0,n.U)(Math.min(Math.asin((0,n.S)((h.highest.height+6)/s,-1,1)),Math.asin((0,n.S)(a/l,-1,1))-Math.asin((0,n.S)(d/l,-1,1)))),c=Math.max(r,Math.min(o,c))),this.labelRotation=c}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:r,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=Dt(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=Pt(o)+s):(t.height=this.maxHeight,t.width=Pt(o)+s),i.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:s}=this._getLabelSizes(),l=2*i.padding,c=(0,n.t)(this.labelRotation),h=Math.cos(c),u=Math.sin(c);if(a){const e=i.mirror?0:u*o.width+h*s.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=i.mirror?0:h*o.width+u*s.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,r,u,h)}}this._handleMargins(),a?(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:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===r?u=e.width:"end"===r?h=t.width:"inner"!==r&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===r?(i=0,n=t.height):"end"===r&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_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=Ct(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:r,_longestTextCache:o}=this,s=[],a=[],l=Math.floor(e/Et(e,i));let c,h,u,d,f,p,g,b,m,x,v,y=0,_=0;for(c=0;c<e;c+=l){if(d=t[c].label,f=this._resolveTickFontOptions(c),r.font=p=f.string,g=o[p]=o[p]||{data:{},gc:[]},b=f.lineHeight,m=x=0,(0,n.k)(d)||(0,n.b)(d)){if((0,n.b)(d))for(h=0,u=d.length;h<u;++h)v=d[h],(0,n.k)(v)||(0,n.b)(v)||(m=(0,n.V)(r,g.data,g.gc,m,v),x+=b)}else m=(0,n.V)(r,g.data,g.gc,m,d),x=b;s.push(m),a.push(x),y=Math.max(m,y),_=Math.max(x,_)}!function(t,e){(0,n.F)(t,(t=>{const i=t.gc,n=i.length/2;let r;if(n>e){for(r=0;r<n;++r)delete t.data[i[r]];i.splice(0,n)}}))}(o,e);const w=s.indexOf(y),k=a.indexOf(_),A=t=>({width:s[t]||0,height:a[t]||0});return{first:A(0),last:A(e-1),widest:A(w),highest:A(k),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(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(),r=this,(0,n.j)(i,{scale:r,type:"scale"})));var i,r}_tickSize(){const t=this.options.ticks,e=(0,n.t)(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,r=this.options,{grid:o,position:s,border:a}=r,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),u=Pt(o),d=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,b=function(t){return(0,n.X)(i,t,p)};let m,x,v,y,_,w,k,A,M,S,E,C;if("top"===s)m=b(this.bottom),w=this.bottom-u,A=m-g,S=b(t.top)+g,C=t.bottom;else if("bottom"===s)m=b(this.top),S=t.top,C=b(t.bottom)-g,w=m+g,A=this.top+u;else if("left"===s)m=b(this.right),_=this.right-u,k=m-g,M=b(t.left)+g,E=t.right;else if("right"===s)m=b(this.left),M=t.left,E=b(t.right)-g,_=m+g,k=this.left+u;else if("x"===e){if("center"===s)m=b((t.top+t.bottom)/2+.5);else if((0,n.i)(s)){const t=Object.keys(s)[0],e=s[t];m=b(this.chart.scales[t].getPixelForValue(e))}S=t.top,C=t.bottom,w=m+g,A=w+u}else if("y"===e){if("center"===s)m=b((t.left+t.right)/2);else if((0,n.i)(s)){const t=Object.keys(s)[0],e=s[t];m=b(this.chart.scales[t].getPixelForValue(e))}_=m-g,k=_-u,M=t.left,E=t.right}const O=(0,n.v)(r.ticks.maxTicksLimit,h),P=Math.max(1,Math.ceil(h/O));for(x=0;x<h;x+=P){const t=this.getContext(x),e=o.setContext(t),r=a.setContext(t),s=e.lineWidth,h=e.color,u=r.dash||[],f=r.dashOffset,p=e.tickWidth,g=e.tickColor,b=e.tickBorderDash||[],m=e.tickBorderDashOffset;v=Ot(this,x,l),void 0!==v&&(y=(0,n.X)(i,v,s),c?_=k=M=E=y:w=A=S=C=y,d.push({tx1:_,ty1:w,tx2:k,ty2:A,x1:M,y1:S,x2:E,y2:C,width:s,color:h,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:g,tickBorderDash:b,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:r,ticks:o}=i,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:u}=o,d=Pt(i.grid),f=d+h,p=u?-h:f,g=-(0,n.t)(this.labelRotation),b=[];let m,x,v,y,_,w,k,A,M,S,E,C,O="middle";if("top"===r)w=this.bottom-p,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+p,k=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,_=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,_=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+f;else if((0,n.i)(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+f}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)_=(t.left+t.right)/2-f;else if((0,n.i)(r)){const t=Object.keys(r)[0],e=r[t];_=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===l?O="top":"end"===l&&(O="bottom"));const P=this._getLabelSizes();for(m=0,x=a.length;m<x;++m){v=a[m],y=v.label;const t=o.setContext(this.getContext(m));A=this.getPixelForTick(m)+o.labelOffset,M=this._resolveTickFontOptions(m),S=M.lineHeight,E=(0,n.b)(y)?y.length:1;const e=E/2,i=t.color,l=t.textStrokeColor,h=t.textStrokeWidth;let d,f=k;if(s?(_=A,"inner"===k&&(f=m===x-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),C="top"===r?"near"===c||0!==g?-E*S+S/2:"center"===c?-P.highest.height/2-e*S+S:-P.highest.height+S/2:"near"===c||0!==g?S/2:"center"===c?P.highest.height/2-e*S:P.highest.height-E*S,u&&(C*=-1),0===g||t.showLabelBackdrop||(_+=S/2*Math.sin(g))):(w=A,C=(1-E)*S/2),t.showLabelBackdrop){const e=(0,n.E)(t.backdropPadding),i=P.heights[m],r=P.widths[m];let o=C-e.top,s=0-e.left;switch(O){case"middle":o-=i/2;break;case"bottom":o-=i}switch(k){case"center":s-=r/2;break;case"right":s-=r;break;case"inner":m===x-1?s-=r:m>0&&(s-=r/2)}d={left:s,top:o,width:r+e.width,height:i+e.height,color:t.backdropColor}}b.push({label:y,font:M,textOffset:C,options:{rotation:g,color:i,strokeColor:l,strokeWidth:h,textAlign:f,textBaseline:O,translation:[_,w],backdrop:d}})}return b}_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:r}}=this.options,o=t+r,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+r,"near"===i?a="left":"center"===i?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+r,"near"===i?a="right":"center"===i?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_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:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(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(r=0,o=n.length;r<o;++r){const t=n[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({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:r}}=this,o=i.setContext(this.getContext()),s=i.display?o.width:0;if(!s)return;const a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,u,d;this.isHorizontal()?(c=(0,n.X)(t,this.left,s)-s/2,h=(0,n.X)(t,this.right,a)+a/2,u=d=l):(u=(0,n.X)(t,this.top,s)-s/2,d=(0,n.X)(t,this.bottom,a)+a/2,c=h=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,u),e.lineTo(h,d),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 r=this.getLabelItems(t);for(const o of r){const t=o.options,i=o.font,r=o.label,s=o.textOffset;(0,n.Z)(e,r,0,s,i,t)}i&&(0,n.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const o=(0,n.a0)(i.font),s=(0,n.E)(i.padding),a=i.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||(0,n.i)(e)?(l+=s.bottom,(0,n.b)(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=s.top;const{titleX:c,titleY:h,maxWidth:u,rotation:d}=function(t,e,i,r){const{top:o,left:s,bottom:a,right:l,chart:c}=t,{chartArea:h,scales:u}=c;let d,f,p,g=0;const b=a-o,m=l-s;if(t.isHorizontal()){if(f=(0,n.a2)(r,s,l),(0,n.i)(i)){const t=Object.keys(i)[0],n=i[t];p=u[t].getPixelForValue(n)+b-e}else p="center"===i?(h.bottom+h.top)/2+b-e:St(t,i,e);d=l-s}else{if((0,n.i)(i)){const t=Object.keys(i)[0],n=i[t];f=u[t].getPixelForValue(n)-m+e}else f="center"===i?(h.left+h.right)/2-m+e:St(t,i,e);p=(0,n.a2)(r,a,o),g="left"===i?-n.H:n.H}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}(this,l,e,a);(0,n.Z)(t,i.text,0,0,o,{color:i.color,maxWidth:u,rotation:d,textAlign:Bt(a,e,r),textBaseline:"middle",translation:[c,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),r=(0,n.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Rt.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,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 r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[i]!==this.id||t&&o.type!==t||n.push(o)}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 Tt{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 r=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,function(t,e,i){const r=(0,n.a4)(Object.create(null),[i?n.d.get(i):{},n.d.get(e),t.defaults]);n.d.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const r=i.split("."),o=r.pop(),s=[t].concat(r).join("."),a=e[i].split("."),l=a.pop(),c=a.join(".");n.d.route(s,o,c,l)}))}(e,t.defaultRoutes);t.descriptors&&n.d.describe(e,t.descriptors)}(t,s,i),this.override&&n.d.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in n.d[r]&&(delete n.d[r][i],this.override&&delete n.a3[i])}}class Lt{constructor(){this.controllers=new Tt(_,"datasets",!0),this.elements=new Tt(kt,"elements"),this.plugins=new Tt(Object,"plugins"),this.scales=new Tt(Rt,"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 r=i||this._getRegistryForType(e);i||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):(0,n.F)(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const r=(0,n.a5)(t);(0,n.Q)(i["before"+r],[],i),e[t](i),(0,n.Q)(i["after"+r],[],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 Ft=new Lt;class zt{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 r=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(r,t,e,i);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,e,i,r){r=r||{};for(const o of t){const t=o.plugin,s=t[i],a=[e,r,o.options];if(!1===(0,n.Q)(s,a,t)&&r.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,r=(0,n.v)(i.options&&i.options.plugins,{}),o=function(t){const e={},i=[],n=Object.keys(Ft.plugins.items);for(let o=0;o<n.length;o++)i.push(Ft.getPlugin(n[o]));const r=t.plugins||[];for(let o=0;o<r.length;o++){const t=r[o];-1===i.indexOf(t)&&(i.push(t),e[t.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==r||e?function(t,{plugins:e,localIds:i},n,r){const o=[],s=t.getContext();for(const a of e){const e=a.id,l=jt(n[e],r);null!==l&&o.push({plugin:a,options:Ht(t.config,{plugin:a,local:i[e]},l,s)})}return o}(t,o,r,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 jt(t,e){return e||!1!==t?!0===t?{}:t:null}function Ht(t,{plugin:e,local:i},n,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(n,o);return i&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function It(t,e){const i=n.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Nt(t){if("x"===t||"y"===t||"r"===t)return t}function Wt(t,...e){if(Nt(t))return t;for(const n of e){const e=n.axis||("top"===(i=n.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&Nt(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vt(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function Ut(t,e){const i=n.a3[t.type]||{scales:{}},r=e.scales||{},o=It(t.type,e),s=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!(0,n.i)(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=Wt(e,a,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 Vt(t,"x",i[0])||Vt(t,"y",i[0])}return{}}(e,t),n.d.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(l,o),h=i.scales||{};s[e]=(0,n.ab)(Object.create(null),[{axis:l},a,h[l],h[c]])})),t.data.datasets.forEach((i=>{const o=i.type||t.type,a=i.indexAxis||It(o,e),l=(n.a3[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),o=i[e+"AxisID"]||e;s[o]=s[o]||Object.create(null),(0,n.ab)(s[o],[{axis:e},r[o],l[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];(0,n.ab)(e,[n.d.scales[e.type],n.d.scale])})),s}function $t(t){const e=t.options||(t.options={});e.plugins=(0,n.v)(e.plugins,{}),e.scales=Ut(t,e)}function Xt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Yt=new Map,Gt=new Set;function Kt(t,e){let i=Yt.get(t);return i||(i=e(),Yt.set(t,i),Gt.add(i)),i}const qt=(t,e,i)=>{const r=(0,n.f)(e,i);void 0!==r&&t.add(r)};class Qt{constructor(t){this._config=function(t){return(t=t||{}).data=Xt(t.data),$t(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=Xt(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(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Kt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Kt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Kt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Kt(`${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:r,type:o}=this,s=this._cachedScopes(t,i),a=s.get(e);if(a)return a;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>qt(l,t,e)))),e.forEach((t=>qt(l,r,t))),e.forEach((t=>qt(l,n.a3[o]||{},t))),e.forEach((t=>qt(l,n.d,t))),e.forEach((t=>qt(l,n.a6,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Gt.has(e)&&s.set(e,c),c}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,r=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=Zt(this._resolverCache,t,r);let l=s;if(function(t,e){const{isScriptable:i,isIndexable:r}=(0,n.aa)(t);for(const o of e){const e=i(o),s=r(o),a=(s||e)&&t[o];if(e&&((0,n.a7)(a)||Jt(a))||s&&(0,n.b)(a))return!0}return!1}(s,e)){o.$shared=!1,i=(0,n.a7)(i)?i():i;const e=this.createResolver(t,i,a);l=(0,n.a8)(s,i,e)}for(const n of e)o[n]=l[n];return o}createResolver(t,e,i=[""],r){const{resolver:o}=Zt(this._resolverCache,t,i);return(0,n.i)(e)?(0,n.a8)(o,e,void 0,r):o}}function Zt(t,e,i){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=i.join();let s=r.get(o);if(!s){s={resolver:(0,n.a9)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},r.set(o,s)}return s}const Jt=t=>(0,n.i)(t)&&Object.getOwnPropertyNames(t).some((e=>(0,n.a7)(t[e])));const te=["top","bottom","left","right","chartArea"];function ee(t,e){return"top"===t||"bottom"===t||-1===te.indexOf(t)&&"x"===e}function ie(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function ne(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,n.Q)(i&&i.onComplete,[t],e)}function re(t){const e=t.chart,i=e.options.animation;(0,n.Q)(i&&i.onProgress,[t],e)}function oe(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 se={},ae=t=>{const e=oe(t);return Object.values(se).filter((t=>t.canvas===e)).pop()};function le(t,e,i){const n=Object.keys(t);for(const r of n){const n=+r;if(n>=e){const o=t[r];delete t[r],(i>0||n>e)&&(t[n+i]=o)}}}class ce{static defaults=n.d;static instances=se;static overrides=n.a3;static registry=Ft;static version="4.5.1";static getChart=ae;static register(...t){Ft.add(...t),he()}static unregister(...t){Ft.remove(...t),he()}constructor(t,e){const i=this.config=new Qt(e),r=oe(t),s=ae(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,n.M)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?at:wt}(r)),this.platform.updateConfig(i);const l=this.platform.acquireContext(r,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,u=c&&c.width;this.id=(0,n.ac)(),this.ctx=l,this.canvas=c,this.width=u,this.height=h,this._options=a,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 zt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,n.ad)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],se[this.id]=this,l&&c?(o.listen(this,"complete",ne),o.listen(this,"progress",re),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:r,_aspectRatio:o}=this;return(0,n.k)(t)?e&&o?o:r?i/r: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 Ft}_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 o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,r=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,(0,n.ae)(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),(0,n.Q)(i.onResize,[this,s],this),this.attached&&this._doResize(l)&&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,r=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const i=e[t],n=Wt(t,i),r="r"===n,o="x"===n;return{options:i,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),(0,n.F)(o,(e=>{const o=e.options,s=o.id,a=Wt(s,o),l=(0,n.v)(o.type,e.dtype);void 0!==o.position&&ee(o.position,a)===ee(e.dposition)||(o.position=e.dposition),r[s]=!0;let c=null;if(s in i&&i[s].type===l)c=i[s];else{c=new(Ft.getScale(l))({id:s,type:l,ctx:this.ctx,chart:this}),i[c.id]=c}c.init(o,t)})),(0,n.F)(r,((t,e)=>{t||delete i[e]})),(0,n.F)(i,(t=>{ot.configure(this,t,t.options),ot.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(ie("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,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){const r=e[i];let o=this.getDatasetMeta(i);const s=r.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=s,o.indexAxis=r.indexAxis||It(s,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const e=Ft.getController(s),{datasetElementType:r,dataElementType:a}=n.d.datasets[s];Object.assign(e,{dataElementType:Ft.getElement(a),datasetElementType:r&&Ft.getElement(r)}),o.controller=new e(this,i),t.push(o.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()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let n=0,c=this.data.datasets.length;n<c;n++){const{controller:t}=this.getDatasetMeta(n),e=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(e),s=Math.max(+t.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),r||(0,n.F)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ie("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,n.F)(this.scales,(t=>{ot.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:r}of e){le(t,n,"_removeElements"===i?-r:r)}}_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(",")))),r=i(0);for(let o=1;o<e;o++)if(!(0,n.ag)(r,i(o)))return;return Array.from(r).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;ot.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})&&(o.has(this)?this.attached&&!o.running(this)&&o.start(this):(this.draw(),ne({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,r;for(n=0,r=e.length;n<r;++n){const r=e[n];t&&!r.visible||i.push(r)}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},r=(0,n.ah)(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&(0,n.Y)(e,r),t.controller.draw(),r&&(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 r=X.modes[e];return"function"===typeof r?r(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 r=i?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);(0,n.h)(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(o,{visible:i}),this.update((e=>e.datasetIndex===t?r: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(),o.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 se[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},r=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,n.F)(this.options.events,(t=>i(t,r)))}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])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{n("attach",s),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),i("attach",s)},e.isAttached(this.canvas)?s():o()}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 r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.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,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=i?t:r(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),s.length&&n.mode&&this.updateHoverStyle(s,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 r=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(r||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:r=[],options:o}=this,s=e,a=this._getActiveElements(t,r,i,s),l=(0,n.aj)(t),c=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,l);i&&(this._lastEvent=null,(0,n.Q)(o.onHover,[t,a,this],this),l&&(0,n.Q)(o.onClick,[t,a,this],this));const h=!(0,n.ai)(a,r);return(h||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,h}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,n)}}function he(){return(0,n.F)(ce.instances,(t=>t._plugins.invalidate()))}function ue(t,e,i,r){const o=(s=t.options.borderRadius,(0,n.am)(s,["outerStart","outerEnd","innerStart","innerEnd"]));var s;const a=(i-e)/2,l=Math.min(a,r*e/2),c=t=>{const e=(i-Math.min(a,t))*r/2;return(0,n.S)(t,0,Math.min(a,e))};return{outerStart:c(o.outerStart),outerEnd:c(o.outerEnd),innerStart:(0,n.S)(o.innerStart,0,l),innerEnd:(0,n.S)(o.innerEnd,0,l)}}function de(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function fe(t,e,i,r,o,s){const{x:a,y:l,startAngle:c,pixelMargin:h,innerRadius:u}=e,d=Math.max(e.outerRadius+r+i-h,0),f=u>0?u+r+i+h:0;let p=0;const g=o-c;if(r){const t=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(g-(0!==t?g*t/(t+r):g))/2}const b=(g-Math.max(.001,g*d-i/n.P)/d)/2,m=c+b+p,x=o-b-p,{outerStart:v,outerEnd:y,innerStart:_,innerEnd:w}=ue(e,f,d,x-m),k=d-v,A=d-y,M=m+v/k,S=x-y/A,E=f+_,C=f+w,O=m+_/E,P=x-w/C;if(t.beginPath(),s){const e=(M+S)/2;if(t.arc(a,l,d,M,e),t.arc(a,l,d,e,S),y>0){const e=de(A,S,a,l);t.arc(e.x,e.y,y,S,x+n.H)}const i=de(C,x,a,l);if(t.lineTo(i.x,i.y),w>0){const e=de(C,P,a,l);t.arc(e.x,e.y,w,x+n.H,P+Math.PI)}const r=(x-w/f+(m+_/f))/2;if(t.arc(a,l,f,x-w/f,r,!0),t.arc(a,l,f,r,m+_/f,!0),_>0){const e=de(E,O,a,l);t.arc(e.x,e.y,_,O+Math.PI,m-n.H)}const o=de(k,m,a,l);if(t.lineTo(o.x,o.y),v>0){const e=de(k,M,a,l);t.arc(e.x,e.y,v,m-n.H,M)}}else{t.moveTo(a,l);const e=Math.cos(M)*d+a,i=Math.sin(M)*d+l;t.lineTo(e,i);const n=Math.cos(S)*d+a,r=Math.sin(S)*d+l;t.lineTo(n,r)}t.closePath()}function pe(t,e,i,r,o){const{fullCircles:s,startAngle:a,circumference:l,options:c}=e,{borderWidth:h,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=c,g="inner"===c.borderAlign;if(!h)return;t.setLineDash(d||[]),t.lineDashOffset=f,g?(t.lineWidth=2*h,t.lineJoin=u||"round"):(t.lineWidth=h,t.lineJoin=u||"bevel");let b=e.endAngle;if(s){fe(t,e,i,r,b,o);for(let e=0;e<s;++e)t.stroke();isNaN(l)||(b=a+(l%n.T||n.T))}g&&function(t,e,i){const{startAngle:r,pixelMargin:o,x:s,y:a,outerRadius:l,innerRadius:c}=e;let h=o/l;t.beginPath(),t.arc(s,a,l,r-h,i+h),c>o?(h=o/c,t.arc(s,a,c,i+h,r-h,!0)):t.arc(s,a,o,i+n.H,r-n.H),t.closePath(),t.clip()}(t,e,b),c.selfJoin&&b-a>=n.P&&0===p&&"miter"!==u&&function(t,e,i){const{startAngle:r,x:o,y:s,outerRadius:a,innerRadius:l,options:c}=e,{borderWidth:h,borderJoinStyle:u}=c,d=Math.min(h/a,(0,n.al)(r-i));if(t.beginPath(),t.arc(o,s,a-h/2,r+d/2,i-d/2),l>0){const e=Math.min(h/l,(0,n.al)(r-i));t.arc(o,s,l+h/2,i-e/2,r+e/2,!0)}else{const e=Math.min(h/2,a*(0,n.al)(r-i));if("round"===u)t.arc(o,s,e,i-n.P/2,r+n.P/2,!0);else if("bevel"===u){const a=2*e*e,l=-a*Math.cos(i+n.P/2)+o,c=-a*Math.sin(i+n.P/2)+s,h=a*Math.cos(r+n.P/2)+o,u=a*Math.sin(r+n.P/2)+s;t.lineTo(l,c),t.lineTo(h,u)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,b),s||(fe(t,e,i,r,b,o),t.stroke())}class ge extends kt{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.getProps(["x","y"],i),{angle:o,distance:s}=(0,n.D)(r,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,f=(0,n.v)(u,l-a),p=(0,n.p)(o,a,l)&&a!==l,g=f>=n.T||p,b=(0,n.ak)(s,c+d,h+d);return g&&b}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:r,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(n+r)/2,h=(o+s+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,r=(e.offset||0)/4,o=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>n.T?Math.floor(i/n.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const l=r*(1-Math.sin(Math.min(n.P,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,r,o){const{fullCircles:s,startAngle:a,circumference:l}=e;let c=e.endAngle;if(s){fe(t,e,i,r,c,o);for(let e=0;e<s;++e)t.fill();isNaN(l)||(c=a+(l%n.T||n.T))}fe(t,e,i,r,c,o),t.fill()}(t,this,l,o,s),pe(t,this,l,o,s),t.restore()}}function be(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 me(t,e,i){t.lineTo(i.x,i.y)}function xe(t,e,i={}){const n=t.length,{start:r=0,end:o=n-1}=i,{start:s,end:a}=e,l=Math.max(r,s),c=Math.min(o,a),h=r<s&&o<s||r>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function ve(t,e,i,r){const{points:o,options:s}=e,{count:a,start:l,loop:c,ilen:h}=xe(o,i,r),u=function(t){return t.stepped?n.at:t.tension||"monotone"===t.cubicInterpolationMode?n.au:me}(s);let d,f,p,{move:g=!0,reverse:b}=r||{};for(d=0;d<=h;++d)f=o[(l+(b?h-d:d))%a],f.skip||(g?(t.moveTo(f.x,f.y),g=!1):u(t,p,f,b,s.stepped),p=f);return c&&(f=o[(l+(b?h:0))%a],u(t,p,f,b,s.stepped)),!!c}function ye(t,e,i,n){const r=e.points,{count:o,start:s,ilen:a}=xe(r,i,n),{move:l=!0,reverse:c}=n||{};let h,u,d,f,p,g,b=0,m=0;const x=t=>(s+(c?a-t:t))%o,v=()=>{f!==p&&(t.lineTo(b,p),t.lineTo(b,f),t.lineTo(b,g))};for(l&&(u=r[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=r[x(h)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),b=(m*b+e)/++m):(v(),t.lineTo(e,i),d=n,m=0,f=p=i),g=i}v()}function _e(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i?ye:ve}const we="function"===typeof Path2D;function ke(t,e,i,n){we&&!e.options.segment?function(t,e,i,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,i,n)&&r.closePath()),be(t,e.options),t.stroke(r)}(t,e,i,n):function(t,e,i,n){const{segments:r,options:o}=e,s=_e(e);for(const a of r)be(t,o,a.style),t.beginPath(),s(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Ae extends kt{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 r=i.spanGaps?this._loop:this._fullLoop;(0,n.an)(this._points,i,t,r,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,r=t[e],o=this.points,s=(0,n.ap)(this,{property:e,start:r,end:r});if(!s.length)return;const a=[],l=function(t){return t.stepped?n.aq:t.tension||"monotone"===t.cubicInterpolationMode?n.ar:n.as}(i);let c,h;for(c=0,h=s.length;c<h;++c){const{start:n,end:h}=s[c],u=o[n],d=o[h];if(u===d){a.push(u);continue}const f=l(u,d,Math.abs((r-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return _e(this)(t,this,e,i)}path(t,e,i){const n=this.segments,r=_e(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const s of n)o&=r(t,this,s,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),ke(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Me(t,e,i,n){const r=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<r.radius+r.hitRadius}class Se extends kt{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:r,y:o}=this.getProps(["x","y"],i);return Math.pow(t-r,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Me(this,t,"x",e)}inYRange(t,e){return Me(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!(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}}function Ee(t,e){const{x:i,y:n,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=s/2,a=Math.min(i,r),l=Math.max(i,r),c=n-u,h=n+u):(u=o/2,a=i-u,l=i+u,c=Math.min(n,r),h=Math.max(n,r)),{left:a,top:c,right:l,bottom:h}}function Ce(t,e,i,r){return t?0:(0,n.S)(e,i,r)}function Oe(t){const e=Ee(t),i=e.right-e.left,r=e.bottom-e.top,o=function(t,e,i){const r=t.options.borderWidth,o=t.borderSkipped,s=(0,n.ax)(r);return{t:Ce(o.top,s.top,0,i),r:Ce(o.right,s.right,0,e),b:Ce(o.bottom,s.bottom,0,i),l:Ce(o.left,s.left,0,e)}}(t,i/2,r/2),s=function(t,e,i){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,s=(0,n.ay)(o),a=Math.min(e,i),l=t.borderSkipped,c=r||(0,n.i)(o);return{topLeft:Ce(!c||l.top||l.left,s.topLeft,0,a),topRight:Ce(!c||l.top||l.right,s.topRight,0,a),bottomLeft:Ce(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:Ce(!c||l.bottom||l.right,s.bottomRight,0,a)}}(t,i/2,r/2);return{outer:{x:e.left,y:e.top,w:i,h:r,radius:s},inner:{x:e.left+o.l,y:e.top+o.t,w:i-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}function Pe(t,e,i,r){const o=null===e,s=null===i,a=t&&!(o&&s)&&Ee(t,r);return a&&(o||(0,n.ak)(e,a.left,a.right))&&(s||(0,n.ak)(i,a.top,a.bottom))}function De(t,e){t.rect(e.x,e.y,e.w,e.h)}function Be(t,e,i={}){const n=t.x!==i.x?-e:0,r=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,s=(t.y+t.h!==i.y+i.h?e:0)-r;return{x:t.x+n,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}class Re extends kt{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:o,outer:s}=Oe(this),a=(l=s.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?n.aw:De;var l;t.save(),s.w===o.w&&s.h===o.h||(t.beginPath(),a(t,Be(s,e,o)),t.clip(),a(t,Be(o,-e,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Be(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return Pe(this,t,e,i)}inXRange(t,e){return Pe(this,t,null,e)}inYRange(t,e){return Pe(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+n)/2:e,y:r?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var Te=Object.freeze({__proto__:null,ArcElement:ge,BarElement:Re,LineElement:Ae,PointElement:Se});const Le=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Fe=Le.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function ze(t){return Le[t%Le.length]}function je(t){return Fe[t%Fe.length]}function He(t){let e=0;return(i,n)=>{const r=t.getDatasetMeta(n).controller;r instanceof B?e=function(t,e){return t.backgroundColor=t.data.map((()=>ze(e++))),e}(i,e):r instanceof T?e=function(t,e){return t.backgroundColor=t.data.map((()=>je(e++))),e}(i,e):r&&(e=function(t,e){return t.borderColor=ze(e),t.backgroundColor=je(e),++e}(i,e))}}function Ie(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Ne={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:r},options:o}=t.config,{elements:s}=o,a=Ie(r)||(l=o)&&(l.borderColor||l.backgroundColor)||s&&Ie(s)||"rgba(0,0,0,0.1)"!==n.d.borderColor||"rgba(0,0,0,0.1)"!==n.d.backgroundColor;var l;if(!i.forceOverride&&a)return;const c=He(t);r.forEach(c)}};function We(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Ve(t){t.data.datasets.forEach((t=>{We(t)}))}var Ue={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ve(t);const r=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:s,indexAxis:a}=e,l=t.getDatasetMeta(o),c=s||e.data;if("y"===(0,n.a)([a,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const i=e.length;let r,o=0;const{iScale:s}=t,{min:a,max:l,minDefined:c,maxDefined:h}=s.getUserBounds();return c&&(o=(0,n.S)((0,n.B)(e,s.axis,a).lo,0,i-1)),r=h?(0,n.S)((0,n.B)(e,s.axis,l).hi+1,o,i)-o:i-o,{start:o,count:r}}(l,c);if(d<=(i.threshold||4*r))return void We(e);let f;switch((0,n.k)(s)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":f=function(t,e,i,n,r){const o=r.samples||n;if(o>=i)return t.slice(e,e+i);const s=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,u,d,f,p,g=e;for(s[l++]=t[g],h=0;h<o-2;h++){let n,r=0,o=0;const c=Math.floor((h+1)*a)+1+e,b=Math.min(Math.floor((h+2)*a)+1,i)+e,m=b-c;for(n=c;n<b;n++)r+=t[n].x,o+=t[n].y;r/=m,o/=m;const x=Math.floor(h*a)+1+e,v=Math.min(Math.floor((h+1)*a)+1,i)+e,{x:y,y:_}=t[g];for(d=f=-1,n=x;n<v;n++)f=.5*Math.abs((y-r)*(t[n].y-_)-(y-t[n].x)*(o-_)),f>d&&(d=f,u=t[n],p=n);s[l++]=u,g=p}return s[l++]=t[c],s}(c,u,d,r,i);break;case"min-max":f=function(t,e,i,r){let o,s,a,l,c,h,u,d,f,p,g=0,b=0;const m=[],x=e+i-1,v=t[e].x,y=t[x].x-v;for(o=e;o<e+i;++o){s=t[o],a=(s.x-v)/y*r,l=s.y;const e=0|a;if(e===c)l<f?(f=l,h=o):l>p&&(p=l,u=o),g=(b*g+s.x)/++b;else{const i=o-1;if(!(0,n.k)(h)&&!(0,n.k)(u)){const e=Math.min(h,u),n=Math.max(h,u);e!==d&&e!==i&&m.push({...t[e],x:g}),n!==d&&n!==i&&m.push({...t[n],x:g})}o>0&&i!==d&&m.push(t[i]),m.push(s),c=e,b=0,f=p=l,h=u=d=o}}return m}(c,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=f}))},destroy(t){Ve(t)}};function $e(t,e,i,r){if(r)return;let o=e[t],s=i[t];return"angle"===t&&(o=(0,n.al)(o),s=(0,n.al)(s)),{property:t,start:o,end:s}}function Xe(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ye(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Ge(t,e){let i=[],r=!1;return(0,n.b)(t)?(r=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},r=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Xe(t,e,r);const s=r[t],a=r[e];null!==n?(o.push({x:s.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:s.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new Ae({points:i,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ke(t){return t&&!1!==t.fill}function qe(t,e,i){let r=t[e].fill;const o=[e];let s;if(!i)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!(0,n.g)(r))return r;if(s=t[r],!s)return!1;if(s.visible)return r;o.push(r),r=s.fill}return!1}function Qe(t,e,i){const r=function(t){const e=t.options,i=e.fill;let r=(0,n.v)(i&&i.target,i);void 0===r&&(r=!!e.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(t);if((0,n.i)(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return(0,n.g)(o)&&Math.floor(o)===o?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(r[0],e,o,i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ze(t,e,i){const n=[];for(let r=0;r<i.length;r++){const o=i[r],{first:s,last:a,point:l}=Je(o,e,"x");if(!(!l||s&&a))if(s)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function Je(t,e,i){const r=t.interpolate(e,i);if(!r)return{};const o=r[i],s=t.segments,a=t.points;let l=!1,c=!1;for(let h=0;h<s.length;h++){const t=s[h],e=a[t.start][i],r=a[t.end][i];if((0,n.ak)(o,e,r)){l=o===e,c=o===r;break}}return{first:l,last:c,point:r}}class ti{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:o,radius:s}=this;return e=e||{start:0,end:n.T},t.arc(r,o,s,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,r=t.angle;return{x:e+Math.cos(r)*n,y:i+Math.sin(r)*n,angle:r}}}function ei(t){const{chart:e,fill:i,line:r}=t;if((0,n.g)(i))return function(t,e){const i=t.getDatasetMeta(e),n=i&&t.isDatasetVisible(e);return n?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,r=[],o=n.segments,s=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let r=0;r<n.length;r++){const t=n[r];if(t.index===e)break;t.hidden||i.unshift(t.dataset)}return i}(e,i);a.push(Ge({x:null,y:e.bottom},n));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)Ze(r,s[e],a)}return new Ae({points:r,options:{}})}(t);if("shape"===i)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,r=e.options,o=e.getLabels().length,s=r.reverse?e.max:e.min,a=function(t,e,i){let r;return r="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:(0,n.i)(t)?t.value:e.getBaseValue(),r}(i,e,s),l=[];if(r.grid.circular){const t=e.getPointPositionForValue(0,s);return new ti({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let n=0;n<o;++n)l.push(e.getPointPositionForValue(n,a));return l}(t);return function(t){const{scale:e={},fill:i}=t,r=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:(0,n.i)(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if((0,n.g)(r)){const t=e.isHorizontal();return{x:t?r:null,y:t?null:r}}return null}(t)}(t);return o instanceof ti?o:Ge(o,r)}function ii(t,e,i){const r=ei(e),{chart:o,index:s,line:a,scale:l,axis:c}=e,h=a.options,u=h.fill,d=h.backgroundColor,{above:f=d,below:p=d}=u||{},g=o.getDatasetMeta(s),b=(0,n.ah)(o,g);r&&a.points.length&&((0,n.Y)(t,i),function(t,e){const{line:i,target:n,above:r,below:o,area:s,scale:a,clip:l}=e,c=i._loop?"angle":e.axis;t.save();let h=o;o!==r&&("x"===c?(ni(t,n,s.top),oi(t,{line:i,target:n,color:r,scale:a,property:c,clip:l}),t.restore(),t.save(),ni(t,n,s.bottom)):"y"===c&&(ri(t,n,s.left),oi(t,{line:i,target:n,color:o,scale:a,property:c,clip:l}),t.restore(),t.save(),ri(t,n,s.right),h=r));oi(t,{line:i,target:n,color:h,scale:a,property:c,clip:l}),t.restore()}(t,{line:a,target:r,above:f,below:p,area:i,scale:l,axis:c,clip:b}),(0,n.$)(t))}function ni(t,e,i){const{segments:n,points:r}=e;let o=!0,s=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,c=r[n],h=r[Xe(n,l,r)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function ri(t,e,i){const{segments:n,points:r}=e;let o=!0,s=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,c=r[n],h=r[Xe(n,l,r)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(i,c.y),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(i,h.y)}t.lineTo(i,e.first().y),t.closePath(),t.clip()}function oi(t,e){const{line:i,target:r,property:o,color:s,scale:a,clip:l}=e,c=function(t,e,i){const r=t.segments,o=t.points,s=e.points,a=[];for(const l of r){let{start:t,end:r}=l;r=Xe(t,r,o);const c=$e(i,o[t],o[r],l.loop);if(!e.segments){a.push({source:l,target:c,start:o[t],end:o[r]});continue}const h=(0,n.ap)(e,c);for(const e of h){const t=$e(i,s[e.start],s[e.end],e.loop),r=(0,n.az)(l,o,t);for(const n of r)a.push({source:n,target:e,start:{[i]:Ye(c,t,"start",Math.max)},end:{[i]:Ye(c,t,"end",Math.min)}})}}return a}(i,r,o);for(const{source:n,target:h,start:u,end:d}of c){const{style:{backgroundColor:e=s}={}}=n,c=!0!==r;t.save(),t.fillStyle=e,si(t,a,l,c&&$e(o,u,d)),t.beginPath();const f=!!i.pathSegment(t,n);let p;if(c){f?t.closePath():ai(t,r,d,o);const e=!!r.pathSegment(t,h,{move:f,reverse:!0});p=f&&e,p||ai(t,r,u,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function si(t,e,i,n){const r=e.chart.chartArea,{property:o,start:s,end:a}=n||{};if("x"===o||"y"===o){let e,n,l,c;"x"===o?(e=s,n=r.top,l=a,c=r.bottom):(e=r.left,n=s,l=r.right,c=a),t.beginPath(),i&&(e=Math.max(e,i.left),l=Math.min(l,i.right),n=Math.max(n,i.top),c=Math.min(c,i.bottom)),t.rect(e,n,l-e,c-n),t.clip()}}function ai(t,e,i,n){const r=e.interpolate(i,n);r&&t.lineTo(r.x,r.y)}var li={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,r=[];let o,s,a,l;for(s=0;s<n;++s)o=t.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Ae&&(l={visible:t.isDatasetVisible(s),index:s,fill:Qe(a,s,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,r.push(l);for(s=0;s<n;++s)l=r[s],l&&!1!==l.fill&&(l.fill=qe(r,s,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,r=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let s=r.length-1;s>=0;--s){const e=r[s].$filler;e&&(e.line.updateControlPoints(o,e.axis),n&&e.fill&&ii(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){const e=n[r].$filler;Ke(e)&&ii(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;Ke(n)&&"beforeDatasetDraw"===i.drawTime&&ii(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ci=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class hi extends kt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,n.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,r=(0,n.a0)(i.font),o=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ci(i,o);let c,h;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(s,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(s,r,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:r,maxWidth:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+s;let h=t;r.textAlign="left",r.textBaseline="middle";let u=-1,d=-c;return this.legendItems.forEach(((t,f)=>{const p=i+e/2+r.measureText(t.text).width;(0===f||l[l.length-1]+p+2*s>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,d+=c,u++),a[f]={left:0,top:d,row:u,width:p,height:n},l[l.length-1]+=p+s})),h}_fitCols(t,e,i,n){const{ctx:r,maxHeight:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=s,u=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:g,itemHeight:b}=function(t,e,i,n,r){const o=function(t,e,i,n){let r=t.text;r&&"string"!==typeof r&&(r=r.reduce(((t,e)=>t.length>e.length?t:e)));return e+i.size/2+n.measureText(r).width}(n,t,e,i),s=function(t,e,i){let n=t;"string"!==typeof e.text&&(n=ui(e,i));return n}(r,n,e.lineHeight);return{itemWidth:o,itemHeight:s}}(i,e,r,t,n);o>0&&d+b+2*s>c&&(h+=u+s,l.push({width:u,height:d}),f+=u+s,p++,u=d=0),a[o]={left:f,top:d,col:p,width:g,height:b},u=Math.max(u,g),d+=b+s})),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,s=(0,n.aA)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=(0,n.a2)(i,this.left+r,this.right-this.lineWidths[o]);for(const l of e)o!==l.row&&(o=l.row,a=(0,n.a2)(i,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+t+r,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+r}else{let o=0,a=(0,n.a2)(i,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const l of e)l.col!==o&&(o=l.col,a=(0,n.a2)(i,this.top+t+r,this.bottom-this.columnSizes[o].height)),l.top=a,l.left+=this.left+r,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,n.Y)(t,this),this._draw(),(0,n.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:s}=t,a=n.d.color,l=(0,n.aA)(t.rtl,this.left,this.width),c=(0,n.a0)(s.font),{padding:h}=s,u=c.size,d=u/2;let f;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:b}=ci(s,u),m=this.isHorizontal(),x=this._computeTitleHeight();f=m?{x:(0,n.a2)(o,this.left+h,this.right-i[0]),y:this.top+h+x,line:0}:{x:this.left+h,y:(0,n.a2)(o,this.top+x+h,this.bottom-e[0].height),line:0},(0,n.aB)(this.ctx,t.textDirection);const v=b+h;this.legendItems.forEach(((y,_)=>{r.strokeStyle=y.fontColor,r.fillStyle=y.fontColor;const w=r.measureText(y.text).width,k=l.textAlign(y.textAlign||(y.textAlign=s.textAlign)),A=p+d+w;let M=f.x,S=f.y;l.setWidth(this.width),m?_>0&&M+A+h>this.right&&(S=f.y+=v,f.line++,M=f.x=(0,n.a2)(o,this.left+h,this.right-i[f.line])):_>0&&S+v>this.bottom&&(M=f.x=M+e[f.line].width+h,f.line++,S=f.y=(0,n.a2)(o,this.top+x+h,this.bottom-e[f.line].height));if(function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;r.save();const o=(0,n.v)(i.lineWidth,1);if(r.fillStyle=(0,n.v)(i.fillStyle,a),r.lineCap=(0,n.v)(i.lineCap,"butt"),r.lineDashOffset=(0,n.v)(i.lineDashOffset,0),r.lineJoin=(0,n.v)(i.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=(0,n.v)(i.strokeStyle,a),r.setLineDash((0,n.v)(i.lineDash,[])),s.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},c=l.xPlus(t,p/2),h=e+d;(0,n.aE)(r,a,c,h,s.pointStyleWidth&&p)}else{const s=e+Math.max((u-g)/2,0),a=l.leftForLtr(t,p),c=(0,n.ay)(i.borderRadius);r.beginPath(),Object.values(c).some((t=>0!==t))?(0,n.aw)(r,{x:a,y:s,w:p,h:g,radius:c}):r.rect(a,s,p,g),r.fill(),0!==o&&r.stroke()}r.restore()}(l.x(M),S,y),M=(0,n.aC)(k,M+p+d,m?M+A:this.right,t.rtl),function(t,e,i){(0,n.Z)(r,i.text,t,e+b/2,c,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(M),S,y),m)f.x+=A+h;else if("string"!==typeof y.text){const t=c.lineHeight;f.y+=ui(y,t)+h}else f.y+=v})),(0,n.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,n.a0)(e.font),r=(0,n.E)(e.padding);if(!e.display)return;const o=(0,n.aA)(t.rtl,this.left,this.width),s=this.ctx,a=e.position,l=i.size/2,c=r.top+l;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,u=(0,n.a2)(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=c+(0,n.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=(0,n.a2)(a,u,u+d);s.textAlign=o.textAlign((0,n.a1)(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,(0,n.Z)(s,e.text,f,h,i)}_computeTitleHeight(){const t=this.options.title,e=(0,n.a0)(t.font),i=(0,n.E)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,o;if((0,n.ak)(t,this.left,this.right)&&(0,n.ak)(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(r=o[i],(0,n.ak)(t,r.left,r.left+r.width)&&(0,n.ak)(e,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const s=this._hoveredItem,a=(o=i,null!==(r=s)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);s&&!a&&(0,n.Q)(e.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!a&&(0,n.Q)(e.onHover,[t,i,this],this)}else i&&(0,n.Q)(e.onClick,[t,i,this],this);var r,o}}function ui(t,e){return e*(t.text?t.text.length:0)}var di={id:"legend",_element:hi,start(t,e,i){const n=t.legend=new hi({ctx:t.ctx,options:i,chart:t});ot.configure(t,n,i),ot.addBox(t,n)},stop(t){ot.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;ot.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,r=i.chart;r.isDatasetVisible(n)?(r.hide(n),e.hidden=!0):(r.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:r,textAlign:o,color:s,useBorderRadius:a,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(i?0:void 0),h=(0,n.E)(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class fi extends kt{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 r=(0,n.b)(i.text)?i.text.length:1;this._padding=(0,n.E)(i.padding);const o=r*(0,n.a0)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:r,right:o,options:s}=this,a=s.align;let l,c,h,u=0;return this.isHorizontal()?(c=(0,n.a2)(a,i,o),h=e+t,l=o-i):("left"===s.position?(c=i+t,h=(0,n.a2)(a,r,e),u=-.5*n.P):(c=o-t,h=(0,n.a2)(a,e,r),u=.5*n.P),l=r-e),{titleX:c,titleY:h,maxWidth:l,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,n.a0)(e.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(r);(0,n.Z)(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:l,textAlign:(0,n.a1)(e.align),textBaseline:"middle",translation:[o,s]})}}var pi={id:"title",_element:fi,start(t,e,i){!function(t,e){const i=new fi({ctx:t.ctx,options:e,chart:t});ot.configure(t,i,e),ot.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;ot.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;ot.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gi=new WeakMap;var bi={id:"subtitle",start(t,e,i){const n=new fi({ctx:t.ctx,options:i,chart:t});ot.configure(t,n,i),ot.addBox(t,n),gi.set(t,n)},stop(t){ot.removeBox(t,gi.get(t)),gi.delete(t)},beforeUpdate(t,e,i){const n=gi.get(t);ot.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const mi={average(t){if(!t.length)return!1;let e,i,n=new Set,r=0,o=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),r+=t.y,++o}}if(0===o||0===n.size)return!1;return{x:[...n].reduce(((t,e)=>t+e))/n.size,y:r/o}},nearest(t,e){if(!t.length)return!1;let i,r,o,s=e.x,a=e.y,l=Number.POSITIVE_INFINITY;for(i=0,r=t.length;i<r;++i){const r=t[i].element;if(r&&r.hasValue()){const t=r.getCenterPoint(),i=(0,n.aF)(e,t);i<l&&(l=i,o=r)}}if(o){const t=o.tooltipPosition();s=t.x,a=t.y}return{x:s,y:a}}};function xi(t,e){return e&&((0,n.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vi(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function yi(t,e){const{element:i,datasetIndex:n,index:r}=e,o=t.getDatasetMeta(n).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:t,label:s,parsed:o.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:n,element:i}}function _i(t,e){const i=t.chart.ctx,{body:r,footer:o,title:s}=t,{boxWidth:a,boxHeight:l}=e,c=(0,n.a0)(e.bodyFont),h=(0,n.a0)(e.titleFont),u=(0,n.a0)(e.footerFont),d=s.length,f=o.length,p=r.length,g=(0,n.E)(e.padding);let b=g.height,m=0,x=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(b+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){b+=p*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(x-p)*c.lineHeight+(x-1)*e.bodySpacing}f&&(b+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let v=0;const y=function(t){m=Math.max(m,i.measureText(t).width+v)};return i.save(),i.font=h.string,(0,n.F)(t.title,y),i.font=c.string,(0,n.F)(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,(0,n.F)(r,(t=>{(0,n.F)(t.before,y),(0,n.F)(t.lines,y),(0,n.F)(t.after,y)})),v=0,i.font=u.string,(0,n.F)(t.footer,y),i.restore(),m+=g.width,{width:m,height:b}}function wi(t,e,i,n){const{x:r,width:o}=i,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=r<=(a+l)/2?"left":"right":r<=o/2?c="left":r>=s-o/2&&(c="right"),function(t,e,i,n){const{x:r,width:o}=n,s=i.caretSize+i.caretPadding;return"left"===t&&r+o+s>e.width||"right"===t&&r-o-s<0||void 0}(c,t,e,i)&&(c="center"),c}function ki(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||wi(t,e,i,n),yAlign:n}}function Ai(t,e,i,r){const{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:l,yAlign:c}=i,h=o+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=(0,n.ay)(a);let g=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,l);const b=function(t,e,i){let{y:n,height:r}=t;return"top"===e?n+=i:n-="bottom"===e?r+i:r/2,n}(e,c,h);return"center"===c?"left"===l?g+=h:"right"===l&&(g-=h):"left"===l?g-=Math.max(u,f)+o:"right"===l&&(g+=Math.max(d,p)+o),{x:(0,n.S)(g,0,r.width-e.width),y:(0,n.S)(b,0,r.height-e.height)}}function Mi(t,e,i){const r=(0,n.E)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function Si(t){return xi([],vi(t))}function Ei(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Ci={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 Oi(t,e,i,n){const r=t[e].call(i,n);return"undefined"===typeof r?Ci[e].call(i,n):r}class Pi extends kt{static positioners=mi;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,r=new c(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,(0,n.j)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=Oi(i,"beforeTitle",this,t),r=Oi(i,"title",this,t),o=Oi(i,"afterTitle",this,t);let s=[];return s=xi(s,vi(n)),s=xi(s,vi(r)),s=xi(s,vi(o)),s}getBeforeBody(t,e){return Si(Oi(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,r=[];return(0,n.F)(t,(t=>{const e={before:[],lines:[],after:[]},n=Ei(i,t);xi(e.before,vi(Oi(n,"beforeLabel",this,t))),xi(e.lines,Oi(n,"label",this,t)),xi(e.after,vi(Oi(n,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return Si(Oi(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=Oi(i,"beforeFooter",this,t),r=Oi(i,"footer",this,t),o=Oi(i,"afterFooter",this,t);let s=[];return s=xi(s,vi(n)),s=xi(s,vi(r)),s=xi(s,vi(o)),s}_createItems(t){const e=this._active,i=this.chart.data,r=[],o=[],s=[];let a,l,c=[];for(a=0,l=e.length;a<l;++a)c.push(yi(this.chart,e[a]));return t.filter&&(c=c.filter(((e,n,r)=>t.filter(e,n,r,i)))),t.itemSort&&(c=c.sort(((e,n)=>t.itemSort(e,n,i)))),(0,n.F)(c,(e=>{const i=Ei(t.callbacks,e);r.push(Oi(i,"labelColor",this,e)),o.push(Oi(i,"labelPointStyle",this,e)),s.push(Oi(i,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let r,o=[];if(n.length){const t=mi[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=_i(this,i),s=Object.assign({},t,e),a=ki(this.chart,i,s),l=Ai(i,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const r=this.getCaretPosition(t,i,n);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,i){const{xAlign:r,yAlign:o}=this,{caretSize:s,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:u}=(0,n.ay)(a),{x:d,y:f}=t,{width:p,height:g}=e;let b,m,x,v,y,_;return"center"===o?(y=f+g/2,"left"===r?(b=d,m=b-s,v=y+s,_=y-s):(b=d+p,m=b+s,v=y-s,_=y+s),x=b):(m="left"===r?d+Math.max(l,h)+s:"right"===r?d+p-Math.max(c,u)-s:this.caretX,"top"===o?(v=f,y=v-s,b=m-s,x=m+s):(v=f+g,y=v+s,b=m+s,x=m-s),_=v),{x1:b,x2:m,x3:x,y1:v,y2:y,y3:_}}drawTitle(t,e,i){const r=this.title,o=r.length;let s,a,l;if(o){const c=(0,n.aA)(i.rtl,this.x,this.width);for(t.x=Mi(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",s=(0,n.a0)(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,l=0;l<o;++l)e.fillText(r[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,o){const s=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=(0,n.a0)(o.bodyFont),u=Mi(this,"left",o),d=r.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,p=e.y+f;if(o.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=r.leftForLtr(d,c)+c/2,h=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,n.av)(t,e,i,h),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,(0,n.av)(t,e,i,h)}else{t.lineWidth=(0,n.i)(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=r.leftForLtr(d,c),i=r.leftForLtr(r.xPlus(d,1),c-2),a=(0,n.ay)(s.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,n.aw)(t,{x:e,y:p,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),(0,n.aw)(t,{x:i,y:p+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,c,l),t.strokeRect(e,p,c,l),t.fillStyle=s.backgroundColor,t.fillRect(i,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:r}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,u=(0,n.a0)(i.bodyFont);let d=u.lineHeight,f=0;const p=(0,n.aA)(i.rtl,this.x,this.width),g=function(i){e.fillText(i,p.x(t.x+f),t.y+d/2),t.y+=d+o},b=p.textAlign(s);let m,x,v,y,_,w,k;for(e.textAlign=s,e.textBaseline="middle",e.font=u.string,t.x=Mi(this,b,i),e.fillStyle=i.bodyColor,(0,n.F)(this.beforeBody,g),f=a&&"right"!==b?"center"===s?c/2+h:c+2+h:0,y=0,w=r.length;y<w;++y){for(m=r[y],x=this.labelTextColors[y],e.fillStyle=x,(0,n.F)(m.before,g),v=m.lines,a&&v.length&&(this._drawColorBox(e,t,y,p,i),d=Math.max(u.lineHeight,l)),_=0,k=v.length;_<k;++_)g(v[_]),d=u.lineHeight;(0,n.F)(m.after,g)}f=0,d=u.lineHeight,(0,n.F)(this.afterBody,g),t.y-=o}drawFooter(t,e,i){const r=this.footer,o=r.length;let s,a;if(o){const l=(0,n.aA)(i.rtl,this.x,this.width);for(t.x=Mi(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",s=(0,n.a0)(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,a=0;a<o;++a)e.fillText(r[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=(0,n.ay)(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,l),"top"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+c-d,l),e.quadraticCurveTo(a+c,l,a+c,l+d),"center"===s&&"right"===o&&this.drawCaret(t,e,i,r),e.lineTo(a+c,l+h-p),e.quadraticCurveTo(a+c,l+h,a+c-p,l+h),"bottom"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+f,l+h),e.quadraticCurveTo(a,l+h,a,l+h-f),"center"===s&&"left"===o&&this.drawCaret(t,e,i,r),e.lineTo(a,l+u),e.quadraticCurveTo(a,l,a+u,l),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,r=i&&i.y;if(n||r){const i=mi[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=_i(this,t),s=Object.assign({},i,this._size),a=ki(e,t,s),l=Ai(t,s,a,e);n._to===l.x&&r._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=(0,n.E)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,r,e),(0,n.aB)(t,e.textDirection),o.y+=s.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,n.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,r=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}})),o=!(0,n.ai)(i,r),s=this._positionChanged(r,e);(o||s)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],s=this._getActiveElements(t,o,e,i),a=this._positionChanged(s,t),l=e||!(0,n.ai)(s,o)||a;return l&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,n){const r=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 o=this.chart.getElementsAtEventForMode(t,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:r}=this,o=mi[r.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}var Di={id:"tooltip",_element:Pi,positioners:mi,afterInit(t,e,i){i&&(t.tooltip=new Pi({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:Ci},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"]},Bi=Object.freeze({__proto__:null,Colors:Ne,Decimation:Ue,Filler:li,Legend:di,SubTitle:bi,Title:pi,Tooltip:Di});function Ri(t,e,i,n){const r=t.indexOf(e);if(-1===r)return((t,e,i,n)=>("string"===typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return r!==t.lastIndexOf(e)?i:r}function Ti(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Li extends Rt{static id="category";static defaults={ticks:{callback:Ti}};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:Ri(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 r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){return Ti.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 Fi(t,e,{horizontal:i,minRotation:r}){const o=(0,n.t)(r),s=(i?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class zi extends Rt{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:r,max:o}=this;const s=t=>r=e?r:t,a=t=>o=i?o:t;if(t){const t=(0,n.s)(r),e=(0,n.s)(o);t<0&&e<0?a(0):t>0&&e>0&&s(0)}if(r===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||s(r-e)}this.min=r,this.max=o}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 r=function(t,e){const i=[],{bounds:r,step:o,min:s,max:a,precision:l,count:c,maxTicks:h,maxDigits:u,includeBounds:d}=t,f=o||1,p=h-1,{min:g,max:b}=e,m=!(0,n.k)(s),x=!(0,n.k)(a),v=!(0,n.k)(c),y=(b-g)/(u+1);let _,w,k,A,M=(0,n.aI)((b-g)/p/f)*f;if(M<1e-14&&!m&&!x)return[{value:g},{value:b}];A=Math.ceil(b/M)-Math.floor(g/M),A>p&&(M=(0,n.aI)(A*M/p/f)*f),(0,n.k)(l)||(_=Math.pow(10,l),M=Math.ceil(M*_)/_),"ticks"===r?(w=Math.floor(g/M)*M,k=Math.ceil(b/M)*M):(w=g,k=b),m&&x&&o&&(0,n.aJ)((a-s)/o,M/1e3)?(A=Math.round(Math.min((a-s)/M,h)),M=(a-s)/A,w=s,k=a):v?(w=m?s:w,k=x?a:k,A=c-1,M=(k-w)/A):(A=(k-w)/M,A=(0,n.aK)(A,Math.round(A),M/1e3)?Math.round(A):Math.ceil(A));const S=Math.max((0,n.aL)(M),(0,n.aL)(w));_=Math.pow(10,(0,n.k)(l)?S:l),w=Math.round(w*_)/_,k=Math.round(k*_)/_;let E=0;for(m&&(d&&w!==s?(i.push({value:s}),w<s&&E++,(0,n.aK)(Math.round((w+E*M)*_)/_,s,Fi(s,y,t))&&E++):w<s&&E++);E<A;++E){const t=Math.round((w+E*M)*_)/_;if(x&&t>a)break;i.push({value:t})}return x&&d&&k!==a?i.length&&(0,n.aK)(i[i.length-1].value,a,Fi(a,y,t))?i[i.length-1].value=a:i.push({value:a}):x&&k!==a||i.push({value:k}),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)(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}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 ji extends zi{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),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Hi=t=>Math.floor((0,n.aN)(t)),Ii=(t,e)=>Math.pow(10,Hi(t)+e);function Ni(t){return 1===t/Math.pow(10,Hi(t))}function Wi(t,e,i){const n=Math.pow(10,i),r=Math.floor(t/n);return Math.ceil(e/n)-r}function Vi(t,{min:e,max:i}){e=(0,n.O)(t.min,e);const r=[],o=Hi(e);let s=function(t,e){let i=Hi(e-t);for(;Wi(t,e,i)>10;)i++;for(;Wi(t,e,i)<10;)i--;return Math.min(i,Hi(t))}(e,i),a=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=o>s?Math.pow(10,o):0,h=Math.round((e-c)*a)/a,u=Math.floor((e-c)/l/10)*l*10;let d=Math.floor((h-u)/Math.pow(10,s)),f=(0,n.O)(t.min,Math.round((c+u+d*Math.pow(10,s))*a)/a);for(;f<i;)r.push({value:f,major:Ni(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,a=s>=0?1:a),f=Math.round((c+u+d*Math.pow(10,s))*a)/a;const p=(0,n.O)(t.max,f);return r.push({value:p,major:Ni(p),significand:d}),r}class Ui extends Rt{static id="logarithmic";static defaults={ticks:{callback:n.aM.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=zi.prototype.parse.apply(this,[t,e]);if(0!==i)return(0,n.g)(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,n.g)(t)?Math.max(0,t):null,this.max=(0,n.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,n.g)(this._userMin)&&(this.min=t===Ii(this.min,0)?Ii(this.min,-1):Ii(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const r=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(r(1),o(10)):(r(Ii(i,-1)),o(Ii(n,1)))),i<=0&&r(Ii(n,-1)),n<=0&&o(Ii(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=Vi({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,n.aH)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,n.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,n.aN)(t),this._valueRange=(0,n.aN)(this.max)-(0,n.aN)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,n.aN)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function $i(t){const e=t.ticks;if(e.display&&t.display){const t=(0,n.E)(e.backdropPadding);return(0,n.v)(e.font&&e.font.size,n.d.font.size)+t.height}return 0}function Xi(t,e,i,n,r){return t===n||t===r?{start:e-i/2,end:e+i/2}:t<n||t>r?{start:e-i,end:e}:{start:e,end:e+i}}function Yi(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),r=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?n.P/s:0;for(let d=0;d<s;d++){const s=a.setContext(t.getPointLabelContext(d));o[d]=s.padding;const f=t.getPointPosition(d,t.drawingArea+o[d],l),p=(0,n.a0)(s.font),g=(c=t.ctx,h=p,u=t._pointLabels[d],u=(0,n.b)(u)?u:[u],{w:(0,n.aO)(c,h.string,u),h:u.length*h.lineHeight});r[d]=g;const b=(0,n.al)(t.getIndexAngle(d)+l),m=Math.round((0,n.U)(b));Gi(i,e,b,Xi(m,f.x,g.w,0,180),Xi(m,f.y,g.h,90,270))}var c,h,u;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const r=[],o=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:l}=s.pointLabels,c={extra:$i(s)/2,additionalAngle:a?n.P/o:0};let h;for(let n=0;n<o;n++){c.padding=i[n],c.size=e[n];const o=Ki(t,n,c);r.push(o),"auto"===l&&(o.visible=qi(o,h),o.visible&&(h=o))}return r}(t,r,o)}function Gi(t,e,i,n,r){const o=Math.abs(Math.sin(i)),s=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),r.start<e.t?(l=(e.t-r.start)/s,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function Ki(t,e,i){const r=t.drawingArea,{extra:o,additionalAngle:s,padding:a,size:l}=i,c=t.getPointPosition(e,r+o+a,s),h=Math.round((0,n.U)((0,n.al)(c.angle+n.H))),u=function(t,e,i){90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e);return t}(c.y,l.h,h),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(h),f=function(t,e,i){"right"===i?t-=e:"center"===i&&(t-=e/2);return t}(c.x,l.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+l.w,bottom:u+l.h}}function qi(t,e){if(!e)return!0;const{left:i,top:r,right:o,bottom:s}=t;return!((0,n.C)({x:i,y:r},e)||(0,n.C)({x:i,y:s},e)||(0,n.C)({x:o,y:r},e)||(0,n.C)({x:o,y:s},e))}function Qi(t,e,i){const{left:r,top:o,right:s,bottom:a}=i,{backdropColor:l}=e;if(!(0,n.k)(l)){const i=(0,n.ay)(e.borderRadius),c=(0,n.E)(e.backdropPadding);t.fillStyle=l;const h=r-c.left,u=o-c.top,d=s-r+c.width,f=a-o+c.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),(0,n.aw)(t,{x:h,y:u,w:d,h:f,radius:i}),t.fill()):t.fillRect(h,u,d,f)}}function Zi(t,e,i,r){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,n.T);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let n=1;n<r;n++)i=t.getPointPosition(n,e),o.lineTo(i.x,i.y)}}class Ji extends zi{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:n.aM.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,n.E)($i(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,n.g)(t)&&!isNaN(t)?t:0,this.max=(0,n.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/$i(this.options))}generateTickLabels(t){zi.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=(0,n.Q)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Yi(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){const e=n.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,n.al)(t*e+(0,n.t)(i))}getDistanceFromCenterForValue(t){if((0,n.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,n.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return(0,n.j)(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const r=this.getIndexAngle(t)-n.H+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:r}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Zi(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r,border:o}=e,s=this._pointLabels.length;let a,l,c;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:r}}=t;for(let o=e-1;o>=0;o--){const e=t._pointLabelItems[o];if(!e.visible)continue;const s=r.setContext(t.getPointLabelContext(o));Qi(i,s,e);const a=(0,n.a0)(s.font),{x:l,y:c,textAlign:h}=e;(0,n.Z)(i,t._pointLabels[o],l,c+a.lineHeight/2,a,{color:s.color,textAlign:h,textBaseline:"middle"})}}(this,s),r.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){l=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),n=r.setContext(i),a=o.setContext(i);!function(t,e,i,n,r){const o=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(r.dash||[]),o.lineDashOffset=r.dashOffset,o.beginPath(),Zi(t,i,s,n),o.closePath(),o.stroke(),o.restore())}(this,n,l,s,a)}})),i.display){for(t.save(),a=s-1;a>=0;a--){const n=i.setContext(this.getPointLabelContext(a)),{color:r,lineWidth:o}=n;o&&r&&(t.lineWidth=o,t.strokeStyle=r,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const l=i.setContext(this.getContext(a)),c=(0,n.a0)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){t.font=c.string,s=t.measureText(r.label).width,t.fillStyle=l.backdropColor;const e=(0,n.E)(l.backdropPadding);t.fillRect(-s/2-e.left,-o-c.size/2-e.top,s+e.width,c.size+e.height)}(0,n.Z)(t,r.label,0,-o,c,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})})),t.restore()}drawTitle(){}}const tn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},en=Object.keys(tn);function nn(t,e){return t-e}function rn(t,e){if((0,n.k)(e))return null;const i=t._adapter,{parser:r,round:o,isoWeekday:s}=t._parseOpts;let a=e;return"function"===typeof r&&(a=r(a)),(0,n.g)(a)||(a="string"===typeof r?i.parse(a,r):i.parse(a)),null===a?null:(o&&(a="week"!==o||!(0,n.x)(s)&&!0!==s?i.startOf(a,o):i.startOf(a,"isoWeek",s)),+a)}function on(t,e,i,n){const r=en.length;for(let o=en.indexOf(t);o<r-1;++o){const t=tn[en[o]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(r*t.size))<=n)return en[o]}return en[r-1]}function sn(t,e,i){if(i){if(i.length){const{lo:r,hi:o}=(0,n.aQ)(i,e);t[i[r]>=e?i[r]:i[o]]=!0}}else t[e]=!0}function an(t,e,i){const n=[],r={},o=e.length;let s,a;for(s=0;s<o;++s)a=e[s],r[a]=s,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const r=t._adapter,o=+r.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=o;a<=s;a=+r.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,r,i):n}class ln extends Rt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),r=this._adapter=new H._date(t.adapters.date);r.init(e),(0,n.ab)(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:rn(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(t){s||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}s&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),r=(0,n.g)(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),o=(0,n.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,r="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,s=this.max,a=(0,n.aP)(r,o,s);return this._unit=e.unit||(i.autoSkip?on(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,i,n,r){for(let o=en.length-1;o>=en.indexOf(i);o--){const i=en[o];if(tn[i].common&&t._adapter.diff(r,n,i)>=e-1)return i}return en[i?en.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=en.indexOf(t)+1,i=en.length;e<i;++e)if(tn[en[e]].common)return en[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),an(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),o=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=(0,n.S)(r,0,s),o=(0,n.S)(o,0,s),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,i=this.max,r=this.options,o=r.time,s=o.unit||on(o.minUnit,e,i,this._getLabelCapacity(e)),a=(0,n.v)(r.ticks.stepSize,1),l="week"===s&&o.isoWeekday,c=(0,n.x)(l)||!0===l,h={};let u,d,f=e;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":s),t.diff(i,e,s)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+s);const p="data"===r.ticks.source&&this.getDataTimestamps();for(u=f,d=0;u<i;u=+t.add(u,a,s),d++)sn(h,u,p);return u!==i&&"ticks"!==r.bounds&&1!==d||sn(h,u,p),Object.keys(h).sort(nn).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,r=e||i[n];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,r){const o=this.options,s=o.ticks.callback;if(s)return(0,n.Q)(s,[t,e,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],u=c&&a[c],d=i[e],f=c&&u&&d&&d.major;return this._adapter.format(t,r||(f?u:h))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,r=(0,n.t)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(r),s=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*s,h:i*s+a*o}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,r=this._tickFormatFunction(t,0,an(this,[t],this._majorUnit),n),o=this._getLabelSize(r),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(rn(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,n._)(t.sort(nn))}}function cn(t,e,i){let r,o,s,a,l=0,c=t.length-1;i?(e>=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,n.B)(t,"pos",e)),({pos:r,time:s}=t[l]),({pos:o,time:a}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,n.B)(t,"time",e)),({time:r,pos:s}=t[l]),({time:o,pos:a}=t[c]));const h=o-r;return h?s+(a-s)*(e-r)/h:s}const hn=[F,Te,Bi,Object.freeze({__proto__:null,CategoryScale:Li,LinearScale:ji,LogarithmicScale:Ui,RadialLinearScale:Ji,TimeScale:ln,TimeSeriesScale:class extends ln{static id="timeseries";static defaults=ln.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=cn(e,this.min),this._tableRange=cn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],r=[];let o,s,a,l,c;for(o=0,s=t.length;o<s;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,s=n.length;o<s;++o)c=n[o+1],a=n[o-1],l=n[o],Math.round((c+a)/2)!==l&&r.push({time:l,pos:o/(s-1)});return r}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(cn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return cn(this._table,i*this._tableRange+this._minPos,!0)}}})]},66318:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(87465),r=i(30901);const o=function(t,e){for(var i=0,o=(e=(0,n.A)(e,t)).length;null!=t&&i<o;)t=t[(0,r.A)(e[i++])];return i&&i==o?t:void 0}},66984:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){return t===e||t!==t&&e!==e}},68183:(t,e,i)=>{"use strict";var n=i(79504),r=i(91291),o=i(655),s=i(67750),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),h=function(t){return function(e,i){var n,h,u=o(s(e)),d=r(i),f=u.length;return d<0||d>=f?t?"":void 0:(n=l(u,d))<55296||n>56319||d+1===f||(h=l(u,d+1))<56320||h>57343?t?a(u,d):n:t?c(u,d,d+2):h-56320+(n-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},68335:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(28562),r=i(41917);const o=(0,n.A)(r.A,"Map")},69592:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return void 0===t}},70019:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(63009),i(51025),function(){var t=e,i=t.lib,n=i.Base,r=i.WordArray,o=t.algo,s=o.SHA256,a=o.HMAC,l=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var i=this.cfg,n=a.create(i.hasher,t),o=r.create(),s=r.create([1]),l=o.words,c=s.words,h=i.keySize,u=i.iterations;l.length<h;){var d=n.update(e).finalize(s);n.reset();for(var f=d.words,p=f.length,g=d,b=1;b<u;b++){g=n.finalize(g),n.reset();for(var m=g.words,x=0;x<p;x++)f[x]^=m[x]}o.concat(d),c[0]++}return o.sigBytes=4*h,o}});t.PBKDF2=function(t,e,i){return l.create(i).compute(t,e)}}(),e.PBKDF2)}()},70025:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),function(){var t=e,i=t.lib.CipherParams,n=t.enc.Hex;t.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return i.create({ciphertext:e})}}}(),e.format.Hex)}()},72136:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},72641:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}},73797:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),i=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),i.encryptBlock(o,0);for(var s=0;s<n;s++)t[e+s]^=o[s]}});return t.Decryptor=i,t}(),e.mode.OFB)}()},75268:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.active=void 0;var n,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=i(96540),s=(n=o)&&n.__esModule?n:{default:n};function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=e.active=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function n(){var i,o,l;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var c=arguments.length,h=Array(c),u=0;u<c;u++)h[u]=arguments[u];return o=l=a(this,(i=n.__proto__||Object.getPrototypeOf(n)).call.apply(i,[this].concat(h))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return s.default.createElement(e,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},s.default.createElement(t,r({},l.props,l.state)))},a(l,o)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,i),n}(s.default.Component)};e.default=l},76203:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeClasses=void 0;var n=s(i(33215)),r=s(i(88055)),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function s(t){return t&&t.__esModule?t:{default:t}}var a=e.mergeClasses=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=t.default&&(0,r.default)(t.default)||{};return e.map((function(e){var r=t[e];return r&&(0,n.default)(r,(function(t,e){i[e]||(i[e]={}),i[e]=o({},i[e],r[e])})),e})),i};e.default=a},76912:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t}},77193:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib.StreamCipher,n=t.algo,r=n.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,i=t.sigBytes,n=this._S=[],r=0;r<256;r++)n[r]=r;r=0;for(var o=0;r<256;r++){var s=r%i,a=e[s>>>2]>>>24-s%4*8&255;o=(o+n[r]+a)%256;var l=n[r];n[r]=n[o],n[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,i=this._j,n=0,r=0;r<4;r++){i=(i+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[i],t[i]=o,n|=t[(t[e]+t[i])%256]<<24-8*r}return this._i=e,this._j=i,n}t.RC4=i._createHelper(r);var s=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=i._createHelper(s)}(),e.RC4)}()},77500:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(66318);const r=function(t,e,i){var r=null==t?void 0:(0,n.A)(t,e);return void 0===r?i:r}},78056:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){var t=e,i=t.lib,n=i.WordArray,r=i.Hasher,o=t.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=0;i<16;i++){var n=e+i,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,d,v,y,_,w,k,A,M,S,E,C=this._hash.words,O=h.words,P=u.words,D=s.words,B=a.words,R=l.words,T=c.words;for(w=o=C[0],k=d=C[1],A=v=C[2],M=y=C[3],S=_=C[4],i=0;i<80;i+=1)E=o+t[e+D[i]]|0,E+=i<16?f(d,v,y)+O[0]:i<32?p(d,v,y)+O[1]:i<48?g(d,v,y)+O[2]:i<64?b(d,v,y)+O[3]:m(d,v,y)+O[4],E=(E=x(E|=0,R[i]))+_|0,o=_,_=y,y=x(v,10),v=d,d=E,E=w+t[e+B[i]]|0,E+=i<16?m(k,A,M)+P[0]:i<32?b(k,A,M)+P[1]:i<48?g(k,A,M)+P[2]:i<64?p(k,A,M)+P[3]:f(k,A,M)+P[4],E=(E=x(E|=0,T[i]))+S|0,w=S,S=M,M=x(A,10),A=k,k=E;E=C[1]+v+M|0,C[1]=C[2]+y+S|0,C[2]=C[3]+_+w|0,C[3]=C[4]+o+k|0,C[4]=C[0]+d+A|0,C[0]=E},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,i){return t^e^i}function p(t,e,i){return t&e|~t&i}function g(t,e,i){return(t|~e)^i}function b(t,e,i){return t&i|e&~i}function m(t,e,i){return t^(e|~i)}function x(t,e){return t<<e|t>>>32-e}t.RIPEMD160=r._createHelper(d),t.HmacRIPEMD160=r._createHmacHelper(d)}(Math),e.RIPEMD160)}()},78898:(t,e,i)=>{"use strict";var n=i(46518),r=i(68183).charAt,o=i(67750),s=i(91291),a=i(655);n({target:"String",proto:!0,forced:!0},{at:function(t){var e=a(o(this)),i=e.length,n=s(t),l=n>=0?n:i+n;return l<0||l>=i?void 0:r(e,l)}})},79841:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(97132),r=i(27422);const o=function(t,e){return t&&(0,n.A)(t,e,r.A)}},79999:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(50423),r=i(23149),o=i(97271);const s=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e};var a=Object.prototype.hasOwnProperty;const l=function(t){if(!(0,r.A)(t))return s(t);var e=(0,o.A)(t),i=[];for(var n in t)("constructor"!=n||!e&&a.call(t,n))&&i.push(n);return i};var c=i(38446);const h=function(t){return(0,c.A)(t)?(0,n.A)(t,!0):l(t)}},80154:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(41917),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r?n.A.Buffer:void 0,a=s?s.allocUnsafe:void 0;const l=function(t,e){if(e)return t.slice();var i=t.length,n=a?a(i):new t.constructor(i);return t.copy(n),n}},80754:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(){var t=e,i=t.lib.WordArray;function n(t,e,n){for(var r=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;r[o>>>2]|=a<<24-o%4*8,o++}return i.create(r,o)}t.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var r=[],o=0;o<i;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<i;a++)r.push(n.charAt(s>>>6*(3-a)&63));var l=n.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var e=t.length,i=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<i.length;o++)r[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)}()},81121:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=Function.prototype.toString;const o=function(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},81380:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(43240),function(){var t=e,i=t.lib.Hasher,n=t.x64,r=n.Word,o=n.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=a()}();var h=s.SHA512=i.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],u=i[6],d=i[7],f=n.high,p=n.low,g=r.high,b=r.low,m=o.high,x=o.low,v=s.high,y=s.low,_=a.high,w=a.low,k=h.high,A=h.low,M=u.high,S=u.low,E=d.high,C=d.low,O=f,P=p,D=g,B=b,R=m,T=x,L=v,F=y,z=_,j=w,H=k,I=A,N=M,W=S,V=E,U=C,$=0;$<80;$++){var X,Y,G=c[$];if($<16)Y=G.high=0|t[e+2*$],X=G.low=0|t[e+2*$+1];else{var K=c[$-15],q=K.high,Q=K.low,Z=(q>>>1|Q<<31)^(q>>>8|Q<<24)^q>>>7,J=(Q>>>1|q<<31)^(Q>>>8|q<<24)^(Q>>>7|q<<25),tt=c[$-2],et=tt.high,it=tt.low,nt=(et>>>19|it<<13)^(et<<3|it>>>29)^et>>>6,rt=(it>>>19|et<<13)^(it<<3|et>>>29)^(it>>>6|et<<26),ot=c[$-7],st=ot.high,at=ot.low,lt=c[$-16],ct=lt.high,ht=lt.low;Y=(Y=(Y=Z+st+((X=J+at)>>>0<J>>>0?1:0))+nt+((X+=rt)>>>0<rt>>>0?1:0))+ct+((X+=ht)>>>0<ht>>>0?1:0),G.high=Y,G.low=X}var ut,dt=z&H^~z&N,ft=j&I^~j&W,pt=O&D^O&R^D&R,gt=P&B^P&T^B&T,bt=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),mt=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),xt=(z>>>14|j<<18)^(z>>>18|j<<14)^(z<<23|j>>>9),vt=(j>>>14|z<<18)^(j>>>18|z<<14)^(j<<23|z>>>9),yt=l[$],_t=yt.high,wt=yt.low,kt=V+xt+((ut=U+vt)>>>0<U>>>0?1:0),At=mt+gt;V=N,U=W,N=H,W=I,H=z,I=j,z=L+(kt=(kt=(kt=kt+dt+((ut+=ft)>>>0<ft>>>0?1:0))+_t+((ut+=wt)>>>0<wt>>>0?1:0))+Y+((ut+=X)>>>0<X>>>0?1:0))+((j=F+ut|0)>>>0<F>>>0?1:0)|0,L=R,F=T,R=D,T=B,D=O,B=P,O=kt+(bt+pt+(At>>>0<mt>>>0?1:0))+((P=ut+At|0)>>>0<ut>>>0?1:0)|0}p=n.low=p+P,n.high=f+O+(p>>>0<P>>>0?1:0),b=r.low=b+B,r.high=g+D+(b>>>0<B>>>0?1:0),x=o.low=x+T,o.high=m+R+(x>>>0<T>>>0?1:0),y=s.low=y+F,s.high=v+L+(y>>>0<F>>>0?1:0),w=a.low=w+j,a.high=_+z+(w>>>0<j>>>0?1:0),A=h.low=A+I,h.high=k+H+(A>>>0<I>>>0?1:0),S=u.low=S+W,u.high=M+N+(S>>>0<W>>>0?1:0),C=d.low=C+U,d.high=E+V+(C>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=i._createHelper(h),t.HmacSHA512=i._createHmacHelper(h)}(),e.SHA512)}()},81692:(t,i,n)=>{"use strict";function r(t){return t+.5|0}n.d(i,{$:()=>Me,A:()=>jt,B:()=>zt,C:()=>ke,D:()=>Ct,E:()=>He,F:()=>G,G:()=>yi,H:()=>pt,I:()=>di,J:()=>ki,K:()=>wi,L:()=>$t,M:()=>ui,N:()=>_t,O:()=>V,P:()=>ct,Q:()=>Y,R:()=>We,S:()=>Rt,T:()=>ht,U:()=>St,V:()=>me,W:()=>Tt,X:()=>ve,Y:()=>Ae,Z:()=>Pe,_:()=>Vt,a:()=>Ne,a0:()=>Ie,a1:()=>Yt,a2:()=>Gt,a3:()=>ue,a4:()=>J,a5:()=>rt,a6:()=>de,a7:()=>st,a8:()=>$e,a9:()=>Ue,aA:()=>Oi,aB:()=>Pi,aC:()=>Kt,aD:()=>Di,aE:()=>we,aF:()=>Ot,aG:()=>z,aH:()=>At,aI:()=>yt,aJ:()=>kt,aK:()=>vt,aL:()=>Et,aM:()=>he,aN:()=>mt,aO:()=>xe,aP:()=>Ht,aQ:()=>Ft,aa:()=>Xe,ab:()=>tt,ac:()=>j,ad:()=>Xt,ae:()=>_i,af:()=>ye,ag:()=>at,ah:()=>Ni,ai:()=>K,aj:()=>lt,ak:()=>Lt,al:()=>Dt,am:()=>Fe,an:()=>hi,ao:()=>Fi,ap:()=>Li,aq:()=>Mi,ar:()=>Si,as:()=>Ai,at:()=>Se,au:()=>Ee,av:()=>_e,aw:()=>De,ax:()=>ze,ay:()=>je,az:()=>Ti,b:()=>I,b4:()=>ft,b5:()=>gt,b6:()=>bt,c:()=>ne,d:()=>be,e:()=>ee,f:()=>nt,g:()=>W,h:()=>ot,i:()=>N,j:()=>Ve,k:()=>H,l:()=>Nt,m:()=>$,n:()=>X,o:()=>le,p:()=>Bt,q:()=>qt,r:()=>Ut,s:()=>xt,t:()=>Mt,u:()=>Wt,v:()=>U,w:()=>Qt,x:()=>wt,y:()=>ni,z:()=>xi});const o=(t,e,i)=>Math.max(Math.min(t,i),e);function s(t){return o(r(2.55*t),0,255)}function a(t){return o(r(255*t),0,255)}function l(t){return o(r(t/2.55)/100,0,1)}function c(t){return o(r(100*t),0,100)}const h={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},u=[..."0123456789ABCDEF"],d=t=>u[15&t],f=t=>u[(240&t)>>4]+u[15&t],p=t=>(240&t)>>4===(15&t);function g(t){var e=(t=>p(t.r)&&p(t.g)&&p(t.b)&&p(t.a))(t)?d:f;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(t,e,i){const n=e*Math.min(i,1-i),r=(e,r=(e+t/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function x(t,e,i){const n=(n,r=(n+t/60)%6)=>i-i*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function v(t,e,i){const n=m(t,1,.5);let r;for(e+i>1&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function y(t){const e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),o=Math.min(e,i,n),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,i,n,r){return t===r?(e-i)/n+(e<i?6:0):e===r?(i-t)/n+2:(t-e)/n+4}(e,i,n,c,r),a=60*a+.5),[0|a,l||0,s]}function _(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(a)}function w(t,e,i){return _(m,t,e,i)}function k(t){return(t%360+360)%360}function A(t){const e=b.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?s(+e[5]):a(+e[5]));const r=k(+e[2]),o=+e[3]/100,l=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return _(v,t,e,i)}(r,o,l):"hsv"===e[1]?function(t,e,i){return _(x,t,e,i)}(r,o,l):w(r,o,l),{r:i[0],g:i[1],b:i[2],a:n}}const M={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let E;function C(t){E||(E=function(){const t={},e=Object.keys(S),i=Object.keys(M);let n,r,o,s,a;for(n=0;n<e.length;n++){for(s=a=e[n],r=0;r<i.length;r++)o=i[r],a=a.replace(o,M[o]);o=parseInt(S[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),E.transparent=[0,0,0,0]);const e=E[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const P=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,D=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function B(t,e,i){if(t){let n=y(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=w(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function R(t,e){return t?Object.assign(e||{},t):t}function T(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=R(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function L(t){return"r"===t.charAt(0)?function(t){const e=O.exec(t);let i,n,r,a=255;if(e){if(e[7]!==i){const t=+e[7];a=e[8]?s(t):o(255*t,0,255)}return i=+e[1],n=+e[3],r=+e[5],i=255&(e[2]?s(i):o(i,0,255)),n=255&(e[4]?s(n):o(n,0,255)),r=255&(e[6]?s(r):o(r,0,255)),{r:i,g:n,b:r,a:a}}}(t):A(t)}class F{constructor(t){if(t instanceof F)return t;const e=typeof t;let i;"object"===e?i=T(t):"string"===e&&(i=function(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*h[t[1]],g:255&17*h[t[2]],b:255&17*h[t[3]],a:5===i?17*h[t[4]]:255}:7!==i&&9!==i||(e={r:h[t[1]]<<4|h[t[2]],g:h[t[3]]<<4|h[t[4]],b:h[t[5]]<<4|h[t[6]],a:9===i?h[t[7]]<<4|h[t[8]]:255})),e}(t)||C(t)||L(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=R(this._rgb);return t&&(t.a=l(t.a)),t}set rgb(t){this._rgb=T(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${l(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?g(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=y(t),i=e[0],n=c(e[1]),r=c(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${r}%, ${l(t.a)})`:`hsl(${i}, ${n}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=i.a-n.a,l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,i.r=255&l*i.r+r*n.r+.5,i.g=255&l*i.g+r*n.g+.5,i.b=255&l*i.b+r*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=D(l(t.r)),r=D(l(t.g)),o=D(l(t.b));return{r:a(P(n+i*(D(l(e.r))-n))),g:a(P(r+i*(D(l(e.g))-r))),b:a(P(o+i*(D(l(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new F(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=r(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return B(this._rgb,2,t),this}darken(t){return B(this._rgb,2,-t),this}saturate(t){return B(this._rgb,1,t),this}desaturate(t){return B(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=y(t);i[0]=k(i[0]+e),i=w(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function z(){}const j=(()=>{let t=0;return()=>t++})();function H(t){return null===t||void 0===t}function I(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 N(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function W(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function V(t,e){return W(t)?t:e}function U(t,e){return"undefined"===typeof t?e:t}const $=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,X=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Y(t,e,i){if(t&&"function"===typeof t.call)return t.apply(i,e)}function G(t,e,i,n){let r,o,s;if(I(t))if(o=t.length,n)for(r=o-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;r<o;r++)e.call(i,t[r],r);else if(N(t))for(s=Object.keys(t),o=s.length,r=0;r<o;r++)e.call(i,t[s[r]],s[r])}function K(t,e){let i,n,r,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(r=t[i],o=e[i],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function q(t){if(I(t))return t.map(q);if(N(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let r=0;for(;r<n;++r)e[i[r]]=q(t[i[r]]);return e}return t}function Q(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Z(t,e,i,n){if(!Q(t))return;const r=e[t],o=i[t];N(r)&&N(o)?J(r,o,n):e[t]=q(o)}function J(t,e,i){const n=I(e)?e:[e],r=n.length;if(!N(t))return t;const o=(i=i||{}).merger||Z;let s;for(let a=0;a<r;++a){if(s=n[a],!N(s))continue;const e=Object.keys(s);for(let n=0,r=e.length;n<r;++n)o(e[n],t,s,i)}return t}function tt(t,e){return J(t,e,{merger:et})}function et(t,e,i){if(!Q(t))return;const n=e[t],r=i[t];N(n)&&N(r)?tt(n,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=q(r))}const it={"":t=>t,x:t=>t.x,y:t=>t.y};function nt(t,e){const i=it[e]||(it[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const r of e)n+=r,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 rt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ot=t=>"undefined"!==typeof t,st=t=>"function"===typeof t,at=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function lt(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const ct=Math.PI,ht=2*ct,ut=ht+ct,dt=Number.POSITIVE_INFINITY,ft=ct/180,pt=ct/2,gt=ct/4,bt=2*ct/3,mt=Math.log10,xt=Math.sign;function vt(t,e,i){return Math.abs(t-e)<i}function yt(t){const e=Math.round(t);t=vt(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(mt(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function _t(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 wt(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 kt(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function At(t,e,i){let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Mt(t){return t*(ct/180)}function St(t){return t*(180/ct)}function Et(t){if(!W(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Ct(t,e){const i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*ct&&(o+=ht),{angle:o,distance:r}}function Ot(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Pt(t,e){return(t-e+ut)%ht-ct}function Dt(t){return(t%ht+ht)%ht}function Bt(t,e,i,n){const r=Dt(t),o=Dt(e),s=Dt(i),a=Dt(o-r),l=Dt(s-r),c=Dt(r-o),h=Dt(r-s);return r===o||r===s||n&&o===s||a>l&&c<h}function Rt(t,e,i){return Math.max(e,Math.min(i,t))}function Tt(t){return Rt(t,-32768,32767)}function Lt(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function Ft(t,e,i){i=i||(i=>t[i]<e);let n,r=t.length-1,o=0;for(;r-o>1;)n=o+r>>1,i(n)?o=n:r=n;return{lo:o,hi:r}}const zt=(t,e,i,n)=>Ft(t,i,n?n=>{const r=t[n][e];return r<i||r===i&&t[n+1][e]===i}:n=>t[n][e]<i),jt=(t,e,i)=>Ft(t,i,(n=>t[n][e]>=i));function Ht(t,e,i){let n=0,r=t.length;for(;n<r&&t[n]<e;)n++;for(;r>n&&t[r-1]>i;)r--;return n>0||r<t.length?t.slice(n,r):t}const It=["push","pop","shift","splice","unshift"];function Nt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),It.forEach((e=>{const i="_onData"+rt(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[i]&&t[i](...e)})),r}})})))}function Wt(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(It.forEach((e=>{delete t[e]})),delete t._chartjs)}function Vt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Ut="undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame;function $t(t,e){let i=[],n=!1;return function(...r){i=r,n||(n=!0,Ut.call(window,(()=>{n=!1,t.apply(e,i)})))}}function Xt(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}const Yt=t=>"start"===t?"left":"end"===t?"right":"center",Gt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,Kt=(t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e;function qt(t,e,i){const n=e.length;let r=0,o=n;if(t._sorted){const{iScale:s,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=s.axis,{min:u,max:d,minDefined:f,maxDefined:p}=s.getUserBounds();if(f){if(r=Math.min(zt(l,h,u).lo,i?n:zt(e,h,s.getPixelForValue(u)).lo),c){const t=l.slice(0,r+1).reverse().findIndex((t=>!H(t[a.axis])));r-=Math.max(0,t)}r=Rt(r,0,n-1)}if(p){let t=Math.max(zt(l,s.axis,d,!0).hi+1,i?0:zt(e,h,s.getPixelForValue(d),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!H(t[a.axis])));t+=Math.max(0,e)}o=Rt(t,r,n)-r}else o=n-r}return{start:r,count:o}}function Qt(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,r={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=r,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),o}const Zt=t=>0===t||1===t,Jt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ht/i),te=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*ht/i)+1,ee={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*pt),easeOutSine:t=>Math.sin(t*pt),easeInOutSine:t=>-.5*(Math.cos(ct*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=>Zt(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=>Zt(t)?t:Jt(t,.075,.3),easeOutElastic:t=>Zt(t)?t:te(t,.075,.3),easeInOutElastic(t){const e=.1125;return Zt(t)?t:t<.5?.5*Jt(2*t,e,.45):.5+.5*te(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-ee.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*ee.easeInBounce(2*t):.5*ee.easeOutBounce(2*t-1)+.5};function ie(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ne(t){return ie(t)?t:new F(t)}function re(t){return ie(t)?t:new F(t).saturate(.5).darken(.1).hexString()}const oe=["x","y","borderWidth","radius","tension"],se=["color","borderColor","backgroundColor"];const ae=new Map;function le(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=ae.get(i);return n||(n=new Intl.NumberFormat(t,e),ae.set(i,n)),n}(e,i).format(t)}const ce={values:t=>I(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let r,o=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)&&(r="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const s=mt(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),le(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(mt(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?ce.numeric.call(this,t,e,i):""}};var he={formatters:ce};const ue=Object.create(null),de=Object.create(null);function fe(t,e){if(!e)return t;const i=e.split(".");for(let n=0,r=i.length;n<r;++n){const e=i[n];t=t[e]||(t[e]=Object.create(null))}return t}function pe(t,e,i){return"string"===typeof e?J(fe(t,e),i):J(fe(t,""),e)}class ge{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)=>re(e.backgroundColor),this.hoverBorderColor=(t,e)=>re(e.borderColor),this.hoverColor=(t,e)=>re(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 pe(this,t,e)}get(t){return fe(this,t)}describe(t,e){return pe(de,t,e)}override(t,e){return pe(ue,t,e)}route(t,e,i,n){const r=fe(this,t),o=fe(this,i),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[n];return N(t)?Object.assign({},e,t):U(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var be=new ge({_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:se},numbers:{type:"number",properties:oe}}),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:he.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 me(t,e,i,n,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,i.push(r)),o>n&&(n=o),n}function xe(t,e,i,n){let r=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let s=0;const a=i.length;let l,c,h,u,d;for(l=0;l<a;l++)if(u=i[l],void 0===u||null===u||I(u)){if(I(u))for(c=0,h=u.length;c<h;c++)d=u[c],void 0===d||null===d||I(d)||(s=me(t,r,o,s,d))}else s=me(t,r,o,s,u);t.restore();const f=o.length/2;if(f>i.length){for(l=0;l<f;l++)delete r[o[l]];o.splice(0,f)}return s}function ve(t,e,i){const n=t.currentDevicePixelRatio,r=0!==i?Math.max(i/2,.5):0;return Math.round((e-r)*n)/n+r}function ye(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function _e(t,e,i,n){we(t,e,i,n,null)}function we(t,e,i,n,r){let o,s,a,l,c,h,u,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let b=(p||0)*ft;if(f&&"object"===typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(b),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:r?t.ellipse(i,n,r/2,g,0,0,ht):t.arc(i,n,g,0,ht),t.closePath();break;case"triangle":h=r?r/2:g,t.moveTo(i+Math.sin(b)*h,n-Math.cos(b)*g),b+=bt,t.lineTo(i+Math.sin(b)*h,n-Math.cos(b)*g),b+=bt,t.lineTo(i+Math.sin(b)*h,n-Math.cos(b)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,s=Math.cos(b+gt)*l,u=Math.cos(b+gt)*(r?r/2-c:l),a=Math.sin(b+gt)*l,d=Math.sin(b+gt)*(r?r/2-c:l),t.arc(i-u,n-a,c,b-ct,b-pt),t.arc(i+d,n-s,c,b-pt,b),t.arc(i+u,n+a,c,b,b+pt),t.arc(i-d,n+s,c,b+pt,b+ct),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,h=r?r/2:l,t.rect(i-h,n-l,2*h,2*l);break}b+=gt;case"rectRot":u=Math.cos(b)*(r?r/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(r?r/2:g),t.moveTo(i-u,n-a),t.lineTo(i+d,n-s),t.lineTo(i+u,n+a),t.lineTo(i-d,n+s),t.closePath();break;case"crossRot":b+=gt;case"cross":u=Math.cos(b)*(r?r/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(r?r/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-s),t.lineTo(i-d,n+s);break;case"star":u=Math.cos(b)*(r?r/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(r?r/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-s),t.lineTo(i-d,n+s),b+=gt,u=Math.cos(b)*(r?r/2:g),s=Math.cos(b)*g,a=Math.sin(b)*g,d=Math.sin(b)*(r?r/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-s),t.lineTo(i-d,n+s);break;case"line":s=r?r/2:Math.cos(b)*g,a=Math.sin(b)*g,t.moveTo(i-s,n-a),t.lineTo(i+s,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(b)*(r?r/2:g),n+Math.sin(b)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function ke(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 Ae(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Me(t){t.restore()}function Se(t,e,i,n,r){if(!e)return t.lineTo(i.x,i.y);if("middle"===r){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===r!==!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ee(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 Ce(t,e,i,n,r){if(r.strikethrough||r.underline){const o=t.measureText(n),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,h),t.lineTo(a,h),t.stroke()}}function Oe(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Pe(t,e,i,n,r,o={}){const s=I(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),H(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,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&Oe(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),H(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,i,n,o.maxWidth)),t.fillText(c,i,n,o.maxWidth),Ce(t,i,n,c,o),n+=Number(r.lineHeight);t.restore()}function De(t,e){const{x:i,y:n,w:r,h:o,radius:s}=e;t.arc(i+s.topLeft,n+s.topLeft,s.topLeft,1.5*ct,ct,!0),t.lineTo(i,n+o-s.bottomLeft),t.arc(i+s.bottomLeft,n+o-s.bottomLeft,s.bottomLeft,ct,pt,!0),t.lineTo(i+r-s.bottomRight,n+o),t.arc(i+r-s.bottomRight,n+o-s.bottomRight,s.bottomRight,pt,0,!0),t.lineTo(i+r,n+s.topRight),t.arc(i+r-s.topRight,n+s.topRight,s.topRight,0,-pt,!0),t.lineTo(i+s.topLeft,n)}const Be=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Re=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Te(t,e){const i=(""+t).match(Be);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 Le=t=>+t||0;function Fe(t,e){const i={},n=N(e),r=n?Object.keys(e):e,o=N(t)?n?i=>U(t[i],t[e[i]]):e=>t[e]:()=>t;for(const s of r)i[s]=Le(o(s));return i}function ze(t){return Fe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function je(t){return Fe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function He(t){const e=ze(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ie(t,e){t=t||{},e=e||be.font;let i=U(t.size,e.size);"string"===typeof i&&(i=parseInt(i,10));let n=U(t.style,e.style);n&&!(""+n).match(Re)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const r={family:U(t.family,e.family),lineHeight:Te(U(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:U(t.weight,e.weight),string:""};return r.string=function(t){return!t||H(t.size)||H(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function Ne(t,e,i,n){let r,o,s,a=!0;for(r=0,o=t.length;r<o;++r)if(s=t[r],void 0!==s&&(void 0!==e&&"function"===typeof s&&(s=s(e),a=!1),void 0!==i&&I(s)&&(s=s[i%s.length],a=!1),void 0!==s))return n&&!a&&(n.cacheable=!1),s}function We(t,e,i){const{min:n,max:r}=t,o=X(e,(r-n)/2),s=(t,e)=>i&&0===t?0:t+e;return{min:s(n,-Math.abs(o)),max:s(r,o)}}function Ve(t,e){return Object.assign(Object.create(t),e)}function Ue(t,e=[""],i,n,r=()=>t[0]){const o=i||t;"undefined"===typeof n&&(n=ei("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:r,override:i=>Ue([i,...t],e,o,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Ke(i,n,(()=>function(t,e,i,n){let r;for(const o of e)if(r=ei(Ye(o,t),i),"undefined"!==typeof r)return Ge(t,r)?Je(i,n,t,r):r}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>ii(t).includes(e),ownKeys:t=>ii(t),set(t,e,i){const n=t._storage||(t._storage=r());return t[e]=n[e]=i,delete t._keys,!0}})}function $e(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Xe(t,n),setContext:e=>$e(t,e,i,n),override:r=>$e(t.override(r),e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ke(t,e,(()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:o,_descriptors:s}=t;let a=n[e];st(a)&&s.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,s||n);a.delete(t),Ge(t,l)&&(l=Je(r._scopes,r,t,l));return l}(e,a,t,i));I(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=i;if("undefined"!==typeof o.index&&n(t))return e[o.index%e.length];if(N(e[0])){const i=e,n=r._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Je(n,r,t,l);e.push($e(i,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable));Ge(e,a)&&(a=$e(a,r,o&&o[e],s));return a}(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 Xe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:i,indexable:n,isScriptable:st(i)?i:()=>i,isIndexable:st(n)?n:()=>n}}const Ye=(t,e)=>t?t+rt(e):e,Ge=(t,e)=>N(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ke(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=i();return t[e]=n,n}function qe(t,e,i){return st(t)?t(e,i):t}const Qe=(t,e)=>!0===t?e:"string"===typeof t?nt(e,t):void 0;function Ze(t,e,i,n,r){for(const o of e){const e=Qe(i,o);if(e){t.add(e);const o=qe(e._fallback,i,r);if("undefined"!==typeof o&&o!==i&&o!==n)return o}else if(!1===e&&"undefined"!==typeof n&&i!==n)return null}return!1}function Je(t,e,i,n){const r=e._rootScopes,o=qe(e._fallback,i,n),s=[...t,...r],a=new Set;a.add(n);let l=ti(a,s,i,o||i,n);return null!==l&&(("undefined"===typeof o||o===i||(l=ti(a,s,o,l,n),null!==l))&&Ue(Array.from(a),[""],r,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const r=n[e];if(I(r)&&N(i))return i;return r||{}}(e,i,n))))}function ti(t,e,i,n,r){for(;i;)i=Ze(t,e,i,n,r);return i}function ei(t,e){for(const i of e){if(!i)continue;const e=i[t];if("undefined"!==typeof e)return e}}function ii(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 ni(t,e,i,n){const{iScale:r}=t,{key:o="r"}=this._parsing,s=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],s[a]={r:r.parse(nt(h,o),c)};return s}const ri=Number.EPSILON||1e-14,oi=(t,e)=>e<t.length&&!t[e].skip&&t[e],si=t=>"x"===t?"y":"x";function ai(t,e,i,n){const r=t.skip?e:t,o=e,s=i.skip?e:i,a=Ot(o,r),l=Ot(s,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=n*c,d=n*h;return{previous:{x:o.x-u*(s.x-r.x),y:o.y-u*(s.y-r.y)},next:{x:o.x+d*(s.x-r.x),y:o.y+d*(s.y-r.y)}}}function li(t,e="x"){const i=si(e),n=t.length,r=Array(n).fill(0),o=Array(n);let s,a,l,c=oi(t,0);for(s=0;s<n;++s)if(a=l,l=c,c=oi(t,s+1),l){if(c){const t=c[e]-l[e];r[s]=0!==t?(c[i]-l[i])/t:0}o[s]=a?c?xt(r[s-1])!==xt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}!function(t,e,i){const n=t.length;let r,o,s,a,l,c=oi(t,0);for(let h=0;h<n-1;++h)l=c,c=oi(t,h+1),l&&c&&(vt(e[h],0,ri)?i[h]=i[h+1]=0:(r=i[h]/e[h],o=i[h+1]/e[h],a=Math.pow(r,2)+Math.pow(o,2),a<=9||(s=3/Math.sqrt(a),i[h]=r*s*e[h],i[h+1]=o*s*e[h])))}(t,r,o),function(t,e,i="x"){const n=si(i),r=t.length;let o,s,a,l=oi(t,0);for(let c=0;c<r;++c){if(s=a,a=l,l=oi(t,c+1),!a)continue;const r=a[i],h=a[n];s&&(o=(r-s[i])/3,a[`cp1${i}`]=r-o,a[`cp1${n}`]=h-o*e[c]),l&&(o=(l[i]-r)/3,a[`cp2${i}`]=r+o,a[`cp2${n}`]=h+o*e[c])}}(t,o,e)}function ci(t,e,i){return Math.max(Math.min(t,i),e)}function hi(t,e,i,n,r){let o,s,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)li(t,r);else{let i=n?t[t.length-1]:t[0];for(o=0,s=t.length;o<s;++o)a=t[o],l=ai(i,a,t[Math.min(o+1,s-(n?0:1))%s],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,r,o,s,a=ke(t[0],e);for(i=0,n=t.length;i<n;++i)s=o,o=a,a=i<n-1&&ke(t[i+1],e),o&&(r=t[i],s&&(r.cp1x=ci(r.cp1x,e.left,e.right),r.cp1y=ci(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=ci(r.cp2x,e.left,e.right),r.cp2y=ci(r.cp2y,e.top,e.bottom)))}(t,i)}function ui(){return"undefined"!==typeof window&&"undefined"!==typeof document}function di(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function fi(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 pi=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const gi=["top","right","bottom","left"];function bi(t,e,i){const n={};i=i?"-"+i:"";for(let r=0;r<4;r++){const o=gi[r];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const mi=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function xi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,r=pi(i),o="border-box"===r.boxSizing,s=bi(r,"padding"),a=bi(r,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:r,offsetY:o}=n;let s,a,l=!1;if(mi(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,i),u=s.left+(h&&a.left),d=s.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((c-d)/p*i.height/n)}}const vi=t=>Math.round(10*t)/10;function yi(t,e,i,n){const r=pi(t),o=bi(r,"margin"),s=fi(r.maxWidth,t,"clientWidth")||dt,a=fi(r.maxHeight,t,"clientHeight")||dt,l=function(t,e,i){let n,r;if(void 0===e||void 0===i){const o=t&&di(t);if(o){const t=o.getBoundingClientRect(),s=pi(o),a=bi(s,"border","width"),l=bi(s,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=fi(s.maxWidth,o,"clientWidth"),r=fi(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||dt,maxHeight:r||dt}}(t,e,i);let{width:c,height:h}=l;if("content-box"===r.boxSizing){const t=bi(r,"border","width"),e=bi(r,"padding");c-=e.width+t.width,h-=e.height+t.height}c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=vi(Math.min(c,s,l.maxWidth)),h=vi(Math.min(h,a,l.maxHeight)),c&&!h&&(h=vi(c/2));return(void 0!==e||void 0!==i)&&n&&l.height&&h>l.height&&(h=l.height,c=vi(Math.floor(h*n))),{width:c,height:h}}function _i(t,e,i){const n=e||1,r=vi(t.height*n),o=vi(t.width*n);t.height=vi(t.height),t.width=vi(t.width);const s=t.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=n,s.height=r,s.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const wi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ui()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function ki(t,e){const i=function(t,e){return pi(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Ai(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Mi(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 Si(t,e,i,n){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=Ai(t,r,i),a=Ai(r,o,i),l=Ai(o,e,i),c=Ai(s,a,i),h=Ai(a,l,i);return Ai(c,h,i)}const Ei=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}},Ci=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function Oi(t,e,i){return t?Ei(e,i):Ci()}function Pi(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Di(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Bi(t){return"angle"===t?{between:Bt,compare:Pt,normalize:Dt}:{between:Lt,compare:(t,e)=>t-e,normalize:t=>t}}function Ri({start:t,end:e,count:i,loop:n,style:r}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i===0,style:r}}function Ti(t,e,i){if(!i)return[t];const{property:n,start:r,end:o}=i,s=e.length,{compare:a,between:l,normalize:c}=Bi(n),{start:h,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:r,end:o}=i,{between:s,normalize:a}=Bi(n),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&s(a(e[u%l][n]),r,o);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,i),p=[];let g,b,m,x=!1,v=null;const y=()=>x||l(r,m,g)&&0!==a(r,m),_=()=>!x||0===a(o,g)||l(o,m,g);for(let w=h,k=h;w<=u;++w)b=e[w%s],b.skip||(g=c(b[n]),g!==m&&(x=l(g,r,o),null===v&&y()&&(v=0===a(g,r)?w:k),null!==v&&_()&&(p.push(Ri({start:v,end:w,loop:d,count:s,style:f})),v=null),k=w,m=g));return null!==v&&p.push(Ri({start:v,end:u,loop:d,count:s,style:f})),p}function Li(t,e){const i=[],n=t.segments;for(let r=0;r<n.length;r++){const o=Ti(n[r],t.points,e);o.length&&i.push(...o)}return i}function Fi(t,e){const i=t.points,n=t.options.spanGaps,r=i.length;if(!r)return[];const o=!!t._loop,{start:s,end:a}=function(t,e,i,n){let r=0,o=e-1;if(i&&!n)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,i&&(o+=r);o>r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(i,r,o,n);if(!0===n)return zi(t,[{start:s,end:a,loop:o}],i,e);return zi(t,function(t,e,i,n){const r=t.length,o=[];let s,a=e,l=t[e];for(s=e+1;s<=i;++s){const i=t[s%r];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%r,end:(s-1)%r,loop:n}),e=a=i.stop?s:null):(a=s,l.skip&&(e=s)),l=i}return null!==a&&o.push({start:e%r,end:a%r,loop:n}),o}(i,s,a<s?a+r:a,!!t._fullLoop&&0===s&&a===r-1),i,e)}function zi(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const r=t._chart.getContext(),o=ji(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=i.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,n,r){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:n,style:r}),h=r,u=e%l)}}for(const p of e){u=a?u:p.start;let t,e=i[u%l];for(d=u+1;d<=p.end;d++){const o=i[d%l];t=ji(n.setContext(Ve(r,{type:"segment",p0:e,p1:o,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),Hi(t,h)&&f(u,d-1,p.loop,h),e=o,h=t}u<d-1&&f(u,d-1,p.loop,h)}return c}(t,e,i,n):e}function ji(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Hi(t,e){if(!e)return!1;const i=[],n=function(t,e){return ie(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}function Ii(t,e,i){return t.options.clip?t[i]:e[i]}function Ni(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:Ii(i,e,"left"),right:Ii(i,e,"right"),top:Ii(n,e,"top"),bottom:Ii(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)}}},82169:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function i(t,e,i,n){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,n.encryptBlock(r,0);for(var s=0;s<i;s++)t[e+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize;i.call(this,t,e,r,n),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=t.slice(e,e+r);i.call(this,t,e,r,n),this._prevBlock=o}}),t}(),e.mode.CFB)}()},84171:(t,i,n)=>{"use strict";n.d(i,{A:()=>o});var r=n(28562);const o=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(e){}}()},84636:function(t,e,i){!function(){var e;t.exports=(e=i(19021),function(t){var i=e,n=i.lib,r=n.WordArray,o=n.Hasher,s=i.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var i=0;i<16;i++){var n=e+i,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,s=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],b=t[e+5],m=t[e+6],x=t[e+7],v=t[e+8],y=t[e+9],_=t[e+10],w=t[e+11],k=t[e+12],A=t[e+13],M=t[e+14],S=t[e+15],E=o[0],C=o[1],O=o[2],P=o[3];E=c(E,C,O,P,s,7,a[0]),P=c(P,E,C,O,l,12,a[1]),O=c(O,P,E,C,f,17,a[2]),C=c(C,O,P,E,p,22,a[3]),E=c(E,C,O,P,g,7,a[4]),P=c(P,E,C,O,b,12,a[5]),O=c(O,P,E,C,m,17,a[6]),C=c(C,O,P,E,x,22,a[7]),E=c(E,C,O,P,v,7,a[8]),P=c(P,E,C,O,y,12,a[9]),O=c(O,P,E,C,_,17,a[10]),C=c(C,O,P,E,w,22,a[11]),E=c(E,C,O,P,k,7,a[12]),P=c(P,E,C,O,A,12,a[13]),O=c(O,P,E,C,M,17,a[14]),E=h(E,C=c(C,O,P,E,S,22,a[15]),O,P,l,5,a[16]),P=h(P,E,C,O,m,9,a[17]),O=h(O,P,E,C,w,14,a[18]),C=h(C,O,P,E,s,20,a[19]),E=h(E,C,O,P,b,5,a[20]),P=h(P,E,C,O,_,9,a[21]),O=h(O,P,E,C,S,14,a[22]),C=h(C,O,P,E,g,20,a[23]),E=h(E,C,O,P,y,5,a[24]),P=h(P,E,C,O,M,9,a[25]),O=h(O,P,E,C,p,14,a[26]),C=h(C,O,P,E,v,20,a[27]),E=h(E,C,O,P,A,5,a[28]),P=h(P,E,C,O,f,9,a[29]),O=h(O,P,E,C,x,14,a[30]),E=u(E,C=h(C,O,P,E,k,20,a[31]),O,P,b,4,a[32]),P=u(P,E,C,O,v,11,a[33]),O=u(O,P,E,C,w,16,a[34]),C=u(C,O,P,E,M,23,a[35]),E=u(E,C,O,P,l,4,a[36]),P=u(P,E,C,O,g,11,a[37]),O=u(O,P,E,C,x,16,a[38]),C=u(C,O,P,E,_,23,a[39]),E=u(E,C,O,P,A,4,a[40]),P=u(P,E,C,O,s,11,a[41]),O=u(O,P,E,C,p,16,a[42]),C=u(C,O,P,E,m,23,a[43]),E=u(E,C,O,P,y,4,a[44]),P=u(P,E,C,O,k,11,a[45]),O=u(O,P,E,C,S,16,a[46]),E=d(E,C=u(C,O,P,E,f,23,a[47]),O,P,s,6,a[48]),P=d(P,E,C,O,x,10,a[49]),O=d(O,P,E,C,M,15,a[50]),C=d(C,O,P,E,b,21,a[51]),E=d(E,C,O,P,k,6,a[52]),P=d(P,E,C,O,p,10,a[53]),O=d(O,P,E,C,_,15,a[54]),C=d(C,O,P,E,l,21,a[55]),E=d(E,C,O,P,v,6,a[56]),P=d(P,E,C,O,S,10,a[57]),O=d(O,P,E,C,m,15,a[58]),C=d(C,O,P,E,A,21,a[59]),E=d(E,C,O,P,g,6,a[60]),P=d(P,E,C,O,w,10,a[61]),O=d(O,P,E,C,f,15,a[62]),C=d(C,O,P,E,y,21,a[63]),o[0]=o[0]+E|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+P|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;i[r>>>5]|=128<<24-r%32;var o=t.floor(n/4294967296),s=n;i[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(i.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var h=l[c];l[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,i,n,r,o,s){var a=t+(e&i|~e&n)+r+s;return(a<<o|a>>>32-o)+e}function h(t,e,i,n,r,o,s){var a=t+(e&n|i&~n)+r+s;return(a<<o|a>>>32-o)+e}function u(t,e,i,n,r,o,s){var a=t+(e^i^n)+r+s;return(a<<o|a>>>32-o)+e}function d(t,e,i,n,r,o,s){var a=t+(i^(e|~n))+r+s;return(a<<o|a>>>32-o)+e}i.MD5=o._createHelper(l),i.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5)}()},85015:(t,e,i)=>{var n=i(72552),r=i(56449),o=i(40346);t.exports=function(t){return"string"==typeof t||!r(t)&&o(t)&&"[object String]"==n(t)}},85054:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var n=i(87465),r=i(25175),o=i(92049),s=i(25353),a=i(5254),l=i(30901);const c=function(t,e,i){for(var c=-1,h=(e=(0,n.A)(e,t)).length,u=!1;++c<h;){var d=(0,l.A)(e[c]);if(!(u=null!=t&&i(t,d)))break;t=t[d]}return u||++c!=h?u:!!(h=null==t?0:t.length)&&(0,a.A)(h)&&(0,s.A)(d,h)&&((0,o.A)(t)||(0,r.A)(t))}},86308:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParsingError=void 0;class i extends Error{constructor(t,e){super(t),this.cause=e}}let n;function r(){return a(!1)||function(){const t=h(/^([^<]+)/);if(t){const e={type:"Text",content:t[1]};return{excluded:!1===n.options.filter(e),node:e}}}()||l()||function(){if(n.xml.startsWith("<![CDATA[")){const t=n.xml.indexOf("]]>");if(t>-1){const e=t+3,i={type:"CDATA",content:n.xml.substring(0,e)};return n.xml=n.xml.slice(e),{excluded:!1===n.options.filter(i),node:i}}}}()||s()}function o(){return h(/\s*/),a(!0)||l()||function(){const t=h(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/)||h(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/)||h(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/)||h(/^<!DOCTYPE\s+\S+\s*>/);if(t){const e={type:"DocumentType",content:t[0]};return{excluded:!1===n.options.filter(e),node:e}}}()||s()}function s(){const t=h(/^<\?([\w-:.]+)\s*/);if(!t)return;const e={name:t[1],type:"ProcessingInstruction",content:""},r=n.xml.indexOf("?>");if(!(r>-1))throw new i("Failed to parse XML","ProcessingInstruction closing tag not found");return e.content=n.xml.substring(0,r).trim(),n.xml=n.xml.slice(r),h(/\?>/),{excluded:!1===n.options.filter(e),node:e}}function a(t){const e=h(/^<([^?!</>\s]+)\s*/);if(!e)return;const o={type:"Element",name:e[1],attributes:{},children:[]},s=!t&&!1===n.options.filter(o);for(;!(0===n.xml.length||u(">")||u("?>")||u("/>"));){const t=c();if(!t)return;o.attributes[t.name]=t.value}if(h(/^\s*\/>/))return o.children=null,{excluded:s,node:o};h(/\??>/);let a=r();for(;a;)a.excluded||o.children.push(a.node),a=r();if(n.options.strictMode){const t=`</${o.name}>`;if(!n.xml.startsWith(t))throw new i("Failed to parse XML",`Closing tag not matching "${t}"`);n.xml=n.xml.slice(t.length)}else h(/^<\/[\w-:.\u00C0-\u00FF]+\s*>/);return{excluded:s,node:o}}function l(){const t=h(/^<!--[\s\S]*?-->/);if(t){const e={type:"Comment",content:t[0]};return{excluded:!1===n.options.filter(e),node:e}}}function c(){const t=h(/([^=]+)\s*=\s*("[^"]*"|'[^']*'|[^>\s]+)\s*/);if(t)return{name:t[1].trim(),value:(e=t[2].trim(),e.replace(/^['"]|['"]$/g,""))};var e}function h(t){const e=n.xml.match(t);if(e)return n.xml=n.xml.slice(e[0].length),e}function u(t){return 0===n.xml.indexOf(t)}function d(t,e={}){t=t.trim();const r=e.filter||(()=>!0);return n={xml:t,options:Object.assign(Object.assign({},e),{filter:r,strictMode:!0===e.strictMode})},function(){const t=s(),e=[];let r,a=o();for(;a;){if("Element"===a.node.type){if(r)throw new Error("Found multiple root nodes");r=a.node}a.excluded||e.push(a.node),a=o()}if(!r)throw new i("Failed to parse XML","Root Element not found");if(0!==n.xml.length)throw new i("Failed to parse XML","Not Well-Formed XML");return{declaration:t?t.node:null,root:r,children:e}}()}e.ParsingError=i,t.exports=d,e.default=d},86586:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(92049),r=i(61882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,n.A)(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!(0,r.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},86994:(t,e,i)=>{"use strict";var n=i(46518),r=i(36639).toArray;n({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{toArray:function(){return r(this,void 0,[])}})},87465:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(92049),r=i(86586),o=i(37216),s=i(3456);const a=function(t,e){return(0,n.A)(t)?t:(0,r.A)(t,e)?[t]:(0,o.A)((0,s.A)(t))}},87518:(t,e,i)=>{"use strict";var n=i(96540),r=i(58527),o={},s=function(t,e,i,n){var r=t+"-"+e+"-"+i+(n?"-server":"");if(o[r])return o[r];var s=function(t,e,i,n){if("undefined"===typeof document&&!n)return null;var r=n?new n:document.createElement("canvas");r.width=2*i,r.height=2*i;var o=r.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,r.width,r.height),o.fillStyle=e,o.fillRect(0,0,i,i),o.translate(i,i),o.fillRect(0,0,i,i),r.toDataURL()):null}(t,e,i,n);return o[r]=s,s},a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=function(t){var e=t.white,i=t.grey,o=t.size,l=t.renderers,c=t.borderRadius,h=t.boxShadow,u=t.children,d=(0,r.Ay)({default:{grid:{borderRadius:c,boxShadow:h,absolute:"0px 0px 0px 0px",background:"url("+s(e,i,o,l.canvas)+") center left"}}});return(0,n.isValidElement)(u)?n.cloneElement(u,a({},u.props,{style:a({},u.props.style,d.grid)})):n.createElement("div",{style:d.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const c=l;var h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}const f=function(t){function e(){var t,i,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=n=d(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(o))),n.handleChange=function(t){var e=function(t,e,i,n,r){var o=r.clientWidth,s=r.clientHeight,a="number"===typeof t.pageX?t.pageX:t.touches[0].pageX,l="number"===typeof t.pageY?t.pageY:t.touches[0].pageY,c=a-(r.getBoundingClientRect().left+window.pageXOffset),h=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===i){var u=void 0;if(u=h<0?0:h>s?1:Math.round(100*h/s)/100,e.a!==u)return{h:e.h,s:e.s,l:e.l,a:u,source:"rgb"}}else{var d=void 0;if(n!==(d=c<0?0:c>o?1:Math.round(100*c/o)/100))return{h:e.h,s:e.s,l:e.l,a:d,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"===typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},d(n,i)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),u(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,i=(0,r.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+", 0) 0%,\n           rgba("+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+", 0) 0%,\n           rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:h({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return n.createElement("div",{style:i.alpha},n.createElement("div",{style:i.checkboard},n.createElement(c,{renderers:this.props.renderers})),n.createElement("div",{style:i.gradient}),n.createElement("div",{style:i.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.createElement("div",{style:i.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:i.slider}))))}}]),e}(n.PureComponent||n.Component);var p=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var g=[38,40],b=1;const m=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(t){i.setUpdatedValue(t.target.value,t)},i.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,g.indexOf(e)>-1)){var r=i.getArrowOffset(),o=38===t.keyCode?n+r:n-r;i.setUpdatedValue(o,t)}},i.handleDrag=function(t){if(i.props.dragLabel){var e=Math.round(i.props.value+t.movementX);e>=0&&e<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(e),t)}},i.handleMouseDown=function(t){i.props.dragLabel&&(t.preventDefault(),i.handleDrag(t),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},i.inputId="rc-editable-input-"+b++,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),p(e,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.value===this.props.value&&e.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(t){return function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var i=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(i,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,e=(0,r.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return n.createElement("div",{style:e.wrap},n.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?n.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(n.PureComponent||n.Component);var x=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}const y=function(t){function e(){var t,i,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=n=v(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(o))),n.handleChange=function(t){var e=function(t,e,i,n){var r=n.clientWidth,o=n.clientHeight,s="number"===typeof t.pageX?t.pageX:t.touches[0].pageX,a="number"===typeof t.pageY?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=a-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var h=void 0;if(h=c<0?359:c>o?0:360*(-100*c/o+100)/100,i.h!==h)return{h:h,s:i.s,l:i.l,a:i.a,source:"hsl"}}else{var u=void 0;if(u=l<0?0:l>r?359:100*l/r*360/100,i.h!==u)return{h:u,s:i.s,l:i.l,a:i.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"===typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},v(n,i)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),x(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.direction,i=void 0===e?"horizontal":e,o=(0,r.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===i});return n.createElement("div",{style:o.hue},n.createElement("div",{className:"hue-"+i,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),n.createElement("div",{style:o.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:o.slider}))))}}]),e}(n.PureComponent||n.Component);var _=i(5556),w=i.n(_),k=i(4334),A=function(t){var e=t.zDepth,i=t.radius,o=t.background,s=t.children,a=t.styles,l=void 0===a?{}:a,c=(0,r.Ay)((0,k.A)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+e+"px "+4*e+"px rgba(0,0,0,.24)",borderRadius:i,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===e});return n.createElement("div",{style:c.wrap},n.createElement("div",{style:c.bg}),n.createElement("div",{style:c.content},s))};A.propTypes={background:w().string,zDepth:w().oneOf([0,1,2,3,4,5]),radius:w().number,styles:w().object},A.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const M=A;var S=i(23149),E=i(41917);const C=function(){return E.A.Date.now()};var O=i(50751),P=Math.max,D=Math.min;const B=function(t,e,i){var n,r,o,s,a,l,c=0,h=!1,u=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var i=n,o=r;return n=r=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||u&&t-c>=o}function g(){var t=C();if(p(t))return b(t);a=setTimeout(g,function(t){var i=e-(t-l);return u?D(i,o-(t-c)):i}(t))}function b(t){return a=void 0,d&&n?f(t):(n=r=void 0,s)}function m(){var t=C(),i=p(t);if(n=arguments,r=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(g,e),h?f(t):s}(l);if(u)return clearTimeout(a),a=setTimeout(g,e),f(l)}return void 0===a&&(a=setTimeout(g,e)),s}return e=(0,O.A)(e)||0,(0,S.A)(i)&&(h=!!i.leading,o=(u="maxWait"in i)?P((0,O.A)(i.maxWait)||0,e):o,d="trailing"in i?!!i.trailing:d),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},m.flush=function(){return void 0===a?s:b(C())},m};const R=function(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return(0,S.A)(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),B(t,e,{leading:n,maxWait:e,trailing:r})};var T=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var L=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.handleChange=function(t){"function"===typeof i.props.onChange&&i.throttle(i.props.onChange,function(t,e,i){var n=i.getBoundingClientRect(),r=n.width,o=n.height,s="number"===typeof t.pageX?t.pageX:t.touches[0].pageX,a="number"===typeof t.pageY?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=a-(i.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>r&&(l=r),c<0?c=0:c>o&&(c=o);var h=l/r,u=1-c/o;return{h:e.h,s:h,v:u,a:e.a,source:"hsv"}}(t,i.props.hsl,i.container),t)},i.handleMouseDown=function(t){i.handleChange(t);var e=i.getContainerRenderWindow();e.addEventListener("mousemove",i.handleChange),e.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=R((function(t,e,i){t(e,i)}),50),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),T(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.style||{},i=e.color,o=e.white,s=e.black,a=e.pointer,l=e.circle,c=(0,r.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:o,black:s,pointer:a,circle:l}},{custom:!!this.props.style});return n.createElement("div",{style:c.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},n.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),n.createElement("div",{style:c.white,className:"saturation-white"},n.createElement("div",{style:c.black,className:"saturation-black"}),n.createElement("div",{style:c.pointer},this.props.pointer?n.createElement(this.props.pointer,this.props):n.createElement("div",{style:c.circle}))))}}]),e}(n.PureComponent||n.Component);const F=L;var z=i(8058);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}var H=/^\s+/,I=/\s+$/;function N(t,e){if(e=e||{},(t=t||"")instanceof N)return t;if(!(this instanceof N))return new N(t,e);var i=function(t){var e={r:0,g:0,b:0},i=1,n=null,r=null,o=null,s=!1,a=!1;"string"==typeof t&&(t=function(t){t=t.replace(H,"").replace(I,"").toLowerCase();var e,i=!1;if(rt[t])t=rt[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=pt.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=pt.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=pt.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=pt.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=pt.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=pt.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=pt.hex8.exec(t))return{r:ct(e[1]),g:ct(e[2]),b:ct(e[3]),a:ft(e[4]),format:i?"name":"hex8"};if(e=pt.hex6.exec(t))return{r:ct(e[1]),g:ct(e[2]),b:ct(e[3]),format:i?"name":"hex"};if(e=pt.hex4.exec(t))return{r:ct(e[1]+""+e[1]),g:ct(e[2]+""+e[2]),b:ct(e[3]+""+e[3]),a:ft(e[4]+""+e[4]),format:i?"name":"hex8"};if(e=pt.hex3.exec(t))return{r:ct(e[1]+""+e[1]),g:ct(e[2]+""+e[2]),b:ct(e[3]+""+e[3]),format:i?"name":"hex"};return!1}(t));"object"==j(t)&&(gt(t.r)&&gt(t.g)&&gt(t.b)?(l=t.r,c=t.g,h=t.b,e={r:255*at(l,255),g:255*at(c,255),b:255*at(h,255)},s=!0,a="%"===String(t.r).substr(-1)?"prgb":"rgb"):gt(t.h)&&gt(t.s)&&gt(t.v)?(n=ut(t.s),r=ut(t.v),e=function(t,e,i){t=6*at(t,360),e=at(e,100),i=at(i,100);var n=Math.floor(t),r=t-n,o=i*(1-e),s=i*(1-r*e),a=i*(1-(1-r)*e),l=n%6,c=[i,s,o,o,a,i][l],h=[a,i,i,s,o,o][l],u=[o,o,a,i,i,s][l];return{r:255*c,g:255*h,b:255*u}}(t.h,n,r),s=!0,a="hsv"):gt(t.h)&&gt(t.s)&&gt(t.l)&&(n=ut(t.s),o=ut(t.l),e=function(t,e,i){var n,r,o;function s(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(t=at(t,360),e=at(e,100),i=at(i,100),0===e)n=r=o=i;else{var a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;n=s(l,a,t+1/3),r=s(l,a,t),o=s(l,a,t-1/3)}return{r:255*n,g:255*r,b:255*o}}(t.h,n,o),s=!0,a="hsl"),t.hasOwnProperty("a")&&(i=t.a));var l,c,h;return i=st(i),{ok:s,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:i}}(t);this._originalInput=t,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||i.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function W(t,e,i){t=at(t,255),e=at(e,255),i=at(i,255);var n,r,o=Math.max(t,e,i),s=Math.min(t,e,i),a=(o+s)/2;if(o==s)n=r=0;else{var l=o-s;switch(r=a>.5?l/(2-o-s):l/(o+s),o){case t:n=(e-i)/l+(e<i?6:0);break;case e:n=(i-t)/l+2;break;case i:n=(t-e)/l+4}n/=6}return{h:n,s:r,l:a}}function V(t,e,i){t=at(t,255),e=at(e,255),i=at(i,255);var n,r,o=Math.max(t,e,i),s=Math.min(t,e,i),a=o,l=o-s;if(r=0===o?0:l/o,o==s)n=0;else{switch(o){case t:n=(e-i)/l+(e<i?6:0);break;case e:n=(i-t)/l+2;break;case i:n=(t-e)/l+4}n/=6}return{h:n,s:r,v:a}}function U(t,e,i,n){var r=[ht(Math.round(t).toString(16)),ht(Math.round(e).toString(16)),ht(Math.round(i).toString(16))];return n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function $(t,e,i,n){return[ht(dt(n)),ht(Math.round(t).toString(16)),ht(Math.round(e).toString(16)),ht(Math.round(i).toString(16))].join("")}function X(t,e){e=0===e?0:e||10;var i=N(t).toHsl();return i.s-=e/100,i.s=lt(i.s),N(i)}function Y(t,e){e=0===e?0:e||10;var i=N(t).toHsl();return i.s+=e/100,i.s=lt(i.s),N(i)}function G(t){return N(t).desaturate(100)}function K(t,e){e=0===e?0:e||10;var i=N(t).toHsl();return i.l+=e/100,i.l=lt(i.l),N(i)}function q(t,e){e=0===e?0:e||10;var i=N(t).toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(-e/100*255))),i.g=Math.max(0,Math.min(255,i.g-Math.round(-e/100*255))),i.b=Math.max(0,Math.min(255,i.b-Math.round(-e/100*255))),N(i)}function Q(t,e){e=0===e?0:e||10;var i=N(t).toHsl();return i.l-=e/100,i.l=lt(i.l),N(i)}function Z(t,e){var i=N(t).toHsl(),n=(i.h+e)%360;return i.h=n<0?360+n:n,N(i)}function J(t){var e=N(t).toHsl();return e.h=(e.h+180)%360,N(e)}function tt(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var i=N(t).toHsl(),n=[N(t)],r=360/e,o=1;o<e;o++)n.push(N({h:(i.h+o*r)%360,s:i.s,l:i.l}));return n}function et(t){var e=N(t).toHsl(),i=e.h;return[N(t),N({h:(i+72)%360,s:e.s,l:e.l}),N({h:(i+216)%360,s:e.s,l:e.l})]}function it(t,e,i){e=e||6,i=i||30;var n=N(t).toHsl(),r=360/i,o=[N(t)];for(n.h=(n.h-(r*e>>1)+720)%360;--e;)n.h=(n.h+r)%360,o.push(N(n));return o}function nt(t,e){e=e||6;for(var i=N(t).toHsv(),n=i.h,r=i.s,o=i.v,s=[],a=1/e;e--;)s.push(N({h:n,s:r,v:o})),o=(o+a)%1;return s}N.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,i,n=this.toRgb();return t=n.r/255,e=n.g/255,i=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},setAlpha:function(t){return this._a=st(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=V(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=V(this._r,this._g,this._b),e=Math.round(360*t.h),i=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+i+"%, "+n+"%)":"hsva("+e+", "+i+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=W(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=W(this._r,this._g,this._b),e=Math.round(360*t.h),i=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+i+"%, "+n+"%)":"hsla("+e+", "+i+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return U(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,i,n,r){var o=[ht(Math.round(t).toString(16)),ht(Math.round(e).toString(16)),ht(Math.round(i).toString(16)),ht(dt(n))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*at(this._r,255))+"%",g:Math.round(100*at(this._g,255))+"%",b:Math.round(100*at(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*at(this._r,255))+"%, "+Math.round(100*at(this._g,255))+"%, "+Math.round(100*at(this._b,255))+"%)":"rgba("+Math.round(100*at(this._r,255))+"%, "+Math.round(100*at(this._g,255))+"%, "+Math.round(100*at(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ot[U(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+$(this._r,this._g,this._b,this._a),i=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var r=N(t);i="#"+$(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+i+")"},toString:function(t){var e=!!t;t=t||this._format;var i=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(i=this.toRgbString()),"prgb"===t&&(i=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(i=this.toHexString()),"hex3"===t&&(i=this.toHexString(!0)),"hex4"===t&&(i=this.toHex8String(!0)),"hex8"===t&&(i=this.toHex8String()),"name"===t&&(i=this.toName()),"hsl"===t&&(i=this.toHslString()),"hsv"===t&&(i=this.toHsvString()),i||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return N(this.toString())},_applyModification:function(t,e){var i=t.apply(null,[this].concat([].slice.call(e)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(K,arguments)},brighten:function(){return this._applyModification(q,arguments)},darken:function(){return this._applyModification(Q,arguments)},desaturate:function(){return this._applyModification(X,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(G,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(it,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(nt,arguments)},splitcomplement:function(){return this._applyCombination(et,arguments)},triad:function(){return this._applyCombination(tt,[3])},tetrad:function(){return this._applyCombination(tt,[4])}},N.fromRatio=function(t,e){if("object"==j(t)){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]="a"===n?t[n]:ut(t[n]));t=i}return N(t,e)},N.equals=function(t,e){return!(!t||!e)&&N(t).toRgbString()==N(e).toRgbString()},N.random=function(){return N.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},N.mix=function(t,e,i){i=0===i?0:i||50;var n=N(t).toRgb(),r=N(e).toRgb(),o=i/100;return N({r:(r.r-n.r)*o+n.r,g:(r.g-n.g)*o+n.g,b:(r.b-n.b)*o+n.b,a:(r.a-n.a)*o+n.a})},N.readability=function(t,e){var i=N(t),n=N(e);return(Math.max(i.getLuminance(),n.getLuminance())+.05)/(Math.min(i.getLuminance(),n.getLuminance())+.05)},N.isReadable=function(t,e,i){var n,r,o=N.readability(t,e);switch(r=!1,(n=function(t){var e,i;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),i=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==i&&"large"!==i&&(i="small");return{level:e,size:i}}(i)).level+n.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},N.mostReadable=function(t,e,i){var n,r,o,s,a=null,l=0;r=(i=i||{}).includeFallbackColors,o=i.level,s=i.size;for(var c=0;c<e.length;c++)(n=N.readability(t,e[c]))>l&&(l=n,a=N(e[c]));return N.isReadable(t,a,{level:o,size:s})||!r?a:(i.includeFallbackColors=!1,N.mostReadable(t,["#fff","#000"],i))};var rt=N.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ot=N.hexNames=function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}(rt);function st(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function at(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var i=function(t){return"string"===typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function lt(t){return Math.min(1,Math.max(0,t))}function ct(t){return parseInt(t,16)}function ht(t){return 1==t.length?"0"+t:""+t}function ut(t){return t<=1&&(t=100*t+"%"),t}function dt(t){return Math.round(255*parseFloat(t)).toString(16)}function ft(t){return ct(t)/255}var pt=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function gt(t){return!!pt.CSS_UNIT.exec(t)}var bt=function(t){var e=0,i=0;return(0,z.A)(["r","g","b","a","h","s","l","v"],(function(n){if(t[n]&&(e+=1,isNaN(t[n])||(i+=1),"s"===n||"l"===n)){/^\d+%$/.test(t[n])&&(i+=1)}})),e===i&&t},mt=function(t,e){var i=t.hex?N(t.hex):N(t),n=i.toHsl(),r=i.toHsv(),o=i.toRgb(),s=i.toHex();return 0===n.s&&(n.h=e||0,r.h=e||0),{hsl:n,hex:"000000"===s&&0===o.a?"transparent":"#"+s,rgb:o,hsv:r,oldHue:t.h||e||n.h,source:t.source}},xt=function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&N(t).isValid()},vt=function(t){if(!t)return"#fff";var e=mt(t);return"transparent"===e.hex?"rgba(0,0,0,0.4)":(299*e.rgb.r+587*e.rgb.g+114*e.rgb.b)/1e3>=128?"#000":"#fff"},yt=function(t,e){return N(e+" ("+t.replace("\xb0","")+")")._ok},_t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},wt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();const kt=function(t){var e=function(e){function i(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.handleChange=function(t,i){if(bt(t)){var n=mt(t,t.h||e.state.oldHue);e.setState(n),e.props.onChangeComplete&&e.debounce(e.props.onChangeComplete,n,i),e.props.onChange&&e.props.onChange(n,i)}},e.handleSwatchHover=function(t,i){if(bt(t)){var n=mt(t,t.h||e.state.oldHue);e.props.onSwatchHover&&e.props.onSwatchHover(n,i)}},e.state=_t({},mt(t.color,0)),e.debounce=B((function(t,e,i){t(e,i)}),100),e}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(i,e),wt(i,[{key:"render",value:function(){var e={};return this.props.onSwatchHover&&(e.onSwatchHover=this.handleSwatchHover),n.createElement(t,_t({},this.props,this.state,{onChange:this.handleChange},e))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return _t({},mt(t.color,e.oldHue))}}]),i}(n.PureComponent||n.Component);return e.propTypes=_t({},t.propTypes),e.defaultProps=_t({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),e};var At=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Mt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function St(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var Et=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};const Ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function r(){var t,e,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];return e=i=St(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(o))),i.state={focus:!1},i.handleFocus=function(){return i.setState({focus:!0})},i.handleBlur=function(){return i.setState({focus:!1})},St(i,e)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,i),Mt(r,[{key:"render",value:function(){return n.createElement(e,{onFocus:this.handleFocus,onBlur:this.handleBlur},n.createElement(t,At({},this.props,this.state)))}}]),r}(n.Component)}((function(t){var e=t.color,i=t.style,o=t.onClick,s=void 0===o?function(){}:o,a=t.onHover,l=t.title,h=void 0===l?e:l,u=t.children,d=t.focus,f=t.focusStyle,p=void 0===f?{}:f,g="transparent"===e,b=(0,r.Ay)({default:{swatch:Et({background:e,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},i,d?p:{})}}),m={};return a&&(m.onMouseOver=function(t){return a(e,t)}),n.createElement("div",Et({style:b.swatch,onClick:function(t){return s(e,t)},title:h,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&s(e,t)}},m),u,g&&n.createElement(c,{borderRadius:b.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const Ot=function(t){var e=t.direction,i=(0,r.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===e});return n.createElement("div",{style:i.picker})};var Pt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Dt=function(t){var e=t.rgb,i=t.hsl,o=t.width,s=t.height,a=t.onChange,l=t.direction,c=t.style,h=t.renderers,u=t.pointer,d=t.className,p=void 0===d?"":d,g=(0,r.Ay)({default:{picker:{position:"relative",width:o,height:s},alpha:{radius:"2px",style:c}}});return n.createElement("div",{style:g.picker,className:"alpha-picker "+p},n.createElement(f,Pt({},g.alpha,{rgb:e,hsl:i,pointer:u,renderers:h,onChange:a,direction:l})))};Dt.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Ot};kt(Dt);var Bt=i(45572),Rt=i(8471),Tt=i(94288),Lt=i(38446);const Ft=function(t,e){var i=-1,n=(0,Lt.A)(t)?Array(t.length):[];return(0,Tt.A)(t,(function(t,r,o){n[++i]=e(t,r,o)})),n};var zt=i(92049);const jt=function(t,e){return((0,zt.A)(t)?Bt.A:Ft)(t,(0,Rt.A)(e,3))};const Ht=function(t){var e=t.colors,i=t.onClick,o=t.onSwatchHover,s=(0,r.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return n.createElement("div",{style:s.swatches},jt(e,(function(t){return n.createElement(Ct,{key:t,color:t,style:s.swatch,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}})})),n.createElement("div",{style:s.clear}))};var It=function(t){var e=t.onChange,i=t.onSwatchHover,o=t.hex,s=t.colors,a=t.width,l=t.triangle,h=t.styles,u=void 0===h?{}:h,d=t.className,f=void 0===d?"":d,p="transparent"===o,g=function(t,i){xt(t)&&e({hex:t,source:"hex"},i)},b=(0,r.Ay)((0,k.A)({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:vt(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},u),{"hide-triangle":"hide"===l});return n.createElement("div",{style:b.card,className:"block-picker "+f},n.createElement("div",{style:b.triangle}),n.createElement("div",{style:b.head},p&&n.createElement(c,{borderRadius:"6px 6px 0 0"}),n.createElement("div",{style:b.label},o)),n.createElement("div",{style:b.body},n.createElement(Ht,{colors:s,onClick:g,onSwatchHover:i}),n.createElement(m,{style:{input:b.input},value:o,onChange:g})))};It.propTypes={width:w().oneOfType([w().string,w().number]),colors:w().arrayOf(w().string),triangle:w().oneOf(["top","hide"]),styles:w().object},It.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};kt(It);var Nt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Wt={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Vt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ut={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},$t={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Yt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Gt={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Kt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},qt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Qt={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Zt={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Jt={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},te={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ee={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},ie={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},ne={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},re={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var oe=function(t){var e=t.color,i=t.onClick,o=t.onSwatchHover,s=t.hover,a=t.active,l=t.circleSize,c=t.circleSpacing,h=(0,r.Ay)({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+e,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+e}}},{hover:s,active:a});return n.createElement("div",{style:h.swatch},n.createElement(Ct,{style:h.Swatch,color:e,onClick:i,onHover:o,focusStyle:{boxShadow:h.Swatch.boxShadow+", 0 0 5px "+e}}))};oe.defaultProps={circleSize:28,circleSpacing:14};const se=(0,r.H8)(oe);var ae=function(t){var e=t.width,i=t.onChange,o=t.onSwatchHover,s=t.colors,a=t.hex,l=t.circleSize,c=t.styles,h=void 0===c?{}:c,u=t.circleSpacing,d=t.className,f=void 0===d?"":d,p=(0,r.Ay)((0,k.A)({default:{card:{width:e,display:"flex",flexWrap:"wrap",marginRight:-u,marginBottom:-u}}},h)),g=function(t,e){return i({hex:t,source:"hex"},e)};return n.createElement("div",{style:p.card,className:"circle-picker "+f},jt(s,(function(t){return n.createElement(se,{key:t,color:t,onClick:g,onSwatchHover:o,active:a===t.toLowerCase(),circleSize:l,circleSpacing:u})})))};ae.propTypes={width:w().oneOfType([w().string,w().number]),circleSize:w().number,circleSpacing:w().number,styles:w().object},ae.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Nt[500],Wt[500],Vt[500],Ut[500],$t[500],Xt[500],Yt[500],Gt[500],Kt[500],qt[500],Qt[500],Zt[500],Jt[500],te[500],ee[500],ie[500],ne[500],re[500]],styles:{}};kt(ae);var le=i(69592),ce=i(54657),he=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var ue=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.toggleViews=function(){"hex"===i.state.view?i.setState({view:"rgb"}):"rgb"===i.state.view?i.setState({view:"hsl"}):"hsl"===i.state.view&&(1===i.props.hsl.a?i.setState({view:"hex"}):i.setState({view:"rgb"}))},i.handleChange=function(t,e){t.hex?xt(t.hex)&&i.props.onChange({hex:t.hex,source:"hex"},e):t.r||t.g||t.b?i.props.onChange({r:t.r||i.props.rgb.r,g:t.g||i.props.rgb.g,b:t.b||i.props.rgb.b,source:"rgb"},e):t.a?(t.a<0?t.a=0:t.a>1&&(t.a=1),i.props.onChange({h:i.props.hsl.h,s:i.props.hsl.s,l:i.props.hsl.l,a:Math.round(100*t.a)/100,source:"rgb"},e)):(t.h||t.s||t.l)&&("string"===typeof t.s&&t.s.includes("%")&&(t.s=t.s.replace("%","")),"string"===typeof t.l&&t.l.includes("%")&&(t.l=t.l.replace("%","")),1==t.s?t.s=.01:1==t.l&&(t.l=.01),i.props.onChange({h:t.h||i.props.hsl.h,s:Number((0,le.A)(t.s)?i.props.hsl.s:t.s),l:Number((0,le.A)(t.l)?i.props.hsl.l:t.l),source:"hsl"},e))},i.showHighlight=function(t){t.currentTarget.style.background="#eee"},i.hideHighlight=function(t){t.currentTarget.style.background="transparent"},1!==t.hsl.a&&"hex"===t.view?i.state={view:"rgb"}:i.state={view:t.view},i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),he(e,[{key:"render",value:function(){var t=this,e=(0,r.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return"hex"===this.state.view?i=n.createElement("div",{style:e.fields,className:"flexbox-fix"},n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?i=n.createElement("div",{style:e.fields,className:"flexbox-fix"},n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),n.createElement("div",{style:e.alpha},n.createElement(m,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(i=n.createElement("div",{style:e.fields,className:"flexbox-fix"},n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),n.createElement("div",{style:e.field},n.createElement(m,{style:{input:e.input,label:e.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),n.createElement("div",{style:e.alpha},n.createElement(m,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),n.createElement("div",{style:e.wrap,className:"flexbox-fix"},i,n.createElement("div",{style:e.toggle},n.createElement("div",{style:e.icon,onClick:this.toggleViews,ref:function(e){return t.icon=e}},n.createElement(ce.A,{style:e.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return 1!==t.hsl.a&&"hex"===e.view?{view:"rgb"}:null}}]),e}(n.Component);ue.defaultProps={view:"hex"};const de=ue;const fe=function(){var t=(0,r.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return n.createElement("div",{style:t.picker})};const pe=function(){var t=(0,r.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return n.createElement("div",{style:t.picker})};var ge=function(t){var e=t.width,i=t.onChange,o=t.disableAlpha,s=t.rgb,a=t.hsl,l=t.hsv,h=t.hex,u=t.renderers,d=t.styles,p=void 0===d?{}:d,g=t.className,b=void 0===g?"":g,m=t.defaultView,x=(0,r.Ay)((0,k.A)({default:{picker:{width:e,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},p),{disableAlpha:o});return n.createElement("div",{style:x.picker,className:"chrome-picker "+b},n.createElement("div",{style:x.saturation},n.createElement(F,{style:x.Saturation,hsl:a,hsv:l,pointer:pe,onChange:i})),n.createElement("div",{style:x.body},n.createElement("div",{style:x.controls,className:"flexbox-fix"},n.createElement("div",{style:x.color},n.createElement("div",{style:x.swatch},n.createElement("div",{style:x.active}),n.createElement(c,{renderers:u}))),n.createElement("div",{style:x.toggles},n.createElement("div",{style:x.hue},n.createElement(y,{style:x.Hue,hsl:a,pointer:fe,onChange:i})),n.createElement("div",{style:x.alpha},n.createElement(f,{style:x.Alpha,rgb:s,hsl:a,pointer:fe,renderers:u,onChange:i})))),n.createElement(de,{rgb:s,hsl:a,hex:h,view:m,onChange:i,disableAlpha:o})))};ge.propTypes={width:w().oneOfType([w().string,w().number]),disableAlpha:w().bool,styles:w().object,defaultView:w().oneOf(["hex","rgb","hsl"])},ge.defaultProps={width:225,disableAlpha:!1,styles:{}};kt(ge);const be=function(t){var e=t.color,i=t.onClick,o=void 0===i?function(){}:i,s=t.onSwatchHover,a=t.active,l=(0,r.Ay)({default:{color:{background:e,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:vt(e),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===e,transparent:"transparent"===e});return n.createElement(Ct,{style:l.color,color:e,onClick:o,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}},n.createElement("div",{style:l.dot}))};const me=function(t){var e=t.hex,i=t.rgb,o=t.onChange,s=(0,r.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:e},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(t,e){t.r||t.g||t.b?o({r:t.r||i.r,g:t.g||i.g,b:t.b||i.b,source:"rgb"},e):o({hex:t.hex,source:"hex"},e)};return n.createElement("div",{style:s.fields,className:"flexbox-fix"},n.createElement("div",{style:s.active}),n.createElement(m,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:e,onChange:a}),n.createElement(m,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:i.r,onChange:a}),n.createElement(m,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:i.g,onChange:a}),n.createElement(m,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:i.b,onChange:a}))};var xe=function(t){var e=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,a=t.rgb,l=t.styles,c=void 0===l?{}:l,h=t.className,u=void 0===h?"":h,d=(0,r.Ay)((0,k.A)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},c)),f=function(t,i){t.hex?xt(t.hex)&&e({hex:t.hex,source:"hex"},i):e(t,i)};return n.createElement(M,{style:d.Compact,styles:c},n.createElement("div",{style:d.compact,className:"compact-picker "+u},n.createElement("div",null,jt(o,(function(t){return n.createElement(be,{key:t,color:t,active:t.toLowerCase()===s,onClick:f,onSwatchHover:i})})),n.createElement("div",{style:d.clear})),n.createElement(me,{hex:s,rgb:a,onChange:f})))};xe.propTypes={colors:w().arrayOf(w().string),styles:w().object},xe.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};kt(xe);const ve=(0,r.H8)((function(t){var e=t.hover,i=t.color,o=t.onClick,s=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,r.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:e});return n.createElement("div",{style:l.swatch},n.createElement(Ct,{color:i,onClick:o,onHover:s,focusStyle:a}))}));var ye=function(t){var e=t.width,i=t.colors,o=t.onChange,s=t.onSwatchHover,a=t.triangle,l=t.styles,c=void 0===l?{}:l,h=t.className,u=void 0===h?"":h,d=(0,r.Ay)((0,k.A)({default:{card:{width:e,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},c),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),f=function(t,e){return o({hex:t,source:"hex"},e)};return n.createElement("div",{style:d.card,className:"github-picker "+u},n.createElement("div",{style:d.triangleShadow}),n.createElement("div",{style:d.triangle}),jt(i,(function(t){return n.createElement(ve,{color:t,key:t,onClick:f,onSwatchHover:s})})))};ye.propTypes={width:w().oneOfType([w().string,w().number]),colors:w().arrayOf(w().string),triangle:w().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:w().object},ye.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};kt(ye);const _e=function(t){var e=t.direction,i=(0,r.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===e});return n.createElement("div",{style:i.picker})};var we=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},ke=function(t){var e=t.width,i=t.height,o=t.onChange,s=t.hsl,a=t.direction,l=t.pointer,c=t.styles,h=void 0===c?{}:c,u=t.className,d=void 0===u?"":u,f=(0,r.Ay)((0,k.A)({default:{picker:{position:"relative",width:e,height:i},hue:{radius:"2px"}}},h));return n.createElement("div",{style:f.picker,className:"hue-picker "+d},n.createElement(y,we({},f.hue,{hsl:s,pointer:l,onChange:function(t){return o({a:1,h:t.h,l:.5,s:1})},direction:a})))};ke.propTypes={styles:w().object},ke.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:_e,styles:{}};kt(ke);kt((function(t){var e=t.onChange,i=t.hex,o=t.rgb,s=t.styles,a=void 0===s?{}:s,l=t.className,c=void 0===l?"":l,h=(0,r.Ay)((0,k.A)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+i,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),u=function(t,i){t.hex?xt(t.hex)&&e({hex:t.hex,source:"hex"},i):(t.r||t.g||t.b)&&e({r:t.r||o.r,g:t.g||o.g,b:t.b||o.b,source:"rgb"},i)};return n.createElement(M,{styles:a},n.createElement("div",{style:h.material,className:"material-picker "+c},n.createElement(m,{style:{wrap:h.HEXwrap,input:h.HEXinput,label:h.HEXlabel},label:"hex",value:i,onChange:u}),n.createElement("div",{style:h.split,className:"flexbox-fix"},n.createElement("div",{style:h.third},n.createElement(m,{style:{wrap:h.RGBwrap,input:h.RGBinput,label:h.RGBlabel},label:"r",value:o.r,onChange:u})),n.createElement("div",{style:h.third},n.createElement(m,{style:{wrap:h.RGBwrap,input:h.RGBinput,label:h.RGBlabel},label:"g",value:o.g,onChange:u})),n.createElement("div",{style:h.third},n.createElement(m,{style:{wrap:h.RGBwrap,input:h.RGBinput,label:h.RGBlabel},label:"b",value:o.b,onChange:u})))))}));const Ae=function(t){var e=t.onChange,i=t.rgb,o=t.hsv,s=t.hex,a=(0,r.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(t,n){t["#"]?xt(t["#"])&&e({hex:t["#"],source:"hex"},n):t.r||t.g||t.b?e({r:t.r||i.r,g:t.g||i.g,b:t.b||i.b,source:"rgb"},n):(t.h||t.s||t.v)&&e({h:t.h||o.h,s:t.s||o.s,v:t.v||o.v,source:"hsv"},n)};return n.createElement("div",{style:a.fields},n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(o.h),onChange:l}),n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*o.s),onChange:l}),n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*o.v),onChange:l}),n.createElement("div",{style:a.divider}),n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:i.r,onChange:l}),n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:i.g,onChange:l}),n.createElement(m,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:i.b,onChange:l}),n.createElement("div",{style:a.divider}),n.createElement(m,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:s.replace("#",""),onChange:l}),n.createElement("div",{style:a.fieldSymbols},n.createElement("div",{style:a.symbol},"\xb0"),n.createElement("div",{style:a.symbol},"%"),n.createElement("div",{style:a.symbol},"%")))};const Me=function(t){var e=t.hsl,i=(0,r.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":e.l>.5});return n.createElement("div",{style:i.picker})};const Se=function(){var t=(0,r.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return n.createElement("div",{style:t.pointer},n.createElement("div",{style:t.left},n.createElement("div",{style:t.leftInside})),n.createElement("div",{style:t.right},n.createElement("div",{style:t.rightInside})))};const Ee=function(t){var e=t.onClick,i=t.label,o=t.children,s=t.active,a=(0,r.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:s});return n.createElement("div",{style:a.button,onClick:e},i||o)};const Ce=function(t){var e=t.rgb,i=t.currentColor,o=(0,r.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+e.r+","+e.g+", "+e.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:i,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.createElement("div",null,n.createElement("div",{style:o.label},"new"),n.createElement("div",{style:o.swatches},n.createElement("div",{style:o.new}),n.createElement("div",{style:o.current})),n.createElement("div",{style:o.label},"current"))};var Oe=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var Pe=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.state={currentColor:t.hex},i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Oe(e,[{key:"render",value:function(){var t=this.props,e=t.styles,i=void 0===e?{}:e,o=t.className,s=void 0===o?"":o,a=(0,r.Ay)((0,k.A)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return n.createElement("div",{style:a.picker,className:"photoshop-picker "+s},n.createElement("div",{style:a.head},this.props.header),n.createElement("div",{style:a.body,className:"flexbox-fix"},n.createElement("div",{style:a.saturation},n.createElement(F,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Me,onChange:this.props.onChange})),n.createElement("div",{style:a.hue},n.createElement(y,{direction:"vertical",hsl:this.props.hsl,pointer:Se,onChange:this.props.onChange})),n.createElement("div",{style:a.controls},n.createElement("div",{style:a.top,className:"flexbox-fix"},n.createElement("div",{style:a.previews},n.createElement(Ce,{rgb:this.props.rgb,currentColor:this.state.currentColor})),n.createElement("div",{style:a.actions},n.createElement(Ee,{label:"OK",onClick:this.props.onAccept,active:!0}),n.createElement(Ee,{label:"Cancel",onClick:this.props.onCancel}),n.createElement(Ae,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),e}(n.Component);Pe.propTypes={header:w().string,styles:w().object},Pe.defaultProps={header:"Color Picker",styles:{}};kt(Pe);const De=function(t){var e=t.onChange,i=t.rgb,o=t.hsl,s=t.hex,a=t.disableAlpha,l=(0,r.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),c=function(t,n){t.hex?xt(t.hex)&&e({hex:t.hex,source:"hex"},n):t.r||t.g||t.b?e({r:t.r||i.r,g:t.g||i.g,b:t.b||i.b,a:i.a,source:"rgb"},n):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,e({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},n))};return n.createElement("div",{style:l.fields,className:"flexbox-fix"},n.createElement("div",{style:l.double},n.createElement(m,{style:{input:l.input,label:l.label},label:"hex",value:s.replace("#",""),onChange:c})),n.createElement("div",{style:l.single},n.createElement(m,{style:{input:l.input,label:l.label},label:"r",value:i.r,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.single},n.createElement(m,{style:{input:l.input,label:l.label},label:"g",value:i.g,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.single},n.createElement(m,{style:{input:l.input,label:l.label},label:"b",value:i.b,onChange:c,dragLabel:"true",dragMax:"255"})),n.createElement("div",{style:l.alpha},n.createElement(m,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*i.a),onChange:c,dragLabel:"true",dragMax:"100"})))};var Be=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Re=function(t){var e=t.colors,i=t.onClick,o=void 0===i?function(){}:i,s=t.onSwatchHover,a=(0,r.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!e||!e.length}),l=function(t,e){o({hex:t,source:"hex"},e)};return n.createElement("div",{style:a.colors,className:"flexbox-fix"},e.map((function(t){var e="string"===typeof t?{color:t}:t,i=""+e.color+(e.title||"");return n.createElement("div",{key:i,style:a.swatchWrap},n.createElement(Ct,Be({},e,{style:a.swatch,onClick:l,onHover:s,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+e.color}})))})))};Re.propTypes={colors:w().arrayOf(w().oneOfType([w().string,w().shape({color:w().string,title:w().string})])).isRequired};const Te=Re;var Le=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Fe=function(t){var e=t.width,i=t.rgb,o=t.hex,s=t.hsv,a=t.hsl,l=t.onChange,h=t.onSwatchHover,u=t.disableAlpha,d=t.presetColors,p=t.renderers,g=t.styles,b=void 0===g?{}:g,m=t.className,x=void 0===m?"":m,v=(0,r.Ay)((0,k.A)({default:Le({picker:{width:e,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+i.r+","+i.g+","+i.b+","+i.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},b),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},b),{disableAlpha:u});return n.createElement("div",{style:v.picker,className:"sketch-picker "+x},n.createElement("div",{style:v.saturation},n.createElement(F,{style:v.Saturation,hsl:a,hsv:s,onChange:l})),n.createElement("div",{style:v.controls,className:"flexbox-fix"},n.createElement("div",{style:v.sliders},n.createElement("div",{style:v.hue},n.createElement(y,{style:v.Hue,hsl:a,onChange:l})),n.createElement("div",{style:v.alpha},n.createElement(f,{style:v.Alpha,rgb:i,hsl:a,renderers:p,onChange:l}))),n.createElement("div",{style:v.color},n.createElement(c,null),n.createElement("div",{style:v.activeColor}))),n.createElement(De,{rgb:i,hsl:a,hex:o,onChange:l,disableAlpha:u}),n.createElement(Te,{colors:d,onClick:l,onSwatchHover:h}))};Fe.propTypes={disableAlpha:w().bool,width:w().oneOfType([w().string,w().number]),styles:w().object},Fe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};kt(Fe);const ze=function(t){var e=t.hsl,i=t.offset,o=t.onClick,s=void 0===o?function(){}:o,a=t.active,l=t.first,c=t.last,h=(0,r.Ay)({default:{swatch:{height:"12px",background:"hsl("+e.h+", 50%, "+100*i+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:l,last:c});return n.createElement("div",{style:h.swatch,onClick:function(t){return s({h:e.h,s:.5,l:i,source:"hsl"},t)}})};const je=function(t){var e=t.onClick,i=t.hsl,o=(0,r.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),s=.1;return n.createElement("div",{style:o.swatches},n.createElement("div",{style:o.swatch},n.createElement(ze,{hsl:i,offset:".80",active:Math.abs(i.l-.8)<s&&Math.abs(i.s-.5)<s,onClick:e,first:!0})),n.createElement("div",{style:o.swatch},n.createElement(ze,{hsl:i,offset:".65",active:Math.abs(i.l-.65)<s&&Math.abs(i.s-.5)<s,onClick:e})),n.createElement("div",{style:o.swatch},n.createElement(ze,{hsl:i,offset:".50",active:Math.abs(i.l-.5)<s&&Math.abs(i.s-.5)<s,onClick:e})),n.createElement("div",{style:o.swatch},n.createElement(ze,{hsl:i,offset:".35",active:Math.abs(i.l-.35)<s&&Math.abs(i.s-.5)<s,onClick:e})),n.createElement("div",{style:o.swatch},n.createElement(ze,{hsl:i,offset:".20",active:Math.abs(i.l-.2)<s&&Math.abs(i.s-.5)<s,onClick:e,last:!0})),n.createElement("div",{style:o.clear}))};const He=function(){var t=(0,r.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return n.createElement("div",{style:t.picker})};var Ie=function(t){var e=t.hsl,i=t.onChange,o=t.pointer,s=t.styles,a=void 0===s?{}:s,l=t.className,c=void 0===l?"":l,h=(0,r.Ay)((0,k.A)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return n.createElement("div",{style:h.wrap||{},className:"slider-picker "+c},n.createElement("div",{style:h.hue},n.createElement(y,{style:h.Hue,hsl:e,pointer:o,onChange:i})),n.createElement("div",{style:h.swatches},n.createElement(je,{hsl:e,onClick:i})))};Ie.propTypes={styles:w().object},Ie.defaultProps={pointer:He,styles:{}};kt(Ie);var Ne=i(20748);const We=function(t){var e=t.color,i=t.onClick,o=void 0===i?function(){}:i,s=t.onSwatchHover,a=t.first,l=t.last,c=t.active,h=(0,r.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:e,marginBottom:"1px"},check:{color:vt(e),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:l,active:c,"color-#FFFFFF":"#FFFFFF"===e,transparent:"transparent"===e});return n.createElement(Ct,{color:e,style:h.color,onClick:o,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}},n.createElement("div",{style:h.check},n.createElement(Ne.A,null)))};const Ve=function(t){var e=t.onClick,i=t.onSwatchHover,o=t.group,s=t.active,a=(0,r.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return n.createElement("div",{style:a.group},jt(o,(function(t,r){return n.createElement(We,{key:t,color:t,active:t.toLowerCase()===s,first:0===r,last:r===o.length-1,onClick:e,onSwatchHover:i})})))};var Ue=function(t){var e=t.width,i=t.height,o=t.onChange,s=t.onSwatchHover,a=t.colors,l=t.hex,c=t.styles,h=void 0===c?{}:c,u=t.className,d=void 0===u?"":u,f=(0,r.Ay)((0,k.A)({default:{picker:{width:e,height:i},overflow:{height:i,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},h)),p=function(t,e){return o({hex:t,source:"hex"},e)};return n.createElement("div",{style:f.picker,className:"swatches-picker "+d},n.createElement(M,null,n.createElement("div",{style:f.overflow},n.createElement("div",{style:f.body},jt(a,(function(t){return n.createElement(Ve,{key:t.toString(),group:t,active:l,onClick:p,onSwatchHover:s})})),n.createElement("div",{style:f.clear})))))};Ue.propTypes={width:w().oneOfType([w().string,w().number]),height:w().oneOfType([w().string,w().number]),colors:w().arrayOf(w().arrayOf(w().string)),styles:w().object},Ue.defaultProps={width:320,height:240,colors:[[Nt[900],Nt[700],Nt[500],Nt[300],Nt[100]],[Wt[900],Wt[700],Wt[500],Wt[300],Wt[100]],[Vt[900],Vt[700],Vt[500],Vt[300],Vt[100]],[Ut[900],Ut[700],Ut[500],Ut[300],Ut[100]],[$t[900],$t[700],$t[500],$t[300],$t[100]],[Xt[900],Xt[700],Xt[500],Xt[300],Xt[100]],[Yt[900],Yt[700],Yt[500],Yt[300],Yt[100]],[Gt[900],Gt[700],Gt[500],Gt[300],Gt[100]],[Kt[900],Kt[700],Kt[500],Kt[300],Kt[100]],["#194D33",qt[700],qt[500],qt[300],qt[100]],[Qt[900],Qt[700],Qt[500],Qt[300],Qt[100]],[Zt[900],Zt[700],Zt[500],Zt[300],Zt[100]],[Jt[900],Jt[700],Jt[500],Jt[300],Jt[100]],[te[900],te[700],te[500],te[300],te[100]],[ee[900],ee[700],ee[500],ee[300],ee[100]],[ie[900],ie[700],ie[500],ie[300],ie[100]],[ne[900],ne[700],ne[500],ne[300],ne[100]],[re[900],re[700],re[500],re[300],re[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};kt(Ue);var $e=function(t){var e=t.onChange,i=t.onSwatchHover,o=t.hex,s=t.colors,a=t.width,l=t.triangle,c=t.styles,h=void 0===c?{}:c,u=t.className,d=void 0===u?"":u,f=(0,r.Ay)((0,k.A)({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),p=function(t,i){xt(t)&&e({hex:t,source:"hex"},i)};return n.createElement("div",{style:f.card,className:"twitter-picker "+d},n.createElement("div",{style:f.triangleShadow}),n.createElement("div",{style:f.triangle}),n.createElement("div",{style:f.body},jt(s,(function(t,e){return n.createElement(Ct,{key:e,color:t,hex:t,style:f.swatch,onClick:p,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}})})),n.createElement("div",{style:f.hash},"#"),n.createElement(m,{label:null,style:{input:f.input},value:o.replace("#",""),onChange:p}),n.createElement("div",{style:f.clear})))};$e.propTypes={width:w().oneOfType([w().string,w().number]),triangle:w().oneOf(["hide","top-left","top-right"]),colors:w().arrayOf(w().string),styles:w().object},$e.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};kt($e);var Xe=function(t){var e=(0,r.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(100*t.hsl.s)+"%, "+Math.round(100*t.hsl.l)+"%)"}}});return n.createElement("div",{style:e.picker})};Xe.propTypes={hsl:w().shape({h:w().number,s:w().number,l:w().number,a:w().number})},Xe.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Ye=Xe;var Ge=function(t){var e=(0,r.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return n.createElement("div",{style:e.picker})};Ge.propTypes={hsl:w().shape({h:w().number,s:w().number,l:w().number,a:w().number})},Ge.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Ke=Ge;const qe=function(t){var e=t.onChange,i=t.rgb,o=t.hsl,s=t.hex,a=t.hsv,l=function(t,i){if(t.hex)xt(t.hex)&&e({hex:t.hex,source:"hex"},i);else if(t.rgb){var n=t.rgb.split(",");yt(t.rgb,"rgb")&&e({r:n[0],g:n[1],b:n[2],a:1,source:"rgb"},i)}else if(t.hsv){var r=t.hsv.split(",");yt(t.hsv,"hsv")&&(r[2]=r[2].replace("%",""),r[1]=r[1].replace("%",""),r[0]=r[0].replace("\xb0",""),1==r[1]?r[1]=.01:1==r[2]&&(r[2]=.01),e({h:Number(r[0]),s:Number(r[1]),v:Number(r[2]),source:"hsv"},i))}else if(t.hsl){var o=t.hsl.split(",");yt(t.hsl,"hsl")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\xb0",""),1==d[1]?d[1]=.01:1==d[2]&&(d[2]=.01),e({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsl"},i))}},c=(0,r.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),h=i.r+", "+i.g+", "+i.b,u=Math.round(o.h)+"\xb0, "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%",d=Math.round(a.h)+"\xb0, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return n.createElement("div",{style:c.wrap,className:"flexbox-fix"},n.createElement("div",{style:c.fields},n.createElement("div",{style:c.double},n.createElement(m,{style:{input:c.input,label:c.label},label:"hex",value:s,onChange:l})),n.createElement("div",{style:c.column},n.createElement("div",{style:c.single},n.createElement(m,{style:{input:c.input2,label:c.label2},label:"rgb",value:h,onChange:l})),n.createElement("div",{style:c.single},n.createElement(m,{style:{input:c.input2,label:c.label2},label:"hsv",value:d,onChange:l})),n.createElement("div",{style:c.single},n.createElement(m,{style:{input:c.input2,label:c.label2},label:"hsl",value:u,onChange:l})))))};var Qe=function(t){var e=t.width,i=t.onChange,o=t.rgb,s=t.hsl,a=t.hsv,l=t.hex,c=t.header,h=t.styles,u=void 0===h?{}:h,d=t.className,f=void 0===d?"":d,p=(0,r.Ay)((0,k.A)({default:{picker:{width:e,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},u));return n.createElement("div",{style:p.picker,className:"google-picker "+f},n.createElement("div",{style:p.head},c),n.createElement("div",{style:p.swatch}),n.createElement("div",{style:p.saturation},n.createElement(F,{hsl:s,hsv:a,pointer:Ye,onChange:i})),n.createElement("div",{style:p.body},n.createElement("div",{style:p.controls,className:"flexbox-fix"},n.createElement("div",{style:p.hue},n.createElement(y,{style:p.Hue,hsl:s,radius:"4px",pointer:Ke,onChange:i}))),n.createElement(qe,{rgb:o,hsl:s,hex:l,hsv:a,onChange:i})))};Qe.propTypes={width:w().oneOfType([w().string,w().number]),styles:w().object,header:w().string},Qe.defaultProps={width:652,styles:{},header:"Color picker"};kt(Qe)},88055:(t,e,i)=>{var n=i(9999);t.exports=function(t){return n(t,5)}},89469:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});const n=function(){this.__data__=[],this.size=0};var r=i(66984);const o=function(t,e){for(var i=t.length;i--;)if((0,r.A)(t[i][0],e))return i;return-1};var s=Array.prototype.splice;const a=function(t){var e=this.__data__,i=o(e,t);return!(i<0)&&(i==e.length-1?e.pop():s.call(e,i,1),--this.size,!0)};const l=function(t){var e=this.__data__,i=o(e,t);return i<0?void 0:e[i][1]};const c=function(t){return o(this.__data__,t)>-1};const h=function(t,e){var i=this.__data__,n=o(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this};function u(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=c,u.prototype.set=h;const d=u},89557:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(43240),i(81380),function(){var t=e,i=t.x64,n=i.Word,r=i.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384)}()},89610:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(2383),r=i(23149);const o=function(t){if(!(0,r.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},90565:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(43988);const r=function(t){var e=new t.constructor(t.byteLength);return new n.A(e).set(new n.A(t)),e}},92049:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=Array.isArray},94288:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(79841),r=i(38446);const o=function(t,e){return function(i,n){if(null==i)return i;if(!(0,r.A)(i))return t(i,n);for(var o=i.length,s=e?o:-1,a=Object(i);(e?s--:++s<o)&&!1!==n(a[s],s,a););return i}}(n.A)},96298:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(80754),i(84636),i(39506),i(57165),function(){var t=e,i=t.lib.StreamCipher,n=t.algo,r=[],o=[],s=[],a=n.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;for(r[0]^=c,r[1]^=u,r[2]^=h,r[3]^=d,r[4]^=c,r[5]^=u,r[6]^=h,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var i=this._X;l.call(this),r[0]=i[0]^i[5]>>>16^i[3]<<16,r[1]=i[2]^i[7]>>>16^i[5]<<16,r[2]=i[4]^i[1]>>>16^i[7]<<16,r[3]=i[6]^i[3]>>>16^i[1]<<16;for(var n=0;n<4;n++)r[n]=16711935&(r[n]<<8|r[n]>>>24)|4278255360&(r[n]<<24|r[n]>>>8),t[e+n]^=r[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,i=0;i<8;i++)o[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],r=65535&n,a=n>>>16,l=((r*r>>>17)+r*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[i]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=i._createHelper(a)}(),e.Rabbit)}()},96837:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},96939:function(t,e,i){!function(){var e;t.exports=(e=i(19021),i(57165),e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),i=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var s=o.slice(0);i.encryptBlock(s,0),o[n-1]=o[n-1]+1|0;for(var a=0;a<n;a++)t[e+a]^=s[a]}});return t.Decryptor=i,t}(),e.mode.CTR)}()},97132:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=function(t){return function(e,i,n){for(var r=-1,o=Object(e),s=n(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===i(o[l],l,o))break}return e}}()},97271:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=Object.prototype;const r=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},99265:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flattenNames=void 0;var n=a(i(85015)),r=a(i(33215)),o=a(i(11331)),s=a(i(55378));function a(t){return t&&t.__esModule?t:{default:t}}var l=e.flattenNames=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=[];return(0,s.default)(e,(function(e){Array.isArray(e)?t(e).map((function(t){return i.push(t)})):(0,o.default)(e)?(0,r.default)(e,(function(t,e){!0===t&&i.push(e),i.push(e+"-"+t)})):(0,n.default)(e)&&i.push(e)})),i};e.default=l},99922:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(29008);const r=function(t){return"function"==typeof t?t:n.A}}}]);