@xfers/design-system 5.0.0-dev.66861fe8a7 → 5.0.0-dev.6a2d2b2b0e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/Input/index.js +0 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Modal/DialogItems.js +37 -0
- package/dist/components/Modal/DialogItems.js.map +1 -0
- package/dist/components/Modal/index.js +29 -32
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.js +42 -0
- package/dist/components/Modal/styles.js.map +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/shared/modalContext.js +1 -1
- package/dist/shared/modalContext.js.map +1 -1
- package/dist/types/components/Modal/DialogItems.d.ts +13 -0
- package/dist/types/components/Modal/index.d.ts +9 -2
- package/dist/types/components/Modal/styles.d.ts +17 -0
- package/dist/types/index.d.ts +1 -0
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("antd"),n=require("./StraitsXDecoVertical-70fd7a91.js"),i=require("./_tslib-33b9f00a.js"),o=require("react-dom"),r=require("./StraitsXPersonalAccountLightLogo-44c49e48.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=a(t),l=a(o);var c=function(){function t(t){this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{var r=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,r?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},t}();function d(t){function e(t,i,l,c,u){for(var p,f,g,m,y,w=0,k=0,S=0,E=0,O=0,R=0,P=g=p=0,N=0,F=0,z=0,B=0,j=l.length,Y=j-1,H="",W="",V="",U="";N<j;){if(f=l.charCodeAt(N),N===Y&&0!==k+E+S+w&&(0!==k&&(f=47===k?10:47),E=S=w=0,j++,Y++),0===k+E+S+w){if(N===Y&&(0<F&&(H=H.replace(h,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(N)}f=59}switch(f){case 123:for(p=(H=H.trim()).charCodeAt(0),g=1,B=++N;N<j;){switch(f=l.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:t:{for(P=N+1;P<Y;++P)switch(l.charCodeAt(P)){case 47:if(42===f&&42===l.charCodeAt(P-1)&&N+2!==P){N=P+1;break t}break;case 10:if(47===f){N=P+1;break t}}N=P}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<Y&&l.charCodeAt(N)!==f;);}if(0===g)break;N++}if(g=l.substring(B,N),0===p&&(p=(H=H.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(H=H.replace(h,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=i;break;default:F=A}if(B=(g=e(i,F,g,f,u+1)).length,0<L&&(y=s(3,g,F=n(A,H,z),i,M,T,B,f,u,c),H=F.join(""),void 0!==y&&0===(B=(g=y.trim()).length)&&(f=0,g="")),0<B)switch(f){case 115:H=H.replace(_,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(b,"$1 $2"))+"{"+g+"}",g=1===C||2===C&&r("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===c&&(W+=g,g="")}else g=""}else g=e(i,n(i,H,z),g,c,u+1);V+=g,g=z=F=P=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(B=(H=(0<F?H.replace(h,""):H).trim()).length))switch(0===P&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(B=(H=H.replace(" ",":")).length),0<L&&void 0!==(y=s(1,H,i,t,M,T,W.length,c,u,c))&&0===(B=(H=y.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),f=H.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=H+l.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}z=F=P=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<H.length&&(F=1,H+="\0"),0<L*I&&s(0,H,i,t,M,T,W.length,c,u,c),T=1,M++;break;case 59:case 125:if(0===k+E+S+w){T++;break}default:switch(T++,m=l.charAt(N),f){case 9:case 32:if(0===E+w+k)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+w&&(F=z=1,m="\f"+m);break;case 108:if(0===E+k+w+D&&0<P)switch(N-P){case 2:112===O&&58===l.charCodeAt(N-3)&&(D=O);case 8:111===R&&(D=R)}break;case 58:0===E+k+w&&(P=N);break;case 44:0===k+S+E+w&&(F=1,m+="\r");break;case 34:case 39:0===k&&(E=E===f?0:0===E?f:E);break;case 91:0===E+k+S&&w++;break;case 93:0===E+k+S&&w--;break;case 41:0===E+k+w&&S--;break;case 40:if(0===E+k+w){if(0===p)if(2*O+3*R==533);else p=1;S++}break;case 64:0===k+S+E+w+P+g&&(g=1);break;case 42:case 47:if(!(0<E+w+S))switch(k){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:k=47;break;case 220:B=N,k=42}break;case 42:47===f&&42===O&&B+2!==N&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,N+1)),m="",k=0)}}0===k&&(H+=m)}R=O,O=f,N++}if(0<(B=W.length)){if(F=i,0<L&&(void 0!==(y=s(2,W,F,t,M,T,B,c,u,c))&&0===(W=y).length))return U+W+V;if(W=F.join(",")+"{"+W+"}",0!==C*D){switch(2!==C||r(W,2)||(D=0),D){case 111:W=W.replace(v,":-moz-$1")+W;break;case 112:W=W.replace(x,"::-webkit-input-$1")+W.replace(x,"::-moz-$1")+W.replace(x,":-ms-input-$1")+W}D=0}}return U+W+V}function n(t,e,n){var o=e.trim().split(g);e=o;var r=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<r;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<r;++s)for(var c=0;c<a;++c)e[l++]=i(t[c]+" ",o[s],n).trim()}return e}function i(t,e,n){var i=e.charCodeAt(0);switch(33>i&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(m,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var a=t+";",s=2*e+3*n+4*i;if(944===s){t=a.indexOf(":",9)+1;var l=a.substring(t,a.length-1).trim();return l=a.substring(0,t).trim()+l+";",1===C||2===C&&r(l,1)?"-webkit-"+l+l:l}if(0===C||2===C&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(u,":-webkit-")+a.replace(u,":-moz-")+a:a;case 1e3:switch(e=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=a.replace(y,"tb");break;case 232:l=a.replace(y,"tb-rl");break;case 220:l=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,s=(l=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,n,i).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function r(t,e){var n=t.indexOf(1===e?":":"{"),i=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),P(2!==e?i:i.replace(S,"$1"),n,e)}function a(t,e){var n=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(w," or ($1)").substring(4):"("+e+")"}function s(t,e,n,i,o,r,a,s,l,d){for(var h,u=0,p=e;u<L;++u)switch(h=R[u].call(c,t,p,n,i,o,r,a,s,l,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(P=null,t?"function"!=typeof t?C=1:(C=2,P=t):C=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<L){var o=s(-1,n,i,i,M,T,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=e(A,i,n,0,0);return 0<L&&(void 0!==(o=s(-2,r,i,i,M,T,r.length,0,0,0))&&(r=o)),D=0,T=M=1,r}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,T=1,M=1,D=0,C=1,A=[],R=[],L=0,P=null,I=0;return c.use=function t(e){switch(e){case void 0:case null:L=R.length=0;break;default:if("function"==typeof e)R[L++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else I=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var h=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}},u="/*|*/",p=u+"}";function f(t){t&&g.current.insert(t+"}")}var g={current:null},m=function(t,e,n,i,o,r,a,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return g.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+u;break;case 3:switch(s){case 102:case 112:return g.current.insert(n[0]+e),"";default:return e+(0===c?u:"")}case-2:e.split(p).forEach(f)}},b=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},x="undefined"!=typeof document,v={},y=x?void 0:h(function(){var t=h(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),_=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new d(e);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,r,a={};if(x){o=t.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach(function(t){a[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(x)i.use(t.stylisPlugins)(m),r=function(t,e,n,o){var r=e.name;if(g.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var a=e.map;g.current={insert:function(t){n.insert(t+a)}}}i(t,e.styles),o&&(p.inserted[r]=!0)};else{i.use(b);var l=v;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=y(t.stylisPlugins||v)(t.prefix));r=function(t,e,n,o){var r=e.name,a=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=i(t,e.styles)),l[n]}(t,e);return void 0===p.compat?(o&&(p.inserted[r]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?a+e.map:a):o?void(p.inserted[r]=a):a}}if("production"!==process.env.NODE_ENV){var h=/\/\*/g,u=/\*\//g;i.use(function(t,e){if(-1===t){for(;h.test(e);){if(u.lastIndex=h.lastIndex,!u.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');h.lastIndex=u.lastIndex}h.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==p.compat&&i.forEach(function(t){var n=new RegExp(t+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(e);t&&!n&&console.error('The pseudo class "'+t+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+t.split("-child")[0]+'-of-type".')})}})}var p={key:n,sheet:new c({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:a,registered:{},insert:r};return p};function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,S={exports:{}},E={};var O,T,M={};var D=w((T||(T=1,"production"===process.env.NODE_ENV?S.exports=(k||(k=1,Object.defineProperty(E,"__esModule",{value:!0}),E.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),E):S.exports=(O||(O=1,Object.defineProperty(M,"__esModule",{value:!0}),M.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),M)),S.exports));function C(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var A="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",R="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",L=/[A-Z]|^ms/g,P=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},N=function(t){return null!=t&&"boolean"!=typeof t},F=C(function(t){return I(t)?t:t.replace(L,"-$&").toLowerCase()}),z=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(P,function(t,e,n){return X={name:e,styles:n,next:X},e})}return 1===D[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var B=/(attr|calc|counters?|url)\(/,j=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Y=z,H=/^-ms-/,W=/-(.)/g,V={};z=function(t,e){"content"===t&&("string"!=typeof e||-1===j.indexOf(e)&&!B.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+e+"\"'`");var n=Y(t,e);return""===n||I(t)||-1===t.indexOf("-")||void 0!==V[t]||(V[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(H,"ms-").replace(W,function(t,e){return e.toUpperCase()})+"?")),n}}var U=!0;function G(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return X={name:n.name,styles:n.styles,next:X},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)X={name:o.name,styles:o.styles,next:X},o=o.next;var r=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(r+=n.map),r}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=G(t,e,n[o],!1);else for(var r in n){var a=n[r];if("object"!=typeof a)null!=e&&void 0!==e[a]?i+=r+"{"+e[a]+"}":N(a)&&(i+=F(r)+":"+z(r,a)+";");else{if("NO_COMPONENT_SELECTOR"===r&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=G(t,e,a,!1);switch(r){case"animation":case"animationName":i+=F(r)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===r&&console.error(R),i+=r+"{"+s+"}"}}else for(var l=0;l<a.length;l++)N(a[l])&&(i+=F(r)+":"+z(r,a[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=X,s=n(t);return X=a,G(t,e,s,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(P,function(t,e,n){var i="animation"+l.length;return l.push("const "+i+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+i+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==e)return n;var d=e[n];return"production"!==process.env.NODE_ENV&&i&&U&&void 0!==d&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),U=!1),void 0===d||i?n:d}var $,X,q=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&($=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Z=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";X=void 0;var r,a=t[0];null==a||void 0===a.raw?(i=!1,o+=G(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(A),o+=a[0]);for(var s=1;s<t.length;s++)o+=G(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(A),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace($,function(t){return r=t,""})),q.lastIndex=0;for(var l,c="";null!==(l=q.exec(o));)c+="-"+l[1];var d=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:o,map:r,next:X,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:X}},K="undefined"!=typeof document;function J(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var Q=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===K&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",r=e;do{var a=t.insert("."+i,r,t.sheet,!0);K||void 0===a||(o+=a),r=r.next}while(void 0!==r);if(!K&&0!==o.length)return o}};function tt(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function et(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}var nt,it,ot,rt,at,st,lt,ct,dt,ht,ut,pt,ft,gt=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var r=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))r=t(o);else for(var a in r="",o)o[a]&&a&&(r&&(r+=" "),r+=a);break;default:r=o}r&&(n&&(n+=" "),n+=r)}}return n},mt=function(t){var e=_(t);e.sheet.speedy=function(t){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered,void 0);return Q(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return et(e.registered,n,gt(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered);tt(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered),r="animation-"+o.name;return tt(e,{name:o.name,styles:"@keyframes "+r+"{"+o.styles+"}"}),r},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:J.bind(null,e.registered),merge:et.bind(null,e.registered,n)}}(),bt=mt.cx,xt=mt.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(nt||(nt={})),function(t){t.DEFAULT="#2F8DEE",t.T10="#5FA8F2",t.T20="#8EC2F6",t.T40="#ECF5FD",t.S400="#1863B0",t.S300="#3585E6",t.S100="#EBF5FF",t.LINK="#187D97"}(it||(it={})),function(t){t.S500="#00D37E",t.S400="#189C08",t.S300="#43CC32",t.S100="#F0FFF3",t.DEFAULT="#00A965",t.CONTRAST="#002B2A",t.G100="#F0FFF9",t.HOVER="#00B86D",t.HOVER_SECONDARY="#E5EDEC",t.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",t.PRESSED="#009E5A",t.PRESSED_SECONDARY="#E6ECEC",t.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",t.BASE="#054948"}(ot||(ot={})),function(t){t.S500="#777777",t.S400="#959595",t.T10="#ADADAD",t.S300="#CACACA",t.S200="#E8E8E8",t.S100="#F6F7F9",t.S50="#FFFFFF",t.BLUISH="#D3D7DE",t.BASE="#D8D8D8",t.OUTLINE="#505454"}(rt||(rt={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(at||(at={})),function(t){t.DEFAULT="#FFFFFF"}(st||(st={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(lt||(lt={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(ct||(ct={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.DISABLED_SURFACE="#F2F4F5",t.DISABLED_ON_SURFACE="#9D9E9F",t.DARK="#051513",t.SUBDUE_INFO="#EEF6FF",t.SUBDUE_POSITIVE="#F0F9F4",t.SUBDUE_WARNING="#FFFAEA",t.SUBDUE_CRITICAL="#FFF1F1"}(dt||(dt={})),function(t){t.PRIMARY="#00D37E",t.PRIMARY_2="#054948",t.PRIMARY_3="#002B2A",t.ON_CONTAINER="#FFFFFF",t.ON_NEUTRAL="#002B2A",t.ON_NEUTRAL_SECONDARY="#505454",t.LINE="#D8D8D8",t.LINK="#187D97",t.OVERLAY="rgb(5, 21, 19, 0.7)"}(ht||(ht={})),function(t){t.HOVER_PRIMARY="#008F56",t.FOCUS_DEFAULT="#42FFB4",t.PRESSED_PRIMARY="#007546",t.SELECTED="#F0FFF9",t.HOVER_SURFACE="#ECECEC",t.FOCUS_SURFACE="#E3E3E3",t.PRESSED_SURFACE="#E3E3E3",t.HOVER_CRITICAL="#B92B22",t.PRESSED_CRITICAL="#A92920"}(ut||(ut={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(pt||(pt={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(ft||(ft={}));var vt,yt={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},_t={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},wt=function(t,e){var n,o,r,a;return xt(vt||(vt=i.__makeTemplateObject(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=e.display)&&void 0!==n?n:"block",null!==(o=e.align)&&void 0!==o?o:"inherit",yt[t].FONT_SIZE[e.size],yt[t].LINE_HEIGHT[e.size],yt[t].FONT_WEIGHT[e.size],yt[t].LETTER_SPACING[e.size],null!==(r=e.color)&&void 0!==r?r:ht.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",_t[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var kt={Display:function(t){var e=t.as,n=void 0===e?"h1":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("display",t),r)},a),o)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("headline",t),r)},a),o)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("title",t),r)},a),o)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("label",t),r)},a),o)},Body:function(t){var e=t.as,n=void 0===e?"span":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("body",t),r)},a),o)}};function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Et=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ot=C(function(t){return Et.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function Tt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Mt="undefined"!=typeof document,Dt=Object.prototype.hasOwnProperty,Ct=t.createContext("undefined"!=typeof HTMLElement?_():null),At=t.createContext({});Ct.Provider;var Rt=function(e){var n=function(n,i){return t.createElement(Ct.Consumer,null,function(t){return e(n,t,i)})};return t.forwardRef(n)};if(!Mt){var Lt=function(e){function n(t,n,i){var o;return(o=e.call(this,t,n,i)||this).state={value:_()},o}return Tt(n,e),n.prototype.render=function(){return t.createElement(Ct.Provider,this.state,this.props.children(this.state.value))},n}(t.Component);Rt=function(e){return function(n){return t.createElement(Ct.Consumer,null,function(i){return null===i?t.createElement(Lt,null,function(t){return e(n,t)}):e(n,i)})}}}var Pt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Nt=function(){return null},Ft=function(e,n,i,o){var r=null===i?n.css:n.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var a=n[Pt],s=[r],l="";"string"==typeof n.className?l=J(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=Z(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var d=n[It];d&&(c=Z([c,"label:"+d+";"]))}var h=Q(e,c,"string"==typeof a);l+=e.key+"-"+c.name;var u={};for(var p in n)!Dt.call(n,p)||"css"===p||p===Pt||"production"!==process.env.NODE_ENV&&p===It||(u[p]=n[p]);u.ref=o,u.className=l;var f=t.createElement(a,u),g=t.createElement(Nt,null);if(!Mt&&void 0!==h){for(var m,b=c.name,x=c.next;void 0!==x;)b+=" "+x.name,x=x.next;g=t.createElement("style",((m={})["data-emotion-"+e.key]=b,m.dangerouslySetInnerHTML={__html:h},m.nonce=e.sheet.nonce,m))}return t.createElement(t.Fragment,null,g,f)},zt=Rt(function(e,n,i){return"function"==typeof e.css?t.createElement(At.Consumer,null,function(t){return Ft(n,e,t,i)}):Ft(n,e,null,i)});function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Z(e)}"production"!==process.env.NODE_ENV&&(zt.displayName="EmotionCssPropInternal");var jt=!1,Yt=Rt(function(e,n){"production"===process.env.NODE_ENV||jt||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),jt=!0);var i=e.styles;if("function"==typeof i)return t.createElement(At.Consumer,null,function(e){var o=Z([i(e)]);return t.createElement(Ht,{serialized:o,cache:n})});var o=Z([i]);return t.createElement(Ht,{serialized:o,cache:n})}),Ht=function(e){function n(t,n,i){return e.call(this,t,n,i)||this}Tt(n,e);var i=n.prototype;return i.componentDidMount=function(){this.sheet=new c({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){if(void 0!==this.props.serialized.next&&Q(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var t=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=t,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){if(!Mt){for(var e=this.props.serialized,n=e.name,i=e.styles,o=e.next;void 0!==o;)n+=" "+o.name,i+=o.styles,o=o.next;var r,a=!0===this.props.cache.compat,s=this.props.cache.insert("",{name:n,styles:i},this.sheet,a);if(!a)return t.createElement("style",((r={})["data-emotion-"+this.props.cache.key]=n,r.dangerouslySetInnerHTML={__html:s},r.nonce=this.props.cache.sheet.nonce,r))}return null},n}(t.Component),Wt=function(){var t=Bt.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Vt=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var r=e[i];if(null!=r){var a=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))a=t(r);else for(var s in a="",r)r[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=r}a&&(o&&(o+=" "),o+=a)}}return o};var Ut=function(){return null};Rt(function(e,n){return t.createElement(At.Consumer,null,function(i){var o="",r="",a=!1,s=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=Z(e,n.registered);if(Mt)Q(n,s,!1);else{var l=Q(n,s,!1);void 0!==l&&(o+=l)}return Mt||(r+=" "+s.name),n.key+"-"+s.name},l={css:s,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}(n.registered,s,Vt(e))},theme:i},c=e.children(l);a=!0;var d,h=t.createElement(Ut,null);Mt||0===o.length||(h=t.createElement("style",((d={})["data-emotion-"+n.key]=r.substring(1),d.dangerouslySetInnerHTML={__html:o},d.nonce=n.sheet.nonce,d)));return t.createElement(t.Fragment,null,h,c)})});var Gt=Ot,$t=function(t){return"theme"!==t&&"innerRef"!==t},Xt=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Gt:$t};function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var Zt,Kt,Jt,Qt,te,ee,ne,ie,oe,re="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ae="undefined"!=typeof document,se=function(){return null},le=function e(n,i){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,r,a;void 0!==i&&(o=i.label,a=i.target,r=n.__emotion_forwardProp&&i.shouldForwardProp?function(t){return n.__emotion_forwardProp(t)&&i.shouldForwardProp(t)}:i.shouldForwardProp);var s=n.__emotion_real===n,l=s&&n.__emotion_base||n;"function"!=typeof r&&s&&(r=n.__emotion_forwardProp);var c=r||Xt(l),d=!c("as");return function(){var h=arguments,u=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&u.push("label:"+o+";"),null==h[0]||void 0===h[0].raw)u.push.apply(u,h);else{"production"!==process.env.NODE_ENV&&void 0===h[0][0]&&console.error(re),u.push(h[0][0]);for(var p=h.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===h[0][f]&&console.error(re),u.push(h[f],h[0][f])}var g=Rt(function(e,n,i){return t.createElement(At.Consumer,null,function(s){var h=d&&e.as||l,p="",f=[],g=e;if(null==e.theme){for(var m in g={},e)g[m]=e[m];g.theme=s}"string"==typeof e.className?p=J(n.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=Z(u.concat(f),n.registered,g),x=Q(n,b,"string"==typeof h);p+=n.key+"-"+b.name,void 0!==a&&(p+=" "+a);var v=d&&void 0===r?Xt(h):c,y={};for(var _ in e)d&&"as"===_||v(_)&&(y[_]=e[_]);y.className=p,y.ref=i||e.innerRef,"production"!==process.env.NODE_ENV&&e.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===o?"":" in the usage of `"+o+"`"));var w=t.createElement(h,y),k=t.createElement(se,null);if(!ae&&void 0!==x){for(var S,E=b.name,O=b.next;void 0!==O;)E+=" "+O.name,O=O.next;k=t.createElement("style",((S={})["data-emotion-"+n.key]=E,S.dangerouslySetInnerHTML={__html:x},S.nonce=n.sheet.nonce,S))}return t.createElement(t.Fragment,null,k,w)})});return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=u,g.__emotion_forwardProp=r,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,n){return e(t,void 0!==n?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(n),!0).forEach(function(e){St(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},i||{},{},n):i).apply(void 0,u)},g}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){le[t]=le(t)}),exports.BLUE_COLORS=void 0,(Zt=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Zt.B300="#1863B0",Zt.B200="#C3DCF6",Zt.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(Kt=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",Kt.G300="#43CC32",Kt.G200="#C8FAC0",Kt.G100="#F0F9F4",exports.RED_COLORS=void 0,(Jt=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",Jt.R300="#E22726",Jt.R200="#FFC9C9",Jt.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(Qt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",Qt.Y300="#FC9A07",Qt.Y200="#FFEB7E",Qt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(te=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",te.G500="#505454",te.G400="#959595",te.G300="#D8D8D8",te.G200="#E8E8E8",te.G100="#F0F0F0",te.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(ee=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",ee.PRIMARY_BLACK="#1B2736",ee.PRIMARY_WHITE="#FFFFFF",ee.SECONDARY_GREEN="#43CC32",ee.SECONDARY_RED="#E22726",ee.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(ne=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",ne.INFO="#1863B0",ne.WARNING="#FC9A07",ne.ERROR="#E22726",ne.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(ie=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",ie.INFO="#0C45E1",ie.WARNING="#FC9A07",ie.ERROR="#DF1312",ie.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(oe=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",oe.INFO="#EEF6FF",oe.WARNING="#FFFAEA",oe.ERROR="#FFF1F1",oe.NEUTRAL="#F0F0F0";var ce,de,he,ue,pe=function(t,e,n){return"\n border: 1px solid ".concat(t," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(e," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(e," !important;\n }\n")},fe=pe(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),ge=pe(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),me=pe(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),be="\n border: none !important;\n background-color: ".concat(ot.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n"),xe=le(e.Alert)(ce||(ce=i.__makeTemplateObject(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(t){return"success"===t.type&&fe},function(t){return"warning"===t.type&&ge},function(t){return"error"===t.type&&me},function(t){return"info"===t.type&&be}),ve=le.div(de||(de=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),ye=le.div(he||(he=i.__makeTemplateObject(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),_e="@media (min-width: 992px)",we="Hanken Grotesk",ke="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ue||(ue={}));var Se,Ee="\n color: ".concat(nt.DEFAULT,";\n font-family: ").concat(we,", ").concat("Inter",";\n margin: 0;\n"),Oe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 24px;\n line-height: 29px;\n }\n"),Te="\n font-weight: ".concat(ue.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 18px;\n line-height: 22px;\n }\n"),Me="\n font-weight: ".concat(ue.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 16px;\n line-height: 19px;\n }\n"),De="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Ce="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n line-height: 15px;\n }\n"),Ae="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n font-family: ").concat(ke,";\n"),Re="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n font-family: ").concat(ke,";\n"),Le="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Pe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(we,";\n"),Ie="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(ke,";\n");!function(t){t.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",t.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",t.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",t.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(Se||(Se={}));var Ne="10px",Fe="15px",ze="20px",Be="30px",je={spacing:{xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Se.RAISED,action:Se.ACTION,overlay:Se.OVERLAY,reverseRaised:Se.REVERSE_RAISED},color:{background:{neutral:ct.NEUTRAL,secondaryNeutral:ct.SECONDARY_NEUTRAL,primary:ct.PRIMARY,secondary:ct.SECONDARY},surface:{neutral:dt.NEUTRAL,secondaryNeutral:dt.SECONDARY_NEUTRAL,disabledSurface:dt.DISABLED_SURFACE,disabledOnSurface:dt.DISABLED_ON_SURFACE,dark:dt.DARK,SubdueInfo:dt.SUBDUE_INFO,subduePositive:dt.SUBDUE_POSITIVE,subdueCritical:dt.SUBDUE_CRITICAL,subdueWarning:dt.SUBDUE_WARNING},base:{primary:ht.PRIMARY,primary2:ht.PRIMARY_2,primary3:ht.PRIMARY_3,onContainer:ht.ON_CONTAINER,onNeutral:ht.ON_NEUTRAL,onNeutralSecondary:ht.ON_NEUTRAL_SECONDARY,line:ht.LINE,link:ht.LINK,overlay:ht.OVERLAY},interactive:{hoverPrimary:ut.HOVER_PRIMARY,focusDefault:ut.FOCUS_DEFAULT,pressedPrimary:ut.PRESSED_PRIMARY,selected:ut.SELECTED,hoverSurface:ut.HOVER_SURFACE,focusSurface:ut.FOCUS_SURFACE,pressedSurface:ut.PRESSED_SURFACE,hoverCritical:ut.HOVER_CRITICAL,pressedCritical:ut.PRESSED_CRITICAL},status:{info:pt.INFO,positive:pt.POSITIVE,warning:pt.WARNING,critical:pt.CRITICAL},component:{buttonDisabled:ft.BUTTON_DISABLED,buttonPrimary:ft.BUTTON_PRIMARY,labelInput:ft.LABEL_INPUT,helperInput:ft.HELPER_INPUT,placeholderInput:ft.PLACEHOLDER_INPUT}},text:{default:nt.DEFAULT,white:st.DEFAULT},button:{background:st.DEFAULT,color:ot.DEFAULT,border:ot.BASE,hover:nt.T10},actionButton:{color:rt.S400,hover:rt.T10},neutral:{text:rt.S400,emphasis:rt.S300,border:rt.S200,background:rt.S100,white:st.DEFAULT,bluish:rt.BLUISH},success:{text:ot.S400,emphasis:ot.S300,border:ot.S300,background:ot.S100},warning:{text:lt.S400,emphasis:lt.S300,border:lt.S300,background:lt.S100},error:{text:at.S400,emphasis:at.S300,border:at.S300,background:at.S100},notification:{text:it.S300,emphasis:it.DEFAULT,background:it.S100},card:{background:{default:st.DEFAULT,dark:nt.T10}},divider:{background:rt.S200}},Ye=i.__assign(i.__assign({},je),{brand:{primary:{default:it.DEFAULT,emphasis:it.S300,background:it.S100,contrast:st.DEFAULT,illustration:it.DEFAULT},action:{default:it.DEFAULT,hover:it.T10,disabledOpacity:.7}}}),He=i.__assign(i.__assign({},je),{brand:{primary:{default:ot.BASE,emphasis:ot.DEFAULT,background:ot.G100,contrast:ot.CONTRAST,illustration:ot.S500,link:it.LINK},secondary:{onSurface:rt.OUTLINE,action:{hover:ot.HOVER_SECONDARY,pressed:ot.PRESSED_SECONDARY}},tertiary:{action:{hover:ot.HOVER_TERTIARY,pressed:ot.PRESSED_TERTIARY}},action:{default:ot.S500,hover:ot.HOVER,pressed:ot.PRESSED,disabledOpacity:.7},line:{base:rt.BASE}}});function We(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}We('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Ve,Ue,Ge,$e,Xe,qe=function(){return s.default.createElement(Yt,{styles:Bt(Ve||(Ve=i.__makeTemplateObject(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Ze=s.default.createContext(He),Ke=function(){var t=s.default.useContext(Ze);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Je="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",Qe="\n ".concat(Je,"\n width: 48px;\n height: 48px;\n"),tn="\n ".concat(Je,"\n width: 36px;\n height: 36px;\n"),en=function(t,e,n,i,o){return"\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(i||t," !important;\n box-shadow: none !important;\n }\n")},nn=function(t,e){return"\n cursor: not-allowed !important;\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(t," !important;\n color: ").concat(e," !important;\n }\n")},on=en(He.brand.action.default,He.brand.primary.contrast,He.brand.action.hover,He.brand.action.pressed),rn=en(He.color.surface.neutral,He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"1px solid ".concat(He.brand.line.base)),an=en("transparent",He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"none"),sn={primary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),secondary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),tertiary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface)},ln=function(t){var n=t.type,o=void 0===n?"primary":n,r=t.size,a=t.iconColor,l=t.isDisabled,c=void 0!==l&&l,d=t.isFullWidth,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.children,g=t.icon,m=i.__rest(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),b=Ke(),x=b.brand,v=b.button,y=b.actionButton,_=b.color,w="\n background-color: ".concat(x.action.default," !important;\n color: ").concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(x.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(x.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(x.action.hover," !important;\n border: none !important;\n }\n "),k="\n background-color: ".concat(v.background," !important;\n color: ").concat(x.primary.contrast," !important;\n border: 1px solid ").concat(v.border," !important;\n\n &:focus {\n background-color: ").concat(v.background," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:hover {\n background-color: ").concat(x.secondary.action.hover," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:active {\n background-color: ").concat(x.secondary.action.pressed," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(He.brand.primary.default,";\n }\n "),S="\n background-color: transparent !important;\n color: ".concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: transparent !important;\n border: none !important;\n }\n\n &:hover {\n background-color: ").concat(x.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(x.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),E="\n cursor: not-allowed !important;\n background-color: ".concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),O="\n cursor: not-allowed !important;\n background-color: ".concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.BASE," !important;\n }\n "),T="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),M="\n color: ".concat(y.color,";\n\n &:focus {\n color: ").concat(y.color,";\n }\n\n &:hover {\n color: ").concat(y.hover,";\n }\n\n &:active {\n color: ").concat(y.color,";\n }\n "),D="\n color: ".concat(x.action.default,";\n\n &:focus {\n color: ").concat(x.action.default,";\n }\n\n &:hover {\n color: ").concat(x.action.hover,";\n }\n\n &:active {\n color: ").concat(x.action.default,";\n }\n "),C=le(e.Button)(Ue||(Ue=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===r?"36px":"48px",Ee,"small"===r?Re:Ae,"primary"===o&&w,"secondary"===o&&k,"tertiary"===o&&S,function(){if(!c)return"";switch(o){case"primary":default:return E;case"secondary":return O;case"tertiary":return T}}(),h&&"\n width: 100%;\n ","primary"===a?D:M,x.primary.contrast),A=le(e.Button)(Ge||(Ge=i.__makeTemplateObject(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),Ee,"small"===r?tn:Qe,"primary"===o&&on,"secondary"===o&&rn,"tertiary"===o&&an,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(r),c&&function(t){return sn[t]||sn.primary}(o)),R=c?"straitsx-button-disabled":void 0;return g?s.default.createElement(A,i.__assign({className:"".concat(p," ").concat(R),disabled:c},m),g):s.default.createElement(C,i.__assign({className:"".concat(p," ").concat(R),disabled:c},m),f)},cn="Hanken Grotesk";exports.FONT_WEIGHT=void 0,function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(exports.FONT_WEIGHT||(exports.FONT_WEIGHT={})),exports.FONT_SIZE=void 0,(Xe=exports.FONT_SIZE||(exports.FONT_SIZE={})).H1="24px",Xe.H1_MOBILE="24px",Xe.H2="18px",Xe.H2_MOBILE="20px",Xe.H3="16px",Xe.H3_MOBILE="18px",Xe.H4="14px",Xe.P1="14px",Xe.P1_MOBILE="16px",Xe.SMALL="12px",Xe.SMALL_MOBILE="14px";var dn={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};exports.LINE_HEIGHT=void 0,function(t){t.H1="29px",t.H1_MOBILE="28px",t.H2="22px",t.H2_MOBILE="23px",t.H3="19px",t.H3_MOBILE="21px",t.H4="17px",t.P1="17px",t.P1_MOBILE="19px",t.SMALL="15px",t.SMALL_MOBILE="17px"}(exports.LINE_HEIGHT||(exports.LINE_HEIGHT={}));var hn,un,pn,fn,gn,mn,bn,xn,vn,yn,_n,wn,kn,Sn,En,On,Tn,Mn,Dn,Cn,An,Rn,Ln=function(t){var n,o=t.className,r=t.alignTitle,a=void 0===r?"center":r,l=t.alignBody,c=void 0===l?"left":l,d=t.type,h=void 0===d?"default":d,u=i.__rest(t,["className","alignTitle","alignBody","type"]),p=Ke(),f=p.card,g=p.text,m=p.neutral,b="\n color: ".concat("default"===h?g.default:g.white,";\n\n & > div > div {\n color: ").concat("default"===h?g.default:g.white,";\n }\n\n h1 {\n color: ").concat("default"===h?g.default:g.white,";\n }\n "),x=xt(hn||(hn=i.__makeTemplateObject(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),m.border,"default"===h?f.background.default:f.background.dark,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,b,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,exports.FONT_WEIGHT.REGULAR,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b);return s.default.createElement(e.Card,i.__assign({className:bt(x,o,(n=a,xt(un||(un=i.__makeTemplateObject(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),n)),function(t){return xt(pn||(pn=i.__makeTemplateObject(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(c))},u))},Pn=le.h1(fn||(fn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Oe),In=le.h2(gn||(gn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Te),Nn=le.h3(mn||(mn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Me),Fn=le.div(bn||(bn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,De),zn=le.div(xn||(xn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Bn=le.div(vn||(vn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Ce),jn=le.h4(yn||(yn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Yn={xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},Hn=function(t){var e=t.spacing,n=i.__rest(t,["spacing"]),o=Ke().divider,r=le.hr(_n||(_n=i.__makeTemplateObject(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),e?Yn[e]:0,e?Yn[e]:0,o.background);return s.default.createElement(r,i.__assign({},n))},Wn=le.div(On||(On=i.__makeTemplateObject(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(t){return!t.withBoxShadow&&"1px solid #e8e8e8"},function(t){return t.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(_e," {\n max-height: 1200px !important;\n }\n ")}),Vn=le.div(Tn||(Tn=i.__makeTemplateObject(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop}),Un=le.div(Mn||(Mn=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Gn=le(Fn)(Dn||(Dn=i.__makeTemplateObject(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),_e),$n=le(n.SvgArrowUp)(Cn||(Cn=i.__makeTemplateObject(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(t){return t.open&&"rotate(0deg)"}),Xn=le.div(An||(An=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"])));
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("antd"),n=require("./StraitsXDecoVertical-70fd7a91.js"),i=require("./_tslib-33b9f00a.js"),o=require("react-dom"),r=require("./StraitsXPersonalAccountLightLogo-44c49e48.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=a(t),l=a(o);var c=function(){function t(t){this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{var r=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,r?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},t}();function d(t){function e(t,i,l,c,u){for(var p,f,m,g,y,w=0,k=0,S=0,E=0,O=0,R=0,P=m=p=0,N=0,F=0,z=0,B=0,j=l.length,Y=j-1,H="",W="",V="",U="";N<j;){if(f=l.charCodeAt(N),N===Y&&0!==k+E+S+w&&(0!==k&&(f=47===k?10:47),E=S=w=0,j++,Y++),0===k+E+S+w){if(N===Y&&(0<F&&(H=H.replace(h,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(N)}f=59}switch(f){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,B=++N;N<j;){switch(f=l.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:t:{for(P=N+1;P<Y;++P)switch(l.charCodeAt(P)){case 47:if(42===f&&42===l.charCodeAt(P-1)&&N+2!==P){N=P+1;break t}break;case 10:if(47===f){N=P+1;break t}}N=P}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<Y&&l.charCodeAt(N)!==f;);}if(0===m)break;N++}if(m=l.substring(B,N),0===p&&(p=(H=H.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(H=H.replace(h,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=i;break;default:F=A}if(B=(m=e(i,F,m,f,u+1)).length,0<L&&(y=s(3,m,F=n(A,H,z),i,M,T,B,f,u,c),H=F.join(""),void 0!==y&&0===(B=(m=y.trim()).length)&&(f=0,m="")),0<B)switch(f){case 115:H=H.replace(_,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(b,"$1 $2"))+"{"+m+"}",m=1===C||2===C&&r("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(W+=m,m="")}else m=""}else m=e(i,n(i,H,z),m,c,u+1);V+=m,m=z=F=P=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(B=(H=(0<F?H.replace(h,""):H).trim()).length))switch(0===P&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(B=(H=H.replace(" ",":")).length),0<L&&void 0!==(y=s(1,H,i,t,M,T,W.length,c,u,c))&&0===(B=(H=y.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),f=H.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=H+l.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}z=F=P=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<H.length&&(F=1,H+="\0"),0<L*I&&s(0,H,i,t,M,T,W.length,c,u,c),T=1,M++;break;case 59:case 125:if(0===k+E+S+w){T++;break}default:switch(T++,g=l.charAt(N),f){case 9:case 32:if(0===E+w+k)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+k+w&&(F=z=1,g="\f"+g);break;case 108:if(0===E+k+w+D&&0<P)switch(N-P){case 2:112===O&&58===l.charCodeAt(N-3)&&(D=O);case 8:111===R&&(D=R)}break;case 58:0===E+k+w&&(P=N);break;case 44:0===k+S+E+w&&(F=1,g+="\r");break;case 34:case 39:0===k&&(E=E===f?0:0===E?f:E);break;case 91:0===E+k+S&&w++;break;case 93:0===E+k+S&&w--;break;case 41:0===E+k+w&&S--;break;case 40:if(0===E+k+w){if(0===p)if(2*O+3*R==533);else p=1;S++}break;case 64:0===k+S+E+w+P+m&&(m=1);break;case 42:case 47:if(!(0<E+w+S))switch(k){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:k=47;break;case 220:B=N,k=42}break;case 42:47===f&&42===O&&B+2!==N&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,N+1)),g="",k=0)}}0===k&&(H+=g)}R=O,O=f,N++}if(0<(B=W.length)){if(F=i,0<L&&(void 0!==(y=s(2,W,F,t,M,T,B,c,u,c))&&0===(W=y).length))return U+W+V;if(W=F.join(",")+"{"+W+"}",0!==C*D){switch(2!==C||r(W,2)||(D=0),D){case 111:W=W.replace(v,":-moz-$1")+W;break;case 112:W=W.replace(x,"::-webkit-input-$1")+W.replace(x,"::-moz-$1")+W.replace(x,":-ms-input-$1")+W}D=0}}return U+W+V}function n(t,e,n){var o=e.trim().split(m);e=o;var r=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<r;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<r;++s)for(var c=0;c<a;++c)e[l++]=i(t[c]+" ",o[s],n).trim()}return e}function i(t,e,n){var i=e.charCodeAt(0);switch(33>i&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var a=t+";",s=2*e+3*n+4*i;if(944===s){t=a.indexOf(":",9)+1;var l=a.substring(t,a.length-1).trim();return l=a.substring(0,t).trim()+l+";",1===C||2===C&&r(l,1)?"-webkit-"+l+l:l}if(0===C||2===C&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(u,":-webkit-")+a.replace(u,":-moz-")+a:a;case 1e3:switch(e=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=a.replace(y,"tb");break;case 232:l=a.replace(y,"tb-rl");break;case 220:l=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,s=(l=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,n,i).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function r(t,e){var n=t.indexOf(1===e?":":"{"),i=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),P(2!==e?i:i.replace(S,"$1"),n,e)}function a(t,e){var n=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(w," or ($1)").substring(4):"("+e+")"}function s(t,e,n,i,o,r,a,s,l,d){for(var h,u=0,p=e;u<L;++u)switch(h=R[u].call(c,t,p,n,i,o,r,a,s,l,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(P=null,t?"function"!=typeof t?C=1:(C=2,P=t):C=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<L){var o=s(-1,n,i,i,M,T,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=e(A,i,n,0,0);return 0<L&&(void 0!==(o=s(-2,r,i,i,M,T,r.length,0,0,0))&&(r=o)),D=0,T=M=1,r}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,T=1,M=1,D=0,C=1,A=[],R=[],L=0,P=null,I=0;return c.use=function t(e){switch(e){case void 0:case null:L=R.length=0;break;default:if("function"==typeof e)R[L++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else I=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var h=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}},u="/*|*/",p=u+"}";function f(t){t&&m.current.insert(t+"}")}var m={current:null},g=function(t,e,n,i,o,r,a,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return m.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+u;break;case 3:switch(s){case 102:case 112:return m.current.insert(n[0]+e),"";default:return e+(0===c?u:"")}case-2:e.split(p).forEach(f)}},b=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},x="undefined"!=typeof document,v={},y=x?void 0:h(function(){var t=h(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),_=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new d(e);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,r,a={};if(x){o=t.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach(function(t){a[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(x)i.use(t.stylisPlugins)(g),r=function(t,e,n,o){var r=e.name;if(m.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var a=e.map;m.current={insert:function(t){n.insert(t+a)}}}i(t,e.styles),o&&(p.inserted[r]=!0)};else{i.use(b);var l=v;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=y(t.stylisPlugins||v)(t.prefix));r=function(t,e,n,o){var r=e.name,a=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=i(t,e.styles)),l[n]}(t,e);return void 0===p.compat?(o&&(p.inserted[r]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?a+e.map:a):o?void(p.inserted[r]=a):a}}if("production"!==process.env.NODE_ENV){var h=/\/\*/g,u=/\*\//g;i.use(function(t,e){if(-1===t){for(;h.test(e);){if(u.lastIndex=h.lastIndex,!u.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');h.lastIndex=u.lastIndex}h.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==p.compat&&i.forEach(function(t){var n=new RegExp(t+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(e);t&&!n&&console.error('The pseudo class "'+t+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+t.split("-child")[0]+'-of-type".')})}})}var p={key:n,sheet:new c({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:a,registered:{},insert:r};return p};function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,S={exports:{}},E={};var O,T,M={};var D=w((T||(T=1,"production"===process.env.NODE_ENV?S.exports=(k||(k=1,Object.defineProperty(E,"__esModule",{value:!0}),E.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),E):S.exports=(O||(O=1,Object.defineProperty(M,"__esModule",{value:!0}),M.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),M)),S.exports));function C(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var A="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",R="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",L=/[A-Z]|^ms/g,P=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},N=function(t){return null!=t&&"boolean"!=typeof t},F=C(function(t){return I(t)?t:t.replace(L,"-$&").toLowerCase()}),z=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(P,function(t,e,n){return X={name:e,styles:n,next:X},e})}return 1===D[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var B=/(attr|calc|counters?|url)\(/,j=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Y=z,H=/^-ms-/,W=/-(.)/g,V={};z=function(t,e){"content"===t&&("string"!=typeof e||-1===j.indexOf(e)&&!B.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+e+"\"'`");var n=Y(t,e);return""===n||I(t)||-1===t.indexOf("-")||void 0!==V[t]||(V[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(H,"ms-").replace(W,function(t,e){return e.toUpperCase()})+"?")),n}}var U=!0;function G(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return X={name:n.name,styles:n.styles,next:X},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)X={name:o.name,styles:o.styles,next:X},o=o.next;var r=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(r+=n.map),r}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=G(t,e,n[o],!1);else for(var r in n){var a=n[r];if("object"!=typeof a)null!=e&&void 0!==e[a]?i+=r+"{"+e[a]+"}":N(a)&&(i+=F(r)+":"+z(r,a)+";");else{if("NO_COMPONENT_SELECTOR"===r&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=G(t,e,a,!1);switch(r){case"animation":case"animationName":i+=F(r)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===r&&console.error(R),i+=r+"{"+s+"}"}}else for(var l=0;l<a.length;l++)N(a[l])&&(i+=F(r)+":"+z(r,a[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=X,s=n(t);return X=a,G(t,e,s,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(P,function(t,e,n){var i="animation"+l.length;return l.push("const "+i+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+i+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==e)return n;var d=e[n];return"production"!==process.env.NODE_ENV&&i&&U&&void 0!==d&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),U=!1),void 0===d||i?n:d}var $,X,q=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&($=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Z=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";X=void 0;var r,a=t[0];null==a||void 0===a.raw?(i=!1,o+=G(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(A),o+=a[0]);for(var s=1;s<t.length;s++)o+=G(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(A),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace($,function(t){return r=t,""})),q.lastIndex=0;for(var l,c="";null!==(l=q.exec(o));)c+="-"+l[1];var d=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:o,map:r,next:X,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:X}},K="undefined"!=typeof document;function J(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var Q=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===K&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",r=e;do{var a=t.insert("."+i,r,t.sheet,!0);K||void 0===a||(o+=a),r=r.next}while(void 0!==r);if(!K&&0!==o.length)return o}};function tt(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function et(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}var nt,it,ot,rt,at,st,lt,ct,dt,ht,ut,pt,ft,mt=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var r=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))r=t(o);else for(var a in r="",o)o[a]&&a&&(r&&(r+=" "),r+=a);break;default:r=o}r&&(n&&(n+=" "),n+=r)}}return n},gt=function(t){var e=_(t);e.sheet.speedy=function(t){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered,void 0);return Q(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return et(e.registered,n,mt(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered);tt(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered),r="animation-"+o.name;return tt(e,{name:o.name,styles:"@keyframes "+r+"{"+o.styles+"}"}),r},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:J.bind(null,e.registered),merge:et.bind(null,e.registered,n)}}(),bt=gt.cx,xt=gt.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(nt||(nt={})),function(t){t.DEFAULT="#2F8DEE",t.T10="#5FA8F2",t.T20="#8EC2F6",t.T40="#ECF5FD",t.S400="#1863B0",t.S300="#3585E6",t.S100="#EBF5FF",t.LINK="#187D97"}(it||(it={})),function(t){t.S500="#00D37E",t.S400="#189C08",t.S300="#43CC32",t.S100="#F0FFF3",t.DEFAULT="#00A965",t.CONTRAST="#002B2A",t.G100="#F0FFF9",t.HOVER="#00B86D",t.HOVER_SECONDARY="#E5EDEC",t.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",t.PRESSED="#009E5A",t.PRESSED_SECONDARY="#E6ECEC",t.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",t.BASE="#054948"}(ot||(ot={})),function(t){t.S500="#777777",t.S400="#959595",t.T10="#ADADAD",t.S300="#CACACA",t.S200="#E8E8E8",t.S100="#F6F7F9",t.S50="#FFFFFF",t.BLUISH="#D3D7DE",t.BASE="#D8D8D8",t.OUTLINE="#505454"}(rt||(rt={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(at||(at={})),function(t){t.DEFAULT="#FFFFFF"}(st||(st={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(lt||(lt={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(ct||(ct={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.DISABLED_SURFACE="#F2F4F5",t.DISABLED_ON_SURFACE="#9D9E9F",t.DARK="#051513",t.SUBDUE_INFO="#EEF6FF",t.SUBDUE_POSITIVE="#F0F9F4",t.SUBDUE_WARNING="#FFFAEA",t.SUBDUE_CRITICAL="#FFF1F1"}(dt||(dt={})),function(t){t.PRIMARY="#00D37E",t.PRIMARY_2="#054948",t.PRIMARY_3="#002B2A",t.ON_CONTAINER="#FFFFFF",t.ON_NEUTRAL="#002B2A",t.ON_NEUTRAL_SECONDARY="#505454",t.LINE="#D8D8D8",t.LINK="#187D97",t.OVERLAY="rgb(5, 21, 19, 0.7)"}(ht||(ht={})),function(t){t.HOVER_PRIMARY="#008F56",t.FOCUS_DEFAULT="#42FFB4",t.PRESSED_PRIMARY="#007546",t.SELECTED="#F0FFF9",t.HOVER_SURFACE="#ECECEC",t.FOCUS_SURFACE="#E3E3E3",t.PRESSED_SURFACE="#E3E3E3",t.HOVER_CRITICAL="#B92B22",t.PRESSED_CRITICAL="#A92920"}(ut||(ut={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(pt||(pt={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(ft||(ft={}));var vt,yt={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},_t={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},wt=function(t,e){var n,o,r,a;return xt(vt||(vt=i.__makeTemplateObject(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=e.display)&&void 0!==n?n:"block",null!==(o=e.align)&&void 0!==o?o:"inherit",yt[t].FONT_SIZE[e.size],yt[t].LINE_HEIGHT[e.size],yt[t].FONT_WEIGHT[e.size],yt[t].LETTER_SPACING[e.size],null!==(r=e.color)&&void 0!==r?r:ht.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",_t[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var kt={Display:function(t){var e=t.as,n=void 0===e?"h1":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("display",t),r)},a),o)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("headline",t),r)},a),o)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("title",t),r)},a),o)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("label",t),r)},a),o)},Body:function(t){var e=t.as,n=void 0===e?"span":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("body",t),r)},a),o)}};function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Et=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ot=C(function(t){return Et.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function Tt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Mt="undefined"!=typeof document,Dt=Object.prototype.hasOwnProperty,Ct=t.createContext("undefined"!=typeof HTMLElement?_():null),At=t.createContext({});Ct.Provider;var Rt=function(e){var n=function(n,i){return t.createElement(Ct.Consumer,null,function(t){return e(n,t,i)})};return t.forwardRef(n)};if(!Mt){var Lt=function(e){function n(t,n,i){var o;return(o=e.call(this,t,n,i)||this).state={value:_()},o}return Tt(n,e),n.prototype.render=function(){return t.createElement(Ct.Provider,this.state,this.props.children(this.state.value))},n}(t.Component);Rt=function(e){return function(n){return t.createElement(Ct.Consumer,null,function(i){return null===i?t.createElement(Lt,null,function(t){return e(n,t)}):e(n,i)})}}}var Pt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Nt=function(){return null},Ft=function(e,n,i,o){var r=null===i?n.css:n.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var a=n[Pt],s=[r],l="";"string"==typeof n.className?l=J(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=Z(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var d=n[It];d&&(c=Z([c,"label:"+d+";"]))}var h=Q(e,c,"string"==typeof a);l+=e.key+"-"+c.name;var u={};for(var p in n)!Dt.call(n,p)||"css"===p||p===Pt||"production"!==process.env.NODE_ENV&&p===It||(u[p]=n[p]);u.ref=o,u.className=l;var f=t.createElement(a,u),m=t.createElement(Nt,null);if(!Mt&&void 0!==h){for(var g,b=c.name,x=c.next;void 0!==x;)b+=" "+x.name,x=x.next;m=t.createElement("style",((g={})["data-emotion-"+e.key]=b,g.dangerouslySetInnerHTML={__html:h},g.nonce=e.sheet.nonce,g))}return t.createElement(t.Fragment,null,m,f)},zt=Rt(function(e,n,i){return"function"==typeof e.css?t.createElement(At.Consumer,null,function(t){return Ft(n,e,t,i)}):Ft(n,e,null,i)});function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Z(e)}"production"!==process.env.NODE_ENV&&(zt.displayName="EmotionCssPropInternal");var jt=!1,Yt=Rt(function(e,n){"production"===process.env.NODE_ENV||jt||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),jt=!0);var i=e.styles;if("function"==typeof i)return t.createElement(At.Consumer,null,function(e){var o=Z([i(e)]);return t.createElement(Ht,{serialized:o,cache:n})});var o=Z([i]);return t.createElement(Ht,{serialized:o,cache:n})}),Ht=function(e){function n(t,n,i){return e.call(this,t,n,i)||this}Tt(n,e);var i=n.prototype;return i.componentDidMount=function(){this.sheet=new c({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){if(void 0!==this.props.serialized.next&&Q(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var t=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=t,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){if(!Mt){for(var e=this.props.serialized,n=e.name,i=e.styles,o=e.next;void 0!==o;)n+=" "+o.name,i+=o.styles,o=o.next;var r,a=!0===this.props.cache.compat,s=this.props.cache.insert("",{name:n,styles:i},this.sheet,a);if(!a)return t.createElement("style",((r={})["data-emotion-"+this.props.cache.key]=n,r.dangerouslySetInnerHTML={__html:s},r.nonce=this.props.cache.sheet.nonce,r))}return null},n}(t.Component),Wt=function(){var t=Bt.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Vt=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var r=e[i];if(null!=r){var a=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))a=t(r);else for(var s in a="",r)r[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=r}a&&(o&&(o+=" "),o+=a)}}return o};var Ut=function(){return null};Rt(function(e,n){return t.createElement(At.Consumer,null,function(i){var o="",r="",a=!1,s=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=Z(e,n.registered);if(Mt)Q(n,s,!1);else{var l=Q(n,s,!1);void 0!==l&&(o+=l)}return Mt||(r+=" "+s.name),n.key+"-"+s.name},l={css:s,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}(n.registered,s,Vt(e))},theme:i},c=e.children(l);a=!0;var d,h=t.createElement(Ut,null);Mt||0===o.length||(h=t.createElement("style",((d={})["data-emotion-"+n.key]=r.substring(1),d.dangerouslySetInnerHTML={__html:o},d.nonce=n.sheet.nonce,d)));return t.createElement(t.Fragment,null,h,c)})});var Gt=Ot,$t=function(t){return"theme"!==t&&"innerRef"!==t},Xt=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Gt:$t};function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var Zt,Kt,Jt,Qt,te,ee,ne,ie,oe,re="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ae="undefined"!=typeof document,se=function(){return null},le=function e(n,i){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,r,a;void 0!==i&&(o=i.label,a=i.target,r=n.__emotion_forwardProp&&i.shouldForwardProp?function(t){return n.__emotion_forwardProp(t)&&i.shouldForwardProp(t)}:i.shouldForwardProp);var s=n.__emotion_real===n,l=s&&n.__emotion_base||n;"function"!=typeof r&&s&&(r=n.__emotion_forwardProp);var c=r||Xt(l),d=!c("as");return function(){var h=arguments,u=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&u.push("label:"+o+";"),null==h[0]||void 0===h[0].raw)u.push.apply(u,h);else{"production"!==process.env.NODE_ENV&&void 0===h[0][0]&&console.error(re),u.push(h[0][0]);for(var p=h.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===h[0][f]&&console.error(re),u.push(h[f],h[0][f])}var m=Rt(function(e,n,i){return t.createElement(At.Consumer,null,function(s){var h=d&&e.as||l,p="",f=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=s}"string"==typeof e.className?p=J(n.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=Z(u.concat(f),n.registered,m),x=Q(n,b,"string"==typeof h);p+=n.key+"-"+b.name,void 0!==a&&(p+=" "+a);var v=d&&void 0===r?Xt(h):c,y={};for(var _ in e)d&&"as"===_||v(_)&&(y[_]=e[_]);y.className=p,y.ref=i||e.innerRef,"production"!==process.env.NODE_ENV&&e.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===o?"":" in the usage of `"+o+"`"));var w=t.createElement(h,y),k=t.createElement(se,null);if(!ae&&void 0!==x){for(var S,E=b.name,O=b.next;void 0!==O;)E+=" "+O.name,O=O.next;k=t.createElement("style",((S={})["data-emotion-"+n.key]=E,S.dangerouslySetInnerHTML={__html:x},S.nonce=n.sheet.nonce,S))}return t.createElement(t.Fragment,null,k,w)})});return m.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=u,m.__emotion_forwardProp=r,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(t,n){return e(t,void 0!==n?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(n),!0).forEach(function(e){St(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},i||{},{},n):i).apply(void 0,u)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){le[t]=le(t)}),exports.BLUE_COLORS=void 0,(Zt=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Zt.B300="#1863B0",Zt.B200="#C3DCF6",Zt.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(Kt=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",Kt.G300="#43CC32",Kt.G200="#C8FAC0",Kt.G100="#F0F9F4",exports.RED_COLORS=void 0,(Jt=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",Jt.R300="#E22726",Jt.R200="#FFC9C9",Jt.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(Qt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",Qt.Y300="#FC9A07",Qt.Y200="#FFEB7E",Qt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(te=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",te.G500="#505454",te.G400="#959595",te.G300="#D8D8D8",te.G200="#E8E8E8",te.G100="#F0F0F0",te.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(ee=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",ee.PRIMARY_BLACK="#1B2736",ee.PRIMARY_WHITE="#FFFFFF",ee.SECONDARY_GREEN="#43CC32",ee.SECONDARY_RED="#E22726",ee.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(ne=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",ne.INFO="#1863B0",ne.WARNING="#FC9A07",ne.ERROR="#E22726",ne.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(ie=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",ie.INFO="#0C45E1",ie.WARNING="#FC9A07",ie.ERROR="#DF1312",ie.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(oe=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",oe.INFO="#EEF6FF",oe.WARNING="#FFFAEA",oe.ERROR="#FFF1F1",oe.NEUTRAL="#F0F0F0";var ce,de,he,ue,pe=function(t,e,n){return"\n border: 1px solid ".concat(t," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(e," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(e," !important;\n }\n")},fe=pe(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),me=pe(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),ge=pe(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),be="\n border: none !important;\n background-color: ".concat(ot.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n"),xe=le(e.Alert)(ce||(ce=i.__makeTemplateObject(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(t){return"success"===t.type&&fe},function(t){return"warning"===t.type&&me},function(t){return"error"===t.type&&ge},function(t){return"info"===t.type&&be}),ve=le.div(de||(de=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),ye=le.div(he||(he=i.__makeTemplateObject(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),_e="@media (min-width: 992px)",we="Hanken Grotesk",ke="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ue||(ue={}));var Se,Ee="\n color: ".concat(nt.DEFAULT,";\n font-family: ").concat(we,", ").concat("Inter",";\n margin: 0;\n"),Oe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 24px;\n line-height: 29px;\n }\n"),Te="\n font-weight: ".concat(ue.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 18px;\n line-height: 22px;\n }\n"),Me="\n font-weight: ".concat(ue.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 16px;\n line-height: 19px;\n }\n"),De="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Ce="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n line-height: 15px;\n }\n"),Ae="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n font-family: ").concat(ke,";\n"),Re="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n font-family: ").concat(ke,";\n"),Le="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Pe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(we,";\n"),Ie="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(ke,";\n");!function(t){t.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",t.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",t.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",t.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(Se||(Se={}));var Ne="10px",Fe="15px",ze="20px",Be="30px",je={spacing:{xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Se.RAISED,action:Se.ACTION,overlay:Se.OVERLAY,reverseRaised:Se.REVERSE_RAISED},color:{background:{neutral:ct.NEUTRAL,secondaryNeutral:ct.SECONDARY_NEUTRAL,primary:ct.PRIMARY,secondary:ct.SECONDARY},surface:{neutral:dt.NEUTRAL,secondaryNeutral:dt.SECONDARY_NEUTRAL,disabledSurface:dt.DISABLED_SURFACE,disabledOnSurface:dt.DISABLED_ON_SURFACE,dark:dt.DARK,SubdueInfo:dt.SUBDUE_INFO,subduePositive:dt.SUBDUE_POSITIVE,subdueCritical:dt.SUBDUE_CRITICAL,subdueWarning:dt.SUBDUE_WARNING},base:{primary:ht.PRIMARY,primary2:ht.PRIMARY_2,primary3:ht.PRIMARY_3,onContainer:ht.ON_CONTAINER,onNeutral:ht.ON_NEUTRAL,onNeutralSecondary:ht.ON_NEUTRAL_SECONDARY,line:ht.LINE,link:ht.LINK,overlay:ht.OVERLAY},interactive:{hoverPrimary:ut.HOVER_PRIMARY,focusDefault:ut.FOCUS_DEFAULT,pressedPrimary:ut.PRESSED_PRIMARY,selected:ut.SELECTED,hoverSurface:ut.HOVER_SURFACE,focusSurface:ut.FOCUS_SURFACE,pressedSurface:ut.PRESSED_SURFACE,hoverCritical:ut.HOVER_CRITICAL,pressedCritical:ut.PRESSED_CRITICAL},status:{info:pt.INFO,positive:pt.POSITIVE,warning:pt.WARNING,critical:pt.CRITICAL},component:{buttonDisabled:ft.BUTTON_DISABLED,buttonPrimary:ft.BUTTON_PRIMARY,labelInput:ft.LABEL_INPUT,helperInput:ft.HELPER_INPUT,placeholderInput:ft.PLACEHOLDER_INPUT}},text:{default:nt.DEFAULT,white:st.DEFAULT},button:{background:st.DEFAULT,color:ot.DEFAULT,border:ot.BASE,hover:nt.T10},actionButton:{color:rt.S400,hover:rt.T10},neutral:{text:rt.S400,emphasis:rt.S300,border:rt.S200,background:rt.S100,white:st.DEFAULT,bluish:rt.BLUISH},success:{text:ot.S400,emphasis:ot.S300,border:ot.S300,background:ot.S100},warning:{text:lt.S400,emphasis:lt.S300,border:lt.S300,background:lt.S100},error:{text:at.S400,emphasis:at.S300,border:at.S300,background:at.S100},notification:{text:it.S300,emphasis:it.DEFAULT,background:it.S100},card:{background:{default:st.DEFAULT,dark:nt.T10}},divider:{background:rt.S200}},Ye=i.__assign(i.__assign({},je),{brand:{primary:{default:it.DEFAULT,emphasis:it.S300,background:it.S100,contrast:st.DEFAULT,illustration:it.DEFAULT},action:{default:it.DEFAULT,hover:it.T10,disabledOpacity:.7}}}),He=i.__assign(i.__assign({},je),{brand:{primary:{default:ot.BASE,emphasis:ot.DEFAULT,background:ot.G100,contrast:ot.CONTRAST,illustration:ot.S500,link:it.LINK},secondary:{onSurface:rt.OUTLINE,action:{hover:ot.HOVER_SECONDARY,pressed:ot.PRESSED_SECONDARY}},tertiary:{action:{hover:ot.HOVER_TERTIARY,pressed:ot.PRESSED_TERTIARY}},action:{default:ot.S500,hover:ot.HOVER,pressed:ot.PRESSED,disabledOpacity:.7},line:{base:rt.BASE}}});function We(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}We('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Ve,Ue,Ge,$e,Xe,qe=function(){return s.default.createElement(Yt,{styles:Bt(Ve||(Ve=i.__makeTemplateObject(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Ze=s.default.createContext(He),Ke=function(){var t=s.default.useContext(Ze);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Je="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",Qe="\n ".concat(Je,"\n width: 48px;\n height: 48px;\n"),tn="\n ".concat(Je,"\n width: 36px;\n height: 36px;\n"),en=function(t,e,n,i,o){return"\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(i||t," !important;\n box-shadow: none !important;\n }\n")},nn=function(t,e){return"\n cursor: not-allowed !important;\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(t," !important;\n color: ").concat(e," !important;\n }\n")},on=en(He.brand.action.default,He.brand.primary.contrast,He.brand.action.hover,He.brand.action.pressed),rn=en(He.color.surface.neutral,He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"1px solid ".concat(He.brand.line.base)),an=en("transparent",He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"none"),sn={primary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),secondary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),tertiary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface)},ln=function(t){var n=t.type,o=void 0===n?"primary":n,r=t.size,a=t.iconColor,l=t.isDisabled,c=void 0!==l&&l,d=t.isFullWidth,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.children,m=t.icon,g=i.__rest(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),b=Ke(),x=b.brand,v=b.button,y=b.actionButton,_=b.color,w="\n background-color: ".concat(x.action.default," !important;\n color: ").concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(x.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(x.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(x.action.hover," !important;\n border: none !important;\n }\n "),k="\n background-color: ".concat(v.background," !important;\n color: ").concat(x.primary.contrast," !important;\n border: 1px solid ").concat(v.border," !important;\n\n &:focus {\n background-color: ").concat(v.background," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:hover {\n background-color: ").concat(x.secondary.action.hover," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:active {\n background-color: ").concat(x.secondary.action.pressed," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(He.brand.primary.default,";\n }\n "),S="\n background-color: transparent !important;\n color: ".concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: transparent !important;\n border: none !important;\n }\n\n &:hover {\n background-color: ").concat(x.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(x.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),E="\n cursor: not-allowed !important;\n background-color: ".concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),O="\n cursor: not-allowed !important;\n background-color: ".concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.BASE," !important;\n }\n "),T="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),M="\n color: ".concat(y.color,";\n\n &:focus {\n color: ").concat(y.color,";\n }\n\n &:hover {\n color: ").concat(y.hover,";\n }\n\n &:active {\n color: ").concat(y.color,";\n }\n "),D="\n color: ".concat(x.action.default,";\n\n &:focus {\n color: ").concat(x.action.default,";\n }\n\n &:hover {\n color: ").concat(x.action.hover,";\n }\n\n &:active {\n color: ").concat(x.action.default,";\n }\n "),C=le(e.Button)(Ue||(Ue=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===r?"36px":"48px",Ee,"small"===r?Re:Ae,"primary"===o&&w,"secondary"===o&&k,"tertiary"===o&&S,function(){if(!c)return"";switch(o){case"primary":default:return E;case"secondary":return O;case"tertiary":return T}}(),h&&"\n width: 100%;\n ","primary"===a?D:M,x.primary.contrast),A=le(e.Button)(Ge||(Ge=i.__makeTemplateObject(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),Ee,"small"===r?tn:Qe,"primary"===o&&on,"secondary"===o&&rn,"tertiary"===o&&an,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(r),c&&function(t){return sn[t]||sn.primary}(o)),R=c?"straitsx-button-disabled":void 0;return m?s.default.createElement(A,i.__assign({className:"".concat(p," ").concat(R),disabled:c},g),m):s.default.createElement(C,i.__assign({className:"".concat(p," ").concat(R),disabled:c},g),f)},cn="Hanken Grotesk";exports.FONT_WEIGHT=void 0,function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(exports.FONT_WEIGHT||(exports.FONT_WEIGHT={})),exports.FONT_SIZE=void 0,(Xe=exports.FONT_SIZE||(exports.FONT_SIZE={})).H1="24px",Xe.H1_MOBILE="24px",Xe.H2="18px",Xe.H2_MOBILE="20px",Xe.H3="16px",Xe.H3_MOBILE="18px",Xe.H4="14px",Xe.P1="14px",Xe.P1_MOBILE="16px",Xe.SMALL="12px",Xe.SMALL_MOBILE="14px";var dn={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};exports.LINE_HEIGHT=void 0,function(t){t.H1="29px",t.H1_MOBILE="28px",t.H2="22px",t.H2_MOBILE="23px",t.H3="19px",t.H3_MOBILE="21px",t.H4="17px",t.P1="17px",t.P1_MOBILE="19px",t.SMALL="15px",t.SMALL_MOBILE="17px"}(exports.LINE_HEIGHT||(exports.LINE_HEIGHT={}));var hn,un,pn,fn,mn,gn,bn,xn,vn,yn,_n,wn,kn,Sn,En,On,Tn,Mn,Dn,Cn,An,Rn,Ln=function(t){var n,o=t.className,r=t.alignTitle,a=void 0===r?"center":r,l=t.alignBody,c=void 0===l?"left":l,d=t.type,h=void 0===d?"default":d,u=i.__rest(t,["className","alignTitle","alignBody","type"]),p=Ke(),f=p.card,m=p.text,g=p.neutral,b="\n color: ".concat("default"===h?m.default:m.white,";\n\n & > div > div {\n color: ").concat("default"===h?m.default:m.white,";\n }\n\n h1 {\n color: ").concat("default"===h?m.default:m.white,";\n }\n "),x=xt(hn||(hn=i.__makeTemplateObject(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),g.border,"default"===h?f.background.default:f.background.dark,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,b,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,exports.FONT_WEIGHT.REGULAR,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b);return s.default.createElement(e.Card,i.__assign({className:bt(x,o,(n=a,xt(un||(un=i.__makeTemplateObject(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),n)),function(t){return xt(pn||(pn=i.__makeTemplateObject(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(c))},u))},Pn=le.h1(fn||(fn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Oe),In=le.h2(mn||(mn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Te),Nn=le.h3(gn||(gn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Me),Fn=le.div(bn||(bn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,De),zn=le.div(xn||(xn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Bn=le.div(vn||(vn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Ce),jn=le.h4(yn||(yn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Yn={xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},Hn=function(t){var e=t.spacing,n=i.__rest(t,["spacing"]),o=Ke().divider,r=le.hr(_n||(_n=i.__makeTemplateObject(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),e?Yn[e]:0,e?Yn[e]:0,o.background);return s.default.createElement(r,i.__assign({},n))},Wn=le.div(On||(On=i.__makeTemplateObject(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(t){return!t.withBoxShadow&&"1px solid #e8e8e8"},function(t){return t.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(_e," {\n max-height: 1200px !important;\n }\n ")}),Vn=le.div(Tn||(Tn=i.__makeTemplateObject(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop}),Un=le.div(Mn||(Mn=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Gn=le(Fn)(Dn||(Dn=i.__makeTemplateObject(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),_e),$n=le(n.SvgArrowUp)(Cn||(Cn=i.__makeTemplateObject(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(t){return t.open&&"rotate(0deg)"}),Xn=le.div(An||(An=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"])));
|
|
2
2
|
/*!
|
|
3
3
|
* Chart.js v3.9.1
|
|
4
4
|
* https://www.chartjs.org
|
|
5
5
|
* (c) 2022 Chart.js Contributors
|
|
6
6
|
* Released under the MIT License
|
|
7
7
|
*/
|
|
8
|
-
function qn(){}const Zn=function(){let t=0;return function(){return t++}}();function Kn(t){return null==t}function Jn(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 Qn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ei(t,e){return ti(t)?t:e}function ni(t,e){return void 0===t?e:t}const ii=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function oi(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function ri(t,e,n,i){let o,r,a;if(Jn(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Qn(t))for(a=Object.keys(t),r=a.length,o=0;o<r;o++)e.call(n,t[a[o]],a[o])}function ai(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function si(t){if(Jn(t))return t.map(si);if(Qn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=si(t[n[o]]);return e}return t}function li(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ci(t,e,n,i){if(!li(t))return;const o=e[t],r=n[t];Qn(o)&&Qn(r)?di(o,r,i):e[t]=si(r)}function di(t,e,n){const i=Jn(e)?e:[e],o=i.length;if(!Qn(t))return t;const r=(n=n||{}).merger||ci;for(let a=0;a<o;++a){if(!Qn(e=i[a]))continue;const o=Object.keys(e);for(let i=0,a=o.length;i<a;++i)r(o[i],t,e,n)}return t}function hi(t,e){return di(t,e,{merger:ui})}function ui(t,e,n){if(!li(t))return;const i=e[t],o=n[t];Qn(i)&&Qn(o)?hi(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=si(o))}const pi={"":t=>t,x:t=>t.x,y:t=>t.y};function fi(t,e){const n=pi[e]||(pi[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function
|
|
8
|
+
function qn(){}const Zn=function(){let t=0;return function(){return t++}}();function Kn(t){return null==t}function Jn(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 Qn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ei(t,e){return ti(t)?t:e}function ni(t,e){return void 0===t?e:t}const ii=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function oi(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function ri(t,e,n,i){let o,r,a;if(Jn(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Qn(t))for(a=Object.keys(t),r=a.length,o=0;o<r;o++)e.call(n,t[a[o]],a[o])}function ai(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function si(t){if(Jn(t))return t.map(si);if(Qn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=si(t[n[o]]);return e}return t}function li(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ci(t,e,n,i){if(!li(t))return;const o=e[t],r=n[t];Qn(o)&&Qn(r)?di(o,r,i):e[t]=si(r)}function di(t,e,n){const i=Jn(e)?e:[e],o=i.length;if(!Qn(t))return t;const r=(n=n||{}).merger||ci;for(let a=0;a<o;++a){if(!Qn(e=i[a]))continue;const o=Object.keys(e);for(let i=0,a=o.length;i<a;++i)r(o[i],t,e,n)}return t}function hi(t,e){return di(t,e,{merger:ui})}function ui(t,e,n){if(!li(t))return;const i=e[t],o=n[t];Qn(i)&&Qn(o)?hi(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=si(o))}const pi={"":t=>t,x:t=>t.x,y:t=>t.y};function fi(t,e){const n=pi[e]||(pi[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function mi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const gi=t=>void 0!==t,bi=t=>"function"==typeof t,xi=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const vi=Math.PI,yi=2*vi,_i=yi+vi,wi=Number.POSITIVE_INFINITY,ki=vi/180,Si=vi/2,Ei=vi/4,Oi=2*vi/3,Ti=Math.log10,Mi=Math.sign;function Di(t){const e=Math.round(t);t=Ai(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ti(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Ci(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ai(t,e,n){return Math.abs(t-e)<n}function Ri(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Li(t){return t*(vi/180)}function Pi(t){return t*(180/vi)}function Ii(t){if(!ti(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ni(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*vi&&(r+=yi),{angle:r,distance:o}}function Fi(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zi(t,e){return(t-e+_i)%yi-vi}function Bi(t){return(t%yi+yi)%yi}function ji(t,e,n,i){const o=Bi(t),r=Bi(e),a=Bi(n),s=Bi(r-o),l=Bi(a-o),c=Bi(o-r),d=Bi(o-a);return o===r||o===a||i&&r===a||s>l&&c<d}function Yi(t,e,n){return Math.max(e,Math.min(n,t))}function Hi(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Wi(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Vi=(t,e,n,i)=>Wi(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),Ui=(t,e,n)=>Wi(t,n,i=>t[i][e]>=n);const Gi=["push","pop","shift","splice","unshift"];function $i(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(Gi.forEach(e=>{delete t[e]}),delete t._chartjs)}function Xi(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const qi="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Zi(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...n){r=i(n),o||(o=!0,qi.call(window,()=>{o=!1,t.apply(e,r)}))}}const Ki=t=>"start"===t?"left":"end"===t?"right":"center",Ji=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function Qi(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:d,minDefined:h,maxDefined:u}=a.getUserBounds();h&&(o=Yi(Math.min(Vi(s,a.axis,c).lo,n?i:Vi(e,l,a.getPixelForValue(c)).lo),0,i-1)),r=u?Yi(Math.max(Vi(s,a.axis,d,!0).hi+1,n?0:Vi(e,l,a.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:r}}function to(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const eo=t=>0===t||1===t,no=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*yi/n),io=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*yi/n)+1,oo={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*Si),easeOutSine:t=>Math.sin(t*Si),easeInOutSine:t=>-.5*(Math.cos(vi*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=>eo(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=>eo(t)?t:no(t,.075,.3),easeOutElastic:t=>eo(t)?t:io(t,.075,.3),easeInOutElastic(t){const e=.1125;return eo(t)?t:t<.5?.5*no(2*t,e,.45):.5+.5*io(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-oo.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*oo.easeInBounce(2*t):.5*oo.easeOutBounce(2*t-1)+.5};
|
|
9
9
|
/*!
|
|
10
10
|
* @kurkle/color v0.2.1
|
|
11
11
|
* https://github.com/kurkle/color#readme
|
|
12
12
|
* (c) 2022 Jukka Kurkela
|
|
13
13
|
* Released under the MIT License
|
|
14
14
|
*/
|
|
15
|
-
function ro(t){return t+.5|0}const ao=(t,e,n)=>Math.max(Math.min(t,n),e);function so(t){return ao(ro(2.55*t),0,255)}function lo(t){return ao(ro(255*t),0,255)}function co(t){return ao(ro(t/2.55)/100,0,1)}function ho(t){return ao(ro(100*t),0,100)}const uo={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},po=[..."0123456789ABCDEF"],fo=t=>po[15&t],go=t=>po[(240&t)>>4]+po[15&t],mo=t=>(240&t)>>4==(15&t);function bo(t){var e=(t=>mo(t.r)&&mo(t.g)&&mo(t.b)&&mo(t.a))(t)?fo:go;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const xo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vo(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function yo(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function _o(t,e,n){const i=vo(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function wo(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),r=Math.min(e,n,i),a=(o+r)/2;let s,l,c;return o!==r&&(c=o-r,l=a>.5?c/(2-o-r):c/(o+r),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,a]}function ko(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(lo)}function So(t,e,n){return ko(vo,t,e,n)}function Eo(t){return(t%360+360)%360}function Oo(t){const e=xo.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?so(+e[5]):lo(+e[5]));const o=Eo(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return ko(_o,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return ko(yo,t,e,n)}(o,r,a):So(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const To={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"},Mo={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 Do;function Co(t){Do||(Do=function(){const t={},e=Object.keys(Mo),n=Object.keys(To);let i,o,r,a,s;for(i=0;i<e.length;i++){for(a=s=e[i],o=0;o<n.length;o++)r=n[o],s=s.replace(r,To[r]);r=parseInt(Mo[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),Do.transparent=[0,0,0,0]);const e=Do[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ao=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ro=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Lo=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Po(t,e,n){if(t){let i=wo(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=So(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Io(t,e){return t?Object.assign(e||{},t):t}function No(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=lo(t[3]))):(e=Io(t,{r:0,g:0,b:0,a:1})).a=lo(e.a),e}function Fo(t){return"r"===t.charAt(0)?function(t){const e=Ao.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=e[8]?so(t):ao(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?so(n):ao(n,0,255)),i=255&(e[4]?so(i):ao(i,0,255)),o=255&(e[6]?so(o):ao(o,0,255)),{r:n,g:i,b:o,a:r}}}(t):Oo(t)}class zo{constructor(t){if(t instanceof zo)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=No(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*uo[i[1]],g:255&17*uo[i[2]],b:255&17*uo[i[3]],a:5===r?17*uo[i[4]]:255}:7!==r&&9!==r||(o={r:uo[i[1]]<<4|uo[i[2]],g:uo[i[3]]<<4|uo[i[4]],b:uo[i[5]]<<4|uo[i[6]],a:9===r?uo[i[7]]<<4|uo[i[8]]:255})),n=o||Co(t)||Fo(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Io(this._rgb);return t&&(t.a=co(t.a)),t}set rgb(t){this._rgb=No(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${co(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?bo(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=wo(t),n=e[0],i=ho(e[1]),o=ho(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${co(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,s=n.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Lo(co(t.r)),o=Lo(co(t.g)),r=Lo(co(t.b));return{r:lo(Ro(i+n*(Lo(co(e.r))-i))),g:lo(Ro(o+n*(Lo(co(e.g))-o))),b:lo(Ro(r+n*(Lo(co(e.b))-r))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new zo(this.rgb)}alpha(t){return this._rgb.a=lo(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ro(.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 Po(this._rgb,2,t),this}darken(t){return Po(this._rgb,2,-t),this}saturate(t){return Po(this._rgb,1,t),this}desaturate(t){return Po(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=wo(t);n[0]=Eo(n[0]+e),n=So(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Bo(t){return new zo(t)}function jo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yo(t){return jo(t)?t:Bo(t)}function Ho(t){return jo(t)?t:Bo(t).saturate(.5).darken(.1).hexString()}const Wo=Object.create(null),Vo=Object.create(null);function Uo(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Go(t,e,n){return"string"==typeof e?di(Uo(t,e),n):di(Uo(t,""),e)}var $o=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ho(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ho(e.borderColor),this.hoverColor=(t,e)=>Ho(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)}set(t,e){return Go(this,t,e)}get(t){return Uo(this,t)}describe(t,e){return Go(Vo,t,e)}override(t,e){return Go(Wo,t,e)}route(t,e,n,i){const o=Uo(this,t),r=Uo(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[i];return Qn(t)?Object.assign({},e,t):ni(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Xo(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function qo(t,e,n,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Jn(h))a=Xo(t,o,r,a,h);else if(Jn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Jn(u)||(a=Xo(t,o,r,a,u));t.restore();const p=r.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[r[l]];r.splice(0,p)}return a}function Zo(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Ko(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Jo(t,e,n,i){Qo(t,e,n,i,null)}function Qo(t,e,n,i,o){let r,a,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*ki;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,yi):t.arc(n,i,p,0,yi),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,a=Math.cos(f+Ei)*l,s=Math.sin(f+Ei)*l,t.arc(n-a,i-s,c,f-vi,f-Si),t.arc(n+s,i-a,c,f-Si,f),t.arc(n+a,i+s,c,f,f+Si),t.arc(n-s,i+a,c,f+Si,f+vi),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}f+=Ei;case"rectRot":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+s,i-a),t.lineTo(n+a,i+s),t.lineTo(n-s,i+a),t.closePath();break;case"crossRot":f+=Ei;case"cross":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"star":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a),f+=Ei,a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"line":a=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function tr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function er(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function nr(t){t.restore()}function ir(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function or(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function rr(t,e,n,i,o,r={}){const a=Jn(e)?e:[e],s=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Kn(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,r),l=0;l<a.length;++l)c=a[l],s&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Kn(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),ar(t,n,i,c,r),i+=o.lineHeight;t.restore()}function ar(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),a=e-r.actualBoundingBoxLeft,s=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,d),t.lineTo(s,d),t.stroke()}}function sr(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-Si,vi,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,vi,Si,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,Si,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-Si,!0),t.lineTo(n+a.topLeft,i)}const lr=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),cr=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function dr(t,e){const n=(""+t).match(lr);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const hr=t=>+t||0;function ur(t,e){const n={},i=Qn(e),o=i?Object.keys(e):e,r=Qn(t)?i?n=>ni(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=hr(r(t));return n}function pr(t){return ur(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fr(t){return ur(t,["topLeft","topRight","bottomLeft","bottomRight"])}function gr(t){const e=pr(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function mr(t,e){t=t||{},e=e||$o.font;let n=ni(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ni(t.style,e.style);i&&!(""+i).match(cr)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ni(t.family,e.family),lineHeight:dr(ni(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ni(t.weight,e.weight),string:""};return o.string=function(t){return!t||Kn(t.size)||Kn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function br(t,e,n,i){let o,r,a,s=!0;for(o=0,r=t.length;o<r;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&Jn(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function xr(t,e){return Object.assign(Object.create(t),e)}function vr(t,e=[""],n=t,i,o=()=>t[0]){mi(i)||(i=Cr("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>vr([o,...t],e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Sr(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=Cr(wr(r,t),n),mi(o))return kr(t,o)?Mr(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ar(t).includes(e),ownKeys:t=>Ar(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function yr(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_r(t,i),setContext:e=>yr(t,e,n,i),override:o=>yr(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Sr(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=t;let s=i[e];bi(s)&&a.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(r,a||i),s.delete(t),kr(t,e)&&(e=Mr(o._scopes,o,t,e));return e}(e,s,t,n));Jn(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:s}=n;if(mi(r.index)&&i(t))e=e[r.index%e.length];else if(Qn(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Mr(i,o,t,l);e.push(yr(n,r,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));kr(e,s)&&(s=yr(s,o,r&&r[e],a));return s}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function _r(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:bi(n)?n:()=>n,isIndexable:bi(i)?i:()=>i}}const wr=(t,e)=>t?t+gi(e):e,kr=(t,e)=>Qn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Sr(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Er(t,e,n){return bi(t)?t(e,n):t}const Or=(t,e)=>!0===t?e:"string"==typeof t?fi(e,t):void 0;function Tr(t,e,n,i,o){for(const r of e){const e=Or(n,r);if(e){t.add(e);const r=Er(e._fallback,n,o);if(mi(r)&&r!==n&&r!==i)return r}else if(!1===e&&mi(i)&&n!==i)return null}return!1}function Mr(t,e,n,i){const o=e._rootScopes,r=Er(e._fallback,n,i),a=[...t,...o],s=new Set;s.add(i);let l=Dr(s,a,n,r||n,i);return null!==l&&((!mi(r)||r===n||(l=Dr(s,a,r,l,i),null!==l))&&vr(Array.from(s),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Jn(o)&&Qn(n))return n;return o}(e,n,i)))}function Dr(t,e,n,i,o){for(;n;)n=Tr(t,e,n,i,o);return n}function Cr(t,e){for(const n of e){if(!n)continue;const e=n[t];if(mi(e))return e}}function Ar(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Rr(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={r:o.parse(fi(d,r),c)};return a}const Lr=Number.EPSILON||1e-14,Pr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ir=t=>"x"===t?"y":"x";function Nr(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=Fi(r,o),l=Fi(a,r);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+u*(a.x-o.x),y:r.y+u*(a.y-o.y)}}}function Fr(t,e="x"){const n=Ir(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=Pr(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=Pr(t,a+1),l){if(c){const t=c[e]-l[e];o[a]=0!==t?(c[n]-l[n])/t:0}r[a]=s?c?Mi(o[a-1])!==Mi(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const i=t.length;let o,r,a,s,l,c=Pr(t,0);for(let d=0;d<i-1;++d)l=c,c=Pr(t,d+1),l&&c&&(Ai(e[d],0,Lr)?n[d]=n[d+1]=0:(o=n[d]/e[d],r=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(r,2),s<=9||(a=3/Math.sqrt(s),n[d]=o*a*e[d],n[d+1]=r*a*e[d])))}(t,o,r),function(t,e,n="x"){const i=Ir(n),o=t.length;let r,a,s,l=Pr(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=Pr(t,c+1),!s)continue;const o=s[n],d=s[i];a&&(r=(o-a[n])/3,s[`cp1${n}`]=o-r,s[`cp1${i}`]=d-r*e[c]),l&&(r=(l[n]-o)/3,s[`cp2${n}`]=o+r,s[`cp2${i}`]=d+r*e[c])}}(t,r,e)}function zr(t,e,n){return Math.max(Math.min(t,n),e)}function Br(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Fr(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,a=t.length;r<a;++r)s=t[r],l=Nr(n,s,t[Math.min(r+1,a-(i?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,r,a,s=tr(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&tr(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=zr(o.cp1x,e.left,e.right),o.cp1y=zr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=zr(o.cp2x,e.left,e.right),o.cp2y=zr(o.cp2y,e.top,e.bottom)))}(t,n)}function jr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Yr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Hr(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Wr=t=>window.getComputedStyle(t,null);const Vr=["top","right","bottom","left"];function Ur(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=Vr[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Gr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Wr(n),r="border-box"===o.boxSizing,a=Ur(o,"padding"),s=Ur(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,t.target))a=o,s=r;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(d&&s.left),u=a.top+(d&&s.top);let{width:p,height:f}=e;return r&&(p-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const $r=t=>Math.round(10*t)/10;function Xr(t,e,n,i){const o=Wr(t),r=Ur(o,"margin"),a=Hr(o.maxWidth,t,"clientWidth")||wi,s=Hr(o.maxHeight,t,"clientHeight")||wi,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=Yr(t);if(r){const t=r.getBoundingClientRect(),a=Wr(r),s=Ur(a,"border","width"),l=Ur(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Hr(a.maxWidth,r,"clientWidth"),o=Hr(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||wi,maxHeight:o||wi}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=Ur(o,"border","width"),e=Ur(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-r.width),d=Math.max(0,i?Math.floor(c/i):d-r.height),c=$r(Math.min(c,a,l.maxWidth)),d=$r(Math.min(d,s,l.maxHeight)),c&&!d&&(d=$r(c/2)),{width:c,height:d}}function qr(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=o/i,t.width=r/i;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==o||a.width!==r)&&(t.currentDevicePixelRatio=i,a.height=o,a.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Zr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Kr(t,e){const n=function(t,e){return Wr(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Jr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Qr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ta(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=Jr(t,o,n),s=Jr(o,r,n),l=Jr(r,e,n),c=Jr(a,s,n),d=Jr(s,l,n);return Jr(c,d,n)}const ea=new Map;function na(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ea.get(n);return i||(i=new Intl.NumberFormat(t,e),ea.set(n,i)),i}(e,n).format(t)}function ia(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function oa(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ra(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function aa(t){return"angle"===t?{between:ji,compare:zi,normalize:Bi}:{between:Hi,compare:(t,e)=>t-e,normalize:t=>t}}function sa({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function la(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=aa(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:r}=n,{between:a,normalize:s}=aa(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&a(s(e[h%l][i]),o,r);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,v=null;const y=()=>x||l(o,b,g)&&0!==s(o,b),_=()=>!x||0===s(r,g)||l(r,b,g);for(let t=d,n=d;t<=h;++t)m=e[t%a],m.skip||(g=c(m[i]),g!==b&&(x=l(g,o,r),null===v&&y()&&(v=0===s(g,o)?t:n),null!==v&&_()&&(f.push(sa({start:v,end:t,loop:u,count:a,style:p})),v=null),n=t,b=g));return null!==v&&f.push(sa({start:v,end:h,loop:u,count:a,style:p})),f}function ca(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=la(i[o],t.points,e);r.length&&n.push(...r)}return n}function da(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=ha(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let d=r,h=e[0].start,u=h;function p(t,e,i,o){const r=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=r;for(;n[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,r=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=ha(i.setContext(xr(o,{type:"segment",p0:r,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),ua(e,d)&&p(h,u-1,t.loop,d),r=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function ha(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ua(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
|
15
|
+
function ro(t){return t+.5|0}const ao=(t,e,n)=>Math.max(Math.min(t,n),e);function so(t){return ao(ro(2.55*t),0,255)}function lo(t){return ao(ro(255*t),0,255)}function co(t){return ao(ro(t/2.55)/100,0,1)}function ho(t){return ao(ro(100*t),0,100)}const uo={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},po=[..."0123456789ABCDEF"],fo=t=>po[15&t],mo=t=>po[(240&t)>>4]+po[15&t],go=t=>(240&t)>>4==(15&t);function bo(t){var e=(t=>go(t.r)&&go(t.g)&&go(t.b)&&go(t.a))(t)?fo:mo;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const xo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vo(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function yo(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function _o(t,e,n){const i=vo(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function wo(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),r=Math.min(e,n,i),a=(o+r)/2;let s,l,c;return o!==r&&(c=o-r,l=a>.5?c/(2-o-r):c/(o+r),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,a]}function ko(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(lo)}function So(t,e,n){return ko(vo,t,e,n)}function Eo(t){return(t%360+360)%360}function Oo(t){const e=xo.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?so(+e[5]):lo(+e[5]));const o=Eo(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return ko(_o,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return ko(yo,t,e,n)}(o,r,a):So(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const To={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"},Mo={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 Do;function Co(t){Do||(Do=function(){const t={},e=Object.keys(Mo),n=Object.keys(To);let i,o,r,a,s;for(i=0;i<e.length;i++){for(a=s=e[i],o=0;o<n.length;o++)r=n[o],s=s.replace(r,To[r]);r=parseInt(Mo[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),Do.transparent=[0,0,0,0]);const e=Do[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ao=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ro=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Lo=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Po(t,e,n){if(t){let i=wo(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=So(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Io(t,e){return t?Object.assign(e||{},t):t}function No(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=lo(t[3]))):(e=Io(t,{r:0,g:0,b:0,a:1})).a=lo(e.a),e}function Fo(t){return"r"===t.charAt(0)?function(t){const e=Ao.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=e[8]?so(t):ao(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?so(n):ao(n,0,255)),i=255&(e[4]?so(i):ao(i,0,255)),o=255&(e[6]?so(o):ao(o,0,255)),{r:n,g:i,b:o,a:r}}}(t):Oo(t)}class zo{constructor(t){if(t instanceof zo)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=No(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*uo[i[1]],g:255&17*uo[i[2]],b:255&17*uo[i[3]],a:5===r?17*uo[i[4]]:255}:7!==r&&9!==r||(o={r:uo[i[1]]<<4|uo[i[2]],g:uo[i[3]]<<4|uo[i[4]],b:uo[i[5]]<<4|uo[i[6]],a:9===r?uo[i[7]]<<4|uo[i[8]]:255})),n=o||Co(t)||Fo(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Io(this._rgb);return t&&(t.a=co(t.a)),t}set rgb(t){this._rgb=No(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${co(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?bo(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=wo(t),n=e[0],i=ho(e[1]),o=ho(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${co(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,s=n.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Lo(co(t.r)),o=Lo(co(t.g)),r=Lo(co(t.b));return{r:lo(Ro(i+n*(Lo(co(e.r))-i))),g:lo(Ro(o+n*(Lo(co(e.g))-o))),b:lo(Ro(r+n*(Lo(co(e.b))-r))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new zo(this.rgb)}alpha(t){return this._rgb.a=lo(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ro(.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 Po(this._rgb,2,t),this}darken(t){return Po(this._rgb,2,-t),this}saturate(t){return Po(this._rgb,1,t),this}desaturate(t){return Po(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=wo(t);n[0]=Eo(n[0]+e),n=So(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Bo(t){return new zo(t)}function jo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yo(t){return jo(t)?t:Bo(t)}function Ho(t){return jo(t)?t:Bo(t).saturate(.5).darken(.1).hexString()}const Wo=Object.create(null),Vo=Object.create(null);function Uo(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Go(t,e,n){return"string"==typeof e?di(Uo(t,e),n):di(Uo(t,""),e)}var $o=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ho(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ho(e.borderColor),this.hoverColor=(t,e)=>Ho(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)}set(t,e){return Go(this,t,e)}get(t){return Uo(this,t)}describe(t,e){return Go(Vo,t,e)}override(t,e){return Go(Wo,t,e)}route(t,e,n,i){const o=Uo(this,t),r=Uo(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[i];return Qn(t)?Object.assign({},e,t):ni(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Xo(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function qo(t,e,n,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Jn(h))a=Xo(t,o,r,a,h);else if(Jn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Jn(u)||(a=Xo(t,o,r,a,u));t.restore();const p=r.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[r[l]];r.splice(0,p)}return a}function Zo(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Ko(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Jo(t,e,n,i){Qo(t,e,n,i,null)}function Qo(t,e,n,i,o){let r,a,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*ki;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,yi):t.arc(n,i,p,0,yi),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,a=Math.cos(f+Ei)*l,s=Math.sin(f+Ei)*l,t.arc(n-a,i-s,c,f-vi,f-Si),t.arc(n+s,i-a,c,f-Si,f),t.arc(n+a,i+s,c,f,f+Si),t.arc(n-s,i+a,c,f+Si,f+vi),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}f+=Ei;case"rectRot":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+s,i-a),t.lineTo(n+a,i+s),t.lineTo(n-s,i+a),t.closePath();break;case"crossRot":f+=Ei;case"cross":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"star":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a),f+=Ei,a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"line":a=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function tr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function er(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function nr(t){t.restore()}function ir(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function or(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function rr(t,e,n,i,o,r={}){const a=Jn(e)?e:[e],s=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Kn(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,r),l=0;l<a.length;++l)c=a[l],s&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Kn(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),ar(t,n,i,c,r),i+=o.lineHeight;t.restore()}function ar(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),a=e-r.actualBoundingBoxLeft,s=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,d),t.lineTo(s,d),t.stroke()}}function sr(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-Si,vi,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,vi,Si,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,Si,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-Si,!0),t.lineTo(n+a.topLeft,i)}const lr=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),cr=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function dr(t,e){const n=(""+t).match(lr);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const hr=t=>+t||0;function ur(t,e){const n={},i=Qn(e),o=i?Object.keys(e):e,r=Qn(t)?i?n=>ni(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=hr(r(t));return n}function pr(t){return ur(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fr(t){return ur(t,["topLeft","topRight","bottomLeft","bottomRight"])}function mr(t){const e=pr(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function gr(t,e){t=t||{},e=e||$o.font;let n=ni(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ni(t.style,e.style);i&&!(""+i).match(cr)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ni(t.family,e.family),lineHeight:dr(ni(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ni(t.weight,e.weight),string:""};return o.string=function(t){return!t||Kn(t.size)||Kn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function br(t,e,n,i){let o,r,a,s=!0;for(o=0,r=t.length;o<r;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&Jn(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function xr(t,e){return Object.assign(Object.create(t),e)}function vr(t,e=[""],n=t,i,o=()=>t[0]){gi(i)||(i=Cr("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>vr([o,...t],e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Sr(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=Cr(wr(r,t),n),gi(o))return kr(t,o)?Mr(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ar(t).includes(e),ownKeys:t=>Ar(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function yr(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_r(t,i),setContext:e=>yr(t,e,n,i),override:o=>yr(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Sr(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=t;let s=i[e];bi(s)&&a.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(r,a||i),s.delete(t),kr(t,e)&&(e=Mr(o._scopes,o,t,e));return e}(e,s,t,n));Jn(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:s}=n;if(gi(r.index)&&i(t))e=e[r.index%e.length];else if(Qn(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Mr(i,o,t,l);e.push(yr(n,r,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));kr(e,s)&&(s=yr(s,o,r&&r[e],a));return s}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function _r(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:bi(n)?n:()=>n,isIndexable:bi(i)?i:()=>i}}const wr=(t,e)=>t?t+mi(e):e,kr=(t,e)=>Qn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Sr(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Er(t,e,n){return bi(t)?t(e,n):t}const Or=(t,e)=>!0===t?e:"string"==typeof t?fi(e,t):void 0;function Tr(t,e,n,i,o){for(const r of e){const e=Or(n,r);if(e){t.add(e);const r=Er(e._fallback,n,o);if(gi(r)&&r!==n&&r!==i)return r}else if(!1===e&&gi(i)&&n!==i)return null}return!1}function Mr(t,e,n,i){const o=e._rootScopes,r=Er(e._fallback,n,i),a=[...t,...o],s=new Set;s.add(i);let l=Dr(s,a,n,r||n,i);return null!==l&&((!gi(r)||r===n||(l=Dr(s,a,r,l,i),null!==l))&&vr(Array.from(s),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Jn(o)&&Qn(n))return n;return o}(e,n,i)))}function Dr(t,e,n,i,o){for(;n;)n=Tr(t,e,n,i,o);return n}function Cr(t,e){for(const n of e){if(!n)continue;const e=n[t];if(gi(e))return e}}function Ar(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Rr(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={r:o.parse(fi(d,r),c)};return a}const Lr=Number.EPSILON||1e-14,Pr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ir=t=>"x"===t?"y":"x";function Nr(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=Fi(r,o),l=Fi(a,r);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+u*(a.x-o.x),y:r.y+u*(a.y-o.y)}}}function Fr(t,e="x"){const n=Ir(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=Pr(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=Pr(t,a+1),l){if(c){const t=c[e]-l[e];o[a]=0!==t?(c[n]-l[n])/t:0}r[a]=s?c?Mi(o[a-1])!==Mi(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const i=t.length;let o,r,a,s,l,c=Pr(t,0);for(let d=0;d<i-1;++d)l=c,c=Pr(t,d+1),l&&c&&(Ai(e[d],0,Lr)?n[d]=n[d+1]=0:(o=n[d]/e[d],r=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(r,2),s<=9||(a=3/Math.sqrt(s),n[d]=o*a*e[d],n[d+1]=r*a*e[d])))}(t,o,r),function(t,e,n="x"){const i=Ir(n),o=t.length;let r,a,s,l=Pr(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=Pr(t,c+1),!s)continue;const o=s[n],d=s[i];a&&(r=(o-a[n])/3,s[`cp1${n}`]=o-r,s[`cp1${i}`]=d-r*e[c]),l&&(r=(l[n]-o)/3,s[`cp2${n}`]=o+r,s[`cp2${i}`]=d+r*e[c])}}(t,r,e)}function zr(t,e,n){return Math.max(Math.min(t,n),e)}function Br(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Fr(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,a=t.length;r<a;++r)s=t[r],l=Nr(n,s,t[Math.min(r+1,a-(i?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,r,a,s=tr(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&tr(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=zr(o.cp1x,e.left,e.right),o.cp1y=zr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=zr(o.cp2x,e.left,e.right),o.cp2y=zr(o.cp2y,e.top,e.bottom)))}(t,n)}function jr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Yr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Hr(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Wr=t=>window.getComputedStyle(t,null);const Vr=["top","right","bottom","left"];function Ur(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=Vr[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Gr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Wr(n),r="border-box"===o.boxSizing,a=Ur(o,"padding"),s=Ur(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,t.target))a=o,s=r;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(d&&s.left),u=a.top+(d&&s.top);let{width:p,height:f}=e;return r&&(p-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const $r=t=>Math.round(10*t)/10;function Xr(t,e,n,i){const o=Wr(t),r=Ur(o,"margin"),a=Hr(o.maxWidth,t,"clientWidth")||wi,s=Hr(o.maxHeight,t,"clientHeight")||wi,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=Yr(t);if(r){const t=r.getBoundingClientRect(),a=Wr(r),s=Ur(a,"border","width"),l=Ur(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Hr(a.maxWidth,r,"clientWidth"),o=Hr(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||wi,maxHeight:o||wi}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=Ur(o,"border","width"),e=Ur(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-r.width),d=Math.max(0,i?Math.floor(c/i):d-r.height),c=$r(Math.min(c,a,l.maxWidth)),d=$r(Math.min(d,s,l.maxHeight)),c&&!d&&(d=$r(c/2)),{width:c,height:d}}function qr(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=o/i,t.width=r/i;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==o||a.width!==r)&&(t.currentDevicePixelRatio=i,a.height=o,a.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Zr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Kr(t,e){const n=function(t,e){return Wr(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Jr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Qr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ta(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=Jr(t,o,n),s=Jr(o,r,n),l=Jr(r,e,n),c=Jr(a,s,n),d=Jr(s,l,n);return Jr(c,d,n)}const ea=new Map;function na(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ea.get(n);return i||(i=new Intl.NumberFormat(t,e),ea.set(n,i)),i}(e,n).format(t)}function ia(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function oa(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ra(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function aa(t){return"angle"===t?{between:ji,compare:zi,normalize:Bi}:{between:Hi,compare:(t,e)=>t-e,normalize:t=>t}}function sa({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function la(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=aa(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:r}=n,{between:a,normalize:s}=aa(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&a(s(e[h%l][i]),o,r);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),f=[];let m,g,b,x=!1,v=null;const y=()=>x||l(o,b,m)&&0!==s(o,b),_=()=>!x||0===s(r,m)||l(r,b,m);for(let t=d,n=d;t<=h;++t)g=e[t%a],g.skip||(m=c(g[i]),m!==b&&(x=l(m,o,r),null===v&&y()&&(v=0===s(m,o)?t:n),null!==v&&_()&&(f.push(sa({start:v,end:t,loop:u,count:a,style:p})),v=null),n=t,b=m));return null!==v&&f.push(sa({start:v,end:h,loop:u,count:a,style:p})),f}function ca(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=la(i[o],t.points,e);r.length&&n.push(...r)}return n}function da(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=ha(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let d=r,h=e[0].start,u=h;function p(t,e,i,o){const r=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=r;for(;n[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,r=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=ha(i.setContext(xr(o,{type:"segment",p0:r,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),ua(e,d)&&p(h,u-1,t.loop,d),r=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function ha(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ua(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
|
16
16
|
/*!
|
|
17
17
|
* Chart.js v3.9.1
|
|
18
18
|
* https://www.chartjs.org
|
|
19
19
|
* (c) 2022 Chart.js Contributors
|
|
20
20
|
* Released under the MIT License
|
|
21
|
-
*/var pa=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=qi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,a=o.length-1,s=!1;for(;a>=0;--a)r=o[a],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const fa="transparent",ga={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Yo(t||fa),o=i.valid&&Yo(e||fa);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class ma{constructor(t,e,n,i){const o=e[n];i=br([t.to,i,o,t.from]);const r=br([t.from,o,i]);this._active=!0,this._fn=t.fn||ga[t.type||typeof r],this._easing=oo[t.easing]||oo.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=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=br([t.to,e,i,t.from]),this._from=br([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let s;if(this._active=o!==a&&(r||e<n),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}$o.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ba=Object.keys($o.animation);$o.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),$o.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),$o.describe("animations",{_fallback:"animation"}),$o.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class xa{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Qn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!Qn(i))return;const o={};for(const t of ba)o[t]=i[t];(Jn(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,a);continue}d.cancel()}h&&h.duration?(o[l]=d=new ma(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(pa.add(this._chart,n),!0):void 0}}function va(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function ya(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function _a(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let a,s,l,c;if(null!==e){for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(i.all)continue;break}c=t.values[l],ti(c)&&(r||0===e||Mi(e)===Mi(c))&&(e+=c)}return e}}function wa(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ka(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Sa(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ea(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:a,index:s}=i,l=r.axis,c=a.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(r,a,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:r,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=ka(o,d,r),u[s]=h,u._top=Sa(u,a,!0,i.type),u._bottom=Sa(u,a,!1,i.type)}}function Oa(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Ta(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Ma=t=>"reset"===t||"none"===t,Da=(t,e)=>e?t:Object.assign({},t);class Ca{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=wa(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ta(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ni(n.xAxisID,Oa(t,"x")),r=e.yAxisID=ni(n.yAxisID,Oa(t,"y")),a=e.rAxisID=ni(n.rAxisID,Oa(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,r,a),c=e.vAxisID=i(s,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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&&$i(this._data,this),t._stacked&&Ta(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Qn(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i],n[i]={x:r,y:t[r]};return n}(e);else if(n!==e){if(n){$i(n,this);const t=this._cachedMeta;Ta(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Gi.forEach(t=>{const e="_onData"+gi(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=wa(e.vScale,e),e.stack!==n.stack&&(i=!0,Ta(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ea(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,a=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Jn(i[t])?this.parseArrayData(n,i,t,e):Qn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[a]||h&&l[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}r&&Ea(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,a=o.axis,s=r.axis,l=o.getLabels(),c=o===r,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[a]:c||o.parse(l[p],p),[s]:r.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={x:o.parse(d[0],c),y:r.parse(d[1],c)};return a}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(fi(u,a),h),y:r.parse(fi(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis];return _a({keys:ya(i,!0),values:e._stacks[t.axis]},r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const a=i&&n._stacks[e.axis];i&&a&&(i.values=a,r=_a(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ya(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let h,u;function p(){u=i[h];const e=u[a.axis];return!ti(u[t.axis])||c>e||d<e}for(h=0;h<r&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=r-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],ti(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Qn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ni(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=va(t,n),o=va(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],a=this._drawStart||0,s=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,a,s),c=a;c<a+s;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=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,n){return xr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return xr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,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",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],s=this.enableOptionSharing&&mi(n);if(a)return Da(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys($o.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[r]=Object.freeze(Da(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(r,this.getContext(t,n,e))}const l=new xa(i,s&&s.animations);return s&&s._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ma(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){Ma(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Ma(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"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,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=r;a--)t[a]=t[a-e]};for(s(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ta(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Aa(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Xi(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,r,a,s=e._length;const l=()=>{32767!==r&&-32768!==r&&(mi(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),l();return s}function Ra(t,e,n,i){return Jn(t)?function(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),a=Math.min(o,r),s=Math.max(o,r);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function La(t,e,n,i){const o=t.iScale,r=t.vScale,a=o.getLabels(),s=o===r,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(a[c],c),l.push(Ra(u,h,r,c));return l}function Pa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ia(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(r[Na(d,a,s,l)]=!0,o=c)),r[Na(o,a,s,l)]=!0,t.borderSkipped=r}function Na(t,e,n,i){var o,r,a;return i?(a=n,t=Fa(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=Fa(t,e,n),t}function Fa(t,e,n){return"start"===t?e:"end"===t?n:t}function za(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Ca.defaults={},Ca.prototype.datasetElementType=null,Ca.prototype.dataElementType=null;class Ba extends Ca{parsePrimitiveData(t,e,n,i){return La(t,e,n,i)}parseArrayData(t,e,n,i){return La(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===r.axis?a:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(fi(f,l),h),d.push(Ra(fi(f,c),p,r,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,a=Pa(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}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,n,i){const o="reset"===i,{index:r,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Kn(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Pa(e._custom)||r===f._top||r===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(g.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const m=g.options||t[u].options;Ia(g,m,f,r),za(g,m,c.ratio),this.updateElement(t[u],u,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,r=[],a=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Kn(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!a(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||Aa(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,r=i||0,a=this.getParsed(t),s=a._custom,l=Pa(s);let c,d,h=a[e.axis],u=0,p=n?this.applyStack(e,a,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Mi(h)!==Mi(s.barEnd)&&(u=0),u+=h);const f=Kn(i)||l?u:i;let g=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):g,d=c-g,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Mi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,r)*o,h===r&&(g-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),a=Math.max(t,n);g=Math.max(Math.min(g,a),i),c=g+d}if(g===e.getPixelForValue(r)){const t=Mi(d)*e.getLineWidthForValue(r)/2;g+=t,d-=t}return{size:d,base:g,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,r=ni(i.maxBarThickness,1/0);let a,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,r=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-a);const c=r-(r-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let r,a;return Kn(o)?(r=e.min*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:e.pixels[t]-r/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(r,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(r,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ba.id="bar",Ba.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ba.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ja extends Ca{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+r+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,d=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),f=u[d]=o?a.getBasePixel():a.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ni(n&&n._custom,o),i}}ja.id="bubble",ja.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ja.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ya extends Ca{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,a=t=>+n[t];if(Qn(n[t])){const{key:t="value"}=this._parsing;a=e=>+fi(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return Li(this.options.rotation-90)}_getCircumference(){return Li(this.options.circumference)}_getRotationExtents(){let t=yi,e=-yi;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,o=1,r=0,a=0;if(e<yi){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>ji(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>ji(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(Si,d,u),b=f(vi,c,h),x=f(vi+Si,d,u);i=(g-b)/2,o=(m-x)/2,r=-(g+b)/2,a=-(m+x)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:a}}(u,h,s),b=(n.width-r)/p,x=(n.height-r)/f,v=Math.max(Math.min(b,x)/2,0),y=ii(this.options.radius,v),_=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/yi)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.chartArea,s=r.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+n;++g){const e=this._circumference(g,o),n=t[g],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:h};f&&(r.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?yi*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,a,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,a=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=a.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ni(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ya.id="doughnut",Ya.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"},Ya.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ya.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Jn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Ha extends Ca{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:s}=Qi(e,i,r);this._drawStart=a,this._drawCount=s,to(e)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(i,a,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=r.axis,u=a.axis,{spanGaps:p,segment:f}=this.options,g=Ci(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=m?e:{},v=Kn(n[u]),y=x[h]=r.getPixelForValue(n[h],p),_=x[u]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[u],p);x.skip=isNaN(y)||isNaN(_)||v,x.stop=p>0&&Math.abs(n[h]-b[h])>g,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),m||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ha.id="line",Ha.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ha.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Wa extends Ca{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}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,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*vi;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),g=r.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(a.animateScale&&(g=0),a.animateRotate&&(n=f=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Li(this.resolveDataElementOptions(t,e).angle||n):0}}Wa.id="polarArea",Wa.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Wa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Va extends Ya{}Va.id="pie",Va.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ua extends Ca{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=r?o.xCenter:s.x,c=r?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,d,i)}}}Ua.id="radar",Ua.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ua.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Ga{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ci(this.x)&&Ci(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Ga.defaults={},Ga.defaultRoutes=void 0;const $a={values:t=>Jn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=Ti(Math.abs(r)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),na(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ti(t)));return 1===i||2===i||5===i?$a.numeric.call(this,t,e,n):""}};var Xa={formatters:$a};function qa(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],r=o.length,a=o[0],s=o[r-1],l=[];if(r>i)return function(t,e,n,i){let o,r=0,a=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===a&&(e.push(t[o]),r++,a=n[r*i])}(e,l,o,r/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const r=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(r>0){let t,n;const i=r>1?Math.round((s-a)/(r-1)):null;for(Za(e,l,c,Kn(i)?0:a-i,a),t=0,n=r-1;t<n;t++)Za(e,l,c,o[t],o[t+1]);return Za(e,l,c,s,Kn(i)?e.length:s+i),l}return Za(e,l,c),l}function Za(t,e,n,i,o){const r=ni(i,0),a=Math.min(ni(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=r;c<0;)d++,c=Math.round(r+d*n);for(l=Math.max(r,0);l<a;l++)l===c&&(e.push(t[l]),d++,c=Math.round(r+d*n))}$o.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Xa.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),$o.route("scale.ticks","color","","color"),$o.route("scale.grid","color","","borderColor"),$o.route("scale.grid","borderColor","","borderColor"),$o.route("scale.title","color","","color"),$o.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),$o.describe("scales",{_fallback:"scale"}),$o.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ka=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Ja(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function Qa(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-s||c>a+s)))return c}function ts(t){return t.drawTicks?t.tickLength:0}function es(t,e){if(!t.display)return 0;const n=mr(t.font,e),i=gr(t.padding);return(Jn(t.text)?t.text.length:1)*n.lineHeight+i.height}function ns(t,e,n){let i=Ki(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class is extends Ga{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:n,_suggestedMax:i}=this;return t=ei(t,Number.POSITIVE_INFINITY),e=ei(e,Number.NEGATIVE_INFINITY),n=ei(n,Number.POSITIVE_INFINITY),i=ei(i,Number.NEGATIVE_INFINITY),{min:ei(t,n),max:ei(e,i),minDefined:ti(t),maxDefined:ti(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:ei(n,ei(i,n)),max:ei(i,ei(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oi(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,r=ii(e,(o-i)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(i,-Math.abs(r)),max:a(o,r)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Ja(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=qa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){oi(this.options.afterUpdate,[this])}beforeSetDimensions(){oi(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(){oi(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),oi(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){oi(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=oi(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){oi(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){oi(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let r,a,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Yi(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/n:u/(n-1),d+6>r&&(r=u/(n-(t.offset?.5:1)),a=this.maxHeight-ts(t.grid)-e.padding-es(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Pi(Math.min(Math.asin(Yi((c.highest.height+6)/r,-1,1)),Math.asin(Yi(a/s,-1,1))-Math.asin(Yi(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){oi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oi(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=es(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=ts(o)+r):(t.height=this.maxHeight,t.width=ts(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),s=2*n.padding,l=Li(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(a){const e=n.mirror?0:d*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*r.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}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,n,i){const{ticks:{align:o,padding:r},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){oi(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,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Kn(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ja(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],r=[];let a,s,l,c,d,h,u,p,f,g,m,b=0,x=0;for(a=0;a<e;++a){if(c=t[a].label,d=this._resolveTickFontOptions(a),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=g=0,Kn(c)||Jn(c)){if(Jn(c))for(s=0,l=c.length;s<l;++s)m=c[s],Kn(m)||Jn(m)||(f=Xo(n,u.data,u.gc,f,m),g+=p)}else f=Xo(n,u.data,u.gc,f,c),g=p;o.push(f),r.push(g),b=Math.max(f,b),x=Math.max(g,x)}!function(t,e){ri(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const v=o.indexOf(b),y=r.indexOf(x),_=t=>({width:o[t]||0,height:r[t]||0});return{first:_(0),last:_(e-1),widest:_(v),highest:_(y),widths:o,heights:r}}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 Yi(this._alignToPixels?Zo(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return xr(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=xr(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Li(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r}=i,a=o.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=ts(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Zo(n,t,u)};let g,m,b,x,v,y,_,w,k,S,E,O;if("top"===r)g=f(this.bottom),y=this.bottom-c,w=g-p,S=f(t.top)+p,O=t.bottom;else if("bottom"===r)g=f(this.top),S=t.top,O=f(t.bottom)-p,y=g+p,w=this.top+c;else if("left"===r)g=f(this.right),v=this.right-c,_=g-p,k=f(t.left)+p,E=t.right;else if("right"===r)g=f(this.left),k=t.left,E=f(t.right)-p,v=g+p,_=this.left+c;else if("x"===e){if("center"===r)g=f((t.top+t.bottom)/2+.5);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,O=t.bottom,y=g+p,w=y+c}else if("y"===e){if("center"===r)g=f((t.left+t.right)/2);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}v=g-p,_=v-c,k=t.left,E=t.right}const T=ni(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/T));for(m=0;m<l;m+=M){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,r=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=Qa(this,m,a),void 0!==b&&(x=Zo(n,b,e),s?v=_=k=E=x:y=w=S=O=x,d.push({tx1:v,ty1:y,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:O,width:e,color:i,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=ts(n.grid),u=h+c,p=d?-c:u,f=-Li(this.labelRotation),g=[];let m,b,x,v,y,_,w,k,S,E,O,T,M="middle";if("top"===i)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)y=(t.left+t.right)/2-u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const D=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){x=a[m],v=x.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,S=this._resolveTickFontOptions(m),E=S.lineHeight,O=Jn(v)?v.length:1;const e=O/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(r?(y=k,"inner"===w&&(u=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==f?-O*E+E/2:"center"===l?-D.highest.height/2-e*E+E:-D.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?D.highest.height/2-e*E:D.highest.height-O*E,d&&(T*=-1)):(_=k,T=(1-O)*E/2),t.showLabelBackdrop){const e=gr(t.backdropPadding),n=D.heights[m],i=D.widths[m];let o=_+T-e.top,r=y-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":r-=i/2;break;case"right":r-=i}h={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:f,label:v,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:T,textAlign:u,textBaseline:M,translation:[y,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Li(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,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:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Zo(t,this.left,o)-o/2,l=Zo(t,this.right,r)+r/2,c=d=a):(c=Zo(t,this.top,o)-o/2,d=Zo(t,this.bottom,r)+r/2,s=l=a),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&er(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=i.length;o<r;++o){const t=i[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),rr(e,r,0,t.textOffset,n,t)}n&&nr(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=mr(n.font),r=gr(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Qn(e)?(s+=r.bottom,Jn(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=r.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:r,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const g=a-o,m=s-r;if(t.isHorizontal()){if(u=Ji(i,r,s),Qn(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Ka(t,n,e);h=s-r}else{if(Qn(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-m+e}else u="center"===n?(c.left+c.right)/2-m+e:Ka(t,n,e);p=Ji(i,a,o),f="left"===n?-Si:Si}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,a);rr(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:ns(a,e,i),textBaseline:"middle",translation:[l,c]})}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,n=ni(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===is.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){return mr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class os{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=di(Object.create(null),[n?$o.get(n):{},$o.get(e),t.defaults]);$o.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");$o.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&$o.describe(e,t.descriptors)}(t,r,n),this.override&&$o.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in $o[i]&&(delete $o[i][n],this.override&&delete Wo[n])}}var rs=new class{constructor(){this.controllers=new os(Ca,"datasets",!0),this.elements=new os(Ga,"elements"),this.plugins=new os(Object,"plugins"),this.scales=new os(is,"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,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):ri(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=gi(t);oi(n["before"+i],[],n),e[t](n),oi(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class as extends Ca{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=Qi(e,n,i);if(this._drawStart=o,this._drawCount=r,to(e)&&(o=0,r=n.length),this.options.showLine){const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:a},t)}this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=rs.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=r.axis,p=a.axis,{spanGaps:f,segment:g}=this.options,m=Ci(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},v=Kn(n[p]),y=f[u]=r.getPixelForValue(n[u],c),_=f[p]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(y)||isNaN(_)||v,f.stop=c>0&&Math.abs(n[u]-x[u])>m,g&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}function ss(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}as.id="scatter",as.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},as.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ls{constructor(t){this.options=t||{}}init(t){}formats(){return ss()}parse(t,e){return ss()}format(t,e){return ss()}add(t,e,n){return ss()}diff(t,e,n){return ss()}startOf(t,e,n){return ss()}endOf(t,e){return ss()}}ls.override=function(t){Object.assign(ls.prototype,t)};var cs={_date:ls};function ds(t,e,n,i){const{controller:o,data:r,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&r.length){const t=s._reversePixels?Ui:Vi;if(!i)return t(r,e,n);if(o._sharedOptions){const i=r[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(r,e,n-o),a=t(r,e,n+o);return{lo:i.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function hs(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=r.length;t<n;++t){const{index:n,data:s}=r[t],{lo:l,hi:c}=ds(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function us(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return hs(t,n,e,function(n,a,s){(o||tr(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:a,index:s})},!0),r}function ps(t,e,n,i,o,r){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return hs(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!r||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(a=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:d})}),a}function fs(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?ps(t,e,n,i,o,r):function(t,e,n,i){let o=[];return hs(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ni(t,{x:e.x,y:e.y});ji(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function gs(t,e,n,i,o){const r=[],a="x"===n?"inXRange":"inYRange";let s=!1;return hs(t,n,e,(t,i,l)=>{t[a](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:r}var ms={evaluateInteractionItems:hs,modes:{index(t,e,n,i){const o=Gr(e,t),r=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>us(t,Gr(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;return fs(t,o,r,n.intersect,i,a)},x:(t,e,n,i)=>gs(t,Gr(e,t),"x",n.intersect,i),y:(t,e,n,i)=>gs(t,Gr(e,t),"y",n.intersect,i)}};const bs=["left","top","right","bottom"];function xs(t,e){return t.filter(t=>t.pos===e)}function vs(t,e){return t.filter(t=>-1===bs.indexOf(t.pos)&&t.box.axis===e)}function ys(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function _s(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!bs.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,a,s;for(r=0,a=t.length;r<a;++r){s=t[r];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:a&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:a&&e.availableHeight)}return n}function ws(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ks(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 Ss(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!Qn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&ks(a,r.getPadding());const s=Math.max(0,e.outerWidth-ws(a,t,"left","right")),l=Math.max(0,e.outerHeight-ws(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Es(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Os(t,e,n,i){const o=[];let r,a,s,l,c,d;for(r=0,a=t.length,c=0;r<a;++r){s=t[r],l=s.box,l.update(s.width||e.w,s.height||e.h,Es(s.horizontal,e));const{same:a,other:h}=Ss(e,n,s,i);c|=a&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Os(o,e,n,i)||d}function Ts(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ms(t,e,n,i){const o=n.padding;let{x:r,y:a}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,r=l.size||t.height;mi(l.start)&&(a=l.start),t.fullSize?Ts(t,o.left,a,n.outerWidth-o.right-o.left,r):Ts(t,e.left+l.placed,a,i,r),l.start=a,l.placed+=i,a=t.bottom}else{const i=e.h*c,a=l.size||t.width;mi(l.start)&&(r=l.start),t.fullSize?Ts(t,r,o.top,a,n.outerHeight-o.bottom-o.top):Ts(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}$o.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ds={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 n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=gr(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,r,a,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&r+a,stackWeight:s});return e}(t),n=ys(e.filter(t=>t.box.fullSize),!0),i=ys(xs(e,"left"),!0),o=ys(xs(e,"right")),r=ys(xs(e,"top"),!0),a=ys(xs(e,"bottom")),s=vs(e,"x"),l=vs(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:xs(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;ri(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/d,hBoxMaxHeight:a/2}),u=Object.assign({},o);ks(u,gr(i));const p=Object.assign({maxPadding:u,w:r,h:a,x:o.left,y:o.top},o),f=_s(l.concat(c),h);Os(s.fullSize,p,h,f),Os(l,p,h,f),Os(c,p,h,f)&&Os(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ms(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ms(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ri(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Cs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class As extends Cs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rs="$chartjs",Ls={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ps=t=>null===t||""===t;const Is=!!Zr&&{passive:!0};function Ns(t,e,n){t.canvas.removeEventListener(e,n,Is)}function Fs(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function zs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.addedNodes,i),e=e&&!Fs(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Bs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.removedNodes,i),e=e&&!Fs(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const js=new Map;let Ys=0;function Hs(){const t=window.devicePixelRatio;t!==Ys&&(Ys=t,js.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ws(t,e,n){const i=t.canvas,o=i&&Yr(i);if(!o)return;const r=Zi((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)});return a.observe(o),function(t,e){js.size||window.addEventListener("resize",Hs),js.set(t,e)}(t,r),a}function Vs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){js.delete(t),js.size||window.removeEventListener("resize",Hs)}(t)}function Us(t,e,n){const i=t.canvas,o=Zi(e=>{null!==t.ctx&&n(function(t,e){const n=Ls[t.type]||t.type,{x:i,y:o}=Gr(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Is)}(i,e,o),o}class Gs extends Cs{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Rs]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ps(o)){const e=Kr(t,"width");void 0!==e&&(t.width=e)}if(Ps(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Kr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Rs])return!1;const n=e[Rs].initial;["height","width"].forEach(t=>{const i=n[t];Kn(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Rs],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:zs,detach:Bs,resize:Ws}[e]||Us;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Vs,detach:Vs,resize:Vs}[e]||Ns)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Xr(t,e,n,i)}isAttached(t){const e=Yr(t);return!(!e||!e.isConnected)}}class $s{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===oi(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Kn(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 n=t&&t.config,i=ni(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(rs.plugins.items);for(let t=0;t<i.length;t++)n.push(rs.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const r=[],a=t.getContext();for(const s of e){const e=s.id,l=Xs(i[e],o);null!==l&&r.push({plugin:s,options:qs(t.config,{plugin:s,local:n[e]},l,a)})}return r}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Xs(t,e){return e||!1!==t?!0===t?{}:t:null}function qs(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),a=t.getOptionScopes(i,r);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zs(t,e){const n=$o.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Ks(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Js(t){const e=t.options||(t.options={});e.plugins=ni(e.plugins,{}),e.scales=function(t,e){const n=Wo[t.type]||{scales:{}},i=e.scales||{},o=Zs(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!Qn(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ks(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};r[s]=r[s]||t,a[t]=hi(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||Zs(o,e),l=(Wo[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),hi(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];hi(e,[$o.scales[e.type],$o.scale])}),a}(t,e)}function Qs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const tl=new Map,el=new Set;function nl(t,e){let n=tl.get(t);return n||(n=e(),tl.set(t,n),el.add(n)),n}const il=(t,e,n)=>{const i=fi(e,n);void 0!==i&&t.add(i)};class ol{constructor(t){this._config=function(t){return(t=t||{}).data=Qs(t.data),Js(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=Qs(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(),Js(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return nl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return nl(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return nl(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return nl(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>il(s,t,e))),e.forEach(t=>il(s,i,t)),e.forEach(t=>il(s,Wo[o]||{},t)),e.forEach(t=>il(s,$o,t)),e.forEach(t=>il(s,Vo,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),el.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Wo[e]||{},$o.datasets[e]||{},{type:e},$o,Vo]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=rl(this._resolverCache,t,i);let s=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=_r(t);for(const o of e){const e=n(o),r=i(o),a=(r||e)&&t[o];if(e&&(bi(a)||al(a))||r&&Jn(a))return!0}return!1}(r,e)){o.$shared=!1;s=yr(r,n=bi(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=rl(this._resolverCache,t,n);return Qn(e)?yr(o,e,void 0,i):o}}function rl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){r={resolver:vr(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const al=t=>Qn(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||bi(t[n]),!1);const sl=["top","bottom","left","right","chartArea"];function ll(t,e){return"top"===t||"bottom"===t||-1===sl.indexOf(t)&&"x"===e}function cl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function dl(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),oi(n&&n.onComplete,[t],e)}function hl(t){const e=t.chart,n=e.options.animation;oi(n&&n.onProgress,[t],e)}function ul(t){return jr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const pl={},fl=t=>{const e=ul(t);return Object.values(pl).filter(t=>t.canvas===e).pop()};function gl(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}class ml{constructor(t,e){const n=this.config=new ol(e),i=ul(t),o=fl(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!jr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?As:Gs}(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,r.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Zn(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=r,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 $s,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),r.resizeDelay||0),this._dataChanges=[],pl[this.id]=this,a&&s?(pa.listen(this,"complete",dl),pa.listen(this,"progress",hl),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:n,height:i,_aspectRatio:o}=this;return Kn(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():qr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ko(this.canvas,this.ctx),this}stop(){return pa.stop(this),this}resize(t,e){pa.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,qr(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),oi(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ri(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=Ks(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),ri(o,e=>{const o=e.options,r=o.id,a=Ks(r,o),s=ni(o.type,e.dtype);void 0!==o.position&&ll(o.position,a)===ll(e.dposition)||(o.position=e.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===s)l=n[r];else{l=new(rs.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),ri(i,(t,e)=>{t||delete n[e]}),ri(n,t=>{Ds.configure(this,t,t.options),Ds.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(cl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||Zs(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=rs.getController(r),{datasetElementType:i,dataElementType:a}=$o.datasets[r];Object.assign(e.prototype,{dataElementType:rs.getElement(a),datasetElementType:i&&rs.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ri(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.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 r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||ri(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(cl("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ri(this.scales,t=>{Ds.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);xi(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){gl(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!xi(i,n(t)))return;return Array.from(i).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;Ds.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],ri(this.boxes,t=>{n&&"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,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,bi(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(pa.has(this)?this.attached&&!pa.running(this)&&pa.start(this):(this.draw(),dl({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}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,n=t._clip,i=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(i&&er(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&nr(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return tr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=ms.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.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,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);mi(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i: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(),pa.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(),Ko(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete pl[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};ri(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){ri(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ri(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){r=t[a];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!ai(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=o(e,t),a=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,a=this._getActiveElements(t,i,n,r),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,oi(o.onHover,[t,a,this],this),s&&oi(o.onClick,[t,a,this],this));const c=!ai(a,i);return(c||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const bl=()=>ri(ml.instances,t=>t._plugins.invalidate()),xl=!0;function vl(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:a,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(r,a,s,i-c,n+c),l>o?(c=o/l,t.arc(r,a,l,n+c,i-c,!0)):t.arc(r,a,o,n+Si,i-Si),t.closePath(),t.clip()}function yl(t,e,n,i){const o=ur(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-e)/2,a=Math.min(r,i*e/2),s=t=>{const e=(n-Math.min(r,t))*i/2;return Yi(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Yi(o.innerStart,0,a),innerEnd:Yi(o.innerEnd,0,a)}}function _l(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function wl(t,e,n,i,o,r){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*h-n/vi)/h)/2,m=l+g+p,b=o-g-p,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=yl(e,u,h,b-m),w=h-x,k=h-v,S=m+x/w,E=b-v/k,O=u+y,T=u+_,M=m+y/O,D=b-_/T;if(t.beginPath(),r){if(t.arc(a,s,h,S,E),v>0){const e=_l(k,E,a,s);t.arc(e.x,e.y,v,E,b+Si)}const e=_l(T,b,a,s);if(t.lineTo(e.x,e.y),_>0){const e=_l(T,D,a,s);t.arc(e.x,e.y,_,b+Si,D+Math.PI)}if(t.arc(a,s,u,b-_/u,m+y/u,!0),y>0){const e=_l(O,M,a,s);t.arc(e.x,e.y,y,M+Math.PI,m-Si)}const n=_l(w,m,a,s);if(t.lineTo(n.x,n.y),x>0){const e=_l(w,S,a,s);t.arc(e.x,e.y,x,m-Si,S)}}else{t.moveTo(a,s);const e=Math.cos(S)*h+a,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+a,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function kl(t,e,n,i,o,r){const{options:a}=e,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:r,pixelMargin:a,fullCircles:s}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let d;for(n&&vl(t,e,r+yi),t.beginPath(),t.arc(i,o,c,r+yi,r,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+yi),d=0;d<s;++d)t.stroke()}(t,e,c),c&&vl(t,e,o),wl(t,e,n,i,o,r),t.stroke())}Object.defineProperties(ml,{defaults:{enumerable:xl,value:$o},instances:{enumerable:xl,value:pl},overrides:{enumerable:xl,value:Wo},registry:{enumerable:xl,value:rs},version:{enumerable:xl,value:"3.9.1"},getChart:{enumerable:xl,value:fl},register:{enumerable:xl,value:(...t)=>{rs.add(...t),bl()}},unregister:{enumerable:xl,value:(...t)=>{rs.remove(...t),bl()}}});class Sl extends Ga{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=Ni(i,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ni(d,s-a)>=yi||ji(o,a,s),p=Hi(r,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(r+a+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>yi?Math.floor(n/yi):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=vi&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:r,startAngle:a,circumference:s}=e;let l=e.endAngle;if(r){wl(t,e,n,i,a+yi,o);for(let e=0;e<r;++e)t.fill();isNaN(s)||(l=a+s%yi,s%yi===0&&(l+=yi))}return wl(t,e,n,i,l,o),t.fill(),l}(t,this,a,o,r);kl(t,this,a,o,s,r),t.restore()}}function El(t,e,n=e){t.lineCap=ni(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ni(n.borderDash,e.borderDash)),t.lineDashOffset=ni(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ni(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ni(n.borderWidth,e.borderWidth),t.strokeStyle=ni(n.borderColor,e.borderColor)}function Ol(t,e,n){t.lineTo(n.x,n.y)}function Tl(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:a,end:s}=e,l=Math.max(o,a),c=Math.min(r,s),d=o<a&&r<a||o>s&&r>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Ml(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=Tl(o,n,i),d=function(t){return t.stepped?ir:t.tension||"monotone"===t.cubicInterpolationMode?or:Ol}(r);let h,u,p,{move:f=!0,reverse:g}=i||{};for(h=0;h<=c;++h)u=o[(s+(g?c-h:h))%a],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,g,r.stepped),p=u);return l&&(u=o[(s+(g?c:0))%a],d(t,p,u,g,r.stepped)),!!l}function Dl(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=Tl(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,g,m=0,b=0;const x=t=>(a+(c?s-t:t))%r,v=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}v()}function Cl(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Dl:Ml}Sl.id="arc",Sl.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Sl.defaultRoutes={backgroundColor:"backgroundColor"};const Al="function"==typeof Path2D;function Rl(t,e,n,i){Al&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),El(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Cl(e);for(const s of o)El(t,r,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Ll extends Ga{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Br(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:a,end:s}=function(t,e,n,i){let o=0,r=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(r+=o);r>o&&t[r%e].skip;)r--;return r%=e,{start:o,end:r}}(n,o,r,i);return da(t,!0===i?[{start:a,end:s,loop:r}]:function(t,e,n,i){const o=t.length,r=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(a-1)%o,loop:i}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&r.push({start:e%o,end:s%o,loop:i}),r}(n,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=ca(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?Qr:t.tension||"monotone"===t.cubicInterpolationMode?ta:Jr}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:d}=r[l],h=o[c],u=o[d];if(h===u){a.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Cl(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Cl(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const a of i)r&=o(t,this,a,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Rl(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pl(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}Ll.id="line",Ll.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ll.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ll.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Il extends Ga{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,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Pl(this,t,"x",e)}inYRange(t,e){return Pl(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}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 n=this.options;this.skip||n.radius<.1||!tr(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Jo(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Nl(t,e){const{x:n,y:i,base:o,width:r,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=a/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=r/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Fl(t,e,n,i){return t?0:Yi(e,n,i)}function zl(t){const e=Nl(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=pr(i);return{t:Fl(o.top,r.top,0,n),r:Fl(o.right,r.right,0,e),b:Fl(o.bottom,r.bottom,0,n),l:Fl(o.left,r.left,0,e)}}(t,n/2,i/2),r=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=fr(o),a=Math.min(e,n),s=t.borderSkipped,l=i||Qn(o);return{topLeft:Fl(!l||s.top||s.left,r.topLeft,0,a),topRight:Fl(!l||s.top||s.right,r.topRight,0,a),bottomLeft:Fl(!l||s.bottom||s.left,r.bottomLeft,0,a),bottomRight:Fl(!l||s.bottom||s.right,r.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function Bl(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&Nl(t,i);return a&&(o||Hi(e,a.left,a.right))&&(r||Hi(n,a.top,a.bottom))}function jl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Yl(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+a,radius:t.radius}}Il.id="point",Il.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Il.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Hl extends Ga{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:n,backgroundColor:i}}=this,{inner:o,outer:r}=zl(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?sr:jl;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Yl(r,e,o)),t.clip(),a(t,Yl(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Yl(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Bl(this,t,e,n)}inXRange(t,e){return Bl(this,t,null,e)}inYRange(t,e){return Bl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Wl(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=Bi(o),r=Bi(r)),{property:t,start:o,end:r}}function Vl(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ul(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Gl(t,e){let n=[],i=!1;return Jn(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=Vl(t,e,o);const a=o[t],s=o[e];null!==i?(r.push({x:a.x,y:i}),r.push({x:s.x,y:i})):null!==n&&(r.push({x:n,y:a.y}),r.push({x:n,y:s.y}))}),r}(t,e),n.length?new Ll({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function $l(t){return t&&!1!==t.fill}function Xl(t,e,n){let i=t[e].fill;const o=[e];let r;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ti(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function ql(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ni(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Qn(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ti(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Zl(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=Kl(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function Kl(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],r=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],i=a[e.start][n],c=a[e.end][n];if(Hi(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Hl.id="bar",Hl.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Hl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Jl{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:r}=this;return e=e||{start:0,end:yi},t.arc(i,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function Ql(t){const{chart:e,fill:n,line:i}=t;if(ti(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,a=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(Gl({x:null,y:e.bottom},i));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)Zl(o,a[t],s)}return new Ll({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Qn(t)?t.value:e.getBaseValue(),i}(n,e,r),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new Jl({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,a));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Qn(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ti(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof Jl?o:Gl(o,i)}function tc(t,e,n){const i=Ql(e),{line:o,scale:r,axis:a}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(er(t,n),function(t,e){const{line:n,target:i,above:o,below:r,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&r!==o&&(ec(t,i,a.top),nc(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),ec(t,i,a.bottom));nc(t,{line:n,target:i,color:r,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:r,axis:a}),nr(t))}function ec(t,e,n){const{segments:i,points:o}=e;let r=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Vl(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function nc(t,e){const{line:n,target:i,property:o,color:r,scale:a}=e,s=function(t,e,n){const i=t.segments,o=t.points,r=e.points,a=[];for(const t of i){let{start:i,end:s}=t;s=Vl(i,s,o);const l=Wl(n,o[i],o[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=ca(e,l);for(const e of c){const i=Wl(n,r[e.start],r[e.end],e.loop),s=la(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:Ul(l,i,"start",Math.max)},end:{[n]:Ul(l,i,"end",Math.min)}})}}return a}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=r}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ic(t,a,h&&Wl(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():oc(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||oc(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ic(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:r,start:a,end:s}=n||{};"x"===r&&(t.beginPath(),t.rect(a,i,s-a,o-i),t.clip())}function oc(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var rc={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,a,s,l;for(a=0;a<i;++a)r=t.getDatasetMeta(a),s=r.dataset,l=null,s&&s.options&&s instanceof Ll&&(l={visible:t.isDatasetVisible(a),index:a,fill:ql(s,a,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:s}),r.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Xl(o,a,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(r,n.axis),i&&n.fill&&tc(t.ctx,n,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;$l(n)&&tc(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;$l(i)&&"beforeDatasetDraw"===n.drawTime&&tc(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ac=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class sc extends Ga{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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=oi(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,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 n=t.labels,i=mr(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=ac(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(r,o,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>r)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+a}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let d=a,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,r)=>{const g=n+e/2+o.measureText(t.text).width;r>0&&u+i+2*a>c&&(d+=h+a,l.push({width:h,height:u}),p+=h+a,f++,h=u=0),s[r]={left:p,top:u,col:f,width:g,height:i},h=Math.max(h,g),u+=i+a}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=ia(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Ji(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=Ji(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=r.leftForLtr(r.x(a),s.width),a+=s.width+i}else{let o=0,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+i,s.left=r.leftForLtr(r.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;er(t,this),this._draw(),nr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=$o.color,s=ia(t.rtl,this.left,this.width),l=mr(r.font),{color:c,padding:d}=r,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:m}=ac(r,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:Ji(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:Ji(o,this.top+x+d,this.bottom-e[0].height),line:0},oa(this.ctx,t.textDirection);const v=m+d;this.legendItems.forEach((y,_)=>{i.strokeStyle=y.fontColor||c,i.fillStyle=y.fontColor||c;const w=i.measureText(y.text).width,k=s.textAlign(y.textAlign||(y.textAlign=r.textAlign)),S=f+u+w;let E=p.x,O=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(O=p.y+=v,p.line++,E=p.x=Ji(o,this.left+d,this.right-n[p.line])):_>0&&O+v>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,O=p.y=Ji(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;i.save();const o=ni(n.lineWidth,1);if(i.fillStyle=ni(n.fillStyle,a),i.lineCap=ni(n.lineCap,"butt"),i.lineDashOffset=ni(n.lineDashOffset,0),i.lineJoin=ni(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ni(n.strokeStyle,a),i.setLineDash(ni(n.lineDash,[])),r.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);Qo(i,a,l,e+u,r.pointStyleWidth&&f)}else{const r=e+Math.max((h-g)/2,0),a=s.leftForLtr(t,f),l=fr(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?sr(i,{x:a,y:r,w:f,h:g,radius:l}):i.rect(a,r,f,g),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),O,y),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,E+f+u,b?E+S:this.right,t.rtl),function(t,e,n){rr(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),O,y),b?p.x+=S+d:p.y+=v}),ra(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=mr(e.font),i=gr(e.padding);if(!e.display)return;const o=ia(t.rtl,this.left,this.width),r=this.ctx,a=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=Ji(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+Ji(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Ji(a,d,d+h);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,rr(r,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=mr(t.font),n=gr(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Hi(t,this.left,this.right)&&Hi(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Hi(t,i.left,i.left+i.width)&&Hi(e,i.top,i.top+i.height))return this.legendItems[n];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 n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&oi(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&oi(e.onHover,[t,n,this],this)}else n&&oi(e.onClick,[t,n,this],this);var i,o}}var lc={id:"legend",_element:sc,start(t,e,n){const i=t.legend=new sc({ctx:t.ctx,options:n,chart:t});Ds.configure(t,i,n),Ds.addBox(t,i)},stop(t){Ds.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ds.configure(t,i,n),i.options=n},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,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),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:n,pointStyle:i,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(n?0:void 0),s=gr(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const cc={average(t){if(!t.length)return!1;let e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++r}}return{x:i/r,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Fi(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function dc(t,e){return e&&(Jn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hc(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function uc(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:a,value:s}=r.getLabelAndValue(o);return{chart:t,label:a,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function pc(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=mr(e.bodyFont),c=mr(e.titleFont),d=mr(e.footerFont),h=r.length,u=o.length,p=i.length,f=gr(e.padding);let g=f.height,m=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const v=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,ri(t.title,v),n.font=l.string,ri(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?a+2+e.boxPadding:0,ri(i,t=>{ri(t.before,v),ri(t.lines,v),ri(t.after,v)}),x=0,n.font=d.string,ri(t.footer,v),n.restore(),m+=f.width,{width:m,height:g}}function fc(t,e,n,i){const{x:o,width:r}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=r/2?c="left":o>=a-r/2&&(c="right"),function(t,e,n,i){const{x:o,width:r}=i,a=n.caretSize+n.caretPadding;return"left"===t&&o+r+a>e.width||"right"===t&&o-r-a<0||void 0}(c,t,e,n)&&(c="center"),c}function gc(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||fc(t,e,n,i),yAlign:i}}function mc(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+r,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(a);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Yi(f,0,i.width-e.width),y:Yi(g,0,i.height-e.height)}}function bc(t,e,n){const i=gr(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function xc(t){return dc([],hc(t))}function vc(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class yc extends Ga{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new xa(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,xr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),r=n.afterTitle.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}getBeforeBody(t,e){return xc(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return ri(t,t=>{const e={before:[],lines:[],after:[]},o=vc(n,t);dc(e.before,hc(o.beforeLabel.call(this,t))),dc(e.lines,o.label.call(this,t)),dc(e.after,hc(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return xc(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),r=n.afterFooter.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(uc(this.chart,e[a]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),ri(l,e=>{const n=vc(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=cc[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=pc(this,n),a=Object.assign({},t,e),s=gc(this.chart,n,a),l=mc(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=fr(a),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,v,y;return"center"===o?(v=u+f/2,"left"===i?(g=h,m=g-r,x=v+r,y=v-r):(g=h+p,m=g+r,x=v-r,y=v+r),b=g):(m="left"===i?h+Math.max(s,c)+r:"right"===i?h+p-Math.max(l,d)-r:this.caretX,"top"===o?(x=u,v=x-r,g=m-r,b=m+r):(x=u+f,v=x+r,g=m+r,b=m-r),y=x),{x1:g,x2:m,x3:b,y1:x,y2:v,y3:y}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=mr(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=mr(o.bodyFont),h=bc(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Jo(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Jo(t,e,n,c)}else{t.lineWidth=Qn(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),a=fr(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,sr(t,{x:e,y:f,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),sr(t,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=r.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=mr(n.bodyFont);let h=d.lineHeight,u=0;const p=ia(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},g=p.textAlign(r);let m,b,x,v,y,_,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=bc(this,g,n),e.fillStyle=n.bodyColor,ri(this.beforeBody,f),u=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,v=0,_=i.length;v<_;++v){for(m=i[v],b=this.labelTextColors[v],e.fillStyle=b,ri(m.before,f),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,v,p,n),h=Math.max(d.lineHeight,s)),y=0,w=x.length;y<w;++y)f(x[y]),h=d.lineHeight;ri(m.after,f)}u=0,h=d.lineHeight,ri(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=mr(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(i[a],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(a+d,s),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+l,s+c-p),e.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+u,s+c),e.quadraticCurveTo(a,s+c,a,s+c-u),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(a,s+d),e.quadraticCurveTo(a,s,a+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=cc[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=pc(this,t),a=Object.assign({},n,this._size),s=gc(e,t,a),l=mc(t,a,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=gr(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=n,this.drawBackground(o,t,i,e),oa(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ra(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!ai(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),s=e||!ai(r,o)||a;return s&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=cc[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}yc.positioners=cc;var _c={id:"tooltip",_element:yc,positioners:cc,afterInit(t,e,n){n&&(t.tooltip=new yc({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:qn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:qn,beforeBody:qn,beforeLabel:qn,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 n=t.formattedValue;return Kn(n)||(e+=n),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:qn,afterBody:qn,beforeFooter:qn,footer:qn,afterFooter:qn}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function wc(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class kc extends is{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:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Kn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Yi(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:wc(n,t,ni(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Sc(t,e){const n=[],{bounds:i,step:o,min:r,max:a,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:g}=e,m=!Kn(r),b=!Kn(a),x=!Kn(l),v=(g-f)/(d+1);let y,_,w,k,S=Di((g-f)/p/u)*u;if(S<1e-14&&!m&&!b)return[{value:f},{value:g}];k=Math.ceil(g/S)-Math.floor(f/S),k>p&&(S=Di(k*S/p/u)*u),Kn(s)||(y=Math.pow(10,s),S=Math.ceil(S*y)/y),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(g/S)*S):(_=f,w=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-r)/o,S/1e3)?(k=Math.round(Math.min((a-r)/S,c)),S=(a-r)/k,_=r,w=a):x?(_=m?r:_,w=b?a:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=Ai(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(Ii(S),Ii(_));y=Math.pow(10,Kn(s)?E:s),_=Math.round(_*y)/y,w=Math.round(w*y)/y;let O=0;for(m&&(h&&_!==r?(n.push({value:r}),_<r&&O++,Ai(Math.round((_+O*S)*y)/y,r,Ec(r,v,t))&&O++):_<r&&O++);O<k;++O)n.push({value:Math.round((_+O*S)*y)/y});return b&&h&&w!==a?n.length&&Ai(n[n.length-1].value,a,Ec(a,v,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}function Ec(t,e,{horizontal:n,minRotation:i}){const o=Li(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}kc.id="category",kc.defaults={ticks:{callback:kc.prototype.getLabelForValue}};class Oc extends is{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 Kn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,a=t=>o=n?o:t;if(t){const t=Mi(i),e=Mi(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Sc({maxTicks:n,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&&Ri(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return na(t,this.chart.options.locale,this.options.ticks.format)}}class Tc extends Oc{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?t:0,this.max=ti(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Li(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Mc(t){return 1===t/Math.pow(10,Math.floor(Ti(t)))}Tc.id="linear",Tc.defaults={ticks:{callback:Xa.formatters.numeric}};class Dc extends is{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Oc.prototype.parse.apply(this,[t,e]);if(0!==n)return ti(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?Math.max(0,t):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t,a=(t,e)=>Math.pow(10,Math.floor(Ti(t))+e);n===i&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(i,1)))),n<=0&&o(a(i,-1)),i<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ti(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=ei(t.min,Math.pow(10,Math.floor(Ti(e.min)))),a=Math.floor(Ti(r)),s=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:Mc(r)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),r=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<i);const c=ei(t.max,r);return o.push({value:c,major:Mc(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ri(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":na(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ti(t),this._valueRange=Ti(this.max)-Ti(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ti(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Cc(t){const e=t.ticks;if(e.display&&t.display){const t=gr(e.backdropPadding);return ni(e.font&&e.font.size,$o.font.size)+t.height}return 0}function Ac(t,e,n){return n=Jn(n)?n:[n],{w:qo(t,e.string,n),h:n.length*e.lineHeight}}function Rc(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Lc(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},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?vi/r:0;for(let l=0;l<r;l++){const r=a.setContext(t.getPointLabelContext(l));o[l]=r.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=mr(r.font),h=Ac(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Bi(t.getIndexAngle(l)+s),p=Math.round(Pi(u));Pc(n,e,u,Rc(p,c.x,h.w,0,180),Rc(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,a=Cc(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?vi/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(Pi(Bi(o.angle+Si))),d=e[r],h=Fc(o.y,d.h,c),u=Ic(c),p=Nc(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Pc(t,e,n,i,o){const r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/a,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ic(t){return 0===t||180===t?"center":t<180?"left":"right"}function Nc(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Fc(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function zc(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,yi);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}Dc.id="logarithmic",Dc.defaults={ticks:{callback:Xa.formatters.logarithmic,major:{enabled:!0}}};class Bc extends Oc{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=gr(Cc(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ti(t)&&!isNaN(t)?t:0,this.max=ti(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Cc(this.options))}generateTickLabels(t){Oc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=oi(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Lc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Bi(t*(yi/(this._pointLabels.length||1))+Li(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Kn(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(Kn(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 n=e[t];return function(t,e,n){return xr(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Si+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),zc(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let r,a,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),r=mr(e.font),{x:a,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Kn(p)){const t=fr(e.borderRadius),i=gr(e.backdropPadding);n.fillStyle=p;const o=c-i.left,r=d-i.top,a=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),sr(n,{x:o,y:r,w:a,h:s,radius:t}),n.fill()):n.fillRect(o,r,a,s)}rr(n,t._pointLabels[o],a,s+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,r=e.circular,{color:a,lineWidth:s}=e;!r&&!i||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),zc(t,n,r,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),a,o)}}),n.display){for(t.save(),r=o-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,a)=>{if(0===a&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=mr(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,r=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=gr(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}rr(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}Bc.id="radialLinear",Bc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Xa.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Bc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Bc.descriptors={angleLines:{_fallback:"grid"}};const jc={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}},Yc=Object.keys(jc);function Hc(t,e){return t-e}function Wc(t,e){if(Kn(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"==typeof i&&(a=i(a)),ti(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!Ci(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function Vc(t,e,n,i){const o=Yc.length;for(let r=Yc.indexOf(t);r<o-1;++r){const t=jc[Yc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Yc[r]}return Yc[o-1]}function Uc(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Wi(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function Gc(t,e,n){const i=[],o={},r=e.length;let a,s;for(a=0;a<r;++a)s=e[a],o[s]=a,i.push({value:s,major:!1});return 0!==r&&n?function(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),a=e[e.length-1].value;let s,l;for(s=r;s<=a;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class $c extends is{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 n=t.time||(t.time={}),i=this._adapter=new cs._date(t.adapters.date);i.init(e),hi(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Wc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function s(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ti(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ti(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Vc(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=Yc.length-1;r>=Yc.indexOf(n);r--){const n=Yc[r];if(jc[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Yc[n?Yc.indexOf(n):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Yc.indexOf(t)+1,n=Yc.length;e<n;++e)if(jc[Yc[e]].common)return Yc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),Gc(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=Yi(i,0,r),o=Yi(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||Vc(o.minUnit,e,n,this._getLabelCapacity(e)),a=ni(o.stepSize,1),s="week"===r&&o.isoWeekday,l=Ci(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,a,r),h++)Uc(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Uc(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&r[a],c=s&&r[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?oi(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Li(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,Gc(this,[t],this._majorUnit),i),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Wc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Xi(t.sort(Hc))}}function Xc(t,e,n){let i,o,r,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Vi(t,"pos",e)),({pos:i,time:r}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Vi(t,"time",e)),({time:i,pos:r}=t[s]),({time:o,pos:a}=t[l]));const c=o-i;return c?r+(a-r)*(e-i)/c:r}$c.id="time",$c.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class qc extends $c{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=Xc(e,this.min),this._tableRange=Xc(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,a,s,l,c;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=i.length;r<a;++r)c=i[r+1],s=i[r-1],l=i[r],Math.round((c+s)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Xc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Xc(this._table,n*this._tableRange+this._minPos,!0)}}qc.id="timeseries",qc.defaults=$c.defaults;const Zc="label";function Kc(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function Jc(t,e){t.labels=e}function Qc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zc;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function td(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zc;const n={labels:[],datasets:[]};return Jc(n,t.labels),Qc(n,t.datasets,e),n}function ed(e,n){let{height:i=150,width:o=300,redraw:r=!1,datasetIdKey:a,type:l,data:c,options:d,plugins:h=[],fallbackContent:u,updateMode:p,...f}=e;const g=t.useRef(null),m=t.useRef(),b=()=>{g.current&&(m.current=new ml(g.current,{type:l,data:td(c,a),options:d&&{...d},plugins:h}),Kc(n,m.current))},x=()=>{Kc(n,null),m.current&&(m.current.destroy(),m.current=null)};return t.useEffect(()=>{var t,e;!r&&m.current&&d&&(t=m.current,e=d,Object.assign(t.options,e))},[r,d]),t.useEffect(()=>{!r&&m.current&&Jc(m.current.config.data,c.labels)},[r,c.labels]),t.useEffect(()=>{!r&&m.current&&c.datasets&&Qc(m.current.config.data,c.datasets,a)},[r,c.datasets]),t.useEffect(()=>{m.current&&(r?(x(),setTimeout(b)):m.current.update(p))},[r,d,c.labels,c.datasets,p]),t.useEffect(()=>{m.current&&(x(),setTimeout(b))},[l]),t.useEffect(()=>(b(),()=>x()),[]),s.default.createElement("canvas",Object.assign({ref:g,role:"img",height:i,width:o},f),u)}const nd=t.forwardRef(ed);ml.register(kc,Tc,Il,Ll,Ha,_c,lc,rc);var id,od,rd,ad,sd,ld=le.div(id||(id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),cd=le(e.Tabs)(od||(od=i.__makeTemplateObject(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),dd=le.span(rd||(rd=i.__makeTemplateObject(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),hd=le.span(ad||(ad=i.__makeTemplateObject(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function ud(t){var n=t.children,i=t.placement,o=void 0===i?"bottomRight":i,r=t.overlayClassName,a=void 0===r?vd:r,l=t.arrowPointAtCenter,c=void 0===l||l,d=t.trigger,h=void 0===d?"hover":d,u=t.color,p=t.title,f=t.content,g=t.mouseEnterDelay,m=void 0===g?0:g,b=t.mouseLeaveDelay,x=void 0===b?0:b,v=t.isNew,y=void 0!==v&&v,_=t.actionTitle,w=t.dismissTitle,k=t.maxWidth,S=t.onAction,E=t.onDismiss,O=k?{maxWidth:k}:void 0;return s.default.createElement(e.Tooltip,{overlayClassName:a,arrowPointAtCenter:c,trigger:h,color:u,placement:o,overlayStyle:O,title:s.default.createElement(yd,null,p&&s.default.createElement(zn,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:He.text.white}},p,!0===y&&s.default.createElement(wd,null,"New")),f,(_||w)&&s.default.createElement(_d,null,s.default.createElement(Sd,{onClick:function(t){t.preventDefault(),E&&E()}},w),s.default.createElement(kd,{onClick:function(t){t.preventDefault(),S&&S()}},_))),mouseEnterDelay:m,mouseLeaveDelay:x},n)}var pd,fd,gd,md,bd,xd,vd=xt(pd||(pd=i.__makeTemplateObject(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),we,exports.FONT_SIZE.P1,exports.FONT_WEIGHT.REGULAR,He.text.white,He.brand.primary.contrast,_e,He.brand.primary.contrast),yd=le.div(fd||(fd=i.__makeTemplateObject(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),_d=le.div(gd||(gd=i.__makeTemplateObject(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),wd=le.span(md||(md=i.__makeTemplateObject(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),exports.GREEN_COLORS.G400,He.text.white,exports.FONT_SIZE.SMALL,exports.FONT_WEIGHT.BOLD),kd=le.a(bd||(bd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.brand.action.default,He.brand.action.hover),Sd=le.a(xd||(xd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.text.white,He.text.white);We('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Ed={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Od=function(t){var e=t.icon,n=t.size,o=void 0===n?"m":n,r=t.fill,a=void 0===r?0:r,l=t.color,c=void 0===l?exports.NEUTRAL_COLORS.BLACK:l,d=t.className,h=void 0===d?"":d,u=t.style,p="string"==typeof o?Ed[o]:o,f=i.__assign({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:p,color:c},u);return s.default.createElement("span",{className:"material-symbols-rounded ".concat(h),style:f,translate:"no"},e)},Td={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Md={sm:"xs",lg:"s"},Dd={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},critical:{base:He.color.surface.subdueCritical,text:He.color.status.critical,icon:He.color.status.critical,border:He.color.status.critical},warning:{base:He.color.surface.subdueWarning,text:He.color.status.warning,icon:He.color.status.warning,border:He.color.status.warning},info:{base:He.color.surface.SubdueInfo,text:He.color.status.info,icon:He.color.status.info,border:He.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}},Cd={positive:{base:He.color.status.positive,text:He.color.base.onContainer,icon:"",border:He.color.status.positive},neutral:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:"",border:He.color.base.line}},Ad={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},disabled:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:He.color.surface.disabledOnSurface,border:He.color.base.line},neutral:{base:He.color.surface.neutral,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}};function Rd(t,e,n){switch(e){case"outlined":default:return Dd[t][n];case"filled":return Cd[t][n];case"removable":return Ad[t][n]}}function Ld(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,r=t.size,a=void 0===r?"sm":r,l=t.variant,c=void 0===l?"outlined":l,d=t.onClick;return s.default.createElement(Hd,{type:e,size:a,variant:c,onClick:"removable"!==c?d:void 0},o&&"disabled"!==e&&s.default.createElement(Od,{icon:Td[e],size:Md[a],color:Rd(e,c,"icon")}),s.default.createElement(kt.Body,{size:a,color:Rd(e,c,"text")},n),"removable"===c&&s.default.createElement(Yd,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==d||d()},type:"tertiary",icon:s.default.createElement(Od,{icon:"close",size:Md[a],color:Rd(e,c,"icon")})}))}var Pd,Id,Nd,Fd,zd,Bd,jd,Yd=le(ln)(Pd||(Pd=i.__makeTemplateObject(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),Hd=le.div(Id||(Id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return function(t){var e=t.type,n=t.variant,i=void 0===n?"outlined":n,o=t.size,r=void 0===o?"sm":o,a=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===r?"24px":"32px",";\n background-color: ").concat(e&&i?Rd(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Rd(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(a?"pointer":"default",";\n\n")}(t)}),Wd=le.div(Nd||(Nd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),Vd=le.div(Fd||(Fd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),Ud=le.div(zd||(zd=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),Gd="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(He.color.component.placeholderInput," !important;\n }\n }\n"),$d="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(He.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(He.color.base.onNeutral," !important;\n }\n"),Xd="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(He.color.base.onNeutral," !important;\n }\n }\n"),qd=le(e.Select)(Bd||(Bd=i.__makeTemplateObject(["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"])),He.color.surface.neutral,function(t){return function(t){var e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===t.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===t.$mode?"flex-start":"center"," !important;\n padding: ").concat(e," 16px !important;\n\n min-height: ").concat("sm"===t.$size?"36px":"48px"," !important;\n ").concat("multiple"!==t.$mode?"height: ".concat("sm"===t.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(t.disabled?He.color.surface.disabledSurface:He.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.line," !important;\n }\n")}(t)},function(t){return function(t){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!t.disabled&&"\n box-shadow: 0 0 0 1px ".concat(He.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.primary2," !important;\n "),"\n }\n")}(t)},Gd,function(t){return function(t){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===t.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===t.$mode?"align-content: center !important;":"","\n }\n")}(t)},$d,Xd),Zd="\n .rc-virtual-list-holder-inner {\n gap: 0;\n }\n .rc-virtual-list-holder {\n overflow-y: auto !important;\n }\n .ant-select-item {\n color: ".concat(He.color.base.onNeutral," !important;\n padding: 12px !important;\n margin-bottom: 4px !important;\n }\n .ant-select-item:last-child {\n margin-bottom: 0 !important;\n }\n"),Kd="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(He.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),Jd="\n .ant-select-item:hover {\n background: ".concat(He.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(He.color.interactive.pressedSurface," !important;\n }\n"),Qd="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(He.color.surface.disabledSurface," !important;\n span { \n color: ").concat(He.color.surface.disabledOnSurface," !important;\n }\n }\n"),th=le.div(jd||(jd=i.__makeTemplateObject(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),Zd,Kd,Jd,Qd),eh={padding:0,paddingBottom:"4px",borderRadius:"12px"},nh={sm:"md",lg:"lg"},ih={sm:"md",lg:"lg"},oh=function(t){return s.default.createElement(s.default.Fragment,null,t&&s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t),s.default.createElement(Od,{icon:"keyboard_arrow_down"}))},rh=function(t,e){return e?s.default.createElement(kt.Body,{size:nh[t]},e):null},ah=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return s.default.createElement(Ld,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},sh=function(n){var o=n.children,r=n.disabled,a=void 0!==r&&r,l=n.size,c=void 0===l?"sm":l,d=n.mode,h=n.label,u=n.labelTooltip,p=n.selectRef,f=n.placeholder,g=n.error,m=void 0!==g&&g,b=n.secondaryText,x=n.helperText,v=n.options,y=i.__rest(n,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),_=t.useRef(null),w=p||_;return s.default.createElement(Ud,null,h&&function(t,e){return t?s.default.createElement(Wd,null,s.default.createElement(kt.Body,{size:"md"},t),e?s.default.createElement(ud,{placement:"top",title:"I'm Tooltip Component",content:e},s.default.createElement("span",null,s.default.createElement(Od,{icon:"info",size:"xs"}))):null):null}(h,u),s.default.createElement(qd,i.__assign({disabled:a,mode:d,ref:w,$size:c,$mode:d,getPopupContainer:function(){return document.body}},y,{error:m,dropdownRender:function(t){return s.default.createElement(th,{$size:c},s.default.createElement(kt.Body,{size:"sm"===c?"md":"lg"},t))},dropdownStyle:eh,suffixIcon:oh(b),placeholder:rh(c,f),showArrow:!0,tagRender:ah(d,a,c),maxTagCount:999}),v?function(t,n){return t.map(function(t){var i=t.value,o=t.label,r=t.icon,a=t.disabled;return s.default.createElement(e.Select.Option,{key:i,value:i,disabled:a},s.default.createElement(Vd,null,r&&s.default.createElement(r,{style:{width:"16px",height:"16px"}}),s.default.createElement(kt.Body,{size:ih[n]},o)))})}(v,c):o),function(t){return t?s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t):null}(x))};sh.Option=e.Select.Option;var lh=function(t,e){var i=e.iconSrc,o=void 0===i?null:i,r=e.extraText,a=void 0===r?"":r,l=e.extraAction,c=void 0===l?function(){}:l,d=e.isAddItemBarVisible,h=void 0===d||d,u=e.topContent,p=e.bottomContent,f=e.actionContent;return s.default.createElement(fh,null,u,t,f||function(t){var e=t.iconSrc,i=void 0===e?null:e,o=t.extraText,r=void 0===o?"":o,a=t.extraAction,l=void 0===a?function(){}:a,c=t.isAddItemBarVisible;return void 0===c||c?s.default.createElement(mh,{onMouseDown:function(){l()}},i?s.default.createElement(gh,{src:i}):s.default.createElement(n.SvgAdd,null),r):null}({iconSrc:o,extraText:a,extraAction:c,isAddItemBarVisible:h}),p)},ch=function(t){var e=t.className,n=void 0===e?"":e,o=t.children,r=t.disabled,a=void 0!==r&&r,l=t.mode,c=t.label,d=t.iconSrc,h=void 0===d?"":d,u=t.extraText,p=void 0===u?"":u,f=t.extraAction,g=void 0===f?function(){}:f,m=t.isAddItemBarVisible,b=void 0===m||m,x=t.topContent,v=void 0===x?null:x,y=t.bottomContent,_=void 0===y?null:y,w=t.actionContent,k=void 0===w?null:w,S=i.__rest(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return s.default.createElement(sh,i.__assign({className:n,disabled:a,mode:l,label:c,dropdownRender:function(t){return lh(t,{iconSrc:h,extraText:p,extraAction:g,isAddItemBarVisible:b,topContent:v,bottomContent:_,actionContent:k})}},S),o)};ch.Option=sh.Option;var dh,hh,uh,ph,fh=le.div(dh||(dh=i.__makeTemplateObject(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),gh=le.img(hh||(hh=i.__makeTemplateObject(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),mh=le(Fn)(uh||(uh=i.__makeTemplateObject(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),bh=xt(ph||(ph=i.__makeTemplateObject(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),cn,exports.FONT_SIZE.P1,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R200,exports.RED_COLORS.R200,exports.RED_COLORS.R100,exports.RED_COLORS.R400,exports.RED_COLORS.R100,exports.RED_COLORS.R300),xh=function(t){var n=t.className,o=void 0===n?"":n,r=t.children,a=i.__rest(t,["className","children"]);return s.default.createElement(e.Form,i.__assign({className:bt(bh,o)},a),r)};function vh(t,e,n,i){void 0===e&&(e="large");var o=dn[e],r=o.height,a=o.borderRadius,s=o.padding,l=n?t.color.status.critical:t.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(cn,";\n font-size: ").concat(exports.FONT_SIZE.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(r,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n &.ant-input-group-wrapper-status-error .ant-input-group-addon,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:last-child,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(a," !important;\n border-bottom-left-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(a," !important;\n border-bottom-right-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-left: 1px solid ").concat(t.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-right: 1px solid ").concat(t.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(i?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function yh(t){var e=t.text,n=t.error,i=Ke();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return s.default.createElement(kt.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function _h(t){var e=t.label,i=t.required,o=t.optional,r=t.showInfoIcon,a=t.infoText,l=t.onInfoClick,c=Ke();return e?s.default.createElement(kh,null,s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutral}},e,i&&s.default.createElement("span",{style:{color:c.error.text,marginLeft:2}},"*")),o&&s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutralSecondary}},"Optional"),r&&a&&s.default.createElement(ud,{content:a,placement:"top"},s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),r&&!a&&s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}xh.Item=function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]);return s.default.createElement(e.Form.Item,i.__assign({className:bt(bh,o)},r))},xh.useForm=e.Form.useForm;var wh,kh=le.div(wh||(wh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),Sh=function(t){var n=t.addonBefore,o=t.addonAfter,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.disabledAddon,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.label,g=t.required,m=t.optional,b=void 0!==m&&m,x=t.size,v=void 0===x?"large":x,y=t.helperText,_=t.error,w=t.showInfoIcon,k=t.infoText,S=t.onInfoClick,E=i.__rest(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),O=vh(Ke(),v,_,h);return s.default.createElement("div",null,s.default.createElement(_h,{label:f,required:g,optional:b,showInfoIcon:w,infoText:k,onInfoClick:S}),s.default.createElement(e.Input,i.__assign({className:"".concat(xt(O)," ").concat(p),addonBefore:n,addonAfter:o,placeholder:a,disabled:c},E)),s.default.createElement(yh,{text:y,error:_}))};Sh.Password=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.className,h=void 0===d?"":d,u=t.label,p=t.required,f=t.optional,g=void 0!==f&&f,m=t.size,b=void 0===m?"large":m,x=t.helperText,v=t.error,y=t.showInfoIcon,_=t.infoText,w=t.onInfoClick,k=i.__rest(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),S=vh(Ke(),b,v);return s.default.createElement("div",null,s.default.createElement(_h,{label:u,required:p,optional:g,showInfoIcon:y,infoText:_,onInfoClick:w}),s.default.createElement(e.Input.Password,i.__assign({className:"".concat(xt(S)," ").concat(h),addonBefore:o,placeholder:a,disabled:c,visibilityToggle:!0},k)),s.default.createElement(yh,{text:x,error:v}))},Sh.Search=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.className,c=void 0===l?"":l,d=t.onChange,h=t.onSearch,u=t.size,p=void 0===u?"large":u,f=t.helperText,g=t.error,m=i.__rest(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),b=Ke(),x="".concat(vh(b,p,g),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(b.color.surface.neutral,";\n padding: ").concat("string"==typeof o?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return s.default.createElement("div",null,s.default.createElement(e.Input,i.__assign({placeholder:a,addonBefore:o,onChange:d,onKeyDown:h,className:"".concat(xt(x)," ").concat(c),prefix:s.default.createElement("span",{onClick:h,style:{display:"flex",cursor:h?"pointer":"default"}},s.default.createElement(Od,{icon:"search",size:"small"===p?"xs":"m",color:b.color.base.onNeutral}))},m)),s.default.createElement(yh,{text:f,error:g}))},Sh.TextArea=function(t){var n=t.className,o=void 0===n?"":n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.helperText,f=t.error,g=t.showInfoIcon,m=t.infoText,b=t.onInfoClick,x=i.__rest(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),v=Ke(),y=f?v.color.status.critical:v.color.base.line,_=dn[u],w=_.borderRadius,k=_.padding,S="".concat(vh(v,u,f),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(w," !important;\n border-color: ").concat(y,";\n padding: ").concat(k,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(f?v.color.status.critical:v.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(v.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n background-color: ").concat(v.color.surface.disabledSurface,";\n border-color: ").concat(v.color.base.line,";\n &::placeholder {\n color: ").concat(v.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(v.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(v.color.base.line," !important; }\n }\n }\n ");return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:g,infoText:m,onInfoClick:b}),s.default.createElement(e.Input.TextArea,i.__assign({className:"".concat(xt(S)," ").concat(o)},x)),s.default.createElement(yh,{text:p,error:f}))},Sh.Group=e.Input.Group;var Eh,Oh,Th,Mh,Dh,Ch,Ah,Rh,Lh,Ph,Ih,Nh,Fh,zh,Bh,jh,Yh,Hh,Wh,Vh,Uh,Gh,$h=dn.large,Xh=$h.height,qh=$h.borderRadius,Zh=$h.padding,Kh=le.div(Eh||(Eh=i.__makeTemplateObject(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),Xh),Jh=le.div(Oh||(Oh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(t){return t.borderColor},qh,qh,function(t){return t.bgColor},function(t){return t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"default"},function(t){return t.isDisabled?"none":"auto"},function(t){return t.isDisabled?t.bgColor:t.hoverBgColor}),Qh=le.input(Th||(Th=i.__makeTemplateObject(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),Zh,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(qh," 0 0 ").concat(qh)},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?t.disabledTextColor:t.textColor},function(t){return t.isDisabled?t.disabledBgColor:"transparent"},function(t){return t.isDisabled?"not-allowed":"text"},function(t){return t.placeholderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor}),tu=le.button(Mh||(Mh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),qh,qh,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),eu=le.div(Dh||(Dh=i.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Be,Be),nu=le(Fn)(Ch||(Ch=i.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),ze,Be,Be,Be),iu=le.div(Ah||(Ah=i.__makeTemplateObject(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Be,Ne,Ne),ou=le.div(Rh||(Rh=i.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),ru=le.div(Lh||(Lh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),au=le.div(Ph||(Ph=i.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),su=le.div(Ih||(Ih=i.__makeTemplateObject(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),lu=document.body,cu=Wt(zh||(zh=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),du=le.div(jh||(jh=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Bt(Bh||(Bh=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),cu)}),hu=le.div(Yh||(Yh=i.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Be,Be),uu=le.div(Hh||(Hh=i.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),ze,Be,Be,Be),pu=le.div(Wh||(Wh=i.__makeTemplateObject(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Be,Ne,Ne),fu=le.div(Vh||(Vh=i.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),gu=le.div(Uh||(Uh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),mu=le.div(Gh||(Gh=i.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));var bu,xu={Group:function(t){return s.default.createElement(e.Radio.Group,i.__assign({size:"large",onChange:t.onChange},t))},Button:function(t){var n=t.children,o=t.disabled,r=i.__rest(t,["children","disabled"]),a=Ke().brand,l="\n &.ant-radio-button-wrapper {\n ".concat(o?"":"color: ".concat(exports.NEUTRAL_COLORS.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(cn," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(o?"":"\n border-color: ".concat(a.primary.default," !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(ot.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(a.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n }\n ");return s.default.createElement(e.Radio.Button,i.__assign({className:xt(l),disabled:o},r),s.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},s.default.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},s.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),s.default.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),n))}},vu={},yu={exports:{}};function _u(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wu,ku={exports:{}};function Su(){return wu||(wu=1,(t=ku).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(t){return null==t._pf&&(t._pf=g()),t._pf}function b(t){if(null==t._isValid){var e=m(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function x(t){var e=f(NaN);return null!=t?p(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=i.momentProperties=[];function y(t,e){var n,i,o;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=m(e)),l(e._locale)||(t._locale=e._locale),v.length>0)for(n=0;n<v.length;n++)l(o=e[i=v[n]])||(t[i]=o);return t}var _=!1;function w(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function O(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&a++;return a+r}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function M(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,r=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];r.push(o)}T(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var D,C={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(T(e),C[t]=!0)}function R(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t){var e,n;for(n in t)R(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(a(t[n])&&a(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&a(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return R(i)?i.call(e,n):i}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function B(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}var j="Invalid date";function Y(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function V(t){return this._ordinal.replace("%d",t)}var U={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G(t,e,n,i){var o=this._relativeTime[n];return R(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return R(n)?n(e):n.replace(/%s/i,e)}var X={};function q(t,e){var n=t.toLowerCase();X[n]=X[n+"s"]=X[e]=t}function Z(t){return"string"==typeof t?X[t]||X[t.toLowerCase()]:void 0}function K(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var J={};function Q(t,e){J[t]=e}function tt(t){var e=[];for(var n in t)e.push({unit:n,priority:J[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function et(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var nt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},rt={};function at(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(rt[t]=o),e&&(rt[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(rt[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function lt(t){var e,n,i=t.match(nt);for(e=0,n=i.length;e<n;e++)rt[i[e]]?i[e]=rt[i[e]]:i[e]=st(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=R(i[o])?i[o].call(e,t):i[o];return r}}function ct(t,e){return t.isValid()?(e=dt(e,t.localeData()),ot[e]=ot[e]||lt(e),ot[e](t)):t.localeData().invalidDate()}function dt(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(it.lastIndex=0;n>=0&&it.test(t);)t=t.replace(it,i),it.lastIndex=0,n-=1;return t}var ht=/\d/,ut=/\d\d/,pt=/\d{3}/,ft=/\d{4}/,gt=/[+-]?\d{6}/,mt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,yt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,kt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[+-]?\d+(\.\d{1,3})?/,Tt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mt={};function Dt(t,e,n){Mt[t]=R(e)?e:function(t,i){return t&&n?n:e}}function Ct(t,e){return u(Mt,t)?Mt[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Rt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Rt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Lt={};function Pt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)Lt[t[n]]=i}function It(t,e){Pt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Lt,t)&&Lt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,jt=3,Yt=4,Ht=5,Wt=6,Vt=7,Ut=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}at("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),at(0,["YY",2],0,function(){return this.year()%100}),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Dt("Y",kt),Dt("YY",mt,ut),Dt("YYYY",yt,ft),Dt("YYYYY",_t,gt),Dt("YYYYYY",_t,gt),Pt(["YYYYY","YYYYYY"],Ft),Pt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Pt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Pt("Y",function(t,e){e[Ft]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return $t(this.year())}function Kt(t,e){return function(n){return null!=n?(Qt(this,t,n),i.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$t(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ie(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function te(t){return R(this[t=Z(t)])?this[t]():this}function ee(t,e){if("object"==typeof t)for(var n=tt(t=K(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(R(this[t=Z(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?$t(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},at("M",["MM",2],"Mo",function(){return this.month()+1}),at("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),at("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Dt("M",mt),Dt("MM",mt,ut),Dt("MMM",function(t,e){return e.monthsShortRegex(t)}),Dt("MMMM",function(t,e){return e.monthsRegex(t)}),Pt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Pt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:m(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function ae(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}var se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function le(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))||-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))||-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null}function de(t,e,n){var i,o,r;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ie(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ue(t){return null!=t?(he(this,t),i.updateOffset(this,!0),this):Jt(this,"Month")}function pe(){return ie(this.year(),this.month())}var fe=Tt;function ge(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=fe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var me=Tt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=me),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Rt(i[e]),o[e]=Rt(o[e]);for(e=0;e<24;e++)r[e]=Rt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ve(t,e,n,i,o,r,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,r,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,r,a),s}function ye(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _e(t,e,n){var i=7+e-n;return-(7+ye(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var r,a,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?a=Gt(r=t-1)+s:s>Gt(t)?(r=t+1,a=s-Gt(t)):(r=t,a=s),{year:r,dayOfYear:a}}function ke(t,e,n){var i,o,r=_e(t.year(),e,n),a=Math.floor((t.dayOfYear()-r-1)/7)+1;return a<1?i=a+Se(o=t.year()-1,e,n):a>Se(t.year(),e,n)?(i=a-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function Se(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(Gt(t)-i+o)/7}function Ee(t){return ke(t,this._week.dow,this._week.doy).week}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Dt("w",mt),Dt("ww",mt,ut),Dt("W",mt),Dt("WW",mt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Oe={dow:0,doy:6};function Te(){return this._week.dow}function Me(){return this._week.doy}function De(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ce(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Re(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Le(t,e){return t.slice(e,7).concat(t.slice(0,e))}at("d",0,"do","day"),at("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),at("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),at("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Dt("d",mt),Dt("e",mt),Dt("E",mt),Dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Dt("dddd",function(t,e){return e.weekdaysRegex(t)}),It(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:m(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Le(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Le(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Be(t){return!0===t?Le(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function je(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null}function Ye(t,e,n){var i,o,r;if(this._weekdaysParseExact)return je.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Re(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ue=Tt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Tt;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Tt;function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,o,r,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),c.push(i),c.push(o),c.push(r);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Rt(s[e]),l[e]=Rt(l[e]),c[e]=Rt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){at(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Je),at("k",["kk",2],0,Qe),at("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),at("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),at("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),at("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)}),tn("a",!0),tn("A",!1),q("hour","h"),Q("hour",13),Dt("a",en),Dt("A",en),Dt("H",mt),Dt("h",mt),Dt("k",mt),Dt("HH",mt,ut),Dt("hh",mt,ut),Dt("kk",mt,ut),Dt("hmm",bt),Dt("hmmss",xt),Dt("Hmm",bt),Dt("Hmmss",xt),Pt(["H","HH"],jt),Pt(["k","kk"],function(t,e,n){var i=E(t);e[jt]=24===i?0:i}),Pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Pt(["h","hh"],function(t,e,n){e[jt]=E(t),m(n).bigHour=!0}),Pt("hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i)),m(n).bigHour=!0}),Pt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),m(n).bigHour=!0}),Pt("Hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i))}),Pt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function rn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:j,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:U,months:re,monthsShort:se,week:Oe,weekdays:Pe,weekdaysMin:ze,weekdaysShort:Ne,meridiemParse:on},cn={},dn={};function hn(t){return t?t.toLowerCase().replace("_","-"):t}function un(t){for(var e,n,i,o,r=0;r<t.length;){for(e=(o=hn(t[r]).split("-")).length,n=(n=hn(t[r+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&O(o,n,!0)>=e-1)break;e--}r++}return an}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=an._abbr,_u("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):gn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function gn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=cn[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(P(i,e)),dn[t]&&dn[t].forEach(function(t){gn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function mn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=P(o,e))).parentLocale=cn[t],cn[t]=n,fn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!r(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return D(cn)}function vn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[jt]<0||n[jt]>24||24===n[jt]&&(0!==n[Yt]||0!==n[Ht]||0!==n[Wt])?jt:n[Yt]<0||n[Yt]>59?Yt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,m(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),m(t)._overflowWeeks&&-1===e&&(e=Vt),m(t)._overflowWeekday&&-1===e&&(e=Ut),m(t).overflow=e),t}function yn(t,e,n){return null!=t?t:null!=e?e:n}function _n(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wn(t){var e,n,i,o,r,a=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(r=yn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(r)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=ye(r,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[Bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[jt]&&0===t._a[Yt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[jt]=0),t._d=(t._useUTC?ye:ve).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[jt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(m(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,r,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,a=4,n=yn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=yn(e.W,1),((o=yn(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;var c=ke(Xn(),r,a);n=yn(e.gg,t._a[Ft],c.year),i=yn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>Se(n,r,a)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=we(n,i,o,r,a),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((\-?\d+)/i;function Cn(t){var e,n,i,o,r,a,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(m(t).iso=!0,e=0,n=Tn.length;e<n;e++)if(Tn[e][1].exec(l[1])){o=Tn[e][0],i=!1!==Tn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Mn.length;e<n;e++)if(Mn[e][1].exec(l[3])){r=(l[2]||" ")+Mn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!On.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=o+(r||"")+(a||""),jn(t)}else t._isValid=!1}var An=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Rn(t,e,n,i,o,r){var a=[Ln(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}function Ln(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return Nn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function zn(t){var e=An.exec(Pn(t._i));if(e){var n=Rn(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=ye.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Dn.exec(t._i);null===e?(Cn(t),!1===t._isValid&&(delete t._isValid,zn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function jn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,n,o,r,a,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)r=o[e],(n=(s.match(Ct(r,t))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&m(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),rt[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),Nt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=l-c,s.length>0&&m(t).unusedInput.push(s),t._a[jt]<=12&&!0===m(t).bigHour&&t._a[jt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[jt]=Yn(t._locale,t._a[jt],t._meridiem),wn(t),vn(t)}else zn(t);else Cn(t)}function Yn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Hn(t){var e,n,i,o,r;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],jn(e),b(e)&&(r+=m(e).charsLeftOver,r+=10*m(e).unusedTokens.length,m(e).score=r,(null==i||r<i)&&(i=r,n=e));p(t,n||e)}function Wn(t){if(!t._d){var e=K(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wn(t)}}function Vn(t){var e=new w(vn(Un(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Un(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?x({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(vn(e)):(d(e)?t._d=e:r(n)?Hn(t):n?jn(t):Gn(t),b(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):r(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):a(e)?Wn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,o){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(t)&&s(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=i,Vn(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var qn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:x()}),Zn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:x()});function Kn(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function Qn(){return Kn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){for(var e in t)if(-1===Xt.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ei.length;++i)if(t[ei[i]]){if(n)return!1;parseFloat(t[ei[i]])!==E(t[ei[i]])&&(n=!0)}return!0}function ii(){return this._isValid}function oi(){return Oi(NaN)}function ri(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=ni(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ai(t){return t instanceof ri}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){at(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+et(~~(t/60),2)+e+et(~~t%60,2)})}li("Z",":"),li("ZZ",""),Dt("Z",Et),Dt("ZZ",Et),Pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=di(Et,t)});var ci=/([\+\-]|\d\d)/gi;function di(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ci)||["-",0,0],o=60*i[1]+E(i[2]);return 0===o?0:"+"===i[0]?o:-o}function hi(t,e){var n,o;return e._isUTC?(n=e.clone(),o=(k(t)||d(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):Xn(t).local()}function ui(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function pi(t,e,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=di(Et,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(o=ui(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!e||this._changeInProgress?Ai(this,Oi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function gi(t){return this.utcOffset(0,t)}function mi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=di(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function vi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Un(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&O(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function _i(){return!!this.isValid()&&!this._isUTC}function wi(){return!!this.isValid()&&this._isUTC}function ki(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Oi(t,e){var n,i,o,r=t,a=null;return ai(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Si.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:E(a[Bt])*n,h:E(a[jt])*n,m:E(a[Yt])*n,s:E(a[Ht])*n,ms:E(si(1e3*a[Wt]))*n}):(a=Ei.exec(t))?(n="-"===a[1]?-1:1,r={y:Ti(a[2],n),M:Ti(a[3],n),w:Ti(a[4],n),d:Ti(a[5],n),h:Ti(a[6],n),m:Ti(a[7],n),s:Ti(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Di(Xn(r.from),Xn(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),i=new ri(r),ai(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Ti(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Di(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Mi(t,e):((n=Mi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ci(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Ai(this,Oi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var r=e._milliseconds,a=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),a&&Qt(t,"Date",Jt(t,"Date")+a*n),r&&t._d.setTime(t._d.valueOf()+r*n),o&&i.updateOffset(t,a||s))}Oi.fn=ri.prototype,Oi.invalid=oi;var Ri=Ci(1,"add"),Li=Ci(-1,"subtract");function Pi(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),r=i.calendarFormat(this,o)||"sameElse",a=e&&(R(e[r])?e[r].call(this,n):e[r]);return this.format(a||this.localeData().calendar(r,this,Xn(n)))}function Ni(){return new w(this)}function Fi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function zi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Bi(t,e,n,i){var o=k(t)?t:Xn(t),r=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))}function ji(t,e){var n,i=k(t)?t:Xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Yi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Wi(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=hi(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":r=Vi(this,i)/12;break;case"month":r=Vi(this,i);break;case"quarter":r=Vi(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:S(r)}function Vi(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Ui(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",r=e+'[")]';return this.format(n+i+o+r)}function Xi(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function qi(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zi(t){return this.from(Xn(),t)}function Ki(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ji(t){return this.to(Xn(),t)}function Qi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eo(){return this._locale}var no=1e3,io=60*no,oo=60*io,ro=3506328*oo;function ao(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ro:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ro:Date.UTC(t,e,n)}function co(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ao(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ao(e,io);break;case"second":e=this._d.valueOf(),e-=ao(e,no)}return this._d.setTime(e),i.updateOffset(this,!0),this}function ho(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=oo-ao(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ao(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ao(e,no)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-6e4*(this._offset||0)}function po(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function go(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function mo(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bo(){return this.isValid()?this.toISOString():null}function xo(){return b(this)}function vo(){return p({},m(this))}function yo(){return m(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){at(0,[t,t.length],0,e)}function ko(t){return To.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return To.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Oo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function To(t,e,n,i,o){var r;return null==t?ke(this,i,o).year:(e>(r=Se(t,i,o))&&(e=r),Mo.call(this,t,e,n,i,o))}function Mo(t,e,n,i,o){var r=we(t,e,n,i,o),a=ye(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Do(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}at(0,["gg",2],0,function(){return this.weekYear()%100}),at(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wo("gggg","weekYear"),wo("ggggg","weekYear"),wo("GGGG","isoWeekYear"),wo("GGGGG","isoWeekYear"),q("weekYear","gg"),q("isoWeekYear","GG"),Q("weekYear",1),Q("isoWeekYear",1),Dt("G",kt),Dt("g",kt),Dt("GG",mt,ut),Dt("gg",mt,ut),Dt("GGGG",yt,ft),Dt("gggg",yt,ft),Dt("GGGGG",_t,gt),Dt("ggggg",_t,gt),It(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),It(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),at("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Dt("Q",ht),Pt("Q",function(t,e){e[zt]=3*(E(t)-1)}),at("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Dt("D",mt),Dt("DD",mt,ut),Dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Pt(["D","DD"],Bt),Pt("Do",function(t,e){e[Bt]=E(t.match(mt)[0])});var Co=Kt("Date",!0);function Ao(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}at("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Dt("DDD",vt),Dt("DDDD",pt),Pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),at("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Dt("m",mt),Dt("mm",mt,ut),Pt(["m","mm"],Yt);var Ro=Kt("Minutes",!1);at("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Dt("s",mt),Dt("ss",mt,ut),Pt(["s","ss"],Ht);var Lo,Po=Kt("Seconds",!1);for(at("S",0,0,function(){return~~(this.millisecond()/100)}),at(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,function(){return 10*this.millisecond()}),at(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),at(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),at(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),at(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),at(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Dt("S",vt,ht),Dt("SS",vt,ut),Dt("SSS",vt,pt),Lo="SSSS";Lo.length<=9;Lo+="S")Dt(Lo,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Lo="S";Lo.length<=9;Lo+="S")Pt(Lo,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var Bo=w.prototype;function jo(t){return Xn(1e3*t)}function Yo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Ri,Bo.calendar=Ii,Bo.clone=Ni,Bo.diff=Wi,Bo.endOf=ho,Bo.format=Xi,Bo.from=qi,Bo.fromNow=Zi,Bo.to=Ki,Bo.toNow=Ji,Bo.get=te,Bo.invalidAt=yo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=ji,Bo.isSameOrAfter=Yi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=vo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Li,Bo.toArray=go,Bo.toObject=mo,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=Ui,Bo.unix=po,Bo.valueOf=uo,Bo.creationData=_o,Bo.year=qt,Bo.isLeapYear=Zt,Bo.weekYear=ko,Bo.isoWeekYear=So,Bo.quarter=Bo.quarters=Do,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=De,Bo.isoWeek=Bo.isoWeeks=Ce,Bo.weeksInYear=Oo,Bo.isoWeeksInYear=Eo,Bo.date=Co,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ve,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Ro,Bo.second=Bo.seconds=Po,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=gi,Bo.local=mi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=vi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=M("dates accessor is deprecated. Use date instead.",Co),Bo.months=M("months accessor is deprecated. Use month instead",ue),Bo.years=M("years accessor is deprecated. Use year instead",qt),Bo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yi);var Wo=I.prototype;function Vo(t,e,n,i){var o=bn(),r=f().set(i,e);return o[n](r,t)}function Uo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Vo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Vo(t,i,n,"month");return o}function Go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var o,r=bn(),a=t?r._week.dow:0;if(null!=n)return Vo(e,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Vo(e,(o+a)%7,i,"day");return s}function $o(t,e){return Uo(t,e,"months")}function Xo(t,e){return Uo(t,e,"monthsShort")}function qo(t,e,n){return Go(t,e,n,"weekdays")}function Zo(t,e,n){return Go(t,e,n,"weekdaysShort")}function Ko(t,e,n){return Go(t,e,n,"weekdaysMin")}Wo.calendar=F,Wo.longDateFormat=B,Wo.invalidDate=Y,Wo.ordinal=V,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=L,Wo.months=ae,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=ge,Wo.week=Ee,Wo.firstDayOfYear=Me,Wo.firstDayOfWeek=Te,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ye,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=rn,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=M("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);var Jo=Math.abs;function Qo(){var t=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),t.milliseconds=Jo(t.milliseconds),t.seconds=Jo(t.seconds),t.minutes=Jo(t.minutes),t.hours=Jo(t.hours),t.months=Jo(t.months),t.years=Jo(t.years),this}function tr(t,e,n,i){var o=Oi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function er(t,e){return tr(this,t,e,1)}function nr(t,e){return tr(this,t,e,-1)}function ir(t){return t<0?Math.floor(t):Math.ceil(t)}function or(){var t,e,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*ir(ar(s)+a),a=0,s=0),l.milliseconds=r%1e3,t=S(r/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,a+=S(n/24),s+=o=S(rr(a)),a-=ir(ar(o)),i=S(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function rr(t){return 4800*t/146097}function ar(t){return 146097*t/4800}function sr(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+rr(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ar(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function lr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function cr(t){return function(){return this.as(t)}}var dr=cr("ms"),hr=cr("s"),ur=cr("m"),pr=cr("h"),fr=cr("d"),gr=cr("w"),mr=cr("M"),br=cr("Q"),xr=cr("y");function vr(){return Oi(this)}function yr(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _r(t){return function(){return this.isValid()?this._data[t]:NaN}}var wr=_r("milliseconds"),kr=_r("seconds"),Sr=_r("minutes"),Er=_r("hours"),Or=_r("days"),Tr=_r("months"),Mr=_r("years");function Dr(){return S(this.days()/7)}var Cr=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,M:11};function Rr(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Lr(t,e,n){var i=Oi(t).abs(),o=Cr(i.as("s")),r=Cr(i.as("m")),a=Cr(i.as("h")),s=Cr(i.as("d")),l=Cr(i.as("M")),c=Cr(i.as("y")),d=o<=Ar.ss&&["s",o]||o<Ar.s&&["ss",o]||r<=1&&["m"]||r<Ar.m&&["mm",r]||a<=1&&["h"]||a<Ar.h&&["hh",a]||s<=1&&["d"]||s<Ar.d&&["dd",s]||l<=1&&["M"]||l<Ar.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Rr.apply(null,d)}function Pr(t){return void 0===t?Cr:"function"==typeof t&&(Cr=t,!0)}function Ir(t,e){return void 0!==Ar[t]&&(void 0===e?Ar[t]:(Ar[t]=e,"s"===t&&(Ar.ss=e-1),!0))}function Nr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Lr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fr=Math.abs;function zr(t){return(t>0)-(t<0)||+t}function Br(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fr(this._milliseconds)/1e3,i=Fr(this._days),o=Fr(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var r=S(o/12),a=o%=12,s=i,l=e,c=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var u=h<0?"-":"",p=zr(this._months)!==zr(h)?"-":"",f=zr(this._days)!==zr(h)?"-":"",g=zr(this._milliseconds)!==zr(h)?"-":"";return u+"P"+(r?p+r+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var jr=ri.prototype;return jr.isValid=ii,jr.abs=Qo,jr.add=er,jr.subtract=nr,jr.as=sr,jr.asMilliseconds=dr,jr.asSeconds=hr,jr.asMinutes=ur,jr.asHours=pr,jr.asDays=fr,jr.asWeeks=gr,jr.asMonths=mr,jr.asQuarters=br,jr.asYears=xr,jr.valueOf=lr,jr._bubble=or,jr.clone=vr,jr.get=yr,jr.milliseconds=wr,jr.seconds=kr,jr.minutes=Sr,jr.hours=Er,jr.days=Or,jr.weeks=Dr,jr.months=Tr,jr.years=Mr,jr.humanize=Nr,jr.toISOString=Br,jr.toString=Br,jr.toJSON=Br,jr.locale=Qi,jr.localeData=eo,jr.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Br),jr.lang=to,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Dt("x",kt),Dt("X",Ot),Pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Pt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=Bo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=jo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Oi,i.isMoment=k,i.weekdays=qo,i.parseZone=Yo,i.localeData=bn,i.isDuration=ai,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=gn,i.updateLocale=mn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=Pr,i.relativeTimeThreshold=Ir,i.calendarFormat=Pi,i.prototype=Bo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),ku.exports;var t}var Eu,Ou,Tu={};var Mu=function(){if(Ou)return vu;Ou=1;var t,e=(bu||(bu=1,(t=yu).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),yu.exports).default;Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var n=e(Su()),i=function(){if(Eu)return Tu;Eu=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.call=a,Tu.default=void 0,Tu.note=o,Tu.noteOnce=l,Tu.preMessage=void 0,Tu.resetWarned=r,Tu.warning=i,Tu.warningOnce=s;var t={},e=[],n=Tu.preMessage=function(t){e.push(t)};function i(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","warning")},n);i&&console.error("Warning: ".concat(i))}}function o(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","note")},n);i&&console.warn("Note: ".concat(i))}}function r(){t={}}function a(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){a(i,t,e)}function l(t,e){a(o,t,e)}return s.preMessage=n,s.resetWarned=r,s.noteOnce=l,Tu.default=s,Tu}(),o={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},setMillisecond:function(t,e){return t.clone().millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,o){for(var r=[],a=0;a<o.length;a+=1){var s=o[a],l=e;if(s.includes("wo")||s.includes("Wo")){var c=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),d=l.match(/[-\d]+/g);c&&d?(s=c.join(""),l=d.join("")):r.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<r.length;u+=1){var p=(0,n.default)(e,r[u],t,!1);if(p.isValid())return(0,i.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};return vu.default=o,vu}(),Du=w(Mu),Cu=e.DatePicker.generatePicker(Du);var Au,Ru,Lu=le("div")(Au||(Au=i.__makeTemplateObject(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},_e,function(t){return"lg"===t.only?"none":"block"}),Pu=function(t){var n=t.className,o=i.__rest(t,["className"]),r="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(Ee,"\n ").concat(Ie,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Pe,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Ie,"\n color: #777777;\n }\n ");return s.default.createElement(e.Steps,i.__assign({},o,{className:bt(xt(r),n)}))};Pu.Step=function(t){var n=i.__rest(t,[]),o=xt(Ru||(Ru=i.__makeTemplateObject(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return s.default.createElement(e.Steps.Step,i.__assign({className:bt(o)},n))};var Iu,Nu,Fu,zu,Bu,ju,Yu=xt(ju||(ju=i.__makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),cn,nt.DEFAULT),Hu=function(t){var n=t.children,o=i.__rest(t,["children"]),r=Ke().brand,a="\n font-family: ".concat(cn,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(r.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(r.primary.default,"; \n }\n ");return s.default.createElement(e.Tabs,i.__assign({className:"".concat(xt(a))},o),n)};Hu.TabPane=e.Tabs.TabPane;var Wu,Vu,Uu,Gu,$u,Xu,qu,Zu,Ku,Ju,Qu,tp,ep,np,ip,op,rp,ap,sp,lp={Group:function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]),a="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(He.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n font-family: ").concat(cn," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(He.brand.primary.illustration," !important;\n border-color: ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n ");return s.default.createElement(e.Checkbox.Group,i.__assign({className:"".concat(xt(a)," ").concat(o)},r))}},cp=le.div(Wu||(Wu=i.__makeTemplateObject(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),dp=le(zn)(Vu||(Vu=i.__makeTemplateObject(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),hp=le(Fn)(Uu||(Uu=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),rt.S500),up=le(Fn)(Gu||(Gu=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),nt.DEFAULT),pp=function(t){var e=t.typographyType,n=void 0===e?"body":e,o=t.size,r=void 0===o?"md":o,a=t.textContent,l=t.children,c=t.href,d=t.target,h=t.rel,u=t.isUnderlined,p=void 0===u||u,f=t.icon,g=t.iconPlacement,m=void 0===g?"left":g,b=t.onClick,x=i.__rest(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),v=le.a($u||($u=i.__makeTemplateObject(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),f?"flex":"inline-flex",He.color.base.link,p?"underline":"none",He.color.base.link,p?"underline":"none",He.color.base.link),y=f&&"left"===m,_=f&&"right"===m,w=a||l;return s.default.createElement(v,i.__assign({href:c,target:d,rel:h,onClick:b},x),y&&f,"body"===n&&s.default.createElement(kt.Body,{size:r,color:He.color.base.link},w),"label"===n&&s.default.createElement(kt.Label,{size:r,color:He.color.base.link},w),_&&f)},fp={Title:le(Nn)(Qu||(Qu=i.__makeTemplateObject(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:le(Fn)(tp||(tp=i.__makeTemplateObject(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:le.div(ep||(ep=i.__makeTemplateObject(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),_e),Left:le.div(np||(np=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e),Right:le.div(ip||(ip=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e)};var gp,mp,bp,xp,vp,yp,_p,wp,kp,Sp,Ep,Op,Tp,Mp,Dp=w(function(){if(sp)return ap;sp=1;var t=rp?op:(rp=1,op=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return ap=function(n,i){var o,r,a,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(a=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=e[i.format]||e.default;window.clipboardData.setData(r,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),r=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}}()),Cp=le.div(gp||(gp=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),Ap=le.div(mp||(mp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Rp=le.div(bp||(bp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Lp=le.div(xp||(xp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),Pp=le.div(vp||(vp=i.__makeTemplateObject(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),He.color.surface.disabledSurface,He.color.base.line),Ip=le.div(yp||(yp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),Np=le.div(_p||(_p=i.__makeTemplateObject(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),He.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),Fp=le(e.Button)(wp||(wp=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),He.color.base.line,He.color.surface.neutral,Ee,He.brand.primary.default),zp=function(t){var n=t.className,o=i.__rest(t,["className"]);return s.default.createElement(e.Timeline,i.__assign({},o,{className:bt(xt("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),n)}))};zp.Item=e.Timeline.Item;var Bp,jp,Yp,Hp,Wp,Vp,Up,Gp,$p,Xp=le.div(Bp||(Bp=i.__makeTemplateObject(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),He.color.surface.secondaryNeutral),qp=le.div(jp||(jp=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),He.color.base.onNeutral),Zp=le.div(Yp||(Yp=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Kp=le(pp)(Hp||(Hp=i.__makeTemplateObject(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),Jp=le.div(Wp||(Wp=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Qp=le.div(Vp||(Vp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),tf=le.span(Up||(Up=i.__makeTemplateObject(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(He.color.base.primary3):"".concat(He.color.surface.disabledOnSurface)}),ef=le(pp)(Gp||(Gp=i.__makeTemplateObject(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(He.color.surface.disabledOnSurface):"".concat(He.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),nf=le.div($p||($p=i.__makeTemplateObject(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));var of,rf,af,sf,lf=s.default.createContext({setModal:function(){return null},resetModal:function(){return null}}),cf=document.body,df=function(e){var n=e.modal,o=t.useState(document.createElement("div"))[0];o.setAttribute("id","modal-root"),t.useEffect(function(){return cf.appendChild(o),function(){cf.removeChild(o)}},[o]);var r=s.default.createElement(Yt,{styles:Bt(of||(of=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return l.default.createPortal(s.default.createElement(uf,{open:!!n},!!n&&r,n),o)},hf=Wt(rf||(rf=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),uf=le.div(sf||(sf=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Bt(af||(af=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),hf)});exports.AccessApiTwoTone=n.SvgAccessApiTwoTone,exports.AccountStatement=n.SvgAccountStatement,exports.Add=n.SvgAdd,exports.Api=n.SvgApi,exports.ApiDocsTwoTone=n.SvgApiDocsTwoTone,exports.ArrowDown=n.SvgArrowDown,exports.ArrowLeft=n.SvgArrowLeft,exports.ArrowRight=n.SvgArrowRight,exports.ArrowSwitch=n.SvgArrowSwitch,exports.ArrowUp=n.SvgArrowUp,exports.Authorize=n.SvgAuthorize,exports.Avatar=n.SvgAvatar,exports.AvatarFilled=n.SvgAvatarFilled,exports.Bank=n.SvgBank,exports.BankFilled=n.SvgBankFilled,exports.BankFilledBackground=n.SvgBankFilledBackground,exports.Bell=n.SvgBell,exports.BellFilled=n.SvgBellFilled,exports.BulletPointArrow=n.SvgBulletPointArrow,exports.Calendar=n.SvgCalendar,exports.Camera=n.SvgCamera,exports.CardFilled=n.CardFilled,exports.Coins=n.Coins,exports.Company=n.SvgCompany,exports.CompanyComplexTwoTone=n.SvgCompanyComplexTwoTone,exports.CompanyTwoTone=n.SvgCompanyTwoTone,exports.Confirmation=n.SvgConfirmation,exports.CopyToClipboard=n.SvgCopyToClipboard,exports.CreditCard=n.SvgCreditCard,exports.Cross=n.SvgCross,exports.CrossMini=n.SvgCrossMini,exports.CustomerKnowledgeAssessment=n.SvgCustomerKnowledgeAssessment,exports.CustomerSupport=n.SvgCustomerSupport,exports.CustomerSupportTwoTone=n.SvgCustomerSupportTwoTone,exports.Delete=n.SvgDelete,exports.DepositTwoTone=n.SvgDepositTwoTone,exports.DeveloperTool=n.SvgDeveloperTool,exports.DeveloperToolTwoTone=n.SvgDeveloperToolTwoTone,exports.DirectMint=n.SvgDirectMint,exports.Document=n.SvgDocument,exports.DocumentFilled=n.SvgDocumentFilled,exports.Dots=n.SvgDots,exports.DownArrow=n.SvgDownArrow,exports.Download=n.SvgDownload,exports.Earn=n.SvgEarn,exports.Edit=n.SvgEdit,exports.Employee=n.SvgEmployee,exports.EmptyIcon=n.SvgEmptyIcon,exports.EmptyStateWithPattern=n.SvgEmptyStateWithPattern,exports.Expand=n.SvgExpand,exports.ExternalLink=n.SvgExternalLink,exports.Faq=n.SvgFaq,exports.FaqDialog=n.SvgFaqDialog,exports.FaqFilled=n.SvgFaqFilled,exports.File=n.SvgFile,exports.Filter=n.SvgFilter,exports.Flag=n.SvgFlag,exports.FlipHorizontal=n.SvgFlipHorizontal,exports.FlipVertical=n.SvgFlipVertical,exports.GenerateVA=n.GenerateVA,exports.HandShake=n.SvgHandShake,exports.HelpGuide=n.SvgHelpGuide,exports.Home=n.SvgHome,exports.Idea=n.SvgIdea,exports.Info=n.SvgInfo,exports.InfoFilled=n.SvgInfoFilled,exports.Invoice=n.SvgInvoice,exports.LockFilled=n.SvgLockFilled,exports.LockWithKeyHole=n.SvgLockWithKeyHole,exports.Login=n.SvgLogin,exports.Logout=n.SvgLogout,exports.LowFee=n.SvgLowFee,exports.Mail=n.SvgMail,exports.MemoCard=n.MemoCard,exports.MintSetupWallet=n.MintSetupWallet,exports.MintWallet=n.SvgMintWallet,exports.Minus=n.SvgMinus,exports.Mobile=n.SvgMobile,exports.More=n.SvgMore,exports.NavDashboard=n.SvgNavDashboard,exports.NavHamburger=n.SvgNavHamburger,exports.NavTransactions=n.SvgNavTransactions,exports.Notes=n.SvgNotes,exports.OneToOneXIDR=n.SvgOneToOneXIDR,exports.OneToOneXSGD=n.SvgOneToOneXSGD,exports.Outgoing=n.SvgOutgoing,exports.Passport=n.SvgPassport,exports.PaymentTwoTone=n.SvgPaymentTwoTone,exports.Payout=n.SvgPayout,exports.PenField=n.PenField,exports.Pending=n.SvgPending,exports.PersonalTwoTone=n.SvgPersonalTwoTone,exports.PiggyBank=n.SvgPiggyBank,exports.Reroll=n.SvgReroll,exports.Resend=n.SvgCallback,exports.Response=n.SvgResponse,exports.RotateLeft=n.SvgRotateLeft,exports.RotateRight=n.SvgRotateRight,exports.Scan=n.SvgScan,exports.Search=n.SvgSearch,exports.SendEmail=n.SvgSendEmail,exports.SendInvitation=n.SvgSendInvitation,exports.Settings=n.SvgSettings,exports.SettingsFilled=n.SvgSettingsFilled,exports.SignUpTwoTone=n.SvgSignUpTwoTone,exports.StateSuccessV2=n.StateSuccess,exports.StraitsXDecoVertical=n.Coins$1,exports.StraitsXEarnExchange=n.SvgExchange,exports.StraitsXEarnFee=n.SvgFee,exports.StraitsXEarnWallet=n.SvgWallet$1,exports.StraitsXEarnWithdrawal=n.SvgWithdrawal,exports.Swap=n.SvgSwap,exports.Switch=n.SvgSwitch,exports.SwitchAccount=n.SvgSwitchAccount,exports.Thumbnail=n.SvgThumbnail,exports.ThumbnailTwoTone=n.SvgThumbnailTwoTone,exports.Tick=n.SvgTick,exports.Time=n.Time,exports.Tips=n.SvgTips,exports.Transaction=n.SvgTransaction,exports.TwoFA=n.TwoFA,exports.Unlink=n.SvgUnlink,exports.UpArrow=n.SvgUpArrow,exports.Upload=n.SvgUpload,exports.UsefulLinks=n.SvgUsefulLinks,exports.UsefulLinksTwoTone=n.SvgUsefulLinksTwoTone,exports.User=n.SvgUser,exports.VerifiedShield=n.SvgVerifiedShield,exports.VerifyIdentity=n.SvgVerifyIdentity,exports.VerifyPhone=n.SvgVerifyPhone,exports.Wallet=n.SvgWallet,exports.WalletFilled=n.SvgWalletFilled,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=r.SvgAlfamart,exports.Alfamidi=r.SvgAlfamidi,exports.Anz=r.SvgAnz,exports.Arbitrum=r.Arbitrum,exports.Avalanche=r.Avalanche,exports.Base=r.Base,exports.Bca=r.SvgBca,exports.Bea=r.SvgBea,exports.Binance=r.SvgBinance,exports.Bitgo=r.SvgBitgo,exports.Bnbsmart=r.BnbSmart,exports.Bni=r.SvgBni,exports.Bnp=r.SvgBnp,exports.Boc=r.SvgBoc,exports.Bri=r.SvgBri,exports.Bsi=r.SvgBsi,exports.Bss=r.SvgBss,exports.Cimb=r.SvgCimb,exports.Citi=r.SvgCiti,exports.Coinhako=r.SvgCoinhako,exports.Coinut=r.SvgCoinut,exports.CrossLogo=r.SvgCrossLogo,exports.Crypto=r.SvgCrypto,exports.DanPlusDan=r.SvgDanPlusDan,exports.Dana=r.SvgDana,exports.Danamon=r.SvgDanamon,exports.DarkStraitsXLogo=r.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=r.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=r.SvgDbag,exports.Dbs=r.SvgDbs,exports.Dextf=r.SvgDextf,exports.EarnPiggyBank=r.SvgEarnPiggyBank,exports.EmptyStraitsX=r.EmptyStraitsX,exports.Ethereum=r.SvgEthereum,exports.FaceScan=r.FaceScan,exports.Fazz=r.SvgFazzLogo,exports.Feb=r.SvgFeb,exports.Finblox=r.SvgFinblox,exports.Fireblocks=r.SvgFireblocks,exports.GoPay=r.SvgGoPay,exports.Gpn=r.SvgGpn,exports.Hana=r.SvgHana,exports.Hedera=r.SvgHedera,exports.Hlb=r.SvgHlb,exports.Hodlnaut=r.SvgHodlnaut,exports.Hsbc=r.SvgHsbc,exports.Icbc=r.SvgIcbc,exports.Icici=r.SvgIcici,exports.IdFlag=r.SvgIdFlag,exports.IdrLogo=r.SvgIdrLogo,exports.Indomaret=r.SvgIndomaret,exports.InfoLogo=r.SvgInfoLogo,exports.InterestCompoundedDaily=r.SvgInterestCompoundedDaily,exports.Jcb=r.SvgJcb,exports.Jpmc=r.SvgSmbc,exports.Jumio=r.SvgJumio,exports.Lawson=r.SvgLawson,exports.LedgerVault=r.SvgLedgerVault,exports.LevelDown=r.LevelDown,exports.LightStraitsXLogo=r.SvgLightStraitsXLogo,exports.LinkAja=r.SvgLinkAja,exports.Liquid=r.SvgLiquid,exports.Mandiri=r.SvgMandiri,exports.Mastercard=r.SvgMastercard,exports.Mbb=r.SvgMbb,exports.Miz=r.SvgMiz,exports.Mufg=r.SvgMufg,exports.MyInfoLogo=r.SvgMyInfoLogo,exports.NoFees=r.SvgNoFees,exports.NoLockInPeriod=r.SvgNoLockInPeriod,exports.NotesBell=r.NotesBell,exports.OVO=r.SvgOvo,exports.Ocbc=r.SvgOcbc,exports.OnchainCustodian=r.SvgOnchainCustodian,exports.Permata=r.SvgPermata,exports.Polygon=r.SvgPolygon,exports.Posb=r.SvgPosb,exports.QcpCapital=r.SvgQcpCapital,exports.Qris=r.SvgQris,exports.Rbs=r.SvgRbs,exports.Rhb=r.SvgRhb,exports.Ripple=r.Ripple,exports.Scb=r.SvgScb,exports.SendLogo=r.SvgSendLogo,exports.SgdLogo=r.SvgSgdLogo,exports.ShopeePay=r.SvgShopeePay,exports.Sifl=r.SvgSifl,exports.Smbc=r.SvgSmbc$1,exports.Solana=r.Solana,exports.Sparrow=r.SvgSparrow,exports.StateError=r.StateError,exports.StateSuccess=r.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=r.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=r.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=r.SvgStraitsXLogo,exports.StraitsXMyInfo=r.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=r.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=r.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=r.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=r.SvgStraitsxSandboxLogo,exports.Target=r.Target,exports.ThreeDSecure=r.SvgThreedsecure,exports.ThreeDotsLogo=r.SvgThreeDotsLogo,exports.TickLogo=r.SvgTickLogo,exports.TokenizeXchange=r.SvgTokenizeXchange,exports.Tron=r.Tron,exports.Trwi=r.SvgTrwi,exports.Unagii=r.SvgUnagii,exports.Uniswap=r.SvgUniswap,exports.Uob=r.SvgUob,exports.UsFlag=r.SvgUsFlag,exports.UsdLogo=r.SvgUsdLogo,exports.UsdcLogo=r.SvgUsdcLogo,exports.UsdpLogo=r.SvgUsdpLogo,exports.UsdtLogo=r.SvgUsdtLogo,exports.VecDeposits=r.SvgVecDeposits,exports.VecDesktop=r.SvgVecDesktop,exports.VecEmpty=r.SvgVecEmpty,exports.VecEmptyPlain=r.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=r.SvgVecEmptyPlainGreen,exports.VecMobile=r.SvgVecMobile,exports.VecRecipients=r.SvgVecRecipients,exports.VecThumbnailDoc=r.SvgVecThumbnailDoc,exports.Visa=r.SvgVisa,exports.WalletLogo=r.SvgWalletLogo,exports.XfersLogo=r.SvgXfersLogo,exports.XfersSandboxLogo=r.SvgXfersSandboxLogo,exports.XidrLogo=r.SvgXidrLogo,exports.XsgdLogo=r.SvgXsgdLogo,exports.XusdLogo=r.SvgXusdLogo,exports.Zillet=r.SvgZillet,exports.Zilliqa=r.SvgZilliqa,exports.Zilswap=r.SvgZilswap,exports.Accordion=function(e){var n=e.header,i=e.body,o=e.defaultOpen,r=void 0!==o&&o,a=e.headerHeightDesktop,l=void 0===a?95:a,c=e.headerHeightMobile,d=void 0===c?95:c,h=e.toggleText,u=e.onCloseToggleText,p=void 0===u?h:u,f=e.additionalHeaderItem,g=e.withBoxShadow,m=void 0!==g&&g,b=t.useState(r),x=b[0],v=b[1];return s.default.createElement(Wn,{open:x,headerHeightDesktop:l,headerHeightMobile:d,withBoxShadow:m},s.default.createElement(Vn,{onClick:function(){return v(function(t){return!t})},headerHeightDesktop:l,headerHeightMobile:d},s.default.createElement(Un,null,n,s.default.createElement(Xn,null,h&&s.default.createElement(Gn,null,x?p:h),s.default.createElement($n,{open:x}))),f&&s.default.createElement(s.default.Fragment,null,f)),s.default.createElement(Hn,null),s.default.createElement("div",null,i))},exports.ActionButton=function(t){var e=t.icon,n=t.type,o=t.disabled,r=i.__rest(t,["icon","type","disabled"]),a=Ke(),l=a.brand,c=a.actionButton,d="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(l.action.disabledOpacity,";\n "),h="\n color: ".concat(c.color,";\n\n &:focus {\n color: ").concat(c.color,";\n }\n\n &:hover {\n color: ").concat(c.hover,";\n }\n\n &:active {\n color: ").concat(c.color,";\n }\n "),u="\n color: ".concat(l.action.default,";\n\n &:focus {\n color: ").concat(l.action.default,";\n }\n\n &:hover {\n color: ").concat(l.action.hover,";\n }\n\n &:active {\n color: ").concat(l.action.default,";\n }\n "),p=le(ln)($e||($e=i.__makeTemplateObject(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===o&&d,"primary"===n?u:h);return s.default.createElement(p,i.__assign({type:"secondary",size:"small"},r),s.default.createElement(function(){return s.default.cloneElement(e,{width:17,height:17})},null))},exports.ActionCard=function(t){var e=t.children,n=t.title,o=t.footer,r=Ke(),a=r.spacing,l=r.neutral,c=r.layout,d=le(Ln)(wn||(wn=i.__makeTemplateObject(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),l.white,l.border,!o&&"display: none;",_e,c.desktop),h=le.div(kn||(kn=i.__makeTemplateObject(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),c.mobile,_e,a.md),u=le.div(Sn||(Sn=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),p=le.div(En||(En=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return s.default.createElement(d,{title:s.default.createElement(h,null,s.default.createElement(u,null,n),s.default.createElement(Hn,{spacing:"lg"}),s.default.createElement(Fn,null,e))},s.default.createElement(p,null,o))},exports.Alert=function(e){var i,o=e.type,r=e.message,a=e.closable,l=e.icon,c=e.showIcon,d=e.onClose,h=e.title,u=t.useState(!0),p=u[0],f=u[1];return p?s.default.createElement(xe,{type:o||"warning",message:s.default.createElement(function(){var t="info"===o?st.DEFAULT:nt.DEFAULT;return s.default.createElement(ve,null,h&&s.default.createElement(kt.Label,{color:t,size:"md"},h),s.default.createElement(kt.Body,{color:t,size:"md"},r))},null),closable:a,icon:(i=l?s.default.cloneElement(l,{width:20,height:20}):s.default.createElement(n.SvgBell,{width:20,height:20}),s.default.createElement(ye,null,i)),showIcon:c,onClose:function(){f(!1),d&&d()},closeIcon:s.default.createElement(function(){return s.default.createElement(n.SvgCross,{width:14,height:14})},null)}):null},exports.AntdConfigProvider=function(t){var n=t.children;return s.default.createElement(e.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},n)},exports.BadgeIcon=function(t){var e=t.icon,n=t.type,o=void 0===n?"default":n,r=t.iconWidth,a=void 0===r?18:r,l=i.__rest(t,["icon","type","iconWidth"]),c=Ke(),d=c.brand,h=c.neutral,u=c.success,p=c.warning,f=c.error,g="\n color: ".concat(h.text,";\n background: ").concat(h.background,";\n "),m="\n color: ".concat(d.primary.default,";\n background: ").concat(d.primary.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x="\n color: ".concat(p.border,";\n background: ").concat(p.background,";\n "),v="\n color: ".concat(f.border,";\n background: ").concat(f.background,";\n "),y=le.span(Rn||(Rn=i.__makeTemplateObject(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(o){case"default":default:return g;case"primary":return m;case"success":return b;case"warning":return x;case"error":return v}}());return s.default.createElement(y,i.__assign({className:"badge-icon"},l),s.default.createElement(function(){return s.default.cloneElement(e,{width:a,height:a})},null))},exports.Banner=function(t){var e=t.withIcon,o=void 0!==e&&e,r=t.children,a=t.type,l=void 0===a?"primary":a,c=i.__rest(t,["withIcon","children","type"]),d=Ke(),h=d.brand,u=d.spacing,p="\n color: ".concat(He.color.base.primary,";\n background: ").concat(h.primary.background,";\n "),f="\n color: ".concat(He.color.status.positive,";\n background: ").concat(He.color.surface.subduePositive,";\n "),g="\n color: ".concat(He.color.status.warning,";\n background: ").concat(He.color.surface.subdueWarning,";\n "),m="\n color: ".concat(He.color.status.critical,";\n background: ").concat(He.color.surface.subdueCritical,";\n "),b="\n color: ".concat(He.color.base.onNeutral,"};\n background: ").concat(He.color.surface.SubdueInfo,";\n "),x=le.div(Ku||(Ku=i.__makeTemplateObject(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),u.sm,function(){switch(l){case"primary":default:return p;case"success":return f;case"warning":return g;case"error":return m;case"notification":return b}}()),v=xt(Ju||(Ju=i.__makeTemplateObject(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return s.default.createElement(x,i.__assign({},c),o&&("primary"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:h.primary.emphasis,className:bt(v)}):"success"===l?s.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.positive,className:bt(v)}):"warning"===l?s.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.warning,className:bt(v)}):"error"===l?s.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.critical,className:bt(v)}):"notification"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.info,className:bt(v)}):s.default.createElement(s.default.Fragment,null)),s.default.createElement(kt.Body,{size:"md"},r))},exports.Button=ln,exports.Card=Ln,exports.Carousel=function(t){var n=t.children,o=t.activeKey,r=t.width,a=void 0===r?250:r,l=i.__rest(t,["children","activeKey","width"]),c=Ke().brand,d=n.map(function(t,n){return s.default.createElement(e.Tabs.TabPane,{key:n,forceRender:!0},t)}),h=n.map(function(t,e){return s.default.createElement(hd,{key:e,isActive:e===o,activeColor:c.primary.default})});return s.default.createElement(ld,null,s.default.createElement(cd,i.__assign({renderTabBar:function(){return s.default.createElement("div",null)},width:a,activeKey:o.toString(),animated:!0},l),d),s.default.createElement(dd,null,h))},exports.Chart=function(e){var n=e.xValues,o=e.yValues,r=e.dataPrefix,a=e.dataPostfix,l=e.straitsXStyle,c=e.height,d=void 0===c?40:c,h=t.useRef(null),u=t.useState({datasets:[]}),p=u[0],f=u[1],g={labels:n,datasets:[{data:o}]},m=r||"",b=a||"";t.useEffect(function(){var t=h.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var o=e.createLinearGradient(0,0,0,280);o.addColorStop(0,"rgba(0, 211, 126, 0.2)"),o.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),o.addColorStop(1,"rgba(0, 211, 126, 0)");var r=i.__assign(i.__assign({},g),{datasets:g.datasets.map(function(t){return i.__assign(i.__assign({},t),{backgroundColor:l?o:n,fill:!0,borderColor:l?"#00D37E":"#2E8DEE",pointRadius:0})})});f(r)}},[l,n,o]);var x={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:l?1:0,backgroundColor:l?"#ffffff":"#000000",titleColor:l?"#1B2736":"#fff",bodyColor:l?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return l?"".concat(m).concat(t[0].parsed.y).concat(b):t[0].label},label:function(t){return l?t.label:"".concat(m).concat(t.parsed.y).concat(b)}}}},scales:{x:{ticks:{color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(m).concat(t).concat(b)}},grid:{display:!1,drawBorder:!1}}}};return s.default.createElement("div",{style:{position:"relative",height:"".concat(d,"vh"),width:"99%"}},s.default.createElement(nd,{id:"chart",ref:h,type:"line",data:p,options:x}))},exports.Checkbox=lp,exports.Coachmark=function(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,r=t.step,a=t.tooltipProps,l=t.backProps,c=r.title,d=r.content,h=r.data;return s.default.createElement(Xp,{role:a.role},s.default.createElement(qp,null,s.default.createElement(Zp,null,s.default.createElement(kt.Label,{size:"md"},c),s.default.createElement(Kp,{role:o.role,onClick:o.onClick},s.default.createElement(Od,{icon:"close",size:"m"}))),s.default.createElement(kt.Body,{size:"md"},d)),s.default.createElement(Jp,null,s.default.createElement(Qp,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==h?void 0:h.skipZeroIndex)?s.default.createElement(s.default.Fragment,null):s.default.createElement(tf,{key:n,isActive:n===e})})),s.default.createElement(nf,null,l&&s.default.createElement(ef,{typographyType:"label",size:"md",role:null==l?void 0:l.role,isDisabled:0===e,onClick:l.onClick,isUnderlined:!1},"Back"),s.default.createElement(pp,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=function(t){var e=t.title,n=t.children,o=Ke(),r=o.spacing,a=o.neutral,l=le.div(Xu||(Xu=i.__makeTemplateObject(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),r.sm,r.md,a.background);return s.default.createElement(l,null,s.default.createElement(zn,{style:{marginBottom:r.sm}},e),n)},exports.CopyBox=function(t){var e=t.value,i=t.allowCopy,o=void 0===i||i,r=t.valueToCopy,a=void 0===r?e:r,l=t.isBankAddress,c=void 0!==l&&l,d=t.showCopyIcon,h=void 0===d||d,u=t.icon,p=t.iconSize,f=t.labelText,g=t.labelTooltip,m=t.helperText,b=t.helperTextType,x=t.onButtonClick;return s.default.createElement(Cp,null,s.default.createElement(Ap,null,f&&s.default.createElement(kt.Body,{size:"md",color:He.color.base.onNeutral},f),g&&s.default.createElement(Rp,null,g)),s.default.createElement(Pp,null,s.default.createElement(Ip,null,u&&s.default.createElement(Lp,{iconSize:p},u),s.default.createElement(kt.Body,{size:"lg"},s.default.createElement(Np,{isBankAddress:c},e))),o&&s.default.createElement(Fp,{onClick:function(){void 0!==x&&x(),Dp(a)}},h?s.default.createElement(n.SvgCopyToClipboard,null):s.default.createElement(kt.Label,{size:"md",color:He.brand.primary.default},"Copy"))),m&&s.default.createElement(kt.Body,{size:"sm",color:"error"===b?He.color.status.critical:He.color.base.onNeutralSecondary},m))},exports.DESKTOP_BREAKPOINT=_e,exports.DatePicker=function(t){var n=t.disabled,o=void 0!==n&&n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.error,f=void 0!==p&&p,g=t.helperText,m=t.showInfoIcon,b=t.onInfoClick,x=i.__rest(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),v=Ke(),y=dn[u],_=y.height,w=y.borderRadius,k=y.padding,S=f?v.color.status.critical:v.color.base.line,E="\n -webkit-font-smoothing: antialiased;\n height: ".concat(_," !important;\n width: 100% !important;\n\n ").concat(o?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(w," !important;\n border-color: ").concat(S," !important;\n padding: ").concat(k," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(v.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n\n & .ant-picker-input > input !important;\n font-size: 14px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n\n & .ant-picker-input > input::placeholder !important;\n font-size: 14px !important;\n color: ").concat(v.color.component.placeholderInput," !important;\n\n &.ant-picker.ant-picker-disabled !important;\n background: ").concat(v.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(v.color.base.line," !important;\n\n & .ant-picker-input > input[disabled] !important;\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view{\n &.ant-picker-cell-today .ant-picker-cell-inner{\n &:before {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(v.color.base.primary2," !important;\n }\n }\n "),O="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{\n background-color: ".concat(v.color.base.primary2," !important;\n }\n "),T=s.default.createElement(Od,{icon:"date_range",size:"m",color:v.color.base.onNeutral});return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:m,onInfoClick:b}),s.default.createElement(e.DatePicker,i.__assign({className:"".concat(xt(E)),popupClassName:xt(O),disabled:o,suffixIcon:T,format:"DD-MM-YYYY"},x)),s.default.createElement(yh,{text:g,error:f}))},exports.DeprecatedModal=function(e){var o=Ke().neutral,r=t.useState(document.createElement("div"))[0];return t.useEffect(function(){return lu.appendChild(r),function(){lu.removeChild(r)}},[r]),l.default.createPortal(s.default.createElement(du,{open:e.open},e.open&&s.default.createElement(Yt,{styles:Bt(Nh||(Nh=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),s.default.createElement("div",{className:"".concat(xt(Fh||(Fh=i.__makeTemplateObject(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(e.modalClassName)},s.default.createElement(hu,{hasIcon:Boolean(e.icon)},s.default.createElement(fu,null,s.default.createElement(gu,null,e.icon,s.default.createElement(In,null,e.title)),!e.disabledCloseIcon&&s.default.createElement(mu,{onClick:function(){return e.onClose()}},s.default.createElement(n.SvgCross,{color:o.text,width:18}))),s.default.createElement(Hn,null)),s.default.createElement(uu,null,e.children),s.default.createElement(pu,null,e.footer))),r)},exports.Divider=Hn,exports.Dropdown=function(n){var o=n.menu,r=n.children,a=n.type,l=void 0===a?"default":a,c=n.placement,d=void 0===c?"bottomLeft":c,h=n.className,u=void 0===h?"":h,p=n.trigger,f=void 0===p?["click"]:p,g=n.disabled,m=void 0!==g&&g,b=i.__rest(n,["menu","children","type","placement","className","trigger","disabled"]),x=Ke(),v=x.brand,y=x.spacing,_="\n background-color: ".concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n\n &:focus {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(v.action.hover,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n "),w="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(v.action.disabledOpacity,";\n "),k=le(e.Dropdown.Button)(sd||(sd=i.__makeTemplateObject(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),Ee,Ae,_,!0===m&&w,y.md,Ee,Ae,_,!0===m&&w,y.sm);if("split"===l)return s.default.createElement(k,i.__assign({className:u,menu:o,placement:d,trigger:f},b),r);var S=t.useRef(null);return t.useEffect(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=S.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),s.default.createElement(e.Dropdown,i.__assign({menu:o,placement:d,trigger:f},b),s.default.createElement("div",{ref:S},r))},exports.DynamicSelect=ch,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=function(t){var i=t.title,o=void 0===i?"No results found":i,r=t.subtitle,a=t.info,l=t.svgUniqueId,c=void 0===l?"randomString":l;return s.default.createElement(cp,null,s.default.createElement(e.Empty,{image:s.default.createElement(n.SvgEmptyIcon,{id:c,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),o&&s.default.createElement(dp,null,o),r&&s.default.createElement(hp,null,r),a&&s.default.createElement(up,null,a))},exports.ErrorPage=function(t){var e=t.title,n=t.subtitle,o=t.content,r=t.fallbackContent,a=t.backgroundColor,l=Ke(),c=l.neutral,d=l.text,h=le.div(kp||(kp=i.__makeTemplateObject(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),we,c.bluish),u=le.div(Sp||(Sp=i.__makeTemplateObject(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),we,_e,function(t){return t.backgroundColor||c.background}),p=le.div(Ep||(Ep=i.__makeTemplateObject(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),we,d.default,Oe),f=le.div(Op||(Op=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),d.default,De);return s.default.createElement(u,{backgroundColor:a},s.default.createElement(h,null,e),s.default.createElement(p,null,n),s.default.createElement(f,null,o),r)},exports.FALLBACK_FONT="Inter",exports.Form=xh,exports.H1=Pn,exports.H2=In,exports.H3=Nn,exports.H4=jn,exports.Hidden=Lu,exports.Input=Sh,exports.InputWithButton=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,r=t.value,a=t.defaultValue,l=t.onChange,c=t.disabled,d=void 0!==c&&c,h=t.disabledInput,u=void 0!==h&&h,p=t.disabledPrefix,f=void 0!==p&&p,g=t.staticPrefix,m=void 0!==g&&g,b=t.error,x=void 0!==b&&b,v=t.className,y=Ke(),_=d||u,w=d||f,k=x?y.color.status.critical:y.color.base.line,S=y.color.base.line;return s.default.createElement(Kh,{className:v},i&&s.default.createElement(Jh,{borderColor:S,bgColor:w?y.color.surface.disabledSurface:m?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:w?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:w?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:w},i),s.default.createElement(Qh,{type:"text",placeholder:o,value:r,defaultValue:a,onChange:l,disabled:_,borderColor:k,focusBorderColor:y.color.base.primary2,textColor:y.color.base.onNeutral,placeholderColor:y.color.component.placeholderInput,disabledBgColor:y.color.surface.disabledSurface,disabledTextColor:y.color.surface.disabledOnSurface,hasPrefix:!!i,isDisabled:_}),s.default.createElement(tu,{type:"button",onClick:n,disabled:d||x,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:d||x},e))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=pp,exports.MAIN_FONT=cn,exports.MaterialSymbols=Od,exports.Modal=function(t){var e=t.onClose,i=t.icon,o=t.title,r=t.children,a=t.footer,l=t.disabledCloseIcon,c=t.className,d=Ke().neutral;return s.default.createElement(su,{className:c},(i||o||!l)&&s.default.createElement(eu,{hasIcon:Boolean(i)},s.default.createElement(ou,null,s.default.createElement(ru,null,i,s.default.createElement(In,null,o||"")),!l&&s.default.createElement(au,{onClick:function(){return e()}},s.default.createElement(n.SvgCross,{color:d.text,width:18}))),s.default.createElement(Hn,null)),s.default.createElement(nu,null,r),a&&s.default.createElement(iu,null,a))},exports.ModalProvider=function(e){var n=e.children,i=t.useState(),o=i[0],r=i[1],a=t.useCallback(function(){r(void 0)},[r]);return s.default.createElement(lf.Provider,{value:{resetModal:a,setModal:r}},n,s.default.createElement(df,{modal:o}))},exports.Note=function(t){var e=t.title,n=t.children,o=Array.isArray(n)&&n.length>1,r=le.div(qu||(qu=i.__makeTemplateObject(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),He.color.surface.subduePositive),a=le.div(Zu||(Zu=i.__makeTemplateObject(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),He.color.status.positive,e?"5px":"0px");return s.default.createElement(r,null,s.default.createElement(a,null,s.default.createElement(kt.Label,{size:"md"},e),o?s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},s.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return s.default.createElement("li",{key:e},t)}))):s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},exports.P1=Fn,exports.P1Bold=zn,exports.Pagination=function(t){var n=t.current,i=t.pageSize,o=t.total,r=t.onChange,a=t.showSizeChanger,l=t.onShowSizeChange,c=t.pageSizeOptions,d="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(exports.NEUTRAL_COLORS.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(cn,";\n border-radius: 5px;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(exports.MAIN_COLORS.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return s.default.createElement(e.Pagination,{className:"".concat(xt(d)),current:n,pageSize:i,total:o,onChange:r,showSizeChanger:a,onShowSizeChange:l,pageSizeOptions:c})},exports.Radio=xu,exports.RangePicker=function(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,o=t.size,r=void 0===o?"large":o,a=i.__rest(t,["format","size"]),l=Ke(),c=dn[r],d=c.height,h=c.borderRadius,u=c.padding,p="\n -webkit-font-smoothing: antialiased;\n height: ".concat(d," !important;\n\n &.ant-picker {\n border-radius: ").concat(h," !important;\n border-color: ").concat(l.color.base.line," !important;\n padding: ").concat(u," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(l.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(l.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(l.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(l.color.component.placeholderInput," !important;\n }\n "),f="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n }\n ");return s.default.createElement(Cu.RangePicker,i.__assign({className:"".concat(xt(p)),format:n,popupClassName:xt(f)},a))},exports.Section=fp,exports.Select=sh,exports.SmallP=Bn,exports.Spin=function(t){var n=t.size,o=i.__rest(t,["size"]),r=Ke().brand,a=xt(Tp||(Tp=i.__makeTemplateObject(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),r.primary.default);return s.default.createElement(e.Spin,i.__assign({className:bt(a),size:n},o))},exports.Steps=function(e){var n=e.current,o=e.steps,r=e.desktopNote,a=t.useRef(null),l=Ke(),c=l.brand,d=l.success,h=l.neutral;t.useEffect(function(){var t=a.current;null!==t&&(t.scrollLeft=120*n)},[n]);var u=le.div(Iu||(Iu=i.__makeTemplateObject(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),h.border,h.background),p=le.div(Nu||(Nu=i.__makeTemplateObject(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),h.emphasis,function(t){return t.current===t.index?"\n background: ".concat(c.primary.default,";\n "):t.current>t.index?"\n background: ".concat(d.emphasis,";\n "):""}),f=le.div(Fu||(Fu=i.__makeTemplateObject(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),h.emphasis),g=le.div(zu||(zu=i.__makeTemplateObject(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),m=le(Fn)(Bu||(Bu=i.__makeTemplateObject(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return s.default.createElement(s.default.Fragment,null,s.default.createElement(Lu,{only:"sm"},s.default.createElement("div",{style:{padding:"30px",width:"266px"}},s.default.createElement(Pu,{progressDot:!0,current:n,direction:"vertical",style:{marginBottom:"34px"}},o.map(function(t,e){return s.default.createElement(Pu.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),r)),s.default.createElement(Lu,{only:"lg",ref:a},s.default.createElement(u,null,s.default.createElement(g,null,o.map(function(t,e){return s.default.createElement("span",{key:"mobile-".concat(t,"-").concat(e)},s.default.createElement(m,{inactive:n<e,current:n===e},s.default.createElement(p,{index:e,current:n}),t),e!==o.length-1&&s.default.createElement(f,null))})))))},exports.SummaryCard=function(t){var e=t.label,n=t.amount,o=t.type,r=void 0===o?"default":o,a=t.height,l=void 0===a?91:a,c=t.width,d=void 0===c?230:c,h=t.isInverted,u=void 0!==h&&h,p=t.icon,f=le(Ln)(Mp||(Mp=i.__makeTemplateObject(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof d?"".concat(d,"px"):d,l,p&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",u&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return s.default.createElement(f,{type:r},p&&p,s.default.createElement("div",null,s.default.createElement(Fn,{style:{marginBottom:u?"0":"5px"}},e),s.default.createElement(Pn,{style:{marginBottom:u?"5px":"0"}},n)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=function(t){var n=t.className,o=t.emptyText,r=i.__rest(t,["className","emptyText"]);return s.default.createElement(e.Table,i.__assign({className:bt(Yu,n),locale:{emptyText:o}},r))},exports.Tabs=Hu,exports.Tag=Ld,exports.ThemeProvider=function(t){var e=t.theme,n=void 0===e?He:e,i=t.children;return s.default.createElement(Ze.Provider,{value:n},s.default.createElement(qe,null),i)},exports.Timeline=zp,exports.Timer=function(e){var n=e.initialSeconds,i=e.blinkActivationSeconds,o=e.shouldRepeat,r=e.onTimesUp,a=e.children,s=t.useState(!1),l=s[0],c=s[1],d=t.useState(n),h=d[0],u=d[1],p=t.useState(void 0),f=p[0],g=p[1],m=t.useState(!0),b=m[0],x=m[1],v=Date.now()+1e3*h;return t.useEffect(function(){b&&(g(setInterval(function(){var t=(new Date).getTime(),e=v-t,n=Math.ceil(e/1e3);n>=0&&u(n),i&&n<=i&&c(!0)},1e3)),x(!1))},[b]),t.useEffect(function(){h<=0&&void 0!==f&&(clearInterval(f),g(void 0),c(!1),r&&r(),o&&(u(n),x(!0)))},[f,h]),a(l,h)},exports.Tooltip=ud,exports.Typography=kt,exports.getCoachmarkJoyrideConfig=function(t){var e=t||{},n=e.arrowColor,i=void 0===n?He.color.surface.secondaryNeutral:n,o=e.arrowLength,r=void 0===o?8:o,a=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:r,spread:void 0===a?16:a,color:i}}}}},exports.straitsXTheme=He,exports.useModal=function(){var t=s.default.useContext(lf);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},exports.useTheme=Ke,exports.xfersTheme=Ye;
|
|
21
|
+
*/var pa=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=qi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,a=o.length-1,s=!1;for(;a>=0;--a)r=o[a],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const fa="transparent",ma={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Yo(t||fa),o=i.valid&&Yo(e||fa);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class ga{constructor(t,e,n,i){const o=e[n];i=br([t.to,i,o,t.from]);const r=br([t.from,o,i]);this._active=!0,this._fn=t.fn||ma[t.type||typeof r],this._easing=oo[t.easing]||oo.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=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=br([t.to,e,i,t.from]),this._from=br([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let s;if(this._active=o!==a&&(r||e<n),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}$o.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ba=Object.keys($o.animation);$o.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),$o.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),$o.describe("animations",{_fallback:"animation"}),$o.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class xa{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Qn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!Qn(i))return;const o={};for(const t of ba)o[t]=i[t];(Jn(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,a);continue}d.cancel()}h&&h.duration?(o[l]=d=new ga(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(pa.add(this._chart,n),!0):void 0}}function va(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function ya(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function _a(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let a,s,l,c;if(null!==e){for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(i.all)continue;break}c=t.values[l],ti(c)&&(r||0===e||Mi(e)===Mi(c))&&(e+=c)}return e}}function wa(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ka(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Sa(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ea(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:a,index:s}=i,l=r.axis,c=a.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(r,a,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:r,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=ka(o,d,r),u[s]=h,u._top=Sa(u,a,!0,i.type),u._bottom=Sa(u,a,!1,i.type)}}function Oa(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Ta(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Ma=t=>"reset"===t||"none"===t,Da=(t,e)=>e?t:Object.assign({},t);class Ca{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=wa(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ta(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ni(n.xAxisID,Oa(t,"x")),r=e.yAxisID=ni(n.yAxisID,Oa(t,"y")),a=e.rAxisID=ni(n.rAxisID,Oa(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,r,a),c=e.vAxisID=i(s,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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&&$i(this._data,this),t._stacked&&Ta(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Qn(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i],n[i]={x:r,y:t[r]};return n}(e);else if(n!==e){if(n){$i(n,this);const t=this._cachedMeta;Ta(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Gi.forEach(t=>{const e="_onData"+mi(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=wa(e.vScale,e),e.stack!==n.stack&&(i=!0,Ta(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ea(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,a=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Jn(i[t])?this.parseArrayData(n,i,t,e):Qn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[a]||h&&l[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}r&&Ea(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,a=o.axis,s=r.axis,l=o.getLabels(),c=o===r,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[a]:c||o.parse(l[p],p),[s]:r.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={x:o.parse(d[0],c),y:r.parse(d[1],c)};return a}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(fi(u,a),h),y:r.parse(fi(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis];return _a({keys:ya(i,!0),values:e._stacks[t.axis]},r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const a=i&&n._stacks[e.axis];i&&a&&(i.values=a,r=_a(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ya(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let h,u;function p(){u=i[h];const e=u[a.axis];return!ti(u[t.axis])||c>e||d<e}for(h=0;h<r&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=r-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],ti(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Qn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ni(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=va(t,n),o=va(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],a=this._drawStart||0,s=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,a,s),c=a;c<a+s;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=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,n){return xr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return xr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,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",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],s=this.enableOptionSharing&&gi(n);if(a)return Da(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys($o.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[r]=Object.freeze(Da(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(r,this.getContext(t,n,e))}const l=new xa(i,s&&s.animations);return s&&s._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ma(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){Ma(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Ma(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"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,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=r;a--)t[a]=t[a-e]};for(s(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ta(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Aa(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Xi(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,r,a,s=e._length;const l=()=>{32767!==r&&-32768!==r&&(gi(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),l();return s}function Ra(t,e,n,i){return Jn(t)?function(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),a=Math.min(o,r),s=Math.max(o,r);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function La(t,e,n,i){const o=t.iScale,r=t.vScale,a=o.getLabels(),s=o===r,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(a[c],c),l.push(Ra(u,h,r,c));return l}function Pa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ia(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(r[Na(d,a,s,l)]=!0,o=c)),r[Na(o,a,s,l)]=!0,t.borderSkipped=r}function Na(t,e,n,i){var o,r,a;return i?(a=n,t=Fa(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=Fa(t,e,n),t}function Fa(t,e,n){return"start"===t?e:"end"===t?n:t}function za(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Ca.defaults={},Ca.prototype.datasetElementType=null,Ca.prototype.dataElementType=null;class Ba extends Ca{parsePrimitiveData(t,e,n,i){return La(t,e,n,i)}parseArrayData(t,e,n,i){return La(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===r.axis?a:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(fi(f,l),h),d.push(Ra(fi(f,c),p,r,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,a=Pa(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}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,n,i){const o="reset"===i,{index:r,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Kn(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||Pa(e._custom)||r===f._top||r===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const g=m.options||t[u].options;Ia(m,g,f,r),za(m,g,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,r=[],a=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Kn(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!a(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||Aa(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,r=i||0,a=this.getParsed(t),s=a._custom,l=Pa(s);let c,d,h=a[e.axis],u=0,p=n?this.applyStack(e,a,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Mi(h)!==Mi(s.barEnd)&&(u=0),u+=h);const f=Kn(i)||l?u:i;let m=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Mi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,r)*o,h===r&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),a=Math.max(t,n);m=Math.max(Math.min(m,a),i),c=m+d}if(m===e.getPixelForValue(r)){const t=Mi(d)*e.getLineWidthForValue(r)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,r=ni(i.maxBarThickness,1/0);let a,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,r=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-a);const c=r-(r-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let r,a;return Kn(o)?(r=e.min*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:e.pixels[t]-r/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(r,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(r,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ba.id="bar",Ba.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ba.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ja extends Ca{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+r+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,d=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),f=u[d]=o?a.getBasePixel():a.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ni(n&&n._custom,o),i}}ja.id="bubble",ja.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ja.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ya extends Ca{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,a=t=>+n[t];if(Qn(n[t])){const{key:t="value"}=this._parsing;a=e=>+fi(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return Li(this.options.rotation-90)}_getCircumference(){return Li(this.options.circumference)}_getRotationExtents(){let t=yi,e=-yi;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(t,e,n){let i=1,o=1,r=0,a=0;if(e<yi){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>ji(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>ji(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),g=p(Si,d,u),b=f(vi,c,h),x=f(vi+Si,d,u);i=(m-b)/2,o=(g-x)/2,r=-(m+b)/2,a=-(g+x)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:a}}(u,h,s),b=(n.width-r)/p,x=(n.height-r)/f,v=Math.max(Math.min(b,x)/2,0),y=ii(this.options.radius,v),_=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=g*y,i.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/yi)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.chartArea,s=r.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:h};f&&(r.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),g+=e,this.updateElement(n,m,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?yi*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,a,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,a=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=a.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ni(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ya.id="doughnut",Ya.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"},Ya.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ya.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Jn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Ha extends Ca{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:s}=Qi(e,i,r);this._drawStart=a,this._drawCount=s,to(e)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(i,a,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=r.axis,u=a.axis,{spanGaps:p,segment:f}=this.options,m=Ci(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=g?e:{},v=Kn(n[u]),y=x[h]=r.getPixelForValue(n[h],p),_=x[u]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[u],p);x.skip=isNaN(y)||isNaN(_)||v,x.stop=p>0&&Math.abs(n[h]-b[h])>m,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),g||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ha.id="line",Ha.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ha.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Wa extends Ca{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}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,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*vi;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),m=r.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=d));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Li(this.resolveDataElementOptions(t,e).angle||n):0}}Wa.id="polarArea",Wa.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Wa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Va extends Ya{}Va.id="pie",Va.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ua extends Ca{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=r?o.xCenter:s.x,c=r?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,d,i)}}}Ua.id="radar",Ua.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ua.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Ga{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ci(this.x)&&Ci(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Ga.defaults={},Ga.defaultRoutes=void 0;const $a={values:t=>Jn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=Ti(Math.abs(r)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),na(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ti(t)));return 1===i||2===i||5===i?$a.numeric.call(this,t,e,n):""}};var Xa={formatters:$a};function qa(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],r=o.length,a=o[0],s=o[r-1],l=[];if(r>i)return function(t,e,n,i){let o,r=0,a=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===a&&(e.push(t[o]),r++,a=n[r*i])}(e,l,o,r/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const r=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(r>0){let t,n;const i=r>1?Math.round((s-a)/(r-1)):null;for(Za(e,l,c,Kn(i)?0:a-i,a),t=0,n=r-1;t<n;t++)Za(e,l,c,o[t],o[t+1]);return Za(e,l,c,s,Kn(i)?e.length:s+i),l}return Za(e,l,c),l}function Za(t,e,n,i,o){const r=ni(i,0),a=Math.min(ni(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=r;c<0;)d++,c=Math.round(r+d*n);for(l=Math.max(r,0);l<a;l++)l===c&&(e.push(t[l]),d++,c=Math.round(r+d*n))}$o.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Xa.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),$o.route("scale.ticks","color","","color"),$o.route("scale.grid","color","","borderColor"),$o.route("scale.grid","borderColor","","borderColor"),$o.route("scale.title","color","","color"),$o.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),$o.describe("scales",{_fallback:"scale"}),$o.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ka=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Ja(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function Qa(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-s||c>a+s)))return c}function ts(t){return t.drawTicks?t.tickLength:0}function es(t,e){if(!t.display)return 0;const n=gr(t.font,e),i=mr(t.padding);return(Jn(t.text)?t.text.length:1)*n.lineHeight+i.height}function ns(t,e,n){let i=Ki(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class is extends Ga{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:n,_suggestedMax:i}=this;return t=ei(t,Number.POSITIVE_INFINITY),e=ei(e,Number.NEGATIVE_INFINITY),n=ei(n,Number.POSITIVE_INFINITY),i=ei(i,Number.NEGATIVE_INFINITY),{min:ei(t,n),max:ei(e,i),minDefined:ti(t),maxDefined:ti(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:ei(n,ei(i,n)),max:ei(i,ei(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oi(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,r=ii(e,(o-i)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(i,-Math.abs(r)),max:a(o,r)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Ja(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=qa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){oi(this.options.afterUpdate,[this])}beforeSetDimensions(){oi(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(){oi(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),oi(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){oi(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=oi(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){oi(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){oi(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let r,a,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Yi(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/n:u/(n-1),d+6>r&&(r=u/(n-(t.offset?.5:1)),a=this.maxHeight-ts(t.grid)-e.padding-es(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Pi(Math.min(Math.asin(Yi((c.highest.height+6)/r,-1,1)),Math.asin(Yi(a/s,-1,1))-Math.asin(Yi(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){oi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oi(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=es(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=ts(o)+r):(t.height=this.maxHeight,t.width=ts(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),s=2*n.padding,l=Li(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(a){const e=n.mirror?0:d*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*r.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}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,n,i){const{ticks:{align:o,padding:r},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){oi(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,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Kn(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ja(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],r=[];let a,s,l,c,d,h,u,p,f,m,g,b=0,x=0;for(a=0;a<e;++a){if(c=t[a].label,d=this._resolveTickFontOptions(a),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=m=0,Kn(c)||Jn(c)){if(Jn(c))for(s=0,l=c.length;s<l;++s)g=c[s],Kn(g)||Jn(g)||(f=Xo(n,u.data,u.gc,f,g),m+=p)}else f=Xo(n,u.data,u.gc,f,c),m=p;o.push(f),r.push(m),b=Math.max(f,b),x=Math.max(m,x)}!function(t,e){ri(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const v=o.indexOf(b),y=r.indexOf(x),_=t=>({width:o[t]||0,height:r[t]||0});return{first:_(0),last:_(e-1),widest:_(v),highest:_(y),widths:o,heights:r}}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 Yi(this._alignToPixels?Zo(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return xr(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=xr(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Li(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r}=i,a=o.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=ts(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Zo(n,t,u)};let m,g,b,x,v,y,_,w,k,S,E,O;if("top"===r)m=f(this.bottom),y=this.bottom-c,w=m-p,S=f(t.top)+p,O=t.bottom;else if("bottom"===r)m=f(this.top),S=t.top,O=f(t.bottom)-p,y=m+p,w=this.top+c;else if("left"===r)m=f(this.right),v=this.right-c,_=m-p,k=f(t.left)+p,E=t.right;else if("right"===r)m=f(this.left),k=t.left,E=f(t.right)-p,v=m+p,_=this.left+c;else if("x"===e){if("center"===r)m=f((t.top+t.bottom)/2+.5);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,O=t.bottom,y=m+p,w=y+c}else if("y"===e){if("center"===r)m=f((t.left+t.right)/2);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];m=f(this.chart.scales[t].getPixelForValue(e))}v=m-p,_=v-c,k=t.left,E=t.right}const T=ni(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/T));for(g=0;g<l;g+=M){const t=o.setContext(this.getContext(g)),e=t.lineWidth,i=t.color,r=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=Qa(this,g,a),void 0!==b&&(x=Zo(n,b,e),s?v=_=k=E=x:y=w=S=O=x,d.push({tx1:v,ty1:y,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:O,width:e,color:i,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=ts(n.grid),u=h+c,p=d?-c:u,f=-Li(this.labelRotation),m=[];let g,b,x,v,y,_,w,k,S,E,O,T,M="middle";if("top"===i)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)y=(t.left+t.right)/2-u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const D=this._getLabelSizes();for(g=0,b=a.length;g<b;++g){x=a[g],v=x.label;const t=o.setContext(this.getContext(g));k=this.getPixelForTick(g)+o.labelOffset,S=this._resolveTickFontOptions(g),E=S.lineHeight,O=Jn(v)?v.length:1;const e=O/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(r?(y=k,"inner"===w&&(u=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==f?-O*E+E/2:"center"===l?-D.highest.height/2-e*E+E:-D.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?D.highest.height/2-e*E:D.highest.height-O*E,d&&(T*=-1)):(_=k,T=(1-O)*E/2),t.showLabelBackdrop){const e=mr(t.backdropPadding),n=D.heights[g],i=D.widths[g];let o=_+T-e.top,r=y-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":r-=i/2;break;case"right":r-=i}h={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:f,label:v,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:T,textAlign:u,textBaseline:M,translation:[y,_],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Li(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,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:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Zo(t,this.left,o)-o/2,l=Zo(t,this.right,r)+r/2,c=d=a):(c=Zo(t,this.top,o)-o/2,d=Zo(t,this.bottom,r)+r/2,s=l=a),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&er(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=i.length;o<r;++o){const t=i[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),rr(e,r,0,t.textOffset,n,t)}n&&nr(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=gr(n.font),r=mr(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Qn(e)?(s+=r.bottom,Jn(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=r.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:r,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const m=a-o,g=s-r;if(t.isHorizontal()){if(u=Ji(i,r,s),Qn(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:Ka(t,n,e);h=s-r}else{if(Qn(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-g+e}else u="center"===n?(c.left+c.right)/2-g+e:Ka(t,n,e);p=Ji(i,a,o),f="left"===n?-Si:Si}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,a);rr(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:ns(a,e,i),textBaseline:"middle",translation:[l,c]})}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,n=ni(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===is.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){return gr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class os{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=di(Object.create(null),[n?$o.get(n):{},$o.get(e),t.defaults]);$o.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");$o.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&$o.describe(e,t.descriptors)}(t,r,n),this.override&&$o.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in $o[i]&&(delete $o[i][n],this.override&&delete Wo[n])}}var rs=new class{constructor(){this.controllers=new os(Ca,"datasets",!0),this.elements=new os(Ga,"elements"),this.plugins=new os(Object,"plugins"),this.scales=new os(is,"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,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):ri(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=mi(t);oi(n["before"+i],[],n),e[t](n),oi(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class as extends Ca{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=Qi(e,n,i);if(this._drawStart=o,this._drawCount=r,to(e)&&(o=0,r=n.length),this.options.showLine){const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:a},t)}this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=rs.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=r.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=Ci(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},v=Kn(n[p]),y=f[u]=r.getPixelForValue(n[u],c),_=f[p]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(y)||isNaN(_)||v,f.stop=c>0&&Math.abs(n[u]-x[u])>g,m&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}function ss(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}as.id="scatter",as.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},as.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ls{constructor(t){this.options=t||{}}init(t){}formats(){return ss()}parse(t,e){return ss()}format(t,e){return ss()}add(t,e,n){return ss()}diff(t,e,n){return ss()}startOf(t,e,n){return ss()}endOf(t,e){return ss()}}ls.override=function(t){Object.assign(ls.prototype,t)};var cs={_date:ls};function ds(t,e,n,i){const{controller:o,data:r,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&r.length){const t=s._reversePixels?Ui:Vi;if(!i)return t(r,e,n);if(o._sharedOptions){const i=r[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(r,e,n-o),a=t(r,e,n+o);return{lo:i.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function hs(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=r.length;t<n;++t){const{index:n,data:s}=r[t],{lo:l,hi:c}=ds(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function us(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return hs(t,n,e,function(n,a,s){(o||tr(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:a,index:s})},!0),r}function ps(t,e,n,i,o,r){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return hs(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!r||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(a=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:d})}),a}function fs(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?ps(t,e,n,i,o,r):function(t,e,n,i){let o=[];return hs(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ni(t,{x:e.x,y:e.y});ji(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function ms(t,e,n,i,o){const r=[],a="x"===n?"inXRange":"inYRange";let s=!1;return hs(t,n,e,(t,i,l)=>{t[a](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:r}var gs={evaluateInteractionItems:hs,modes:{index(t,e,n,i){const o=Gr(e,t),r=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>us(t,Gr(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;return fs(t,o,r,n.intersect,i,a)},x:(t,e,n,i)=>ms(t,Gr(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ms(t,Gr(e,t),"y",n.intersect,i)}};const bs=["left","top","right","bottom"];function xs(t,e){return t.filter(t=>t.pos===e)}function vs(t,e){return t.filter(t=>-1===bs.indexOf(t.pos)&&t.box.axis===e)}function ys(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function _s(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!bs.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,a,s;for(r=0,a=t.length;r<a;++r){s=t[r];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:a&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:a&&e.availableHeight)}return n}function ws(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ks(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 Ss(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!Qn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&ks(a,r.getPadding());const s=Math.max(0,e.outerWidth-ws(a,t,"left","right")),l=Math.max(0,e.outerHeight-ws(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Es(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Os(t,e,n,i){const o=[];let r,a,s,l,c,d;for(r=0,a=t.length,c=0;r<a;++r){s=t[r],l=s.box,l.update(s.width||e.w,s.height||e.h,Es(s.horizontal,e));const{same:a,other:h}=Ss(e,n,s,i);c|=a&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Os(o,e,n,i)||d}function Ts(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ms(t,e,n,i){const o=n.padding;let{x:r,y:a}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,r=l.size||t.height;gi(l.start)&&(a=l.start),t.fullSize?Ts(t,o.left,a,n.outerWidth-o.right-o.left,r):Ts(t,e.left+l.placed,a,i,r),l.start=a,l.placed+=i,a=t.bottom}else{const i=e.h*c,a=l.size||t.width;gi(l.start)&&(r=l.start),t.fullSize?Ts(t,r,o.top,a,n.outerHeight-o.bottom-o.top):Ts(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}$o.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ds={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 n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=mr(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,r,a,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&r+a,stackWeight:s});return e}(t),n=ys(e.filter(t=>t.box.fullSize),!0),i=ys(xs(e,"left"),!0),o=ys(xs(e,"right")),r=ys(xs(e,"top"),!0),a=ys(xs(e,"bottom")),s=vs(e,"x"),l=vs(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:xs(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;ri(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/d,hBoxMaxHeight:a/2}),u=Object.assign({},o);ks(u,mr(i));const p=Object.assign({maxPadding:u,w:r,h:a,x:o.left,y:o.top},o),f=_s(l.concat(c),h);Os(s.fullSize,p,h,f),Os(l,p,h,f),Os(c,p,h,f)&&Os(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ms(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ms(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ri(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Cs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class As extends Cs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rs="$chartjs",Ls={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ps=t=>null===t||""===t;const Is=!!Zr&&{passive:!0};function Ns(t,e,n){t.canvas.removeEventListener(e,n,Is)}function Fs(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function zs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.addedNodes,i),e=e&&!Fs(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Bs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.removedNodes,i),e=e&&!Fs(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const js=new Map;let Ys=0;function Hs(){const t=window.devicePixelRatio;t!==Ys&&(Ys=t,js.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ws(t,e,n){const i=t.canvas,o=i&&Yr(i);if(!o)return;const r=Zi((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)});return a.observe(o),function(t,e){js.size||window.addEventListener("resize",Hs),js.set(t,e)}(t,r),a}function Vs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){js.delete(t),js.size||window.removeEventListener("resize",Hs)}(t)}function Us(t,e,n){const i=t.canvas,o=Zi(e=>{null!==t.ctx&&n(function(t,e){const n=Ls[t.type]||t.type,{x:i,y:o}=Gr(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Is)}(i,e,o),o}class Gs extends Cs{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Rs]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ps(o)){const e=Kr(t,"width");void 0!==e&&(t.width=e)}if(Ps(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Kr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Rs])return!1;const n=e[Rs].initial;["height","width"].forEach(t=>{const i=n[t];Kn(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Rs],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:zs,detach:Bs,resize:Ws}[e]||Us;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Vs,detach:Vs,resize:Vs}[e]||Ns)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Xr(t,e,n,i)}isAttached(t){const e=Yr(t);return!(!e||!e.isConnected)}}class $s{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===oi(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Kn(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 n=t&&t.config,i=ni(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(rs.plugins.items);for(let t=0;t<i.length;t++)n.push(rs.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const r=[],a=t.getContext();for(const s of e){const e=s.id,l=Xs(i[e],o);null!==l&&r.push({plugin:s,options:qs(t.config,{plugin:s,local:n[e]},l,a)})}return r}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Xs(t,e){return e||!1!==t?!0===t?{}:t:null}function qs(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),a=t.getOptionScopes(i,r);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zs(t,e){const n=$o.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Ks(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Js(t){const e=t.options||(t.options={});e.plugins=ni(e.plugins,{}),e.scales=function(t,e){const n=Wo[t.type]||{scales:{}},i=e.scales||{},o=Zs(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!Qn(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ks(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};r[s]=r[s]||t,a[t]=hi(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||Zs(o,e),l=(Wo[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),hi(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];hi(e,[$o.scales[e.type],$o.scale])}),a}(t,e)}function Qs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const tl=new Map,el=new Set;function nl(t,e){let n=tl.get(t);return n||(n=e(),tl.set(t,n),el.add(n)),n}const il=(t,e,n)=>{const i=fi(e,n);void 0!==i&&t.add(i)};class ol{constructor(t){this._config=function(t){return(t=t||{}).data=Qs(t.data),Js(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=Qs(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(),Js(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return nl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return nl(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return nl(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return nl(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>il(s,t,e))),e.forEach(t=>il(s,i,t)),e.forEach(t=>il(s,Wo[o]||{},t)),e.forEach(t=>il(s,$o,t)),e.forEach(t=>il(s,Vo,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),el.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Wo[e]||{},$o.datasets[e]||{},{type:e},$o,Vo]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=rl(this._resolverCache,t,i);let s=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=_r(t);for(const o of e){const e=n(o),r=i(o),a=(r||e)&&t[o];if(e&&(bi(a)||al(a))||r&&Jn(a))return!0}return!1}(r,e)){o.$shared=!1;s=yr(r,n=bi(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=rl(this._resolverCache,t,n);return Qn(e)?yr(o,e,void 0,i):o}}function rl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){r={resolver:vr(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const al=t=>Qn(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||bi(t[n]),!1);const sl=["top","bottom","left","right","chartArea"];function ll(t,e){return"top"===t||"bottom"===t||-1===sl.indexOf(t)&&"x"===e}function cl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function dl(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),oi(n&&n.onComplete,[t],e)}function hl(t){const e=t.chart,n=e.options.animation;oi(n&&n.onProgress,[t],e)}function ul(t){return jr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const pl={},fl=t=>{const e=ul(t);return Object.values(pl).filter(t=>t.canvas===e).pop()};function ml(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}class gl{constructor(t,e){const n=this.config=new ol(e),i=ul(t),o=fl(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!jr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?As:Gs}(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,r.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Zn(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=r,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 $s,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),r.resizeDelay||0),this._dataChanges=[],pl[this.id]=this,a&&s?(pa.listen(this,"complete",dl),pa.listen(this,"progress",hl),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:n,height:i,_aspectRatio:o}=this;return Kn(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():qr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ko(this.canvas,this.ctx),this}stop(){return pa.stop(this),this}resize(t,e){pa.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,qr(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),oi(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ri(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=Ks(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),ri(o,e=>{const o=e.options,r=o.id,a=Ks(r,o),s=ni(o.type,e.dtype);void 0!==o.position&&ll(o.position,a)===ll(e.dposition)||(o.position=e.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===s)l=n[r];else{l=new(rs.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),ri(i,(t,e)=>{t||delete n[e]}),ri(n,t=>{Ds.configure(this,t,t.options),Ds.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(cl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||Zs(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=rs.getController(r),{datasetElementType:i,dataElementType:a}=$o.datasets[r];Object.assign(e.prototype,{dataElementType:rs.getElement(a),datasetElementType:i&&rs.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ri(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.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 r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||ri(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(cl("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ri(this.scales,t=>{Ds.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);xi(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){ml(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!xi(i,n(t)))return;return Array.from(i).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;Ds.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],ri(this.boxes,t=>{n&&"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,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,bi(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(pa.has(this)?this.attached&&!pa.running(this)&&pa.start(this):(this.draw(),dl({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}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,n=t._clip,i=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(i&&er(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&nr(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return tr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=gs.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.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,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);gi(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i: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(),pa.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(),Ko(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete pl[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};ri(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){ri(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ri(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){r=t[a];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!ai(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=o(e,t),a=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,a=this._getActiveElements(t,i,n,r),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,oi(o.onHover,[t,a,this],this),s&&oi(o.onClick,[t,a,this],this));const c=!ai(a,i);return(c||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const bl=()=>ri(gl.instances,t=>t._plugins.invalidate()),xl=!0;function vl(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:a,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(r,a,s,i-c,n+c),l>o?(c=o/l,t.arc(r,a,l,n+c,i-c,!0)):t.arc(r,a,o,n+Si,i-Si),t.closePath(),t.clip()}function yl(t,e,n,i){const o=ur(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-e)/2,a=Math.min(r,i*e/2),s=t=>{const e=(n-Math.min(r,t))*i/2;return Yi(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Yi(o.innerStart,0,a),innerEnd:Yi(o.innerEnd,0,a)}}function _l(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function wl(t,e,n,i,o,r){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const m=(f-Math.max(.001,f*h-n/vi)/h)/2,g=l+m+p,b=o-m-p,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=yl(e,u,h,b-g),w=h-x,k=h-v,S=g+x/w,E=b-v/k,O=u+y,T=u+_,M=g+y/O,D=b-_/T;if(t.beginPath(),r){if(t.arc(a,s,h,S,E),v>0){const e=_l(k,E,a,s);t.arc(e.x,e.y,v,E,b+Si)}const e=_l(T,b,a,s);if(t.lineTo(e.x,e.y),_>0){const e=_l(T,D,a,s);t.arc(e.x,e.y,_,b+Si,D+Math.PI)}if(t.arc(a,s,u,b-_/u,g+y/u,!0),y>0){const e=_l(O,M,a,s);t.arc(e.x,e.y,y,M+Math.PI,g-Si)}const n=_l(w,g,a,s);if(t.lineTo(n.x,n.y),x>0){const e=_l(w,S,a,s);t.arc(e.x,e.y,x,g-Si,S)}}else{t.moveTo(a,s);const e=Math.cos(S)*h+a,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+a,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function kl(t,e,n,i,o,r){const{options:a}=e,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:r,pixelMargin:a,fullCircles:s}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let d;for(n&&vl(t,e,r+yi),t.beginPath(),t.arc(i,o,c,r+yi,r,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+yi),d=0;d<s;++d)t.stroke()}(t,e,c),c&&vl(t,e,o),wl(t,e,n,i,o,r),t.stroke())}Object.defineProperties(gl,{defaults:{enumerable:xl,value:$o},instances:{enumerable:xl,value:pl},overrides:{enumerable:xl,value:Wo},registry:{enumerable:xl,value:rs},version:{enumerable:xl,value:"3.9.1"},getChart:{enumerable:xl,value:fl},register:{enumerable:xl,value:(...t)=>{rs.add(...t),bl()}},unregister:{enumerable:xl,value:(...t)=>{rs.remove(...t),bl()}}});class Sl extends Ga{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=Ni(i,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ni(d,s-a)>=yi||ji(o,a,s),p=Hi(r,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(r+a+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>yi?Math.floor(n/yi):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=vi&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:r,startAngle:a,circumference:s}=e;let l=e.endAngle;if(r){wl(t,e,n,i,a+yi,o);for(let e=0;e<r;++e)t.fill();isNaN(s)||(l=a+s%yi,s%yi===0&&(l+=yi))}return wl(t,e,n,i,l,o),t.fill(),l}(t,this,a,o,r);kl(t,this,a,o,s,r),t.restore()}}function El(t,e,n=e){t.lineCap=ni(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ni(n.borderDash,e.borderDash)),t.lineDashOffset=ni(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ni(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ni(n.borderWidth,e.borderWidth),t.strokeStyle=ni(n.borderColor,e.borderColor)}function Ol(t,e,n){t.lineTo(n.x,n.y)}function Tl(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:a,end:s}=e,l=Math.max(o,a),c=Math.min(r,s),d=o<a&&r<a||o>s&&r>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Ml(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=Tl(o,n,i),d=function(t){return t.stepped?ir:t.tension||"monotone"===t.cubicInterpolationMode?or:Ol}(r);let h,u,p,{move:f=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(s+(m?c-h:h))%a],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,m,r.stepped),p=u);return l&&(u=o[(s+(m?c:0))%a],d(t,p,u,m,r.stepped)),!!l}function Dl(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=Tl(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,m,g=0,b=0;const x=t=>(a+(c?s-t:t))%r,v=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),g=(b*g+e)/++b):(v(),t.lineTo(e,n),u=i,b=0,p=f=n),m=n}v()}function Cl(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Dl:Ml}Sl.id="arc",Sl.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Sl.defaultRoutes={backgroundColor:"backgroundColor"};const Al="function"==typeof Path2D;function Rl(t,e,n,i){Al&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),El(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Cl(e);for(const s of o)El(t,r,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Ll extends Ga{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Br(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:a,end:s}=function(t,e,n,i){let o=0,r=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(r+=o);r>o&&t[r%e].skip;)r--;return r%=e,{start:o,end:r}}(n,o,r,i);return da(t,!0===i?[{start:a,end:s,loop:r}]:function(t,e,n,i){const o=t.length,r=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(a-1)%o,loop:i}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&r.push({start:e%o,end:s%o,loop:i}),r}(n,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=ca(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?Qr:t.tension||"monotone"===t.cubicInterpolationMode?ta:Jr}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:d}=r[l],h=o[c],u=o[d];if(h===u){a.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Cl(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Cl(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const a of i)r&=o(t,this,a,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Rl(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pl(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}Ll.id="line",Ll.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ll.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ll.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Il extends Ga{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,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Pl(this,t,"x",e)}inYRange(t,e){return Pl(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}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 n=this.options;this.skip||n.radius<.1||!tr(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Jo(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Nl(t,e){const{x:n,y:i,base:o,width:r,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=a/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=r/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Fl(t,e,n,i){return t?0:Yi(e,n,i)}function zl(t){const e=Nl(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=pr(i);return{t:Fl(o.top,r.top,0,n),r:Fl(o.right,r.right,0,e),b:Fl(o.bottom,r.bottom,0,n),l:Fl(o.left,r.left,0,e)}}(t,n/2,i/2),r=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=fr(o),a=Math.min(e,n),s=t.borderSkipped,l=i||Qn(o);return{topLeft:Fl(!l||s.top||s.left,r.topLeft,0,a),topRight:Fl(!l||s.top||s.right,r.topRight,0,a),bottomLeft:Fl(!l||s.bottom||s.left,r.bottomLeft,0,a),bottomRight:Fl(!l||s.bottom||s.right,r.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function Bl(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&Nl(t,i);return a&&(o||Hi(e,a.left,a.right))&&(r||Hi(n,a.top,a.bottom))}function jl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Yl(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+a,radius:t.radius}}Il.id="point",Il.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Il.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Hl extends Ga{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:n,backgroundColor:i}}=this,{inner:o,outer:r}=zl(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?sr:jl;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Yl(r,e,o)),t.clip(),a(t,Yl(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Yl(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Bl(this,t,e,n)}inXRange(t,e){return Bl(this,t,null,e)}inYRange(t,e){return Bl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Wl(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=Bi(o),r=Bi(r)),{property:t,start:o,end:r}}function Vl(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ul(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Gl(t,e){let n=[],i=!1;return Jn(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=Vl(t,e,o);const a=o[t],s=o[e];null!==i?(r.push({x:a.x,y:i}),r.push({x:s.x,y:i})):null!==n&&(r.push({x:n,y:a.y}),r.push({x:n,y:s.y}))}),r}(t,e),n.length?new Ll({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function $l(t){return t&&!1!==t.fill}function Xl(t,e,n){let i=t[e].fill;const o=[e];let r;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ti(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function ql(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ni(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Qn(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ti(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Zl(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=Kl(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function Kl(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],r=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],i=a[e.start][n],c=a[e.end][n];if(Hi(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Hl.id="bar",Hl.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Hl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Jl{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:r}=this;return e=e||{start:0,end:yi},t.arc(i,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function Ql(t){const{chart:e,fill:n,line:i}=t;if(ti(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,a=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(Gl({x:null,y:e.bottom},i));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)Zl(o,a[t],s)}return new Ll({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Qn(t)?t.value:e.getBaseValue(),i}(n,e,r),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new Jl({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,a));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Qn(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ti(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof Jl?o:Gl(o,i)}function tc(t,e,n){const i=Ql(e),{line:o,scale:r,axis:a}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(er(t,n),function(t,e){const{line:n,target:i,above:o,below:r,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&r!==o&&(ec(t,i,a.top),nc(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),ec(t,i,a.bottom));nc(t,{line:n,target:i,color:r,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:r,axis:a}),nr(t))}function ec(t,e,n){const{segments:i,points:o}=e;let r=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Vl(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function nc(t,e){const{line:n,target:i,property:o,color:r,scale:a}=e,s=function(t,e,n){const i=t.segments,o=t.points,r=e.points,a=[];for(const t of i){let{start:i,end:s}=t;s=Vl(i,s,o);const l=Wl(n,o[i],o[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=ca(e,l);for(const e of c){const i=Wl(n,r[e.start],r[e.end],e.loop),s=la(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:Ul(l,i,"start",Math.max)},end:{[n]:Ul(l,i,"end",Math.min)}})}}return a}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=r}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ic(t,a,h&&Wl(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():oc(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||oc(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ic(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:r,start:a,end:s}=n||{};"x"===r&&(t.beginPath(),t.rect(a,i,s-a,o-i),t.clip())}function oc(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var rc={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,a,s,l;for(a=0;a<i;++a)r=t.getDatasetMeta(a),s=r.dataset,l=null,s&&s.options&&s instanceof Ll&&(l={visible:t.isDatasetVisible(a),index:a,fill:ql(s,a,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:s}),r.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Xl(o,a,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(r,n.axis),i&&n.fill&&tc(t.ctx,n,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;$l(n)&&tc(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;$l(i)&&"beforeDatasetDraw"===n.drawTime&&tc(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ac=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class sc extends Ga{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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=oi(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,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 n=t.labels,i=gr(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=ac(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(r,o,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>r)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+a}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let d=a,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,r)=>{const m=n+e/2+o.measureText(t.text).width;r>0&&u+i+2*a>c&&(d+=h+a,l.push({width:h,height:u}),p+=h+a,f++,h=u=0),s[r]={left:p,top:u,col:f,width:m,height:i},h=Math.max(h,m),u+=i+a}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=ia(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Ji(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=Ji(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=r.leftForLtr(r.x(a),s.width),a+=s.width+i}else{let o=0,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+i,s.left=r.leftForLtr(r.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;er(t,this),this._draw(),nr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=$o.color,s=ia(t.rtl,this.left,this.width),l=gr(r.font),{color:c,padding:d}=r,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=ac(r,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:Ji(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:Ji(o,this.top+x+d,this.bottom-e[0].height),line:0},oa(this.ctx,t.textDirection);const v=g+d;this.legendItems.forEach((y,_)=>{i.strokeStyle=y.fontColor||c,i.fillStyle=y.fontColor||c;const w=i.measureText(y.text).width,k=s.textAlign(y.textAlign||(y.textAlign=r.textAlign)),S=f+u+w;let E=p.x,O=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(O=p.y+=v,p.line++,E=p.x=Ji(o,this.left+d,this.right-n[p.line])):_>0&&O+v>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,O=p.y=Ji(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;i.save();const o=ni(n.lineWidth,1);if(i.fillStyle=ni(n.fillStyle,a),i.lineCap=ni(n.lineCap,"butt"),i.lineDashOffset=ni(n.lineDashOffset,0),i.lineJoin=ni(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ni(n.strokeStyle,a),i.setLineDash(ni(n.lineDash,[])),r.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);Qo(i,a,l,e+u,r.pointStyleWidth&&f)}else{const r=e+Math.max((h-m)/2,0),a=s.leftForLtr(t,f),l=fr(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?sr(i,{x:a,y:r,w:f,h:m,radius:l}):i.rect(a,r,f,m),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),O,y),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,E+f+u,b?E+S:this.right,t.rtl),function(t,e,n){rr(i,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),O,y),b?p.x+=S+d:p.y+=v}),ra(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=gr(e.font),i=mr(e.padding);if(!e.display)return;const o=ia(t.rtl,this.left,this.width),r=this.ctx,a=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=Ji(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+Ji(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Ji(a,d,d+h);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,rr(r,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=gr(t.font),n=mr(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Hi(t,this.left,this.right)&&Hi(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Hi(t,i.left,i.left+i.width)&&Hi(e,i.top,i.top+i.height))return this.legendItems[n];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 n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&oi(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&oi(e.onHover,[t,n,this],this)}else n&&oi(e.onClick,[t,n,this],this);var i,o}}var lc={id:"legend",_element:sc,start(t,e,n){const i=t.legend=new sc({ctx:t.ctx,options:n,chart:t});Ds.configure(t,i,n),Ds.addBox(t,i)},stop(t){Ds.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ds.configure(t,i,n),i.options=n},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,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),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:n,pointStyle:i,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(n?0:void 0),s=mr(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const cc={average(t){if(!t.length)return!1;let e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++r}}return{x:i/r,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Fi(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function dc(t,e){return e&&(Jn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hc(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function uc(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:a,value:s}=r.getLabelAndValue(o);return{chart:t,label:a,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function pc(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=gr(e.bodyFont),c=gr(e.titleFont),d=gr(e.footerFont),h=r.length,u=o.length,p=i.length,f=mr(e.padding);let m=f.height,g=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const v=function(t){g=Math.max(g,n.measureText(t).width+x)};return n.save(),n.font=c.string,ri(t.title,v),n.font=l.string,ri(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?a+2+e.boxPadding:0,ri(i,t=>{ri(t.before,v),ri(t.lines,v),ri(t.after,v)}),x=0,n.font=d.string,ri(t.footer,v),n.restore(),g+=f.width,{width:g,height:m}}function fc(t,e,n,i){const{x:o,width:r}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=r/2?c="left":o>=a-r/2&&(c="right"),function(t,e,n,i){const{x:o,width:r}=i,a=n.caretSize+n.caretPadding;return"left"===t&&o+r+a>e.width||"right"===t&&o-r-a<0||void 0}(c,t,e,n)&&(c="center"),c}function mc(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||fc(t,e,n,i),yAlign:i}}function gc(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+r,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(a);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Yi(f,0,i.width-e.width),y:Yi(m,0,i.height-e.height)}}function bc(t,e,n){const i=mr(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function xc(t){return dc([],hc(t))}function vc(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class yc extends Ga{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new xa(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,xr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),r=n.afterTitle.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}getBeforeBody(t,e){return xc(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return ri(t,t=>{const e={before:[],lines:[],after:[]},o=vc(n,t);dc(e.before,hc(o.beforeLabel.call(this,t))),dc(e.lines,o.label.call(this,t)),dc(e.after,hc(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return xc(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),r=n.afterFooter.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(uc(this.chart,e[a]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),ri(l,e=>{const n=vc(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=cc[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=pc(this,n),a=Object.assign({},t,e),s=mc(this.chart,n,a),l=gc(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=fr(a),{x:h,y:u}=t,{width:p,height:f}=e;let m,g,b,x,v,y;return"center"===o?(v=u+f/2,"left"===i?(m=h,g=m-r,x=v+r,y=v-r):(m=h+p,g=m+r,x=v-r,y=v+r),b=m):(g="left"===i?h+Math.max(s,c)+r:"right"===i?h+p-Math.max(l,d)-r:this.caretX,"top"===o?(x=u,v=x-r,m=g-r,b=g+r):(x=u+f,v=x+r,m=g+r,b=g-r),y=x),{x1:m,x2:g,x3:b,y1:x,y2:v,y3:y}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=gr(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=gr(o.bodyFont),h=bc(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Jo(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Jo(t,e,n,c)}else{t.lineWidth=Qn(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),a=fr(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,sr(t,{x:e,y:f,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),sr(t,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=r.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=gr(n.bodyFont);let h=d.lineHeight,u=0;const p=ia(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},m=p.textAlign(r);let g,b,x,v,y,_,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=bc(this,m,n),e.fillStyle=n.bodyColor,ri(this.beforeBody,f),u=a&&"right"!==m?"center"===r?l/2+c:l+2+c:0,v=0,_=i.length;v<_;++v){for(g=i[v],b=this.labelTextColors[v],e.fillStyle=b,ri(g.before,f),x=g.lines,a&&x.length&&(this._drawColorBox(e,t,v,p,n),h=Math.max(d.lineHeight,s)),y=0,w=x.length;y<w;++y)f(x[y]),h=d.lineHeight;ri(g.after,f)}u=0,h=d.lineHeight,ri(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=gr(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(i[a],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(a+d,s),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+l,s+c-p),e.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+u,s+c),e.quadraticCurveTo(a,s+c,a,s+c-u),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(a,s+d),e.quadraticCurveTo(a,s,a+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=cc[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=pc(this,t),a=Object.assign({},n,this._size),s=mc(e,t,a),l=gc(t,a,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=mr(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=n,this.drawBackground(o,t,i,e),oa(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ra(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!ai(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),s=e||!ai(r,o)||a;return s&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=cc[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}yc.positioners=cc;var _c={id:"tooltip",_element:yc,positioners:cc,afterInit(t,e,n){n&&(t.tooltip=new yc({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:qn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:qn,beforeBody:qn,beforeLabel:qn,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 n=t.formattedValue;return Kn(n)||(e+=n),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:qn,afterBody:qn,beforeFooter:qn,footer:qn,afterFooter:qn}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function wc(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class kc extends is{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:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Kn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Yi(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:wc(n,t,ni(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Sc(t,e){const n=[],{bounds:i,step:o,min:r,max:a,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:m}=e,g=!Kn(r),b=!Kn(a),x=!Kn(l),v=(m-f)/(d+1);let y,_,w,k,S=Di((m-f)/p/u)*u;if(S<1e-14&&!g&&!b)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=Di(k*S/p/u)*u),Kn(s)||(y=Math.pow(10,s),S=Math.ceil(S*y)/y),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(_=f,w=m),g&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-r)/o,S/1e3)?(k=Math.round(Math.min((a-r)/S,c)),S=(a-r)/k,_=r,w=a):x?(_=g?r:_,w=b?a:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=Ai(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(Ii(S),Ii(_));y=Math.pow(10,Kn(s)?E:s),_=Math.round(_*y)/y,w=Math.round(w*y)/y;let O=0;for(g&&(h&&_!==r?(n.push({value:r}),_<r&&O++,Ai(Math.round((_+O*S)*y)/y,r,Ec(r,v,t))&&O++):_<r&&O++);O<k;++O)n.push({value:Math.round((_+O*S)*y)/y});return b&&h&&w!==a?n.length&&Ai(n[n.length-1].value,a,Ec(a,v,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}function Ec(t,e,{horizontal:n,minRotation:i}){const o=Li(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}kc.id="category",kc.defaults={ticks:{callback:kc.prototype.getLabelForValue}};class Oc extends is{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 Kn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,a=t=>o=n?o:t;if(t){const t=Mi(i),e=Mi(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Sc({maxTicks:n,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&&Ri(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return na(t,this.chart.options.locale,this.options.ticks.format)}}class Tc extends Oc{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?t:0,this.max=ti(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Li(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Mc(t){return 1===t/Math.pow(10,Math.floor(Ti(t)))}Tc.id="linear",Tc.defaults={ticks:{callback:Xa.formatters.numeric}};class Dc extends is{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Oc.prototype.parse.apply(this,[t,e]);if(0!==n)return ti(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?Math.max(0,t):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t,a=(t,e)=>Math.pow(10,Math.floor(Ti(t))+e);n===i&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(i,1)))),n<=0&&o(a(i,-1)),i<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ti(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=ei(t.min,Math.pow(10,Math.floor(Ti(e.min)))),a=Math.floor(Ti(r)),s=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:Mc(r)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),r=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<i);const c=ei(t.max,r);return o.push({value:c,major:Mc(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ri(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":na(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ti(t),this._valueRange=Ti(this.max)-Ti(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ti(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Cc(t){const e=t.ticks;if(e.display&&t.display){const t=mr(e.backdropPadding);return ni(e.font&&e.font.size,$o.font.size)+t.height}return 0}function Ac(t,e,n){return n=Jn(n)?n:[n],{w:qo(t,e.string,n),h:n.length*e.lineHeight}}function Rc(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Lc(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},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?vi/r:0;for(let l=0;l<r;l++){const r=a.setContext(t.getPointLabelContext(l));o[l]=r.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=gr(r.font),h=Ac(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Bi(t.getIndexAngle(l)+s),p=Math.round(Pi(u));Pc(n,e,u,Rc(p,c.x,h.w,0,180),Rc(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,a=Cc(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?vi/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(Pi(Bi(o.angle+Si))),d=e[r],h=Fc(o.y,d.h,c),u=Ic(c),p=Nc(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Pc(t,e,n,i,o){const r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/a,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ic(t){return 0===t||180===t?"center":t<180?"left":"right"}function Nc(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Fc(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function zc(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,yi);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}Dc.id="logarithmic",Dc.defaults={ticks:{callback:Xa.formatters.logarithmic,major:{enabled:!0}}};class Bc extends Oc{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=mr(Cc(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ti(t)&&!isNaN(t)?t:0,this.max=ti(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Cc(this.options))}generateTickLabels(t){Oc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=oi(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Lc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Bi(t*(yi/(this._pointLabels.length||1))+Li(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Kn(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(Kn(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 n=e[t];return function(t,e,n){return xr(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Si+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),zc(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let r,a,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),r=gr(e.font),{x:a,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Kn(p)){const t=fr(e.borderRadius),i=mr(e.backdropPadding);n.fillStyle=p;const o=c-i.left,r=d-i.top,a=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),sr(n,{x:o,y:r,w:a,h:s,radius:t}),n.fill()):n.fillRect(o,r,a,s)}rr(n,t._pointLabels[o],a,s+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,r=e.circular,{color:a,lineWidth:s}=e;!r&&!i||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),zc(t,n,r,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),a,o)}}),n.display){for(t.save(),r=o-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,a)=>{if(0===a&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=gr(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,r=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=mr(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}rr(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}Bc.id="radialLinear",Bc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Xa.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Bc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Bc.descriptors={angleLines:{_fallback:"grid"}};const jc={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}},Yc=Object.keys(jc);function Hc(t,e){return t-e}function Wc(t,e){if(Kn(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"==typeof i&&(a=i(a)),ti(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!Ci(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function Vc(t,e,n,i){const o=Yc.length;for(let r=Yc.indexOf(t);r<o-1;++r){const t=jc[Yc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Yc[r]}return Yc[o-1]}function Uc(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Wi(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function Gc(t,e,n){const i=[],o={},r=e.length;let a,s;for(a=0;a<r;++a)s=e[a],o[s]=a,i.push({value:s,major:!1});return 0!==r&&n?function(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),a=e[e.length-1].value;let s,l;for(s=r;s<=a;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class $c extends is{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 n=t.time||(t.time={}),i=this._adapter=new cs._date(t.adapters.date);i.init(e),hi(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Wc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function s(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ti(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ti(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Vc(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=Yc.length-1;r>=Yc.indexOf(n);r--){const n=Yc[r];if(jc[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Yc[n?Yc.indexOf(n):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Yc.indexOf(t)+1,n=Yc.length;e<n;++e)if(jc[Yc[e]].common)return Yc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),Gc(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=Yi(i,0,r),o=Yi(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||Vc(o.minUnit,e,n,this._getLabelCapacity(e)),a=ni(o.stepSize,1),s="week"===r&&o.isoWeekday,l=Ci(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,a,r),h++)Uc(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Uc(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&r[a],c=s&&r[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?oi(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Li(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,Gc(this,[t],this._majorUnit),i),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Wc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Xi(t.sort(Hc))}}function Xc(t,e,n){let i,o,r,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Vi(t,"pos",e)),({pos:i,time:r}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Vi(t,"time",e)),({time:i,pos:r}=t[s]),({time:o,pos:a}=t[l]));const c=o-i;return c?r+(a-r)*(e-i)/c:r}$c.id="time",$c.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class qc extends $c{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=Xc(e,this.min),this._tableRange=Xc(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,a,s,l,c;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=i.length;r<a;++r)c=i[r+1],s=i[r-1],l=i[r],Math.round((c+s)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Xc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Xc(this._table,n*this._tableRange+this._minPos,!0)}}qc.id="timeseries",qc.defaults=$c.defaults;const Zc="label";function Kc(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function Jc(t,e){t.labels=e}function Qc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zc;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function td(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zc;const n={labels:[],datasets:[]};return Jc(n,t.labels),Qc(n,t.datasets,e),n}function ed(e,n){let{height:i=150,width:o=300,redraw:r=!1,datasetIdKey:a,type:l,data:c,options:d,plugins:h=[],fallbackContent:u,updateMode:p,...f}=e;const m=t.useRef(null),g=t.useRef(),b=()=>{m.current&&(g.current=new gl(m.current,{type:l,data:td(c,a),options:d&&{...d},plugins:h}),Kc(n,g.current))},x=()=>{Kc(n,null),g.current&&(g.current.destroy(),g.current=null)};return t.useEffect(()=>{var t,e;!r&&g.current&&d&&(t=g.current,e=d,Object.assign(t.options,e))},[r,d]),t.useEffect(()=>{!r&&g.current&&Jc(g.current.config.data,c.labels)},[r,c.labels]),t.useEffect(()=>{!r&&g.current&&c.datasets&&Qc(g.current.config.data,c.datasets,a)},[r,c.datasets]),t.useEffect(()=>{g.current&&(r?(x(),setTimeout(b)):g.current.update(p))},[r,d,c.labels,c.datasets,p]),t.useEffect(()=>{g.current&&(x(),setTimeout(b))},[l]),t.useEffect(()=>(b(),()=>x()),[]),s.default.createElement("canvas",Object.assign({ref:m,role:"img",height:i,width:o},f),u)}const nd=t.forwardRef(ed);gl.register(kc,Tc,Il,Ll,Ha,_c,lc,rc);var id,od,rd,ad,sd,ld=le.div(id||(id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),cd=le(e.Tabs)(od||(od=i.__makeTemplateObject(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),dd=le.span(rd||(rd=i.__makeTemplateObject(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),hd=le.span(ad||(ad=i.__makeTemplateObject(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function ud(t){var n=t.children,i=t.placement,o=void 0===i?"bottomRight":i,r=t.overlayClassName,a=void 0===r?vd:r,l=t.arrowPointAtCenter,c=void 0===l||l,d=t.trigger,h=void 0===d?"hover":d,u=t.color,p=t.title,f=t.content,m=t.mouseEnterDelay,g=void 0===m?0:m,b=t.mouseLeaveDelay,x=void 0===b?0:b,v=t.isNew,y=void 0!==v&&v,_=t.actionTitle,w=t.dismissTitle,k=t.maxWidth,S=t.onAction,E=t.onDismiss,O=k?{maxWidth:k}:void 0;return s.default.createElement(e.Tooltip,{overlayClassName:a,arrowPointAtCenter:c,trigger:h,color:u,placement:o,overlayStyle:O,title:s.default.createElement(yd,null,p&&s.default.createElement(zn,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:He.text.white}},p,!0===y&&s.default.createElement(wd,null,"New")),f,(_||w)&&s.default.createElement(_d,null,s.default.createElement(Sd,{onClick:function(t){t.preventDefault(),E&&E()}},w),s.default.createElement(kd,{onClick:function(t){t.preventDefault(),S&&S()}},_))),mouseEnterDelay:g,mouseLeaveDelay:x},n)}var pd,fd,md,gd,bd,xd,vd=xt(pd||(pd=i.__makeTemplateObject(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),we,exports.FONT_SIZE.P1,exports.FONT_WEIGHT.REGULAR,He.text.white,He.brand.primary.contrast,_e,He.brand.primary.contrast),yd=le.div(fd||(fd=i.__makeTemplateObject(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),_d=le.div(md||(md=i.__makeTemplateObject(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),wd=le.span(gd||(gd=i.__makeTemplateObject(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),exports.GREEN_COLORS.G400,He.text.white,exports.FONT_SIZE.SMALL,exports.FONT_WEIGHT.BOLD),kd=le.a(bd||(bd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.brand.action.default,He.brand.action.hover),Sd=le.a(xd||(xd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.text.white,He.text.white);We('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Ed={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Od=function(t){var e=t.icon,n=t.size,o=void 0===n?"m":n,r=t.fill,a=void 0===r?0:r,l=t.color,c=void 0===l?exports.NEUTRAL_COLORS.BLACK:l,d=t.className,h=void 0===d?"":d,u=t.style,p="string"==typeof o?Ed[o]:o,f=i.__assign({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:p,color:c},u);return s.default.createElement("span",{className:"material-symbols-rounded ".concat(h),style:f,translate:"no"},e)},Td={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Md={sm:"xs",lg:"s"},Dd={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},critical:{base:He.color.surface.subdueCritical,text:He.color.status.critical,icon:He.color.status.critical,border:He.color.status.critical},warning:{base:He.color.surface.subdueWarning,text:He.color.status.warning,icon:He.color.status.warning,border:He.color.status.warning},info:{base:He.color.surface.SubdueInfo,text:He.color.status.info,icon:He.color.status.info,border:He.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}},Cd={positive:{base:He.color.status.positive,text:He.color.base.onContainer,icon:"",border:He.color.status.positive},neutral:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:"",border:He.color.base.line}},Ad={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},disabled:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:He.color.surface.disabledOnSurface,border:He.color.base.line},neutral:{base:He.color.surface.neutral,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}};function Rd(t,e,n){switch(e){case"outlined":default:return Dd[t][n];case"filled":return Cd[t][n];case"removable":return Ad[t][n]}}function Ld(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,r=t.size,a=void 0===r?"sm":r,l=t.variant,c=void 0===l?"outlined":l,d=t.onClick;return s.default.createElement(Hd,{type:e,size:a,variant:c,onClick:"removable"!==c?d:void 0},o&&"disabled"!==e&&s.default.createElement(Od,{icon:Td[e],size:Md[a],color:Rd(e,c,"icon")}),s.default.createElement(kt.Body,{size:a,color:Rd(e,c,"text")},n),"removable"===c&&s.default.createElement(Yd,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==d||d()},type:"tertiary",icon:s.default.createElement(Od,{icon:"close",size:Md[a],color:Rd(e,c,"icon")})}))}var Pd,Id,Nd,Fd,zd,Bd,jd,Yd=le(ln)(Pd||(Pd=i.__makeTemplateObject(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),Hd=le.div(Id||(Id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return function(t){var e=t.type,n=t.variant,i=void 0===n?"outlined":n,o=t.size,r=void 0===o?"sm":o,a=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===r?"24px":"32px",";\n background-color: ").concat(e&&i?Rd(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Rd(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(a?"pointer":"default",";\n\n")}(t)}),Wd=le.div(Nd||(Nd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),Vd=le.div(Fd||(Fd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),Ud=le.div(zd||(zd=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),Gd="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(He.color.component.placeholderInput," !important;\n }\n }\n"),$d="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(He.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(He.color.base.onNeutral," !important;\n }\n"),Xd="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(He.color.base.onNeutral," !important;\n }\n }\n"),qd=le(e.Select)(Bd||(Bd=i.__makeTemplateObject(["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"])),He.color.surface.neutral,function(t){return function(t){var e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===t.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===t.$mode?"flex-start":"center"," !important;\n padding: ").concat(e," 16px !important;\n\n min-height: ").concat("sm"===t.$size?"36px":"48px"," !important;\n ").concat("multiple"!==t.$mode?"height: ".concat("sm"===t.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(t.disabled?He.color.surface.disabledSurface:He.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.line," !important;\n }\n")}(t)},function(t){return function(t){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!t.disabled&&"\n box-shadow: 0 0 0 1px ".concat(He.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.primary2," !important;\n "),"\n }\n")}(t)},Gd,function(t){return function(t){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===t.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===t.$mode?"align-content: center !important;":"","\n }\n")}(t)},$d,Xd),Zd="\n .rc-virtual-list-holder-inner {\n gap: 0;\n }\n .rc-virtual-list-holder {\n overflow-y: auto !important;\n }\n .ant-select-item {\n color: ".concat(He.color.base.onNeutral," !important;\n padding: 12px !important;\n margin-bottom: 4px !important;\n }\n .ant-select-item:last-child {\n margin-bottom: 0 !important;\n }\n"),Kd="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(He.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),Jd="\n .ant-select-item:hover {\n background: ".concat(He.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(He.color.interactive.pressedSurface," !important;\n }\n"),Qd="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(He.color.surface.disabledSurface," !important;\n span { \n color: ").concat(He.color.surface.disabledOnSurface," !important;\n }\n }\n"),th=le.div(jd||(jd=i.__makeTemplateObject(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),Zd,Kd,Jd,Qd),eh={padding:0,paddingBottom:"4px",borderRadius:"12px"},nh={sm:"md",lg:"lg"},ih={sm:"md",lg:"lg"},oh=function(t){return s.default.createElement(s.default.Fragment,null,t&&s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t),s.default.createElement(Od,{icon:"keyboard_arrow_down"}))},rh=function(t,e){return e?s.default.createElement(kt.Body,{size:nh[t]},e):null},ah=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return s.default.createElement(Ld,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},sh=function(n){var o=n.children,r=n.disabled,a=void 0!==r&&r,l=n.size,c=void 0===l?"sm":l,d=n.mode,h=n.label,u=n.labelTooltip,p=n.selectRef,f=n.placeholder,m=n.error,g=void 0!==m&&m,b=n.secondaryText,x=n.helperText,v=n.options,y=i.__rest(n,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),_=t.useRef(null),w=p||_;return s.default.createElement(Ud,null,h&&function(t,e){return t?s.default.createElement(Wd,null,s.default.createElement(kt.Body,{size:"md"},t),e?s.default.createElement(ud,{placement:"top",title:"I'm Tooltip Component",content:e},s.default.createElement("span",null,s.default.createElement(Od,{icon:"info",size:"xs"}))):null):null}(h,u),s.default.createElement(qd,i.__assign({disabled:a,mode:d,ref:w,$size:c,$mode:d,getPopupContainer:function(){return document.body}},y,{error:g,dropdownRender:function(t){return s.default.createElement(th,{$size:c},s.default.createElement(kt.Body,{size:"sm"===c?"md":"lg"},t))},dropdownStyle:eh,suffixIcon:oh(b),placeholder:rh(c,f),showArrow:!0,tagRender:ah(d,a,c),maxTagCount:999}),v?function(t,n){return t.map(function(t){var i=t.value,o=t.label,r=t.icon,a=t.disabled;return s.default.createElement(e.Select.Option,{key:i,value:i,disabled:a},s.default.createElement(Vd,null,r&&s.default.createElement(r,{style:{width:"16px",height:"16px"}}),s.default.createElement(kt.Body,{size:ih[n]},o)))})}(v,c):o),function(t){return t?s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t):null}(x))};sh.Option=e.Select.Option;var lh=function(t,e){var i=e.iconSrc,o=void 0===i?null:i,r=e.extraText,a=void 0===r?"":r,l=e.extraAction,c=void 0===l?function(){}:l,d=e.isAddItemBarVisible,h=void 0===d||d,u=e.topContent,p=e.bottomContent,f=e.actionContent;return s.default.createElement(fh,null,u,t,f||function(t){var e=t.iconSrc,i=void 0===e?null:e,o=t.extraText,r=void 0===o?"":o,a=t.extraAction,l=void 0===a?function(){}:a,c=t.isAddItemBarVisible;return void 0===c||c?s.default.createElement(gh,{onMouseDown:function(){l()}},i?s.default.createElement(mh,{src:i}):s.default.createElement(n.SvgAdd,null),r):null}({iconSrc:o,extraText:a,extraAction:c,isAddItemBarVisible:h}),p)},ch=function(t){var e=t.className,n=void 0===e?"":e,o=t.children,r=t.disabled,a=void 0!==r&&r,l=t.mode,c=t.label,d=t.iconSrc,h=void 0===d?"":d,u=t.extraText,p=void 0===u?"":u,f=t.extraAction,m=void 0===f?function(){}:f,g=t.isAddItemBarVisible,b=void 0===g||g,x=t.topContent,v=void 0===x?null:x,y=t.bottomContent,_=void 0===y?null:y,w=t.actionContent,k=void 0===w?null:w,S=i.__rest(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return s.default.createElement(sh,i.__assign({className:n,disabled:a,mode:l,label:c,dropdownRender:function(t){return lh(t,{iconSrc:h,extraText:p,extraAction:m,isAddItemBarVisible:b,topContent:v,bottomContent:_,actionContent:k})}},S),o)};ch.Option=sh.Option;var dh,hh,uh,ph,fh=le.div(dh||(dh=i.__makeTemplateObject(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),mh=le.img(hh||(hh=i.__makeTemplateObject(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),gh=le(Fn)(uh||(uh=i.__makeTemplateObject(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),bh=xt(ph||(ph=i.__makeTemplateObject(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),cn,exports.FONT_SIZE.P1,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R200,exports.RED_COLORS.R200,exports.RED_COLORS.R100,exports.RED_COLORS.R400,exports.RED_COLORS.R100,exports.RED_COLORS.R300),xh=function(t){var n=t.className,o=void 0===n?"":n,r=t.children,a=i.__rest(t,["className","children"]);return s.default.createElement(e.Form,i.__assign({className:bt(bh,o)},a),r)};function vh(t,e,n,i){void 0===e&&(e="large");var o=dn[e],r=o.height,a=o.borderRadius,s=o.padding,l=n?t.color.status.critical:t.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(cn,";\n font-size: ").concat(exports.FONT_SIZE.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(r,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n &.ant-input-group-wrapper-status-error .ant-input-group-addon,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:last-child,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(a," !important;\n border-bottom-left-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(a," !important;\n border-bottom-right-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-left: 1px solid ").concat(t.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-right: 1px solid ").concat(t.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(i?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function yh(t){var e=t.text,n=t.error,i=Ke();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return s.default.createElement(kt.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function _h(t){var e=t.label,i=t.required,o=t.optional,r=t.showInfoIcon,a=t.infoText,l=t.onInfoClick,c=Ke();return e?s.default.createElement(kh,null,s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutral}},e,i&&s.default.createElement("span",{style:{color:c.error.text,marginLeft:2}},"*")),o&&s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutralSecondary}},"Optional"),r&&a&&s.default.createElement(ud,{content:a,placement:"top"},s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),r&&!a&&s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}xh.Item=function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]);return s.default.createElement(e.Form.Item,i.__assign({className:bt(bh,o)},r))},xh.useForm=e.Form.useForm;var wh,kh=le.div(wh||(wh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),Sh=function(t){var n=t.addonBefore,o=t.addonAfter,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.disabledAddon,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.label,m=t.required,g=t.optional,b=void 0!==g&&g,x=t.size,v=void 0===x?"large":x,y=t.helperText,_=t.error,w=t.showInfoIcon,k=t.infoText,S=t.onInfoClick,E=i.__rest(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),O=vh(Ke(),v,_,h);return s.default.createElement("div",null,s.default.createElement(_h,{label:f,required:m,optional:b,showInfoIcon:w,infoText:k,onInfoClick:S}),s.default.createElement(e.Input,i.__assign({className:"".concat(xt(O)," ").concat(p),addonBefore:n,addonAfter:o,placeholder:a,disabled:c},E)),s.default.createElement(yh,{text:y,error:_}))};Sh.Password=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.className,h=void 0===d?"":d,u=t.label,p=t.required,f=t.optional,m=void 0!==f&&f,g=t.size,b=void 0===g?"large":g,x=t.helperText,v=t.error,y=t.showInfoIcon,_=t.infoText,w=t.onInfoClick,k=i.__rest(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),S=vh(Ke(),b,v);return s.default.createElement("div",null,s.default.createElement(_h,{label:u,required:p,optional:m,showInfoIcon:y,infoText:_,onInfoClick:w}),s.default.createElement(e.Input.Password,i.__assign({className:"".concat(xt(S)," ").concat(h),addonBefore:o,placeholder:a,disabled:c,visibilityToggle:!0},k)),s.default.createElement(yh,{text:x,error:v}))},Sh.Search=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.className,c=void 0===l?"":l,d=t.onChange,h=t.onSearch,u=t.size,p=void 0===u?"large":u,f=t.helperText,m=t.error,g=i.__rest(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),b=Ke(),x="".concat(vh(b,p,m),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(b.color.surface.neutral,";\n padding: ").concat("string"==typeof o?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return s.default.createElement("div",null,s.default.createElement(e.Input,i.__assign({placeholder:a,addonBefore:o,onChange:d,onKeyDown:h,className:"".concat(xt(x)," ").concat(c),prefix:s.default.createElement("span",{onClick:h,style:{display:"flex",cursor:h?"pointer":"default"}},s.default.createElement(Od,{icon:"search",size:"small"===p?"xs":"m",color:b.color.base.onNeutral}))},g)),s.default.createElement(yh,{text:f,error:m}))},Sh.TextArea=function(t){var n=t.className,o=void 0===n?"":n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.helperText,f=t.error,m=t.showInfoIcon,g=t.infoText,b=t.onInfoClick,x=i.__rest(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),v=Ke(),y=f?v.color.status.critical:v.color.base.line,_=dn[u],w=_.borderRadius,k=_.padding,S="".concat(vh(v,u,f),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(w," !important;\n border-color: ").concat(y,";\n padding: ").concat(k,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(f?v.color.status.critical:v.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(v.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n background-color: ").concat(v.color.surface.disabledSurface,";\n border-color: ").concat(v.color.base.line,";\n &::placeholder {\n color: ").concat(v.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(v.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(v.color.base.line," !important; }\n }\n }\n ");return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:m,infoText:g,onInfoClick:b}),s.default.createElement(e.Input.TextArea,i.__assign({className:"".concat(xt(S)," ").concat(o)},x)),s.default.createElement(yh,{text:p,error:f}))},Sh.Group=e.Input.Group;var Eh,Oh,Th,Mh,Dh,Ch,Ah,Rh,Lh,Ph,Ih,Nh,Fh,zh,Bh,jh,Yh,Hh,Wh,Vh,Uh,Gh,$h,Xh,qh,Zh,Kh,Jh,Qh,tu,eu,nu,iu,ou=dn.large,ru=ou.height,au=ou.borderRadius,su=ou.padding,lu=le.div(Eh||(Eh=i.__makeTemplateObject(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),ru),cu=le.div(Oh||(Oh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(t){return t.borderColor},au,au,function(t){return t.bgColor},function(t){return t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"default"},function(t){return t.isDisabled?"none":"auto"},function(t){return t.isDisabled?t.bgColor:t.hoverBgColor}),du=le.input(Th||(Th=i.__makeTemplateObject(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),su,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(au," 0 0 ").concat(au)},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?t.disabledTextColor:t.textColor},function(t){return t.isDisabled?t.disabledBgColor:"transparent"},function(t){return t.isDisabled?"not-allowed":"text"},function(t){return t.placeholderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor}),hu=le.button(Mh||(Mh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),au,au,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),uu={small:"400px",medium:"600px"},pu=le.div(Dh||(Dh=i.__makeTemplateObject(["\n width: calc(100vw - 32px);\n max-width: ",";\n background: white;\n box-shadow: 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: ",";\n background: white;\n box-shadow: 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"])),function(t){return uu[t.modalSize]}),fu=le.div(Ch||(Ch=i.__makeTemplateObject(["\n padding: 16px ",";\n"],["\n padding: 16px ",";\n"])),ze),mu=le.div(Ah||(Ah=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"]))),gu=le.h2(Rh||(Rh=i.__makeTemplateObject(["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"],["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"])),ke),bu=le.div(Lh||(Lh=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"],["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"])),ze),xu=le.div(Ph||(Ph=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"])),ze),vu=le.div(Ih||(Ih=i.__makeTemplateObject(["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),yu=le.h2(Nh||(Nh=i.__makeTemplateObject(["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"],["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"])),ke),_u=le.div(Fh||(Fh=i.__makeTemplateObject(["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"],["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"])),ze),wu=le.div(zh||(zh=i.__makeTemplateObject(["\n padding: 16px ",";\n text-align: center;\n"],["\n padding: 16px ",";\n text-align: center;\n"])),ze),ku=le.h2(Bh||(Bh=i.__makeTemplateObject(["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"],["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"])),ke),Su=le.div(jh||(jh=i.__makeTemplateObject(["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"],["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"])),ze,we),Eu=le.div(Yh||(Yh=i.__makeTemplateObject(["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"],["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"])),ze),Ou=le.div(Hh||(Hh=i.__makeTemplateObject(["\n cursor: pointer;\n flex-shrink: 0;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n"]))),Tu=function(t){var e=t.label,n=t.value,i=t.variant,o=void 0===i?"small":i;return s.default.createElement(Du,null,s.default.createElement(Cu,{variant:o},e),s.default.createElement(Au,{variant:o},n))},Mu=le.div(Wh||(Wh=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]))),Du=le.div(Vh||(Vh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Cu=le.span(Uh||(Uh=i.__makeTemplateObject(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"])),function(t){return"large"===t.variant?ke:we},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"},function(t){return"large"===t.variant?"#002b2a":"#505454"}),Au=le.span(Gh||(Gh=i.__makeTemplateObject(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"])),function(t){return"large"===t.variant?ke:we},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"}),Ru=document.body,Lu=Wt(qh||(qh=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Pu=le.div(Kh||(Kh=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Bt(Zh||(Zh=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Lu)}),Iu=le.div(Jh||(Jh=i.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Be,Be),Nu=le.div(Qh||(Qh=i.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),ze,Be,Be,Be),Fu=le.div(tu||(tu=i.__makeTemplateObject(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Be,Ne,Ne),zu=le.div(eu||(eu=i.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Bu=le.div(nu||(nu=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),ju=le.div(iu||(iu=i.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));var Yu,Hu={Group:function(t){return s.default.createElement(e.Radio.Group,i.__assign({size:"large",onChange:t.onChange},t))},Button:function(t){var n=t.children,o=t.disabled,r=i.__rest(t,["children","disabled"]),a=Ke().brand,l="\n &.ant-radio-button-wrapper {\n ".concat(o?"":"color: ".concat(exports.NEUTRAL_COLORS.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(cn," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(o?"":"\n border-color: ".concat(a.primary.default," !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(ot.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(a.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n }\n ");return s.default.createElement(e.Radio.Button,i.__assign({className:xt(l),disabled:o},r),s.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},s.default.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},s.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),s.default.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),n))}},Wu={},Vu={exports:{}};function Uu(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gu,$u={exports:{}};function Xu(){return Gu||(Gu=1,(t=$u).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function b(t){if(null==t._isValid){var e=g(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function x(t){var e=f(NaN);return null!=t?p(g(e),t):g(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=i.momentProperties=[];function y(t,e){var n,i,o;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=g(e)),l(e._locale)||(t._locale=e._locale),v.length>0)for(n=0;n<v.length;n++)l(o=e[i=v[n]])||(t[i]=o);return t}var _=!1;function w(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function O(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&a++;return a+r}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function M(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,r=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];r.push(o)}T(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var D,C={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(T(e),C[t]=!0)}function R(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t){var e,n;for(n in t)R(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(a(t[n])&&a(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&a(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return R(i)?i.call(e,n):i}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function B(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}var j="Invalid date";function Y(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function V(t){return this._ordinal.replace("%d",t)}var U={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G(t,e,n,i){var o=this._relativeTime[n];return R(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return R(n)?n(e):n.replace(/%s/i,e)}var X={};function q(t,e){var n=t.toLowerCase();X[n]=X[n+"s"]=X[e]=t}function Z(t){return"string"==typeof t?X[t]||X[t.toLowerCase()]:void 0}function K(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var J={};function Q(t,e){J[t]=e}function tt(t){var e=[];for(var n in t)e.push({unit:n,priority:J[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function et(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var nt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},rt={};function at(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(rt[t]=o),e&&(rt[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(rt[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function lt(t){var e,n,i=t.match(nt);for(e=0,n=i.length;e<n;e++)rt[i[e]]?i[e]=rt[i[e]]:i[e]=st(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=R(i[o])?i[o].call(e,t):i[o];return r}}function ct(t,e){return t.isValid()?(e=dt(e,t.localeData()),ot[e]=ot[e]||lt(e),ot[e](t)):t.localeData().invalidDate()}function dt(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(it.lastIndex=0;n>=0&&it.test(t);)t=t.replace(it,i),it.lastIndex=0,n-=1;return t}var ht=/\d/,ut=/\d\d/,pt=/\d{3}/,ft=/\d{4}/,mt=/[+-]?\d{6}/,gt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,yt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,kt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[+-]?\d+(\.\d{1,3})?/,Tt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mt={};function Dt(t,e,n){Mt[t]=R(e)?e:function(t,i){return t&&n?n:e}}function Ct(t,e){return u(Mt,t)?Mt[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Rt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Rt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Lt={};function Pt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)Lt[t[n]]=i}function It(t,e){Pt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Lt,t)&&Lt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,jt=3,Yt=4,Ht=5,Wt=6,Vt=7,Ut=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}at("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),at(0,["YY",2],0,function(){return this.year()%100}),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Dt("Y",kt),Dt("YY",gt,ut),Dt("YYYY",yt,ft),Dt("YYYYY",_t,mt),Dt("YYYYYY",_t,mt),Pt(["YYYYY","YYYYYY"],Ft),Pt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Pt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Pt("Y",function(t,e){e[Ft]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return $t(this.year())}function Kt(t,e){return function(n){return null!=n?(Qt(this,t,n),i.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$t(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ie(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function te(t){return R(this[t=Z(t)])?this[t]():this}function ee(t,e){if("object"==typeof t)for(var n=tt(t=K(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(R(this[t=Z(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?$t(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},at("M",["MM",2],"Mo",function(){return this.month()+1}),at("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),at("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Dt("M",gt),Dt("MM",gt,ut),Dt("MMM",function(t,e){return e.monthsShortRegex(t)}),Dt("MMMM",function(t,e){return e.monthsRegex(t)}),Pt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Pt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:g(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function ae(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}var se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function le(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))||-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))||-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null}function de(t,e,n){var i,o,r;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ie(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ue(t){return null!=t?(he(this,t),i.updateOffset(this,!0),this):Jt(this,"Month")}function pe(){return ie(this.year(),this.month())}var fe=Tt;function me(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=fe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var ge=Tt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Rt(i[e]),o[e]=Rt(o[e]);for(e=0;e<24;e++)r[e]=Rt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ve(t,e,n,i,o,r,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,r,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,r,a),s}function ye(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _e(t,e,n){var i=7+e-n;return-(7+ye(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var r,a,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?a=Gt(r=t-1)+s:s>Gt(t)?(r=t+1,a=s-Gt(t)):(r=t,a=s),{year:r,dayOfYear:a}}function ke(t,e,n){var i,o,r=_e(t.year(),e,n),a=Math.floor((t.dayOfYear()-r-1)/7)+1;return a<1?i=a+Se(o=t.year()-1,e,n):a>Se(t.year(),e,n)?(i=a-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function Se(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(Gt(t)-i+o)/7}function Ee(t){return ke(t,this._week.dow,this._week.doy).week}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Dt("w",gt),Dt("ww",gt,ut),Dt("W",gt),Dt("WW",gt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Oe={dow:0,doy:6};function Te(){return this._week.dow}function Me(){return this._week.doy}function De(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ce(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Re(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Le(t,e){return t.slice(e,7).concat(t.slice(0,e))}at("d",0,"do","day"),at("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),at("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),at("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Dt("d",gt),Dt("e",gt),Dt("E",gt),Dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Dt("dddd",function(t,e){return e.weekdaysRegex(t)}),It(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:g(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Le(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Le(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Be(t){return!0===t?Le(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function je(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null}function Ye(t,e,n){var i,o,r;if(this._weekdaysParseExact)return je.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Re(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ue=Tt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Tt;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Tt;function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,o,r,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),c.push(i),c.push(o),c.push(r);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Rt(s[e]),l[e]=Rt(l[e]),c[e]=Rt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){at(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Je),at("k",["kk",2],0,Qe),at("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),at("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),at("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),at("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)}),tn("a",!0),tn("A",!1),q("hour","h"),Q("hour",13),Dt("a",en),Dt("A",en),Dt("H",gt),Dt("h",gt),Dt("k",gt),Dt("HH",gt,ut),Dt("hh",gt,ut),Dt("kk",gt,ut),Dt("hmm",bt),Dt("hmmss",xt),Dt("Hmm",bt),Dt("Hmmss",xt),Pt(["H","HH"],jt),Pt(["k","kk"],function(t,e,n){var i=E(t);e[jt]=24===i?0:i}),Pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Pt(["h","hh"],function(t,e,n){e[jt]=E(t),g(n).bigHour=!0}),Pt("hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i)),g(n).bigHour=!0}),Pt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),g(n).bigHour=!0}),Pt("Hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i))}),Pt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function rn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:j,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:U,months:re,monthsShort:se,week:Oe,weekdays:Pe,weekdaysMin:ze,weekdaysShort:Ne,meridiemParse:on},cn={},dn={};function hn(t){return t?t.toLowerCase().replace("_","-"):t}function un(t){for(var e,n,i,o,r=0;r<t.length;){for(e=(o=hn(t[r]).split("-")).length,n=(n=hn(t[r+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&O(o,n,!0)>=e-1)break;e--}r++}return an}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=an._abbr,Uu("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):mn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function mn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=cn[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(P(i,e)),dn[t]&&dn[t].forEach(function(t){mn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function gn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=P(o,e))).parentLocale=cn[t],cn[t]=n,fn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!r(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return D(cn)}function vn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[jt]<0||n[jt]>24||24===n[jt]&&(0!==n[Yt]||0!==n[Ht]||0!==n[Wt])?jt:n[Yt]<0||n[Yt]>59?Yt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,g(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),g(t)._overflowWeeks&&-1===e&&(e=Vt),g(t)._overflowWeekday&&-1===e&&(e=Ut),g(t).overflow=e),t}function yn(t,e,n){return null!=t?t:null!=e?e:n}function _n(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wn(t){var e,n,i,o,r,a=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(r=yn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(r)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=ye(r,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[Bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[jt]&&0===t._a[Yt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[jt]=0),t._d=(t._useUTC?ye:ve).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[jt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,r,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,a=4,n=yn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=yn(e.W,1),((o=yn(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;var c=ke(Xn(),r,a);n=yn(e.gg,t._a[Ft],c.year),i=yn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>Se(n,r,a)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=we(n,i,o,r,a),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((\-?\d+)/i;function Cn(t){var e,n,i,o,r,a,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(g(t).iso=!0,e=0,n=Tn.length;e<n;e++)if(Tn[e][1].exec(l[1])){o=Tn[e][0],i=!1!==Tn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Mn.length;e<n;e++)if(Mn[e][1].exec(l[3])){r=(l[2]||" ")+Mn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!On.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=o+(r||"")+(a||""),jn(t)}else t._isValid=!1}var An=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Rn(t,e,n,i,o,r){var a=[Ln(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}function Ln(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return Nn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function zn(t){var e=An.exec(Pn(t._i));if(e){var n=Rn(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=ye.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Dn.exec(t._i);null===e?(Cn(t),!1===t._isValid&&(delete t._isValid,zn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function jn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],g(t).empty=!0;var e,n,o,r,a,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)r=o[e],(n=(s.match(Ct(r,t))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&g(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),rt[r]?(n?g(t).empty=!1:g(t).unusedTokens.push(r),Nt(r,n,t)):t._strict&&!n&&g(t).unusedTokens.push(r);g(t).charsLeftOver=l-c,s.length>0&&g(t).unusedInput.push(s),t._a[jt]<=12&&!0===g(t).bigHour&&t._a[jt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[jt]=Yn(t._locale,t._a[jt],t._meridiem),wn(t),vn(t)}else zn(t);else Cn(t)}function Yn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Hn(t){var e,n,i,o,r;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],jn(e),b(e)&&(r+=g(e).charsLeftOver,r+=10*g(e).unusedTokens.length,g(e).score=r,(null==i||r<i)&&(i=r,n=e));p(t,n||e)}function Wn(t){if(!t._d){var e=K(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wn(t)}}function Vn(t){var e=new w(vn(Un(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Un(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?x({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(vn(e)):(d(e)?t._d=e:r(n)?Hn(t):n?jn(t):Gn(t),b(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):r(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):a(e)?Wn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,o){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(t)&&s(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=i,Vn(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var qn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:x()}),Zn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:x()});function Kn(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function Qn(){return Kn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){for(var e in t)if(-1===Xt.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ei.length;++i)if(t[ei[i]]){if(n)return!1;parseFloat(t[ei[i]])!==E(t[ei[i]])&&(n=!0)}return!0}function ii(){return this._isValid}function oi(){return Oi(NaN)}function ri(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=ni(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ai(t){return t instanceof ri}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){at(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+et(~~(t/60),2)+e+et(~~t%60,2)})}li("Z",":"),li("ZZ",""),Dt("Z",Et),Dt("ZZ",Et),Pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=di(Et,t)});var ci=/([\+\-]|\d\d)/gi;function di(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ci)||["-",0,0],o=60*i[1]+E(i[2]);return 0===o?0:"+"===i[0]?o:-o}function hi(t,e){var n,o;return e._isUTC?(n=e.clone(),o=(k(t)||d(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):Xn(t).local()}function ui(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function pi(t,e,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=di(Et,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(o=ui(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!e||this._changeInProgress?Ai(this,Oi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function mi(t){return this.utcOffset(0,t)}function gi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=di(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function vi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Un(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&O(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function _i(){return!!this.isValid()&&!this._isUTC}function wi(){return!!this.isValid()&&this._isUTC}function ki(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Oi(t,e){var n,i,o,r=t,a=null;return ai(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Si.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:E(a[Bt])*n,h:E(a[jt])*n,m:E(a[Yt])*n,s:E(a[Ht])*n,ms:E(si(1e3*a[Wt]))*n}):(a=Ei.exec(t))?(n="-"===a[1]?-1:1,r={y:Ti(a[2],n),M:Ti(a[3],n),w:Ti(a[4],n),d:Ti(a[5],n),h:Ti(a[6],n),m:Ti(a[7],n),s:Ti(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Di(Xn(r.from),Xn(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),i=new ri(r),ai(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Ti(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Di(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Mi(t,e):((n=Mi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ci(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Ai(this,Oi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var r=e._milliseconds,a=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),a&&Qt(t,"Date",Jt(t,"Date")+a*n),r&&t._d.setTime(t._d.valueOf()+r*n),o&&i.updateOffset(t,a||s))}Oi.fn=ri.prototype,Oi.invalid=oi;var Ri=Ci(1,"add"),Li=Ci(-1,"subtract");function Pi(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),r=i.calendarFormat(this,o)||"sameElse",a=e&&(R(e[r])?e[r].call(this,n):e[r]);return this.format(a||this.localeData().calendar(r,this,Xn(n)))}function Ni(){return new w(this)}function Fi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function zi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Bi(t,e,n,i){var o=k(t)?t:Xn(t),r=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))}function ji(t,e){var n,i=k(t)?t:Xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Yi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Wi(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=hi(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":r=Vi(this,i)/12;break;case"month":r=Vi(this,i);break;case"quarter":r=Vi(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:S(r)}function Vi(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Ui(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",r=e+'[")]';return this.format(n+i+o+r)}function Xi(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function qi(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zi(t){return this.from(Xn(),t)}function Ki(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ji(t){return this.to(Xn(),t)}function Qi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eo(){return this._locale}var no=1e3,io=60*no,oo=60*io,ro=3506328*oo;function ao(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ro:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ro:Date.UTC(t,e,n)}function co(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ao(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ao(e,io);break;case"second":e=this._d.valueOf(),e-=ao(e,no)}return this._d.setTime(e),i.updateOffset(this,!0),this}function ho(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=oo-ao(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ao(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ao(e,no)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-6e4*(this._offset||0)}function po(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function mo(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function go(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bo(){return this.isValid()?this.toISOString():null}function xo(){return b(this)}function vo(){return p({},g(this))}function yo(){return g(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){at(0,[t,t.length],0,e)}function ko(t){return To.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return To.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Oo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function To(t,e,n,i,o){var r;return null==t?ke(this,i,o).year:(e>(r=Se(t,i,o))&&(e=r),Mo.call(this,t,e,n,i,o))}function Mo(t,e,n,i,o){var r=we(t,e,n,i,o),a=ye(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Do(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}at(0,["gg",2],0,function(){return this.weekYear()%100}),at(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wo("gggg","weekYear"),wo("ggggg","weekYear"),wo("GGGG","isoWeekYear"),wo("GGGGG","isoWeekYear"),q("weekYear","gg"),q("isoWeekYear","GG"),Q("weekYear",1),Q("isoWeekYear",1),Dt("G",kt),Dt("g",kt),Dt("GG",gt,ut),Dt("gg",gt,ut),Dt("GGGG",yt,ft),Dt("gggg",yt,ft),Dt("GGGGG",_t,mt),Dt("ggggg",_t,mt),It(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),It(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),at("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Dt("Q",ht),Pt("Q",function(t,e){e[zt]=3*(E(t)-1)}),at("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Dt("D",gt),Dt("DD",gt,ut),Dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Pt(["D","DD"],Bt),Pt("Do",function(t,e){e[Bt]=E(t.match(gt)[0])});var Co=Kt("Date",!0);function Ao(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}at("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Dt("DDD",vt),Dt("DDDD",pt),Pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),at("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Dt("m",gt),Dt("mm",gt,ut),Pt(["m","mm"],Yt);var Ro=Kt("Minutes",!1);at("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Dt("s",gt),Dt("ss",gt,ut),Pt(["s","ss"],Ht);var Lo,Po=Kt("Seconds",!1);for(at("S",0,0,function(){return~~(this.millisecond()/100)}),at(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,function(){return 10*this.millisecond()}),at(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),at(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),at(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),at(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),at(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Dt("S",vt,ht),Dt("SS",vt,ut),Dt("SSS",vt,pt),Lo="SSSS";Lo.length<=9;Lo+="S")Dt(Lo,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Lo="S";Lo.length<=9;Lo+="S")Pt(Lo,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var Bo=w.prototype;function jo(t){return Xn(1e3*t)}function Yo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Ri,Bo.calendar=Ii,Bo.clone=Ni,Bo.diff=Wi,Bo.endOf=ho,Bo.format=Xi,Bo.from=qi,Bo.fromNow=Zi,Bo.to=Ki,Bo.toNow=Ji,Bo.get=te,Bo.invalidAt=yo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=ji,Bo.isSameOrAfter=Yi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=vo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Li,Bo.toArray=mo,Bo.toObject=go,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=Ui,Bo.unix=po,Bo.valueOf=uo,Bo.creationData=_o,Bo.year=qt,Bo.isLeapYear=Zt,Bo.weekYear=ko,Bo.isoWeekYear=So,Bo.quarter=Bo.quarters=Do,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=De,Bo.isoWeek=Bo.isoWeeks=Ce,Bo.weeksInYear=Oo,Bo.isoWeeksInYear=Eo,Bo.date=Co,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ve,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Ro,Bo.second=Bo.seconds=Po,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=mi,Bo.local=gi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=vi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=M("dates accessor is deprecated. Use date instead.",Co),Bo.months=M("months accessor is deprecated. Use month instead",ue),Bo.years=M("years accessor is deprecated. Use year instead",qt),Bo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yi);var Wo=I.prototype;function Vo(t,e,n,i){var o=bn(),r=f().set(i,e);return o[n](r,t)}function Uo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Vo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Vo(t,i,n,"month");return o}function Go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var o,r=bn(),a=t?r._week.dow:0;if(null!=n)return Vo(e,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Vo(e,(o+a)%7,i,"day");return s}function $o(t,e){return Uo(t,e,"months")}function Xo(t,e){return Uo(t,e,"monthsShort")}function qo(t,e,n){return Go(t,e,n,"weekdays")}function Zo(t,e,n){return Go(t,e,n,"weekdaysShort")}function Ko(t,e,n){return Go(t,e,n,"weekdaysMin")}Wo.calendar=F,Wo.longDateFormat=B,Wo.invalidDate=Y,Wo.ordinal=V,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=L,Wo.months=ae,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=me,Wo.week=Ee,Wo.firstDayOfYear=Me,Wo.firstDayOfWeek=Te,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ye,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=rn,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=M("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);var Jo=Math.abs;function Qo(){var t=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),t.milliseconds=Jo(t.milliseconds),t.seconds=Jo(t.seconds),t.minutes=Jo(t.minutes),t.hours=Jo(t.hours),t.months=Jo(t.months),t.years=Jo(t.years),this}function tr(t,e,n,i){var o=Oi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function er(t,e){return tr(this,t,e,1)}function nr(t,e){return tr(this,t,e,-1)}function ir(t){return t<0?Math.floor(t):Math.ceil(t)}function or(){var t,e,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*ir(ar(s)+a),a=0,s=0),l.milliseconds=r%1e3,t=S(r/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,a+=S(n/24),s+=o=S(rr(a)),a-=ir(ar(o)),i=S(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function rr(t){return 4800*t/146097}function ar(t){return 146097*t/4800}function sr(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+rr(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ar(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function lr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function cr(t){return function(){return this.as(t)}}var dr=cr("ms"),hr=cr("s"),ur=cr("m"),pr=cr("h"),fr=cr("d"),mr=cr("w"),gr=cr("M"),br=cr("Q"),xr=cr("y");function vr(){return Oi(this)}function yr(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _r(t){return function(){return this.isValid()?this._data[t]:NaN}}var wr=_r("milliseconds"),kr=_r("seconds"),Sr=_r("minutes"),Er=_r("hours"),Or=_r("days"),Tr=_r("months"),Mr=_r("years");function Dr(){return S(this.days()/7)}var Cr=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,M:11};function Rr(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Lr(t,e,n){var i=Oi(t).abs(),o=Cr(i.as("s")),r=Cr(i.as("m")),a=Cr(i.as("h")),s=Cr(i.as("d")),l=Cr(i.as("M")),c=Cr(i.as("y")),d=o<=Ar.ss&&["s",o]||o<Ar.s&&["ss",o]||r<=1&&["m"]||r<Ar.m&&["mm",r]||a<=1&&["h"]||a<Ar.h&&["hh",a]||s<=1&&["d"]||s<Ar.d&&["dd",s]||l<=1&&["M"]||l<Ar.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Rr.apply(null,d)}function Pr(t){return void 0===t?Cr:"function"==typeof t&&(Cr=t,!0)}function Ir(t,e){return void 0!==Ar[t]&&(void 0===e?Ar[t]:(Ar[t]=e,"s"===t&&(Ar.ss=e-1),!0))}function Nr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Lr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fr=Math.abs;function zr(t){return(t>0)-(t<0)||+t}function Br(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fr(this._milliseconds)/1e3,i=Fr(this._days),o=Fr(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var r=S(o/12),a=o%=12,s=i,l=e,c=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var u=h<0?"-":"",p=zr(this._months)!==zr(h)?"-":"",f=zr(this._days)!==zr(h)?"-":"",m=zr(this._milliseconds)!==zr(h)?"-":"";return u+"P"+(r?p+r+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var jr=ri.prototype;return jr.isValid=ii,jr.abs=Qo,jr.add=er,jr.subtract=nr,jr.as=sr,jr.asMilliseconds=dr,jr.asSeconds=hr,jr.asMinutes=ur,jr.asHours=pr,jr.asDays=fr,jr.asWeeks=mr,jr.asMonths=gr,jr.asQuarters=br,jr.asYears=xr,jr.valueOf=lr,jr._bubble=or,jr.clone=vr,jr.get=yr,jr.milliseconds=wr,jr.seconds=kr,jr.minutes=Sr,jr.hours=Er,jr.days=Or,jr.weeks=Dr,jr.months=Tr,jr.years=Mr,jr.humanize=Nr,jr.toISOString=Br,jr.toString=Br,jr.toJSON=Br,jr.locale=Qi,jr.localeData=eo,jr.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Br),jr.lang=to,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Dt("x",kt),Dt("X",Ot),Pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Pt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=Bo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=jo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Oi,i.isMoment=k,i.weekdays=qo,i.parseZone=Yo,i.localeData=bn,i.isDuration=ai,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=mn,i.updateLocale=gn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=Pr,i.relativeTimeThreshold=Ir,i.calendarFormat=Pi,i.prototype=Bo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),$u.exports;var t}var qu,Zu,Ku={};var Ju=function(){if(Zu)return Wu;Zu=1;var t,e=(Yu||(Yu=1,(t=Vu).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),Vu.exports).default;Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.default=void 0;var n=e(Xu()),i=function(){if(qu)return Ku;qu=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.call=a,Ku.default=void 0,Ku.note=o,Ku.noteOnce=l,Ku.preMessage=void 0,Ku.resetWarned=r,Ku.warning=i,Ku.warningOnce=s;var t={},e=[],n=Ku.preMessage=function(t){e.push(t)};function i(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","warning")},n);i&&console.error("Warning: ".concat(i))}}function o(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","note")},n);i&&console.warn("Note: ".concat(i))}}function r(){t={}}function a(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){a(i,t,e)}function l(t,e){a(o,t,e)}return s.preMessage=n,s.resetWarned=r,s.noteOnce=l,Ku.default=s,Ku}(),o={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},setMillisecond:function(t,e){return t.clone().millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,o){for(var r=[],a=0;a<o.length;a+=1){var s=o[a],l=e;if(s.includes("wo")||s.includes("Wo")){var c=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),d=l.match(/[-\d]+/g);c&&d?(s=c.join(""),l=d.join("")):r.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<r.length;u+=1){var p=(0,n.default)(e,r[u],t,!1);if(p.isValid())return(0,i.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};return Wu.default=o,Wu}(),Qu=w(Ju),tp=e.DatePicker.generatePicker(Qu);var ep,np,ip=le("div")(ep||(ep=i.__makeTemplateObject(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},_e,function(t){return"lg"===t.only?"none":"block"}),op=function(t){var n=t.className,o=i.__rest(t,["className"]),r="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(Ee,"\n ").concat(Ie,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Pe,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Ie,"\n color: #777777;\n }\n ");return s.default.createElement(e.Steps,i.__assign({},o,{className:bt(xt(r),n)}))};op.Step=function(t){var n=i.__rest(t,[]),o=xt(np||(np=i.__makeTemplateObject(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return s.default.createElement(e.Steps.Step,i.__assign({className:bt(o)},n))};var rp,ap,sp,lp,cp,dp,hp=xt(dp||(dp=i.__makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),cn,nt.DEFAULT),up=function(t){var n=t.children,o=i.__rest(t,["children"]),r=Ke().brand,a="\n font-family: ".concat(cn,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(r.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(r.primary.default,"; \n }\n ");return s.default.createElement(e.Tabs,i.__assign({className:"".concat(xt(a))},o),n)};up.TabPane=e.Tabs.TabPane;var pp,fp,mp,gp,bp,xp,vp,yp,_p,wp,kp,Sp,Ep,Op,Tp,Mp,Dp,Cp,Ap,Rp={Group:function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]),a="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(He.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n font-family: ").concat(cn," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(He.brand.primary.illustration," !important;\n border-color: ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n ");return s.default.createElement(e.Checkbox.Group,i.__assign({className:"".concat(xt(a)," ").concat(o)},r))}},Lp=le.div(pp||(pp=i.__makeTemplateObject(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),Pp=le(zn)(fp||(fp=i.__makeTemplateObject(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),Ip=le(Fn)(mp||(mp=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),rt.S500),Np=le(Fn)(gp||(gp=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),nt.DEFAULT),Fp=function(t){var e=t.typographyType,n=void 0===e?"body":e,o=t.size,r=void 0===o?"md":o,a=t.textContent,l=t.children,c=t.href,d=t.target,h=t.rel,u=t.isUnderlined,p=void 0===u||u,f=t.icon,m=t.iconPlacement,g=void 0===m?"left":m,b=t.onClick,x=i.__rest(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),v=le.a(bp||(bp=i.__makeTemplateObject(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),f?"flex":"inline-flex",He.color.base.link,p?"underline":"none",He.color.base.link,p?"underline":"none",He.color.base.link),y=f&&"left"===g,_=f&&"right"===g,w=a||l;return s.default.createElement(v,i.__assign({href:c,target:d,rel:h,onClick:b},x),y&&f,"body"===n&&s.default.createElement(kt.Body,{size:r,color:He.color.base.link},w),"label"===n&&s.default.createElement(kt.Label,{size:r,color:He.color.base.link},w),_&&f)},zp={Title:le(Nn)(kp||(kp=i.__makeTemplateObject(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:le(Fn)(Sp||(Sp=i.__makeTemplateObject(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:le.div(Ep||(Ep=i.__makeTemplateObject(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),_e),Left:le.div(Op||(Op=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e),Right:le.div(Tp||(Tp=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e)};var Bp,jp,Yp,Hp,Wp,Vp,Up,Gp,$p,Xp,qp,Zp,Kp,Jp,Qp=w(function(){if(Ap)return Cp;Ap=1;var t=Dp?Mp:(Dp=1,Mp=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return Cp=function(n,i){var o,r,a,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(a=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=e[i.format]||e.default;window.clipboardData.setData(r,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),r=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}}()),tf=le.div(Bp||(Bp=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),ef=le.div(jp||(jp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),nf=le.div(Yp||(Yp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),of=le.div(Hp||(Hp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),rf=le.div(Wp||(Wp=i.__makeTemplateObject(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),He.color.surface.disabledSurface,He.color.base.line),af=le.div(Vp||(Vp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),sf=le.div(Up||(Up=i.__makeTemplateObject(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),He.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),lf=le(e.Button)(Gp||(Gp=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),He.color.base.line,He.color.surface.neutral,Ee,He.brand.primary.default),cf=function(t){var n=t.className,o=i.__rest(t,["className"]);return s.default.createElement(e.Timeline,i.__assign({},o,{className:bt(xt("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),n)}))};cf.Item=e.Timeline.Item;var df,hf,uf,pf,ff,mf,gf,bf,xf,vf=le.div(df||(df=i.__makeTemplateObject(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),He.color.surface.secondaryNeutral),yf=le.div(hf||(hf=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),He.color.base.onNeutral),_f=le.div(uf||(uf=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),wf=le(Fp)(pf||(pf=i.__makeTemplateObject(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),kf=le.div(ff||(ff=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Sf=le.div(mf||(mf=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),Ef=le.span(gf||(gf=i.__makeTemplateObject(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(He.color.base.primary3):"".concat(He.color.surface.disabledOnSurface)}),Of=le(Fp)(bf||(bf=i.__makeTemplateObject(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(He.color.surface.disabledOnSurface):"".concat(He.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),Tf=le.div(xf||(xf=i.__makeTemplateObject(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));var Mf,Df,Cf,Af,Rf=s.default.createContext({setModal:function(){return null},resetModal:function(){return null}}),Lf=document.body,Pf=function(e){var n=e.modal,o=t.useState(document.createElement("div"))[0];o.setAttribute("id","modal-root"),t.useEffect(function(){return Lf.appendChild(o),function(){Lf.removeChild(o)}},[o]);var r=s.default.createElement(Yt,{styles:Bt(Mf||(Mf=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return l.default.createPortal(s.default.createElement(Nf,{open:!!n},!!n&&r,n),o)},If=Wt(Df||(Df=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Nf=le.div(Af||(Af=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.70);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.70);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Bt(Cf||(Cf=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),If)});exports.AccessApiTwoTone=n.SvgAccessApiTwoTone,exports.AccountStatement=n.SvgAccountStatement,exports.Add=n.SvgAdd,exports.Api=n.SvgApi,exports.ApiDocsTwoTone=n.SvgApiDocsTwoTone,exports.ArrowDown=n.SvgArrowDown,exports.ArrowLeft=n.SvgArrowLeft,exports.ArrowRight=n.SvgArrowRight,exports.ArrowSwitch=n.SvgArrowSwitch,exports.ArrowUp=n.SvgArrowUp,exports.Authorize=n.SvgAuthorize,exports.Avatar=n.SvgAvatar,exports.AvatarFilled=n.SvgAvatarFilled,exports.Bank=n.SvgBank,exports.BankFilled=n.SvgBankFilled,exports.BankFilledBackground=n.SvgBankFilledBackground,exports.Bell=n.SvgBell,exports.BellFilled=n.SvgBellFilled,exports.BulletPointArrow=n.SvgBulletPointArrow,exports.Calendar=n.SvgCalendar,exports.Camera=n.SvgCamera,exports.CardFilled=n.CardFilled,exports.Coins=n.Coins,exports.Company=n.SvgCompany,exports.CompanyComplexTwoTone=n.SvgCompanyComplexTwoTone,exports.CompanyTwoTone=n.SvgCompanyTwoTone,exports.Confirmation=n.SvgConfirmation,exports.CopyToClipboard=n.SvgCopyToClipboard,exports.CreditCard=n.SvgCreditCard,exports.Cross=n.SvgCross,exports.CrossMini=n.SvgCrossMini,exports.CustomerKnowledgeAssessment=n.SvgCustomerKnowledgeAssessment,exports.CustomerSupport=n.SvgCustomerSupport,exports.CustomerSupportTwoTone=n.SvgCustomerSupportTwoTone,exports.Delete=n.SvgDelete,exports.DepositTwoTone=n.SvgDepositTwoTone,exports.DeveloperTool=n.SvgDeveloperTool,exports.DeveloperToolTwoTone=n.SvgDeveloperToolTwoTone,exports.DirectMint=n.SvgDirectMint,exports.Document=n.SvgDocument,exports.DocumentFilled=n.SvgDocumentFilled,exports.Dots=n.SvgDots,exports.DownArrow=n.SvgDownArrow,exports.Download=n.SvgDownload,exports.Earn=n.SvgEarn,exports.Edit=n.SvgEdit,exports.Employee=n.SvgEmployee,exports.EmptyIcon=n.SvgEmptyIcon,exports.EmptyStateWithPattern=n.SvgEmptyStateWithPattern,exports.Expand=n.SvgExpand,exports.ExternalLink=n.SvgExternalLink,exports.Faq=n.SvgFaq,exports.FaqDialog=n.SvgFaqDialog,exports.FaqFilled=n.SvgFaqFilled,exports.File=n.SvgFile,exports.Filter=n.SvgFilter,exports.Flag=n.SvgFlag,exports.FlipHorizontal=n.SvgFlipHorizontal,exports.FlipVertical=n.SvgFlipVertical,exports.GenerateVA=n.GenerateVA,exports.HandShake=n.SvgHandShake,exports.HelpGuide=n.SvgHelpGuide,exports.Home=n.SvgHome,exports.Idea=n.SvgIdea,exports.Info=n.SvgInfo,exports.InfoFilled=n.SvgInfoFilled,exports.Invoice=n.SvgInvoice,exports.LockFilled=n.SvgLockFilled,exports.LockWithKeyHole=n.SvgLockWithKeyHole,exports.Login=n.SvgLogin,exports.Logout=n.SvgLogout,exports.LowFee=n.SvgLowFee,exports.Mail=n.SvgMail,exports.MemoCard=n.MemoCard,exports.MintSetupWallet=n.MintSetupWallet,exports.MintWallet=n.SvgMintWallet,exports.Minus=n.SvgMinus,exports.Mobile=n.SvgMobile,exports.More=n.SvgMore,exports.NavDashboard=n.SvgNavDashboard,exports.NavHamburger=n.SvgNavHamburger,exports.NavTransactions=n.SvgNavTransactions,exports.Notes=n.SvgNotes,exports.OneToOneXIDR=n.SvgOneToOneXIDR,exports.OneToOneXSGD=n.SvgOneToOneXSGD,exports.Outgoing=n.SvgOutgoing,exports.Passport=n.SvgPassport,exports.PaymentTwoTone=n.SvgPaymentTwoTone,exports.Payout=n.SvgPayout,exports.PenField=n.PenField,exports.Pending=n.SvgPending,exports.PersonalTwoTone=n.SvgPersonalTwoTone,exports.PiggyBank=n.SvgPiggyBank,exports.Reroll=n.SvgReroll,exports.Resend=n.SvgCallback,exports.Response=n.SvgResponse,exports.RotateLeft=n.SvgRotateLeft,exports.RotateRight=n.SvgRotateRight,exports.Scan=n.SvgScan,exports.Search=n.SvgSearch,exports.SendEmail=n.SvgSendEmail,exports.SendInvitation=n.SvgSendInvitation,exports.Settings=n.SvgSettings,exports.SettingsFilled=n.SvgSettingsFilled,exports.SignUpTwoTone=n.SvgSignUpTwoTone,exports.StateSuccessV2=n.StateSuccess,exports.StraitsXDecoVertical=n.Coins$1,exports.StraitsXEarnExchange=n.SvgExchange,exports.StraitsXEarnFee=n.SvgFee,exports.StraitsXEarnWallet=n.SvgWallet$1,exports.StraitsXEarnWithdrawal=n.SvgWithdrawal,exports.Swap=n.SvgSwap,exports.Switch=n.SvgSwitch,exports.SwitchAccount=n.SvgSwitchAccount,exports.Thumbnail=n.SvgThumbnail,exports.ThumbnailTwoTone=n.SvgThumbnailTwoTone,exports.Tick=n.SvgTick,exports.Time=n.Time,exports.Tips=n.SvgTips,exports.Transaction=n.SvgTransaction,exports.TwoFA=n.TwoFA,exports.Unlink=n.SvgUnlink,exports.UpArrow=n.SvgUpArrow,exports.Upload=n.SvgUpload,exports.UsefulLinks=n.SvgUsefulLinks,exports.UsefulLinksTwoTone=n.SvgUsefulLinksTwoTone,exports.User=n.SvgUser,exports.VerifiedShield=n.SvgVerifiedShield,exports.VerifyIdentity=n.SvgVerifyIdentity,exports.VerifyPhone=n.SvgVerifyPhone,exports.Wallet=n.SvgWallet,exports.WalletFilled=n.SvgWalletFilled,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=r.SvgAlfamart,exports.Alfamidi=r.SvgAlfamidi,exports.Anz=r.SvgAnz,exports.Arbitrum=r.Arbitrum,exports.Avalanche=r.Avalanche,exports.Base=r.Base,exports.Bca=r.SvgBca,exports.Bea=r.SvgBea,exports.Binance=r.SvgBinance,exports.Bitgo=r.SvgBitgo,exports.Bnbsmart=r.BnbSmart,exports.Bni=r.SvgBni,exports.Bnp=r.SvgBnp,exports.Boc=r.SvgBoc,exports.Bri=r.SvgBri,exports.Bsi=r.SvgBsi,exports.Bss=r.SvgBss,exports.Cimb=r.SvgCimb,exports.Citi=r.SvgCiti,exports.Coinhako=r.SvgCoinhako,exports.Coinut=r.SvgCoinut,exports.CrossLogo=r.SvgCrossLogo,exports.Crypto=r.SvgCrypto,exports.DanPlusDan=r.SvgDanPlusDan,exports.Dana=r.SvgDana,exports.Danamon=r.SvgDanamon,exports.DarkStraitsXLogo=r.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=r.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=r.SvgDbag,exports.Dbs=r.SvgDbs,exports.Dextf=r.SvgDextf,exports.EarnPiggyBank=r.SvgEarnPiggyBank,exports.EmptyStraitsX=r.EmptyStraitsX,exports.Ethereum=r.SvgEthereum,exports.FaceScan=r.FaceScan,exports.Fazz=r.SvgFazzLogo,exports.Feb=r.SvgFeb,exports.Finblox=r.SvgFinblox,exports.Fireblocks=r.SvgFireblocks,exports.GoPay=r.SvgGoPay,exports.Gpn=r.SvgGpn,exports.Hana=r.SvgHana,exports.Hedera=r.SvgHedera,exports.Hlb=r.SvgHlb,exports.Hodlnaut=r.SvgHodlnaut,exports.Hsbc=r.SvgHsbc,exports.Icbc=r.SvgIcbc,exports.Icici=r.SvgIcici,exports.IdFlag=r.SvgIdFlag,exports.IdrLogo=r.SvgIdrLogo,exports.Indomaret=r.SvgIndomaret,exports.InfoLogo=r.SvgInfoLogo,exports.InterestCompoundedDaily=r.SvgInterestCompoundedDaily,exports.Jcb=r.SvgJcb,exports.Jpmc=r.SvgSmbc,exports.Jumio=r.SvgJumio,exports.Lawson=r.SvgLawson,exports.LedgerVault=r.SvgLedgerVault,exports.LevelDown=r.LevelDown,exports.LightStraitsXLogo=r.SvgLightStraitsXLogo,exports.LinkAja=r.SvgLinkAja,exports.Liquid=r.SvgLiquid,exports.Mandiri=r.SvgMandiri,exports.Mastercard=r.SvgMastercard,exports.Mbb=r.SvgMbb,exports.Miz=r.SvgMiz,exports.Mufg=r.SvgMufg,exports.MyInfoLogo=r.SvgMyInfoLogo,exports.NoFees=r.SvgNoFees,exports.NoLockInPeriod=r.SvgNoLockInPeriod,exports.NotesBell=r.NotesBell,exports.OVO=r.SvgOvo,exports.Ocbc=r.SvgOcbc,exports.OnchainCustodian=r.SvgOnchainCustodian,exports.Permata=r.SvgPermata,exports.Polygon=r.SvgPolygon,exports.Posb=r.SvgPosb,exports.QcpCapital=r.SvgQcpCapital,exports.Qris=r.SvgQris,exports.Rbs=r.SvgRbs,exports.Rhb=r.SvgRhb,exports.Ripple=r.Ripple,exports.Scb=r.SvgScb,exports.SendLogo=r.SvgSendLogo,exports.SgdLogo=r.SvgSgdLogo,exports.ShopeePay=r.SvgShopeePay,exports.Sifl=r.SvgSifl,exports.Smbc=r.SvgSmbc$1,exports.Solana=r.Solana,exports.Sparrow=r.SvgSparrow,exports.StateError=r.StateError,exports.StateSuccess=r.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=r.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=r.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=r.SvgStraitsXLogo,exports.StraitsXMyInfo=r.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=r.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=r.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=r.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=r.SvgStraitsxSandboxLogo,exports.Target=r.Target,exports.ThreeDSecure=r.SvgThreedsecure,exports.ThreeDotsLogo=r.SvgThreeDotsLogo,exports.TickLogo=r.SvgTickLogo,exports.TokenizeXchange=r.SvgTokenizeXchange,exports.Tron=r.Tron,exports.Trwi=r.SvgTrwi,exports.Unagii=r.SvgUnagii,exports.Uniswap=r.SvgUniswap,exports.Uob=r.SvgUob,exports.UsFlag=r.SvgUsFlag,exports.UsdLogo=r.SvgUsdLogo,exports.UsdcLogo=r.SvgUsdcLogo,exports.UsdpLogo=r.SvgUsdpLogo,exports.UsdtLogo=r.SvgUsdtLogo,exports.VecDeposits=r.SvgVecDeposits,exports.VecDesktop=r.SvgVecDesktop,exports.VecEmpty=r.SvgVecEmpty,exports.VecEmptyPlain=r.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=r.SvgVecEmptyPlainGreen,exports.VecMobile=r.SvgVecMobile,exports.VecRecipients=r.SvgVecRecipients,exports.VecThumbnailDoc=r.SvgVecThumbnailDoc,exports.Visa=r.SvgVisa,exports.WalletLogo=r.SvgWalletLogo,exports.XfersLogo=r.SvgXfersLogo,exports.XfersSandboxLogo=r.SvgXfersSandboxLogo,exports.XidrLogo=r.SvgXidrLogo,exports.XsgdLogo=r.SvgXsgdLogo,exports.XusdLogo=r.SvgXusdLogo,exports.Zillet=r.SvgZillet,exports.Zilliqa=r.SvgZilliqa,exports.Zilswap=r.SvgZilswap,exports.Accordion=function(e){var n=e.header,i=e.body,o=e.defaultOpen,r=void 0!==o&&o,a=e.headerHeightDesktop,l=void 0===a?95:a,c=e.headerHeightMobile,d=void 0===c?95:c,h=e.toggleText,u=e.onCloseToggleText,p=void 0===u?h:u,f=e.additionalHeaderItem,m=e.withBoxShadow,g=void 0!==m&&m,b=t.useState(r),x=b[0],v=b[1];return s.default.createElement(Wn,{open:x,headerHeightDesktop:l,headerHeightMobile:d,withBoxShadow:g},s.default.createElement(Vn,{onClick:function(){return v(function(t){return!t})},headerHeightDesktop:l,headerHeightMobile:d},s.default.createElement(Un,null,n,s.default.createElement(Xn,null,h&&s.default.createElement(Gn,null,x?p:h),s.default.createElement($n,{open:x}))),f&&s.default.createElement(s.default.Fragment,null,f)),s.default.createElement(Hn,null),s.default.createElement("div",null,i))},exports.ActionButton=function(t){var e=t.icon,n=t.type,o=t.disabled,r=i.__rest(t,["icon","type","disabled"]),a=Ke(),l=a.brand,c=a.actionButton,d="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(l.action.disabledOpacity,";\n "),h="\n color: ".concat(c.color,";\n\n &:focus {\n color: ").concat(c.color,";\n }\n\n &:hover {\n color: ").concat(c.hover,";\n }\n\n &:active {\n color: ").concat(c.color,";\n }\n "),u="\n color: ".concat(l.action.default,";\n\n &:focus {\n color: ").concat(l.action.default,";\n }\n\n &:hover {\n color: ").concat(l.action.hover,";\n }\n\n &:active {\n color: ").concat(l.action.default,";\n }\n "),p=le(ln)($e||($e=i.__makeTemplateObject(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===o&&d,"primary"===n?u:h);return s.default.createElement(p,i.__assign({type:"secondary",size:"small"},r),s.default.createElement(function(){return s.default.cloneElement(e,{width:17,height:17})},null))},exports.ActionCard=function(t){var e=t.children,n=t.title,o=t.footer,r=Ke(),a=r.spacing,l=r.neutral,c=r.layout,d=le(Ln)(wn||(wn=i.__makeTemplateObject(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),l.white,l.border,!o&&"display: none;",_e,c.desktop),h=le.div(kn||(kn=i.__makeTemplateObject(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),c.mobile,_e,a.md),u=le.div(Sn||(Sn=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),p=le.div(En||(En=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return s.default.createElement(d,{title:s.default.createElement(h,null,s.default.createElement(u,null,n),s.default.createElement(Hn,{spacing:"lg"}),s.default.createElement(Fn,null,e))},s.default.createElement(p,null,o))},exports.Alert=function(e){var i,o=e.type,r=e.message,a=e.closable,l=e.icon,c=e.showIcon,d=e.onClose,h=e.title,u=t.useState(!0),p=u[0],f=u[1];return p?s.default.createElement(xe,{type:o||"warning",message:s.default.createElement(function(){var t="info"===o?st.DEFAULT:nt.DEFAULT;return s.default.createElement(ve,null,h&&s.default.createElement(kt.Label,{color:t,size:"md"},h),s.default.createElement(kt.Body,{color:t,size:"md"},r))},null),closable:a,icon:(i=l?s.default.cloneElement(l,{width:20,height:20}):s.default.createElement(n.SvgBell,{width:20,height:20}),s.default.createElement(ye,null,i)),showIcon:c,onClose:function(){f(!1),d&&d()},closeIcon:s.default.createElement(function(){return s.default.createElement(n.SvgCross,{width:14,height:14})},null)}):null},exports.AntdConfigProvider=function(t){var n=t.children;return s.default.createElement(e.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},n)},exports.BadgeIcon=function(t){var e=t.icon,n=t.type,o=void 0===n?"default":n,r=t.iconWidth,a=void 0===r?18:r,l=i.__rest(t,["icon","type","iconWidth"]),c=Ke(),d=c.brand,h=c.neutral,u=c.success,p=c.warning,f=c.error,m="\n color: ".concat(h.text,";\n background: ").concat(h.background,";\n "),g="\n color: ".concat(d.primary.default,";\n background: ").concat(d.primary.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x="\n color: ".concat(p.border,";\n background: ").concat(p.background,";\n "),v="\n color: ".concat(f.border,";\n background: ").concat(f.background,";\n "),y=le.span(Rn||(Rn=i.__makeTemplateObject(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(o){case"default":default:return m;case"primary":return g;case"success":return b;case"warning":return x;case"error":return v}}());return s.default.createElement(y,i.__assign({className:"badge-icon"},l),s.default.createElement(function(){return s.default.cloneElement(e,{width:a,height:a})},null))},exports.Banner=function(t){var e=t.withIcon,o=void 0!==e&&e,r=t.children,a=t.type,l=void 0===a?"primary":a,c=i.__rest(t,["withIcon","children","type"]),d=Ke(),h=d.brand,u=d.spacing,p="\n color: ".concat(He.color.base.primary,";\n background: ").concat(h.primary.background,";\n "),f="\n color: ".concat(He.color.status.positive,";\n background: ").concat(He.color.surface.subduePositive,";\n "),m="\n color: ".concat(He.color.status.warning,";\n background: ").concat(He.color.surface.subdueWarning,";\n "),g="\n color: ".concat(He.color.status.critical,";\n background: ").concat(He.color.surface.subdueCritical,";\n "),b="\n color: ".concat(He.color.base.onNeutral,"};\n background: ").concat(He.color.surface.SubdueInfo,";\n "),x=le.div(_p||(_p=i.__makeTemplateObject(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),u.sm,function(){switch(l){case"primary":default:return p;case"success":return f;case"warning":return m;case"error":return g;case"notification":return b}}()),v=xt(wp||(wp=i.__makeTemplateObject(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return s.default.createElement(x,i.__assign({},c),o&&("primary"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:h.primary.emphasis,className:bt(v)}):"success"===l?s.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.positive,className:bt(v)}):"warning"===l?s.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.warning,className:bt(v)}):"error"===l?s.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.critical,className:bt(v)}):"notification"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.info,className:bt(v)}):s.default.createElement(s.default.Fragment,null)),s.default.createElement(kt.Body,{size:"md"},r))},exports.Button=ln,exports.Card=Ln,exports.Carousel=function(t){var n=t.children,o=t.activeKey,r=t.width,a=void 0===r?250:r,l=i.__rest(t,["children","activeKey","width"]),c=Ke().brand,d=n.map(function(t,n){return s.default.createElement(e.Tabs.TabPane,{key:n,forceRender:!0},t)}),h=n.map(function(t,e){return s.default.createElement(hd,{key:e,isActive:e===o,activeColor:c.primary.default})});return s.default.createElement(ld,null,s.default.createElement(cd,i.__assign({renderTabBar:function(){return s.default.createElement("div",null)},width:a,activeKey:o.toString(),animated:!0},l),d),s.default.createElement(dd,null,h))},exports.Chart=function(e){var n=e.xValues,o=e.yValues,r=e.dataPrefix,a=e.dataPostfix,l=e.straitsXStyle,c=e.height,d=void 0===c?40:c,h=t.useRef(null),u=t.useState({datasets:[]}),p=u[0],f=u[1],m={labels:n,datasets:[{data:o}]},g=r||"",b=a||"";t.useEffect(function(){var t=h.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var o=e.createLinearGradient(0,0,0,280);o.addColorStop(0,"rgba(0, 211, 126, 0.2)"),o.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),o.addColorStop(1,"rgba(0, 211, 126, 0)");var r=i.__assign(i.__assign({},m),{datasets:m.datasets.map(function(t){return i.__assign(i.__assign({},t),{backgroundColor:l?o:n,fill:!0,borderColor:l?"#00D37E":"#2E8DEE",pointRadius:0})})});f(r)}},[l,n,o]);var x={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:l?1:0,backgroundColor:l?"#ffffff":"#000000",titleColor:l?"#1B2736":"#fff",bodyColor:l?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return l?"".concat(g).concat(t[0].parsed.y).concat(b):t[0].label},label:function(t){return l?t.label:"".concat(g).concat(t.parsed.y).concat(b)}}}},scales:{x:{ticks:{color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(g).concat(t).concat(b)}},grid:{display:!1,drawBorder:!1}}}};return s.default.createElement("div",{style:{position:"relative",height:"".concat(d,"vh"),width:"99%"}},s.default.createElement(nd,{id:"chart",ref:h,type:"line",data:p,options:x}))},exports.Checkbox=Rp,exports.Coachmark=function(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,r=t.step,a=t.tooltipProps,l=t.backProps,c=r.title,d=r.content,h=r.data;return s.default.createElement(vf,{role:a.role},s.default.createElement(yf,null,s.default.createElement(_f,null,s.default.createElement(kt.Label,{size:"md"},c),s.default.createElement(wf,{role:o.role,onClick:o.onClick},s.default.createElement(Od,{icon:"close",size:"m"}))),s.default.createElement(kt.Body,{size:"md"},d)),s.default.createElement(kf,null,s.default.createElement(Sf,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==h?void 0:h.skipZeroIndex)?s.default.createElement(s.default.Fragment,null):s.default.createElement(Ef,{key:n,isActive:n===e})})),s.default.createElement(Tf,null,l&&s.default.createElement(Of,{typographyType:"label",size:"md",role:null==l?void 0:l.role,isDisabled:0===e,onClick:l.onClick,isUnderlined:!1},"Back"),s.default.createElement(Fp,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=function(t){var e=t.title,n=t.children,o=Ke(),r=o.spacing,a=o.neutral,l=le.div(xp||(xp=i.__makeTemplateObject(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),r.sm,r.md,a.background);return s.default.createElement(l,null,s.default.createElement(zn,{style:{marginBottom:r.sm}},e),n)},exports.CopyBox=function(t){var e=t.value,i=t.allowCopy,o=void 0===i||i,r=t.valueToCopy,a=void 0===r?e:r,l=t.isBankAddress,c=void 0!==l&&l,d=t.showCopyIcon,h=void 0===d||d,u=t.icon,p=t.iconSize,f=t.labelText,m=t.labelTooltip,g=t.helperText,b=t.helperTextType,x=t.onButtonClick;return s.default.createElement(tf,null,s.default.createElement(ef,null,f&&s.default.createElement(kt.Body,{size:"md",color:He.color.base.onNeutral},f),m&&s.default.createElement(nf,null,m)),s.default.createElement(rf,null,s.default.createElement(af,null,u&&s.default.createElement(of,{iconSize:p},u),s.default.createElement(kt.Body,{size:"lg"},s.default.createElement(sf,{isBankAddress:c},e))),o&&s.default.createElement(lf,{onClick:function(){void 0!==x&&x(),Qp(a)}},h?s.default.createElement(n.SvgCopyToClipboard,null):s.default.createElement(kt.Label,{size:"md",color:He.brand.primary.default},"Copy"))),g&&s.default.createElement(kt.Body,{size:"sm",color:"error"===b?He.color.status.critical:He.color.base.onNeutralSecondary},g))},exports.DESKTOP_BREAKPOINT=_e,exports.DatePicker=function(t){var n=t.disabled,o=void 0!==n&&n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.error,f=void 0!==p&&p,m=t.helperText,g=t.showInfoIcon,b=t.onInfoClick,x=i.__rest(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),v=Ke(),y=dn[u],_=y.height,w=y.borderRadius,k=y.padding,S=f?v.color.status.critical:v.color.base.line,E="\n -webkit-font-smoothing: antialiased;\n height: ".concat(_," !important;\n width: 100% !important;\n\n ").concat(o?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(w," !important;\n border-color: ").concat(S," !important;\n padding: ").concat(k," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(v.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ").concat(v.color.component.placeholderInput," !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(v.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(v.color.base.line," !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view {\n &.ant-picker-cell-today .ant-picker-cell-inner {\n &:before {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(v.color.base.primary2," !important;\n }\n }\n "),O="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ".concat(v.color.base.primary2," !important;\n }\n "),T=s.default.createElement(Od,{icon:"date_range",size:"m",color:v.color.base.onNeutral});return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:g,onInfoClick:b}),s.default.createElement(e.DatePicker,i.__assign({className:"".concat(xt(E)),popupClassName:xt(O),disabled:o,suffixIcon:T,format:"DD-MM-YYYY"},x)),s.default.createElement(yh,{text:m,error:f}))},exports.DeprecatedModal=function(e){var o=Ke().neutral,r=t.useState(document.createElement("div"))[0];return t.useEffect(function(){return Ru.appendChild(r),function(){Ru.removeChild(r)}},[r]),l.default.createPortal(s.default.createElement(Pu,{open:e.open},e.open&&s.default.createElement(Yt,{styles:Bt($h||($h=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),s.default.createElement("div",{className:"".concat(xt(Xh||(Xh=i.__makeTemplateObject(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(e.modalClassName)},s.default.createElement(Iu,{hasIcon:Boolean(e.icon)},s.default.createElement(zu,null,s.default.createElement(Bu,null,e.icon,s.default.createElement(In,null,e.title)),!e.disabledCloseIcon&&s.default.createElement(ju,{onClick:function(){return e.onClose()}},s.default.createElement(n.SvgCross,{color:o.text,width:18}))),s.default.createElement(Hn,null)),s.default.createElement(Nu,null,e.children),s.default.createElement(Fu,null,e.footer))),r)},exports.DialogItems=function(t){var e=t.items,n=t.className;return s.default.createElement(Mu,{className:n},e.map(function(t,e){return s.default.createElement(Tu,i.__assign({key:e},t))}))},exports.Divider=Hn,exports.Dropdown=function(n){var o=n.menu,r=n.children,a=n.type,l=void 0===a?"default":a,c=n.placement,d=void 0===c?"bottomLeft":c,h=n.className,u=void 0===h?"":h,p=n.trigger,f=void 0===p?["click"]:p,m=n.disabled,g=void 0!==m&&m,b=i.__rest(n,["menu","children","type","placement","className","trigger","disabled"]),x=Ke(),v=x.brand,y=x.spacing,_="\n background-color: ".concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n\n &:focus {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(v.action.hover,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n "),w="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(v.action.disabledOpacity,";\n "),k=le(e.Dropdown.Button)(sd||(sd=i.__makeTemplateObject(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),Ee,Ae,_,!0===g&&w,y.md,Ee,Ae,_,!0===g&&w,y.sm);if("split"===l)return s.default.createElement(k,i.__assign({className:u,menu:o,placement:d,trigger:f},b),r);var S=t.useRef(null);return t.useEffect(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=S.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),s.default.createElement(e.Dropdown,i.__assign({menu:o,placement:d,trigger:f},b),s.default.createElement("div",{ref:S},r))},exports.DynamicSelect=ch,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=function(t){var i=t.title,o=void 0===i?"No results found":i,r=t.subtitle,a=t.info,l=t.svgUniqueId,c=void 0===l?"randomString":l;return s.default.createElement(Lp,null,s.default.createElement(e.Empty,{image:s.default.createElement(n.SvgEmptyIcon,{id:c,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),o&&s.default.createElement(Pp,null,o),r&&s.default.createElement(Ip,null,r),a&&s.default.createElement(Np,null,a))},exports.ErrorPage=function(t){var e=t.title,n=t.subtitle,o=t.content,r=t.fallbackContent,a=t.backgroundColor,l=Ke(),c=l.neutral,d=l.text,h=le.div($p||($p=i.__makeTemplateObject(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),we,c.bluish),u=le.div(Xp||(Xp=i.__makeTemplateObject(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),we,_e,function(t){return t.backgroundColor||c.background}),p=le.div(qp||(qp=i.__makeTemplateObject(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),we,d.default,Oe),f=le.div(Zp||(Zp=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),d.default,De);return s.default.createElement(u,{backgroundColor:a},s.default.createElement(h,null,e),s.default.createElement(p,null,n),s.default.createElement(f,null,o),r)},exports.FALLBACK_FONT="Inter",exports.Form=xh,exports.H1=Pn,exports.H2=In,exports.H3=Nn,exports.H4=jn,exports.Hidden=ip,exports.Input=Sh,exports.InputWithButton=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,r=t.value,a=t.defaultValue,l=t.onChange,c=t.disabled,d=void 0!==c&&c,h=t.disabledInput,u=void 0!==h&&h,p=t.disabledPrefix,f=void 0!==p&&p,m=t.staticPrefix,g=void 0!==m&&m,b=t.error,x=void 0!==b&&b,v=t.className,y=Ke(),_=d||u,w=d||f,k=x?y.color.status.critical:y.color.base.line,S=y.color.base.line;return s.default.createElement(lu,{className:v},i&&s.default.createElement(cu,{borderColor:S,bgColor:w?y.color.surface.disabledSurface:g?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:w?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:w?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:w},i),s.default.createElement(du,{type:"text",placeholder:o,value:r,defaultValue:a,onChange:l,disabled:_,borderColor:k,focusBorderColor:y.color.base.primary2,textColor:y.color.base.onNeutral,placeholderColor:y.color.component.placeholderInput,disabledBgColor:y.color.surface.disabledSurface,disabledTextColor:y.color.surface.disabledOnSurface,hasPrefix:!!i,isDisabled:_}),s.default.createElement(hu,{type:"button",onClick:n,disabled:d||x,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:d||x},e))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=Fp,exports.MAIN_FONT=cn,exports.MaterialSymbols=Od,exports.Modal=function(t){var e=t.onClose,i=t.variant,o=void 0===i?"default":i,r=t.size,a=void 0===r?"small":r,l=t.title,c=t.children,d=t.footer,h=t.disabledCloseIcon,u=t.className,p=t.illustration,f=t.headerImage,m=Ke().neutral,g="newFeature"===o?"medium":a,b=!h&&s.default.createElement(Ou,{onClick:function(){return e()}},s.default.createElement(n.SvgCross,{color:m.text,width:18}));return s.default.createElement(pu,{modalSize:g,className:u},function(){switch(o){case"illustration":return s.default.createElement(s.default.Fragment,null,s.default.createElement(bu,null,b),s.default.createElement(xu,null,p&&s.default.createElement(vu,null,p),l&&s.default.createElement(yu,null,l)));case"newFeature":return s.default.createElement(s.default.Fragment,null,f&&s.default.createElement(_u,null,f),l&&s.default.createElement(wu,null,s.default.createElement(ku,null,l)));default:return(l||!h)&&s.default.createElement(fu,null,s.default.createElement(mu,null,s.default.createElement(gu,null,l||""),b))}}(),s.default.createElement(Su,null,c),d&&s.default.createElement(Eu,null,d))},exports.ModalProvider=function(e){var n=e.children,i=t.useState(),o=i[0],r=i[1],a=t.useCallback(function(){r(void 0)},[r]);return s.default.createElement(Rf.Provider,{value:{resetModal:a,setModal:r}},n,s.default.createElement(Pf,{modal:o}))},exports.Note=function(t){var e=t.title,n=t.children,o=Array.isArray(n)&&n.length>1,r=le.div(vp||(vp=i.__makeTemplateObject(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),He.color.surface.subduePositive),a=le.div(yp||(yp=i.__makeTemplateObject(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),He.color.status.positive,e?"5px":"0px");return s.default.createElement(r,null,s.default.createElement(a,null,s.default.createElement(kt.Label,{size:"md"},e),o?s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},s.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return s.default.createElement("li",{key:e},t)}))):s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},exports.P1=Fn,exports.P1Bold=zn,exports.Pagination=function(t){var n=t.current,i=t.pageSize,o=t.total,r=t.onChange,a=t.showSizeChanger,l=t.onShowSizeChange,c=t.pageSizeOptions,d="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(exports.NEUTRAL_COLORS.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(cn,";\n border-radius: 5px;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(exports.MAIN_COLORS.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return s.default.createElement(e.Pagination,{className:"".concat(xt(d)),current:n,pageSize:i,total:o,onChange:r,showSizeChanger:a,onShowSizeChange:l,pageSizeOptions:c})},exports.Radio=Hu,exports.RangePicker=function(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,o=t.size,r=void 0===o?"large":o,a=i.__rest(t,["format","size"]),l=Ke(),c=dn[r],d=c.height,h=c.borderRadius,u=c.padding,p="\n -webkit-font-smoothing: antialiased;\n height: ".concat(d," !important;\n\n &.ant-picker {\n border-radius: ").concat(h," !important;\n border-color: ").concat(l.color.base.line," !important;\n padding: ").concat(u," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(l.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(l.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(l.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(l.color.component.placeholderInput," !important;\n }\n "),f="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n }\n ");return s.default.createElement(tp.RangePicker,i.__assign({className:"".concat(xt(p)),format:n,popupClassName:xt(f)},a))},exports.Section=zp,exports.Select=sh,exports.SmallP=Bn,exports.Spin=function(t){var n=t.size,o=i.__rest(t,["size"]),r=Ke().brand,a=xt(Kp||(Kp=i.__makeTemplateObject(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),r.primary.default);return s.default.createElement(e.Spin,i.__assign({className:bt(a),size:n},o))},exports.Steps=function(e){var n=e.current,o=e.steps,r=e.desktopNote,a=t.useRef(null),l=Ke(),c=l.brand,d=l.success,h=l.neutral;t.useEffect(function(){var t=a.current;null!==t&&(t.scrollLeft=120*n)},[n]);var u=le.div(rp||(rp=i.__makeTemplateObject(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),h.border,h.background),p=le.div(ap||(ap=i.__makeTemplateObject(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),h.emphasis,function(t){return t.current===t.index?"\n background: ".concat(c.primary.default,";\n "):t.current>t.index?"\n background: ".concat(d.emphasis,";\n "):""}),f=le.div(sp||(sp=i.__makeTemplateObject(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),h.emphasis),m=le.div(lp||(lp=i.__makeTemplateObject(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),g=le(Fn)(cp||(cp=i.__makeTemplateObject(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return s.default.createElement(s.default.Fragment,null,s.default.createElement(ip,{only:"sm"},s.default.createElement("div",{style:{padding:"30px",width:"266px"}},s.default.createElement(op,{progressDot:!0,current:n,direction:"vertical",style:{marginBottom:"34px"}},o.map(function(t,e){return s.default.createElement(op.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),r)),s.default.createElement(ip,{only:"lg",ref:a},s.default.createElement(u,null,s.default.createElement(m,null,o.map(function(t,e){return s.default.createElement("span",{key:"mobile-".concat(t,"-").concat(e)},s.default.createElement(g,{inactive:n<e,current:n===e},s.default.createElement(p,{index:e,current:n}),t),e!==o.length-1&&s.default.createElement(f,null))})))))},exports.SummaryCard=function(t){var e=t.label,n=t.amount,o=t.type,r=void 0===o?"default":o,a=t.height,l=void 0===a?91:a,c=t.width,d=void 0===c?230:c,h=t.isInverted,u=void 0!==h&&h,p=t.icon,f=le(Ln)(Jp||(Jp=i.__makeTemplateObject(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof d?"".concat(d,"px"):d,l,p&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",u&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return s.default.createElement(f,{type:r},p&&p,s.default.createElement("div",null,s.default.createElement(Fn,{style:{marginBottom:u?"0":"5px"}},e),s.default.createElement(Pn,{style:{marginBottom:u?"5px":"0"}},n)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=function(t){var n=t.className,o=t.emptyText,r=i.__rest(t,["className","emptyText"]);return s.default.createElement(e.Table,i.__assign({className:bt(hp,n),locale:{emptyText:o}},r))},exports.Tabs=up,exports.Tag=Ld,exports.ThemeProvider=function(t){var e=t.theme,n=void 0===e?He:e,i=t.children;return s.default.createElement(Ze.Provider,{value:n},s.default.createElement(qe,null),i)},exports.Timeline=cf,exports.Timer=function(e){var n=e.initialSeconds,i=e.blinkActivationSeconds,o=e.shouldRepeat,r=e.onTimesUp,a=e.children,s=t.useState(!1),l=s[0],c=s[1],d=t.useState(n),h=d[0],u=d[1],p=t.useState(void 0),f=p[0],m=p[1],g=t.useState(!0),b=g[0],x=g[1],v=Date.now()+1e3*h;return t.useEffect(function(){b&&(m(setInterval(function(){var t=(new Date).getTime(),e=v-t,n=Math.ceil(e/1e3);n>=0&&u(n),i&&n<=i&&c(!0)},1e3)),x(!1))},[b]),t.useEffect(function(){h<=0&&void 0!==f&&(clearInterval(f),m(void 0),c(!1),r&&r(),o&&(u(n),x(!0)))},[f,h]),a(l,h)},exports.Tooltip=ud,exports.Typography=kt,exports.getCoachmarkJoyrideConfig=function(t){var e=t||{},n=e.arrowColor,i=void 0===n?He.color.surface.secondaryNeutral:n,o=e.arrowLength,r=void 0===o?8:o,a=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:r,spread:void 0===a?16:a,color:i}}}}},exports.straitsXTheme=He,exports.useModal=function(){var t=s.default.useContext(Rf);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},exports.useTheme=Ke,exports.xfersTheme=Ye;
|
|
22
22
|
//# sourceMappingURL=index.js.map
|