@xfers/design-system 7.0.0 → 7.1.0

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 CHANGED
@@ -1,26 +1,26 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("antd"),n=require("./DocumentWithMagnifier-9dffd464.js"),i=require("react-dom"),o=require("./StraitsXPersonalAccountLightLogo-63cb9f22.js");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(t),s=r(i);function l(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;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,v,w=0,S=0,k=0,E=0,O=0,$=0,L=g=p=0,N=0,I=0,F=0,z=0,B=l.length,Y=B-1,H="",W="",V="",U="";N<B;){if(f=l.charCodeAt(N),N===Y&&0!==S+E+k+w&&(0!==S&&(f=47===S?10:47),E=k=w=0,B++,Y++),0===S+E+k+w){if(N===Y&&(0<I&&(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,z=++N;N<B;){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(L=N+1;L<Y;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&N+2!==L){N=L+1;break t}break;case 10:if(47===f){N=L+1;break t}}N=L}}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(z,N),0===p&&(p=(H=H.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<I&&(H=H.replace(h,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=i;break;default:I=A}if(z=(g=e(i,I,g,f,u+1)).length,0<R&&(v=s(3,g,I=n(A,H,F),i,D,C,z,f,u,c),H=I.join(""),void 0!==v&&0===(z=(g=v.trim()).length)&&(f=0,g="")),0<z)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===T||2===T&&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,F),g,c,u+1);V+=g,g=F=I=L=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(z=(H=(0<I?H.replace(h,""):H).trim()).length))switch(0===L&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(z=(H=H.replace(" ",":")).length),0<R&&void 0!==(v=s(1,H,i,t,D,C,W.length,c,u,c))&&0===(z=(H=v.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(z-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}F=I=L=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<H.length&&(I=1,H+="\0"),0<R*P&&s(0,H,i,t,D,C,W.length,c,u,c),C=1,D++;break;case 59:case 125:if(0===S+E+k+w){C++;break}default:switch(C++,m=l.charAt(N),f){case 9:case 32:if(0===E+w+S)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+S+w&&(I=F=1,m="\f"+m);break;case 108:if(0===E+S+w+M&&0<L)switch(N-L){case 2:112===O&&58===l.charCodeAt(N-3)&&(M=O);case 8:111===$&&(M=$)}break;case 58:0===E+S+w&&(L=N);break;case 44:0===S+k+E+w&&(I=1,m+="\r");break;case 34:case 39:0===S&&(E=E===f?0:0===E?f:E);break;case 91:0===E+S+k&&w++;break;case 93:0===E+S+k&&w--;break;case 41:0===E+S+w&&k--;break;case 40:if(0===E+S+w){if(0===p)if(2*O+3*$==533);else p=1;k++}break;case 64:0===S+k+E+w+L+g&&(g=1);break;case 42:case 47:if(!(0<E+w+k))switch(S){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:S=47;break;case 220:z=N,S=42}break;case 42:47===f&&42===O&&z+2!==N&&(33===l.charCodeAt(z+2)&&(W+=l.substring(z,N+1)),m="",S=0)}}0===S&&(H+=m)}$=O,O=f,N++}if(0<(z=W.length)){if(I=i,0<R&&(void 0!==(v=s(2,W,I,t,D,C,z,c,u,c))&&0===(W=v).length))return U+W+V;if(W=I.join(",")+"{"+W+"}",0!==T*M){switch(2!==T||r(W,2)||(M=0),M){case 111:W=W.replace(y,":-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}M=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===T||2===T&&r(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!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(v,"tb");break;case 232:l=a.replace(v,"tb-rl");break;case 220:l=a.replace(v,"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(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+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),L(2!==e?i:i.replace(k,"$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<R;++u)switch(h=$[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)&&(L=null,t?"function"!=typeof t?T=1:(T=2,L=t):T=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<R){var o=s(-1,n,i,i,D,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=e(A,i,n,0,0);return 0<R&&(void 0!==(o=s(-2,r,i,i,D,C,r.length,0,0,0))&&(r=o)),M=0,C=D=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,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,D=1,M=0,T=1,A=[],$=[],R=0,L=null,P=0;return c.use=function t(e){switch(e){case void 0:case null:R=$.length=0;break;default:if("function"==typeof e)$[R++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else P=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,y={},v=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=y;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=v(t.stylisPlugins||y)(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};var w={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};function S(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var k="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",E="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",O=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,D=function(t){return 45===t.charCodeAt(1)},M=function(t){return null!=t&&"boolean"!=typeof t},T=S(function(t){return D(t)?t:t.replace(O,"-$&").toLowerCase()}),A=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(C,function(t,e,n){return Y={name:e,styles:n,next:Y},e})}return 1===w[t]||D(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var $=/(attr|calc|counters?|url)\(/,R=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],L=A,P=/^-ms-/,N=/-(.)/g,I={};A=function(t,e){"content"===t&&("string"!=typeof e||-1===R.indexOf(e)&&!$.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=L(t,e);return""===n||D(t)||-1===t.indexOf("-")||void 0!==I[t]||(I[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(P,"ms-").replace(N,function(t,e){return e.toUpperCase()})+"?")),n}}var F=!0;function z(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 Y={name:n.name,styles:n.styles,next:Y},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Y={name:o.name,styles:o.styles,next:Y},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+=z(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]+"}":M(a)&&(i+=T(r)+":"+A(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=z(t,e,a,!1);switch(r){case"animation":case"animationName":i+=T(r)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===r&&console.error(E),i+=r+"{"+s+"}"}}else for(var l=0;l<a.length;l++)M(a[l])&&(i+=T(r)+":"+A(r,a[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=Y,s=n(t);return Y=a,z(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(C,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&&F&&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"),F=!1),void 0===d||i?n:d}var B,Y,H=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(B=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var W=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="";Y=void 0;var r,a=t[0];null==a||void 0===a.raw?(i=!1,o+=z(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(k),o+=a[0]);for(var s=1;s<t.length;s++)o+=z(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(k),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(B,function(t){return r=t,""})),H.lastIndex=0;for(var l,c="";null!==(l=H.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:Y,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:Y}},V="undefined"!=typeof document;function U(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var j=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===V&&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);V||void 0===a||(o+=a),r=r.next}while(void 0!==r);if(!V&&0!==o.length)return o}};function G(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function X(t,e,n){var i=[],o=U(t,i,n);return i.length<2?n:o+e(i)}var q,Z,K,J,Q,tt,et,nt,it,ot,rt,at,st,lt=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},ct=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=W(n,e.registered,void 0);return j(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 X(e.registered,n,lt(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=W(n,e.registered);G(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=W(n,e.registered),r="animation-"+o.name;return G(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:U.bind(null,e.registered),merge:X.bind(null,e.registered,n)}}(),dt=ct.cx,ht=ct.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(q||(q={})),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"}(Z||(Z={})),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"}(K||(K={})),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"}(J||(J={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(Q||(Q={})),function(t){t.DEFAULT="#FFFFFF"}(tt||(tt={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(et||(et={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(nt||(nt={})),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"}(it||(it={})),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)"}(ot||(ot={})),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"}(rt||(rt={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(at||(at={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(st||(st={}));const ut={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"}}},pt={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;"},ft=(t,e)=>{var n,i,o,r;return ht`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("antd"),n=require("./DocumentWithMagnifier-9dffd464.js"),i=require("react-dom"),o=require("./StraitsXPersonalAccountLightLogo-63cb9f22.js");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function a(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}),e.default=t,Object.freeze(e)}var s=r(t),l=a(t),c=r(i);function d(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var h=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 u(t){function e(t,i,l,c,u){for(var p,f,g,m,v,w=0,S=0,k=0,E=0,O=0,$=0,L=g=p=0,N=0,I=0,F=0,z=0,B=l.length,Y=B-1,H="",W="",V="",U="";N<B;){if(f=l.charCodeAt(N),N===Y&&0!==S+E+k+w&&(0!==S&&(f=47===S?10:47),E=k=w=0,B++,Y++),0===S+E+k+w){if(N===Y&&(0<I&&(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,z=++N;N<B;){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(L=N+1;L<Y;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&N+2!==L){N=L+1;break t}break;case 10:if(47===f){N=L+1;break t}}N=L}}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(z,N),0===p&&(p=(H=H.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<I&&(H=H.replace(h,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=i;break;default:I=A}if(z=(g=e(i,I,g,f,u+1)).length,0<R&&(v=s(3,g,I=n(A,H,F),i,D,C,z,f,u,c),H=I.join(""),void 0!==v&&0===(z=(g=v.trim()).length)&&(f=0,g="")),0<z)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===T||2===T&&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,F),g,c,u+1);V+=g,g=F=I=L=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(z=(H=(0<I?H.replace(h,""):H).trim()).length))switch(0===L&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(z=(H=H.replace(" ",":")).length),0<R&&void 0!==(v=s(1,H,i,t,D,C,W.length,c,u,c))&&0===(z=(H=v.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(z-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}F=I=L=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<H.length&&(I=1,H+="\0"),0<R*P&&s(0,H,i,t,D,C,W.length,c,u,c),C=1,D++;break;case 59:case 125:if(0===S+E+k+w){C++;break}default:switch(C++,m=l.charAt(N),f){case 9:case 32:if(0===E+w+S)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+S+w&&(I=F=1,m="\f"+m);break;case 108:if(0===E+S+w+M&&0<L)switch(N-L){case 2:112===O&&58===l.charCodeAt(N-3)&&(M=O);case 8:111===$&&(M=$)}break;case 58:0===E+S+w&&(L=N);break;case 44:0===S+k+E+w&&(I=1,m+="\r");break;case 34:case 39:0===S&&(E=E===f?0:0===E?f:E);break;case 91:0===E+S+k&&w++;break;case 93:0===E+S+k&&w--;break;case 41:0===E+S+w&&k--;break;case 40:if(0===E+S+w){if(0===p)if(2*O+3*$==533);else p=1;k++}break;case 64:0===S+k+E+w+L+g&&(g=1);break;case 42:case 47:if(!(0<E+w+k))switch(S){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:S=47;break;case 220:z=N,S=42}break;case 42:47===f&&42===O&&z+2!==N&&(33===l.charCodeAt(z+2)&&(W+=l.substring(z,N+1)),m="",S=0)}}0===S&&(H+=m)}$=O,O=f,N++}if(0<(z=W.length)){if(I=i,0<R&&(void 0!==(v=s(2,W,I,t,D,C,z,c,u,c))&&0===(W=v).length))return U+W+V;if(W=I.join(",")+"{"+W+"}",0!==T*M){switch(2!==T||r(W,2)||(M=0),M){case 111:W=W.replace(y,":-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}M=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===T||2===T&&r(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!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(v,"tb");break;case 232:l=a.replace(v,"tb-rl");break;case 220:l=a.replace(v,"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(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+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),L(2!==e?i:i.replace(k,"$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<R;++u)switch(h=$[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)&&(L=null,t?"function"!=typeof t?T=1:(T=2,L=t):T=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<R){var o=s(-1,n,i,i,D,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=e(A,i,n,0,0);return 0<R&&(void 0!==(o=s(-2,r,i,i,D,C,r.length,0,0,0))&&(r=o)),M=0,C=D=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,y=/:(read-only)/g,v=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,D=1,M=0,T=1,A=[],$=[],R=0,L=null,P=0;return c.use=function t(e){switch(e){case void 0:case null:R=$.length=0;break;default:if("function"==typeof e)$[R++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else P=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var p=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}},f="/*|*/",g=f+"}";function m(t){t&&b.current.insert(t+"}")}var b={current:null},x=function(t,e,n,i,o,r,a,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return b.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+f;break;case 3:switch(s){case 102:case 112:return b.current.insert(n[0]+e),"";default:return e+(0===c?f:"")}case-2:e.split(g).forEach(m)}},y=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},v="undefined"!=typeof document,_={},w=v?void 0:p(function(){var t=p(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),S=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new u(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(v){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(v)i.use(t.stylisPlugins)(x),r=function(t,e,n,o){var r=e.name;if(b.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var a=e.map;b.current={insert:function(t){n.insert(t+a)}}}i(t,e.styles),o&&(p.inserted[r]=!0)};else{i.use(y);var l=_;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=w(t.stylisPlugins||_)(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 c=/\/\*/g,d=/\*\//g;i.use(function(t,e){if(-1===t){for(;c.test(e);){if(d.lastIndex=c.lastIndex,!d.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=d.lastIndex}c.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 h({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:a,registered:{},insert:r};return p};var k={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};function E(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var O="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",C="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",D=/[A-Z]|^ms/g,M=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T=function(t){return 45===t.charCodeAt(1)},A=function(t){return null!=t&&"boolean"!=typeof t},$=E(function(t){return T(t)?t:t.replace(D,"-$&").toLowerCase()}),R=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(M,function(t,e,n){return W={name:e,styles:n,next:W},e})}return 1===k[t]||T(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var L=/(attr|calc|counters?|url)\(/,P=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],N=R,I=/^-ms-/,F=/-(.)/g,z={};R=function(t,e){"content"===t&&("string"!=typeof e||-1===P.indexOf(e)&&!L.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=N(t,e);return""===n||T(t)||-1===t.indexOf("-")||void 0!==z[t]||(z[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(I,"ms-").replace(F,function(t,e){return e.toUpperCase()})+"?")),n}}var B=!0;function Y(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 W={name:n.name,styles:n.styles,next:W},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)W={name:o.name,styles:o.styles,next:W},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+=Y(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]+"}":A(a)&&(i+=$(r)+":"+R(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=Y(t,e,a,!1);switch(r){case"animation":case"animationName":i+=$(r)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===r&&console.error(C),i+=r+"{"+s+"}"}}else for(var l=0;l<a.length;l++)A(a[l])&&(i+=$(r)+":"+R(r,a[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=W,s=n(t);return W=a,Y(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(M,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&&B&&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"),B=!1),void 0===d||i?n:d}var H,W,V=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(H=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var U=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="";W=void 0;var r,a=t[0];null==a||void 0===a.raw?(i=!1,o+=Y(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(O),o+=a[0]);for(var s=1;s<t.length;s++)o+=Y(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(O),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(H,function(t){return r=t,""})),V.lastIndex=0;for(var l,c="";null!==(l=V.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:W,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:W}},j="undefined"!=typeof document;function G(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var X=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===j&&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);j||void 0===a||(o+=a),r=r.next}while(void 0!==r);if(!j&&0!==o.length)return o}};function q(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function Z(t,e,n){var i=[],o=G(t,i,n);return i.length<2?n:o+e(i)}var K,J,Q,tt,et,nt,it,ot,rt,at,st,lt,ct,dt=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},ht=function(t){var e=S(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=U(n,e.registered,void 0);return X(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 Z(e.registered,n,dt(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=U(n,e.registered);q(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=U(n,e.registered),r="animation-"+o.name;return q(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:G.bind(null,e.registered),merge:Z.bind(null,e.registered,n)}}(),ut=ht.cx,pt=ht.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(K||(K={})),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"}(J||(J={})),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"}(Q||(Q={})),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"}(tt||(tt={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(et||(et={})),function(t){t.DEFAULT="#FFFFFF"}(nt||(nt={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(it||(it={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(ot||(ot={})),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"}(rt||(rt={})),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)"}(at||(at={})),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"}(st||(st={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(lt||(lt={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(ct||(ct={}));const ft={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"}}},gt={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;"},mt=(t,e)=>{var n,i,o,r;return pt`
2
2
  display: ${null!==(n=e.display)&&void 0!==n?n:"block"};
3
3
  text-align: ${null!==(i=e.align)&&void 0!==i?i:"inherit"};
4
4
 
5
- font-size: ${ut[t].FONT_SIZE[e.size]};
6
- line-height: ${ut[t].LINE_HEIGHT[e.size]};
7
- font-weight: ${ut[t].FONT_WEIGHT[e.size]};
8
- letter-spacing: ${ut[t].LETTER_SPACING[e.size]};
9
- color: ${null!==(o=e.color)&&void 0!==o?o:ot.ON_NEUTRAL};
5
+ font-size: ${ft[t].FONT_SIZE[e.size]};
6
+ line-height: ${ft[t].LINE_HEIGHT[e.size]};
7
+ font-weight: ${ft[t].FONT_WEIGHT[e.size]};
8
+ letter-spacing: ${ft[t].LETTER_SPACING[e.size]};
9
+ color: ${null!==(o=e.color)&&void 0!==o?o:at.ON_NEUTRAL};
10
10
  font-family: ${"label"===t?"Red Hat Display":"Hanken Grotesk"};
11
11
 
12
12
  margin: 0;
13
13
 
14
- ${pt[null!==(r=e.overflow)&&void 0!==r?r:"normal"]};
15
- `};const gt={Display:function(t){const{as:e="h1",children:n,className:i}=t,o=l(t,["as","children","className"]);return a.default.createElement(e,Object.assign({className:dt(ft("display",t),i)},o),n)},Headline:function(t){const{as:e="h2",children:n,className:i}=t,o=l(t,["as","children","className"]);return a.default.createElement(e,Object.assign({className:dt(ft("headline",t),i)},o),n)},Title:function(t){const{as:e="h2",children:n,className:i}=t,o=l(t,["as","children","className"]);return a.default.createElement(e,Object.assign({className:dt(ft("title",t),i)},o),n)},Label:function(t){const{as:e="h5",children:n,className:i}=t,o=l(t,["as","children","className"]);return a.default.createElement(e,Object.assign({className:dt(ft("label",t),i)},o),n)},Body:function(t){const{as:e="span",children:n,className:i}=t,o=l(t,["as","children","className"]);return a.default.createElement(e,Object.assign({className:dt(ft("body",t),i)},o),n)}};function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bt,xt,yt=/^((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)-.*))$/,vt=S(function(t){return yt.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function _t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wt=_t(xt?bt:(xt=1,bt=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}));function St(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return W(e)}var kt="undefined"!=typeof document,Et=t.createContext("undefined"!=typeof HTMLElement?_():null),Ot=t.createContext({});Et.Provider;var Ct=function(e){return t.forwardRef(function(n,i){return t.createElement(Et.Consumer,null,function(t){return e(n,t,i)})})};if(!kt){var Dt=function(e){function n(t,n,i){var o;return(o=e.call(this,t,n,i)||this).state={value:_()},o}return wt(n,e),n.prototype.render=function(){return t.createElement(Et.Provider,this.state,this.props.children(this.state.value))},n}(t.Component);Ct=function(e){return function(n){return t.createElement(Et.Consumer,null,function(i){return null===i?t.createElement(Dt,null,function(t){return e(n,t)}):e(n,i)})}}}var Mt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",At=Object.prototype.hasOwnProperty,$t=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[Mt],s=[r],l="";"string"==typeof n.className?l=U(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=W(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var d=n[Tt];d&&(c=W([c,"label:"+d+";"]))}var h=j(e,c,"string"==typeof a);l+=e.key+"-"+c.name;var u={};for(var p in n)!At.call(n,p)||"css"===p||p===Mt||"production"!==process.env.NODE_ENV&&p===Tt||(u[p]=n[p]);u.ref=o,u.className=l;var f=t.createElement(a,u);if(!kt&&void 0!==h){for(var g,m=c.name,b=c.next;void 0!==b;)m+=" "+b.name,b=b.next;return t.createElement(t.Fragment,null,t.createElement("style",((g={})["data-emotion-"+e.key]=m,g.dangerouslySetInnerHTML={__html:h},g.nonce=e.sheet.nonce,g)),f)}return f},Rt=Ct(function(e,n,i){return"function"==typeof e.css?t.createElement(Ot.Consumer,null,function(t){return $t(n,e,t,i)}):$t(n,e,null,i)});"production"!==process.env.NODE_ENV&&(Rt.displayName="EmotionCssPropInternal");var Lt=!1,Pt=Ct(function(e,n){"production"===process.env.NODE_ENV||Lt||!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?"),Lt=!0);var i=e.styles;if("function"==typeof i)return t.createElement(Ot.Consumer,null,function(e){var o=W([i(e)]);return t.createElement(Nt,{serialized:o,cache:n})});var o=W([i]);return t.createElement(Nt,{serialized:o,cache:n})}),Nt=function(e){function n(t,n,i){return e.call(this,t,n,i)||this}wt(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&&j(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(!kt){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),It=function(){var t=St.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_"}}},Ft=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};Ct(function(e,n){return t.createElement(Ot.Consumer,null,function(i){var o,r="",a="",s=!1,l=function(){if(s&&"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 o=W(e,n.registered);if(kt)j(n,o,!1);else{var l=j(n,o,!1);void 0!==l&&(r+=l)}return kt||(a+=" "+o.name),n.key+"-"+o.name},c={css:l,cx:function(){if(s&&"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=U(t,i,n);return i.length<2?n:o+e(i)}(n.registered,l,Ft(e))},theme:i},d=e.children(c);return s=!0,kt||0===r.length?d:t.createElement(t.Fragment,null,t.createElement("style",((o={})["data-emotion-"+n.key]=a.substring(1),o.dangerouslySetInnerHTML={__html:r},o.nonce=n.sheet.nonce,o)),d)})});var zt=vt,Bt=function(t){return"theme"!==t&&"innerRef"!==t},Yt=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?zt:Bt};function Ht(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 Wt,Vt,Ut,jt,Gt,Xt,qt,Zt,Kt,Jt="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",Qt="undefined"!=typeof document,te=function(){return null},ee=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||Yt(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(Jt),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(Jt),u.push(h[f],h[0][f])}var g=Ct(function(e,n,i){return t.createElement(Ot.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=U(n.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=W(u.concat(f),n.registered,g),x=j(n,b,"string"==typeof h);p+=n.key+"-"+b.name,void 0!==a&&(p+=" "+a);var y=d&&void 0===r?Yt(h):c,v={};for(var _ in e)d&&"as"===_||y(_)&&(v[_]=e[_]);v.className=p,v.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,v),S=t.createElement(te,null);if(!Qt&&void 0!==x){for(var k,E=b.name,O=b.next;void 0!==O;)E+=" "+O.name,O=O.next;S=t.createElement("style",((k={})["data-emotion-"+n.key]=E,k.dangerouslySetInnerHTML={__html:x},k.nonce=n.sheet.nonce,k))}return t.createElement(t.Fragment,null,S,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?Ht(Object(n),!0).forEach(function(e){mt(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(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){ee[t]=ee(t)}),exports.BLUE_COLORS=void 0,(Wt=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Wt.B300="#1863B0",Wt.B200="#C3DCF6",Wt.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(Vt=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",Vt.G300="#43CC32",Vt.G200="#C8FAC0",Vt.G100="#F0F9F4",exports.RED_COLORS=void 0,(Ut=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",Ut.R300="#E22726",Ut.R200="#FFC9C9",Ut.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(jt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",jt.Y300="#FC9A07",jt.Y200="#FFEB7E",jt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(Gt=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",Gt.G500="#505454",Gt.G400="#959595",Gt.G300="#D8D8D8",Gt.G200="#E8E8E8",Gt.G100="#F0F0F0",Gt.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(Xt=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",Xt.PRIMARY_BLACK="#1B2736",Xt.PRIMARY_WHITE="#FFFFFF",Xt.SECONDARY_GREEN="#43CC32",Xt.SECONDARY_RED="#E22726",Xt.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(qt=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",qt.INFO="#1863B0",qt.WARNING="#FC9A07",qt.ERROR="#E22726",qt.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(Zt=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",Zt.INFO="#0C45E1",Zt.WARNING="#FC9A07",Zt.ERROR="#DF1312",Zt.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(Kt=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",Kt.INFO="#EEF6FF",Kt.WARNING="#FFFAEA",Kt.ERROR="#FFF1F1",Kt.NEUTRAL="#F0F0F0";const ne=(t,e,n)=>`\n border: 1px solid ${t} !important;\n background-color: ${n} !important;\n \n .ant-alert-icon {\n color: ${e} !important;\n }\n \n .ant-alert-close-icon {\n color: ${e} !important;\n }\n`,ie=ne(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),oe=ne(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),re=ne(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),ae=`\n border: none !important;\n background-color: ${K.CONTRAST} !important;\n \n .ant-alert-icon {\n color: ${tt.DEFAULT} !important;\n }\n \n .ant-alert-close-icon {\n color: ${tt.DEFAULT} !important;\n }\n`,se=ee(e.Alert)`
14
+ ${gt[null!==(r=e.overflow)&&void 0!==r?r:"normal"]};
15
+ `};const bt={Display:function(t){const{as:e="h1",children:n,className:i}=t,o=d(t,["as","children","className"]);return s.default.createElement(e,Object.assign({className:ut(mt("display",t),i)},o),n)},Headline:function(t){const{as:e="h2",children:n,className:i}=t,o=d(t,["as","children","className"]);return s.default.createElement(e,Object.assign({className:ut(mt("headline",t),i)},o),n)},Title:function(t){const{as:e="h2",children:n,className:i}=t,o=d(t,["as","children","className"]);return s.default.createElement(e,Object.assign({className:ut(mt("title",t),i)},o),n)},Label:function(t){const{as:e="h5",children:n,className:i}=t,o=d(t,["as","children","className"]);return s.default.createElement(e,Object.assign({className:ut(mt("label",t),i)},o),n)},Body:function(t){const{as:e="span",children:n,className:i}=t,o=d(t,["as","children","className"]);return s.default.createElement(e,Object.assign({className:ut(mt("body",t),i)},o),n)}};function xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yt,vt,_t=/^((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)-.*))$/,wt=E(function(t){return _t.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kt=St(vt?yt:(vt=1,yt=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}));function Et(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return U(e)}var Ot="undefined"!=typeof document,Ct=t.createContext("undefined"!=typeof HTMLElement?S():null),Dt=t.createContext({});Ct.Provider;var Mt=function(e){return t.forwardRef(function(n,i){return t.createElement(Ct.Consumer,null,function(t){return e(n,t,i)})})};if(!Ot){var Tt=function(e){function n(t,n,i){var o;return(o=e.call(this,t,n,i)||this).state={value:S()},o}return kt(n,e),n.prototype.render=function(){return t.createElement(Ct.Provider,this.state,this.props.children(this.state.value))},n}(t.Component);Mt=function(e){return function(n){return t.createElement(Ct.Consumer,null,function(i){return null===i?t.createElement(Tt,null,function(t){return e(n,t)}):e(n,i)})}}}var At="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$t="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Rt=Object.prototype.hasOwnProperty,Lt=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[At],s=[r],l="";"string"==typeof n.className?l=G(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=U(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var d=n[$t];d&&(c=U([c,"label:"+d+";"]))}var h=X(e,c,"string"==typeof a);l+=e.key+"-"+c.name;var u={};for(var p in n)!Rt.call(n,p)||"css"===p||p===At||"production"!==process.env.NODE_ENV&&p===$t||(u[p]=n[p]);u.ref=o,u.className=l;var f=t.createElement(a,u);if(!Ot&&void 0!==h){for(var g,m=c.name,b=c.next;void 0!==b;)m+=" "+b.name,b=b.next;return t.createElement(t.Fragment,null,t.createElement("style",((g={})["data-emotion-"+e.key]=m,g.dangerouslySetInnerHTML={__html:h},g.nonce=e.sheet.nonce,g)),f)}return f},Pt=Mt(function(e,n,i){return"function"==typeof e.css?t.createElement(Dt.Consumer,null,function(t){return Lt(n,e,t,i)}):Lt(n,e,null,i)});"production"!==process.env.NODE_ENV&&(Pt.displayName="EmotionCssPropInternal");var Nt=!1,It=Mt(function(e,n){"production"===process.env.NODE_ENV||Nt||!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?"),Nt=!0);var i=e.styles;if("function"==typeof i)return t.createElement(Dt.Consumer,null,function(e){var o=U([i(e)]);return t.createElement(Ft,{serialized:o,cache:n})});var o=U([i]);return t.createElement(Ft,{serialized:o,cache:n})}),Ft=function(e){function n(t,n,i){return e.call(this,t,n,i)||this}kt(n,e);var i=n.prototype;return i.componentDidMount=function(){this.sheet=new h({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&&X(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(!Ot){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),zt=function(){var t=Et.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_"}}},Bt=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};Mt(function(e,n){return t.createElement(Dt.Consumer,null,function(i){var o,r="",a="",s=!1,l=function(){if(s&&"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 o=U(e,n.registered);if(Ot)X(n,o,!1);else{var l=X(n,o,!1);void 0!==l&&(r+=l)}return Ot||(a+=" "+o.name),n.key+"-"+o.name},c={css:l,cx:function(){if(s&&"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=G(t,i,n);return i.length<2?n:o+e(i)}(n.registered,l,Bt(e))},theme:i},d=e.children(c);return s=!0,Ot||0===r.length?d:t.createElement(t.Fragment,null,t.createElement("style",((o={})["data-emotion-"+n.key]=a.substring(1),o.dangerouslySetInnerHTML={__html:r},o.nonce=n.sheet.nonce,o)),d)})});var Yt=wt,Ht=function(t){return"theme"!==t&&"innerRef"!==t},Wt=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Yt:Ht};function Vt(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 Ut,jt,Gt,Xt,qt,Zt,Kt,Jt,Qt,te="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",ee="undefined"!=typeof document,ne=function(){return null},ie=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||Wt(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(te),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(te),u.push(h[f],h[0][f])}var g=Mt(function(e,n,i){return t.createElement(Dt.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=G(n.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=U(u.concat(f),n.registered,g),x=X(n,b,"string"==typeof h);p+=n.key+"-"+b.name,void 0!==a&&(p+=" "+a);var y=d&&void 0===r?Wt(h):c,v={};for(var _ in e)d&&"as"===_||y(_)&&(v[_]=e[_]);v.className=p,v.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,v),S=t.createElement(ne,null);if(!ee&&void 0!==x){for(var k,E=b.name,O=b.next;void 0!==O;)E+=" "+O.name,O=O.next;S=t.createElement("style",((k={})["data-emotion-"+n.key]=E,k.dangerouslySetInnerHTML={__html:x},k.nonce=n.sheet.nonce,k))}return t.createElement(t.Fragment,null,S,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?Vt(Object(n),!0).forEach(function(e){xt(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vt(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){ie[t]=ie(t)}),exports.BLUE_COLORS=void 0,(Ut=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Ut.B300="#1863B0",Ut.B200="#C3DCF6",Ut.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(jt=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",jt.G300="#43CC32",jt.G200="#C8FAC0",jt.G100="#F0F9F4",exports.RED_COLORS=void 0,(Gt=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",Gt.R300="#E22726",Gt.R200="#FFC9C9",Gt.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(Xt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",Xt.Y300="#FC9A07",Xt.Y200="#FFEB7E",Xt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(qt=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",qt.G500="#505454",qt.G400="#959595",qt.G300="#D8D8D8",qt.G200="#E8E8E8",qt.G100="#F0F0F0",qt.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(Zt=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",Zt.PRIMARY_BLACK="#1B2736",Zt.PRIMARY_WHITE="#FFFFFF",Zt.SECONDARY_GREEN="#43CC32",Zt.SECONDARY_RED="#E22726",Zt.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(Kt=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",Kt.INFO="#1863B0",Kt.WARNING="#FC9A07",Kt.ERROR="#E22726",Kt.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(Jt=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",Jt.INFO="#0C45E1",Jt.WARNING="#FC9A07",Jt.ERROR="#DF1312",Jt.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(Qt=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",Qt.INFO="#EEF6FF",Qt.WARNING="#FFFAEA",Qt.ERROR="#FFF1F1",Qt.NEUTRAL="#F0F0F0";const oe=(t,e,n)=>`\n border: 1px solid ${t} !important;\n background-color: ${n} !important;\n \n .ant-alert-icon {\n color: ${e} !important;\n }\n \n .ant-alert-close-icon {\n color: ${e} !important;\n }\n`,re=oe(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),ae=oe(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),se=oe(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),le=`\n border: none !important;\n background-color: ${Q.CONTRAST} !important;\n \n .ant-alert-icon {\n color: ${nt.DEFAULT} !important;\n }\n \n .ant-alert-close-icon {\n color: ${nt.DEFAULT} !important;\n }\n`,ce=ie(e.Alert)`
16
16
  &.ant-alert {
17
17
  ${"\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"}
18
- ${({type:t})=>"success"===t&&ie}
19
- ${({type:t})=>"warning"===t&&oe}
20
- ${({type:t})=>"error"===t&&re}
21
- ${({type:t})=>"info"===t&&ae}
18
+ ${({type:t})=>"success"===t&&re}
19
+ ${({type:t})=>"warning"===t&&ae}
20
+ ${({type:t})=>"error"===t&&se}
21
+ ${({type:t})=>"info"===t&&le}
22
22
  }
23
- `,le=ee.div`
23
+ `,de=ie.div`
24
24
  display: flex;
25
25
  flex-direction: column;
26
26
 
@@ -38,10 +38,10 @@
38
38
  h6 {
39
39
  font-family: 'Red Hat Display', 'Inter', sans-serif !important;
40
40
  }
41
- `,ce=ee.div`
41
+ `,he=ie.div`
42
42
  width: 24px;
43
43
  height: 24px;
44
- `,de="@media (min-width: 992px)",he="Hanken Grotesk",ue="Red Hat Display";var pe;!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(pe||(pe={}));const fe=`\n color: ${q.DEFAULT};\n font-family: ${he}, Inter;\n margin: 0;\n`,ge=`\n font-weight: ${pe.BOLD};\n font-size: 24px;\n line-height: 28px;\n font-family: ${ue};\n\n ${de} {\n font-size: 24px;\n line-height: 29px;\n }\n`,me=`\n font-weight: ${pe.BOLD};\n font-size: 20px;\n line-height: 23px;\n font-family: ${ue};\n\n ${de} {\n font-size: 18px;\n line-height: 22px;\n }\n`,be=`\n font-weight: ${pe.BOLD};\n font-size: 18px;\n line-height: 21px;\n font-family: ${ue};\n\n ${de} {\n font-size: 16px;\n line-height: 19px;\n }\n`,xe=`\n font-weight: ${pe.REGULAR};\n font-size: 16px;\n line-height: 19px;\n font-family: ${he};\n\n ${de} {\n font-size: 14px;\n line-height: 17px;\n }\n`,ye=`\n font-weight: ${pe.REGULAR};\n font-size: 12px;\n line-height: 18px;\n font-family: ${he};\n\n ${de} {\n line-height: 15px;\n }\n`,ve=`\n font-weight: ${pe.BOLD};\n font-size: 16px;\n font-family: ${ue};\n`,_e=`\n font-weight: ${pe.BOLD};\n font-size: 14px;\n font-family: ${ue};\n`,we=`\n font-weight: ${pe.BOLD};\n font-size: 16px;\n line-height: 19px;\n font-family: ${ue};\n\n ${de} {\n font-size: 14px;\n line-height: 17px;\n }\n`,Se=`\n font-weight: ${pe.BOLD};\n font-size: 14px;\n line-height: 24px;\n font-family: ${he};\n`,ke=`\n font-weight: ${pe.REGULAR};\n font-size: 14px;\n line-height: 24px;\n font-family: ${ue};\n`;var Ee;!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)"}(Ee||(Ee={}));const Oe="10px",Ce="15px",De="20px",Me="30px",Te={spacing:{xs:"5px",sm:Oe,md:Ce,lg:De,xl:Me},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Ee.RAISED,action:Ee.ACTION,overlay:Ee.OVERLAY,reverseRaised:Ee.REVERSE_RAISED},color:{background:{neutral:nt.NEUTRAL,secondaryNeutral:nt.SECONDARY_NEUTRAL,primary:nt.PRIMARY,secondary:nt.SECONDARY},surface:{neutral:it.NEUTRAL,secondaryNeutral:it.SECONDARY_NEUTRAL,disabledSurface:it.DISABLED_SURFACE,disabledOnSurface:it.DISABLED_ON_SURFACE,dark:it.DARK,SubdueInfo:it.SUBDUE_INFO,subduePositive:it.SUBDUE_POSITIVE,subdueCritical:it.SUBDUE_CRITICAL,subdueWarning:it.SUBDUE_WARNING},base:{primary:ot.PRIMARY,primary2:ot.PRIMARY_2,primary3:ot.PRIMARY_3,onContainer:ot.ON_CONTAINER,onNeutral:ot.ON_NEUTRAL,onNeutralSecondary:ot.ON_NEUTRAL_SECONDARY,line:ot.LINE,link:ot.LINK,overlay:ot.OVERLAY},interactive:{hoverPrimary:rt.HOVER_PRIMARY,focusDefault:rt.FOCUS_DEFAULT,pressedPrimary:rt.PRESSED_PRIMARY,selected:rt.SELECTED,hoverSurface:rt.HOVER_SURFACE,focusSurface:rt.FOCUS_SURFACE,pressedSurface:rt.PRESSED_SURFACE,hoverCritical:rt.HOVER_CRITICAL,pressedCritical:rt.PRESSED_CRITICAL},status:{info:at.INFO,positive:at.POSITIVE,warning:at.WARNING,critical:at.CRITICAL},component:{buttonDisabled:st.BUTTON_DISABLED,buttonPrimary:st.BUTTON_PRIMARY,labelInput:st.LABEL_INPUT,helperInput:st.HELPER_INPUT,placeholderInput:st.PLACEHOLDER_INPUT}},text:{default:q.DEFAULT,white:tt.DEFAULT},button:{background:tt.DEFAULT,color:K.DEFAULT,border:K.BASE,hover:q.T10},actionButton:{color:J.S400,hover:J.T10},neutral:{text:J.S400,emphasis:J.S300,border:J.S200,background:J.S100,white:tt.DEFAULT,bluish:J.BLUISH},success:{text:K.S400,emphasis:K.S300,border:K.S300,background:K.S100},warning:{text:et.S400,emphasis:et.S300,border:et.S300,background:et.S100},error:{text:Q.S400,emphasis:Q.S300,border:Q.S300,background:Q.S100},notification:{text:Z.S300,emphasis:Z.DEFAULT,background:Z.S100},card:{background:{default:tt.DEFAULT,dark:q.T10}},divider:{background:J.S200}},Ae=Object.assign(Object.assign({},Te),{brand:{primary:{default:Z.DEFAULT,emphasis:Z.S300,background:Z.S100,contrast:tt.DEFAULT,illustration:Z.DEFAULT},action:{default:Z.DEFAULT,hover:Z.T10,disabledOpacity:.7}}}),$e=Object.assign(Object.assign({},Te),{brand:{primary:{default:K.BASE,emphasis:K.DEFAULT,background:K.G100,contrast:K.CONTRAST,illustration:K.S500,link:Z.LINK},secondary:{onSurface:J.OUTLINE,action:{hover:K.HOVER_SECONDARY,pressed:K.PRESSED_SECONDARY}},tertiary:{action:{hover:K.HOVER_TERTIARY,pressed:K.PRESSED_TERTIARY}},action:{default:K.S500,hover:K.HOVER,pressed:K.PRESSED,disabledOpacity:.7},line:{base:J.BASE}}});function Re(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))}}Re('@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 Le=()=>a.default.createElement(Pt,{styles:St`
44
+ `,ue="@media (min-width: 992px)",pe="Hanken Grotesk",fe="Red Hat Display";var ge;!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ge||(ge={}));const me=`\n color: ${K.DEFAULT};\n font-family: ${pe}, Inter;\n margin: 0;\n`,be=`\n font-weight: ${ge.BOLD};\n font-size: 24px;\n line-height: 28px;\n font-family: ${fe};\n\n ${ue} {\n font-size: 24px;\n line-height: 29px;\n }\n`,xe=`\n font-weight: ${ge.BOLD};\n font-size: 20px;\n line-height: 23px;\n font-family: ${fe};\n\n ${ue} {\n font-size: 18px;\n line-height: 22px;\n }\n`,ye=`\n font-weight: ${ge.BOLD};\n font-size: 18px;\n line-height: 21px;\n font-family: ${fe};\n\n ${ue} {\n font-size: 16px;\n line-height: 19px;\n }\n`,ve=`\n font-weight: ${ge.REGULAR};\n font-size: 16px;\n line-height: 19px;\n font-family: ${pe};\n\n ${ue} {\n font-size: 14px;\n line-height: 17px;\n }\n`,_e=`\n font-weight: ${ge.REGULAR};\n font-size: 12px;\n line-height: 18px;\n font-family: ${pe};\n\n ${ue} {\n line-height: 15px;\n }\n`,we=`\n font-weight: ${ge.BOLD};\n font-size: 16px;\n font-family: ${fe};\n`,Se=`\n font-weight: ${ge.BOLD};\n font-size: 14px;\n font-family: ${fe};\n`,ke=`\n font-weight: ${ge.BOLD};\n font-size: 16px;\n line-height: 19px;\n font-family: ${fe};\n\n ${ue} {\n font-size: 14px;\n line-height: 17px;\n }\n`,Ee=`\n font-weight: ${ge.BOLD};\n font-size: 14px;\n line-height: 24px;\n font-family: ${pe};\n`,Oe=`\n font-weight: ${ge.REGULAR};\n font-size: 14px;\n line-height: 24px;\n font-family: ${fe};\n`;var Ce;!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)"}(Ce||(Ce={}));const De="10px",Me="15px",Te="20px",Ae="30px",$e={spacing:{xs:"5px",sm:De,md:Me,lg:Te,xl:Ae},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Ce.RAISED,action:Ce.ACTION,overlay:Ce.OVERLAY,reverseRaised:Ce.REVERSE_RAISED},color:{background:{neutral:ot.NEUTRAL,secondaryNeutral:ot.SECONDARY_NEUTRAL,primary:ot.PRIMARY,secondary:ot.SECONDARY},surface:{neutral:rt.NEUTRAL,secondaryNeutral:rt.SECONDARY_NEUTRAL,disabledSurface:rt.DISABLED_SURFACE,disabledOnSurface:rt.DISABLED_ON_SURFACE,dark:rt.DARK,SubdueInfo:rt.SUBDUE_INFO,subduePositive:rt.SUBDUE_POSITIVE,subdueCritical:rt.SUBDUE_CRITICAL,subdueWarning:rt.SUBDUE_WARNING},base:{primary:at.PRIMARY,primary2:at.PRIMARY_2,primary3:at.PRIMARY_3,onContainer:at.ON_CONTAINER,onNeutral:at.ON_NEUTRAL,onNeutralSecondary:at.ON_NEUTRAL_SECONDARY,line:at.LINE,link:at.LINK,overlay:at.OVERLAY},interactive:{hoverPrimary:st.HOVER_PRIMARY,focusDefault:st.FOCUS_DEFAULT,pressedPrimary:st.PRESSED_PRIMARY,selected:st.SELECTED,hoverSurface:st.HOVER_SURFACE,focusSurface:st.FOCUS_SURFACE,pressedSurface:st.PRESSED_SURFACE,hoverCritical:st.HOVER_CRITICAL,pressedCritical:st.PRESSED_CRITICAL},status:{info:lt.INFO,positive:lt.POSITIVE,warning:lt.WARNING,critical:lt.CRITICAL},component:{buttonDisabled:ct.BUTTON_DISABLED,buttonPrimary:ct.BUTTON_PRIMARY,labelInput:ct.LABEL_INPUT,helperInput:ct.HELPER_INPUT,placeholderInput:ct.PLACEHOLDER_INPUT}},text:{default:K.DEFAULT,white:nt.DEFAULT},button:{background:nt.DEFAULT,color:Q.DEFAULT,border:Q.BASE,hover:K.T10},actionButton:{color:tt.S400,hover:tt.T10},neutral:{text:tt.S400,emphasis:tt.S300,border:tt.S200,background:tt.S100,white:nt.DEFAULT,bluish:tt.BLUISH},success:{text:Q.S400,emphasis:Q.S300,border:Q.S300,background:Q.S100},warning:{text:it.S400,emphasis:it.S300,border:it.S300,background:it.S100},error:{text:et.S400,emphasis:et.S300,border:et.S300,background:et.S100},notification:{text:J.S300,emphasis:J.DEFAULT,background:J.S100},card:{background:{default:nt.DEFAULT,dark:K.T10}},divider:{background:tt.S200}},Re=Object.assign(Object.assign({},$e),{brand:{primary:{default:J.DEFAULT,emphasis:J.S300,background:J.S100,contrast:nt.DEFAULT,illustration:J.DEFAULT},action:{default:J.DEFAULT,hover:J.T10,disabledOpacity:.7}}}),Le=Object.assign(Object.assign({},$e),{brand:{primary:{default:Q.BASE,emphasis:Q.DEFAULT,background:Q.G100,contrast:Q.CONTRAST,illustration:Q.S500,link:J.LINK},secondary:{onSurface:tt.OUTLINE,action:{hover:Q.HOVER_SECONDARY,pressed:Q.PRESSED_SECONDARY}},tertiary:{action:{hover:Q.HOVER_TERTIARY,pressed:Q.PRESSED_TERTIARY}},action:{default:Q.S500,hover:Q.HOVER,pressed:Q.PRESSED,disabledOpacity:.7},line:{base:tt.BASE}}});function Pe(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))}}Pe('@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 Ne=()=>s.default.createElement(It,{styles:Et`
45
45
  body {
46
46
  color: #555555;
47
47
  padding: 0;
@@ -86,7 +86,7 @@
86
86
  -webkit-appearance: none;
87
87
  margin: 0;
88
88
  }
89
- `});const Pe=a.default.createContext($e),Ne=()=>{const t=a.default.useContext(Pe);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Ie="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",Fe=`\n ${Ie}\n width: 48px;\n height: 48px;\n`,ze=`\n ${Ie}\n width: 36px;\n height: 36px;\n`,Be=(t,e,n,i,o)=>`\n background-color: ${t} !important;\n color: ${e} !important;\n border: ${o||"none"} !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ${n||t} !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ${n||t} !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ${i||t} !important;\n box-shadow: none !important;\n }\n`,Ye=(t,e)=>`\n cursor: not-allowed !important;\n background-color: ${t} !important;\n color: ${e} !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${t} !important;\n color: ${e} !important;\n }\n`,He=Be($e.brand.action.default,$e.brand.primary.contrast,$e.brand.action.hover,$e.brand.action.pressed),We=Be($e.color.surface.neutral,$e.brand.secondary.onSurface,$e.color.interactive.hoverSurface,$e.color.interactive.pressedSurface,`1px solid ${$e.brand.line.base}`),Ve=Be("transparent",$e.brand.secondary.onSurface,$e.color.interactive.hoverSurface,$e.color.interactive.pressedSurface,"none"),Ue={primary:Ye($e.color.surface.disabledSurface,$e.color.surface.disabledOnSurface),secondary:Ye($e.color.surface.disabledSurface,$e.color.surface.disabledOnSurface),tertiary:Ye($e.color.surface.disabledSurface,$e.color.surface.disabledOnSurface)},je=t=>{var{type:n="primary",size:i,iconColor:o,isDisabled:r=!1,isFullWidth:s=!1,className:c="",children:d,icon:h}=t,u=l(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]);const{brand:p,button:f,actionButton:g,color:m}=Ne(),b=`\n background-color: ${p.action.default} !important;\n color: ${p.primary.contrast} !important;\n border: none !important;\n\n &:focus {\n background-color: ${p.action.default} !important;\n border: none !important;\n }\n \n &:active {\n background-color: ${p.action.pressed} !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ${p.action.hover} !important;\n border: none !important;\n }\n `,x=`\n background-color: ${f.background} !important;\n color: ${p.primary.contrast} !important;\n border: 1px solid ${f.border} !important;\n\n &:focus {\n background-color: ${f.background} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &:hover {\n background-color: ${p.secondary.action.hover} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &:active {\n background-color: ${p.secondary.action.pressed} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ${$e.brand.primary.default};\n }\n `,y=`\n background-color: transparent !important;\n color: ${p.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: ${p.tertiary.action.hover} !important;\n border: none !important;\n }\n\n &:active {\n background-color: ${p.tertiary.action.pressed} !important;\n border: none !important;\n }\n `,v=`\n cursor: not-allowed !important;\n background-color: ${m.surface.disabledSurface} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${m.surface.disabledSurface} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n }\n `,_=`\n cursor: not-allowed !important;\n background-color: ${f.background} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: 1px solid ${J.S300} !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${f.background} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: 1px solid ${J.BASE} !important;\n }\n `,w=`\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n }\n `,S=`\n color: ${g.color};\n\n &:focus {\n color: ${g.color};\n }\n\n &:hover {\n color: ${g.hover};\n }\n\n &:active {\n color: ${g.color};\n }\n `,k=`\n color: ${p.action.default};\n\n &:focus {\n color: ${p.action.default};\n }\n\n &:hover {\n color: ${p.action.hover};\n }\n\n &:active {\n color: ${p.action.default};\n }\n `,E=ee(e.Button)`
89
+ `});const Ie=s.default.createContext(Le),Fe=()=>{const t=s.default.useContext(Ie);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},ze="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",Be=`\n ${ze}\n width: 48px;\n height: 48px;\n`,Ye=`\n ${ze}\n width: 36px;\n height: 36px;\n`,He=(t,e,n,i,o)=>`\n background-color: ${t} !important;\n color: ${e} !important;\n border: ${o||"none"} !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ${n||t} !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ${n||t} !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ${i||t} !important;\n box-shadow: none !important;\n }\n`,We=(t,e)=>`\n cursor: not-allowed !important;\n background-color: ${t} !important;\n color: ${e} !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${t} !important;\n color: ${e} !important;\n }\n`,Ve=He(Le.brand.action.default,Le.brand.primary.contrast,Le.brand.action.hover,Le.brand.action.pressed),Ue=He(Le.color.surface.neutral,Le.brand.secondary.onSurface,Le.color.interactive.hoverSurface,Le.color.interactive.pressedSurface,`1px solid ${Le.brand.line.base}`),je=He("transparent",Le.brand.secondary.onSurface,Le.color.interactive.hoverSurface,Le.color.interactive.pressedSurface,"none"),Ge={primary:We(Le.color.surface.disabledSurface,Le.color.surface.disabledOnSurface),secondary:We(Le.color.surface.disabledSurface,Le.color.surface.disabledOnSurface),tertiary:We(Le.color.surface.disabledSurface,Le.color.surface.disabledOnSurface)},Xe=t=>{var{type:n="primary",size:i,iconColor:o,isDisabled:r=!1,isFullWidth:a=!1,className:l="",children:c,icon:h}=t,u=d(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]);const{brand:p,button:f,actionButton:g,color:m}=Fe(),b=`\n background-color: ${p.action.default} !important;\n color: ${p.primary.contrast} !important;\n border: none !important;\n\n &:focus {\n background-color: ${p.action.default} !important;\n border: none !important;\n }\n \n &:active {\n background-color: ${p.action.pressed} !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ${p.action.hover} !important;\n border: none !important;\n }\n `,x=`\n background-color: ${f.background} !important;\n color: ${p.primary.contrast} !important;\n border: 1px solid ${f.border} !important;\n\n &:focus {\n background-color: ${f.background} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &:hover {\n background-color: ${p.secondary.action.hover} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &:active {\n background-color: ${p.secondary.action.pressed} !important;\n border: 1px solid ${f.border} !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ${Le.brand.primary.default};\n }\n `,y=`\n background-color: transparent !important;\n color: ${p.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: ${p.tertiary.action.hover} !important;\n border: none !important;\n }\n\n &:active {\n background-color: ${p.tertiary.action.pressed} !important;\n border: none !important;\n }\n `,v=`\n cursor: not-allowed !important;\n background-color: ${m.surface.disabledSurface} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${m.surface.disabledSurface} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n }\n `,_=`\n cursor: not-allowed !important;\n background-color: ${f.background} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: 1px solid ${tt.S300} !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ${f.background} !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: 1px solid ${tt.BASE} !important;\n }\n `,w=`\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ${m.surface.disabledOnSurface} !important;\n border: none !important;\n }\n `,S=`\n color: ${g.color};\n\n &:focus {\n color: ${g.color};\n }\n\n &:hover {\n color: ${g.hover};\n }\n\n &:active {\n color: ${g.color};\n }\n `,k=`\n color: ${p.action.default};\n\n &:focus {\n color: ${p.action.default};\n }\n\n &:hover {\n color: ${p.action.hover};\n }\n\n &:active {\n color: ${p.action.default};\n }\n `,E=ie(e.Button)`
90
90
  &.ant-btn {
91
91
  text-shadow: none;
92
92
  -webkit-font-smoothing: antialiased;
@@ -97,13 +97,13 @@
97
97
  display: flex;
98
98
  align-items: center;
99
99
  justify-content: center;
100
- ${fe}
101
- ${"small"===i?_e:ve}
100
+ ${me}
101
+ ${"small"===i?Se:we}
102
102
  ${"primary"===n&&b}
103
103
  ${"secondary"===n&&x}
104
104
  ${"tertiary"===n&&y}
105
105
  ${(()=>{if(!r)return"";switch(n){case"primary":default:return v;case"secondary":return _;case"tertiary":return w}})()}
106
- ${s&&"\n width: 100%;\n "}
106
+ ${a&&"\n width: 100%;\n "}
107
107
  padding: 16px;
108
108
 
109
109
  & > svg {
@@ -118,22 +118,22 @@
118
118
  color: ${p.primary.contrast} !important;
119
119
  }
120
120
  }
121
- `,O=ee(e.Button)`
121
+ `,O=ie(e.Button)`
122
122
  &.ant-btn {
123
- ${fe};
124
- ${"small"===i?ze:Fe}
125
- ${"primary"===n&&He}
126
- ${"secondary"===n&&We}
127
- ${"tertiary"===n&&Ve}
123
+ ${me};
124
+ ${"small"===i?Ye:Be}
125
+ ${"primary"===n&&Ve}
126
+ ${"secondary"===n&&Ue}
127
+ ${"tertiary"===n&&je}
128
128
  ${(t=>`\n & > svg {\n height: ${"small"===t?"20px":"24px"};\n width: ${"small"===t?"20px":"24px"};\n }\n`)(i)}
129
- ${r&&(t=>Ue[t]||Ue.primary)(n)}
129
+ ${r&&(t=>Ge[t]||Ge.primary)(n)}
130
130
  }
131
- `,C=r?"straitsx-button-disabled":void 0;return h?a.default.createElement(O,Object.assign({className:`${c} ${C}`,disabled:r},u),h):a.default.createElement(E,Object.assign({className:`${c} ${C}`,disabled:r},u),d)},Ge="Hanken Grotesk";var Xe;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";const qe={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={}));const Ze=t=>{var{className:n,alignTitle:i="center",alignBody:o="left",type:r="default"}=t,s=l(t,["className","alignTitle","alignBody","type"]);const{card:c,text:d,neutral:h}=Ne(),u=`\n color: ${"default"===r?d.default:d.white};\n\n & > div > div {\n color: ${"default"===r?d.default:d.white};\n }\n\n h1 {\n color: ${"default"===r?d.default:d.white};\n }\n `,p=ht`
131
+ `,C=r?"straitsx-button-disabled":void 0;return h?s.default.createElement(O,Object.assign({className:`${l} ${C}`,disabled:r},u),h):s.default.createElement(E,Object.assign({className:`${l} ${C}`,disabled:r},u),c)},qe="Hanken Grotesk";var Ze;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,(Ze=exports.FONT_SIZE||(exports.FONT_SIZE={})).H1="24px",Ze.H1_MOBILE="24px",Ze.H2="18px",Ze.H2_MOBILE="20px",Ze.H3="16px",Ze.H3_MOBILE="18px",Ze.H4="14px",Ze.P1="14px",Ze.P1_MOBILE="16px",Ze.SMALL="12px",Ze.SMALL_MOBILE="14px";const Ke={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={}));const Je=t=>{var{className:n,alignTitle:i="center",alignBody:o="left",type:r="default"}=t,a=d(t,["className","alignTitle","alignBody","type"]);const{card:l,text:c,neutral:h}=Fe(),u=`\n color: ${"default"===r?c.default:c.white};\n\n & > div > div {\n color: ${"default"===r?c.default:c.white};\n }\n\n h1 {\n color: ${"default"===r?c.default:c.white};\n }\n `,p=pt`
132
132
  border-radius: 4px;
133
133
  border-width: 1px;
134
134
  border-style: solid;
135
135
  border-color: ${h.border};
136
- background: ${"default"===r?c.background.default:c.background.dark} !important;
136
+ background: ${"default"===r?l.background.default:l.background.dark} !important;
137
137
 
138
138
  & > .ant-card-head {
139
139
  padding: 0 15px;
@@ -164,43 +164,43 @@
164
164
  line-height: ${exports.LINE_HEIGHT.P1_MOBILE};
165
165
  ${u};
166
166
  }
167
- `;return a.default.createElement(e.Card,Object.assign({className:dt(p,n,(f=i,ht`
167
+ `;return s.default.createElement(e.Card,Object.assign({className:ut(p,n,(f=i,pt`
168
168
  .ant-card-head-wrapper {
169
169
  align-items: ${f};
170
170
  }
171
- `),(t=>ht`
171
+ `),(t=>pt`
172
172
  .ant-card-body {
173
173
  text-align: ${t};
174
174
  }
175
- `)(o))},s));var f},Ke=ee.h1`
176
- ${fe};
177
- ${ge};
178
- `,Je=ee.h2`
179
- ${fe};
175
+ `)(o))},a));var f},Qe=ie.h1`
180
176
  ${me};
181
- `,Qe=ee.h3`
182
- ${fe};
183
177
  ${be};
184
- `,tn=ee.div`
185
- ${fe};
178
+ `,tn=ie.h2`
179
+ ${me};
186
180
  ${xe};
187
- `,en=ee.div`
188
- ${fe};
189
- ${we};
190
- `,nn=ee.div`
191
- ${fe};
181
+ `,en=ie.h3`
182
+ ${me};
192
183
  ${ye};
193
- `,on=ee.h4`
194
- ${fe};
195
- ${we};
196
- `,rn={xs:"5px",sm:Oe,md:Ce,lg:De,xl:Me},an=t=>{var{spacing:e}=t,n=l(t,["spacing"]);const{divider:i}=Ne(),o=ee.hr`
184
+ `,nn=ie.div`
185
+ ${me};
186
+ ${ve};
187
+ `,on=ie.div`
188
+ ${me};
189
+ ${ke};
190
+ `,rn=ie.div`
191
+ ${me};
192
+ ${_e};
193
+ `,an=ie.h4`
194
+ ${me};
195
+ ${ke};
196
+ `,sn={xs:"5px",sm:De,md:Me,lg:Te,xl:Ae},ln=t=>{var{spacing:e}=t,n=d(t,["spacing"]);const{divider:i}=Fe(),o=ie.hr`
197
197
  border: none;
198
198
  height: 1px;
199
- margin-top: ${e?rn[e]:0};
200
- margin-bottom: ${e?rn[e]:0};
199
+ margin-top: ${e?sn[e]:0};
200
+ margin-bottom: ${e?sn[e]:0};
201
201
  flex-shrink: 0;
202
202
  background-color: ${i.background};
203
- `;return a.default.createElement(o,Object.assign({},n))},sn=ee.div`
203
+ `;return s.default.createElement(o,Object.assign({},n))},cn=ie.div`
204
204
  background: #ffffff;
205
205
  border: ${t=>!t.withBoxShadow&&"1px solid #e8e8e8"};
206
206
  border-radius: 5px;
@@ -219,82 +219,82 @@
219
219
 
220
220
  max-height: ${t=>t.headerHeightMobile}px;
221
221
 
222
- ${de} {
222
+ ${ue} {
223
223
  max-height: ${t=>t.headerHeightDesktop}px;
224
224
  }
225
225
 
226
- ${t=>t.open&&`\n max-height: 2000px !important;\n ${de} {\n max-height: 1200px !important;\n }\n `};
227
- `,ln=ee.div`
226
+ ${t=>t.open&&`\n max-height: 2000px !important;\n ${ue} {\n max-height: 1200px !important;\n }\n `};
227
+ `,dn=ie.div`
228
228
  cursor: pointer;
229
229
  padding: 30px 0px;
230
230
  height: ${t=>t.headerHeightMobile}px;
231
231
 
232
- ${de} {
232
+ ${ue} {
233
233
  height: ${t=>t.headerHeightDesktop}px;
234
234
  }
235
- `,cn=ee.div`
235
+ `,hn=ie.div`
236
236
  display: flex;
237
237
  align-items: center;
238
238
  justify-content: space-between;
239
- `,dn=ee(tn)`
239
+ `,un=ie(nn)`
240
240
  display: none;
241
241
 
242
- ${de} {
242
+ ${ue} {
243
243
  display: inline;
244
244
  margin: 0px 12px 0px 0px;
245
245
  }
246
- `,hn=ee(n.SvgArrowUp)`
246
+ `,pn=ie(n.SvgArrowUp)`
247
247
  width: 25px;
248
248
  height: 25px;
249
249
  transform: rotate(180deg);
250
250
  transition: transform 0.3s ease;
251
251
  transform: ${t=>t.open&&"rotate(0deg)"};
252
- `,un=ee.div`
252
+ `,fn=ie.div`
253
253
  display: flex;
254
254
  align-items: center;
255
- `,pn="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function fn(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,pn.call(window,()=>{o=!1,t.apply(e,r)}))}}const gn=t=>"start"===t?"left":"end"===t?"right":"center",mn=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function bn(){}const xn=function(){let t=0;return function(){return t++}}();function yn(t){return null==t}function vn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function _n(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const wn=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Sn(t,e){return wn(t)?t:e}function kn(t,e){return void 0===t?e:t}const En=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function On(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Cn(t,e,n,i){let o,r,a;if(vn(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(_n(t))for(a=Object.keys(t),r=a.length,o=0;o<r;o++)e.call(n,t[a[o]],a[o])}function Dn(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 Mn(t){if(vn(t))return t.map(Mn);if(_n(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=Mn(t[n[o]]);return e}return t}function Tn(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function An(t,e,n,i){if(!Tn(t))return;const o=e[t],r=n[t];_n(o)&&_n(r)?$n(o,r,i):e[t]=Mn(r)}function $n(t,e,n){const i=vn(e)?e:[e],o=i.length;if(!_n(t))return t;const r=(n=n||{}).merger||An;for(let a=0;a<o;++a){if(!_n(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 Rn(t,e){return $n(t,e,{merger:Ln})}function Ln(t,e,n){if(!Tn(t))return;const i=e[t],o=n[t];_n(i)&&_n(o)?Rn(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Mn(o))}function Pn(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function Nn(t,e){if(""===e)return t;let n=0,i=Pn(e,n);for(;t&&i>n;)t=t[e.substr(n,i-n)],n=i+1,i=Pn(e,n);return t}function In(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fn=t=>void 0!==t,zn=t=>"function"==typeof t,Bn=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const Yn=Math.PI,Hn=2*Yn,Wn=Hn+Yn,Vn=Number.POSITIVE_INFINITY,Un=Yn/180,jn=Yn/2,Gn=Yn/4,Xn=2*Yn/3,qn=Math.log10,Zn=Math.sign;function Kn(t){const e=Math.round(t);t=Qn(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(qn(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Jn(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Qn(t,e,n){return Math.abs(t-e)<n}function ti(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 ei(t){return t*(Yn/180)}function ni(t){return t*(180/Yn)}function ii(t){if(!wn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function oi(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*Yn&&(r+=Hn),{angle:r,distance:o}}function ri(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ai(t,e){return(t-e+Wn)%Hn-Yn}function si(t){return(t%Hn+Hn)%Hn}function li(t,e,n,i){const o=si(t),r=si(e),a=si(n),s=si(r-o),l=si(a-o),c=si(o-r),d=si(o-a);return o===r||o===a||i&&r===a||s>l&&c<d}function ci(t,e,n){return Math.max(e,Math.min(n,t))}function di(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const hi=t=>0===t||1===t,ui=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Hn/n),pi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Hn/n)+1,fi={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*jn),easeOutSine:t=>Math.sin(t*jn),easeInOutSine:t=>-.5*(Math.cos(Yn*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=>hi(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=>hi(t)?t:ui(t,.075,.3),easeOutElastic:t=>hi(t)?t:pi(t,.075,.3),easeInOutElastic(t){const e=.1125;return hi(t)?t:t<.5?.5*ui(2*t,e,.45):.5+.5*pi(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-fi.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*fi.easeInBounce(2*t):.5*fi.easeOutBounce(2*t-1)+.5},gi={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},mi="0123456789ABCDEF",bi=t=>mi[15&t],xi=t=>mi[(240&t)>>4]+mi[15&t],yi=t=>(240&t)>>4==(15&t);function vi(t){var e=function(t){return yi(t.r)&&yi(t.g)&&yi(t.b)&&yi(t.a)}(t)?bi:xi;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function _i(t){return t+.5|0}const wi=(t,e,n)=>Math.max(Math.min(t,n),e);function Si(t){return wi(_i(2.55*t),0,255)}function ki(t){return wi(_i(255*t),0,255)}function Ei(t){return wi(_i(t/2.55)/100,0,1)}function Oi(t){return wi(_i(100*t),0,100)}const Ci=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Di=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mi(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 Ti(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 Ai(t,e,n){const i=Mi(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 $i(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=o===e?(n-i)/c+(n<i?6:0):o===n?(i-e)/c+2:(e-n)/c+4,s=60*s+.5),[0|s,l||0,a]}function Ri(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(ki)}function Li(t,e,n){return Ri(Mi,t,e,n)}function Pi(t){return(t%360+360)%360}function Ni(t){const e=Di.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?Si(+e[5]):ki(+e[5]));const o=Pi(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Ri(Ai,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return Ri(Ti,t,e,n)}(o,r,a):Li(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const Ii={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"},Fi={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 zi;function Bi(t){zi||(zi=function(){const t={},e=Object.keys(Fi),n=Object.keys(Ii);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,Ii[r]);r=parseInt(Fi[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),zi.transparent=[0,0,0,0]);const e=zi[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Yi(t,e,n){if(t){let i=$i(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Li(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Hi(t,e){return t?Object.assign(e||{},t):t}function Wi(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=ki(t[3]))):(e=Hi(t,{r:0,g:0,b:0,a:1})).a=ki(e.a),e}function Vi(t){return"r"===t.charAt(0)?function(t){const e=Ci.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=255&(e[8]?Si(t):255*t)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?Si(n):n),i=255&(e[4]?Si(i):i),o=255&(e[6]?Si(o):o),{r:n,g:i,b:o,a:r}}}(t):Ni(t)}class Ui{constructor(t){if(t instanceof Ui)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=Wi(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*gi[i[1]],g:255&17*gi[i[2]],b:255&17*gi[i[3]],a:5===r?17*gi[i[4]]:255}:7!==r&&9!==r||(o={r:gi[i[1]]<<4|gi[i[2]],g:gi[i[3]]<<4|gi[i[4]],b:gi[i[5]]<<4|gi[i[6]],a:9===r?gi[i[7]]<<4|gi[i[8]]:255})),n=o||Bi(t)||Vi(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Hi(this._rgb);return t&&(t.a=Ei(t.a)),t}set rgb(t){this._rgb=Wi(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ei(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?vi(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=$i(t),n=e[0],i=Oi(e[1]),o=Oi(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${Ei(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const i=n.rgb,o=t.rgb;let r;const a=e===r?.5:e,s=2*a-1,l=i.a-o.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;r=1-c,i.r=255&c*i.r+r*o.r+.5,i.g=255&c*i.g+r*o.g+.5,i.b=255&c*i.b+r*o.b+.5,i.a=a*i.a+(1-a)*o.a,n.rgb=i}return n}clone(){return new Ui(this.rgb)}alpha(t){return this._rgb.a=ki(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_i(.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 Yi(this._rgb,2,t),this}darken(t){return Yi(this._rgb,2,-t),this}saturate(t){return Yi(this._rgb,1,t),this}desaturate(t){return Yi(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=$i(t);n[0]=Pi(n[0]+e),n=Li(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function ji(t){return new Ui(t)}const Gi=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Xi(t){return Gi(t)?t:ji(t)}function qi(t){return Gi(t)?t:ji(t).saturate(.5).darken(.1).hexString()}const Zi=Object.create(null),Ki=Object.create(null);function Ji(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 Qi(t,e,n){return"string"==typeof e?$n(Ji(t,e),n):$n(Ji(t,""),e)}var to=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)=>qi(e.backgroundColor),this.hoverBorderColor=(t,e)=>qi(e.borderColor),this.hoverColor=(t,e)=>qi(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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 Qi(this,t,e)}get(t){return Ji(this,t)}describe(t,e){return Qi(Ki,t,e)}override(t,e){return Qi(Zi,t,e)}route(t,e,n,i){const o=Ji(this,t),r=Ji(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 _n(t)?Object.assign({},e,t):kn(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 eo(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 no(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!==vn(h))a=eo(t,o,r,a,h);else if(vn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||vn(u)||(a=eo(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 io(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 oo(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ro(t,e,n,i){let o,r,a,s,l;const c=e.pointStyle,d=e.rotation,h=e.radius;let u=(d||0)*Un;if(c&&"object"==typeof c&&(o=c.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(u),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(h)||h<=0)){switch(t.beginPath(),c){default:t.arc(n,i,h,0,Hn),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(u)*h,i-Math.cos(u)*h),u+=Xn,t.lineTo(n+Math.sin(u)*h,i-Math.cos(u)*h),u+=Xn,t.lineTo(n+Math.sin(u)*h,i-Math.cos(u)*h),t.closePath();break;case"rectRounded":l=.516*h,s=h-l,r=Math.cos(u+Gn)*s,a=Math.sin(u+Gn)*s,t.arc(n-r,i-a,l,u-Yn,u-jn),t.arc(n+a,i-r,l,u-jn,u),t.arc(n+r,i+a,l,u,u+jn),t.arc(n-a,i+r,l,u+jn,u+Yn),t.closePath();break;case"rect":if(!d){s=Math.SQRT1_2*h,t.rect(n-s,i-s,2*s,2*s);break}u+=Gn;case"rectRot":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+a,i-r),t.lineTo(n+r,i+a),t.lineTo(n-a,i+r),t.closePath();break;case"crossRot":u+=Gn;case"cross":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"star":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r),u+=Gn,r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"line":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(u)*h,i+Math.sin(u)*h)}t.fill(),e.borderWidth>0&&t.stroke()}}function ao(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 so(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function lo(t){t.restore()}function co(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 ho(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 uo(t,e,n,i,o,r={}){const a=vn(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]);yn(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),yn(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),po(t,n,i,c,r),i+=o.lineHeight;t.restore()}function po(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 fo(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-jn,Yn,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,Yn,jn,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,jn,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-jn,!0),t.lineTo(n+a.topLeft,i)}const go=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),mo=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function bo(t,e){const n=(""+t).match(go);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 xo=t=>+t||0;function yo(t,e){const n={},i=_n(e),o=i?Object.keys(e):e,r=_n(t)?i?n=>kn(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=xo(r(t));return n}function vo(t){return yo(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _o(t){return yo(t,["topLeft","topRight","bottomLeft","bottomRight"])}function wo(t){const e=vo(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function So(t,e){t=t||{},e=e||to.font;let n=kn(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=kn(t.style,e.style);i&&!(""+i).match(mo)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:kn(t.family,e.family),lineHeight:bo(kn(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:kn(t.weight,e.weight),string:""};return o.string=function(t){return!t||yn(t.size)||yn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function ko(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&&vn(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function Eo(t,e){return Object.assign(Object.create(t),e)}function Oo(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 Co=(t,e,n)=>Oo(t,n,i=>t[i][e]<n),Do=(t,e,n)=>Oo(t,n,i=>t[i][e]>=n);const Mo=["push","pop","shift","splice","unshift"];function To(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||(Mo.forEach(e=>{delete t[e]}),delete t._chartjs)}function Ao(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)}function $o(t,e=[""],n=t,i,o=()=>t[0]){Fn(i)||(i=Wo("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>$o([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)=>Io(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=Wo(Po(r,t),n),Fn(o))return No(t,o)?Yo(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)=>Vo(t).includes(e),ownKeys:t=>Vo(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Ro(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Lo(t,i),setContext:e=>Ro(t,e,n,i),override:o=>Ro(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Io(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=t;let s=i[e];zn(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),No(t,e)&&(e=Yo(o._scopes,o,t,e));return e}(e,s,t,n));vn(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:s}=n;if(Fn(r.index)&&i(t))e=e[r.index%e.length];else if(_n(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Yo(i,o,t,l);e.push(Ro(n,r,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));No(e,s)&&(s=Ro(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 Lo(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:zn(n)?n:()=>n,isIndexable:zn(i)?i:()=>i}}const Po=(t,e)=>t?t+In(e):e,No=(t,e)=>_n(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Io(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Fo(t,e,n){return zn(t)?t(e,n):t}const zo=(t,e)=>!0===t?e:"string"==typeof t?Nn(e,t):void 0;function Bo(t,e,n,i,o){for(const r of e){const e=zo(n,r);if(e){t.add(e);const r=Fo(e._fallback,n,o);if(Fn(r)&&r!==n&&r!==i)return r}else if(!1===e&&Fn(i)&&n!==i)return null}return!1}function Yo(t,e,n,i){const o=e._rootScopes,r=Fo(e._fallback,n,i),a=[...t,...o],s=new Set;s.add(i);let l=Ho(s,a,n,r||n,i);return null!==l&&((!Fn(r)||r===n||(l=Ho(s,a,r,l,i),null!==l))&&$o(Array.from(s),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(vn(o)&&_n(n))return n;return o}(e,n,i)))}function Ho(t,e,n,i,o){for(;n;)n=Bo(t,e,n,i,o);return n}function Wo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(Fn(e))return e}}function Vo(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}const Uo=Number.EPSILON||1e-14,jo=(t,e)=>e<t.length&&!t[e].skip&&t[e],Go=t=>"x"===t?"y":"x";function Xo(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=ri(r,o),l=ri(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 qo(t,e="x"){const n=Go(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=jo(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=jo(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?Zn(o[a-1])!==Zn(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=jo(t,0);for(let d=0;d<i-1;++d)l=c,c=jo(t,d+1),l&&c&&(Qn(e[d],0,Uo)?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=Go(n),o=t.length;let r,a,s,l=jo(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=jo(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 Zo(t,e,n){return Math.max(Math.min(t,n),e)}function Ko(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)qo(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=Xo(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=ao(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&ao(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=Zo(o.cp1x,e.left,e.right),o.cp1y=Zo(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Zo(o.cp2x,e.left,e.right),o.cp2y=Zo(o.cp2y,e.top,e.bottom)))}(t,n)}function Jo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Qo(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function tr(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 er=t=>window.getComputedStyle(t,null);const nr=["top","right","bottom","left"];function ir(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=nr[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function or(t,e){const{canvas:n,currentDevicePixelRatio:i}=e,o=er(n),r="border-box"===o.boxSizing,a=ir(o,"padding"),s=ir(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.native||t,i=n.touches,o=i&&i.length?i[0]:n,{offsetX:r,offsetY:a}=o;let s,l,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,a,n.target))s=r,l=a;else{const t=e.getBoundingClientRect();s=o.clientX-t.left,l=o.clientY-t.top,c=!0}return{x:s,y:l,box:c}}(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 rr=t=>Math.round(10*t)/10;function ar(t,e,n,i){const o=er(t),r=ir(o,"margin"),a=tr(o.maxWidth,t,"clientWidth")||Vn,s=tr(o.maxHeight,t,"clientHeight")||Vn,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=Qo(t);if(r){const t=r.getBoundingClientRect(),a=er(r),s=ir(a,"border","width"),l=ir(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=tr(a.maxWidth,r,"clientWidth"),o=tr(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Vn,maxHeight:o||Vn}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=ir(o,"border","width"),e=ir(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=rr(Math.min(c,a,l.maxWidth)),d=rr(Math.min(d,s,l.maxHeight)),c&&!d&&(d=rr(c/2)),{width:c,height:d}}function sr(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 lr=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 cr(t,e){const n=function(t,e){return er(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function dr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function hr(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 ur(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=dr(t,o,n),s=dr(o,r,n),l=dr(r,e,n),c=dr(a,s,n),d=dr(s,l,n);return dr(c,d,n)}const pr=new Map;function fr(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=pr.get(n);return i||(i=new Intl.NumberFormat(t,e),pr.set(n,i)),i}(e,n).format(t)}function gr(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 mr(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 br(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function xr(t){return"angle"===t?{between:li,compare:ai,normalize:si}:{between:di,compare:(t,e)=>t-e,normalize:t=>t}}function yr({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 vr(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=xr(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}=xr(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,y=null;const v=()=>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===y&&v()&&(y=0===s(g,o)?t:n),null!==y&&_()&&(f.push(yr({start:y,end:t,loop:u,count:a,style:p})),y=null),n=t,b=g));return null!==y&&f.push(yr({start:y,end:h,loop:u,count:a,style:p})),f}function _r(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=vr(i[o],t.points,e);r.length&&n.push(...r)}return n}function wr(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=Sr(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=Sr(i.setContext(Eo(o,{type:"segment",p0:r,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),kr(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 Sr(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function kr(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
255
+ `,gn="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function mn(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,gn.call(window,()=>{o=!1,t.apply(e,r)}))}}const bn=t=>"start"===t?"left":"end"===t?"right":"center",xn=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function yn(){}const vn=function(){let t=0;return function(){return t++}}();function _n(t){return null==t}function wn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function Sn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const kn=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function En(t,e){return kn(t)?t:e}function On(t,e){return void 0===t?e:t}const Cn=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Dn(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Mn(t,e,n,i){let o,r,a;if(wn(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(Sn(t))for(a=Object.keys(t),r=a.length,o=0;o<r;o++)e.call(n,t[a[o]],a[o])}function Tn(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 An(t){if(wn(t))return t.map(An);if(Sn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=An(t[n[o]]);return e}return t}function $n(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Rn(t,e,n,i){if(!$n(t))return;const o=e[t],r=n[t];Sn(o)&&Sn(r)?Ln(o,r,i):e[t]=An(r)}function Ln(t,e,n){const i=wn(e)?e:[e],o=i.length;if(!Sn(t))return t;const r=(n=n||{}).merger||Rn;for(let a=0;a<o;++a){if(!Sn(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 Pn(t,e){return Ln(t,e,{merger:Nn})}function Nn(t,e,n){if(!$n(t))return;const i=e[t],o=n[t];Sn(i)&&Sn(o)?Pn(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=An(o))}function In(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function Fn(t,e){if(""===e)return t;let n=0,i=In(e,n);for(;t&&i>n;)t=t[e.substr(n,i-n)],n=i+1,i=In(e,n);return t}function zn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Bn=t=>void 0!==t,Yn=t=>"function"==typeof t,Hn=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const Wn=Math.PI,Vn=2*Wn,Un=Vn+Wn,jn=Number.POSITIVE_INFINITY,Gn=Wn/180,Xn=Wn/2,qn=Wn/4,Zn=2*Wn/3,Kn=Math.log10,Jn=Math.sign;function Qn(t){const e=Math.round(t);t=ei(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Kn(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function ti(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ei(t,e,n){return Math.abs(t-e)<n}function ni(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 ii(t){return t*(Wn/180)}function oi(t){return t*(180/Wn)}function ri(t){if(!kn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function ai(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*Wn&&(r+=Vn),{angle:r,distance:o}}function si(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function li(t,e){return(t-e+Un)%Vn-Wn}function ci(t){return(t%Vn+Vn)%Vn}function di(t,e,n,i){const o=ci(t),r=ci(e),a=ci(n),s=ci(r-o),l=ci(a-o),c=ci(o-r),d=ci(o-a);return o===r||o===a||i&&r===a||s>l&&c<d}function hi(t,e,n){return Math.max(e,Math.min(n,t))}function ui(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const pi=t=>0===t||1===t,fi=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Vn/n),gi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Vn/n)+1,mi={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*Xn),easeOutSine:t=>Math.sin(t*Xn),easeInOutSine:t=>-.5*(Math.cos(Wn*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=>pi(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=>pi(t)?t:fi(t,.075,.3),easeOutElastic:t=>pi(t)?t:gi(t,.075,.3),easeInOutElastic(t){const e=.1125;return pi(t)?t:t<.5?.5*fi(2*t,e,.45):.5+.5*gi(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-mi.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*mi.easeInBounce(2*t):.5*mi.easeOutBounce(2*t-1)+.5},bi={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},xi="0123456789ABCDEF",yi=t=>xi[15&t],vi=t=>xi[(240&t)>>4]+xi[15&t],_i=t=>(240&t)>>4==(15&t);function wi(t){var e=function(t){return _i(t.r)&&_i(t.g)&&_i(t.b)&&_i(t.a)}(t)?yi:vi;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function Si(t){return t+.5|0}const ki=(t,e,n)=>Math.max(Math.min(t,n),e);function Ei(t){return ki(Si(2.55*t),0,255)}function Oi(t){return ki(Si(255*t),0,255)}function Ci(t){return ki(Si(t/2.55)/100,0,1)}function Di(t){return ki(Si(100*t),0,100)}const Mi=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ti=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ai(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 $i(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 Ri(t,e,n){const i=Ai(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 Li(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=o===e?(n-i)/c+(n<i?6:0):o===n?(i-e)/c+2:(e-n)/c+4,s=60*s+.5),[0|s,l||0,a]}function Pi(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Oi)}function Ni(t,e,n){return Pi(Ai,t,e,n)}function Ii(t){return(t%360+360)%360}function Fi(t){const e=Ti.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?Ei(+e[5]):Oi(+e[5]));const o=Ii(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Pi(Ri,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return Pi($i,t,e,n)}(o,r,a):Ni(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const zi={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"},Bi={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 Yi;function Hi(t){Yi||(Yi=function(){const t={},e=Object.keys(Bi),n=Object.keys(zi);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,zi[r]);r=parseInt(Bi[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),Yi.transparent=[0,0,0,0]);const e=Yi[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function Wi(t,e,n){if(t){let i=Li(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Ni(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Vi(t,e){return t?Object.assign(e||{},t):t}function Ui(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=Oi(t[3]))):(e=Vi(t,{r:0,g:0,b:0,a:1})).a=Oi(e.a),e}function ji(t){return"r"===t.charAt(0)?function(t){const e=Mi.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=255&(e[8]?Ei(t):255*t)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?Ei(n):n),i=255&(e[4]?Ei(i):i),o=255&(e[6]?Ei(o):o),{r:n,g:i,b:o,a:r}}}(t):Fi(t)}class Gi{constructor(t){if(t instanceof Gi)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=Ui(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*bi[i[1]],g:255&17*bi[i[2]],b:255&17*bi[i[3]],a:5===r?17*bi[i[4]]:255}:7!==r&&9!==r||(o={r:bi[i[1]]<<4|bi[i[2]],g:bi[i[3]]<<4|bi[i[4]],b:bi[i[5]]<<4|bi[i[6]],a:9===r?bi[i[7]]<<4|bi[i[8]]:255})),n=o||Hi(t)||ji(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Vi(this._rgb);return t&&(t.a=Ci(t.a)),t}set rgb(t){this._rgb=Ui(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ci(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?wi(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Li(t),n=e[0],i=Di(e[1]),o=Di(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${Ci(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const i=n.rgb,o=t.rgb;let r;const a=e===r?.5:e,s=2*a-1,l=i.a-o.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;r=1-c,i.r=255&c*i.r+r*o.r+.5,i.g=255&c*i.g+r*o.g+.5,i.b=255&c*i.b+r*o.b+.5,i.a=a*i.a+(1-a)*o.a,n.rgb=i}return n}clone(){return new Gi(this.rgb)}alpha(t){return this._rgb.a=Oi(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Si(.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 Wi(this._rgb,2,t),this}darken(t){return Wi(this._rgb,2,-t),this}saturate(t){return Wi(this._rgb,1,t),this}desaturate(t){return Wi(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Li(t);n[0]=Ii(n[0]+e),n=Ni(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Xi(t){return new Gi(t)}const qi=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Zi(t){return qi(t)?t:Xi(t)}function Ki(t){return qi(t)?t:Xi(t).saturate(.5).darken(.1).hexString()}const Ji=Object.create(null),Qi=Object.create(null);function to(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 eo(t,e,n){return"string"==typeof e?Ln(to(t,e),n):Ln(to(t,""),e)}var no=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)=>Ki(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ki(e.borderColor),this.hoverColor=(t,e)=>Ki(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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 eo(this,t,e)}get(t){return to(this,t)}describe(t,e){return eo(Qi,t,e)}override(t,e){return eo(Ji,t,e)}route(t,e,n,i){const o=to(this,t),r=to(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 Sn(t)?Object.assign({},e,t):On(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 io(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 oo(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!==wn(h))a=io(t,o,r,a,h);else if(wn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||wn(u)||(a=io(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 ro(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 ao(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function so(t,e,n,i){let o,r,a,s,l;const c=e.pointStyle,d=e.rotation,h=e.radius;let u=(d||0)*Gn;if(c&&"object"==typeof c&&(o=c.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(u),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void t.restore();if(!(isNaN(h)||h<=0)){switch(t.beginPath(),c){default:t.arc(n,i,h,0,Vn),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(u)*h,i-Math.cos(u)*h),u+=Zn,t.lineTo(n+Math.sin(u)*h,i-Math.cos(u)*h),u+=Zn,t.lineTo(n+Math.sin(u)*h,i-Math.cos(u)*h),t.closePath();break;case"rectRounded":l=.516*h,s=h-l,r=Math.cos(u+qn)*s,a=Math.sin(u+qn)*s,t.arc(n-r,i-a,l,u-Wn,u-Xn),t.arc(n+a,i-r,l,u-Xn,u),t.arc(n+r,i+a,l,u,u+Xn),t.arc(n-a,i+r,l,u+Xn,u+Wn),t.closePath();break;case"rect":if(!d){s=Math.SQRT1_2*h,t.rect(n-s,i-s,2*s,2*s);break}u+=qn;case"rectRot":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+a,i-r),t.lineTo(n+r,i+a),t.lineTo(n-a,i+r),t.closePath();break;case"crossRot":u+=qn;case"cross":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"star":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r),u+=qn,r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a),t.moveTo(n+a,i-r),t.lineTo(n-a,i+r);break;case"line":r=Math.cos(u)*h,a=Math.sin(u)*h,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(u)*h,i+Math.sin(u)*h)}t.fill(),e.borderWidth>0&&t.stroke()}}function lo(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 co(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ho(t){t.restore()}function uo(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 po(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 fo(t,e,n,i,o,r={}){const a=wn(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]);_n(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),_n(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),go(t,n,i,c,r),i+=o.lineHeight;t.restore()}function go(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 mo(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-Xn,Wn,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,Wn,Xn,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,Xn,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-Xn,!0),t.lineTo(n+a.topLeft,i)}const bo=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),xo=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function yo(t,e){const n=(""+t).match(bo);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 vo=t=>+t||0;function _o(t,e){const n={},i=Sn(e),o=i?Object.keys(e):e,r=Sn(t)?i?n=>On(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=vo(r(t));return n}function wo(t){return _o(t,{top:"y",right:"x",bottom:"y",left:"x"})}function So(t){return _o(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ko(t){const e=wo(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Eo(t,e){t=t||{},e=e||no.font;let n=On(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=On(t.style,e.style);i&&!(""+i).match(xo)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:On(t.family,e.family),lineHeight:yo(On(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:On(t.weight,e.weight),string:""};return o.string=function(t){return!t||_n(t.size)||_n(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Oo(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&&wn(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function Co(t,e){return Object.assign(Object.create(t),e)}function Do(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 Mo=(t,e,n)=>Do(t,n,i=>t[i][e]<n),To=(t,e,n)=>Do(t,n,i=>t[i][e]>=n);const Ao=["push","pop","shift","splice","unshift"];function $o(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||(Ao.forEach(e=>{delete t[e]}),delete t._chartjs)}function Ro(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)}function Lo(t,e=[""],n=t,i,o=()=>t[0]){Bn(i)||(i=Uo("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>Lo([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)=>zo(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=Uo(Io(r,t),n),Bn(o))return Fo(t,o)?Wo(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)=>jo(t).includes(e),ownKeys:t=>jo(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Po(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:No(t,i),setContext:e=>Po(t,e,n,i),override:o=>Po(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>zo(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=t;let s=i[e];Yn(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),Fo(t,e)&&(e=Wo(o._scopes,o,t,e));return e}(e,s,t,n));wn(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:s}=n;if(Bn(r.index)&&i(t))e=e[r.index%e.length];else if(Sn(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Wo(i,o,t,l);e.push(Po(n,r,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Fo(e,s)&&(s=Po(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 No(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:Yn(n)?n:()=>n,isIndexable:Yn(i)?i:()=>i}}const Io=(t,e)=>t?t+zn(e):e,Fo=(t,e)=>Sn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function zo(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Bo(t,e,n){return Yn(t)?t(e,n):t}const Yo=(t,e)=>!0===t?e:"string"==typeof t?Fn(e,t):void 0;function Ho(t,e,n,i,o){for(const r of e){const e=Yo(n,r);if(e){t.add(e);const r=Bo(e._fallback,n,o);if(Bn(r)&&r!==n&&r!==i)return r}else if(!1===e&&Bn(i)&&n!==i)return null}return!1}function Wo(t,e,n,i){const o=e._rootScopes,r=Bo(e._fallback,n,i),a=[...t,...o],s=new Set;s.add(i);let l=Vo(s,a,n,r||n,i);return null!==l&&((!Bn(r)||r===n||(l=Vo(s,a,r,l,i),null!==l))&&Lo(Array.from(s),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(wn(o)&&Sn(n))return n;return o}(e,n,i)))}function Vo(t,e,n,i,o){for(;n;)n=Ho(t,e,n,i,o);return n}function Uo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(Bn(e))return e}}function jo(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}const Go=Number.EPSILON||1e-14,Xo=(t,e)=>e<t.length&&!t[e].skip&&t[e],qo=t=>"x"===t?"y":"x";function Zo(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=si(r,o),l=si(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 Ko(t,e="x"){const n=qo(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=Xo(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=Xo(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?Jn(o[a-1])!==Jn(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=Xo(t,0);for(let d=0;d<i-1;++d)l=c,c=Xo(t,d+1),l&&c&&(ei(e[d],0,Go)?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=qo(n),o=t.length;let r,a,s,l=Xo(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=Xo(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 Jo(t,e,n){return Math.max(Math.min(t,n),e)}function Qo(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Ko(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=Zo(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=lo(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&lo(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=Jo(o.cp1x,e.left,e.right),o.cp1y=Jo(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Jo(o.cp2x,e.left,e.right),o.cp2y=Jo(o.cp2y,e.top,e.bottom)))}(t,n)}function tr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function er(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function nr(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 ir=t=>window.getComputedStyle(t,null);const or=["top","right","bottom","left"];function rr(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=or[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ar(t,e){const{canvas:n,currentDevicePixelRatio:i}=e,o=ir(n),r="border-box"===o.boxSizing,a=rr(o,"padding"),s=rr(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.native||t,i=n.touches,o=i&&i.length?i[0]:n,{offsetX:r,offsetY:a}=o;let s,l,c=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,a,n.target))s=r,l=a;else{const t=e.getBoundingClientRect();s=o.clientX-t.left,l=o.clientY-t.top,c=!0}return{x:s,y:l,box:c}}(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 sr=t=>Math.round(10*t)/10;function lr(t,e,n,i){const o=ir(t),r=rr(o,"margin"),a=nr(o.maxWidth,t,"clientWidth")||jn,s=nr(o.maxHeight,t,"clientHeight")||jn,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=er(t);if(r){const t=r.getBoundingClientRect(),a=ir(r),s=rr(a,"border","width"),l=rr(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=nr(a.maxWidth,r,"clientWidth"),o=nr(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||jn,maxHeight:o||jn}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=rr(o,"border","width"),e=rr(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=sr(Math.min(c,a,l.maxWidth)),d=sr(Math.min(d,s,l.maxHeight)),c&&!d&&(d=sr(c/2)),{width:c,height:d}}function cr(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 dr=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 hr(t,e){const n=function(t,e){return ir(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ur(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function pr(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 fr(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=ur(t,o,n),s=ur(o,r,n),l=ur(r,e,n),c=ur(a,s,n),d=ur(s,l,n);return ur(c,d,n)}const gr=new Map;function mr(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=gr.get(n);return i||(i=new Intl.NumberFormat(t,e),gr.set(n,i)),i}(e,n).format(t)}function br(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 xr(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 yr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function vr(t){return"angle"===t?{between:di,compare:li,normalize:ci}:{between:ui,compare:(t,e)=>t-e,normalize:t=>t}}function _r({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 wr(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=vr(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}=vr(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,y=null;const v=()=>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===y&&v()&&(y=0===s(g,o)?t:n),null!==y&&_()&&(f.push(_r({start:y,end:t,loop:u,count:a,style:p})),y=null),n=t,b=g));return null!==y&&f.push(_r({start:y,end:h,loop:u,count:a,style:p})),f}function Sr(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=wr(i[o],t.points,e);r.length&&n.push(...r)}return n}function kr(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=Er(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=Er(i.setContext(Co(o,{type:"segment",p0:r,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Or(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 Er(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Or(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
256
256
  /*!
257
257
  * Chart.js v3.7.0
258
258
  * https://www.chartjs.org
259
259
  * (c) 2021 Chart.js Contributors
260
260
  * Released under the MIT License
261
- */var Er=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=pn.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 Or="transparent",Cr={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Xi(t||Or),o=i.valid&&Xi(e||Or);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Dr{constructor(t,e,n,i){const o=e[n];i=ko([t.to,i,o,t.from]);const r=ko([t.from,o,i]);this._active=!0,this._fn=t.fn||Cr[t.type||typeof r],this._easing=fi[t.easing]||fi.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=ko([t.to,e,i,t.from]),this._from=ko([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]()}}to.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 Mr=Object.keys(to.animation);to.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),to.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),to.describe("animations",{_fallback:"animation"}),to.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 Tr{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!_n(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!_n(i))return;const o={};for(const t of Mr)o[t]=i[t];(vn(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 Dr(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?(Er.add(this._chart,n),!0):void 0}}function Ar(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 $r(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 Rr(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],wn(c)&&(r||0===e||Zn(e)===Zn(c))&&(e+=c)}return e}}function Lr(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Pr(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Nr(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 Ir(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]=Pr(o,d,r),u[s]=h,u._top=Nr(u,a,!0,i.type),u._bottom=Nr(u,a,!1,i.type)}}function Fr(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function zr(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 Br=t=>"reset"===t||"none"===t,Yr=(t,e)=>e?t:Object.assign({},t);class Hr{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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Lr(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&zr(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=kn(n.xAxisID,Fr(t,"x")),r=e.yAxisID=kn(n.yAxisID,Fr(t,"y")),a=e.rAxisID=kn(n.rAxisID,Fr(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&&To(this._data,this),t._stacked&&zr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(_n(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){To(n,this);const t=this._cachedMeta;zr(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]}}),Mo.forEach(t=>{const e="_onData"+In(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=Lr(e.vScale,e),e.stack!==n.stack&&(i=!0,zr(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ir(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=vn(i[t])?this.parseArrayData(n,i,t,e):_n(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&&Ir(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(Nn(u,a),h),y:r.parse(Nn(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 Rr({keys:$r(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=Rr(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:$r(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!wn(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],wn(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 _n(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}}(kn(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Ar(t,n),o=Ar(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 Eo(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 Eo(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&&Fn(n);if(a)return Yr(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(to.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[r]=Object.freeze(Yr(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 Tr(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||Br(t)||this.chart._animationsDisabled}updateElement(t,e,n,i){Br(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Br(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&&zr(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 Wr(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=Ao(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&&(Fn(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 Vr(t,e,n,i){return vn(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 Ur(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(Vr(u,h,r,c));return l}function jr(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Gr(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);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[Xr(d,a,s,l)]=!0,o=c)),r[Xr(o,a,s,l)]=!0,t.borderSkipped=r}function Xr(t,e,n,i){var o,r,a;return i?(a=n,t=qr(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=qr(t,e,n),t}function qr(t,e,n){return"start"===t?e:"end"===t?n:t}function Zr(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Hr.defaults={},Hr.prototype.datasetElementType=null,Hr.prototype.dataElementType=null;class Kr extends Hr{parsePrimitiveData(t,e,n,i){return Ur(t,e,n,i)}parseArrayData(t,e,n,i){return Ur(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(Nn(f,l),h),d.push(Vr(Nn(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=jr(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(),d=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(d),u=this.includeOptions(i,h);this.updateSharedOptions(h,i,d);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=o||yn(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(d),p=this._calculateBarIndexPixels(d,c),f=(e._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||jr(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};u&&(g.options=h||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;Gr(g,m,f,r),Zr(g,m,c.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const n=this._cachedMeta.iScale,i=n.getMatchingVisibleMetas(this._type),o=n.options.stacked,r=i.length,a=[];let s,l;for(s=0;s<r;++s)if(l=i[s],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if(yn(t)||isNaN(t))continue}if((!1===o||-1===a.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&a.push(l.stack),l.index===t)break}return a.length||a.push(void 0),a}_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||Wr(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=jr(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&&Zn(h)!==Zn(s.barEnd)&&(u=0),u+=h);const f=yn(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?Zn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,r)*o,h===r&&(g-=d/2),c=g+d),g===e.getPixelForValue(r)){const t=Zn(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=kn(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 yn(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)}}Kr.id="bar",Kr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Kr.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Jr extends Hr{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=kn(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=kn(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,s=this.resolveDataElementOptions(e,i),l=this.getSharedOptions(s),c=this.includeOptions(i,l),d=r.axis,h=a.axis;for(let s=e;s<e+n;s++){const e=t[s],n=!o&&this.getParsed(s),l={},u=l[d]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[d]),p=l[h]=o?a.getBasePixel():a.getPixelForValue(n[h]);l.skip=isNaN(u)||isNaN(p),c&&(l.options=this.resolveDataElementOptions(s,e.active?"active":i),o&&(l.options.radius=0)),this.updateElement(e,s,l,i)}this.updateSharedOptions(l,i,s)}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+=kn(n&&n._custom,o),i}}Jr.id="bubble",Jr.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Jr.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Qr extends Hr{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(_n(n[t])){const{key:t="value"}=this._parsing;a=e=>+Nn(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return ei(this.options.rotation-90)}_getCircumference(){return ei(this.options.circumference)}_getRotationExtents(){let t=Hn,e=-Hn;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<Hn){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)=>li(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>li(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(jn,d,u),b=f(Yn,c,h),x=f(Yn+jn,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,y=Math.max(Math.min(b,x)/2,0),v=En(this.options.radius,y),_=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,i.total=this.calculateTotal(),this.outerRadius=v-_*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/Hn)}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,p=this.resolveDataElementOptions(e,i),f=this.getSharedOptions(p),g=this.includeOptions(i,f);let m,b=this._getRotation();for(m=0;m<e;++m)b+=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:b,endAngle:b+e,circumference:e,outerRadius:u,innerRadius:h};g&&(r.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,r,i)}this.updateSharedOptions(f,i,p)}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)?Hn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=fr(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(kn(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Qr.id="doughnut",Qr.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"},Qr.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Qr.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 vn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class ta extends Hr{initialize(){this.enableOptionSharing=!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}=function(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=ci(Math.min(Co(s,a.axis,c).lo,n?i:Co(e,l,a.getPixelForValue(c)).lo),0,i-1)),r=u?ci(Math.max(Co(s,a.axis,d).hi+1,n?0:Co(e,l,a.getPixelForValue(d)).hi+1),o,i)-o:i-o}return{start:o,count:r}}(e,i,r);this._drawStart=a,this._drawCount=s,function(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}(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,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=Jn(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:{},y=yn(n[p]),v=f[u]=r.getPixelForValue(n[u],c),_=f[p]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(v)||isNaN(_)||y,f.stop=c>0&&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.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()}}ta.id="line",ta.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ta.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ea extends Hr{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=fr(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_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=this.getDataset(),s=r.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,h=l.getIndexAngle(0)-.5*Yn;let u,p=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)p+=this._computeAngle(u,i,f);for(u=e;u<e+n;u++){const e=t[u];let n=p,g=p+this._computeAngle(u,i,f),m=r.getDataVisibility(u)?l.getDistanceFromCenterForValue(a.data[u]):0;p=g,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=g=h));const b={x:c,y:d,innerRadius:0,outerRadius:m,startAngle:n,endAngle:g,options:this.resolveDataElementOptions(u,e.active?"active":i)};this.updateElement(e,u,b,i)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let n=0;return e.data.forEach((e,i)=>{!isNaN(t.data[i])&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?ei(this.resolveDataElementOptions(t,e).angle||n):0}}ea.id="polarArea",ea.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ea.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 na extends Qr{}na.id="pie",na.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ia extends Hr{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}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.getDataset(),r=this._cachedMeta.rScale,a="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),l=r.getPointPositionForValue(s,o.data[s]),c=a?r.xCenter:l.x,d=a?r.yCenter:l.y,h={x:c,y:d,angle:l.angle,skip:isNaN(c)||isNaN(d),options:n};this.updateElement(e,s,h,i)}}}ia.id="radar",ia.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ia.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class oa extends ta{}function ra(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}oa.id="scatter",oa.defaults={showLine:!1,fill:!1},oa.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class aa{constructor(t){this.options=t||{}}formats(){return ra()}parse(t,e){return ra()}format(t,e){return ra()}add(t,e,n){return ra()}diff(t,e,n){return ra()}startOf(t,e,n){return ra()}endOf(t,e){return ra()}}aa.override=function(t){Object.assign(aa.prototype,t)};var sa={_date:aa};function la(t,e){return"native"in t?{x:t.x,y:t.y}:or(t,e)}function ca(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?Do:Co;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 da(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}=ca(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function ha(t,e,n,i){const o=[];if(!ao(e,t.chartArea,t._minPadding))return o;return da(t,n,e,function(t,n,r){t.inRange(e.x,e.y,i)&&o.push({element:t,datasetIndex:n,index:r})},!0),o}function ua(t,e,n,i,o){let r=[];const a=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 s=Number.POSITIVE_INFINITY;return da(t,n,e,function(n,l,c){const d=n.inRange(e.x,e.y,o);if(i&&!d)return;const h=n.getCenterPoint(o);if(!ao(h,t.chartArea,t._minPadding)&&!d)return;const u=a(e,h);u<s?(r=[{element:n,datasetIndex:l,index:c}],s=u):u===s&&r.push({element:n,datasetIndex:l,index:c})}),r}function pa(t,e,n,i,o){return ao(e,t.chartArea,t._minPadding)?"r"!==n||i?ua(t,e,n,i,o):function(t,e,n,i){let o=[];return da(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=oi(t,{x:e.x,y:e.y});li(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function fa(t,e,n,i){const o=la(e,t),r=[],a=n.axis,s="x"===a?"inXRange":"inYRange";let l=!1;return function(t,e){const n=t.getSortedVisibleDatasetMetas();let i,o,r;for(let t=0,a=n.length;t<a;++t){({index:i,data:o}=n[t]);for(let t=0,n=o.length;t<n;++t)r=o[t],r.skip||e(r,i,t)}}(t,(t,e,n)=>{t[s](o[a],i)&&r.push({element:t,datasetIndex:e,index:n}),t.inRange(o.x,o.y,i)&&(l=!0)}),n.intersect&&!l?[]:r}var ga={modes:{index(t,e,n,i){const o=la(e,t),r=n.axis||"x",a=n.intersect?ha(t,o,r,i):pa(t,o,r,!1,i),s=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&s.push({element:n,datasetIndex:t.index,index:e})}),s):[]},dataset(t,e,n,i){const o=la(e,t),r=n.axis||"xy";let a=n.intersect?ha(t,o,r,i):pa(t,o,r,!1,i);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>ha(t,la(e,t),n.axis||"xy",i),nearest:(t,e,n,i)=>pa(t,la(e,t),n.axis||"xy",n.intersect,i),x:(t,e,n,i)=>fa(t,e,{axis:"x",intersect:n.intersect},i),y:(t,e,n,i)=>fa(t,e,{axis:"y",intersect:n.intersect},i)}};const ma=["left","top","right","bottom"];function ba(t,e){return t.filter(t=>t.pos===e)}function xa(t,e){return t.filter(t=>-1===ma.indexOf(t.pos)&&t.box.axis===e)}function ya(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 va(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!ma.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 _a(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function wa(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 Sa(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!_n(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&&wa(a,r.getPadding());const s=Math.max(0,e.outerWidth-_a(a,t,"left","right")),l=Math.max(0,e.outerHeight-_a(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 ka(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 Ea(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,ka(s.horizontal,e));const{same:a,other:h}=Sa(e,n,s,i);c|=a&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Ea(o,e,n,i)||d}function Oa(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 Ca(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;Fn(l.start)&&(a=l.start),t.fullSize?Oa(t,o.left,a,n.outerWidth-o.right-o.left,r):Oa(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;Fn(l.start)&&(r=l.start),t.fullSize?Oa(t,r,o.top,a,n.outerHeight-o.bottom-o.top):Oa(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}to.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Da={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=wo(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=ya(e.filter(t=>t.box.fullSize),!0),i=ya(ba(e,"left"),!0),o=ya(ba(e,"right")),r=ya(ba(e,"top"),!0),a=ya(ba(e,"bottom")),s=xa(e,"x"),l=xa(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:ba(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;Cn(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);wa(u,wo(i));const p=Object.assign({maxPadding:u,w:r,h:a,x:o.left,y:o.top},o),f=va(l.concat(c),h);Ea(s.fullSize,p,h,f),Ea(l,p,h,f),Ea(c,p,h,f)&&Ea(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),Ca(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ca(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},Cn(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 Ma{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 Ta extends Ma{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Aa="$chartjs",$a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ra=t=>null===t||""===t;const La=!!lr&&{passive:!0};function Pa(t,e,n){t.canvas.removeEventListener(e,n,La)}function Na(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ia(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Na(n.addedNodes,i),e=e&&!Na(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Fa(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Na(n.removedNodes,i),e=e&&!Na(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const za=new Map;let Ba=0;function Ya(){const t=window.devicePixelRatio;t!==Ba&&(Ba=t,za.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ha(t,e,n){const i=t.canvas,o=i&&Qo(i);if(!o)return;const r=fn((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){za.size||window.addEventListener("resize",Ya),za.set(t,e)}(t,r),a}function Wa(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){za.delete(t),za.size||window.removeEventListener("resize",Ya)}(t)}function Va(t,e,n){const i=t.canvas,o=fn(e=>{null!==t.ctx&&n(function(t,e){const n=$a[t.type]||t.type,{x:i,y:o}=or(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,La)}(i,e,o),o}class Ua extends Ma{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[Aa]={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",Ra(o)){const e=cr(t,"width");void 0!==e&&(t.width=e)}if(Ra(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=cr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Aa])return!1;const n=e[Aa].initial;["height","width"].forEach(t=>{const i=n[t];yn(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[Aa],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Ia,detach:Fa,resize:Ha}[e]||Va;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Wa,detach:Wa,resize:Wa}[e]||Pa)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return ar(t,e,n,i)}isAttached(t){const e=Qo(t);return!(!e||!e.isConnected)}}class ja{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 Jn(this.x)&&Jn(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}}ja.defaults={},ja.defaultRoutes=void 0;const Ga={values:t=>vn(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=qn(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),fr(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(qn(t)));return 1===i||2===i||5===i?Ga.numeric.call(this,t,e,n):""}};var Xa={formatters:Ga};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,yn(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,yn(i)?e.length:s+i),l}return Za(e,l,c),l}function Za(t,e,n,i,o){const r=kn(i,0),a=Math.min(kn(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))}to.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}}),to.route("scale.ticks","color","","color"),to.route("scale.grid","color","","borderColor"),to.route("scale.grid","borderColor","","borderColor"),to.route("scale.title","color","","color"),to.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),to.describe("scales",{_fallback:"scale"}),to.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=So(t.font,e),i=wo(t.padding);return(vn(t.text)?t.text.length:1)*n.lineHeight+i.height}function ns(t,e,n){let i=gn(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class is extends ja{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=Sn(t,Number.POSITIVE_INFINITY),e=Sn(e,Number.NEGATIVE_INFINITY),n=Sn(n,Number.POSITIVE_INFINITY),i=Sn(i,Number.NEGATIVE_INFINITY),{min:Sn(t,n),max:Sn(e,i),minDefined:wn(t),maxDefined:wn(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:Sn(n,Sn(i,n)),max:Sn(i,Sn(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(){On(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=En(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),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(){On(this.options.afterUpdate,[this])}beforeSetDimensions(){On(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(){On(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),On(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){On(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=On(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){On(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){On(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=ci(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=ni(Math.min(Math.asin(ci((c.highest.height+6)/r,-1,1)),Math.asin(ci(a/s,-1,1))-Math.asin(ci(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){On(this.options.afterCalculateLabelRotation,[this])}beforeFit(){On(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=ei(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:(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(){On(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++)yn(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,yn(c)||vn(c)){if(vn(c))for(s=0,l=c.length;s<l;++s)m=c[s],yn(m)||vn(m)||(f=eo(n,u.data,u.gc,f,m),g+=p)}else f=eo(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){Cn(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 y=o.indexOf(b),v=r.indexOf(x),_=t=>({width:o[t]||0,height:r[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),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 ci(this._alignToPixels?io(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 Eo(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Eo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ei(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 io(n,t,u)};let g,m,b,x,y,v,_,w,S,k,E,O;if("top"===r)g=f(this.bottom),v=this.bottom-c,w=g-p,k=f(t.top)+p,O=t.bottom;else if("bottom"===r)g=f(this.top),k=t.top,O=f(t.bottom)-p,v=g+p,w=this.top+c;else if("left"===r)g=f(this.right),y=this.right-c,_=g-p,S=f(t.left)+p,E=t.right;else if("right"===r)g=f(this.left),S=t.left,E=f(t.right)-p,y=g+p,_=this.left+c;else if("x"===e){if("center"===r)g=f((t.top+t.bottom)/2+.5);else if(_n(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}k=t.top,O=t.bottom,v=g+p,w=v+c}else if("y"===e){if("center"===r)g=f((t.left+t.right)/2);else if(_n(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}y=g-p,_=y-c,S=t.left,E=t.right}const C=kn(i.ticks.maxTicksLimit,l),D=Math.max(1,Math.ceil(l/C));for(m=0;m<l;m+=D){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,r=o.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=io(n,b,e),s?y=_=S=E=x:v=w=k=O=x,d.push({tx1:y,ty1:v,tx2:_,ty2:w,x1:S,y1:k,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=-ei(this.labelRotation),g=[];let m,b,x,y,v,_,w,S,k,E,O,C,D="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,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(_n(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)v=(t.left+t.right)/2-u;else if(_n(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?D="top":"end"===s&&(D="bottom"));const M=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){x=a[m],y=x.label;const t=o.setContext(this.getContext(m));S=this.getPixelForTick(m)+o.labelOffset,k=this._resolveTickFontOptions(m),E=k.lineHeight,O=vn(y)?y.length:1;const e=O/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h;if(r?(v=S,C="top"===i?"near"===l||0!==f?-O*E+E/2:"center"===l?-M.highest.height/2-e*E+E:-M.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?M.highest.height/2-e*E:M.highest.height-O*E,d&&(C*=-1)):(_=S,C=(1-O)*E/2),t.showLabelBackdrop){const e=wo(t.backdropPadding),n=M.heights[m],i=M.widths[m];let o=_+C-e.top,r=v-e.left;switch(D){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:y,font:k,color:n,strokeColor:s,strokeWidth:c,textOffset:C,textAlign:w,textBaseline:D,translation:[v,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ei(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),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=io(t,this.left,o)-o/2,l=io(t,this.right,r)+r/2,c=d=a):(c=io(t,this.top,o)-o/2,d=io(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&&so(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)),uo(e,r,0,t.textOffset,n,t)}n&&lo(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=So(n.font),r=wo(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||_n(e)?(s+=r.bottom,vn(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=mn(i,r,s),_n(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(_n(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=mn(i,a,o),f="left"===n?-jn:jn}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,a);uo(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=kn(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 So(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=$n(Object.create(null),[n?to.get(n):{},to.get(e),t.defaults]);to.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(".");to.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&to.describe(e,t.descriptors)}(t,r,n),this.override&&to.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 to[i]&&(delete to[i][n],this.override&&delete Zi[n])}}var rs=new class{constructor(){this.controllers=new os(Hr,"datasets",!0),this.elements=new os(ja,"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):Cn(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=In(t);On(n["before"+i],[],n),e[t](n),On(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{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===On(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){yn(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=kn(n.options&&n.options.plugins,{}),o=function(t){const e=[],n=Object.keys(rs.plugins.items);for(let t=0;t<n.length;t++)e.push(rs.getPlugin(n[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const n=i[t];-1===e.indexOf(n)&&e.push(n)}return e}(n);return!1!==i||e?function(t,e,n,i){const o=[],r=t.getContext();for(let a=0;a<e.length;a++){const s=e[a],l=ss(n[s.id],i);null!==l&&o.push({plugin:s,options:ls(t.config,s,l,r)})}return o}(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 ss(t,e){return e||!1!==t?!0===t?{}:t:null}function ls(t,e,n,i){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return t.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function cs(t,e){const n=to.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function ds(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 hs(t){const e=t.options||(t.options={});e.plugins=kn(e.plugins,{}),e.scales=function(t,e){const n=Zi[t.type]||{scales:{}},i=e.scales||{},o=cs(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!_n(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=ds(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};r[s]=r[s]||t,a[t]=Rn(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||cs(o,e),l=(Zi[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),Rn(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];Rn(e,[to.scales[e.type],to.scale])}),a}(t,e)}function us(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ps=new Map,fs=new Set;function gs(t,e){let n=ps.get(t);return n||(n=e(),ps.set(t,n),fs.add(n)),n}const ms=(t,e,n)=>{const i=Nn(e,n);void 0!==i&&t.add(i)};class bs{constructor(t){this._config=function(t){return(t=t||{}).data=us(t.data),hs(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=us(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(),hs(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return gs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return gs(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return gs(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return gs(`${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=>ms(s,t,e))),e.forEach(t=>ms(s,i,t)),e.forEach(t=>ms(s,Zi[o]||{},t)),e.forEach(t=>ms(s,to,t)),e.forEach(t=>ms(s,Ki,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),fs.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Zi[e]||{},to.datasets[e]||{},{type:e},to,Ki]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=xs(this._resolverCache,t,i);let s=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=Lo(t);for(const o of e){const e=n(o),r=i(o),a=(r||e)&&t[o];if(e&&(zn(a)||ys(a))||r&&vn(a))return!0}return!1}(r,e)){o.$shared=!1;s=Ro(r,n=zn(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}=xs(this._resolverCache,t,n);return _n(e)?Ro(o,e,void 0,i):o}}function xs(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:$o(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const ys=t=>_n(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||zn(t[n]),!1);const vs=["top","bottom","left","right","chartArea"];function _s(t,e){return"top"===t||"bottom"===t||-1===vs.indexOf(t)&&"x"===e}function ws(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ss(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),On(n&&n.onComplete,[t],e)}function ks(t){const e=t.chart,n=e.options.animation;On(n&&n.onProgress,[t],e)}function Es(t){return Jo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Os={},Cs=t=>{const e=Es(t);return Object.values(Os).filter(t=>t.canvas===e).pop()};function Ds(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 Ms{constructor(t,e){const n=this.config=new bs(e),i=Es(t),o=Cs(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Jo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ta:Ua}(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=xn(),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 as,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=[],Os[this.id]=this,a&&s?(Er.listen(this,"complete",Ss),Er.listen(this,"progress",ks),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 yn(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():sr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return oo(this.canvas,this.ctx),this}stop(){return Er.stop(this),this}resize(t,e){Er.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,sr(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),On(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Cn(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=ds(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),Cn(o,e=>{const o=e.options,r=o.id,a=ds(r,o),s=kn(o.type,e.dtype);void 0!==o.position&&_s(o.position,a)===_s(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)}),Cn(i,(t,e)=>{t||delete n[e]}),Cn(n,t=>{Da.configure(this,t,t.options),Da.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(ws("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||cs(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}=to.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(){Cn(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||Cn(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ws("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Cn(this.scales,t=>{Da.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Bn(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){Ds(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(!Bn(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;Da.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Cn(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,zn(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})&&(Er.has(this)?this.attached&&!Er.running(this)&&Er.start(this):(this.draw(),Ss({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&&so(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&&lo(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,n,i){const o=ga.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=Eo(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);Fn(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(),Er.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(),oo(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Os[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)};Cn(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(){Cn(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Cn(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}});!Dn(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:ao(t,this.chartArea,this._minPadding)},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,On(o.onHover,[t,a,this],this),s&&On(o.onClick,[t,a,this],this));const c=!Dn(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 Ts=()=>Cn(Ms.instances,t=>t._plugins.invalidate()),As=!0;function $s(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+jn,i-jn),t.closePath(),t.clip()}function Rs(t,e,n,i){const o=yo(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 ci(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:ci(o.innerStart,0,a),innerEnd:ci(o.innerEnd,0,a)}}function Ls(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ps(t,e,n,i,o){const{x:r,y:a,startAngle:s,pixelMargin:l,innerRadius:c}=e,d=Math.max(e.outerRadius+i+n-l,0),h=c>0?c+i+n+l:0;let u=0;const p=o-s;if(i){const t=((c>0?c-i:0)+(d>0?d-i:0))/2;u=(p-(0!==t?p*t/(t+i):p))/2}const f=(p-Math.max(.001,p*d-n/Yn)/d)/2,g=s+f+u,m=o-f-u,{outerStart:b,outerEnd:x,innerStart:y,innerEnd:v}=Rs(e,h,d,m-g),_=d-b,w=d-x,S=g+b/_,k=m-x/w,E=h+y,O=h+v,C=g+y/E,D=m-v/O;if(t.beginPath(),t.arc(r,a,d,S,k),x>0){const e=Ls(w,k,r,a);t.arc(e.x,e.y,x,k,m+jn)}const M=Ls(O,m,r,a);if(t.lineTo(M.x,M.y),v>0){const e=Ls(O,D,r,a);t.arc(e.x,e.y,v,m+jn,D+Math.PI)}if(t.arc(r,a,h,m-v/h,g+y/h,!0),y>0){const e=Ls(E,C,r,a);t.arc(e.x,e.y,y,C+Math.PI,g-jn)}const T=Ls(_,g,r,a);if(t.lineTo(T.x,T.y),b>0){const e=Ls(_,S,r,a);t.arc(e.x,e.y,b,g-jn,S)}t.closePath()}function Ns(t,e,n,i,o){const{options:r}=e,{borderWidth:a,borderJoinStyle:s}=r,l="inner"===r.borderAlign;a&&(l?(t.lineWidth=2*a,t.lineJoin=s||"round"):(t.lineWidth=a,t.lineJoin=s||"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&&$s(t,e,r+Hn),t.beginPath(),t.arc(i,o,c,r+Hn,r,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+Hn),d=0;d<s;++d)t.stroke()}(t,e,l),l&&$s(t,e,o),Ps(t,e,n,i,o),t.stroke())}Object.defineProperties(Ms,{defaults:{enumerable:As,value:to},instances:{enumerable:As,value:Os},overrides:{enumerable:As,value:Zi},registry:{enumerable:As,value:rs},version:{enumerable:As,value:"3.7.0"},getChart:{enumerable:As,value:Cs},register:{enumerable:As,value:(...t)=>{rs.add(...t),Ts()}},unregister:{enumerable:As,value:(...t)=>{rs.remove(...t),Ts()}}});class Is extends ja{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}=oi(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=kn(d,s-a)>=Hn||li(o,a,s),p=di(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;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Hn?Math.floor(n/Hn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=Yn&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,i){const{fullCircles:o,startAngle:r,circumference:a}=e;let s=e.endAngle;if(o){Ps(t,e,n,i,r+Hn);for(let e=0;e<o;++e)t.fill();isNaN(a)||(s=r+a%Hn,a%Hn===0&&(s+=Hn))}return Ps(t,e,n,i,s),t.fill(),s}(t,this,r,o);Ns(t,this,r,o,a),t.restore()}}function Fs(t,e,n=e){t.lineCap=kn(n.borderCapStyle,e.borderCapStyle),t.setLineDash(kn(n.borderDash,e.borderDash)),t.lineDashOffset=kn(n.borderDashOffset,e.borderDashOffset),t.lineJoin=kn(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=kn(n.borderWidth,e.borderWidth),t.strokeStyle=kn(n.borderColor,e.borderColor)}function zs(t,e,n){t.lineTo(n.x,n.y)}function Bs(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 Ys(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=Bs(o,n,i),d=function(t){return t.stepped?co:t.tension||"monotone"===t.cubicInterpolationMode?ho:zs}(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 Hs(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=Bs(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,y=()=>{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):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}y()}function Ws(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Hs:Ys}Is.id="arc",Is.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Is.defaultRoutes={backgroundColor:"backgroundColor"};const Vs="function"==typeof Path2D;function Us(t,e,n,i){Vs&&!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()),Fs(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Ws(e);for(const s of o)Fs(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 js extends ja{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;Ko(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 wr(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=_r(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?hr:t.tension||"monotone"===t.cubicInterpolationMode?ur:dr}(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 Ws(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Ws(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(),Us(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Gs(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}js.id="line",js.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},js.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},js.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Xs extends ja{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 Gs(this,t,"x",e)}inYRange(t,e){return Gs(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||!ao(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,ro(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function qs(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 Zs(t,e,n,i){return t?0:ci(e,n,i)}function Ks(t){const e=qs(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=vo(i);return{t:Zs(o.top,r.top,0,n),r:Zs(o.right,r.right,0,e),b:Zs(o.bottom,r.bottom,0,n),l:Zs(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=_o(o),a=Math.min(e,n),s=t.borderSkipped,l=i||_n(o);return{topLeft:Zs(!l||s.top||s.left,r.topLeft,0,a),topRight:Zs(!l||s.top||s.right,r.topRight,0,a),bottomLeft:Zs(!l||s.bottom||s.left,r.bottomLeft,0,a),bottomRight:Zs(!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 Js(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&qs(t,i);return a&&(o||di(e,a.left,a.right))&&(r||di(n,a.top,a.bottom))}function Qs(t,e){t.rect(e.x,e.y,e.w,e.h)}function tl(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}}Xs.id="point",Xs.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Xs.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class el extends ja{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}=Ks(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?fo:Qs;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,tl(r,e,o)),t.clip(),a(t,tl(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,tl(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Js(this,t,e,n)}inXRange(t,e){return Js(this,t,null,e)}inYRange(t,e){return Js(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 nl(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=kn(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(_n(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return wn(o)&&Math.floor(o)===o?("-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}el.id="bar",el.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},el.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class il{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:Hn},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 ol(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=[],a=i.reverse?e.max:e.min,s=i.reverse?e.min:e.max;let l,c,d;if(d="start"===n?a:"end"===n?s:_n(n)?n.value:e.getBaseValue(),i.grid.circular)return c=e.getPointPositionForValue(0,a),new il({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(d)});for(l=0;l<o;++l)r.push(e.getPointPositionForValue(l,d));return r}(t):function(t){const{scale:e={},fill:n}=t;let i,o=null;return"start"===n?o=e.bottom:"end"===n?o=e.top:_n(n)?o=e.getPixelForValue(n.value):e.getBasePixel&&(o=e.getBasePixel()),wn(o)?(i=e.isHorizontal(),{x:i?o:null,y:i?null:o}):null}(t)}function rl(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function al(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=sl(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function sl(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(di(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}function ll(t){const{chart:e,fill:n,line:i}=t;if(wn(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?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(cl({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++)al(o,a[t],s)}return new js({points:o,options:{}})}(t);if("shape"===n)return!0;const o=ol(t);return o instanceof il?o:cl(o,i)}function cl(t,e){let n=[],i=!1;return vn(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=rl(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 js({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function dl(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(!wn(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function hl(t,e,n){t.beginPath(),e.path(t),t.lineTo(e.last().x,n),t.lineTo(e.first().x,n),t.closePath(),t.clip()}function ul(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=si(o),r=si(r)),{property:t,start:o,end:r}}function pl(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function fl(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 gl(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}function ml(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=rl(i,s,o);const l=ul(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=_r(e,l);for(const e of c){const i=ul(n,r[e.start],r[e.end],e.loop),s=vr(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:pl(l,i,"start",Math.max)},end:{[n]:pl(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,fl(t,a,h&&ul(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():gl(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||gl(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function bl(t,e,n){const i=ll(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&&(so(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&&(hl(t,i,a.top),ml(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),hl(t,i,a.bottom)),ml(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}),lo(t))}var xl={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 js&&(l={visible:t.isDatasetVisible(a),index:a,fill:nl(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=dl(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&&bl(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;n&&bl(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;i&&!1!==i.fill&&"beforeDatasetDraw"===n.drawTime&&bl(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const yl=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class vl extends ja{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=On(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=So(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=yl(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=gr(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=mn(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=mn(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=mn(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=mn(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;so(t,this),this._draw(),lo(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=to.color,s=gr(t.rtl,this.left,this.width),l=So(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}=yl(r,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:mn(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:mn(o,this.top+x+d,this.bottom-e[0].height),line:0},mr(this.ctx,t.textDirection);const y=m+d;this.legendItems.forEach((v,_)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const w=i.measureText(v.text).width,S=s.textAlign(v.textAlign||(v.textAlign=r.textAlign)),k=f+u+w;let E=p.x,O=p.y;s.setWidth(this.width),b?_>0&&E+k+d>this.right&&(O=p.y+=y,p.line++,E=p.x=mn(o,this.left+d,this.right-n[p.line])):_>0&&O+y>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,O=p.y=mn(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=kn(n.lineWidth,1);if(i.fillStyle=kn(n.fillStyle,a),i.lineCap=kn(n.lineCap,"butt"),i.lineDashOffset=kn(n.lineDashOffset,0),i.lineJoin=kn(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=kn(n.strokeStyle,a),i.setLineDash(kn(n.lineDash,[])),r.usePointStyle){const r={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},a=s.xPlus(t,f/2);ro(i,r,a,e+u)}else{const r=e+Math.max((h-g)/2,0),a=s.leftForLtr(t,f),l=_o(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?fo(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,v),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(S,E+f+u,b?E+k:this.right,t.rtl),function(t,e,n){uo(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),O,v),b?p.x+=k+d:p.y+=y}),br(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=So(e.font),i=wo(e.padding);if(!e.display)return;const o=gr(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=mn(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+mn(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=mn(a,d,d+h);r.textAlign=o.textAlign(gn(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,uo(r,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=So(t.font),n=wo(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(di(t,this.left,this.right)&&di(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],di(t,i.left,i.left+i.width)&&di(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&&(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){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&On(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&On(e.onHover,[t,n,this],this)}else n&&On(e.onClick,[t,n,this],this);var i,o}}var _l={id:"legend",_element:vl,start(t,e,n){const i=t.legend=new vl({ctx:t.ctx,options:n,chart:t});Da.configure(t,i,n),Da.addBox(t,i)},stop(t){Da.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Da.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=wo(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 wl={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=ri(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 Sl(t,e){return e&&(vn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function kl(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function El(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 Ol(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=So(e.bodyFont),c=So(e.titleFont),d=So(e.footerFont),h=r.length,u=o.length,p=i.length,f=wo(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 y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,Cn(t.title,y),n.font=l.string,Cn(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?a+2+e.boxPadding:0,Cn(i,t=>{Cn(t.before,y),Cn(t.lines,y),Cn(t.after,y)}),x=0,n.font=d.string,Cn(t.footer,y),n.restore(),m+=f.width,{width:m,height:g}}function Cl(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 Dl(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||Cl(t,e,n,i),yAlign:i}}function Ml(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}=_o(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:ci(f,0,i.width-e.width),y:ci(g,0,i.height-e.height)}}function Tl(t,e,n){const i=wo(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Al(t){return Sl([],kl(t))}function $l(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Rl extends ja{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 Tr(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,Eo(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=Sl(a,kl(i)),a=Sl(a,kl(o)),a=Sl(a,kl(r)),a}getBeforeBody(t,e){return Al(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return Cn(t,t=>{const e={before:[],lines:[],after:[]},o=$l(n,t);Sl(e.before,kl(o.beforeLabel.call(this,t))),Sl(e.lines,o.label.call(this,t)),Sl(e.after,kl(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Al(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=Sl(a,kl(i)),a=Sl(a,kl(o)),a=Sl(a,kl(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(El(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))),Cn(l,e=>{const n=$l(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=wl[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=Ol(this,n),a=Object.assign({},t,e),s=Dl(this.chart,n,a),l=Ml(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}=_o(a),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(g=h,m=g-r,x=y+r,v=y-r):(g=h+p,m=g+r,x=y-r,v=y+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,y=x-r,g=m-r,b=m+r):(x=u+f,y=x+r,g=m+r,b=m-r),v=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=gr(n.rtl,this.x,this.width);for(t.x=Tl(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=So(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=So(o.bodyFont),h=Tl(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,ro(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,ro(t,e,n,c)}else{t.lineWidth=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=_o(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,fo(t,{x:e,y:f,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),fo(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=So(n.bodyFont);let h=d.lineHeight,u=0;const p=gr(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,y,v,_,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=Tl(this,g,n),e.fillStyle=n.bodyColor,Cn(this.beforeBody,f),u=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,Cn(m.before,f),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,w=x.length;v<w;++v)f(x[v]),h=d.lineHeight;Cn(m.after,f)}u=0,h=d.lineHeight,Cn(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=gr(n.rtl,this.x,this.width);for(t.x=Tl(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=So(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}=_o(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=wl[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=Ol(this,t),a=Object.assign({},n,this._size),s=Dl(e,t,a),l=Ml(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))}}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=wo(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),mr(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),br(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=!Dn(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||!Dn(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=wl[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}Rl.positioners=wl;var Ll={id:"tooltip",_element:Rl,positioners:wl,afterInit(t,e,n){n&&(t.tooltip=new Rl({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,n={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",n)&&(e&&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:bn,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:bn,beforeBody:bn,beforeLabel:bn,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 yn(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:bn,afterBody:bn,beforeFooter:bn,footer:bn,afterFooter:bn}},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 Pl(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 Nl 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(yn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ci(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Pl(n,t,kn(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 Il(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=!yn(r),b=!yn(a),x=!yn(l),y=(g-f)/(d+1);let v,_,w,S,k=Kn((g-f)/p/u)*u;if(k<1e-14&&!m&&!b)return[{value:f},{value:g}];S=Math.ceil(g/k)-Math.floor(f/k),S>p&&(k=Kn(S*k/p/u)*u),yn(s)||(v=Math.pow(10,s),k=Math.ceil(k*v)/v),"ticks"===i?(_=Math.floor(f/k)*k,w=Math.ceil(g/k)*k):(_=f,w=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-r)/o,k/1e3)?(S=Math.round(Math.min((a-r)/k,c)),k=(a-r)/S,_=r,w=a):x?(_=m?r:_,w=b?a:w,S=l-1,k=(w-_)/S):(S=(w-_)/k,S=Qn(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(ii(k),ii(_));v=Math.pow(10,yn(s)?E:s),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let O=0;for(m&&(h&&_!==r?(n.push({value:r}),_<r&&O++,Qn(Math.round((_+O*k)*v)/v,r,Fl(r,y,t))&&O++):_<r&&O++);O<S;++O)n.push({value:Math.round((_+O*k)*v)/v});return b&&h&&w!==a?n.length&&Qn(n[n.length-1].value,a,Fl(a,y,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}function Fl(t,e,{horizontal:n,minRotation:i}){const o=ei(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Nl.id="category",Nl.defaults={ticks:{callback:Nl.prototype.getLabelForValue}};class zl 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 yn(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=Zn(i),e=Zn(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=Il({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&&ti(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 fr(t,this.chart.options.locale,this.options.ticks.format)}}class Bl extends zl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=wn(t)?t:0,this.max=wn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=ei(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 Yl(t){return 1===t/Math.pow(10,Math.floor(qn(t)))}Bl.id="linear",Bl.defaults={ticks:{callback:Xa.formatters.numeric}};class Hl 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=zl.prototype.parse.apply(this,[t,e]);if(0!==n)return wn(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=wn(t)?Math.max(0,t):null,this.max=wn(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(qn(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(qn(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=Sn(t.min,Math.pow(10,Math.floor(qn(e.min)))),a=Math.floor(qn(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:Yl(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=Sn(t.max,r);return o.push({value:c,major:Yl(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ti(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":fr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=qn(t),this._valueRange=qn(this.max)-qn(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(qn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Wl(t){const e=t.ticks;if(e.display&&t.display){const t=wo(e.backdropPadding);return kn(e.font&&e.font.size,to.font.size)+t.height}return 0}function Vl(t,e,n){return n=vn(n)?n:[n],{w:no(t,e.string,n),h:n.length*e.lineHeight}}function Ul(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 jl(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?Yn/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=So(r.font),h=Vl(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=si(t.getIndexAngle(l)+s),p=Math.round(ni(u));Gl(n,e,u,Ul(p,c.x,h.w,0,180),Ul(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=Wl(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?Yn/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(ni(si(o.angle+jn))),d=e[r],h=Zl(o.y,d.h,c),u=Xl(c),p=ql(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 Gl(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 Xl(t){return 0===t||180===t?"center":t<180?"left":"right"}function ql(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Zl(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Kl(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,Hn);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)}}Hl.id="logarithmic",Hl.defaults={ticks:{callback:Xa.formatters.logarithmic,major:{enabled:!0}}};class Jl extends zl{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=wo(Wl(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=wn(t)&&!isNaN(t)?t:0,this.max=wn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Wl(this.options))}generateTickLabels(t){zl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=On(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?jl(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 si(t*(Hn/(this._pointLabels.length||1))+ei(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(yn(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(yn(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 Eo(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-jn+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(),Kl(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=So(e.font),{x:a,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!yn(p)){const t=wo(e.backdropPadding);n.fillStyle=p,n.fillRect(c-t.left,d-t.top,h-c+t.width,u-d+t.height)}uo(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(),Kl(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=So(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=wo(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}uo(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}Jl.id="radialLinear",Jl.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}},Jl.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Jl.descriptors={angleLines:{_fallback:"grid"}};const Ql={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}},tc=Object.keys(Ql);function ec(t,e){return t-e}function nc(t,e){if(yn(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)),wn(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!Jn(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function ic(t,e,n,i){const o=tc.length;for(let r=tc.indexOf(t);r<o-1;++r){const t=Ql[tc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return tc[r]}return tc[o-1]}function oc(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Oo(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function rc(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 ac 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 sa._date(t.adapters.date);Rn(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:nc(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=wn(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=wn(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?ic(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=tc.length-1;r>=tc.indexOf(n);r--){const n=tc[r];if(Ql[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return tc[n?tc.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=tc.indexOf(t)+1,n=tc.length;e<n;++e)if(Ql[tc[e]].common)return tc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),rc(this,r,this._majorUnit)}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=ci(i,0,r),o=ci(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||ic(o.minUnit,e,n,this._getLabelCapacity(e)),a=kn(o.stepSize,1),s="week"===r&&o.isoWeekday,l=Jn(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++)oc(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||oc(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?On(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=ei(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,rc(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(nc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ao(t.sort(ec))}}function sc(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}=Co(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}=Co(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}ac.id="time",ac.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class lc extends ac{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=sc(e,this.min),this._tableRange=sc(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(sc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return sc(this._table,n*this._tableRange+this._minPos,!0)}}lc.id="timeseries",lc.defaults=ac.defaults;const cc="label";function dc(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function hc(t,e){t.labels=e}function uc(t,e,n=cc){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 pc(t,e=cc){const n={labels:[],datasets:[]};return hc(n,t.labels),uc(n,t.datasets,e),n}function fc({height:e=150,width:n=300,redraw:i=!1,datasetIdKey:o,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,...h},u){const p=t.useRef(null),f=t.useRef(),g=()=>{p.current&&(f.current=new Ms(p.current,{type:r,data:pc(s,o),options:l,plugins:c}),dc(u,f.current))},m=()=>{dc(u,null),f.current&&(f.current.destroy(),f.current=null)};return t.useEffect(()=>{var t,e;!i&&f.current&&l&&(t=f.current,e=l,t.options={...e})},[i,l]),t.useEffect(()=>{!i&&f.current&&hc(f.current.config.data,s.labels)},[i,s.labels]),t.useEffect(()=>{!i&&f.current&&s.datasets&&uc(f.current.config.data,s.datasets,o)},[i,s.datasets]),t.useEffect(()=>{f.current&&(i?(m(),setTimeout(g)):f.current.update())},[i,l,s.labels,s.datasets]),t.useEffect(()=>(g(),()=>m()),[]),a.default.createElement("canvas",Object.assign({ref:p,role:"img",height:e,width:n},h),d)}const gc=t.forwardRef(fc);Ms.register(Nl,Bl,Xs,js,ta,Ll,_l,xl);const mc=ee.div`
261
+ */var Cr=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=gn.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 Dr="transparent",Mr={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Zi(t||Dr),o=i.valid&&Zi(e||Dr);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Tr{constructor(t,e,n,i){const o=e[n];i=Oo([t.to,i,o,t.from]);const r=Oo([t.from,o,i]);this._active=!0,this._fn=t.fn||Mr[t.type||typeof r],this._easing=mi[t.easing]||mi.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=Oo([t.to,e,i,t.from]),this._from=Oo([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]()}}no.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 Ar=Object.keys(no.animation);no.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),no.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),no.describe("animations",{_fallback:"animation"}),no.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 $r{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Sn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!Sn(i))return;const o={};for(const t of Ar)o[t]=i[t];(wn(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 Tr(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?(Cr.add(this._chart,n),!0):void 0}}function Rr(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 Lr(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 Pr(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],kn(c)&&(r||0===e||Jn(e)===Jn(c))&&(e+=c)}return e}}function Nr(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ir(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Fr(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 zr(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]=Ir(o,d,r),u[s]=h,u._top=Fr(u,a,!0,i.type),u._bottom=Fr(u,a,!1,i.type)}}function Br(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Yr(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 Hr=t=>"reset"===t||"none"===t,Wr=(t,e)=>e?t:Object.assign({},t);class Vr{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.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Nr(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Yr(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=On(n.xAxisID,Br(t,"x")),r=e.yAxisID=On(n.yAxisID,Br(t,"y")),a=e.rAxisID=On(n.rAxisID,Br(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&&$o(this._data,this),t._stacked&&Yr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Sn(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){$o(n,this);const t=this._cachedMeta;Yr(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]}}),Ao.forEach(t=>{const e="_onData"+zn(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=Nr(e.vScale,e),e.stack!==n.stack&&(i=!0,Yr(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&zr(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=wn(i[t])?this.parseArrayData(n,i,t,e):Sn(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&&zr(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(Fn(u,a),h),y:r.parse(Fn(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 Pr({keys:Lr(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=Pr(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:Lr(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!kn(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],kn(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 Sn(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}}(On(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Rr(t,n),o=Rr(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 Co(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 Co(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&&Bn(n);if(a)return Wr(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(no.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[r]=Object.freeze(Wr(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 $r(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||Hr(t)||this.chart._animationsDisabled}updateElement(t,e,n,i){Hr(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Hr(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&&Yr(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 Ur(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=Ro(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&&(Bn(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 jr(t,e,n,i){return wn(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 Gr(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(jr(u,h,r,c));return l}function Xr(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function qr(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);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[Zr(d,a,s,l)]=!0,o=c)),r[Zr(o,a,s,l)]=!0,t.borderSkipped=r}function Zr(t,e,n,i){var o,r,a;return i?(a=n,t=Kr(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=Kr(t,e,n),t}function Kr(t,e,n){return"start"===t?e:"end"===t?n:t}function Jr(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Vr.defaults={},Vr.prototype.datasetElementType=null,Vr.prototype.dataElementType=null;class Qr extends Vr{parsePrimitiveData(t,e,n,i){return Gr(t,e,n,i)}parseArrayData(t,e,n,i){return Gr(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(Fn(f,l),h),d.push(jr(Fn(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=Xr(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(),d=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(d),u=this.includeOptions(i,h);this.updateSharedOptions(h,i,d);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=o||_n(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(d),p=this._calculateBarIndexPixels(d,c),f=(e._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Xr(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};u&&(g.options=h||this.resolveDataElementOptions(d,t[d].active?"active":i));const m=g.options||t[d].options;qr(g,m,f,r),Jr(g,m,c.ratio),this.updateElement(t[d],d,g,i)}}_getStacks(t,e){const n=this._cachedMeta.iScale,i=n.getMatchingVisibleMetas(this._type),o=n.options.stacked,r=i.length,a=[];let s,l;for(s=0;s<r;++s)if(l=i[s],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if(_n(t)||isNaN(t))continue}if((!1===o||-1===a.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&a.push(l.stack),l.index===t)break}return a.length||a.push(void 0),a}_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||Ur(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=Xr(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&&Jn(h)!==Jn(s.barEnd)&&(u=0),u+=h);const f=_n(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?Jn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,r)*o,h===r&&(g-=d/2),c=g+d),g===e.getPixelForValue(r)){const t=Jn(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=On(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 _n(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)}}Qr.id="bar",Qr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Qr.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ta extends Vr{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=On(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=On(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,s=this.resolveDataElementOptions(e,i),l=this.getSharedOptions(s),c=this.includeOptions(i,l),d=r.axis,h=a.axis;for(let s=e;s<e+n;s++){const e=t[s],n=!o&&this.getParsed(s),l={},u=l[d]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[d]),p=l[h]=o?a.getBasePixel():a.getPixelForValue(n[h]);l.skip=isNaN(u)||isNaN(p),c&&(l.options=this.resolveDataElementOptions(s,e.active?"active":i),o&&(l.options.radius=0)),this.updateElement(e,s,l,i)}this.updateSharedOptions(l,i,s)}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+=On(n&&n._custom,o),i}}ta.id="bubble",ta.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ta.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class ea extends Vr{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(Sn(n[t])){const{key:t="value"}=this._parsing;a=e=>+Fn(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return ii(this.options.rotation-90)}_getCircumference(){return ii(this.options.circumference)}_getRotationExtents(){let t=Vn,e=-Vn;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<Vn){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)=>di(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>di(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(Xn,d,u),b=f(Wn,c,h),x=f(Wn+Xn,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,y=Math.max(Math.min(b,x)/2,0),v=Cn(this.options.radius,y),_=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,i.total=this.calculateTotal(),this.outerRadius=v-_*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/Vn)}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,p=this.resolveDataElementOptions(e,i),f=this.getSharedOptions(p),g=this.includeOptions(i,f);let m,b=this._getRotation();for(m=0;m<e;++m)b+=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:b,endAngle:b+e,circumference:e,outerRadius:u,innerRadius:h};g&&(r.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,r,i)}this.updateSharedOptions(f,i,p)}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)?Vn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=mr(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(On(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ea.id="doughnut",ea.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"},ea.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},ea.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 wn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class na extends Vr{initialize(){this.enableOptionSharing=!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}=function(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=hi(Math.min(Mo(s,a.axis,c).lo,n?i:Mo(e,l,a.getPixelForValue(c)).lo),0,i-1)),r=u?hi(Math.max(Mo(s,a.axis,d).hi+1,n?0:Mo(e,l,a.getPixelForValue(d)).hi+1),o,i)-o:i-o}return{start:o,count:r}}(e,i,r);this._drawStart=a,this._drawCount=s,function(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}(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,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=ti(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:{},y=_n(n[p]),v=f[u]=r.getPixelForValue(n[u],c),_=f[p]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(v)||isNaN(_)||y,f.stop=c>0&&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.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()}}na.id="line",na.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},na.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ia extends Vr{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=mr(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_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=this.getDataset(),s=r.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,h=l.getIndexAngle(0)-.5*Wn;let u,p=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)p+=this._computeAngle(u,i,f);for(u=e;u<e+n;u++){const e=t[u];let n=p,g=p+this._computeAngle(u,i,f),m=r.getDataVisibility(u)?l.getDistanceFromCenterForValue(a.data[u]):0;p=g,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=g=h));const b={x:c,y:d,innerRadius:0,outerRadius:m,startAngle:n,endAngle:g,options:this.resolveDataElementOptions(u,e.active?"active":i)};this.updateElement(e,u,b,i)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let n=0;return e.data.forEach((e,i)=>{!isNaN(t.data[i])&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?ii(this.resolveDataElementOptions(t,e).angle||n):0}}ia.id="polarArea",ia.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ia.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 oa extends ea{}oa.id="pie",oa.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class ra extends Vr{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}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.getDataset(),r=this._cachedMeta.rScale,a="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),l=r.getPointPositionForValue(s,o.data[s]),c=a?r.xCenter:l.x,d=a?r.yCenter:l.y,h={x:c,y:d,angle:l.angle,skip:isNaN(c)||isNaN(d),options:n};this.updateElement(e,s,h,i)}}}ra.id="radar",ra.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},ra.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class aa extends na{}function sa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}aa.id="scatter",aa.defaults={showLine:!1,fill:!1},aa.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class la{constructor(t){this.options=t||{}}formats(){return sa()}parse(t,e){return sa()}format(t,e){return sa()}add(t,e,n){return sa()}diff(t,e,n){return sa()}startOf(t,e,n){return sa()}endOf(t,e){return sa()}}la.override=function(t){Object.assign(la.prototype,t)};var ca={_date:la};function da(t,e){return"native"in t?{x:t.x,y:t.y}:ar(t,e)}function ha(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?To:Mo;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 ua(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}=ha(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function pa(t,e,n,i){const o=[];if(!lo(e,t.chartArea,t._minPadding))return o;return ua(t,n,e,function(t,n,r){t.inRange(e.x,e.y,i)&&o.push({element:t,datasetIndex:n,index:r})},!0),o}function fa(t,e,n,i,o){let r=[];const a=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 s=Number.POSITIVE_INFINITY;return ua(t,n,e,function(n,l,c){const d=n.inRange(e.x,e.y,o);if(i&&!d)return;const h=n.getCenterPoint(o);if(!lo(h,t.chartArea,t._minPadding)&&!d)return;const u=a(e,h);u<s?(r=[{element:n,datasetIndex:l,index:c}],s=u):u===s&&r.push({element:n,datasetIndex:l,index:c})}),r}function ga(t,e,n,i,o){return lo(e,t.chartArea,t._minPadding)?"r"!==n||i?fa(t,e,n,i,o):function(t,e,n,i){let o=[];return ua(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=ai(t,{x:e.x,y:e.y});di(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function ma(t,e,n,i){const o=da(e,t),r=[],a=n.axis,s="x"===a?"inXRange":"inYRange";let l=!1;return function(t,e){const n=t.getSortedVisibleDatasetMetas();let i,o,r;for(let t=0,a=n.length;t<a;++t){({index:i,data:o}=n[t]);for(let t=0,n=o.length;t<n;++t)r=o[t],r.skip||e(r,i,t)}}(t,(t,e,n)=>{t[s](o[a],i)&&r.push({element:t,datasetIndex:e,index:n}),t.inRange(o.x,o.y,i)&&(l=!0)}),n.intersect&&!l?[]:r}var ba={modes:{index(t,e,n,i){const o=da(e,t),r=n.axis||"x",a=n.intersect?pa(t,o,r,i):ga(t,o,r,!1,i),s=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&s.push({element:n,datasetIndex:t.index,index:e})}),s):[]},dataset(t,e,n,i){const o=da(e,t),r=n.axis||"xy";let a=n.intersect?pa(t,o,r,i):ga(t,o,r,!1,i);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>pa(t,da(e,t),n.axis||"xy",i),nearest:(t,e,n,i)=>ga(t,da(e,t),n.axis||"xy",n.intersect,i),x:(t,e,n,i)=>ma(t,e,{axis:"x",intersect:n.intersect},i),y:(t,e,n,i)=>ma(t,e,{axis:"y",intersect:n.intersect},i)}};const xa=["left","top","right","bottom"];function ya(t,e){return t.filter(t=>t.pos===e)}function va(t,e){return t.filter(t=>-1===xa.indexOf(t.pos)&&t.box.axis===e)}function _a(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 wa(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!xa.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 Sa(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ka(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 Ea(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!Sn(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&&ka(a,r.getPadding());const s=Math.max(0,e.outerWidth-Sa(a,t,"left","right")),l=Math.max(0,e.outerHeight-Sa(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 Oa(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 Ca(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,Oa(s.horizontal,e));const{same:a,other:h}=Ea(e,n,s,i);c|=a&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Ca(o,e,n,i)||d}function Da(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 Ma(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;Bn(l.start)&&(a=l.start),t.fullSize?Da(t,o.left,a,n.outerWidth-o.right-o.left,r):Da(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;Bn(l.start)&&(r=l.start),t.fullSize?Da(t,r,o.top,a,n.outerHeight-o.bottom-o.top):Da(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}no.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ta={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=ko(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=_a(e.filter(t=>t.box.fullSize),!0),i=_a(ya(e,"left"),!0),o=_a(ya(e,"right")),r=_a(ya(e,"top"),!0),a=_a(ya(e,"bottom")),s=va(e,"x"),l=va(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:ya(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;Mn(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);ka(u,ko(i));const p=Object.assign({maxPadding:u,w:r,h:a,x:o.left,y:o.top},o),f=wa(l.concat(c),h);Ca(s.fullSize,p,h,f),Ca(l,p,h,f),Ca(c,p,h,f)&&Ca(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),Ma(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ma(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},Mn(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 Aa{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 $a extends Aa{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ra="$chartjs",La={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Pa=t=>null===t||""===t;const Na=!!dr&&{passive:!0};function Ia(t,e,n){t.canvas.removeEventListener(e,n,Na)}function Fa(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function za(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fa(n.addedNodes,i),e=e&&!Fa(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Ba(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fa(n.removedNodes,i),e=e&&!Fa(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ya=new Map;let Ha=0;function Wa(){const t=window.devicePixelRatio;t!==Ha&&(Ha=t,Ya.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Va(t,e,n){const i=t.canvas,o=i&&er(i);if(!o)return;const r=mn((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){Ya.size||window.addEventListener("resize",Wa),Ya.set(t,e)}(t,r),a}function Ua(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Ya.delete(t),Ya.size||window.removeEventListener("resize",Wa)}(t)}function ja(t,e,n){const i=t.canvas,o=mn(e=>{null!==t.ctx&&n(function(t,e){const n=La[t.type]||t.type,{x:i,y:o}=ar(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,Na)}(i,e,o),o}class Ga extends Aa{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[Ra]={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",Pa(o)){const e=hr(t,"width");void 0!==e&&(t.width=e)}if(Pa(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=hr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ra])return!1;const n=e[Ra].initial;["height","width"].forEach(t=>{const i=n[t];_n(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[Ra],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:za,detach:Ba,resize:Va}[e]||ja;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Ua,detach:Ua,resize:Ua}[e]||Ia)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return lr(t,e,n,i)}isAttached(t){const e=er(t);return!(!e||!e.isConnected)}}class Xa{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 ti(this.x)&&ti(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}}Xa.defaults={},Xa.defaultRoutes=void 0;const qa={values:t=>wn(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=Kn(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),mr(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Kn(t)));return 1===i||2===i||5===i?qa.numeric.call(this,t,e,n):""}};var Za={formatters:qa};function Ka(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(Ja(e,l,c,_n(i)?0:a-i,a),t=0,n=r-1;t<n;t++)Ja(e,l,c,o[t],o[t+1]);return Ja(e,l,c,s,_n(i)?e.length:s+i),l}return Ja(e,l,c),l}function Ja(t,e,n,i,o){const r=On(i,0),a=Math.min(On(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))}no.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:Za.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),no.route("scale.ticks","color","","color"),no.route("scale.grid","color","","borderColor"),no.route("scale.grid","borderColor","","borderColor"),no.route("scale.title","color","","color"),no.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),no.describe("scales",{_fallback:"scale"}),no.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Qa=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ts(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 es(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 ns(t){return t.drawTicks?t.tickLength:0}function is(t,e){if(!t.display)return 0;const n=Eo(t.font,e),i=ko(t.padding);return(wn(t.text)?t.text.length:1)*n.lineHeight+i.height}function os(t,e,n){let i=bn(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class rs extends Xa{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=En(t,Number.POSITIVE_INFINITY),e=En(e,Number.NEGATIVE_INFINITY),n=En(n,Number.POSITIVE_INFINITY),i=En(i,Number.NEGATIVE_INFINITY),{min:En(t,n),max:En(e,i),minDefined:kn(t),maxDefined:kn(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:En(n,En(i,n)),max:En(i,En(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(){Dn(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=Cn(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?ts(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=Ka(this,this.ticks),this._labelSizes=null),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(){Dn(this.options.afterUpdate,[this])}beforeSetDimensions(){Dn(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(){Dn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Dn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Dn(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=Dn(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){Dn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Dn(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=hi(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-ns(t.grid)-e.padding-is(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=oi(Math.min(Math.asin(hi((c.highest.height+6)/r,-1,1)),Math.asin(hi(a/s,-1,1))-Math.asin(hi(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){Dn(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Dn(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=is(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=ns(o)+r):(t.height=this.maxHeight,t.width=ns(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),s=2*n.padding,l=ii(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:(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(){Dn(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++)_n(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=ts(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,_n(c)||wn(c)){if(wn(c))for(s=0,l=c.length;s<l;++s)m=c[s],_n(m)||wn(m)||(f=io(n,u.data,u.gc,f,m),g+=p)}else f=io(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){Mn(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 y=o.indexOf(b),v=r.indexOf(x),_=t=>({width:o[t]||0,height:r[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),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 hi(this._alignToPixels?ro(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 Co(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Co(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ii(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=ns(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return ro(n,t,u)};let g,m,b,x,y,v,_,w,S,k,E,O;if("top"===r)g=f(this.bottom),v=this.bottom-c,w=g-p,k=f(t.top)+p,O=t.bottom;else if("bottom"===r)g=f(this.top),k=t.top,O=f(t.bottom)-p,v=g+p,w=this.top+c;else if("left"===r)g=f(this.right),y=this.right-c,_=g-p,S=f(t.left)+p,E=t.right;else if("right"===r)g=f(this.left),S=t.left,E=f(t.right)-p,y=g+p,_=this.left+c;else if("x"===e){if("center"===r)g=f((t.top+t.bottom)/2+.5);else if(Sn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}k=t.top,O=t.bottom,v=g+p,w=v+c}else if("y"===e){if("center"===r)g=f((t.left+t.right)/2);else if(Sn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}y=g-p,_=y-c,S=t.left,E=t.right}const C=On(i.ticks.maxTicksLimit,l),D=Math.max(1,Math.ceil(l/C));for(m=0;m<l;m+=D){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,r=o.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=es(this,m,a),void 0!==b&&(x=ro(n,b,e),s?y=_=S=E=x:v=w=k=O=x,d.push({tx1:y,ty1:v,tx2:_,ty2:w,x1:S,y1:k,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=ns(n.grid),u=h+c,p=d?-c:u,f=-ii(this.labelRotation),g=[];let m,b,x,y,v,_,w,S,k,E,O,C,D="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,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(Sn(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)v=(t.left+t.right)/2-u;else if(Sn(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?D="top":"end"===s&&(D="bottom"));const M=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){x=a[m],y=x.label;const t=o.setContext(this.getContext(m));S=this.getPixelForTick(m)+o.labelOffset,k=this._resolveTickFontOptions(m),E=k.lineHeight,O=wn(y)?y.length:1;const e=O/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h;if(r?(v=S,C="top"===i?"near"===l||0!==f?-O*E+E/2:"center"===l?-M.highest.height/2-e*E+E:-M.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?M.highest.height/2-e*E:M.highest.height-O*E,d&&(C*=-1)):(_=S,C=(1-O)*E/2),t.showLabelBackdrop){const e=ko(t.backdropPadding),n=M.heights[m],i=M.widths[m];let o=_+C-e.top,r=v-e.left;switch(D){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:y,font:k,color:n,strokeColor:s,strokeWidth:c,textOffset:C,textAlign:w,textBaseline:D,translation:[v,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ii(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),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=ro(t,this.left,o)-o/2,l=ro(t,this.right,r)+r/2,c=d=a):(c=ro(t,this.top,o)-o/2,d=ro(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&&co(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)),fo(e,r,0,t.textOffset,n,t)}n&&ho(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=Eo(n.font),r=ko(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Sn(e)?(s+=r.bottom,wn(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=xn(i,r,s),Sn(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:Qa(t,n,e);h=s-r}else{if(Sn(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:Qa(t,n,e);p=xn(i,a,o),f="left"===n?-Xn:Xn}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,a);fo(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:os(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=On(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===rs.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 Eo(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class as{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=Ln(Object.create(null),[n?no.get(n):{},no.get(e),t.defaults]);no.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(".");no.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&no.describe(e,t.descriptors)}(t,r,n),this.override&&no.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 no[i]&&(delete no[i][n],this.override&&delete Ji[n])}}var ss=new class{constructor(){this.controllers=new as(Vr,"datasets",!0),this.elements=new as(Xa,"elements"),this.plugins=new as(Object,"plugins"),this.scales=new as(rs,"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):Mn(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=zn(t);Dn(n["before"+i],[],n),e[t](n),Dn(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 ls{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===Dn(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){_n(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=On(n.options&&n.options.plugins,{}),o=function(t){const e=[],n=Object.keys(ss.plugins.items);for(let t=0;t<n.length;t++)e.push(ss.getPlugin(n[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const n=i[t];-1===e.indexOf(n)&&e.push(n)}return e}(n);return!1!==i||e?function(t,e,n,i){const o=[],r=t.getContext();for(let a=0;a<e.length;a++){const s=e[a],l=cs(n[s.id],i);null!==l&&o.push({plugin:s,options:ds(t.config,s,l,r)})}return o}(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 cs(t,e){return e||!1!==t?!0===t?{}:t:null}function ds(t,e,n,i){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return t.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hs(t,e){const n=no.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function us(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 ps(t){const e=t.options||(t.options={});e.plugins=On(e.plugins,{}),e.scales=function(t,e){const n=Ji[t.type]||{scales:{}},i=e.scales||{},o=hs(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!Sn(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=us(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};r[s]=r[s]||t,a[t]=Pn(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||hs(o,e),l=(Ji[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),Pn(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];Pn(e,[no.scales[e.type],no.scale])}),a}(t,e)}function fs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const gs=new Map,ms=new Set;function bs(t,e){let n=gs.get(t);return n||(n=e(),gs.set(t,n),ms.add(n)),n}const xs=(t,e,n)=>{const i=Fn(e,n);void 0!==i&&t.add(i)};class ys{constructor(t){this._config=function(t){return(t=t||{}).data=fs(t.data),ps(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=fs(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(),ps(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return bs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return bs(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return bs(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return bs(`${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=>xs(s,t,e))),e.forEach(t=>xs(s,i,t)),e.forEach(t=>xs(s,Ji[o]||{},t)),e.forEach(t=>xs(s,no,t)),e.forEach(t=>xs(s,Qi,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),ms.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ji[e]||{},no.datasets[e]||{},{type:e},no,Qi]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=vs(this._resolverCache,t,i);let s=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=No(t);for(const o of e){const e=n(o),r=i(o),a=(r||e)&&t[o];if(e&&(Yn(a)||_s(a))||r&&wn(a))return!0}return!1}(r,e)){o.$shared=!1;s=Po(r,n=Yn(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}=vs(this._resolverCache,t,n);return Sn(e)?Po(o,e,void 0,i):o}}function vs(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:Lo(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const _s=t=>Sn(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Yn(t[n]),!1);const ws=["top","bottom","left","right","chartArea"];function Ss(t,e){return"top"===t||"bottom"===t||-1===ws.indexOf(t)&&"x"===e}function ks(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Es(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Dn(n&&n.onComplete,[t],e)}function Os(t){const e=t.chart,n=e.options.animation;Dn(n&&n.onProgress,[t],e)}function Cs(t){return tr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ds={},Ms=t=>{const e=Cs(t);return Object.values(Ds).filter(t=>t.canvas===e).pop()};function Ts(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 As{constructor(t,e){const n=this.config=new ys(e),i=Cs(t),o=Ms(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!tr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?$a:Ga}(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=vn(),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 ls,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=[],Ds[this.id]=this,a&&s?(Cr.listen(this,"complete",Es),Cr.listen(this,"progress",Os),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 _n(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():cr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ao(this.canvas,this.ctx),this}stop(){return Cr.stop(this),this}resize(t,e){Cr.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,cr(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Dn(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Mn(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=us(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),Mn(o,e=>{const o=e.options,r=o.id,a=us(r,o),s=On(o.type,e.dtype);void 0!==o.position&&Ss(o.position,a)===Ss(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(ss.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),Mn(i,(t,e)=>{t||delete n[e]}),Mn(n,t=>{Ta.configure(this,t,t.options),Ta.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(ks("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||hs(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=ss.getController(r),{datasetElementType:i,dataElementType:a}=no.datasets[r];Object.assign(e.prototype,{dataElementType:ss.getElement(a),datasetElementType:i&&ss.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Mn(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||Mn(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ks("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Mn(this.scales,t=>{Ta.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Hn(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){Ts(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(!Hn(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;Ta.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Mn(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,Yn(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})&&(Cr.has(this)?this.attached&&!Cr.running(this)&&Cr.start(this):(this.draw(),Es({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&&co(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&&ho(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,n,i){const o=ba.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=Co(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);Bn(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(),Cr.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(),ao(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Ds[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)};Mn(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(){Mn(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Mn(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}});!Tn(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:lo(t,this.chartArea,this._minPadding)},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,Dn(o.onHover,[t,a,this],this),s&&Dn(o.onClick,[t,a,this],this));const c=!Tn(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 $s=()=>Mn(As.instances,t=>t._plugins.invalidate()),Rs=!0;function Ls(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+Xn,i-Xn),t.closePath(),t.clip()}function Ps(t,e,n,i){const o=_o(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 hi(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:hi(o.innerStart,0,a),innerEnd:hi(o.innerEnd,0,a)}}function Ns(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Is(t,e,n,i,o){const{x:r,y:a,startAngle:s,pixelMargin:l,innerRadius:c}=e,d=Math.max(e.outerRadius+i+n-l,0),h=c>0?c+i+n+l:0;let u=0;const p=o-s;if(i){const t=((c>0?c-i:0)+(d>0?d-i:0))/2;u=(p-(0!==t?p*t/(t+i):p))/2}const f=(p-Math.max(.001,p*d-n/Wn)/d)/2,g=s+f+u,m=o-f-u,{outerStart:b,outerEnd:x,innerStart:y,innerEnd:v}=Ps(e,h,d,m-g),_=d-b,w=d-x,S=g+b/_,k=m-x/w,E=h+y,O=h+v,C=g+y/E,D=m-v/O;if(t.beginPath(),t.arc(r,a,d,S,k),x>0){const e=Ns(w,k,r,a);t.arc(e.x,e.y,x,k,m+Xn)}const M=Ns(O,m,r,a);if(t.lineTo(M.x,M.y),v>0){const e=Ns(O,D,r,a);t.arc(e.x,e.y,v,m+Xn,D+Math.PI)}if(t.arc(r,a,h,m-v/h,g+y/h,!0),y>0){const e=Ns(E,C,r,a);t.arc(e.x,e.y,y,C+Math.PI,g-Xn)}const T=Ns(_,g,r,a);if(t.lineTo(T.x,T.y),b>0){const e=Ns(_,S,r,a);t.arc(e.x,e.y,b,g-Xn,S)}t.closePath()}function Fs(t,e,n,i,o){const{options:r}=e,{borderWidth:a,borderJoinStyle:s}=r,l="inner"===r.borderAlign;a&&(l?(t.lineWidth=2*a,t.lineJoin=s||"round"):(t.lineWidth=a,t.lineJoin=s||"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&&Ls(t,e,r+Vn),t.beginPath(),t.arc(i,o,c,r+Vn,r,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+Vn),d=0;d<s;++d)t.stroke()}(t,e,l),l&&Ls(t,e,o),Is(t,e,n,i,o),t.stroke())}Object.defineProperties(As,{defaults:{enumerable:Rs,value:no},instances:{enumerable:Rs,value:Ds},overrides:{enumerable:Rs,value:Ji},registry:{enumerable:Rs,value:ss},version:{enumerable:Rs,value:"3.7.0"},getChart:{enumerable:Rs,value:Ms},register:{enumerable:Rs,value:(...t)=>{ss.add(...t),$s()}},unregister:{enumerable:Rs,value:(...t)=>{ss.remove(...t),$s()}}});class zs extends Xa{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}=ai(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=On(d,s-a)>=Vn||di(o,a,s),p=ui(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;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Vn?Math.floor(n/Vn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=Wn&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,i){const{fullCircles:o,startAngle:r,circumference:a}=e;let s=e.endAngle;if(o){Is(t,e,n,i,r+Vn);for(let e=0;e<o;++e)t.fill();isNaN(a)||(s=r+a%Vn,a%Vn===0&&(s+=Vn))}return Is(t,e,n,i,s),t.fill(),s}(t,this,r,o);Fs(t,this,r,o,a),t.restore()}}function Bs(t,e,n=e){t.lineCap=On(n.borderCapStyle,e.borderCapStyle),t.setLineDash(On(n.borderDash,e.borderDash)),t.lineDashOffset=On(n.borderDashOffset,e.borderDashOffset),t.lineJoin=On(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=On(n.borderWidth,e.borderWidth),t.strokeStyle=On(n.borderColor,e.borderColor)}function Ys(t,e,n){t.lineTo(n.x,n.y)}function Hs(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 Ws(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=Hs(o,n,i),d=function(t){return t.stepped?uo:t.tension||"monotone"===t.cubicInterpolationMode?po:Ys}(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 Vs(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=Hs(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,y=()=>{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):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}y()}function Us(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Vs:Ws}zs.id="arc",zs.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},zs.defaultRoutes={backgroundColor:"backgroundColor"};const js="function"==typeof Path2D;function Gs(t,e,n,i){js&&!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()),Bs(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Us(e);for(const s of o)Bs(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 Xs extends Xa{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;Qo(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 kr(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=Sr(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?pr:t.tension||"monotone"===t.cubicInterpolationMode?fr:ur}(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 Us(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Us(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(),Gs(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function qs(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}Xs.id="line",Xs.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Xs.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Xs.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Zs extends Xa{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 qs(this,t,"x",e)}inYRange(t,e){return qs(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||!lo(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,so(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Ks(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 Js(t,e,n,i){return t?0:hi(e,n,i)}function Qs(t){const e=Ks(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=wo(i);return{t:Js(o.top,r.top,0,n),r:Js(o.right,r.right,0,e),b:Js(o.bottom,r.bottom,0,n),l:Js(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=So(o),a=Math.min(e,n),s=t.borderSkipped,l=i||Sn(o);return{topLeft:Js(!l||s.top||s.left,r.topLeft,0,a),topRight:Js(!l||s.top||s.right,r.topRight,0,a),bottomLeft:Js(!l||s.bottom||s.left,r.bottomLeft,0,a),bottomRight:Js(!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 tl(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&Ks(t,i);return a&&(o||ui(e,a.left,a.right))&&(r||ui(n,a.top,a.bottom))}function el(t,e){t.rect(e.x,e.y,e.w,e.h)}function nl(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}}Zs.id="point",Zs.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Zs.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class il extends Xa{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}=Qs(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?mo:el;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,nl(r,e,o)),t.clip(),a(t,nl(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,nl(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return tl(this,t,e,n)}inXRange(t,e){return tl(this,t,null,e)}inYRange(t,e){return tl(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 ol(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=On(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(Sn(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return kn(o)&&Math.floor(o)===o?("-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}il.id="bar",il.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},il.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class rl{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:Vn},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 al(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=[],a=i.reverse?e.max:e.min,s=i.reverse?e.min:e.max;let l,c,d;if(d="start"===n?a:"end"===n?s:Sn(n)?n.value:e.getBaseValue(),i.grid.circular)return c=e.getPointPositionForValue(0,a),new rl({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(d)});for(l=0;l<o;++l)r.push(e.getPointPositionForValue(l,d));return r}(t):function(t){const{scale:e={},fill:n}=t;let i,o=null;return"start"===n?o=e.bottom:"end"===n?o=e.top:Sn(n)?o=e.getPixelForValue(n.value):e.getBasePixel&&(o=e.getBasePixel()),kn(o)?(i=e.isHorizontal(),{x:i?o:null,y:i?null:o}):null}(t)}function sl(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ll(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=cl(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function cl(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(ui(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}function dl(t){const{chart:e,fill:n,line:i}=t;if(kn(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?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(hl({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++)ll(o,a[t],s)}return new Xs({points:o,options:{}})}(t);if("shape"===n)return!0;const o=al(t);return o instanceof rl?o:hl(o,i)}function hl(t,e){let n=[],i=!1;return wn(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=sl(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 Xs({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function ul(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(!kn(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function pl(t,e,n){t.beginPath(),e.path(t),t.lineTo(e.last().x,n),t.lineTo(e.first().x,n),t.closePath(),t.clip()}function fl(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=ci(o),r=ci(r)),{property:t,start:o,end:r}}function gl(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function ml(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 bl(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}function xl(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=sl(i,s,o);const l=fl(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=Sr(e,l);for(const e of c){const i=fl(n,r[e.start],r[e.end],e.loop),s=wr(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:gl(l,i,"start",Math.max)},end:{[n]:gl(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,ml(t,a,h&&fl(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():bl(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||bl(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function yl(t,e,n){const i=dl(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&&(co(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&&(pl(t,i,a.top),xl(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),pl(t,i,a.bottom)),xl(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}),ho(t))}var vl={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 Xs&&(l={visible:t.isDatasetVisible(a),index:a,fill:ol(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=ul(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&&yl(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;n&&yl(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;i&&!1!==i.fill&&"beforeDatasetDraw"===n.drawTime&&yl(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const _l=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class wl extends Xa{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=Dn(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=Eo(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=_l(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=br(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=xn(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=xn(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=xn(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=xn(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;co(t,this),this._draw(),ho(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=no.color,s=br(t.rtl,this.left,this.width),l=Eo(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}=_l(r,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:xn(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:xn(o,this.top+x+d,this.bottom-e[0].height),line:0},xr(this.ctx,t.textDirection);const y=m+d;this.legendItems.forEach((v,_)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const w=i.measureText(v.text).width,S=s.textAlign(v.textAlign||(v.textAlign=r.textAlign)),k=f+u+w;let E=p.x,O=p.y;s.setWidth(this.width),b?_>0&&E+k+d>this.right&&(O=p.y+=y,p.line++,E=p.x=xn(o,this.left+d,this.right-n[p.line])):_>0&&O+y>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,O=p.y=xn(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=On(n.lineWidth,1);if(i.fillStyle=On(n.fillStyle,a),i.lineCap=On(n.lineCap,"butt"),i.lineDashOffset=On(n.lineDashOffset,0),i.lineJoin=On(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=On(n.strokeStyle,a),i.setLineDash(On(n.lineDash,[])),r.usePointStyle){const r={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},a=s.xPlus(t,f/2);so(i,r,a,e+u)}else{const r=e+Math.max((h-g)/2,0),a=s.leftForLtr(t,f),l=So(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?mo(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,v),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(S,E+f+u,b?E+k:this.right,t.rtl),function(t,e,n){fo(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),O,v),b?p.x+=k+d:p.y+=y}),yr(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Eo(e.font),i=ko(e.padding);if(!e.display)return;const o=br(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=xn(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+xn(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=xn(a,d,d+h);r.textAlign=o.textAlign(bn(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,fo(r,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=Eo(t.font),n=ko(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(ui(t,this.left,this.right)&&ui(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ui(t,i.left,i.left+i.width)&&ui(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&&(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){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&Dn(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&Dn(e.onHover,[t,n,this],this)}else n&&Dn(e.onClick,[t,n,this],this);var i,o}}var Sl={id:"legend",_element:wl,start(t,e,n){const i=t.legend=new wl({ctx:t.ctx,options:n,chart:t});Ta.configure(t,i,n),Ta.addBox(t,i)},stop(t){Ta.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ta.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=ko(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 kl={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=si(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 El(t,e){return e&&(wn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ol(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Cl(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 Dl(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=Eo(e.bodyFont),c=Eo(e.titleFont),d=Eo(e.footerFont),h=r.length,u=o.length,p=i.length,f=ko(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 y=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,Mn(t.title,y),n.font=l.string,Mn(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?a+2+e.boxPadding:0,Mn(i,t=>{Mn(t.before,y),Mn(t.lines,y),Mn(t.after,y)}),x=0,n.font=d.string,Mn(t.footer,y),n.restore(),m+=f.width,{width:m,height:g}}function Ml(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 Tl(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||Ml(t,e,n,i),yAlign:i}}function Al(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}=So(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:hi(f,0,i.width-e.width),y:hi(g,0,i.height-e.height)}}function $l(t,e,n){const i=ko(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Rl(t){return El([],Ol(t))}function Ll(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Pl extends Xa{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 $r(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,Co(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=El(a,Ol(i)),a=El(a,Ol(o)),a=El(a,Ol(r)),a}getBeforeBody(t,e){return Rl(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return Mn(t,t=>{const e={before:[],lines:[],after:[]},o=Ll(n,t);El(e.before,Ol(o.beforeLabel.call(this,t))),El(e.lines,o.label.call(this,t)),El(e.after,Ol(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Rl(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=El(a,Ol(i)),a=El(a,Ol(o)),a=El(a,Ol(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(Cl(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))),Mn(l,e=>{const n=Ll(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=kl[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=Dl(this,n),a=Object.assign({},t,e),s=Tl(this.chart,n,a),l=Al(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}=So(a),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(g=h,m=g-r,x=y+r,v=y-r):(g=h+p,m=g+r,x=y-r,v=y+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,y=x-r,g=m-r,b=m+r):(x=u+f,y=x+r,g=m+r,b=m-r),v=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=br(n.rtl,this.x,this.width);for(t.x=$l(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=Eo(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=Eo(o.bodyFont),h=$l(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,so(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,so(t,e,n,c)}else{t.lineWidth=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=So(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,mo(t,{x:e,y:f,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),mo(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=Eo(n.bodyFont);let h=d.lineHeight,u=0;const p=br(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,y,v,_,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=$l(this,g,n),e.fillStyle=n.bodyColor,Mn(this.beforeBody,f),u=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(m=i[y],b=this.labelTextColors[y],e.fillStyle=b,Mn(m.before,f),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,w=x.length;v<w;++v)f(x[v]),h=d.lineHeight;Mn(m.after,f)}u=0,h=d.lineHeight,Mn(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=br(n.rtl,this.x,this.width);for(t.x=$l(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=Eo(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}=So(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=kl[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=Dl(this,t),a=Object.assign({},n,this._size),s=Tl(e,t,a),l=Al(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))}}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=ko(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),xr(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),yr(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=!Tn(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||!Tn(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=kl[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}Pl.positioners=kl;var Nl={id:"tooltip",_element:Pl,positioners:kl,afterInit(t,e,n){n&&(t.tooltip=new Pl({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,n={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",n)&&(e&&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:yn,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:yn,beforeBody:yn,beforeLabel:yn,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 _n(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:yn,afterBody:yn,beforeFooter:yn,footer:yn,afterFooter:yn}},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 Il(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 Fl extends rs{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(_n(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:hi(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Il(n,t,On(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 zl(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=!_n(r),b=!_n(a),x=!_n(l),y=(g-f)/(d+1);let v,_,w,S,k=Qn((g-f)/p/u)*u;if(k<1e-14&&!m&&!b)return[{value:f},{value:g}];S=Math.ceil(g/k)-Math.floor(f/k),S>p&&(k=Qn(S*k/p/u)*u),_n(s)||(v=Math.pow(10,s),k=Math.ceil(k*v)/v),"ticks"===i?(_=Math.floor(f/k)*k,w=Math.ceil(g/k)*k):(_=f,w=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-r)/o,k/1e3)?(S=Math.round(Math.min((a-r)/k,c)),k=(a-r)/S,_=r,w=a):x?(_=m?r:_,w=b?a:w,S=l-1,k=(w-_)/S):(S=(w-_)/k,S=ei(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(ri(k),ri(_));v=Math.pow(10,_n(s)?E:s),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let O=0;for(m&&(h&&_!==r?(n.push({value:r}),_<r&&O++,ei(Math.round((_+O*k)*v)/v,r,Bl(r,y,t))&&O++):_<r&&O++);O<S;++O)n.push({value:Math.round((_+O*k)*v)/v});return b&&h&&w!==a?n.length&&ei(n[n.length-1].value,a,Bl(a,y,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}function Bl(t,e,{horizontal:n,minRotation:i}){const o=ii(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Fl.id="category",Fl.defaults={ticks:{callback:Fl.prototype.getLabelForValue}};class Yl extends rs{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 _n(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=Jn(i),e=Jn(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=zl({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&&ni(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 mr(t,this.chart.options.locale,this.options.ticks.format)}}class Hl extends Yl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=kn(t)?t:0,this.max=kn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=ii(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 Wl(t){return 1===t/Math.pow(10,Math.floor(Kn(t)))}Hl.id="linear",Hl.defaults={ticks:{callback:Za.formatters.numeric}};class Vl extends rs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Yl.prototype.parse.apply(this,[t,e]);if(0!==n)return kn(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=kn(t)?Math.max(0,t):null,this.max=kn(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(Kn(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(Kn(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=En(t.min,Math.pow(10,Math.floor(Kn(e.min)))),a=Math.floor(Kn(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:Wl(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=En(t.max,r);return o.push({value:c,major:Wl(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ni(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":mr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Kn(t),this._valueRange=Kn(this.max)-Kn(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Kn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ul(t){const e=t.ticks;if(e.display&&t.display){const t=ko(e.backdropPadding);return On(e.font&&e.font.size,no.font.size)+t.height}return 0}function jl(t,e,n){return n=wn(n)?n:[n],{w:oo(t,e.string,n),h:n.length*e.lineHeight}}function Gl(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 Xl(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?Wn/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=Eo(r.font),h=jl(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=ci(t.getIndexAngle(l)+s),p=Math.round(oi(u));ql(n,e,u,Gl(p,c.x,h.w,0,180),Gl(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=Ul(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?Wn/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(oi(ci(o.angle+Xn))),d=e[r],h=Jl(o.y,d.h,c),u=Zl(c),p=Kl(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 ql(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 Zl(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kl(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Jl(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Ql(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,Vn);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)}}Vl.id="logarithmic",Vl.defaults={ticks:{callback:Za.formatters.logarithmic,major:{enabled:!0}}};class tc extends Yl{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=ko(Ul(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=kn(t)&&!isNaN(t)?t:0,this.max=kn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ul(this.options))}generateTickLabels(t){Yl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=Dn(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?Xl(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 ci(t*(Vn/(this._pointLabels.length||1))+ii(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(_n(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(_n(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 Co(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Xn+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(),Ql(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=Eo(e.font),{x:a,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!_n(p)){const t=ko(e.backdropPadding);n.fillStyle=p,n.fillRect(c-t.left,d-t.top,h-c+t.width,u-d+t.height)}fo(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(),Ql(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=Eo(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=ko(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}fo(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}tc.id="radialLinear",tc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Za.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},tc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},tc.descriptors={angleLines:{_fallback:"grid"}};const ec={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}},nc=Object.keys(ec);function ic(t,e){return t-e}function oc(t,e){if(_n(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)),kn(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!ti(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function rc(t,e,n,i){const o=nc.length;for(let r=nc.indexOf(t);r<o-1;++r){const t=ec[nc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return nc[r]}return nc[o-1]}function ac(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Do(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function sc(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 lc extends rs{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 ca._date(t.adapters.date);Pn(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:oc(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=kn(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=kn(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?rc(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=nc.length-1;r>=nc.indexOf(n);r--){const n=nc[r];if(ec[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return nc[n?nc.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=nc.indexOf(t)+1,n=nc.length;e<n;++e)if(ec[nc[e]].common)return nc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),sc(this,r,this._majorUnit)}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=hi(i,0,r),o=hi(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||rc(o.minUnit,e,n,this._getLabelCapacity(e)),a=On(o.stepSize,1),s="week"===r&&o.isoWeekday,l=ti(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++)ac(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||ac(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?Dn(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=ii(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,sc(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(oc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ro(t.sort(ic))}}function cc(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}=Mo(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}=Mo(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}lc.id="time",lc.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class dc extends lc{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=cc(e,this.min),this._tableRange=cc(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(cc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return cc(this._table,n*this._tableRange+this._minPos,!0)}}dc.id="timeseries",dc.defaults=lc.defaults;const hc="label";function uc(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function pc(t,e){t.labels=e}function fc(t,e,n=hc){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 gc(t,e=hc){const n={labels:[],datasets:[]};return pc(n,t.labels),fc(n,t.datasets,e),n}function mc({height:e=150,width:n=300,redraw:i=!1,datasetIdKey:o,type:r,data:a,options:l,plugins:c=[],fallbackContent:d,...h},u){const p=t.useRef(null),f=t.useRef(),g=()=>{p.current&&(f.current=new As(p.current,{type:r,data:gc(a,o),options:l,plugins:c}),uc(u,f.current))},m=()=>{uc(u,null),f.current&&(f.current.destroy(),f.current=null)};return t.useEffect(()=>{var t,e;!i&&f.current&&l&&(t=f.current,e=l,t.options={...e})},[i,l]),t.useEffect(()=>{!i&&f.current&&pc(f.current.config.data,a.labels)},[i,a.labels]),t.useEffect(()=>{!i&&f.current&&a.datasets&&fc(f.current.config.data,a.datasets,o)},[i,a.datasets]),t.useEffect(()=>{f.current&&(i?(m(),setTimeout(g)):f.current.update())},[i,l,a.labels,a.datasets]),t.useEffect(()=>(g(),()=>m()),[]),s.default.createElement("canvas",Object.assign({ref:p,role:"img",height:e,width:n},h),d)}const bc=t.forwardRef(mc);As.register(Fl,Hl,Zs,Xs,na,Nl,Sl,vl);const xc=ie.div`
262
262
  display: flex;
263
263
  flex-direction: column;
264
264
  justify-content: center;
265
265
  align-items: center;
266
- `,bc=ee(e.Tabs)`
266
+ `,yc=ie(e.Tabs)`
267
267
  width: ${t=>`${t.width}px`};
268
268
 
269
269
  & .ant-tabs-content-animated {
270
270
  transition: margin 1s ease-out;
271
271
  }
272
- `,xc=ee.span`
272
+ `,vc=ie.span`
273
273
  display: flex;
274
274
  gap: 0.25rem;
275
275
  margin-top: 10px;
276
- `,yc=ee.span`
276
+ `,_c=ie.span`
277
277
  height: 10px;
278
278
  width: 10px;
279
279
  background-color: ${t=>t.isActive?t.activeColor:"#d3d7de"};
280
280
  border-radius: 50%;
281
281
  display: inline-block;
282
- `;function vc({children:t,placement:n="bottomRight",overlayClassName:i=_c,arrowPointAtCenter:o=!0,trigger:r="hover",color:s,title:l,content:c,mouseEnterDelay:d=0,mouseLeaveDelay:h=0,isNew:u=!1,actionTitle:p,dismissTitle:f,maxWidth:g,onAction:m,onDismiss:b}){const x=g?{maxWidth:g}:void 0;return a.default.createElement(e.Tooltip,{overlayClassName:i,arrowPointAtCenter:o,trigger:r,color:s,placement:n,overlayStyle:x,title:a.default.createElement(wc,null,l&&a.default.createElement(en,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:$e.text.white}},l,!0===u&&a.default.createElement(kc,null,"New")),c,(p||f)&&a.default.createElement(Sc,null,a.default.createElement(Oc,{onClick:t=>{t.preventDefault(),b&&b()}},f),a.default.createElement(Ec,{onClick:t=>{t.preventDefault(),m&&m()}},p))),mouseEnterDelay:d,mouseLeaveDelay:h},a.default.createElement("span",{style:{display:"inline"}},t))}const _c=ht`
282
+ `;function wc({children:t,placement:n="bottomRight",overlayClassName:i=Sc,arrowPointAtCenter:o=!0,trigger:r="hover",color:a,title:l,content:c,mouseEnterDelay:d=0,mouseLeaveDelay:h=0,isNew:u=!1,actionTitle:p,dismissTitle:f,maxWidth:g,onAction:m,onDismiss:b}){const x=g?{maxWidth:g}:void 0;return s.default.createElement(e.Tooltip,{overlayClassName:i,arrow:o?{pointAtCenter:!0}:void 0,trigger:r,color:a,placement:n,overlayStyle:x,title:s.default.createElement(kc,null,l&&s.default.createElement(on,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:Le.text.white}},l,!0===u&&s.default.createElement(Oc,null,"New")),c,(p||f)&&s.default.createElement(Ec,null,s.default.createElement(Dc,{onClick:t=>{t.preventDefault(),b&&b()}},f),s.default.createElement(Cc,{onClick:t=>{t.preventDefault(),m&&m()}},p))),mouseEnterDelay:d,mouseLeaveDelay:h},s.default.createElement("span",{style:{display:"inline"}},t))}const Sc=pt`
283
283
  max-width: 200px;
284
- font-family: ${he};
284
+ font-family: ${pe};
285
285
  font-size: ${exports.FONT_SIZE.P1};
286
286
  font-weight: ${exports.FONT_WEIGHT.REGULAR};
287
- color: ${$e.text.white};
287
+ color: ${Le.text.white};
288
288
  box-shadow: none;
289
289
 
290
290
  .ant-tooltip-inner {
291
291
  padding: 12px;
292
292
  border-radius: 8px;
293
293
  box-shadow: none;
294
- background-color: ${$e.brand.primary.contrast};
294
+ background-color: ${Le.brand.primary.contrast};
295
295
  }
296
296
 
297
- ${de} {
297
+ ${ue} {
298
298
  max-width: 250px;
299
299
  }
300
300
 
@@ -303,15 +303,15 @@
303
303
  height: 16px;
304
304
 
305
305
  .ant-tooltip-arrow-content {
306
- background-color: ${$e.brand.primary.contrast};
306
+ background-color: ${Le.brand.primary.contrast};
307
307
  box-shadow: none;
308
308
  width: 16px;
309
309
  height: 16px;
310
310
  }
311
311
  }
312
- `,wc=ee.div`
312
+ `,kc=ie.div`
313
313
  line-height: 22px;
314
- `,Sc=ee.div`
314
+ `,Ec=ie.div`
315
315
  margin: 24px 0 0 0;
316
316
  display: flex;
317
317
  justify-content: flex-end;
@@ -319,28 +319,28 @@
319
319
  a {
320
320
  margin: 0 0 0 20px;
321
321
  }
322
- `,kc=ee.span`
322
+ `,Oc=ie.span`
323
323
  display: inline-block;
324
324
  margin: 0 0 0 8px;
325
325
  padding: 2px 6px;
326
326
  background-color: ${exports.GREEN_COLORS.G400};
327
- color: ${$e.text.white};
327
+ color: ${Le.text.white};
328
328
  font-size: ${exports.FONT_SIZE.SMALL};
329
329
  font-weight: ${exports.FONT_WEIGHT.BOLD};
330
330
  border-radius: 4px;
331
- `,Ec=ee.a`
331
+ `,Cc=ie.a`
332
332
  font-weight: ${exports.FONT_WEIGHT.BOLD};
333
- color: ${$e.brand.action.default};
333
+ color: ${Le.brand.action.default};
334
334
  &:hover {
335
- color: ${$e.brand.action.hover};
335
+ color: ${Le.brand.action.hover};
336
336
  }
337
- `,Oc=ee.a`
337
+ `,Dc=ie.a`
338
338
  font-weight: ${exports.FONT_WEIGHT.BOLD};
339
- color: ${$e.text.white};
339
+ color: ${Le.text.white};
340
340
  &:hover {
341
- color: ${$e.text.white};
341
+ color: ${Le.text.white};
342
342
  }
343
- `;Re('@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}');const Cc={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Dc=({icon:t,size:e="m",fill:n=0,color:i=exports.NEUTRAL_COLORS.BLACK,className:o="",style:r})=>{const s="string"==typeof e?Cc[e]:e,l=Object.assign({fontVariationSettings:`'FILL' ${n}, 'wght' 400`,fontSize:s,color:i},r);return a.default.createElement("span",{className:`material-symbols-rounded ${o}`,style:l,translate:"no"},t)},Mc={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Tc={sm:"xs",lg:"s"},Ac={positive:{base:$e.color.surface.subduePositive,text:$e.color.status.positive,icon:$e.color.status.positive,border:$e.color.status.positive},critical:{base:$e.color.surface.subdueCritical,text:$e.color.status.critical,icon:$e.color.status.critical,border:$e.color.status.critical},warning:{base:$e.color.surface.subdueWarning,text:$e.color.status.warning,icon:$e.color.status.warning,border:$e.color.status.warning},info:{base:$e.color.surface.SubdueInfo,text:$e.color.status.info,icon:$e.color.status.info,border:$e.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:$e.color.base.onNeutralSecondary,icon:$e.color.base.onNeutralSecondary,border:$e.color.base.line}},$c={positive:{base:$e.color.status.positive,text:$e.color.base.onContainer,icon:"",border:$e.color.status.positive},neutral:{base:$e.color.surface.disabledSurface,text:$e.color.surface.disabledOnSurface,icon:"",border:$e.color.base.line}},Rc={positive:{base:$e.color.surface.subduePositive,text:$e.color.status.positive,icon:$e.color.status.positive,border:$e.color.status.positive},disabled:{base:$e.color.surface.disabledSurface,text:$e.color.surface.disabledOnSurface,icon:$e.color.surface.disabledOnSurface,border:$e.color.base.line},neutral:{base:$e.color.surface.neutral,text:$e.color.base.onNeutralSecondary,icon:$e.color.base.onNeutralSecondary,border:$e.color.base.line}};function Lc(t,e,n){switch(e){case"outlined":default:return Ac[t][n];case"filled":return $c[t][n];case"removable":return Rc[t][n]}}function Pc({type:t,children:e,showIcon:n=!1,size:i="sm",variant:o="outlined",onClick:r}){return a.default.createElement(Ic,{type:t,size:i,variant:o,onClick:"removable"!==o?r:void 0},n&&"disabled"!==t&&a.default.createElement(Dc,{icon:Mc[t],size:Tc[i],color:Lc(t,o,"icon")}),a.default.createElement(gt.Body,{size:i,color:Lc(t,o,"text")},e),"removable"===o&&a.default.createElement(Nc,{onMouseDown:t=>{t.preventDefault(),t.stopPropagation()},onClick:t=>{t.preventDefault(),t.stopPropagation(),null==r||r()},type:"tertiary",icon:a.default.createElement(Dc,{icon:"close",size:Tc[i],color:Lc(t,o,"icon")})}))}const Nc=ee(je)`
343
+ `;Pe('@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}');const Mc={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Tc=({icon:t,size:e="m",fill:n=0,color:i=exports.NEUTRAL_COLORS.BLACK,className:o="",style:r})=>{const a="string"==typeof e?Mc[e]:e,l=Object.assign({fontVariationSettings:`'FILL' ${n}, 'wght' 400`,fontSize:a,color:i},r);return s.default.createElement("span",{className:`material-symbols-rounded ${o}`,style:l,translate:"no"},t)},Ac={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},$c={sm:"xs",lg:"s"},Rc={positive:{base:Le.color.surface.subduePositive,text:Le.color.status.positive,icon:Le.color.status.positive,border:Le.color.status.positive},critical:{base:Le.color.surface.subdueCritical,text:Le.color.status.critical,icon:Le.color.status.critical,border:Le.color.status.critical},warning:{base:Le.color.surface.subdueWarning,text:Le.color.status.warning,icon:Le.color.status.warning,border:Le.color.status.warning},info:{base:Le.color.surface.SubdueInfo,text:Le.color.status.info,icon:Le.color.status.info,border:Le.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:Le.color.base.onNeutralSecondary,icon:Le.color.base.onNeutralSecondary,border:Le.color.base.line}},Lc={positive:{base:Le.color.status.positive,text:Le.color.base.onContainer,icon:"",border:Le.color.status.positive},neutral:{base:Le.color.surface.disabledSurface,text:Le.color.surface.disabledOnSurface,icon:"",border:Le.color.base.line}},Pc={positive:{base:Le.color.surface.subduePositive,text:Le.color.status.positive,icon:Le.color.status.positive,border:Le.color.status.positive},disabled:{base:Le.color.surface.disabledSurface,text:Le.color.surface.disabledOnSurface,icon:Le.color.surface.disabledOnSurface,border:Le.color.base.line},neutral:{base:Le.color.surface.neutral,text:Le.color.base.onNeutralSecondary,icon:Le.color.base.onNeutralSecondary,border:Le.color.base.line}};function Nc(t,e,n){switch(e){case"outlined":default:return Rc[t][n];case"filled":return Lc[t][n];case"removable":return Pc[t][n]}}function Ic({type:t,children:e,showIcon:n=!1,size:i="sm",variant:o="outlined",onClick:r}){return s.default.createElement(zc,{type:t,size:i,variant:o,onClick:"removable"!==o?r:void 0},n&&"disabled"!==t&&s.default.createElement(Tc,{icon:Ac[t],size:$c[i],color:Nc(t,o,"icon")}),s.default.createElement(bt.Body,{size:i,color:Nc(t,o,"text")},e),"removable"===o&&s.default.createElement(Fc,{onMouseDown:t=>{t.preventDefault(),t.stopPropagation()},onClick:t=>{t.preventDefault(),t.stopPropagation(),null==r||r()},type:"tertiary",icon:s.default.createElement(Tc,{icon:"close",size:$c[i],color:Nc(t,o,"icon")})}))}const Fc=ie(Xe)`
344
344
  && {
345
345
  padding: 0 !important;
346
346
  width: auto !important;
@@ -358,7 +358,7 @@
358
358
  &&:active {
359
359
  background: transparent !important;
360
360
  }
361
- `,Ic=ee.div`
361
+ `,zc=ie.div`
362
362
  display: flex;
363
363
  flex-direction: row;
364
364
  gap: 4px;
@@ -368,8 +368,8 @@
368
368
  height: fit-content;
369
369
  text-transform: capitalize;
370
370
 
371
- ${t=>(({type:t,variant:e="outlined",size:n="sm",onClick:i})=>`\n border-radius: ${"removable"===e?"999px":"4px"};\n min-height: ${"sm"===n?"24px":"32px"};\n background-color: ${t&&e?Lc(t,e,"base"):"transparent"};\n border: 1px solid ${t&&e?Lc(t,e,"border"):"transparent"};\n padding-inline: ${"removable"===e?"12px":"8px"};\n cursor: ${i?"pointer":"default"};\n\n`)(t)};
372
- `,Fc=ee.div`
371
+ ${t=>(({type:t,variant:e="outlined",size:n="sm",onClick:i})=>`\n border-radius: ${"removable"===e?"999px":"4px"};\n min-height: ${"sm"===n?"24px":"32px"};\n background-color: ${t&&e?Nc(t,e,"base"):"transparent"};\n border: 1px solid ${t&&e?Nc(t,e,"border"):"transparent"};\n padding-inline: ${"removable"===e?"12px":"8px"};\n cursor: ${i?"pointer":"default"};\n\n`)(t)};
372
+ `,Bc=ie.div`
373
373
  display: flex;
374
374
  align-items: center;
375
375
  gap: 4px;
@@ -377,37 +377,37 @@
377
377
  display: inline-flex;
378
378
  cursor: pointer;
379
379
  }
380
- `,zc=ee.div`
380
+ `,Yc=ie.div`
381
381
  display: flex;
382
382
  align-items: center;
383
383
  gap: 8px;
384
- `,Bc=ee.div`
384
+ `,Hc=ie.div`
385
385
  display: flex;
386
386
  flex-direction: column;
387
387
  gap: 4px;
388
388
  min-width: 100px;
389
389
  width: 100%;
390
- `,Yc=`\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ${$e.color.component.placeholderInput} !important;\n }\n }\n`,Hc=`\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ${$e.color.base.onNeutral} !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ${$e.color.base.onNeutral} !important;\n }\n`,Wc=`\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: ${$e.color.base.onNeutral} !important;\n }\n }\n`,Vc=ee(e.Select)`
390
+ `,Wc=`\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ${Le.color.component.placeholderInput} !important;\n }\n }\n`,Vc=`\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ${Le.color.base.onNeutral} !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ${Le.color.base.onNeutral} !important;\n }\n`,Uc=`\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: ${Le.color.base.onNeutral} !important;\n }\n }\n`,jc=ie(e.Select)`
391
391
  .ant-form-item-has-error & {
392
- background-color: ${$e.color.surface.neutral} !important;
392
+ background-color: ${Le.color.surface.neutral} !important;
393
393
  }
394
- ${t=>(t=>{const e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return`\n .ant-select-selector {\n border-radius: ${"sm"===t.$size?"8px":"12px"} !important;\n position: relative !important;\n display: flex;\n align-items: ${"multiple"===t.$mode?"flex-start":"center"} !important;\n padding: ${e} 16px !important;\n\n min-height: ${"sm"===t.$size?"36px":"48px"} !important;\n ${"multiple"!==t.$mode?`height: ${"sm"===t.$size?"36px":"48px"} !important;`:"height: auto !important;"}\n\n background: ${t.disabled?$e.color.surface.disabledSurface:$e.color.surface.neutral} !important;\n\n border: 1px solid ${t.error?$e.color.status.critical:$e.color.base.line} !important;\n }\n`})(t)}
395
- ${t=>(t=>`\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ${!t.disabled&&`\n box-shadow: 0 0 0 1px ${$e.color.base.onNeutral}20 !important;\n border: 1px solid ${t.error?$e.color.status.critical:$e.color.base.primary2} !important;\n `}\n }\n`)(t)}
396
- ${Yc}
397
- ${t=>(t=>`\n .ant-select-selection-overflow {\n gap: 8px;\n ${"multiple"===t.$mode?"flex-wrap: wrap !important;":""}\n ${"multiple"===t.$mode?"align-content: center !important;":""}\n }\n`)(t)}
398
- ${Hc}
394
+ ${t=>(t=>{const e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return`\n .ant-select-selector {\n border-radius: ${"sm"===t.$size?"8px":"12px"} !important;\n position: relative !important;\n display: flex;\n align-items: ${"multiple"===t.$mode?"flex-start":"center"} !important;\n padding: ${e} 16px !important;\n\n min-height: ${"sm"===t.$size?"36px":"48px"} !important;\n ${"multiple"!==t.$mode?`height: ${"sm"===t.$size?"36px":"48px"} !important;`:"height: auto !important;"}\n\n background: ${t.disabled?Le.color.surface.disabledSurface:Le.color.surface.neutral} !important;\n\n border: 1px solid ${t.error?Le.color.status.critical:Le.color.base.line} !important;\n }\n`})(t)}
395
+ ${t=>(t=>`\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ${!t.disabled&&`\n box-shadow: 0 0 0 1px ${Le.color.base.onNeutral}20 !important;\n border: 1px solid ${t.error?Le.color.status.critical:Le.color.base.primary2} !important;\n `}\n }\n`)(t)}
399
396
  ${Wc}
400
- `,Uc=`\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: ${$e.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`,jc=`\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: ${$e.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`,Gc=`\n .ant-select-item:hover {\n background: ${$e.color.interactive.hoverSurface} !important;\n }\n \n .ant-select-item:active {\n background: ${$e.color.interactive.pressedSurface} !important;\n }\n`,Xc=`\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ${$e.color.surface.disabledSurface} !important;\n span { \n color: ${$e.color.surface.disabledOnSurface} !important;\n }\n }\n`,qc=ee.div`
397
+ ${t=>(t=>`\n .ant-select-selection-overflow {\n gap: 8px;\n ${"multiple"===t.$mode?"flex-wrap: wrap !important;":""}\n ${"multiple"===t.$mode?"align-content: center !important;":""}\n }\n`)(t)}
398
+ ${Vc}
401
399
  ${Uc}
402
- ${jc}
400
+ `,Gc=`\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: ${Le.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`,Xc=`\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: ${Le.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`,qc=`\n .ant-select-item:hover {\n background: ${Le.color.interactive.hoverSurface} !important;\n }\n \n .ant-select-item:active {\n background: ${Le.color.interactive.pressedSurface} !important;\n }\n`,Zc=`\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ${Le.color.surface.disabledSurface} !important;\n span { \n color: ${Le.color.surface.disabledOnSurface} !important;\n }\n }\n`,Kc=ie.div`
403
401
  ${Gc}
404
402
  ${Xc}
403
+ ${qc}
404
+ ${Zc}
405
405
  padding-bottom: 8px;
406
- `,Zc={padding:0,paddingBottom:"4px",borderRadius:"12px"},Kc={sm:"md",lg:"lg"},Jc={sm:"md",lg:"lg"},Qc=t=>a.default.createElement(a.default.Fragment,null,t&&a.default.createElement(gt.Body,{color:$e.color.base.onNeutralSecondary,size:"sm"},t),a.default.createElement(Dc,{icon:"keyboard_arrow_down"})),td=(t,e)=>e?a.default.createElement(gt.Body,{size:Kc[t]},e):null,ed=(t,e,n)=>"multiple"===t?({label:t,onClose:i})=>a.default.createElement(Pc,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:i},t):void 0,nd=function(n){var{children:i,disabled:o=!1,size:r="sm",mode:s,label:c,labelTooltip:d,selectRef:h,placeholder:u,error:p=!1,secondaryText:f,helperText:g,options:m}=n,b=l(n,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]);const x=t.useRef(null),y=h||x;return a.default.createElement(Bc,null,c&&((t,e)=>t?a.default.createElement(Fc,null,a.default.createElement(gt.Body,{size:"md"},t),e?a.default.createElement(vc,{placement:"top",title:"I'm Tooltip Component",content:e},a.default.createElement("span",null,a.default.createElement(Dc,{icon:"info",size:"xs"}))):null):null)(c,d),a.default.createElement(Vc,Object.assign({disabled:o,mode:s,ref:y,$size:r,$mode:s,getPopupContainer:()=>document.body},b,{error:p,dropdownRender:t=>a.default.createElement(qc,{$size:r},a.default.createElement(gt.Body,{size:"sm"===r?"md":"lg"},t)),dropdownStyle:Zc,suffixIcon:Qc(f),placeholder:td(r,u),showArrow:!0,tagRender:ed(s,o,r),maxTagCount:999}),m?((t,n)=>t.map(({value:t,label:i,icon:o,disabled:r})=>a.default.createElement(e.Select.Option,{key:t,value:t,disabled:r},a.default.createElement(zc,null,o&&a.default.createElement(o,{style:{width:"16px",height:"16px"}}),a.default.createElement(gt.Body,{size:Jc[n]},i)))))(m,r):i),(t=>t?a.default.createElement(gt.Body,{color:$e.color.base.onNeutralSecondary,size:"sm"},t):null)(g))};nd.Option=e.Select.Option;const id=(t,{iconSrc:e=null,extraText:i="",extraAction:o=()=>{},isAddItemBarVisible:r=!0,topContent:s,bottomContent:l,actionContent:c})=>a.default.createElement(rd,null,s,t,c||(({iconSrc:t=null,extraText:e="",extraAction:i=()=>{},isAddItemBarVisible:o=!0})=>o?a.default.createElement(sd,{onMouseDown:()=>{i()}},t?a.default.createElement(ad,{src:t}):a.default.createElement(n.SvgAdd,null),e):null)({iconSrc:e,extraText:i,extraAction:o,isAddItemBarVisible:r}),l),od=t=>{var{className:e="",children:n,disabled:i=!1,mode:o,label:r,iconSrc:s="",extraText:c="",extraAction:d=()=>{},isAddItemBarVisible:h=!0,topContent:u=null,bottomContent:p=null,actionContent:f=null}=t,g=l(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return a.default.createElement(nd,Object.assign({className:e,disabled:i,mode:o,label:r,dropdownRender:t=>id(t,{iconSrc:s,extraText:c,extraAction:d,isAddItemBarVisible:h,topContent:u,bottomContent:p,actionContent:f})},g),n)};od.Option=nd.Option;const rd=ee.div`
406
+ `,Jc={padding:0,paddingBottom:"4px",borderRadius:"12px"},Qc={sm:"md",lg:"lg"},td={sm:"md",lg:"lg"},ed=t=>s.default.createElement(s.default.Fragment,null,t&&s.default.createElement(bt.Body,{color:Le.color.base.onNeutralSecondary,size:"sm"},t),s.default.createElement(Tc,{icon:"keyboard_arrow_down"})),nd=(t,e)=>e?s.default.createElement(bt.Body,{size:Qc[t]},e):null,id=(t,e,n)=>"multiple"===t?({label:t,onClose:i})=>s.default.createElement(Ic,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:i},t):void 0,od=function(n){var{children:i,disabled:o=!1,size:r="sm",mode:a,label:l,labelTooltip:c,selectRef:h,placeholder:u,error:p=!1,secondaryText:f,helperText:g,options:m}=n,b=d(n,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]);const x=t.useRef(null),y=h||x;return s.default.createElement(Hc,null,l&&((t,e)=>t?s.default.createElement(Bc,null,s.default.createElement(bt.Body,{size:"md"},t),e?s.default.createElement(wc,{placement:"top",title:"I'm Tooltip Component",content:e},s.default.createElement("span",null,s.default.createElement(Tc,{icon:"info",size:"xs"}))):null):null)(l,c),s.default.createElement(jc,Object.assign({disabled:o,mode:a,ref:y,$size:r,$mode:a,getPopupContainer:()=>document.body},b,{error:p,dropdownRender:t=>s.default.createElement(Kc,{$size:r},s.default.createElement(bt.Body,{size:"sm"===r?"md":"lg"},t)),dropdownStyle:Jc,suffixIcon:ed(f),placeholder:nd(r,u),showArrow:!0,tagRender:id(a,o,r),maxTagCount:999}),m?((t,n)=>t.map(({value:t,label:i,icon:o,disabled:r})=>s.default.createElement(e.Select.Option,{key:t,value:t,disabled:r},s.default.createElement(Yc,null,o&&s.default.createElement(o,{style:{width:"16px",height:"16px"}}),s.default.createElement(bt.Body,{size:td[n]},i)))))(m,r):i),(t=>t?s.default.createElement(bt.Body,{color:Le.color.base.onNeutralSecondary,size:"sm"},t):null)(g))};od.Option=e.Select.Option;const rd=(t,{iconSrc:e=null,extraText:i="",extraAction:o=()=>{},isAddItemBarVisible:r=!0,topContent:a,bottomContent:l,actionContent:c})=>s.default.createElement(sd,null,a,t,c||(({iconSrc:t=null,extraText:e="",extraAction:i=()=>{},isAddItemBarVisible:o=!0})=>o?s.default.createElement(cd,{onMouseDown:()=>{i()}},t?s.default.createElement(ld,{src:t}):s.default.createElement(n.SvgAdd,null),e):null)({iconSrc:e,extraText:i,extraAction:o,isAddItemBarVisible:r}),l),ad=t=>{var{className:e="",children:n,disabled:i=!1,mode:o,label:r,iconSrc:a="",extraText:l="",extraAction:c=()=>{},isAddItemBarVisible:h=!0,topContent:u=null,bottomContent:p=null,actionContent:f=null}=t,g=d(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return s.default.createElement(od,Object.assign({className:e,disabled:i,mode:o,label:r,dropdownRender:t=>rd(t,{iconSrc:a,extraText:l,extraAction:c,isAddItemBarVisible:h,topContent:u,bottomContent:p,actionContent:f})},g),n)};ad.Option=od.Option;const sd=ie.div`
407
407
  padding-top: 15px;
408
- `,ad=ee.img`
408
+ `,ld=ie.img`
409
409
  margin-right: 5px;
410
- `,sd=ee(tn)`
410
+ `,cd=ie(nn)`
411
411
  font-weight: 500;
412
412
  color: #2f8dee;
413
413
  display: flex;
@@ -419,13 +419,13 @@
419
419
  &:hover {
420
420
  text-decoration: underline;
421
421
  }
422
- `,ld=ht`
422
+ `,dd=pt`
423
423
  & .ant-form-item {
424
424
  margin-bottom: 0 !important;
425
425
  }
426
426
 
427
427
  & .ant-form-item-has-error {
428
- font-family: ${Ge} !important;
428
+ font-family: ${qe} !important;
429
429
  font-size: ${exports.FONT_SIZE.P1} !important;
430
430
  line-height: 17px !important;
431
431
 
@@ -485,26 +485,26 @@
485
485
  border-right: 0 !important;
486
486
  }
487
487
  }
488
- `,cd=function(t){var{className:n="",children:i}=t,o=l(t,["className","children"]);return a.default.createElement(e.Form,Object.assign({className:dt(ld,n)},o),i)};function dd(t,e="large",n,i){const{height:o,borderRadius:r,padding:a}=qe[e],s=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: ${a};\n font-family: ${Ge};\n font-size: ${exports.FONT_SIZE.P1};\n color: ${t.color.base.onNeutral};\n line-height: 17px;\n height: ${o};\n box-sizing: border-box;\n &::placeholder {\n color: ${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: ${r} !important;\n border-color: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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 ${r} ${r} 0 !important;\n border-color: ${s};\n height: ${o};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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: ${r} 0 0 ${r} !important;\n border-color: ${s};\n height: ${o};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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: ${r} !important;\n border-color: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${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: ${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: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ${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 ${r} ${r} 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: ${r} 0 0 ${r} !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${t.color.component.placeholderInput};\n }\n &:hover { border-color: ${t.color.base.line} !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n &:hover { border-color: ${t.color.base.line} !important; }\n & .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${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: ${t.color.surface.neutral} !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ${t.color.surface.neutral} !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ${Ge};\n color: ${t.color.base.onNeutral};\n background-color: ${t.color.surface.neutral};\n border-top-left-radius: ${r} !important;\n border-bottom-left-radius: ${r} !important;\n border-color: ${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: ${t.color.surface.neutral};\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${t.color.component.placeholderInput};\n }\n &:hover { border-color: ${t.color.base.line}; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ${Ge};\n color: ${t.color.base.onNeutral};\n background-color: ${t.color.surface.neutral};\n border-top-right-radius: ${r} !important;\n border-bottom-right-radius: ${r} !important;\n border-color: ${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: ${t.color.surface.neutral};\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ${t.color.interactive.hoverSurface};\n border-color: ${t.color.base.line};\n border-left: 1px solid ${t.color.base.line};\n }\n &:focus-within {\n background-color: ${t.color.surface.neutral};\n border-color: ${t.color.base.primary2} !important;\n border-left: 1px solid ${t.color.base.primary2};\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ${t.color.interactive.hoverSurface};\n border-color: ${t.color.base.line};\n border-right: 1px solid ${t.color.base.line};\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ${t.color.surface.neutral};\n border-color: ${t.color.base.primary2} !important;\n border-right: 1px solid ${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 ${i?`\n & .ant-input-group-addon:last-child {\n background-color: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n pointer-events: none;\n cursor: not-allowed;\n border-color: ${t.color.base.line};\n border-left: 1px solid ${t.color.base.line};\n &:has([data-addon-custom]) {\n background-color: ${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: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n pointer-events: none;\n cursor: not-allowed;\n border-color: ${t.color.base.line};\n border-right: 1px solid ${t.color.base.line};\n &:has([data-addon-custom]) {\n background-color: ${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 hd({text:t,error:e}){const n=Ne();if(!t)return null;const i=e?n.color.status.critical:n.color.component.helperInput;return a.default.createElement(gt.Body,{size:"sm",style:{color:i,marginTop:4}},t)}function ud({label:t,required:e,optional:i,showInfoIcon:o,infoText:r,onInfoClick:s}){const l=Ne();return t?a.default.createElement(pd,null,a.default.createElement(gt.Body,{size:"sm",style:{color:l.color.base.onNeutral}},t,e&&a.default.createElement("span",{style:{color:l.error.text,marginLeft:2}},"*")),i&&a.default.createElement(gt.Body,{size:"sm",style:{color:l.color.base.onNeutralSecondary}},"Optional"),o&&r&&a.default.createElement(vc,{content:r,placement:"top"},a.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:s,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==s||s())},style:{display:"inline-flex",cursor:"pointer"}},a.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),o&&!r&&a.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:s,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==s||s())},style:{display:"inline-flex",cursor:"pointer"}},a.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}cd.Item=function(t){var{className:n=""}=t,i=l(t,["className"]);return a.default.createElement(e.Form.Item,Object.assign({className:dt(ld,n)},i))},cd.useForm=e.Form.useForm;const pd=ee.div`
488
+ `,hd=function(t){var{className:n="",children:i}=t,o=d(t,["className","children"]);return s.default.createElement(e.Form,Object.assign({className:ut(dd,n)},o),i)};function ud(t,e="large",n,i){const{height:o,borderRadius:r,padding:a}=Ke[e],s=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: ${a};\n font-family: ${qe};\n font-size: ${exports.FONT_SIZE.P1};\n color: ${t.color.base.onNeutral};\n line-height: 17px;\n height: ${o};\n box-sizing: border-box;\n &::placeholder {\n color: ${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: ${r} !important;\n border-color: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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 ${r} ${r} 0 !important;\n border-color: ${s};\n height: ${o};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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: ${r} 0 0 ${r} !important;\n border-color: ${s};\n height: ${o};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &:focus {\n border-color: ${n?t.color.status.critical:t.color.base.primary2};\n box-shadow: none;\n color: ${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: ${r} !important;\n border-color: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${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: ${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: ${s};\n height: ${o};\n padding: ${a};\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ${n?t.color.status.critical:t.color.base.primary2} !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ${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 ${r} ${r} 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: ${r} 0 0 ${r} !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${t.color.component.placeholderInput};\n }\n &:hover { border-color: ${t.color.base.line} !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n &:hover { border-color: ${t.color.base.line} !important; }\n & .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${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: ${t.color.surface.neutral} !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ${t.color.surface.neutral} !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ${qe};\n color: ${t.color.base.onNeutral};\n background-color: ${t.color.surface.neutral};\n border-top-left-radius: ${r} !important;\n border-bottom-left-radius: ${r} !important;\n border-color: ${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: ${t.color.surface.neutral};\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ${t.color.surface.disabledSurface};\n border-color: ${t.color.base.line};\n color: ${t.color.base.onNeutral};\n -webkit-text-fill-color: ${t.color.base.onNeutral};\n &::placeholder {\n color: ${t.color.component.placeholderInput};\n -webkit-text-fill-color: ${t.color.component.placeholderInput};\n }\n &:hover { border-color: ${t.color.base.line}; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ${qe};\n color: ${t.color.base.onNeutral};\n background-color: ${t.color.surface.neutral};\n border-top-right-radius: ${r} !important;\n border-bottom-right-radius: ${r} !important;\n border-color: ${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: ${t.color.surface.neutral};\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ${t.color.interactive.hoverSurface};\n border-color: ${t.color.base.line};\n border-left: 1px solid ${t.color.base.line};\n }\n &:focus-within {\n background-color: ${t.color.surface.neutral};\n border-color: ${t.color.base.primary2} !important;\n border-left: 1px solid ${t.color.base.primary2};\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ${t.color.interactive.hoverSurface};\n border-color: ${t.color.base.line};\n border-right: 1px solid ${t.color.base.line};\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ${t.color.surface.neutral};\n border-color: ${t.color.base.primary2} !important;\n border-right: 1px solid ${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 ${i?`\n & .ant-input-group-addon:last-child {\n background-color: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n pointer-events: none;\n cursor: not-allowed;\n border-color: ${t.color.base.line};\n border-left: 1px solid ${t.color.base.line};\n &:has([data-addon-custom]) {\n background-color: ${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: ${t.color.surface.disabledSurface};\n color: ${t.color.base.onNeutral};\n pointer-events: none;\n cursor: not-allowed;\n border-color: ${t.color.base.line};\n border-right: 1px solid ${t.color.base.line};\n &:has([data-addon-custom]) {\n background-color: ${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 pd({text:t,error:e}){const n=Fe();if(!t)return null;const i=e?n.color.status.critical:n.color.component.helperInput;return s.default.createElement(bt.Body,{size:"sm",style:{color:i,marginTop:4}},t)}function fd({label:t,required:e,optional:i,showInfoIcon:o,infoText:r,onInfoClick:a}){const l=Fe();return t?s.default.createElement(gd,null,s.default.createElement(bt.Body,{size:"sm",style:{color:l.color.base.onNeutral}},t,e&&s.default.createElement("span",{style:{color:l.error.text,marginLeft:2}},"*")),i&&s.default.createElement(bt.Body,{size:"sm",style:{color:l.color.base.onNeutralSecondary}},"Optional"),o&&r&&s.default.createElement(wc,{content:r,placement:"top"},s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:a,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==a||a())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),o&&!r&&s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:a,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==a||a())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}hd.Item=function(t){var{className:n=""}=t,i=d(t,["className"]);return s.default.createElement(e.Form.Item,Object.assign({className:ut(dd,n)},i))},hd.useForm=e.Form.useForm;const gd=ie.div`
489
489
  display: flex;
490
490
  align-items: center;
491
491
  gap: 4px;
492
492
  margin-bottom: 4px;
493
- `,fd=function(t){var{addonBefore:n,addonAfter:i,placeholder:o="",disabled:r=!1,disabledAddon:s=!1,className:c="",label:d,required:h,optional:u=!1,size:p="large",helperText:f,error:g,showInfoIcon:m,infoText:b,onInfoClick:x}=t,y=l(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const v=dd(Ne(),p,g,s);return a.default.createElement("div",null,a.default.createElement(ud,{label:d,required:h,optional:u,showInfoIcon:m,infoText:b,onInfoClick:x}),a.default.createElement(e.Input,Object.assign({className:`${ht(v)} ${c}`,addonBefore:n,addonAfter:i,placeholder:o,disabled:r},y)),a.default.createElement(hd,{text:f,error:g}))};fd.Password=function(t){var{addonBefore:n="",placeholder:i="",disabled:o=!1,className:r="",label:s,required:c,optional:d=!1,size:h="large",helperText:u,error:p,showInfoIcon:f,infoText:g,onInfoClick:m}=t,b=l(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const x=dd(Ne(),h,p);return a.default.createElement("div",null,a.default.createElement(ud,{label:s,required:c,optional:d,showInfoIcon:f,infoText:g,onInfoClick:m}),a.default.createElement(e.Input.Password,Object.assign({className:`${ht(x)} ${r}`,addonBefore:n,placeholder:i,disabled:o,visibilityToggle:!0},b)),a.default.createElement(hd,{text:u,error:p}))},fd.Search=function(t){var{addonBefore:n="",placeholder:i="",className:o="",onChange:r,onSearch:s,size:c="large",helperText:d,error:h}=t,u=l(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]);const p=Ne(),f=`${dd(p,c,h)}\n & .ant-input-group-addon:not(:last-child) {\n background-color: ${p.color.surface.neutral};\n padding: ${"string"==typeof n?"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 a.default.createElement("div",null,a.default.createElement(e.Input,Object.assign({placeholder:i,addonBefore:n,onChange:r,onKeyDown:s,className:`${ht(f)} ${o}`,prefix:a.default.createElement("span",{onClick:s,style:{display:"flex",cursor:s?"pointer":"default"}},a.default.createElement(Dc,{icon:"search",size:"small"===c?"xs":"m",color:p.color.base.onNeutral}))},u)),a.default.createElement(hd,{text:d,error:h}))},fd.TextArea=function(t){var{className:n="",label:i,required:o=!1,optional:r=!1,size:s="large",helperText:c,error:d,showInfoIcon:h,infoText:u,onInfoClick:p}=t,f=l(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const g=Ne(),m=d?g.color.status.critical:g.color.base.line,{borderRadius:b,padding:x}=qe[s],y=`${dd(g,s,d)}\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ${b} !important;\n border-color: ${m};\n padding: ${x};\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ${d?g.color.status.critical:g.color.base.primary2} !important; }\n &:focus {\n border-color: ${g.color.base.primary2};\n box-shadow: none;\n }\n &:disabled {\n color: ${g.color.base.onNeutral} !important;\n -webkit-text-fill-color: ${g.color.base.onNeutral} !important;\n background-color: ${g.color.surface.disabledSurface};\n border-color: ${g.color.base.line};\n &::placeholder {\n color: ${g.color.surface.disabledOnSurface} !important;\n -webkit-text-fill-color: ${g.color.surface.disabledOnSurface} !important;\n }\n &:hover { border-color: ${g.color.base.line} !important; }\n }\n }\n `;return a.default.createElement("div",null,a.default.createElement(ud,{label:i,required:o,optional:r,showInfoIcon:h,infoText:u,onInfoClick:p}),a.default.createElement(e.Input.TextArea,Object.assign({className:`${ht(y)} ${n}`},f)),a.default.createElement(hd,{text:c,error:d}))},fd.Group=e.Input.Group;const{height:gd,borderRadius:md,padding:bd}=qe.large,xd=ee.div`
493
+ `,md=function(t){var{addonBefore:n,addonAfter:i,placeholder:o="",disabled:r=!1,disabledAddon:a=!1,className:l="",label:c,required:h,optional:u=!1,size:p="large",helperText:f,error:g,showInfoIcon:m,infoText:b,onInfoClick:x}=t,y=d(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const v=ud(Fe(),p,g,a);return s.default.createElement("div",null,s.default.createElement(fd,{label:c,required:h,optional:u,showInfoIcon:m,infoText:b,onInfoClick:x}),s.default.createElement(e.Input,Object.assign({className:`${pt(v)} ${l}`,addonBefore:n,addonAfter:i,placeholder:o,disabled:r},y)),s.default.createElement(pd,{text:f,error:g}))};md.Password=function(t){var{addonBefore:n="",placeholder:i="",disabled:o=!1,className:r="",label:a,required:l,optional:c=!1,size:h="large",helperText:u,error:p,showInfoIcon:f,infoText:g,onInfoClick:m}=t,b=d(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const x=ud(Fe(),h,p);return s.default.createElement("div",null,s.default.createElement(fd,{label:a,required:l,optional:c,showInfoIcon:f,infoText:g,onInfoClick:m}),s.default.createElement(e.Input.Password,Object.assign({className:`${pt(x)} ${r}`,addonBefore:n,placeholder:i,disabled:o,visibilityToggle:!0},b)),s.default.createElement(pd,{text:u,error:p}))},md.Search=function(t){var{addonBefore:n="",placeholder:i="",className:o="",onChange:r,onSearch:a,size:l="large",helperText:c,error:h}=t,u=d(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]);const p=Fe(),f=`${ud(p,l,h)}\n & .ant-input-group-addon:not(:last-child) {\n background-color: ${p.color.surface.neutral};\n padding: ${"string"==typeof n?"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,Object.assign({placeholder:i,addonBefore:n,onChange:r,onKeyDown:a,className:`${pt(f)} ${o}`,prefix:s.default.createElement("span",{onClick:a,style:{display:"flex",cursor:a?"pointer":"default"}},s.default.createElement(Tc,{icon:"search",size:"small"===l?"xs":"m",color:p.color.base.onNeutral}))},u)),s.default.createElement(pd,{text:c,error:h}))},md.TextArea=function(t){var{className:n="",label:i,required:o=!1,optional:r=!1,size:a="large",helperText:l,error:c,showInfoIcon:h,infoText:u,onInfoClick:p}=t,f=d(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]);const g=Fe(),m=c?g.color.status.critical:g.color.base.line,{borderRadius:b,padding:x}=Ke[a],y=`${ud(g,a,c)}\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ${b} !important;\n border-color: ${m};\n padding: ${x};\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ${c?g.color.status.critical:g.color.base.primary2} !important; }\n &:focus {\n border-color: ${g.color.base.primary2};\n box-shadow: none;\n }\n &:disabled {\n color: ${g.color.base.onNeutral} !important;\n -webkit-text-fill-color: ${g.color.base.onNeutral} !important;\n background-color: ${g.color.surface.disabledSurface};\n border-color: ${g.color.base.line};\n &::placeholder {\n color: ${g.color.surface.disabledOnSurface} !important;\n -webkit-text-fill-color: ${g.color.surface.disabledOnSurface} !important;\n }\n &:hover { border-color: ${g.color.base.line} !important; }\n }\n }\n `;return s.default.createElement("div",null,s.default.createElement(fd,{label:i,required:o,optional:r,showInfoIcon:h,infoText:u,onInfoClick:p}),s.default.createElement(e.Input.TextArea,Object.assign({className:`${pt(y)} ${n}`},f)),s.default.createElement(pd,{text:l,error:c}))},md.Group=e.Input.Group;const{height:bd,borderRadius:xd,padding:yd}=Ke.large,vd=ie.div`
494
494
  display: flex;
495
- height: ${gd};
495
+ height: ${bd};
496
496
  width: 100%;
497
497
  position: relative;
498
- `,yd=ee.div`
498
+ `,_d=ie.div`
499
499
  display: flex;
500
500
  align-items: center;
501
501
  padding: 0 16px;
502
502
  border: 1px solid ${t=>t.borderColor};
503
503
  border-right: none;
504
- border-radius: ${md} 0 0 ${md};
504
+ border-radius: ${xd} 0 0 ${xd};
505
505
  background-color: ${t=>t.bgColor};
506
506
  color: ${t=>t.textColor};
507
- font-family: ${Ge};
507
+ font-family: ${qe};
508
508
  font-size: ${exports.FONT_SIZE.P1};
509
509
  white-space: nowrap;
510
510
  cursor: ${t=>t.isDisabled?"not-allowed":"default"};
@@ -518,14 +518,14 @@
518
518
  &:hover {
519
519
  background-color: ${t=>t.isDisabled?t.bgColor:t.hoverBgColor};
520
520
  }
521
- `,vd=ee.input`
521
+ `,wd=ie.input`
522
522
  flex: 1;
523
523
  min-width: 0;
524
524
  height: 100%;
525
- padding: ${bd};
525
+ padding: ${yd};
526
526
  border: 1px solid ${t=>t.borderColor};
527
- border-radius: ${t=>t.hasPrefix?"0":`${md} 0 0 ${md}`};
528
- font-family: ${Ge};
527
+ border-radius: ${t=>t.hasPrefix?"0":`${xd} 0 0 ${xd}`};
528
+ font-family: ${qe};
529
529
  font-size: ${exports.FONT_SIZE.P1};
530
530
  color: ${t=>t.isDisabled?t.disabledTextColor:t.textColor};
531
531
  background-color: ${t=>t.isDisabled?t.disabledBgColor:"transparent"};
@@ -545,16 +545,16 @@
545
545
  &:hover {
546
546
  border-color: ${t=>t.isDisabled?t.borderColor:t.focusBorderColor};
547
547
  }
548
- `,_d=ee.button`
548
+ `,Sd=ie.button`
549
549
  display: flex;
550
550
  align-items: center;
551
551
  justify-content: center;
552
552
  padding: 0 24px;
553
553
  border: none;
554
- border-radius: 0 ${md} ${md} 0;
554
+ border-radius: 0 ${xd} ${xd} 0;
555
555
  background-color: ${t=>t.isDisabled?t.disabledBgColor:t.bgColor};
556
556
  color: ${t=>t.isDisabled?t.disabledTextColor:t.textColor};
557
- font-family: ${Ge};
557
+ font-family: ${qe};
558
558
  font-size: ${exports.FONT_SIZE.P1};
559
559
  font-weight: 700;
560
560
  white-space: nowrap;
@@ -564,9 +564,9 @@
564
564
  &:hover {
565
565
  opacity: ${t=>t.isDisabled?1:.9};
566
566
  }
567
- `,wd={small:"400px",medium:"600px"},Sd=ee.div`
567
+ `,kd={small:"400px",medium:"600px"},Ed=ie.div`
568
568
  width: calc(100vw - 32px);
569
- max-width: ${t=>wd[t.modalSize]};
569
+ max-width: ${t=>kd[t.modalSize]};
570
570
  background: white;
571
571
  box-shadow:
572
572
  0px 20px 24px -4px rgba(10, 13, 18, 0.08),
@@ -579,53 +579,53 @@
579
579
  top: 6.8vh;
580
580
  left: 50%;
581
581
  transform: translateX(-50%);
582
- `,kd=ee.div`
583
- padding: 16px ${De};
584
- `,Ed=ee.div`
582
+ `,Od=ie.div`
583
+ padding: 16px ${Te};
584
+ `,Cd=ie.div`
585
585
  display: flex;
586
586
  align-items: center;
587
587
  gap: 12px;
588
588
  padding-top: 4px;
589
589
  padding-bottom: 16px;
590
590
  border-bottom: 1px solid #d8d8d8;
591
- `,Od=ee.h2`
591
+ `,Dd=ie.h2`
592
592
  flex: 1 0 0;
593
593
  min-width: 0;
594
594
  margin: 0;
595
- font-family: ${ue};
595
+ font-family: ${fe};
596
596
  font-weight: 700;
597
597
  font-size: 20px;
598
598
  line-height: 1;
599
599
  color: #002b2a;
600
- `,Cd=ee.div`
600
+ `,Md=ie.div`
601
601
  display: flex;
602
602
  justify-content: flex-end;
603
603
  align-items: center;
604
- padding: 16px ${De};
604
+ padding: 16px ${Te};
605
605
  height: 56px;
606
606
  box-sizing: border-box;
607
- `,Dd=ee.div`
607
+ `,Td=ie.div`
608
608
  display: flex;
609
609
  flex-direction: column;
610
610
  align-items: center;
611
- padding: 0 ${De};
612
- `,Md=ee.div`
611
+ padding: 0 ${Te};
612
+ `,Ad=ie.div`
613
613
  width: 160px;
614
614
  height: 160px;
615
615
  display: flex;
616
616
  align-items: center;
617
617
  justify-content: center;
618
- `,Td=ee.h2`
618
+ `,$d=ie.h2`
619
619
  margin: 16px 0 8px;
620
- font-family: ${ue};
620
+ font-family: ${fe};
621
621
  font-weight: 700;
622
622
  font-size: 20px;
623
623
  line-height: 1.3;
624
624
  color: #002b2a;
625
625
  text-align: center;
626
626
  width: 100%;
627
- `,Ad=ee.div`
628
- padding: 40px ${De} 0;
627
+ `,Rd=ie.div`
628
+ padding: 40px ${Te} 0;
629
629
  overflow: hidden;
630
630
 
631
631
  img {
@@ -633,62 +633,62 @@
633
633
  display: block;
634
634
  border-radius: 8px;
635
635
  }
636
- `,$d=ee.div`
637
- padding: 16px ${De};
636
+ `,Ld=ie.div`
637
+ padding: 16px ${Te};
638
638
  text-align: center;
639
- `,Rd=ee.h2`
639
+ `,Pd=ie.h2`
640
640
  margin: 0;
641
- font-family: ${ue};
641
+ font-family: ${fe};
642
642
  font-weight: 700;
643
643
  font-size: 20px;
644
644
  line-height: 1.3;
645
645
  color: #002b2a;
646
- `,Ld=ee.div`
647
- padding: 0 ${De} 16px;
648
- font-family: ${he};
646
+ `,Nd=ie.div`
647
+ padding: 0 ${Te} 16px;
648
+ font-family: ${pe};
649
649
  font-size: 14px;
650
650
  line-height: 1.4;
651
651
  color: #002b2a;
652
- `,Pd=ee.div`
652
+ `,Id=ie.div`
653
653
  background: #f6f7f9;
654
654
  display: flex;
655
655
  gap: 16px;
656
- padding: ${De};
656
+ padding: ${Te};
657
657
 
658
658
  > * {
659
659
  flex: 1 0 0;
660
660
  }
661
- `,Nd=ee.div`
661
+ `,Fd=ie.div`
662
662
  cursor: pointer;
663
663
  flex-shrink: 0;
664
- `,Id=({label:t,value:e,variant:n="small"})=>a.default.createElement(zd,null,a.default.createElement(Bd,{variant:n},t),a.default.createElement(Yd,{variant:n},e)),Fd=ee.div`
664
+ `,zd=({label:t,value:e,variant:n="small"})=>s.default.createElement(Yd,null,s.default.createElement(Hd,{variant:n},t),s.default.createElement(Wd,{variant:n},e)),Bd=ie.div`
665
665
  display: flex;
666
666
  flex-direction: column;
667
667
  gap: 12px;
668
- `,zd=ee.div`
668
+ `,Yd=ie.div`
669
669
  display: flex;
670
670
  align-items: center;
671
671
  justify-content: space-between;
672
- `,Bd=ee.span`
673
- font-family: ${t=>"large"===t.variant?ue:he};
672
+ `,Hd=ie.span`
673
+ font-family: ${t=>"large"===t.variant?fe:pe};
674
674
  font-weight: ${t=>"large"===t.variant?700:400};
675
675
  font-size: ${t=>"large"===t.variant?"20px":"14px"};
676
676
  line-height: 1;
677
677
  color: ${t=>"large"===t.variant?"#002b2a":"#505454"};
678
- `,Yd=ee.span`
679
- font-family: ${t=>"large"===t.variant?ue:he};
678
+ `,Wd=ie.span`
679
+ font-family: ${t=>"large"===t.variant?fe:pe};
680
680
  font-weight: ${t=>"large"===t.variant?700:400};
681
681
  font-size: ${t=>"large"===t.variant?"20px":"14px"};
682
682
  line-height: 1;
683
683
  color: #002b2a;
684
- `,Hd=document.body,Wd=It`
684
+ `,Vd=document.body,Ud=zt`
685
685
  0% {
686
686
  opacity: 0;
687
687
  }
688
688
  100% {
689
689
  opacity: 1;
690
690
  }
691
- `,Vd=ee.div`
691
+ `,jd=ie.div`
692
692
  position: fixed;
693
693
  width: 100vw;
694
694
  height: 100%;
@@ -700,46 +700,46 @@
700
700
  overflow: auto;
701
701
  z-index: 9; // bigger than nav bar z-index: 8
702
702
 
703
- ${t=>t.open&&St`
703
+ ${t=>t.open&&Et`
704
704
  display: block;
705
- animation: ${Wd} 0.3s ease;
705
+ animation: ${Ud} 0.3s ease;
706
706
  `};
707
- `,Ud=ee.div`
707
+ `,Gd=ie.div`
708
708
  ${t=>t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "}
709
- padding-left: ${Me};
710
- padding-right: ${Me};
711
- `,jd=ee.div`
709
+ padding-left: ${Ae};
710
+ padding-right: ${Ae};
711
+ `,Xd=ie.div`
712
712
  border-bottom: 1px solid #e8e8e8;
713
- padding-top: ${De};
714
- padding-left: ${Me};
715
- padding-right: ${Me};
716
- padding-bottom: ${Me};
717
- `,Gd=ee.div`
713
+ padding-top: ${Te};
714
+ padding-left: ${Ae};
715
+ padding-right: ${Ae};
716
+ padding-bottom: ${Ae};
717
+ `,qd=ie.div`
718
718
  padding-top:
719
719
  background: #f6f7f9;
720
720
  display: flex;
721
721
  justify-content: flex-end;
722
- padding-right: ${Me};
723
- padding-top: ${Oe};
724
- padding-bottom: ${Oe};
725
- `,Xd=ee.div`
722
+ padding-right: ${Ae};
723
+ padding-top: ${De};
724
+ padding-bottom: ${De};
725
+ `,Zd=ie.div`
726
726
  height: 100%;
727
727
  display: flex;
728
728
  align-items: center;
729
729
  justify-content: space-between;
730
- `,qd=ee.div`
730
+ `,Kd=ie.div`
731
731
  display: flex;
732
732
  align-items: center;
733
733
  user-select: none;
734
734
  & :not(:last-child) {
735
735
  margin-right: 10px;
736
736
  }
737
- `,Zd=ee.div`
737
+ `,Jd=ie.div`
738
738
  cursor: pointer;
739
739
  padding-left: 5px;
740
740
  padding-right: 5px;
741
741
  margin-right: -5px;
742
- `;var Kd,Jd={Group:t=>a.default.createElement(e.Radio.Group,Object.assign({size:"large",onChange:t.onChange},t)),Button:function(t){var{children:n,disabled:i}=t,o=l(t,["children","disabled"]);const{brand:r}=Ne(),s=`\n &.ant-radio-button-wrapper {\n ${i?"":`color: ${exports.NEUTRAL_COLORS.BLACK} !important;`}\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ${Ge} !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ${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 ${i?"":`\n border-color: ${r.primary.default} !important;\n color: ${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 ${r.primary.default} !important;\n color: ${r.primary.default} !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ${K.S500} !important;\n }\n\n circle.border {\n stroke: ${r.primary.default} !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ${r.primary.default} !important;\n color: ${r.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: ${exports.NEUTRAL_COLORS.BLACK} !important;\n }\n `;return a.default.createElement(e.Radio.Button,Object.assign({className:ht(s),disabled:i},o),a.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},a.default.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},a.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),a.default.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),n))}},Qd={},th={exports:{}};function eh(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 nh,ih={exports:{}};function oh(){return nh||(nh=1,(t=ih).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 Gn(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 y=i.momentProperties=[];function v(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),y.length>0)for(n=0;n<y.length;n++)l(o=e[i=y[n]])||(t[i]=o);return t}var _=!1;function w(t){v(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 S(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function k(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=k(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 C(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(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)}C(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var M,T={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),T[t]||(C(e),T[t]=!0)}function $(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function R(t){var e,n;for(n in t)$(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 L(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 P(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=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 I(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return $(i)?i.call(e,n):i}var F={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 z(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 B="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 j(t,e,n,i){var o=this._relativeTime[n];return $(o)?o(t,e,n,i):o.replace(/%d/i,t)}function G(t,e){var n=this._relativeTime[t>0?"future":"past"];return $(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+=$(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?/,yt=/\d{1,3}/,vt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,St=/[+-]?\d+/,kt=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[+-]?\d+(\.\d{1,3})?/,Ct=/[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,Dt={};function Mt(t,e,n){Dt[t]=$(e)?e:function(t,i){return t&&n?n:e}}function Tt(t,e){return u(Dt,t)?Dt[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return $t(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function $t(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Rt={};function Lt(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++)Rt[t[n]]=i}function Pt(t,e){Lt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Rt,t)&&Rt[t](e,n._a,n,t)}var It=0,Ft=1,zt=2,Bt=3,Yt=4,Ht=5,Wt=6,Vt=7,Ut=8;function jt(t){return Gt(t)?366:365}function Gt(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),Mt("Y",St),Mt("YY",mt,ut),Mt("YYYY",vt,ft),Mt("YYYYY",_t,gt),Mt("YYYYYY",_t,gt),Lt(["YYYYY","YYYYYY"],It),Lt("YYYY",function(t,e){e[It]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Lt("YY",function(t,e){e[It]=i.parseTwoDigitYear(t)}),Lt("Y",function(t,e){e[It]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return Gt(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&&Gt(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 $(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($(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?Gt(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),Mt("M",mt),Mt("MM",mt,ut),Mt("MMM",function(t,e){return e.monthsShortRegex(t)}),Mt("MMMM",function(t,e){return e.monthsRegex(t)}),Lt(["M","MM"],function(t,e){e[Ft]=E(t)-1}),Lt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[Ft]=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=Ct;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=Ct;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]=$t(i[e]),o[e]=$t(o[e]);for(e=0;e<24;e++)r[e]=$t(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 ye(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 ve(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+ve(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=jt(r=t-1)+s:s>jt(t)?(r=t+1,a=s-jt(t)):(r=t,a=s),{year:r,dayOfYear:a}}function Se(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+ke(o=t.year()-1,e,n):a>ke(t.year(),e,n)?(i=a-ke(t.year(),e,n),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function ke(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(jt(t)-i+o)/7}function Ee(t){return Se(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),Mt("w",mt),Mt("ww",mt,ut),Mt("W",mt),Mt("WW",mt,ut),Pt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Oe={dow:0,doy:6};function Ce(){return this._week.dow}function De(){return this._week.doy}function Me(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Te(t){var e=Se(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 $e(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(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),Mt("d",mt),Mt("e",mt),Mt("E",mt),Mt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Mt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Mt("dddd",function(t,e){return e.weekdaysRegex(t)}),Pt(["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}),Pt(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Pe(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Ie(t){return!0===t?Re(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var Fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(t){return!0===t?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(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 Be.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=$e(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ue=Ct;function je(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 Ge=Ct;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Ct;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]=$t(s[e]),l[e]=$t(l[e]),c[e]=$t(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),Mt("a",en),Mt("A",en),Mt("H",mt),Mt("h",mt),Mt("k",mt),Mt("HH",mt,ut),Mt("hh",mt,ut),Mt("kk",mt,ut),Mt("hmm",bt),Mt("hmmss",xt),Mt("Hmm",bt),Mt("Hmmss",xt),Lt(["H","HH"],Bt),Lt(["k","kk"],function(t,e,n){var i=E(t);e[Bt]=24===i?0:i}),Lt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Lt(["h","hh"],function(t,e,n){e[Bt]=E(t),m(n).bigHour=!0}),Lt("hmm",function(t,e,n){var i=t.length-2;e[Bt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i)),m(n).bigHour=!0}),Lt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Bt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),m(n).bigHour=!0}),Lt("Hmm",function(t,e,n){var i=t.length-2;e[Bt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i))}),Lt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Bt]=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:F,invalidDate:B,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:U,months:re,monthsShort:se,week:Oe,weekdays:Le,weekdaysMin:Fe,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,eh("./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 P(L(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 P(e=L(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 M(cn)}function yn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[Ft]<0||n[Ft]>11?Ft:n[zt]<1||n[zt]>ie(n[It],n[Ft])?zt:n[Bt]<0||n[Bt]>24||24===n[Bt]&&(0!==n[Yt]||0!==n[Ht]||0!==n[Wt])?Bt: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<It||e>zt)&&(e=zt),m(t)._overflowWeeks&&-1===e&&(e=Vt),m(t)._overflowWeekday&&-1===e&&(e=Ut),m(t).overflow=e),t}function vn(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[zt]&&null==t._a[Ft]&&Sn(t),null!=t._dayOfYear&&(r=vn(t._a[It],i[It]),(t._dayOfYear>jt(r)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=ve(r,0,t._dayOfYear),t._a[Ft]=n.getUTCMonth(),t._a[zt]=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[Bt]&&0===t._a[Yt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Bt]=0),t._d=(t._useUTC?ve:ye).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[Bt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(m(t).weekdayMismatch=!0)}}function Sn(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=vn(e.GG,t._a[It],Se(Xn(),1,4).year),i=vn(e.W,1),((o=vn(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;var c=Se(Xn(),r,a);n=vn(e.gg,t._a[It],c.year),i=vn(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>ke(n,r,a)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=we(n,i,o,r,a),t._a[It]=s.year,t._dayOfYear=s.dayOfYear)}var kn=/^\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)?/,Cn=[["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}/]],Dn=[["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/]],Mn=/^\/?Date\((\-?\d+)/i;function Tn(t){var e,n,i,o,r,a,s=t._i,l=kn.exec(s)||En.exec(s);if(l){for(m(t).iso=!0,e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[1])){o=Cn[e][0],i=!1!==Cn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Dn.length;e<n;e++)if(Dn[e][1].exec(l[3])){r=(l[2]||" ")+Dn[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||""),Bn(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 $n(t,e,n,i,o,r){var a=[Rn(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}function Rn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ln(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(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 In(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 Fn(t){var e=An.exec(Ln(t._i));if(e){var n=$n(e[4],e[3],e[2],e[5],e[6],e[7]);if(!Pn(e[1],n,t))return;t._a=n,t._tzm=In(e[8],e[9],e[10]),t._d=ve.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function zn(t){var e=Mn.exec(t._i);null===e?(Tn(t),!1===t._isValid&&(delete t._isValid,Fn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Bn(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(Tt(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[Bt]<=12&&!0===m(t).bigHour&&t._a[Bt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[Bt]=Yn(t._locale,t._a[Bt],t._meridiem),wn(t),yn(t)}else Fn(t);else Tn(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=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Bn(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(yn(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)),S(e)?new w(yn(e)):(d(e)?t._d=e:r(n)?Hn(t):n?Bn(t):jn(t),b(t)||(t._d=null),t))}function jn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?zn(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 Gn(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 Gn(t,e,n,i,!1)}i.createFromInputFallback=D("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=D("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=D("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",""),Mt("Z",Et),Mt("ZZ",Et),Lt(["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=(S(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(kt,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 yi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(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 Si(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var ki=/^(\-|\+)?(?:(\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=ki.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:E(a[zt])*n,h:E(a[Bt])*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:Ci(a[2],n),M:Ci(a[3],n),w:Ci(a[4],n),d:Ci(a[5],n),h:Ci(a[6],n),m:Ci(a[7],n),s:Ci(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Mi(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 Ci(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Di(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 Mi(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Di(t,e):((n=Di(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ti(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 $i=Ti(1,"add"),Ri=Ti(-1,"subtract");function Li(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 Pi(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),r=i.calendarFormat(this,o)||"sameElse",a=e&&($(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 Ii(t,e){var n=S(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 Fi(t,e){var n=S(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 zi(t,e,n,i){var o=S(t)?t:Xn(t),r=S(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 Bi(t,e){var n,i=S(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:k(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 ji(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"):$(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 Gi(){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()&&(S(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()&&(S(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=D("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 yo(){return p({},m(this))}function vo(){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 So(t){return Co.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ko(t){return Co.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return ke(this.year(),1,4)}function Oo(){var t=this.localeData()._week;return ke(this.year(),t.dow,t.doy)}function Co(t,e,n,i,o){var r;return null==t?Se(this,i,o).year:(e>(r=ke(t,i,o))&&(e=r),Do.call(this,t,e,n,i,o))}function Do(t,e,n,i,o){var r=we(t,e,n,i,o),a=ve(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Mo(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),Mt("G",St),Mt("g",St),Mt("GG",mt,ut),Mt("gg",mt,ut),Mt("GGGG",vt,ft),Mt("gggg",vt,ft),Mt("GGGGG",_t,gt),Mt("ggggg",_t,gt),Pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),Pt(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),at("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Mt("Q",ht),Lt("Q",function(t,e){e[Ft]=3*(E(t)-1)}),at("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Mt("D",mt),Mt("DD",mt,ut),Mt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],zt),Lt("Do",function(t,e){e[zt]=E(t.match(mt)[0])});var To=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),Mt("DDD",yt),Mt("DDDD",pt),Lt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),at("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Mt("m",mt),Mt("mm",mt,ut),Lt(["m","mm"],Yt);var $o=Kt("Minutes",!1);at("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Mt("s",mt),Mt("ss",mt,ut),Lt(["s","ss"],Ht);var Ro,Lo=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),Mt("S",yt,ht),Mt("SS",yt,ut),Mt("SSS",yt,pt),Ro="SSSS";Ro.length<=9;Ro+="S")Mt(Ro,wt);function Po(t,e){e[Wt]=E(1e3*("0."+t))}for(Ro="S";Ro.length<=9;Ro+="S")Lt(Ro,Po);var No=Kt("Milliseconds",!1);function Io(){return this._isUTC?"UTC":""}function Fo(){return this._isUTC?"Coordinated Universal Time":""}at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var zo=w.prototype;function Bo(t){return Xn(1e3*t)}function Yo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}zo.add=$i,zo.calendar=Pi,zo.clone=Ni,zo.diff=Wi,zo.endOf=ho,zo.format=Xi,zo.from=qi,zo.fromNow=Zi,zo.to=Ki,zo.toNow=Ji,zo.get=te,zo.invalidAt=vo,zo.isAfter=Ii,zo.isBefore=Fi,zo.isBetween=zi,zo.isSame=Bi,zo.isSameOrAfter=Yi,zo.isSameOrBefore=Hi,zo.isValid=xo,zo.lang=to,zo.locale=Qi,zo.localeData=eo,zo.max=Zn,zo.min=qn,zo.parsingFlags=yo,zo.set=ee,zo.startOf=co,zo.subtract=Ri,zo.toArray=go,zo.toObject=mo,zo.toDate=fo,zo.toISOString=ji,zo.inspect=Gi,zo.toJSON=bo,zo.toString=Ui,zo.unix=po,zo.valueOf=uo,zo.creationData=_o,zo.year=qt,zo.isLeapYear=Zt,zo.weekYear=So,zo.isoWeekYear=ko,zo.quarter=zo.quarters=Mo,zo.month=ue,zo.daysInMonth=pe,zo.week=zo.weeks=Me,zo.isoWeek=zo.isoWeeks=Te,zo.weeksInYear=Oo,zo.isoWeeksInYear=Eo,zo.date=To,zo.day=zo.days=He,zo.weekday=We,zo.isoWeekday=Ve,zo.dayOfYear=Ao,zo.hour=zo.hours=sn,zo.minute=zo.minutes=$o,zo.second=zo.seconds=Lo,zo.millisecond=zo.milliseconds=No,zo.utcOffset=pi,zo.utc=gi,zo.local=mi,zo.parseZone=bi,zo.hasAlignedHourOffset=xi,zo.isDST=yi,zo.isLocal=_i,zo.isUtcOffset=wi,zo.isUtc=Si,zo.isUTC=Si,zo.zoneAbbr=Io,zo.zoneName=Fo,zo.dates=D("dates accessor is deprecated. Use date instead.",To),zo.months=D("months accessor is deprecated. Use month instead",ue),zo.years=D("years accessor is deprecated. Use year instead",qt),zo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),zo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vi);var Wo=P.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 jo(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 Go(t,e){return Uo(t,e,"months")}function Xo(t,e){return Uo(t,e,"monthsShort")}function qo(t,e,n){return jo(t,e,n,"weekdays")}function Zo(t,e,n){return jo(t,e,n,"weekdaysShort")}function Ko(t,e,n){return jo(t,e,n,"weekdaysMin")}Wo.calendar=I,Wo.longDateFormat=z,Wo.invalidDate=Y,Wo.ordinal=V,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=j,Wo.pastFuture=G,Wo.set=R,Wo.months=ae,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=ge,Wo.week=Ee,Wo.firstDayOfYear=De,Wo.firstDayOfWeek=Ce,Wo.weekdays=Pe,Wo.weekdaysMin=ze,Wo.weekdaysShort=Ie,Wo.weekdaysParse=Ye,Wo.weekdaysRegex=je,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=D("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=D("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=k(r/1e3),l.seconds=t%60,e=k(t/60),l.minutes=e%60,n=k(e/60),l.hours=n%24,a+=k(n/24),s+=o=k(rr(a)),a-=ir(ar(o)),i=k(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 yr(){return Oi(this)}function vr(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"),Sr=_r("seconds"),kr=_r("minutes"),Er=_r("hours"),Or=_r("days"),Cr=_r("months"),Dr=_r("years");function Mr(){return k(this.days()/7)}var Tr=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,M:11};function $r(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Rr(t,e,n){var i=Oi(t).abs(),o=Tr(i.as("s")),r=Tr(i.as("m")),a=Tr(i.as("h")),s=Tr(i.as("d")),l=Tr(i.as("M")),c=Tr(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,$r.apply(null,d)}function Lr(t){return void 0===t?Tr:"function"==typeof t&&(Tr=t,!0)}function Pr(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=Rr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Ir=Math.abs;function Fr(t){return(t>0)-(t<0)||+t}function zr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Ir(this._milliseconds)/1e3,i=Ir(this._days),o=Ir(this._months);t=k(n/60),e=k(t/60),n%=60,t%=60;var r=k(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=Fr(this._months)!==Fr(h)?"-":"",f=Fr(this._days)!==Fr(h)?"-":"",g=Fr(this._milliseconds)!==Fr(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 Br=ri.prototype;return Br.isValid=ii,Br.abs=Qo,Br.add=er,Br.subtract=nr,Br.as=sr,Br.asMilliseconds=dr,Br.asSeconds=hr,Br.asMinutes=ur,Br.asHours=pr,Br.asDays=fr,Br.asWeeks=gr,Br.asMonths=mr,Br.asQuarters=br,Br.asYears=xr,Br.valueOf=lr,Br._bubble=or,Br.clone=yr,Br.get=vr,Br.milliseconds=wr,Br.seconds=Sr,Br.minutes=kr,Br.hours=Er,Br.days=Or,Br.weeks=Mr,Br.months=Cr,Br.years=Dr,Br.humanize=Nr,Br.toISOString=zr,Br.toString=zr,Br.toJSON=zr,Br.locale=Qi,Br.localeData=eo,Br.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zr),Br.lang=to,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Mt("x",St),Mt("X",Ot),Lt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Lt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=zo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=Bo,i.months=Go,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Oi,i.isMoment=S,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=Lr,i.relativeTimeThreshold=Pr,i.calendarFormat=Li,i.prototype=zo,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}()),ih.exports;var t}var rh,ah,sh={};var lh=function(){if(ah)return Qd;ah=1;var t,e=(Kd||(Kd=1,(t=th).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),th.exports).default;Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.default=void 0;var n=e(oh()),i=function(){if(rh)return sh;rh=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.call=a,sh.default=void 0,sh.note=o,sh.noteOnce=l,sh.preMessage=void 0,sh.resetWarned=r,sh.warning=i,sh.warningOnce=s;var t={},e=[],n=sh.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,sh.default=s,sh}(),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 Qd.default=o,Qd}(),ch=_t(lh);const dh=e.DatePicker.generatePicker(ch);const hh=({selectionType:t,selected:e=!1,disabled:n=!1,icon:i,tooltip:o,secondaryText:r,children:s,onClick:l,value:c,name:d})=>{const{color:h}=Ne(),u=()=>{!n&&l&&l()};return a.default.createElement(uh,{selected:e,disabled:n,borderColor:e&&!n?h.base.primary2:h.base.line,bgColor:n?h.surface.disabledSurface:h.surface.neutral,onClick:u,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),u())},role:"radio"===t?"radio":"checkbox","aria-checked":e,"aria-disabled":n,tabIndex:n?-1:0,"data-value":c,"data-name":d},"radio"===t?i?a.default.createElement(ph,{disabled:n},i):e?a.default.createElement(ph,{disabled:n},a.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.default.createElement("circle",{cx:"12",cy:"12",r:"11",stroke:h.base.primary2,strokeWidth:"2"}),a.default.createElement("circle",{cx:"12",cy:"12",r:"6",fill:h.base.primary2}))):a.default.createElement(ph,{disabled:n},a.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.default.createElement("circle",{cx:"12",cy:"12",r:"11",stroke:h.base.line,strokeWidth:"2"}))):e?a.default.createElement(ph,{disabled:n},a.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.default.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"4",fill:h.base.primary2}),a.default.createElement("path",{d:"M7 12L10.5 15.5L17 9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))):a.default.createElement(ph,{disabled:n},a.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},a.default.createElement("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"3.5",stroke:h.base.line,strokeWidth:"1.5"}))),a.default.createElement(fh,null,a.default.createElement(gh,null,a.default.createElement(mh,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutral},s),o&&a.default.createElement(vc,{content:o,placement:"top"},a.default.createElement(xh,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutralSecondary},a.default.createElement(Dc,{icon:"info",size:"s",fill:0,color:"currentColor"})))),r&&a.default.createElement(bh,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutralSecondary},r)))};hh.displayName="SelectionBox";const uh=ee.div`
742
+ `;var Qd={Group:t=>s.default.createElement(e.Radio.Group,Object.assign({size:"large",onChange:t.onChange},t)),Button:function(t){var{children:n,disabled:i}=t,o=d(t,["children","disabled"]);const{brand:r}=Fe(),a=`\n &.ant-radio-button-wrapper {\n ${i?"":`color: ${exports.NEUTRAL_COLORS.BLACK} !important;`}\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ${qe} !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ${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 ${i?"":`\n border-color: ${r.primary.default} !important;\n color: ${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 ${r.primary.default} !important;\n color: ${r.primary.default} !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ${Q.S500} !important;\n }\n\n circle.border {\n stroke: ${r.primary.default} !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ${r.primary.default} !important;\n color: ${r.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: ${exports.NEUTRAL_COLORS.BLACK} !important;\n }\n `;return s.default.createElement(e.Radio.Button,Object.assign({className:pt(a),disabled:i},o),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))}};function th(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 eh,nh={exports:{}};var ih,oh=(eh||(eh=1,(ih=nh).exports=function(){var t,e;function n(){return t.apply(null,arguments)}function i(e){t=e}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(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 s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return jn(t,e,n,i,!0).utc()}function f(){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=f()),t._pf}function m(t){if(null==t._isValid){var n=g(t),i=e.call(n.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(o=o&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function b(t){var e=p(NaN);return null!=t?u(g(e),t):g(e).userInvalidated=!0,e}e=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 x=n.momentProperties=[];function y(t,e){var n,i,o;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=g(e)),s(e._locale)||(t._locale=e._locale),x.length>0)for(n=0;n<x.length;n++)s(o=e[i=x[n]])||(t[i]=o);return t}var v=!1;function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function E(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&&k(t[i])!==k(e[i]))&&a++;return a+r}function O(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var i=!0;return u(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){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)}O(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var D,M={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(O(e),M[t]=!0)}function A(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t){var e,n;for(n in t)A(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 R(t,e){var n,i=u({},t);for(n in e)h(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},u(i[n],t[n]),u(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)h(t,n)&&!h(e,n)&&r(t[n])&&(i[n]=u({},i[n]));return i}function L(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return A(i)?i.call(e,n):i}var I={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 F(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 z="Invalid date";function B(){return this._invalidDate}var Y="%d",H=/\d{1,2}/;function W(t){return this._ordinal.replace("%d",t)}var V={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 U(t,e,n,i){var o=this._relativeTime[n];return A(o)?o(t,e,n,i):o.replace(/%d/i,t)}function j(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(n)?n(e):n.replace(/%s/i,e)}var G={};function X(t,e){var n=t.toLowerCase();G[n]=G[n+"s"]=G[e]=t}function q(t){return"string"==typeof t?G[t]||G[t.toLowerCase()]:void 0}function Z(t){var e,n,i={};for(n in t)h(t,n)&&(e=q(n))&&(i[e]=t[n]);return i}var K={};function J(t,e){K[t]=e}function Q(t){var e=[];for(var n in t)e.push({unit:n,priority:K[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function tt(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 et=/(\[[^\[]*\])|(\\)?([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,nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,it={},ot={};function rt(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(ot[t]=o),e&&(ot[e[0]]=function(){return tt(o.apply(this,arguments),e[1],e[2])}),n&&(ot[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function at(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function st(t){var e,n,i=t.match(et);for(e=0,n=i.length;e<n;e++)ot[i[e]]?i[e]=ot[i[e]]:i[e]=at(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=A(i[o])?i[o].call(e,t):i[o];return r}}function lt(t,e){return t.isValid()?(e=ct(e,t.localeData()),it[e]=it[e]||st(e),it[e](t)):t.localeData().invalidDate()}function ct(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(nt.lastIndex=0;n>=0&&nt.test(t);)t=t.replace(nt,i),nt.lastIndex=0,n-=1;return t}var dt=/\d/,ht=/\d\d/,ut=/\d{3}/,pt=/\d{4}/,ft=/[+-]?\d{6}/,gt=/\d\d?/,mt=/\d\d\d\d?/,bt=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,yt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,_t=/\d+/,wt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,Et=/[+-]?\d+(\.\d{1,3})?/,Ot=/[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,Ct={};function Dt(t,e,n){Ct[t]=A(e)?e:function(t,i){return t&&n?n:e}}function Mt(t,e){return h(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(Tt(t))}function Tt(t){return At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function At(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var $t={};function Rt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),l(e)&&(i=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)$t[t[n]]=i}function Lt(t,e){Rt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Pt(t,e,n){null!=e&&h($t,t)&&$t[t](e,n._a,n,t)}var Nt=0,It=1,Ft=2,zt=3,Bt=4,Yt=5,Ht=6,Wt=7,Vt=8;function Ut(t){return jt(t)?366:365}function jt(t){return t%4==0&&t%100!=0||t%400==0}rt("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),rt(0,["YY",2],0,function(){return this.year()%100}),rt(0,["YYYY",4],0,"year"),rt(0,["YYYYY",5],0,"year"),rt(0,["YYYYYY",6,!0],0,"year"),X("year","y"),J("year",1),Dt("Y",wt),Dt("YY",gt,ht),Dt("YYYY",yt,pt),Dt("YYYYY",vt,ft),Dt("YYYYYY",vt,ft),Rt(["YYYYY","YYYYYY"],Nt),Rt("YYYY",function(t,e){e[Nt]=2===t.length?n.parseTwoDigitYear(t):k(t)}),Rt("YY",function(t,e){e[Nt]=n.parseTwoDigitYear(t)}),Rt("Y",function(t,e){e[Nt]=parseInt(t,10)}),n.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var Gt,Xt=Zt("FullYear",!0);function qt(){return jt(this.year())}function Zt(t,e){return function(i){return null!=i?(Jt(this,t,i),n.updateOffset(this,e),this):Kt(this,t)}}function Kt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Jt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&jt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ne(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Qt(t){return A(this[t=q(t)])?this[t]():this}function te(t,e){if("object"==typeof t)for(var n=Q(t=Z(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(A(this[t=q(t)]))return this[t](e);return this}function ee(t,e){return(t%e+e)%e}function ne(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ee(e,12);return t+=(e-n)/12,1===n?jt(t)?29:28:31-n%7%2}Gt=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},rt("M",["MM",2],"Mo",function(){return this.month()+1}),rt("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),rt("MMMM",0,0,function(t){return this.localeData().months(this,t)}),X("month","M"),J("month",8),Dt("M",gt),Dt("MM",gt,ht),Dt("MMM",function(t,e){return e.monthsShortRegex(t)}),Dt("MMMM",function(t,e){return e.monthsRegex(t)}),Rt(["M","MM"],function(t,e){e[It]=k(t)-1}),Rt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[It]=o:g(n).invalidMonth=t});var ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function re(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ie).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone}var ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function se(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ie.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(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=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Gt.call(this._shortMonthsParse,a))?o:null:-1!==(o=Gt.call(this._longMonthsParse,a))?o:null:"MMM"===e?-1!==(o=Gt.call(this._shortMonthsParse,a))||-1!==(o=Gt.call(this._longMonthsParse,a))?o:null:-1!==(o=Gt.call(this._longMonthsParse,a))||-1!==(o=Gt.call(this._shortMonthsParse,a))?o:null}function ce(t,e,n){var i,o,r;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=p([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 de(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ne(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(de(this,t),n.updateOffset(this,!0),this):Kt(this,"Month")}function ue(){return ne(this.year(),this.month())}var pe=Ot;function fe(t){return this._monthsParseExact?(h(this,"_monthsRegex")||be.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=pe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var ge=Ot;function me(t){return this._monthsParseExact?(h(this,"_monthsRegex")||be.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function be(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=p([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]=At(i[e]),o[e]=At(o[e]);for(e=0;e<24;e++)r[e]=At(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 xe(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 ve(t,e,n){var i=7+e-n;return-(7+ye(t,0,i).getUTCDay()-e)%7+i-1}function _e(t,e,n,i,o){var r,a,s=1+7*(e-1)+(7+n-i)%7+ve(t,i,o);return s<=0?a=Ut(r=t-1)+s:s>Ut(t)?(r=t+1,a=s-Ut(t)):(r=t,a=s),{year:r,dayOfYear:a}}function we(t,e,n){var i,o,r=ve(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=ve(t,e,n),o=ve(t+1,e,n);return(Ut(t)-i+o)/7}function ke(t){return we(t,this._week.dow,this._week.doy).week}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),X("week","w"),X("isoWeek","W"),J("week",5),J("isoWeek",5),Dt("w",gt),Dt("ww",gt,ht),Dt("W",gt),Dt("WW",gt,ht),Lt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)});var Ee={dow:0,doy:6};function Oe(){return this._week.dow}function Ce(){return this._week.doy}function De(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Me(t){var e=we(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Te(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function $e(t,e){return t.slice(e,7).concat(t.slice(0,e))}rt("d",0,"do","day"),rt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),rt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),rt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),rt("e",0,0,"weekday"),rt("E",0,0,"isoWeekday"),X("day","d"),X("weekday","e"),X("isoWeekday","E"),J("day",11),J("weekday",11),J("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)}),Lt(["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}),Lt(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Le(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?$e(n,this._week.dow):t?n[t.day()]:n}var Pe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Ne(t){return!0===t?$e(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Fe(t){return!0===t?$e(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function ze(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=p([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=Gt.call(this._weekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Gt.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Gt.call(this._minWeekdaysParse,a))?o:null:"dddd"===e?-1!==(o=Gt.call(this._weekdaysParse,a))||-1!==(o=Gt.call(this._shortWeekdaysParse,a))||-1!==(o=Gt.call(this._minWeekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Gt.call(this._shortWeekdaysParse,a))||-1!==(o=Gt.call(this._weekdaysParse,a))||-1!==(o=Gt.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Gt.call(this._minWeekdaysParse,a))||-1!==(o=Gt.call(this._weekdaysParse,a))||-1!==(o=Gt.call(this._shortWeekdaysParse,a))?o:null}function Be(t,e,n){var i,o,r;if(this._weekdaysParseExact)return ze.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=p([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 Ye(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Te(t,this.localeData()),this.add(t-e,"d")):e}function He(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 We(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ve=Ot;function Ue(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var je=Ot;function Ge(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=je),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Xe=Ot;function qe(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){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=p([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]=At(s[e]),l[e]=At(l[e]),c[e]=At(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 Ke(){return this.hours()%12||12}function Je(){return this.hours()||24}function Qe(t,e){rt(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function tn(t,e){return e._meridiemParse}function en(t){return"p"===(t+"").toLowerCase().charAt(0)}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Ke),rt("k",["kk",2],0,Je),rt("hmm",0,0,function(){return""+Ke.apply(this)+tt(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Ke.apply(this)+tt(this.minutes(),2)+tt(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+tt(this.minutes(),2)}),rt("Hmmss",0,0,function(){return""+this.hours()+tt(this.minutes(),2)+tt(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),X("hour","h"),J("hour",13),Dt("a",tn),Dt("A",tn),Dt("H",gt),Dt("h",gt),Dt("k",gt),Dt("HH",gt,ht),Dt("hh",gt,ht),Dt("kk",gt,ht),Dt("hmm",mt),Dt("hmmss",bt),Dt("Hmm",mt),Dt("Hmmss",bt),Rt(["H","HH"],zt),Rt(["k","kk"],function(t,e,n){var i=k(t);e[zt]=24===i?0:i}),Rt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Rt(["h","hh"],function(t,e,n){e[zt]=k(t),g(n).bigHour=!0}),Rt("hmm",function(t,e,n){var i=t.length-2;e[zt]=k(t.substr(0,i)),e[Bt]=k(t.substr(i)),g(n).bigHour=!0}),Rt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[zt]=k(t.substr(0,i)),e[Bt]=k(t.substr(i,2)),e[Yt]=k(t.substr(o)),g(n).bigHour=!0}),Rt("Hmm",function(t,e,n){var i=t.length-2;e[zt]=k(t.substr(0,i)),e[Bt]=k(t.substr(i))}),Rt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[zt]=k(t.substr(0,i)),e[Bt]=k(t.substr(i,2)),e[Yt]=k(t.substr(o))});var nn=/[ap]\.?m?\.?/i;function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var rn,an=Zt("Hours",!0),sn={calendar:P,longDateFormat:I,invalidDate:z,ordinal:Y,dayOfMonthOrdinalParse:H,relativeTime:V,months:oe,monthsShort:ae,week:Ee,weekdays:Re,weekdaysMin:Ie,weekdaysShort:Pe,meridiemParse:nn},ln={},cn={};function dn(t){return t?t.toLowerCase().replace("_","-"):t}function hn(t){for(var e,n,i,o,r=0;r<t.length;){for(e=(o=dn(t[r]).split("-")).length,n=(n=dn(t[r+1]))?n.split("-"):null;e>0;){if(i=un(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&E(o,n,!0)>=e-1)break;e--}r++}return rn}function un(t){var e=null;if(!ln[t]&&ih&&ih.exports)try{e=rn._abbr,th("./locale/"+t),pn(e)}catch(t){}return ln[t]}function pn(t,e){var n;return t&&((n=s(e)?mn(t):fn(t,e))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),rn._abbr}function fn(t,e){if(null!==e){var n,i=sn;if(e.abbr=t,null!=ln[t])T("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=ln[t]._config;else if(null!=e.parentLocale)if(null!=ln[e.parentLocale])i=ln[e.parentLocale]._config;else{if(null==(n=un(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ln[t]=new L(R(i,e)),cn[t]&&cn[t].forEach(function(t){fn(t.name,t.config)}),pn(t),ln[t]}return delete ln[t],null}function gn(t,e){if(null!=e){var n,i,o=sn;null!=(i=un(t))&&(o=i._config),(n=new L(e=R(o,e))).parentLocale=ln[t],ln[t]=n,pn(t)}else null!=ln[t]&&(null!=ln[t].parentLocale?ln[t]=ln[t].parentLocale:null!=ln[t]&&delete ln[t]);return ln[t]}function mn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return rn;if(!o(t)){if(e=un(t))return e;t=[t]}return hn(t)}function bn(){return D(ln)}function xn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[It]<0||n[It]>11?It:n[Ft]<1||n[Ft]>ne(n[Nt],n[It])?Ft:n[zt]<0||n[zt]>24||24===n[zt]&&(0!==n[Bt]||0!==n[Yt]||0!==n[Ht])?zt:n[Bt]<0||n[Bt]>59?Bt:n[Yt]<0||n[Yt]>59?Yt:n[Ht]<0||n[Ht]>999?Ht:-1,g(t)._overflowDayOfYear&&(e<Nt||e>Ft)&&(e=Ft),g(t)._overflowWeeks&&-1===e&&(e=Wt),g(t)._overflowWeekday&&-1===e&&(e=Vt),g(t).overflow=e),t}function yn(t,e,n){return null!=t?t:null!=e?e:n}function vn(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function _n(t){var e,n,i,o,r,a=[];if(!t._d){for(i=vn(t),t._w&&null==t._a[Ft]&&null==t._a[It]&&wn(t),null!=t._dayOfYear&&(r=yn(t._a[Nt],i[Nt]),(t._dayOfYear>Ut(r)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=ye(r,0,t._dayOfYear),t._a[It]=n.getUTCMonth(),t._a[Ft]=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[zt]&&0===t._a[Bt]&&0===t._a[Yt]&&0===t._a[Ht]&&(t._nextDay=!0,t._a[zt]=0),t._d=(t._useUTC?ye:xe).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[zt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function wn(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[Nt],we(Gn(),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=we(Gn(),r,a);n=yn(e.gg,t._a[Nt],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=_e(n,i,o,r,a),t._a[Nt]=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)?)?$/,kn=/^\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=/Z|[+-]\d\d(?::?\d\d)?/,On=[["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}/]],Cn=[["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 Mn(t){var e,n,i,o,r,a,s=t._i,l=Sn.exec(s)||kn.exec(s);if(l){for(g(t).iso=!0,e=0,n=On.length;e<n;e++)if(On[e][1].exec(l[1])){o=On[e][0],i=!1!==On[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[3])){r=(l[2]||" ")+Cn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!En.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=o+(r||"")+(a||""),zn(t)}else t._isValid=!1}var Tn=/^(?:(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 An(t,e,n,i,o,r){var a=[$n(t),ae.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}function $n(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Rn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(t,e,n){return!t||Pe.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Pn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(t,e,n){if(t)return Pn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function In(t){var e=Tn.exec(Rn(t._i));if(e){var n=An(e[4],e[3],e[2],e[5],e[6],e[7]);if(!Ln(e[1],n,t))return;t._a=n,t._tzm=Nn(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 Fn(t){var e=Dn.exec(t._i);null===e?(Mn(t),!1===t._isValid&&(delete t._isValid,In(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}function zn(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],g(t).empty=!0;var e,i,o,r,a,s=""+t._i,l=s.length,c=0;for(o=ct(t._f,t._locale).match(et)||[],e=0;e<o.length;e++)r=o[e],(i=(s.match(Mt(r,t))||[])[0])&&((a=s.substr(0,s.indexOf(i))).length>0&&g(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),ot[r]?(i?g(t).empty=!1:g(t).unusedTokens.push(r),Pt(r,i,t)):t._strict&&!i&&g(t).unusedTokens.push(r);g(t).charsLeftOver=l-c,s.length>0&&g(t).unusedInput.push(s),t._a[zt]<=12&&!0===g(t).bigHour&&t._a[zt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[zt]=Bn(t._locale,t._a[zt],t._meridiem),_n(t),xn(t)}else In(t);else Mn(t)}function Bn(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 Yn(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],zn(e),m(e)&&(r+=g(e).charsLeftOver,r+=10*g(e).unusedTokens.length,g(e).score=r,(null==i||r<i)&&(i=r,n=e));u(t,n||e)}function Hn(t){if(!t._d){var e=Z(t._i);t._a=d([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),_n(t)}}function Wn(t){var e=new _(xn(Vn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Vn(t){var e=t._i,n=t._f;return t._locale=t._locale||mn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(xn(e)):(c(e)?t._d=e:o(n)?Yn(t):n?zn(t):Un(t),m(t)||(t._d=null),t))}function Un(t){var e=t._i;s(e)?t._d=new Date(n.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Fn(t):o(e)?(t._a=d(e.slice(0),function(t){return parseInt(t,10)}),_n(t)):r(e)?Hn(t):l(e)?t._d=new Date(e):n.createFromInputFallback(t)}function jn(t,e,n,i,s){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(r(t)&&a(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=t,l._f=e,l._strict=i,Wn(l)}function Gn(t,e,n,i){return jn(t,e,n,i,!1)}n.createFromInputFallback=C("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":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Xn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Gn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()}),qn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Gn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()});function Zn(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Gn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Kn(){return Zn("isBefore",[].slice.call(arguments,0))}function Jn(){return Zn("isAfter",[].slice.call(arguments,0))}var Qn=function(){return Date.now?Date.now():+new Date},ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ei(t){for(var e in t)if(-1===Gt.call(ti,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ti.length;++i)if(t[ti[i]]){if(n)return!1;parseFloat(t[ti[i]])!==k(t[ti[i]])&&(n=!0)}return!0}function ni(){return this._isValid}function ii(){return Ei(NaN)}function oi(t){var e=Z(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=ei(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=mn(),this._bubble()}function ri(t){return t instanceof oi}function ai(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function si(t,e){rt(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+tt(~~(t/60),2)+e+tt(~~t%60,2)})}si("Z",":"),si("ZZ",""),Dt("Z",kt),Dt("ZZ",kt),Rt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ci(kt,t)});var li=/([\+\-]|\d\d)/gi;function ci(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(li)||["-",0,0],o=60*i[1]+k(i[2]);return 0===o?0:"+"===i[0]?o:-o}function di(t,e){var i,o;return e._isUTC?(i=e.clone(),o=(w(t)||c(t)?t.valueOf():Gn(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),n.updateOffset(i,!1),i):Gn(t).local()}function hi(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function ui(t,e,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ci(kt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(o=hi(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!e||this._changeInProgress?Ti(this,Ei(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:hi(this)}function pi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function fi(t){return this.utcOffset(0,t)}function gi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(hi(this),"m")),this}function mi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ci(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function bi(t){return!!this.isValid()&&(t=t?Gn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function xi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yi(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Vn(t))._a){var e=t._isUTC?p(t._a):Gn(t._a);this._isDSTShifted=this.isValid()&&E(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function vi(){return!!this.isValid()&&!this._isUTC}function _i(){return!!this.isValid()&&this._isUTC}function wi(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ki=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ei(t,e){var n,i,o,r=t,a=null;return ri(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Si.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:k(a[Ft])*n,h:k(a[zt])*n,m:k(a[Bt])*n,s:k(a[Yt])*n,ms:k(ai(1e3*a[Ht]))*n}):(a=ki.exec(t))?(n="-"===a[1]?-1:1,r={y:Oi(a[2],n),M:Oi(a[3],n),w:Oi(a[4],n),d:Oi(a[5],n),h:Oi(a[6],n),m:Oi(a[7],n),s:Oi(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Di(Gn(r.from),Gn(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),i=new oi(r),ri(t)&&h(t,"_locale")&&(i._locale=t._locale),i}function Oi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ci(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=di(e,t),t.isBefore(e)?n=Ci(t,e):((n=Ci(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mi(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(T(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),Ti(this,Ei(n="string"==typeof n?+n:n,i),t),this}}function Ti(t,e,i,o){var r=e._milliseconds,a=ai(e._days),s=ai(e._months);t.isValid()&&(o=null==o||o,s&&de(t,Kt(t,"Month")+s*i),a&&Jt(t,"Date",Kt(t,"Date")+a*i),r&&t._d.setTime(t._d.valueOf()+r*i),o&&n.updateOffset(t,a||s))}Ei.fn=oi.prototype,Ei.invalid=ii;var Ai=Mi(1,"add"),$i=Mi(-1,"subtract");function Ri(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 Li(t,e){var i=t||Gn(),o=di(i,this).startOf("day"),r=n.calendarFormat(this,o)||"sameElse",a=e&&(A(e[r])?e[r].call(this,i):e[r]);return this.format(a||this.localeData().calendar(r,this,Gn(i)))}function Pi(){return new _(this)}function Ni(t,e){var n=w(t)?t:Gn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=q(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Ii(t,e){var n=w(t)?t:Gn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=q(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Fi(t,e,n,i){var o=w(t)?t:Gn(t),r=w(e)?e:Gn(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 zi(t,e){var n,i=w(t)?t:Gn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=q(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Bi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Yi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Hi(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=di(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=q(e)){case"year":r=Wi(this,i)/12;break;case"month":r=Wi(this,i);break;case"quarter":r=Wi(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 Wi(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 Vi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ui(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?lt(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",lt(n,"Z")):lt(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ji(){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 Gi(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=lt(this,t);return this.localeData().postformat(e)}function Xi(t,e){return this.isValid()&&(w(t)&&t.isValid()||Gn(t).isValid())?Ei({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function qi(t){return this.from(Gn(),t)}function Zi(t,e){return this.isValid()&&(w(t)&&t.isValid()||Gn(t).isValid())?Ei({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ki(t){return this.to(Gn(),t)}function Ji(t){var e;return void 0===t?this._locale._abbr:(null!=(e=mn(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qi=C("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 to(){return this._locale}var eo=1e3,no=60*eo,io=60*no,oo=3506328*io;function ro(t,e){return(t%e+e)%e}function ao(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-oo:new Date(t,e,n).valueOf()}function so(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-oo:Date.UTC(t,e,n)}function lo(t){var e;if(void 0===(t=q(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?so:ao;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ro(e+(this._isUTC?0:this.utcOffset()*no),io);break;case"minute":e=this._d.valueOf(),e-=ro(e,no);break;case"second":e=this._d.valueOf(),e-=ro(e,eo)}return this._d.setTime(e),n.updateOffset(this,!0),this}function co(t){var e;if(void 0===(t=q(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?so:ao;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=io-ro(e+(this._isUTC?0:this.utcOffset()*no),io)-1;break;case"minute":e=this._d.valueOf(),e+=no-ro(e,no)-1;break;case"second":e=this._d.valueOf(),e+=eo-ro(e,eo)-1}return this._d.setTime(e),n.updateOffset(this,!0),this}function ho(){return this._d.valueOf()-6e4*(this._offset||0)}function uo(){return Math.floor(this.valueOf()/1e3)}function po(){return new Date(this.valueOf())}function fo(){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 mo(){return this.isValid()?this.toISOString():null}function bo(){return m(this)}function xo(){return u({},g(this))}function yo(){return g(this).overflow}function vo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _o(t,e){rt(0,[t,t.length],0,e)}function wo(t){return Oo.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return Oo.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function ko(){return Se(this.year(),1,4)}function Eo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Oo(t,e,n,i,o){var r;return null==t?we(this,i,o).year:(e>(r=Se(t,i,o))&&(e=r),Co.call(this,t,e,n,i,o))}function Co(t,e,n,i,o){var r=_e(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)}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_o("gggg","weekYear"),_o("ggggg","weekYear"),_o("GGGG","isoWeekYear"),_o("GGGGG","isoWeekYear"),X("weekYear","gg"),X("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),Dt("G",wt),Dt("g",wt),Dt("GG",gt,ht),Dt("gg",gt,ht),Dt("GGGG",yt,pt),Dt("gggg",yt,pt),Dt("GGGGG",vt,ft),Dt("ggggg",vt,ft),Lt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),Lt(["gg","GG"],function(t,e,i,o){e[o]=n.parseTwoDigitYear(t)}),rt("Q",0,"Qo","quarter"),X("quarter","Q"),J("quarter",7),Dt("Q",dt),Rt("Q",function(t,e){e[It]=3*(k(t)-1)}),rt("D",["DD",2],"Do","date"),X("date","D"),J("date",9),Dt("D",gt),Dt("DD",gt,ht),Dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Rt(["D","DD"],Ft),Rt("Do",function(t,e){e[Ft]=k(t.match(gt)[0])});var Mo=Zt("Date",!0);function To(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}rt("DDD",["DDDD",3],"DDDo","dayOfYear"),X("dayOfYear","DDD"),J("dayOfYear",4),Dt("DDD",xt),Dt("DDDD",ut),Rt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),rt("m",["mm",2],0,"minute"),X("minute","m"),J("minute",14),Dt("m",gt),Dt("mm",gt,ht),Rt(["m","mm"],Bt);var Ao=Zt("Minutes",!1);rt("s",["ss",2],0,"second"),X("second","s"),J("second",15),Dt("s",gt),Dt("ss",gt,ht),Rt(["s","ss"],Yt);var $o,Ro=Zt("Seconds",!1);for(rt("S",0,0,function(){return~~(this.millisecond()/100)}),rt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rt(0,["SSS",3],0,"millisecond"),rt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),rt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),rt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),rt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),rt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),rt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),X("millisecond","ms"),J("millisecond",16),Dt("S",xt,dt),Dt("SS",xt,ht),Dt("SSS",xt,ut),$o="SSSS";$o.length<=9;$o+="S")Dt($o,_t);function Lo(t,e){e[Ht]=k(1e3*("0."+t))}for($o="S";$o.length<=9;$o+="S")Rt($o,Lo);var Po=Zt("Milliseconds",!1);function No(){return this._isUTC?"UTC":""}function Io(){return this._isUTC?"Coordinated Universal Time":""}rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Fo=_.prototype;function zo(t){return Gn(1e3*t)}function Bo(){return Gn.apply(null,arguments).parseZone()}function Yo(t){return t}Fo.add=Ai,Fo.calendar=Li,Fo.clone=Pi,Fo.diff=Hi,Fo.endOf=co,Fo.format=Gi,Fo.from=Xi,Fo.fromNow=qi,Fo.to=Zi,Fo.toNow=Ki,Fo.get=Qt,Fo.invalidAt=yo,Fo.isAfter=Ni,Fo.isBefore=Ii,Fo.isBetween=Fi,Fo.isSame=zi,Fo.isSameOrAfter=Bi,Fo.isSameOrBefore=Yi,Fo.isValid=bo,Fo.lang=Qi,Fo.locale=Ji,Fo.localeData=to,Fo.max=qn,Fo.min=Xn,Fo.parsingFlags=xo,Fo.set=te,Fo.startOf=lo,Fo.subtract=$i,Fo.toArray=fo,Fo.toObject=go,Fo.toDate=po,Fo.toISOString=Ui,Fo.inspect=ji,Fo.toJSON=mo,Fo.toString=Vi,Fo.unix=uo,Fo.valueOf=ho,Fo.creationData=vo,Fo.year=Xt,Fo.isLeapYear=qt,Fo.weekYear=wo,Fo.isoWeekYear=So,Fo.quarter=Fo.quarters=Do,Fo.month=he,Fo.daysInMonth=ue,Fo.week=Fo.weeks=De,Fo.isoWeek=Fo.isoWeeks=Me,Fo.weeksInYear=Eo,Fo.isoWeeksInYear=ko,Fo.date=Mo,Fo.day=Fo.days=Ye,Fo.weekday=He,Fo.isoWeekday=We,Fo.dayOfYear=To,Fo.hour=Fo.hours=an,Fo.minute=Fo.minutes=Ao,Fo.second=Fo.seconds=Ro,Fo.millisecond=Fo.milliseconds=Po,Fo.utcOffset=ui,Fo.utc=fi,Fo.local=gi,Fo.parseZone=mi,Fo.hasAlignedHourOffset=bi,Fo.isDST=xi,Fo.isLocal=vi,Fo.isUtcOffset=_i,Fo.isUtc=wi,Fo.isUTC=wi,Fo.zoneAbbr=No,Fo.zoneName=Io,Fo.dates=C("dates accessor is deprecated. Use date instead.",Mo),Fo.months=C("months accessor is deprecated. Use month instead",he),Fo.years=C("years accessor is deprecated. Use year instead",Xt),Fo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pi),Fo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yi);var Ho=L.prototype;function Wo(t,e,n,i){var o=mn(),r=p().set(i,e);return o[n](r,t)}function Vo(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Wo(t,i,n,"month");return o}function Uo(t,e,n,i){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var o,r=mn(),a=t?r._week.dow:0;if(null!=n)return Wo(e,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Wo(e,(o+a)%7,i,"day");return s}function jo(t,e){return Vo(t,e,"months")}function Go(t,e){return Vo(t,e,"monthsShort")}function Xo(t,e,n){return Uo(t,e,n,"weekdays")}function qo(t,e,n){return Uo(t,e,n,"weekdaysShort")}function Zo(t,e,n){return Uo(t,e,n,"weekdaysMin")}Ho.calendar=N,Ho.longDateFormat=F,Ho.invalidDate=B,Ho.ordinal=W,Ho.preparse=Yo,Ho.postformat=Yo,Ho.relativeTime=U,Ho.pastFuture=j,Ho.set=$,Ho.months=re,Ho.monthsShort=se,Ho.monthsParse=ce,Ho.monthsRegex=me,Ho.monthsShortRegex=fe,Ho.week=ke,Ho.firstDayOfYear=Ce,Ho.firstDayOfWeek=Oe,Ho.weekdays=Le,Ho.weekdaysMin=Fe,Ho.weekdaysShort=Ne,Ho.weekdaysParse=Be,Ho.weekdaysRegex=Ue,Ho.weekdaysShortRegex=Ge,Ho.weekdaysMinRegex=qe,Ho.isPM=en,Ho.meridiem=on,pn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",pn),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",mn);var Ko=Math.abs;function Jo(){var t=this._data;return this._milliseconds=Ko(this._milliseconds),this._days=Ko(this._days),this._months=Ko(this._months),t.milliseconds=Ko(t.milliseconds),t.seconds=Ko(t.seconds),t.minutes=Ko(t.minutes),t.hours=Ko(t.hours),t.months=Ko(t.months),t.years=Ko(t.years),this}function Qo(t,e,n,i){var o=Ei(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function tr(t,e){return Qo(this,t,e,1)}function er(t,e){return Qo(this,t,e,-1)}function nr(t){return t<0?Math.floor(t):Math.ceil(t)}function ir(){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*nr(rr(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(or(a)),a-=nr(rr(o)),i=S(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function or(t){return 4800*t/146097}function rr(t){return 146097*t/4800}function ar(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=q(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+or(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(rr(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 sr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN}function lr(t){return function(){return this.as(t)}}var cr=lr("ms"),dr=lr("s"),hr=lr("m"),ur=lr("h"),pr=lr("d"),fr=lr("w"),gr=lr("M"),mr=lr("Q"),br=lr("y");function xr(){return Ei(this)}function yr(t){return t=q(t),this.isValid()?this[t+"s"]():NaN}function vr(t){return function(){return this.isValid()?this._data[t]:NaN}}var _r=vr("milliseconds"),wr=vr("seconds"),Sr=vr("minutes"),kr=vr("hours"),Er=vr("days"),Or=vr("months"),Cr=vr("years");function Dr(){return S(this.days()/7)}var Mr=Math.round,Tr={ss:44,s:45,m:45,h:22,d:26,M:11};function Ar(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function $r(t,e,n){var i=Ei(t).abs(),o=Mr(i.as("s")),r=Mr(i.as("m")),a=Mr(i.as("h")),s=Mr(i.as("d")),l=Mr(i.as("M")),c=Mr(i.as("y")),d=o<=Tr.ss&&["s",o]||o<Tr.s&&["ss",o]||r<=1&&["m"]||r<Tr.m&&["mm",r]||a<=1&&["h"]||a<Tr.h&&["hh",a]||s<=1&&["d"]||s<Tr.d&&["dd",s]||l<=1&&["M"]||l<Tr.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Ar.apply(null,d)}function Rr(t){return void 0===t?Mr:"function"==typeof t&&(Mr=t,!0)}function Lr(t,e){return void 0!==Tr[t]&&(void 0===e?Tr[t]:(Tr[t]=e,"s"===t&&(Tr.ss=e-1),!0))}function Pr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=$r(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Nr=Math.abs;function Ir(t){return(t>0)-(t<0)||+t}function Fr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Nr(this._milliseconds)/1e3,i=Nr(this._days),o=Nr(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=Ir(this._months)!==Ir(h)?"-":"",f=Ir(this._days)!==Ir(h)?"-":"",g=Ir(this._milliseconds)!==Ir(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 zr=oi.prototype;return zr.isValid=ni,zr.abs=Jo,zr.add=tr,zr.subtract=er,zr.as=ar,zr.asMilliseconds=cr,zr.asSeconds=dr,zr.asMinutes=hr,zr.asHours=ur,zr.asDays=pr,zr.asWeeks=fr,zr.asMonths=gr,zr.asQuarters=mr,zr.asYears=br,zr.valueOf=sr,zr._bubble=ir,zr.clone=xr,zr.get=yr,zr.milliseconds=_r,zr.seconds=wr,zr.minutes=Sr,zr.hours=kr,zr.days=Er,zr.weeks=Dr,zr.months=Or,zr.years=Cr,zr.humanize=Pr,zr.toISOString=Fr,zr.toString=Fr,zr.toJSON=Fr,zr.locale=Ji,zr.localeData=to,zr.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fr),zr.lang=Qi,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Dt("x",wt),Dt("X",Et),Rt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Rt("x",function(t,e,n){n._d=new Date(k(t))}),n.version="2.24.0",i(Gn),n.fn=Fo,n.min=Kn,n.max=Jn,n.now=Qn,n.utc=p,n.unix=zo,n.months=jo,n.isDate=c,n.locale=pn,n.invalid=b,n.duration=Ei,n.isMoment=w,n.weekdays=Xo,n.parseZone=Bo,n.localeData=mn,n.isDuration=ri,n.monthsShort=Go,n.weekdaysMin=Zo,n.defineLocale=fn,n.updateLocale=gn,n.locales=bn,n.weekdaysShort=qo,n.normalizeUnits=q,n.relativeTimeRounding=Rr,n.relativeTimeThreshold=Lr,n.calendarFormat=Ri,n.prototype=Fo,n.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"},n}()),nh.exports),rh=St(oh);"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect,process.env.NODE_ENV,Number(t.version.split(".")[0]);let ah={};const sh=[];function lh(t,e){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){const t=sh.reduce((t,e)=>e(t??"","note"),e);t&&console.warn(`Note: ${t}`)}}function ch(t,e){!function(t,e,n){e||ah[n]||(t(!1,n),ah[n]=!0)}(lh,t,e)}var dh,hh={exports:{}};!function(){if(dh)return hh.exports;dh=1,hh.exports=i,hh.exports.isMobile=i,hh.exports.default=i;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,n=/android|ipad|playbook|silk/i;function i(i){i||(i={});let o=i.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let r=t.test(o)&&!e.test(o)||!!i.tablet&&n.test(o);return!r&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(r=!0),r}hh.exports}();var uh,ph={};!function(){if(uh)return ph;uh=1;var t=c.default;if("production"===process.env.NODE_ENV)ph.createRoot=t.createRoot,ph.hydrateRoot=t.hydrateRoot;else{var e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ph.createRoot=function(n,i){e.usingClientEntryPoint=!0;try{return t.createRoot(n,i)}finally{e.usingClientEntryPoint=!1}},ph.hydrateRoot=function(n,i,o){e.usingClientEntryPoint=!0;try{return t.hydrateRoot(n,i,o)}finally{e.usingClientEntryPoint=!1}}}}();const fh={getNow:()=>rh(),getFixedDate:t=>rh(t,"YYYY-MM-DD"),getEndDate:t=>t.clone().endOf("month"),getWeekDay:t=>{const e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:t=>t.year(),getMonth:t=>t.month(),getDate:t=>t.date(),getHour:t=>t.hour(),getMinute:t=>t.minute(),getSecond:t=>t.second(),getMillisecond:t=>t.millisecond(),addYear:(t,e)=>t.clone().add(e,"year"),addMonth:(t,e)=>t.clone().add(e,"month"),addDate:(t,e)=>t.clone().add(e,"day"),setYear:(t,e)=>t.clone().year(e),setMonth:(t,e)=>t.clone().month(e),setDate:(t,e)=>t.clone().date(e),setHour:(t,e)=>t.clone().hour(e),setMinute:(t,e)=>t.clone().minute(e),setSecond:(t,e)=>t.clone().second(e),setMillisecond:(t,e)=>t.clone().millisecond(e),isAfter:(t,e)=>t.isAfter(e),isValidate:t=>t.isValid(),locale:{getWeekFirstDay:t=>rh().locale(t).localeData().firstDayOfWeek(),getWeekFirstDate:(t,e)=>e.clone().locale(t).weekday(0),getWeek:(t,e)=>e.clone().locale(t).week(),getShortWeekDays:t=>rh().locale(t).localeData().weekdaysMin(),getShortMonths:t=>rh().locale(t).localeData().monthsShort(),format:(t,e,n)=>e.clone().locale(t).format(n),parse:(t,e,n)=>{const i=[];for(let o=0;o<n.length;o+=1){let r=n[o],a=e;if(r.includes("wo")||r.includes("Wo")){r=r.replace(/wo/g,"w").replace(/Wo/g,"W");const t=r.match(/[-YyMmDdHhSsWwGg]+/g),e=a.match(/[-\d]+/g);t&&e?(r=t.join(""),a=e.join("")):i.push(r.replace(/o/g,""))}const s=rh(a,r,t,!0);if(s.isValid())return s}for(let n=0;n<i.length;n+=1){const o=rh(e,i[n],t,!1);if(o.isValid())return ch(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),o}return null}}},gh=e.DatePicker.generatePicker(fh);const mh=({selectionType:t,selected:e=!1,disabled:n=!1,icon:i,tooltip:o,secondaryText:r,children:a,onClick:l,value:c,name:d})=>{const{color:h}=Fe(),u=()=>{!n&&l&&l()};return s.default.createElement(bh,{selected:e,disabled:n,borderColor:e&&!n?h.base.primary2:h.base.line,bgColor:n?h.surface.disabledSurface:h.surface.neutral,onClick:u,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),u())},role:"radio"===t?"radio":"checkbox","aria-checked":e,"aria-disabled":n,tabIndex:n?-1:0,"data-value":c,"data-name":d},"radio"===t?i?s.default.createElement(xh,{disabled:n},i):e?s.default.createElement(xh,{disabled:n},s.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s.default.createElement("circle",{cx:"12",cy:"12",r:"11",stroke:h.base.primary2,strokeWidth:"2"}),s.default.createElement("circle",{cx:"12",cy:"12",r:"6",fill:h.base.primary2}))):s.default.createElement(xh,{disabled:n},s.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s.default.createElement("circle",{cx:"12",cy:"12",r:"11",stroke:h.base.line,strokeWidth:"2"}))):e?s.default.createElement(xh,{disabled:n},s.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s.default.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"4",fill:h.base.primary2}),s.default.createElement("path",{d:"M7 12L10.5 15.5L17 9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))):s.default.createElement(xh,{disabled:n},s.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},s.default.createElement("rect",{x:"2.5",y:"2.5",width:"19",height:"19",rx:"3.5",stroke:h.base.line,strokeWidth:"1.5"}))),s.default.createElement(yh,null,s.default.createElement(vh,null,s.default.createElement(_h,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutral},a),o&&s.default.createElement(wc,{content:o,placement:"top"},s.default.createElement(Sh,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutralSecondary},s.default.createElement(Tc,{icon:"info",size:"s",fill:0,color:"currentColor"})))),r&&s.default.createElement(wh,{textColor:n?h.surface.disabledOnSurface:h.base.onNeutralSecondary},r)))};mh.displayName="SelectionBox";const bh=ie.div`
743
743
  display: flex;
744
744
  align-items: center;
745
745
  gap: 8px;
@@ -759,7 +759,7 @@ padding-top:
759
759
  outline: 2px solid ${t=>t.borderColor};
760
760
  outline-offset: 2px;
761
761
  }
762
- `,ph=ee.div`
762
+ `,xh=ie.div`
763
763
  flex-shrink: 0;
764
764
  width: 24px;
765
765
  height: 24px;
@@ -771,49 +771,49 @@ padding-top:
771
771
  & > svg {
772
772
  display: block;
773
773
  }
774
- `,fh=ee.div`
774
+ `,yh=ie.div`
775
775
  display: flex;
776
776
  flex-direction: column;
777
777
  gap: 4px;
778
778
  justify-content: center;
779
779
  min-width: 0;
780
- `,gh=ee.div`
780
+ `,vh=ie.div`
781
781
  display: flex;
782
782
  align-items: center;
783
783
  gap: 4px;
784
- `,mh=ee.div`
785
- ${fe};
786
- ${xe};
784
+ `,_h=ie.div`
785
+ ${me};
786
+ ${ve};
787
787
  color: ${t=>t.textColor};
788
788
  word-break: break-word;
789
- `,bh=ee.div`
790
- ${fe};
791
- ${ye};
789
+ `,wh=ie.div`
790
+ ${me};
791
+ ${_e};
792
792
  color: ${t=>t.textColor};
793
793
  word-break: break-word;
794
- `,xh=ee.span`
794
+ `,Sh=ie.span`
795
795
  flex-shrink: 0;
796
796
  display: inline-flex;
797
797
  align-items: center;
798
798
  justify-content: center;
799
799
  color: ${t=>t.textColor};
800
800
  cursor: pointer;
801
- `,yh=ee("div")`
801
+ `,kh=ie("div")`
802
802
  display: ${t=>"lg"===t.only?"block":"none"};
803
- ${de} {
803
+ ${ue} {
804
804
  display: ${t=>"lg"===t.only?"none":"block"};
805
805
  }
806
- `,vh=t=>{var{className:n}=t,i=l(t,["className"]);const o=`\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 ${fe}\n ${ke}\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ${fe}\n ${Se}\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 ${fe}\n ${ke}\n color: #777777;\n }\n `;return a.default.createElement(e.Steps,Object.assign({},i,{className:dt(ht(o),n)}))};vh.Step=t=>{var n=l(t,[]);const i=ht`
806
+ `,Eh=t=>{var{className:n,children:i}=t,o=d(t,["className","children"]);const 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 ${me}\n ${Oe}\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ${me}\n ${Ee}\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 ${me}\n ${Oe}\n color: #777777;\n }\n `,a=pt`
807
807
  & .ant-steps-item-title {
808
808
  white-space: nowrap;
809
809
  width: 100%;
810
810
  overflow: hidden;
811
811
  text-overflow: ellipsis;
812
812
  }
813
- `;return a.default.createElement(e.Steps.Step,Object.assign({className:dt(i)},n))};const _h=ht`
813
+ `,l=s.default.Children.toArray(i).filter(s.default.isValidElement).map(t=>{const e=t.props,{className:n}=e,i=d(e,["className"]);return Object.assign(Object.assign({},i),{className:ut(a,n)})});return s.default.createElement(e.Steps,Object.assign({},o,{items:l,className:ut(pt(r),n)}))};Eh.Step=()=>null;const Oh=pt`
814
814
  -webkit-font-smoothing: antialiased;
815
- font-family: ${Ge};
816
- color: ${ot.ON_NEUTRAL};
815
+ font-family: ${qe};
816
+ color: ${at.ON_NEUTRAL};
817
817
  width: 100%;
818
818
 
819
819
  .ant-table {
@@ -832,11 +832,11 @@ padding-top:
832
832
  padding: 12px;
833
833
  height: 48px;
834
834
  max-height: 48px;
835
- background: ${it.SECONDARY_NEUTRAL};
835
+ background: ${rt.SECONDARY_NEUTRAL};
836
836
  font-weight: 700;
837
837
  font-size: 14px;
838
- color: ${ot.ON_NEUTRAL};
839
- border-bottom: 1px solid ${ot.LINE};
838
+ color: ${at.ON_NEUTRAL};
839
+ border-bottom: 1px solid ${at.LINE};
840
840
  border-radius: 0 !important;
841
841
  }
842
842
 
@@ -844,65 +844,65 @@ padding-top:
844
844
  padding: 12px;
845
845
  max-height: 60px;
846
846
  font-size: 14px;
847
- color: ${ot.ON_NEUTRAL};
848
- border-bottom: 1px solid ${ot.LINE};
847
+ color: ${at.ON_NEUTRAL};
848
+ border-bottom: 1px solid ${at.LINE};
849
849
  overflow: hidden;
850
850
  }
851
851
 
852
852
  .ant-table-tbody > tr:hover > td {
853
- background: ${rt.HOVER_SURFACE};
853
+ background: ${st.HOVER_SURFACE};
854
854
  }
855
- `,wh=t=>{var{children:n}=t,i=l(t,["children"]);const{brand:o}=Ne(),r=`\n font-family: ${Ge};\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: ${o.primary.default};\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: Red Hat Display;\n }\n \n .ant-tabs-ink-bar {\n background-color: ${o.primary.default}; \n }\n `;return a.default.createElement(e.Tabs,Object.assign({className:`${ht(r)}`},i),n)};wh.TabPane=e.Tabs.TabPane;var Sh={Group:function(t){var{className:n=""}=t,i=l(t,["className"]);const o=`\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 ${$e.brand.line.base} !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ${$e.brand.primary.default} !important;\n }\n\n &:focus-within {\n border: 1px solid ${$e.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 ${$e.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: ${exports.NEUTRAL_COLORS.BLACK} !important;\n font-family: ${Ge} !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: ${$e.brand.primary.illustration} !important;\n border-color: ${$e.brand.primary.default} !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ${$e.brand.primary.default} !important;\n }\n `;return a.default.createElement(e.Checkbox.Group,Object.assign({className:`${ht(o)} ${n}`},i))}};const kh=ee.div`
855
+ `,Ch=t=>{var{children:n}=t,i=d(t,["children"]);const{brand:o}=Fe(),r=`\n font-family: ${qe};\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: ${o.primary.default};\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: Red Hat Display;\n }\n \n .ant-tabs-ink-bar {\n background-color: ${o.primary.default}; \n }\n `;return s.default.createElement(e.Tabs,Object.assign({className:`${pt(r)}`},i),n)};Ch.TabPane=e.Tabs.TabPane;var Dh={Group:function(t){var{className:n=""}=t,i=d(t,["className"]);const o=`\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 ${Le.brand.line.base} !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ${Le.brand.primary.default} !important;\n }\n\n &:focus-within {\n border: 1px solid ${Le.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 ${Le.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: ${exports.NEUTRAL_COLORS.BLACK} !important;\n font-family: ${qe} !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: ${Le.brand.primary.illustration} !important;\n border-color: ${Le.brand.primary.default} !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ${Le.brand.primary.default} !important;\n }\n `;return s.default.createElement(e.Checkbox.Group,Object.assign({className:`${pt(o)} ${n}`},i))}};const Mh=ie.div`
856
856
  width: 100%;
857
857
  padding-top: 4px;
858
858
  display: block;
859
859
  align-items: center;
860
860
  flex-direction: column;
861
- `,Eh=ee(en)`
861
+ `,Th=ie(on)`
862
862
  text-align: center;
863
863
  margin-top: 10px;
864
864
  margin-bottom: 5px;
865
- `,Oh=ee(tn)`
865
+ `,Ah=ie(nn)`
866
866
  text-align: center;
867
- color: ${J.S500};
867
+ color: ${tt.S500};
868
868
  margin-top: 5px;
869
869
  margin-bottom: 20px;
870
870
  align-items: center;
871
- `,Ch=ee(tn)`
871
+ `,$h=ie(nn)`
872
872
  text-align: center;
873
- color: ${q.DEFAULT};
873
+ color: ${K.DEFAULT};
874
874
  margin-top: 20px;
875
875
  margin-bottom: 20px;
876
876
  align-items: center;
877
- `,Dh=t=>{var{typographyType:e="body",size:n="md",textContent:i,children:o,href:r,target:s,rel:c,isUnderlined:d=!0,icon:h,iconPlacement:u="left",onClick:p}=t,f=l(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]);const g=ee.a`
877
+ `,Rh=t=>{var{typographyType:e="body",size:n="md",textContent:i,children:o,href:r,target:a,rel:l,isUnderlined:c=!0,icon:h,iconPlacement:u="left",onClick:p}=t,f=d(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]);const g=ie.a`
878
878
  display: ${h?"flex":"inline-flex"};
879
879
  align-items: center;
880
880
  gap: 4px;
881
881
  .material-symbols-rounded {
882
- color: ${$e.color.base.link} !important;
882
+ color: ${Le.color.base.link} !important;
883
883
  }
884
- text-decoration: ${d?"underline":"none"}
885
- ${$e.color.base.link};
884
+ text-decoration: ${c?"underline":"none"}
885
+ ${Le.color.base.link};
886
886
 
887
887
  :hover {
888
- text-decoration: ${d?"underline":"none"}
889
- ${$e.color.base.link};
888
+ text-decoration: ${c?"underline":"none"}
889
+ ${Le.color.base.link};
890
890
  }
891
891
 
892
892
  user-select: none;
893
- `,m=h&&"left"===u,b=h&&"right"===u,x=i||o;return a.default.createElement(g,Object.assign({href:r,target:s,rel:c,onClick:p},f),m&&h,"body"===e&&a.default.createElement(gt.Body,{size:n,color:$e.color.base.link},x),"label"===e&&a.default.createElement(gt.Label,{size:n,color:$e.color.base.link},x),b&&h)},Mh={Title:ee(Qe)`
893
+ `,m=h&&"left"===u,b=h&&"right"===u,x=i||o;return s.default.createElement(g,Object.assign({href:r,target:a,rel:l,onClick:p},f),m&&h,"body"===e&&s.default.createElement(bt.Body,{size:n,color:Le.color.base.link},x),"label"===e&&s.default.createElement(bt.Label,{size:n,color:Le.color.base.link},x),b&&h)},Lh={Title:ie(en)`
894
894
  color: #1b2736;
895
895
  margin-bottom: 5px;
896
- `,Subtitle:ee(tn)`
896
+ `,Subtitle:ie(nn)`
897
897
  color: #777777;
898
898
  margin-bottom: 5px;
899
- `,Row:ee.div`
899
+ `,Row:ie.div`
900
900
  display: block;
901
- ${de} {
901
+ ${ue} {
902
902
  display: flex;
903
903
  flex-wrap: wrap;
904
904
  }
905
- `,Left:ee.div`
905
+ `,Left:ie.div`
906
906
  flex-basis: 0px;
907
907
  flex-grow: 1;
908
908
  flex-shrink: 0;
@@ -910,31 +910,31 @@ padding-top:
910
910
  margin-bottom: 20px;
911
911
  min-width: unset;
912
912
 
913
- ${de} {
913
+ ${ue} {
914
914
  min-width: 290px;
915
915
  }
916
- `,Right:ee.div`
916
+ `,Right:ie.div`
917
917
  flex-basis: 0px;
918
918
  flex-grow: 1;
919
919
  flex-shrink: 0;
920
920
  margin-bottom: 20px;
921
921
  min-width: unset;
922
922
 
923
- ${de} {
923
+ ${ue} {
924
924
  min-width: 290px;
925
925
  }
926
- `};var Th,Ah,$h,Rh;var Lh=_t(function(){if(Rh)return $h;Rh=1;var t=Ah?Th:(Ah=1,Th=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 $h=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.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}}());const Ph=ee.div`
926
+ `};var Ph,Nh,Ih,Fh;var zh=St(function(){if(Fh)return Ih;Fh=1;var t=Nh?Ph:(Nh=1,Ph=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 Ih=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.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}}());const Bh=ie.div`
927
927
  display: flex;
928
928
  flex-direction: column;
929
929
  gap: 4px;
930
- `,Nh=ee.div`
930
+ `,Yh=ie.div`
931
931
  display: flex;
932
932
  align-items: center;
933
933
  gap: 4px;
934
- `,Ih=ee.div`
934
+ `,Hh=ie.div`
935
935
  display: flex;
936
936
  align-items: center;
937
- `,Fh=ee.div`
937
+ `,Wh=ie.div`
938
938
  display: flex;
939
939
  align-items: center;
940
940
  gap: 4px;
@@ -942,24 +942,24 @@ padding-top:
942
942
  width: ${t=>"wide"===t.iconSize?"48px":"24px"}!important;
943
943
  height: 24px;
944
944
  }
945
- `,zh=ee.div`
945
+ `,Vh=ie.div`
946
946
  display: flex;
947
- background: ${$e.color.surface.disabledSurface};
947
+ background: ${Le.color.surface.disabledSurface};
948
948
  border-radius: 12px;
949
- border: 1px solid ${$e.color.base.line};
949
+ border: 1px solid ${Le.color.base.line};
950
950
  min-height: 48px;
951
- `,Bh=ee.div`
951
+ `,Uh=ie.div`
952
952
  display: flex;
953
953
  align-items: center;
954
954
  gap: 8px;
955
955
  padding: 12px 16px;
956
956
  flex: 1 1 0px;
957
- `,Yh=ee.div`
958
- color: ${$e.color.base.onNeutral};
957
+ `,jh=ie.div`
958
+ color: ${Le.color.base.onNeutral};
959
959
  line-height: '24px';
960
960
  max-height: ${t=>t.isBankAddress?"auto":"48px"};
961
961
  word-break: ${t=>t.isBankAddress?"break-word":"break-all"};
962
- `,Hh=ee(e.Button)`
962
+ `,Gh=ie(e.Button)`
963
963
  &.ant-btn {
964
964
  text-shadow: none;
965
965
  -webkit-font-smoothing: antialiased;
@@ -971,10 +971,10 @@ padding-top:
971
971
  border-bottom-left-radius: 0px;
972
972
  border-top-right-radius: 12px;
973
973
  border-bottom-right-radius: 12px;
974
- border-left: 1px solid ${$e.color.base.line} !important;
974
+ border-left: 1px solid ${Le.color.base.line} !important;
975
975
  border-right: 0px;
976
976
  border-block: 0px;
977
- background: ${$e.color.surface.neutral};
977
+ background: ${Le.color.surface.neutral};
978
978
  padding: 12px;
979
979
  min-width: unset;
980
980
  min-height: unset;
@@ -984,13 +984,13 @@ padding-top:
984
984
  font-size: 16px;
985
985
  margin: 0px;
986
986
  }
987
- ${fe};
987
+ ${me};
988
988
  &[ant-click-animating-without-extra-node]:after {
989
- --antd-wave-shadow-color: ${$e.brand.primary.default};
989
+ --antd-wave-shadow-color: ${Le.brand.primary.default};
990
990
  }
991
991
  }
992
- `,Wh=t=>{var{className:n}=t,i=l(t,["className"]);return a.default.createElement(e.Timeline,Object.assign({},i,{className:dt(ht("\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)}))};Wh.Item=e.Timeline.Item;const Vh=ee.div`
993
- background-color: ${$e.color.surface.secondaryNeutral};
992
+ `,Xh=t=>{var{className:n}=t,i=d(t,["className"]);return s.default.createElement(e.Timeline,Object.assign({},i,{className:ut(pt("\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)}))};Xh.Item=e.Timeline.Item;const qh=ie.div`
993
+ background-color: ${Le.color.surface.secondaryNeutral};
994
994
  border-radius: 8px;
995
995
  display: flex;
996
996
  flex-direction: column;
@@ -998,51 +998,51 @@ padding-top:
998
998
  padding: 12px;
999
999
  min-width: 200px;
1000
1000
  max-width: 260px;
1001
- `,Uh=ee.div`
1001
+ `,Zh=ie.div`
1002
1002
  display: flex;
1003
1003
  flex-direction: column;
1004
1004
  gap: 12px;
1005
- color: ${$e.color.base.onNeutral};
1006
- `,jh=ee.div`
1005
+ color: ${Le.color.base.onNeutral};
1006
+ `,Kh=ie.div`
1007
1007
  display: flex;
1008
1008
  justify-content: space-between;
1009
1009
  align-items: center;
1010
- `,Gh=ee(Dh)`
1010
+ `,Jh=ie(Rh)`
1011
1011
  text-decoration: none !important;
1012
- `,Xh=ee.div`
1012
+ `,Qh=ie.div`
1013
1013
  display: flex;
1014
1014
  justify-content: space-between;
1015
1015
  align-items: center;
1016
- `,qh=ee.div`
1016
+ `,tu=ie.div`
1017
1017
  display: flex;
1018
1018
  align-items: center;
1019
1019
  justify-content: center;
1020
1020
  gap: 4px;
1021
- `,Zh=ee.span`
1021
+ `,eu=ie.span`
1022
1022
  width: 6px;
1023
1023
  height: 6px;
1024
1024
  border-radius: 50%;
1025
- background-color: ${t=>t.isActive?`${$e.color.base.primary3}`:`${$e.color.surface.disabledOnSurface}`};
1026
- `,Kh=ee(Dh)`
1025
+ background-color: ${t=>t.isActive?`${Le.color.base.primary3}`:`${Le.color.surface.disabledOnSurface}`};
1026
+ `,nu=ie(Rh)`
1027
1027
  h5 {
1028
- color: ${t=>t.isDisabled?`${$e.color.surface.disabledOnSurface}`:`${$e.color.base.link}`};
1028
+ color: ${t=>t.isDisabled?`${Le.color.surface.disabledOnSurface}`:`${Le.color.base.link}`};
1029
1029
  }
1030
1030
  pointer-events: ${t=>t.isDisabled?"none":"auto"};
1031
- `,Jh=ee.div`
1031
+ `,iu=ie.div`
1032
1032
  display: flex;
1033
1033
  gap: 8px;
1034
- `;const Qh=a.default.createContext({setModal:()=>null,resetModal:()=>null}),tu=document.body,eu=({modal:e})=>{const[n]=t.useState(document.createElement("div"));n.setAttribute("id","modal-root"),t.useEffect(()=>(tu.appendChild(n),()=>{tu.removeChild(n)}),[n]);const i=a.default.createElement(Pt,{styles:St`
1034
+ `;const ou=s.default.createContext({setModal:()=>null,resetModal:()=>null}),ru=document.body,au=({modal:e})=>{const[n]=t.useState(document.createElement("div"));n.setAttribute("id","modal-root"),t.useEffect(()=>(ru.appendChild(n),()=>{ru.removeChild(n)}),[n]);const i=s.default.createElement(It,{styles:Et`
1035
1035
  body {
1036
1036
  overflow: hidden;
1037
1037
  }
1038
- `});return s.default.createPortal(a.default.createElement(iu,{open:!!e},!!e&&i,e),n)},nu=It`
1038
+ `});return c.default.createPortal(s.default.createElement(lu,{open:!!e},!!e&&i,e),n)},su=zt`
1039
1039
  0% {
1040
1040
  opacity: 0;
1041
1041
  }
1042
1042
  100% {
1043
1043
  opacity: 1;
1044
1044
  }
1045
- `,iu=ee.div`
1045
+ `,lu=ie.div`
1046
1046
  position: fixed;
1047
1047
  width: 100vw;
1048
1048
  height: 100%;
@@ -1052,19 +1052,19 @@ padding-top:
1052
1052
  display: none;
1053
1053
  overflow: auto;
1054
1054
  z-index: 9; // bigger than nav bar z-index: 8
1055
- ${t=>t.open&&St`
1055
+ ${t=>t.open&&Et`
1056
1056
  display: block;
1057
- animation: ${nu} 0.3s ease;
1057
+ animation: ${su} 0.3s ease;
1058
1058
  `};
1059
- `;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.DocumentWithMagnifier=n.SvgDocumentWithMagnifier,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.PersonWithCheckmark=n.SvgPersonWithCheckmark,exports.PersonWithError=n.SvgPersonWithError,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.WalletLinkIllustration=n.SvgWalletLinkIllustration,exports.WalletManualIllustration=n.SvgWalletManualIllustration,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=o.SvgAlfamart,exports.Alfamidi=o.SvgAlfamidi,exports.Anz=o.SvgAnz,exports.Arbitrum=o.Arbitrum,exports.Avalanche=o.Avalanche,exports.Base=o.Base,exports.Bca=o.SvgBca,exports.Bea=o.SvgBea,exports.Binance=o.SvgBinance,exports.Bitgo=o.SvgBitgo,exports.Bnbsmart=o.BnbSmart,exports.Bni=o.SvgBni,exports.Bnp=o.SvgBnp,exports.Boc=o.SvgBoc,exports.Bri=o.SvgBri,exports.Bsi=o.SvgBsi,exports.Bss=o.SvgBss,exports.Cimb=o.SvgCimb,exports.Citi=o.SvgCiti,exports.Coinhako=o.SvgCoinhako,exports.Coinut=o.SvgCoinut,exports.CrossLogo=o.SvgCrossLogo,exports.Crypto=o.SvgCrypto,exports.DanPlusDan=o.SvgDanPlusDan,exports.Dana=o.SvgDana,exports.Danamon=o.SvgDanamon,exports.DarkStraitsXLogo=o.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=o.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=o.SvgDbag,exports.Dbs=o.SvgDbs,exports.Dextf=o.SvgDextf,exports.EarnPiggyBank=o.SvgEarnPiggyBank,exports.EmptyStraitsX=o.EmptyStraitsX,exports.Ethereum=o.SvgEthereum,exports.FaceScan=o.FaceScan,exports.Fazz=o.SvgFazzLogo,exports.Feb=o.SvgFeb,exports.Finblox=o.SvgFinblox,exports.Fireblocks=o.SvgFireblocks,exports.GoPay=o.SvgGoPay,exports.Gpn=o.SvgGpn,exports.Hana=o.SvgHana,exports.Hedera=o.SvgHedera,exports.Hlb=o.SvgHlb,exports.Hodlnaut=o.SvgHodlnaut,exports.Hsbc=o.SvgHsbc,exports.Icbc=o.SvgIcbc,exports.Icici=o.SvgIcici,exports.IdFlag=o.SvgIdFlag,exports.IdrLogo=o.SvgIdrLogo,exports.Indomaret=o.SvgIndomaret,exports.InfoLogo=o.SvgInfoLogo,exports.InterestCompoundedDaily=o.SvgInterestCompoundedDaily,exports.Jcb=o.SvgJcb,exports.Jpmc=o.SvgSmbc,exports.Jumio=o.SvgJumio,exports.Lawson=o.SvgLawson,exports.LedgerVault=o.SvgLedgerVault,exports.LevelDown=o.LevelDown,exports.LightStraitsXLogo=o.SvgLightStraitsXLogo,exports.LinkAja=o.SvgLinkAja,exports.Liquid=o.SvgLiquid,exports.Mandiri=o.SvgMandiri,exports.Mastercard=o.SvgMastercard,exports.Mbb=o.SvgMbb,exports.Miz=o.SvgMiz,exports.Mufg=o.SvgMufg,exports.MyInfoLogo=o.SvgMyInfoLogo,exports.NoFees=o.SvgNoFees,exports.NoLockInPeriod=o.SvgNoLockInPeriod,exports.NotesBell=o.NotesBell,exports.OVO=o.SvgOvo,exports.Ocbc=o.SvgOcbc,exports.OnchainCustodian=o.SvgOnchainCustodian,exports.Permata=o.SvgPermata,exports.Polygon=o.SvgPolygon,exports.Posb=o.SvgPosb,exports.QcpCapital=o.SvgQcpCapital,exports.Qris=o.SvgQris,exports.Rbs=o.SvgRbs,exports.Rhb=o.SvgRhb,exports.Ripple=o.Ripple,exports.Scb=o.SvgScb,exports.SendLogo=o.SvgSendLogo,exports.SgdLogo=o.SvgSgdLogo,exports.ShopeePay=o.SvgShopeePay,exports.Sifl=o.SvgSifl,exports.Smbc=o.SvgSmbc$1,exports.Solana=o.Solana,exports.Sparrow=o.SvgSparrow,exports.StateError=o.StateError,exports.StateSuccess=o.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=o.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=o.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=o.SvgStraitsXLogo,exports.StraitsXMyInfo=o.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=o.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=o.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=o.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=o.SvgStraitsxSandboxLogo,exports.Target=o.Target,exports.ThreeDSecure=o.SvgThreedsecure,exports.ThreeDotsLogo=o.SvgThreeDotsLogo,exports.TickLogo=o.SvgTickLogo,exports.TokenizeXchange=o.SvgTokenizeXchange,exports.Tron=o.Tron,exports.Trwi=o.SvgTrwi,exports.Unagii=o.SvgUnagii,exports.Uniswap=o.SvgUniswap,exports.Uob=o.SvgUob,exports.UsFlag=o.SvgUsFlag,exports.UsdLogo=o.SvgUsdLogo,exports.UsdcLogo=o.SvgUsdcLogo,exports.UsdpLogo=o.SvgUsdpLogo,exports.UsdtLogo=o.SvgUsdtLogo,exports.VecDeposits=o.SvgVecDeposits,exports.VecDesktop=o.SvgVecDesktop,exports.VecEmpty=o.SvgVecEmpty,exports.VecEmptyPlain=o.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=o.SvgVecEmptyPlainGreen,exports.VecMobile=o.SvgVecMobile,exports.VecRecipients=o.SvgVecRecipients,exports.VecThumbnailDoc=o.SvgVecThumbnailDoc,exports.Visa=o.SvgVisa,exports.WalletLogo=o.SvgWalletLogo,exports.XfersLogo=o.SvgXfersLogo,exports.XfersSandboxLogo=o.SvgXfersSandboxLogo,exports.XidrLogo=o.SvgXidrLogo,exports.XsgdLogo=o.SvgXsgdLogo,exports.XusdLogo=o.SvgXusdLogo,exports.Zillet=o.SvgZillet,exports.Zilliqa=o.SvgZilliqa,exports.Zilswap=o.SvgZilswap,exports.Accordion=({header:e,body:n,defaultOpen:i=!1,headerHeightDesktop:o=95,headerHeightMobile:r=95,toggleText:s,onCloseToggleText:l=s,additionalHeaderItem:c,withBoxShadow:d=!1})=>{const[h,u]=t.useState(i);return a.default.createElement(sn,{open:h,headerHeightDesktop:o,headerHeightMobile:r,withBoxShadow:d},a.default.createElement(ln,{onClick:()=>u(t=>!t),headerHeightDesktop:o,headerHeightMobile:r},a.default.createElement(cn,null,e,a.default.createElement(un,null,s&&a.default.createElement(dn,null,h?l:s),a.default.createElement(hn,{open:h}))),c&&a.default.createElement(a.default.Fragment,null,c)),a.default.createElement(an,null),a.default.createElement("div",null,n))},exports.ActionButton=t=>{var{icon:e,type:n,disabled:i}=t,o=l(t,["icon","type","disabled"]);const{brand:r,actionButton:s}=Ne(),c=`\n cursor: auto;\n pointer-events: none;\n opacity: ${r.action.disabledOpacity};\n `,d=`\n color: ${s.color};\n\n &:focus {\n color: ${s.color};\n }\n\n &:hover {\n color: ${s.hover};\n }\n\n &:active {\n color: ${s.color};\n }\n `,h=`\n color: ${r.action.default};\n\n &:focus {\n color: ${r.action.default};\n }\n\n &:hover {\n color: ${r.action.hover};\n }\n\n &:active {\n color: ${r.action.default};\n }\n `,u=ee(je)`
1059
+ `;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.DocumentWithMagnifier=n.SvgDocumentWithMagnifier,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.PersonWithCheckmark=n.SvgPersonWithCheckmark,exports.PersonWithError=n.SvgPersonWithError,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.WalletLinkIllustration=n.SvgWalletLinkIllustration,exports.WalletManualIllustration=n.SvgWalletManualIllustration,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=o.SvgAlfamart,exports.Alfamidi=o.SvgAlfamidi,exports.Anz=o.SvgAnz,exports.Arbitrum=o.Arbitrum,exports.Avalanche=o.Avalanche,exports.Base=o.Base,exports.Bca=o.SvgBca,exports.Bea=o.SvgBea,exports.Binance=o.SvgBinance,exports.Bitgo=o.SvgBitgo,exports.Bnbsmart=o.BnbSmart,exports.Bni=o.SvgBni,exports.Bnp=o.SvgBnp,exports.Boc=o.SvgBoc,exports.Bri=o.SvgBri,exports.Bsi=o.SvgBsi,exports.Bss=o.SvgBss,exports.Cimb=o.SvgCimb,exports.Citi=o.SvgCiti,exports.Coinhako=o.SvgCoinhako,exports.Coinut=o.SvgCoinut,exports.CrossLogo=o.SvgCrossLogo,exports.Crypto=o.SvgCrypto,exports.DanPlusDan=o.SvgDanPlusDan,exports.Dana=o.SvgDana,exports.Danamon=o.SvgDanamon,exports.DarkStraitsXLogo=o.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=o.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=o.SvgDbag,exports.Dbs=o.SvgDbs,exports.Dextf=o.SvgDextf,exports.EarnPiggyBank=o.SvgEarnPiggyBank,exports.EmptyStraitsX=o.EmptyStraitsX,exports.Ethereum=o.SvgEthereum,exports.FaceScan=o.FaceScan,exports.Fazz=o.SvgFazzLogo,exports.Feb=o.SvgFeb,exports.Finblox=o.SvgFinblox,exports.Fireblocks=o.SvgFireblocks,exports.GoPay=o.SvgGoPay,exports.Gpn=o.SvgGpn,exports.Hana=o.SvgHana,exports.Hedera=o.SvgHedera,exports.Hlb=o.SvgHlb,exports.Hodlnaut=o.SvgHodlnaut,exports.Hsbc=o.SvgHsbc,exports.Icbc=o.SvgIcbc,exports.Icici=o.SvgIcici,exports.IdFlag=o.SvgIdFlag,exports.IdrLogo=o.SvgIdrLogo,exports.Indomaret=o.SvgIndomaret,exports.InfoLogo=o.SvgInfoLogo,exports.InterestCompoundedDaily=o.SvgInterestCompoundedDaily,exports.Jcb=o.SvgJcb,exports.Jpmc=o.SvgSmbc,exports.Jumio=o.SvgJumio,exports.Lawson=o.SvgLawson,exports.LedgerVault=o.SvgLedgerVault,exports.LevelDown=o.LevelDown,exports.LightStraitsXLogo=o.SvgLightStraitsXLogo,exports.LinkAja=o.SvgLinkAja,exports.Liquid=o.SvgLiquid,exports.Mandiri=o.SvgMandiri,exports.Mastercard=o.SvgMastercard,exports.Mbb=o.SvgMbb,exports.Miz=o.SvgMiz,exports.Mufg=o.SvgMufg,exports.MyInfoLogo=o.SvgMyInfoLogo,exports.NoFees=o.SvgNoFees,exports.NoLockInPeriod=o.SvgNoLockInPeriod,exports.NotesBell=o.NotesBell,exports.OVO=o.SvgOvo,exports.Ocbc=o.SvgOcbc,exports.OnchainCustodian=o.SvgOnchainCustodian,exports.Permata=o.SvgPermata,exports.Polygon=o.SvgPolygon,exports.Posb=o.SvgPosb,exports.QcpCapital=o.SvgQcpCapital,exports.Qris=o.SvgQris,exports.Rbs=o.SvgRbs,exports.Rhb=o.SvgRhb,exports.Ripple=o.Ripple,exports.Scb=o.SvgScb,exports.SendLogo=o.SvgSendLogo,exports.SgdLogo=o.SvgSgdLogo,exports.ShopeePay=o.SvgShopeePay,exports.Sifl=o.SvgSifl,exports.Smbc=o.SvgSmbc$1,exports.Solana=o.Solana,exports.Sparrow=o.SvgSparrow,exports.StateError=o.StateError,exports.StateSuccess=o.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=o.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=o.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=o.SvgStraitsXLogo,exports.StraitsXMyInfo=o.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=o.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=o.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=o.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=o.SvgStraitsxSandboxLogo,exports.Target=o.Target,exports.ThreeDSecure=o.SvgThreedsecure,exports.ThreeDotsLogo=o.SvgThreeDotsLogo,exports.TickLogo=o.SvgTickLogo,exports.TokenizeXchange=o.SvgTokenizeXchange,exports.Tron=o.Tron,exports.Trwi=o.SvgTrwi,exports.Unagii=o.SvgUnagii,exports.Uniswap=o.SvgUniswap,exports.Uob=o.SvgUob,exports.UsFlag=o.SvgUsFlag,exports.UsdLogo=o.SvgUsdLogo,exports.UsdcLogo=o.SvgUsdcLogo,exports.UsdpLogo=o.SvgUsdpLogo,exports.UsdtLogo=o.SvgUsdtLogo,exports.VecDeposits=o.SvgVecDeposits,exports.VecDesktop=o.SvgVecDesktop,exports.VecEmpty=o.SvgVecEmpty,exports.VecEmptyPlain=o.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=o.SvgVecEmptyPlainGreen,exports.VecMobile=o.SvgVecMobile,exports.VecRecipients=o.SvgVecRecipients,exports.VecThumbnailDoc=o.SvgVecThumbnailDoc,exports.Visa=o.SvgVisa,exports.WalletLogo=o.SvgWalletLogo,exports.XfersLogo=o.SvgXfersLogo,exports.XfersSandboxLogo=o.SvgXfersSandboxLogo,exports.XidrLogo=o.SvgXidrLogo,exports.XsgdLogo=o.SvgXsgdLogo,exports.XusdLogo=o.SvgXusdLogo,exports.Zillet=o.SvgZillet,exports.Zilliqa=o.SvgZilliqa,exports.Zilswap=o.SvgZilswap,exports.Accordion=({header:e,body:n,defaultOpen:i=!1,headerHeightDesktop:o=95,headerHeightMobile:r=95,toggleText:a,onCloseToggleText:l=a,additionalHeaderItem:c,withBoxShadow:d=!1})=>{const[h,u]=t.useState(i);return s.default.createElement(cn,{open:h,headerHeightDesktop:o,headerHeightMobile:r,withBoxShadow:d},s.default.createElement(dn,{onClick:()=>u(t=>!t),headerHeightDesktop:o,headerHeightMobile:r},s.default.createElement(hn,null,e,s.default.createElement(fn,null,a&&s.default.createElement(un,null,h?l:a),s.default.createElement(pn,{open:h}))),c&&s.default.createElement(s.default.Fragment,null,c)),s.default.createElement(ln,null),s.default.createElement("div",null,n))},exports.ActionButton=t=>{var{icon:e,type:n,disabled:i}=t,o=d(t,["icon","type","disabled"]);const{brand:r,actionButton:a}=Fe(),l=`\n cursor: auto;\n pointer-events: none;\n opacity: ${r.action.disabledOpacity};\n `,c=`\n color: ${a.color};\n\n &:focus {\n color: ${a.color};\n }\n\n &:hover {\n color: ${a.hover};\n }\n\n &:active {\n color: ${a.color};\n }\n `,h=`\n color: ${r.action.default};\n\n &:focus {\n color: ${r.action.default};\n }\n\n &:hover {\n color: ${r.action.hover};\n }\n\n &:active {\n color: ${r.action.default};\n }\n `,u=ie(Xe)`
1060
1060
  &.ant-btn {
1061
- ${!0===i&&c} & > svg {
1062
- ${"primary"===n?h:d} vertical-align: middle;
1061
+ ${!0===i&&l} & > svg {
1062
+ ${"primary"===n?h:c} vertical-align: middle;
1063
1063
  font-size: 1.4em;
1064
1064
  margin: 0;
1065
1065
  }
1066
1066
  }
1067
- `;return a.default.createElement(u,Object.assign({type:"secondary",size:"small"},o),a.default.createElement(()=>a.default.cloneElement(e,{width:17,height:17}),null))},exports.ActionCard=({children:t,title:e,footer:n})=>{const{spacing:i,neutral:o,layout:r}=Ne(),s=ee(Ze)`
1067
+ `;return s.default.createElement(u,Object.assign({type:"secondary",size:"small"},o),s.default.createElement(()=>s.default.cloneElement(e,{width:17,height:17}),null))},exports.ActionCard=({children:t,title:e,footer:n})=>{const{spacing:i,neutral:o,layout:r}=Fe(),a=ie(Je)`
1068
1068
  border-style: none;
1069
1069
 
1070
1070
  & > div.ant-card-body {
@@ -1077,7 +1077,7 @@ padding-top:
1077
1077
  border-top: 1px solid ${o.border};
1078
1078
  ${!n&&"display: none;"} border-radius: 5px;
1079
1079
  }
1080
- ${de} {
1080
+ ${ue} {
1081
1081
  margin: ${r.desktop};
1082
1082
  border-style: solid;
1083
1083
  & > div.ant-card-body {
@@ -1086,14 +1086,14 @@ padding-top:
1086
1086
  width: auto;
1087
1087
  }
1088
1088
  }
1089
- `,l=ee.div`
1089
+ `,l=ie.div`
1090
1090
  min-height: calc(100vh - 100px);
1091
1091
  padding: ${r.mobile};
1092
- ${de} {
1092
+ ${ue} {
1093
1093
  padding: ${i.md};
1094
1094
  min-height: unset;
1095
1095
  }
1096
- `,c=ee.div`
1096
+ `,c=ie.div`
1097
1097
  display: flex;
1098
1098
  justify-content: flex-start;
1099
1099
  align-items: center;
@@ -1101,7 +1101,7 @@ padding-top:
1101
1101
  & > .badge-icon {
1102
1102
  margin-right: ${i.sm};
1103
1103
  }
1104
- `,d=ee.div`
1104
+ `,d=ie.div`
1105
1105
  display: flex;
1106
1106
  justify-content: flex-end;
1107
1107
 
@@ -1114,7 +1114,7 @@ padding-top:
1114
1114
  button[type='submit']:last-child {
1115
1115
  margin-right: ${i.md};
1116
1116
  }
1117
- `;return a.default.createElement(s,{title:a.default.createElement(l,null,a.default.createElement(c,null,e),a.default.createElement(an,{spacing:"lg"}),a.default.createElement(tn,null,t))},a.default.createElement(d,null,n))},exports.Alert=({type:e,message:i,closable:o,icon:r,showIcon:s,onClose:l,title:c})=>{const[d,h]=t.useState(!0);return d?a.default.createElement(se,{type:e||"warning",message:a.default.createElement(()=>{const t="info"===e?tt.DEFAULT:q.DEFAULT;return a.default.createElement(le,null,c&&a.default.createElement(gt.Label,{color:t,size:"md"},c),a.default.createElement(gt.Body,{color:t,size:"md"},i))},null),closable:o,icon:(()=>{const t=r?a.default.cloneElement(r,{width:20,height:20}):a.default.createElement(n.SvgBell,{width:20,height:20});return a.default.createElement(ce,null,t)})(),showIcon:s,onClose:()=>{h(!1),l&&l()},closeIcon:a.default.createElement(()=>a.default.createElement(n.SvgCross,{width:14,height:14}),null)}):null},exports.AntdConfigProvider=function({children:t}){return a.default.createElement(e.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},t)},exports.BadgeIcon=t=>{var{icon:e,type:n="default",iconWidth:i=18}=t,o=l(t,["icon","type","iconWidth"]);const{brand:r,neutral:s,success:c,warning:d,error:h}=Ne(),u=`\n color: ${s.text};\n background: ${s.background};\n `,p=`\n color: ${r.primary.default};\n background: ${r.primary.background};\n `,f=`\n color: ${c.border};\n background: ${c.background};\n `,g=`\n color: ${d.border};\n background: ${d.background};\n `,m=`\n color: ${h.border};\n background: ${h.background};\n `,b=ee.span`
1117
+ `;return s.default.createElement(a,{title:s.default.createElement(l,null,s.default.createElement(c,null,e),s.default.createElement(ln,{spacing:"lg"}),s.default.createElement(nn,null,t))},s.default.createElement(d,null,n))},exports.Alert=({type:e,message:i,closable:o,icon:r,showIcon:a,onClose:l,title:c})=>{const[d,h]=t.useState(!0);return d?s.default.createElement(ce,{type:e||"warning",message:s.default.createElement(()=>{const t="info"===e?nt.DEFAULT:K.DEFAULT;return s.default.createElement(de,null,c&&s.default.createElement(bt.Label,{color:t,size:"md"},c),s.default.createElement(bt.Body,{color:t,size:"md"},i))},null),closable:o,icon:(()=>{const t=r?s.default.cloneElement(r,{width:20,height:20}):s.default.createElement(n.SvgBell,{width:20,height:20});return s.default.createElement(he,null,t)})(),showIcon:a,onClose:()=>{h(!1),l&&l()},closeIcon:s.default.createElement(()=>s.default.createElement(n.SvgCross,{width:14,height:14}),null)}):null},exports.AntdConfigProvider=function({children:t}){return s.default.createElement(e.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},t)},exports.BadgeIcon=t=>{var{icon:e,type:n="default",iconWidth:i=18}=t,o=d(t,["icon","type","iconWidth"]);const{brand:r,neutral:a,success:l,warning:c,error:h}=Fe(),u=`\n color: ${a.text};\n background: ${a.background};\n `,p=`\n color: ${r.primary.default};\n background: ${r.primary.background};\n `,f=`\n color: ${l.border};\n background: ${l.background};\n `,g=`\n color: ${c.border};\n background: ${c.background};\n `,m=`\n color: ${h.border};\n background: ${h.background};\n `,b=ie.span`
1118
1118
  line-height: 0.75;
1119
1119
  padding: 10px;
1120
1120
  border-radius: 50%;
@@ -1122,12 +1122,12 @@ padding-top:
1122
1122
  align-items: center;
1123
1123
  justify-content: center;
1124
1124
  ${(()=>{switch(n){case"default":default:return u;case"primary":return p;case"success":return f;case"warning":return g;case"error":return m}})()};
1125
- `;return a.default.createElement(b,Object.assign({className:"badge-icon"},o),a.default.createElement(()=>a.default.cloneElement(e,{width:i,height:i}),null))},exports.Banner=t=>{var{withIcon:e=!1,children:i,type:o="primary"}=t,r=l(t,["withIcon","children","type"]);const{brand:s,spacing:c}=Ne(),d=`\n color: ${$e.color.base.primary};\n background: ${s.primary.background};\n `,h=`\n color: ${$e.color.status.positive};\n background: ${$e.color.surface.subduePositive};\n `,u=`\n color: ${$e.color.status.warning};\n background: ${$e.color.surface.subdueWarning};\n `,p=`\n color: ${$e.color.status.critical};\n background: ${$e.color.surface.subdueCritical};\n `,f=`\n color: ${$e.color.base.onNeutral}};\n background: ${$e.color.surface.SubdueInfo};\n `,g=ee.div`
1126
- padding: ${c.sm};
1125
+ `;return s.default.createElement(b,Object.assign({className:"badge-icon"},o),s.default.createElement(()=>s.default.cloneElement(e,{width:i,height:i}),null))},exports.Banner=t=>{var{withIcon:e=!1,children:i,type:o="primary"}=t,r=d(t,["withIcon","children","type"]);const{brand:a,spacing:l}=Fe(),c=`\n color: ${Le.color.base.primary};\n background: ${a.primary.background};\n `,h=`\n color: ${Le.color.status.positive};\n background: ${Le.color.surface.subduePositive};\n `,u=`\n color: ${Le.color.status.warning};\n background: ${Le.color.surface.subdueWarning};\n `,p=`\n color: ${Le.color.status.critical};\n background: ${Le.color.surface.subdueCritical};\n `,f=`\n color: ${Le.color.base.onNeutral}};\n background: ${Le.color.surface.SubdueInfo};\n `,g=ie.div`
1126
+ padding: ${l.sm};
1127
1127
  border-radius: 5px;
1128
1128
  display: flex;
1129
1129
  vertical-align: middle;
1130
- ${(()=>{switch(o){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}})()} ol {
1130
+ ${(()=>{switch(o){case"primary":default:return c;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}})()} ol {
1131
1131
  padding-left: 20px;
1132
1132
  margin: 0;
1133
1133
 
@@ -1135,10 +1135,10 @@ padding-top:
1135
1135
  margin-bottom: 5px;
1136
1136
  }
1137
1137
  }
1138
- `,m=ht`
1138
+ `,m=pt`
1139
1139
  display: block;
1140
1140
  margin: 1px 6px auto 0;
1141
- `;return a.default.createElement(g,Object.assign({},r),e&&("primary"===o?a.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:s.primary.emphasis,className:dt(m)}):"success"===o?a.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:$e.color.status.positive,className:dt(m)}):"warning"===o?a.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:$e.color.status.warning,className:dt(m)}):"error"===o?a.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:$e.color.status.critical,className:dt(m)}):"notification"===o?a.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:$e.color.status.info,className:dt(m)}):a.default.createElement(a.default.Fragment,null)),a.default.createElement(gt.Body,{size:"md"},i))},exports.Button=je,exports.Card=Ze,exports.Carousel=function(t){var{children:n,activeKey:i,width:o=250}=t,r=l(t,["children","activeKey","width"]);const{brand:s}=Ne(),c=n.map((t,n)=>a.default.createElement(e.Tabs.TabPane,{key:n,forceRender:!0},t)),d=n.map((t,e)=>a.default.createElement(yc,{key:e,isActive:e===i,activeColor:s.primary.default}));return a.default.createElement(mc,null,a.default.createElement(bc,Object.assign({renderTabBar:()=>a.default.createElement("div",null),width:o,activeKey:i.toString(),animated:!0},r),c),a.default.createElement(xc,null,d))},exports.Chart=({xValues:e,yValues:n,dataPrefix:i,dataPostfix:o,straitsXStyle:r,height:s=40})=>{const l=t.useRef(null),[c,d]=t.useState({datasets:[]}),h={labels:e,datasets:[{data:n}]},u=i||"",p=o||"";t.useEffect(()=>{const t=l.current;if(!t)return;const 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");const i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");const o=Object.assign(Object.assign({},h),{datasets:h.datasets.map(t=>Object.assign(Object.assign({},t),{backgroundColor:r?i:n,fill:!0,borderColor:r?"#00D37E":"#2E8DEE",pointRadius:0}))});d(o)},[r,e,n]);const f={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:r?1:0,backgroundColor:r?"#ffffff":"#000000",titleColor:r?"#1B2736":"#fff",bodyColor:r?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:t=>r?`${u}${t[0].parsed.y}${p}`:t[0].label,label:t=>r?t.label:`${u}${t.parsed.y}${p}`}}},scales:{x:{ticks:{color:r?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:r?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:t=>`${u}${t}${p}`},grid:{display:!1,drawBorder:!1}}}};return a.default.createElement("div",{style:{position:"relative",height:`${s}vh`,width:"99%"}},a.default.createElement(gc,{id:"chart",ref:l,type:"line",data:c,options:f}))},exports.Checkbox=Sh,exports.Coachmark=function({index:t,primaryProps:e,size:n,skipProps:i,step:o,tooltipProps:r,backProps:s}){const{title:l,content:c,data:d}=o;return a.default.createElement(Vh,{role:r.role},a.default.createElement(Uh,null,a.default.createElement(jh,null,a.default.createElement(gt.Label,{size:"md"},l),a.default.createElement(Gh,{role:i.role,onClick:i.onClick},a.default.createElement(Dc,{icon:"close",size:"m"}))),a.default.createElement(gt.Body,{size:"md"},c)),a.default.createElement(Xh,null,a.default.createElement(qh,null,Array.from({length:n},(e,n)=>0===t&&!0===(null==d?void 0:d.skipZeroIndex)?a.default.createElement(a.default.Fragment,null):a.default.createElement(Zh,{key:n,isActive:n===t}))),a.default.createElement(Jh,null,s&&a.default.createElement(Kh,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===t,onClick:s.onClick,isUnderlined:!1},"Back"),a.default.createElement(Dh,{typographyType:"label",size:"md",role:e.role,onClick:e.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=({title:t,children:e})=>{const{spacing:n,neutral:i}=Ne(),o=ee.div`
1141
+ `;return s.default.createElement(g,Object.assign({},r),e&&("primary"===o?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:a.primary.emphasis,className:ut(m)}):"success"===o?s.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:Le.color.status.positive,className:ut(m)}):"warning"===o?s.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:Le.color.status.warning,className:ut(m)}):"error"===o?s.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:Le.color.status.critical,className:ut(m)}):"notification"===o?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:Le.color.status.info,className:ut(m)}):s.default.createElement(s.default.Fragment,null)),s.default.createElement(bt.Body,{size:"md"},i))},exports.Button=Xe,exports.Card=Je,exports.Carousel=function(t){var{children:n,activeKey:i,width:o=250}=t,r=d(t,["children","activeKey","width"]);const{brand:a}=Fe(),l=n.map((t,n)=>s.default.createElement(e.Tabs.TabPane,{key:n,forceRender:!0},t)),c=n.map((t,e)=>s.default.createElement(_c,{key:e,isActive:e===i,activeColor:a.primary.default}));return s.default.createElement(xc,null,s.default.createElement(yc,Object.assign({renderTabBar:()=>s.default.createElement("div",null),width:o,activeKey:i.toString(),animated:!0},r),l),s.default.createElement(vc,null,c))},exports.Chart=({xValues:e,yValues:n,dataPrefix:i,dataPostfix:o,straitsXStyle:r,height:a=40})=>{const l=t.useRef(null),[c,d]=t.useState({datasets:[]}),h={labels:e,datasets:[{data:n}]},u=i||"",p=o||"";t.useEffect(()=>{const t=l.current;if(!t)return;const 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");const i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");const o=Object.assign(Object.assign({},h),{datasets:h.datasets.map(t=>Object.assign(Object.assign({},t),{backgroundColor:r?i:n,fill:!0,borderColor:r?"#00D37E":"#2E8DEE",pointRadius:0}))});d(o)},[r,e,n]);const f={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:r?1:0,backgroundColor:r?"#ffffff":"#000000",titleColor:r?"#1B2736":"#fff",bodyColor:r?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:t=>r?`${u}${t[0].parsed.y}${p}`:t[0].label,label:t=>r?t.label:`${u}${t.parsed.y}${p}`}}},scales:{x:{ticks:{color:r?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:r?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:t=>`${u}${t}${p}`},grid:{display:!1,drawBorder:!1}}}};return s.default.createElement("div",{style:{position:"relative",height:`${a}vh`,width:"99%"}},s.default.createElement(bc,{id:"chart",ref:l,type:"line",data:c,options:f}))},exports.Checkbox=Dh,exports.Coachmark=function({index:t,primaryProps:e,size:n,skipProps:i,step:o,tooltipProps:r,backProps:a}){const{title:l,content:c,data:d}=o;return s.default.createElement(qh,{role:r.role},s.default.createElement(Zh,null,s.default.createElement(Kh,null,s.default.createElement(bt.Label,{size:"md"},l),s.default.createElement(Jh,{role:i.role,onClick:i.onClick},s.default.createElement(Tc,{icon:"close",size:"m"}))),s.default.createElement(bt.Body,{size:"md"},c)),s.default.createElement(Qh,null,s.default.createElement(tu,null,Array.from({length:n},(e,n)=>0===t&&!0===(null==d?void 0:d.skipZeroIndex)?s.default.createElement(s.default.Fragment,null):s.default.createElement(eu,{key:n,isActive:n===t}))),s.default.createElement(iu,null,a&&s.default.createElement(nu,{typographyType:"label",size:"md",role:null==a?void 0:a.role,isDisabled:0===t,onClick:a.onClick,isUnderlined:!1},"Back"),s.default.createElement(Rh,{typographyType:"label",size:"md",role:e.role,onClick:e.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=({title:t,children:e})=>{const{spacing:n,neutral:i}=Fe(),o=ie.div`
1142
1142
  margin-top: ${n.sm};
1143
1143
  padding: ${n.md};
1144
1144
  background: ${i.background};
@@ -1148,12 +1148,12 @@ padding-top:
1148
1148
  padding: 0;
1149
1149
  list-style-position: inside;
1150
1150
  }
1151
- `;return a.default.createElement(o,null,a.default.createElement(en,{style:{marginBottom:n.sm}},t),e)},exports.CopyBox=({value:t,allowCopy:e=!0,valueToCopy:i=t,isBankAddress:o=!1,showCopyIcon:r=!0,icon:s,iconSize:l,labelText:c,labelTooltip:d,helperText:h,helperTextType:u,onButtonClick:p})=>a.default.createElement(Ph,null,a.default.createElement(Nh,null,c&&a.default.createElement(gt.Body,{size:"md",color:$e.color.base.onNeutral},c),d&&a.default.createElement(Ih,null,d)),a.default.createElement(zh,null,a.default.createElement(Bh,null,s&&a.default.createElement(Fh,{iconSize:l},s),a.default.createElement(gt.Body,{size:"lg"},a.default.createElement(Yh,{isBankAddress:o},t))),e&&a.default.createElement(Hh,{onClick:()=>{void 0!==p&&p(),Lh(i)}},r?a.default.createElement(n.SvgCopyToClipboard,null):a.default.createElement(gt.Label,{size:"md",color:$e.brand.primary.default},"Copy"))),h&&a.default.createElement(gt.Body,{size:"sm",color:"error"===u?$e.color.status.critical:$e.color.base.onNeutralSecondary},h)),exports.DESKTOP_BREAKPOINT=de,exports.DatePicker=function(t){var{disabled:n=!1,label:i,required:o=!1,optional:r=!1,size:s="large",error:c=!1,helperText:d,showInfoIcon:h,onInfoClick:u}=t,p=l(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]);const f=Ne(),{height:g,borderRadius:m,padding:b}=qe[s],x=`\n -webkit-font-smoothing: antialiased;\n height: ${g} !important;\n width: 100% !important;\n\n ${n?"\n pointer-events: none !important;\n ":""}\n\n &.ant-picker {\n border-radius: ${m} !important;\n border-color: ${c?f.color.status.critical:f.color.base.line} !important;\n padding: ${b} !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ${f.color.base.primary2} !important;\n }\n\n &.ant-picker-focused {\n border-color: ${f.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: ${Ge} !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ${f.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ${f.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ${f.color.component.placeholderInput} !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ${f.color.surface.disabledSurface} !important;\n border: 1px solid ${f.color.base.line} !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ${f.color.base.onNeutral} !important;\n -webkit-text-fill-color: ${f.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: ${f.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: ${f.color.base.primary2} !important;\n }\n }\n `,y=`\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ${f.color.base.primary2} !important;\n }\n `,v=a.default.createElement(Dc,{icon:"date_range",size:"m",color:f.color.base.onNeutral});return a.default.createElement("div",null,a.default.createElement(ud,{label:i,required:o,optional:r,showInfoIcon:h,onInfoClick:u}),a.default.createElement(e.DatePicker,Object.assign({className:`${ht(x)}`,popupClassName:ht(y),disabled:n,suffixIcon:v,format:"DD-MM-YYYY"},p)),a.default.createElement(hd,{text:d,error:c}))},exports.DeprecatedModal=e=>{const{neutral:i}=Ne(),[o]=t.useState(document.createElement("div"));return t.useEffect(()=>(Hd.appendChild(o),()=>{Hd.removeChild(o)}),[o]),s.default.createPortal(a.default.createElement(Vd,{open:e.open},e.open&&a.default.createElement(Pt,{styles:St`
1151
+ `;return s.default.createElement(o,null,s.default.createElement(on,{style:{marginBottom:n.sm}},t),e)},exports.CopyBox=({value:t,allowCopy:e=!0,valueToCopy:i=t,isBankAddress:o=!1,showCopyIcon:r=!0,icon:a,iconSize:l,labelText:c,labelTooltip:d,helperText:h,helperTextType:u,onButtonClick:p})=>s.default.createElement(Bh,null,s.default.createElement(Yh,null,c&&s.default.createElement(bt.Body,{size:"md",color:Le.color.base.onNeutral},c),d&&s.default.createElement(Hh,null,d)),s.default.createElement(Vh,null,s.default.createElement(Uh,null,a&&s.default.createElement(Wh,{iconSize:l},a),s.default.createElement(bt.Body,{size:"lg"},s.default.createElement(jh,{isBankAddress:o},t))),e&&s.default.createElement(Gh,{onClick:()=>{void 0!==p&&p(),zh(i)}},r?s.default.createElement(n.SvgCopyToClipboard,null):s.default.createElement(bt.Label,{size:"md",color:Le.brand.primary.default},"Copy"))),h&&s.default.createElement(bt.Body,{size:"sm",color:"error"===u?Le.color.status.critical:Le.color.base.onNeutralSecondary},h)),exports.DESKTOP_BREAKPOINT=ue,exports.DatePicker=function(t){var{disabled:n=!1,label:i,required:o=!1,optional:r=!1,size:a="large",error:l=!1,helperText:c,showInfoIcon:h,onInfoClick:u}=t,p=d(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]);const f=Fe(),{height:g,borderRadius:m,padding:b}=Ke[a],x=`\n -webkit-font-smoothing: antialiased;\n height: ${g} !important;\n width: 100% !important;\n\n ${n?"\n pointer-events: none !important;\n ":""}\n\n &.ant-picker {\n border-radius: ${m} !important;\n border-color: ${l?f.color.status.critical:f.color.base.line} !important;\n padding: ${b} !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ${f.color.base.primary2} !important;\n }\n\n &.ant-picker-focused {\n border-color: ${f.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: ${qe} !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ${f.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ${f.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ${f.color.component.placeholderInput} !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ${f.color.surface.disabledSurface} !important;\n border: 1px solid ${f.color.base.line} !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ${f.color.base.onNeutral} !important;\n -webkit-text-fill-color: ${f.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: ${f.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: ${f.color.base.primary2} !important;\n }\n }\n `,y=`\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ${f.color.base.primary2} !important;\n }\n `,v=s.default.createElement(Tc,{icon:"date_range",size:"m",color:f.color.base.onNeutral});return s.default.createElement("div",null,s.default.createElement(fd,{label:i,required:o,optional:r,showInfoIcon:h,onInfoClick:u}),s.default.createElement(e.DatePicker,Object.assign({className:`${pt(x)}`,popupClassName:pt(y),disabled:n,suffixIcon:v,format:"DD-MM-YYYY"},p)),s.default.createElement(pd,{text:c,error:l}))},exports.DeprecatedModal=e=>{const{neutral:i}=Fe(),[o]=t.useState(document.createElement("div"));return t.useEffect(()=>(Vd.appendChild(o),()=>{Vd.removeChild(o)}),[o]),c.default.createPortal(s.default.createElement(jd,{open:e.open},e.open&&s.default.createElement(It,{styles:Et`
1152
1152
  body {
1153
1153
  overflow: hidden;
1154
1154
  position: fixed;
1155
1155
  }
1156
- `}),a.default.createElement("div",{className:`${ht`
1156
+ `}),s.default.createElement("div",{className:`${pt`
1157
1157
  width: calc(100% - 32px);
1158
1158
  max-width: 400px;
1159
1159
  background: white;
@@ -1166,7 +1166,7 @@ padding-top:
1166
1166
  top: 6.8vh;
1167
1167
  left: 50%;
1168
1168
  transform: translateX(-50%);
1169
- `} ${e.modalClassName}`},a.default.createElement(Ud,{hasIcon:Boolean(e.icon)},a.default.createElement(Xd,null,a.default.createElement(qd,null,e.icon,a.default.createElement(Je,null,e.title)),!e.disabledCloseIcon&&a.default.createElement(Zd,{onClick:()=>e.onClose()},a.default.createElement(n.SvgCross,{color:i.text,width:18}))),a.default.createElement(an,null)),a.default.createElement(jd,null,e.children),a.default.createElement(Gd,null,e.footer))),o)},exports.DialogItems=({items:t,className:e})=>a.default.createElement(Fd,{className:e},t.map((t,e)=>a.default.createElement(Id,Object.assign({key:e},t)))),exports.Divider=an,exports.Dropdown=function(n){var{menu:i,children:o,type:r="default",placement:s="bottomLeft",className:c="",trigger:d=["click"],disabled:h=!1}=n,u=l(n,["menu","children","type","placement","className","trigger","disabled"]);const{brand:p,spacing:f}=Ne(),g=`\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n\n &:focus {\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n\n &:active {\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n\n &:hover {\n background-color: ${p.action.hover};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n `,m=`\n cursor: auto;\n pointer-events: none;\n opacity: ${p.action.disabledOpacity};\n `,b=ee(e.Dropdown.Button)`
1169
+ `} ${e.modalClassName}`},s.default.createElement(Gd,{hasIcon:Boolean(e.icon)},s.default.createElement(Zd,null,s.default.createElement(Kd,null,e.icon,s.default.createElement(tn,null,e.title)),!e.disabledCloseIcon&&s.default.createElement(Jd,{onClick:()=>e.onClose()},s.default.createElement(n.SvgCross,{color:i.text,width:18}))),s.default.createElement(ln,null)),s.default.createElement(Xd,null,e.children),s.default.createElement(qd,null,e.footer))),o)},exports.DialogItems=({items:t,className:e})=>s.default.createElement(Bd,{className:e},t.map((t,e)=>s.default.createElement(zd,Object.assign({key:e},t)))),exports.Divider=ln,exports.Dropdown=function(n){var{menu:i,children:o,type:r="default",placement:a="bottomLeft",className:l="",trigger:c=["click"],disabled:h=!1}=n,u=d(n,["menu","children","type","placement","className","trigger","disabled"]);const{brand:p,spacing:f}=Fe(),g=`\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n\n &:focus {\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n\n &:active {\n background-color: ${p.action.default};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n\n &:hover {\n background-color: ${p.action.hover};\n color: ${p.primary.contrast};\n border: 1px solid ${p.primary.contrast};\n }\n `,m=`\n cursor: auto;\n pointer-events: none;\n opacity: ${p.action.disabledOpacity};\n `,b=ie(e.Dropdown.Button)`
1170
1170
  &.ant-btn-group > .ant-btn:first-child:not(:last-child) {
1171
1171
  text-shadow: none;
1172
1172
  -webkit-font-smoothing: antialiased;
@@ -1175,8 +1175,8 @@ padding-top:
1175
1175
  height: unset;
1176
1176
  box-shadow: none;
1177
1177
  line-height: 0.75;
1178
- ${fe};
1179
- ${ve};
1178
+ ${me};
1179
+ ${we};
1180
1180
  ${g};
1181
1181
  ${!0===h&&m}
1182
1182
  padding: ${f.md};
@@ -1191,55 +1191,55 @@ padding-top:
1191
1191
  min-width: 45px;
1192
1192
  line-height: 0.75;
1193
1193
  box-shadow: none;
1194
- ${fe};
1195
- ${ve};
1194
+ ${me};
1195
+ ${we};
1196
1196
  ${g};
1197
1197
  ${!0===h&&m}
1198
1198
  padding: ${f.sm};
1199
1199
  }
1200
- `;if("split"===r)return a.default.createElement(b,Object.assign({className:c,menu:i,placement:s,trigger:d},u),o);const x=t.useRef(null);return t.useEffect(()=>{const t=t=>{t.cancelable&&t.preventDefault()},e=x.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),()=>{e&&e.removeEventListener("touchmove",t)}},[]),a.default.createElement(e.Dropdown,Object.assign({menu:i,placement:s,trigger:d},u),a.default.createElement("div",{ref:x},o))},exports.DynamicSelect=od,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=({title:t="No results found",subtitle:i,info:o,svgUniqueId:r="randomString"})=>a.default.createElement(kh,null,a.default.createElement(e.Empty,{image:a.default.createElement(n.SvgEmptyIcon,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),t&&a.default.createElement(Eh,null,t),i&&a.default.createElement(Oh,null,i),o&&a.default.createElement(Ch,null,o)),exports.ErrorPage=({title:t,subtitle:e,content:n,fallbackContent:i,backgroundColor:o})=>{const{neutral:r,text:s}=Ne(),l=ee.div`
1201
- font-family: ${he};
1200
+ `;if("split"===r)return s.default.createElement(b,Object.assign({className:l,menu:i,placement:a,trigger:c},u),o);const x=t.useRef(null);return t.useEffect(()=>{const t=t=>{t.cancelable&&t.preventDefault()},e=x.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),()=>{e&&e.removeEventListener("touchmove",t)}},[]),s.default.createElement(e.Dropdown,Object.assign({menu:i,placement:a,trigger:c},u),s.default.createElement("div",{ref:x},o))},exports.DynamicSelect=ad,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=({title:t="No results found",subtitle:i,info:o,svgUniqueId:r="randomString"})=>s.default.createElement(Mh,null,s.default.createElement(e.Empty,{image:s.default.createElement(n.SvgEmptyIcon,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),t&&s.default.createElement(Th,null,t),i&&s.default.createElement(Ah,null,i),o&&s.default.createElement($h,null,o)),exports.ErrorPage=({title:t,subtitle:e,content:n,fallbackContent:i,backgroundColor:o})=>{const{neutral:r,text:a}=Fe(),l=ie.div`
1201
+ font-family: ${pe};
1202
1202
  font-weight: 800;
1203
1203
  color: ${r.bluish};
1204
1204
  font-size: 100px;
1205
1205
  margin-bottom: 20px;
1206
- `,c=ee.div`
1207
- font-family: ${he};
1206
+ `,c=ie.div`
1207
+ font-family: ${pe};
1208
1208
  display: flex;
1209
1209
  flex-direction: column;
1210
1210
  align-items: center;
1211
1211
  padding-top: 60px;
1212
- ${de} {
1212
+ ${ue} {
1213
1213
  background-color: ${t=>t.backgroundColor||r.background};
1214
1214
  }
1215
- `,d=ee.div`
1216
- font-family: ${he};
1215
+ `,d=ie.div`
1216
+ font-family: ${pe};
1217
1217
  font-style: normal;
1218
1218
  text-align: center;
1219
- color: ${s.default};
1219
+ color: ${a.default};
1220
1220
  margin-bottom: 5px;
1221
1221
  word-break: break-word;
1222
- ${ge};
1223
- `,h=ee.div`
1222
+ ${be};
1223
+ `,h=ie.div`
1224
1224
  text-align: center;
1225
- color: ${s.default};
1225
+ color: ${a.default};
1226
1226
  flex: none;
1227
1227
  order: 0;
1228
1228
  align-self: center;
1229
1229
  margin-bottom: 20px;
1230
- ${xe};
1231
- `;return a.default.createElement(c,{backgroundColor:o},a.default.createElement(l,null,t),a.default.createElement(d,null,e),a.default.createElement(h,null,n),i)},exports.FALLBACK_FONT="Inter",exports.Form=cd,exports.H1=Ke,exports.H2=Je,exports.H3=Qe,exports.H4=on,exports.Hidden=yh,exports.Input=fd,exports.InputWithButton=({buttonText:t,onButtonClick:e,prefix:n,placeholder:i,value:o,defaultValue:r,onChange:s,disabled:l=!1,disabledInput:c=!1,disabledPrefix:d=!1,staticPrefix:h=!1,error:u=!1,className:p})=>{const f=Ne(),g=l||c,m=l||d,b=u?f.color.status.critical:f.color.base.line,x=f.color.base.line;return a.default.createElement(xd,{className:p},n&&a.default.createElement(yd,{borderColor:x,bgColor:m?f.color.surface.disabledSurface:h?f.color.surface.secondaryNeutral:f.color.surface.neutral,hoverBgColor:m?f.color.surface.disabledSurface:f.color.interactive.hoverSurface,textColor:m?f.color.surface.disabledOnSurface:f.color.base.onNeutral,isDisabled:m},n),a.default.createElement(vd,{type:"text",placeholder:i,value:o,defaultValue:r,onChange:s,disabled:g,borderColor:b,focusBorderColor:f.color.base.primary2,textColor:f.color.base.onNeutral,placeholderColor:f.color.component.placeholderInput,disabledBgColor:f.color.surface.disabledSurface,disabledTextColor:f.color.surface.disabledOnSurface,hasPrefix:!!n,isDisabled:g}),a.default.createElement(_d,{type:"button",onClick:e,disabled:l||u,bgColor:f.color.base.primary,disabledBgColor:f.color.surface.disabledSurface,textColor:f.color.base.onNeutral,disabledTextColor:f.color.surface.disabledOnSurface,isDisabled:l||u},t))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=Dh,exports.MAIN_FONT=Ge,exports.MaterialSymbols=Dc,exports.Modal=({onClose:t,variant:e="default",size:i="small",title:o,children:r,footer:s,disabledCloseIcon:l,className:c,illustration:d,headerImage:h})=>{const{neutral:u}=Ne(),p="newFeature"===e?"medium":i,f=!l&&a.default.createElement(Nd,{onClick:()=>t()},a.default.createElement(n.SvgCross,{color:u.text,width:18}));return a.default.createElement(Sd,{modalSize:p,className:c},(()=>{switch(e){case"illustration":return a.default.createElement(a.default.Fragment,null,a.default.createElement(Cd,null,f),a.default.createElement(Dd,null,d&&a.default.createElement(Md,null,d),o&&a.default.createElement(Td,null,o)));case"newFeature":return a.default.createElement(a.default.Fragment,null,h&&a.default.createElement(Ad,null,h),o&&a.default.createElement($d,null,a.default.createElement(Rd,null,o)));default:return(o||!l)&&a.default.createElement(kd,null,a.default.createElement(Ed,null,a.default.createElement(Od,null,o||""),f))}})(),a.default.createElement(Ld,null,r),s&&a.default.createElement(Pd,null,s))},exports.ModalProvider=({children:e})=>{const[n,i]=t.useState(),o=t.useCallback(()=>{i(void 0)},[i]);return a.default.createElement(Qh.Provider,{value:{resetModal:o,setModal:i}},e,a.default.createElement(eu,{modal:n}))},exports.Note=({title:t,children:e})=>{const n=Array.isArray(e)&&e.length>1,i=ee.div`
1230
+ ${ve};
1231
+ `;return s.default.createElement(c,{backgroundColor:o},s.default.createElement(l,null,t),s.default.createElement(d,null,e),s.default.createElement(h,null,n),i)},exports.FALLBACK_FONT="Inter",exports.Form=hd,exports.H1=Qe,exports.H2=tn,exports.H3=en,exports.H4=an,exports.Hidden=kh,exports.Input=md,exports.InputWithButton=({buttonText:t,onButtonClick:e,prefix:n,placeholder:i,value:o,defaultValue:r,onChange:a,disabled:l=!1,disabledInput:c=!1,disabledPrefix:d=!1,staticPrefix:h=!1,error:u=!1,className:p})=>{const f=Fe(),g=l||c,m=l||d,b=u?f.color.status.critical:f.color.base.line,x=f.color.base.line;return s.default.createElement(vd,{className:p},n&&s.default.createElement(_d,{borderColor:x,bgColor:m?f.color.surface.disabledSurface:h?f.color.surface.secondaryNeutral:f.color.surface.neutral,hoverBgColor:m?f.color.surface.disabledSurface:f.color.interactive.hoverSurface,textColor:m?f.color.surface.disabledOnSurface:f.color.base.onNeutral,isDisabled:m},n),s.default.createElement(wd,{type:"text",placeholder:i,value:o,defaultValue:r,onChange:a,disabled:g,borderColor:b,focusBorderColor:f.color.base.primary2,textColor:f.color.base.onNeutral,placeholderColor:f.color.component.placeholderInput,disabledBgColor:f.color.surface.disabledSurface,disabledTextColor:f.color.surface.disabledOnSurface,hasPrefix:!!n,isDisabled:g}),s.default.createElement(Sd,{type:"button",onClick:e,disabled:l||u,bgColor:f.color.base.primary,disabledBgColor:f.color.surface.disabledSurface,textColor:f.color.base.onNeutral,disabledTextColor:f.color.surface.disabledOnSurface,isDisabled:l||u},t))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=Rh,exports.MAIN_FONT=qe,exports.MaterialSymbols=Tc,exports.Modal=({onClose:t,variant:e="default",size:i="small",title:o,children:r,footer:a,disabledCloseIcon:l,className:c,illustration:d,headerImage:h})=>{const{neutral:u}=Fe(),p="newFeature"===e?"medium":i,f=!l&&s.default.createElement(Fd,{onClick:()=>t()},s.default.createElement(n.SvgCross,{color:u.text,width:18}));return s.default.createElement(Ed,{modalSize:p,className:c},(()=>{switch(e){case"illustration":return s.default.createElement(s.default.Fragment,null,s.default.createElement(Md,null,f),s.default.createElement(Td,null,d&&s.default.createElement(Ad,null,d),o&&s.default.createElement($d,null,o)));case"newFeature":return s.default.createElement(s.default.Fragment,null,h&&s.default.createElement(Rd,null,h),o&&s.default.createElement(Ld,null,s.default.createElement(Pd,null,o)));default:return(o||!l)&&s.default.createElement(Od,null,s.default.createElement(Cd,null,s.default.createElement(Dd,null,o||""),f))}})(),s.default.createElement(Nd,null,r),a&&s.default.createElement(Id,null,a))},exports.ModalProvider=({children:e})=>{const[n,i]=t.useState(),o=t.useCallback(()=>{i(void 0)},[i]);return s.default.createElement(ou.Provider,{value:{resetModal:o,setModal:i}},e,s.default.createElement(au,{modal:n}))},exports.Note=({title:t,children:e})=>{const n=Array.isArray(e)&&e.length>1,i=ie.div`
1232
1232
  width: 100%;
1233
- background: ${$e.color.surface.subduePositive};
1233
+ background: ${Le.color.surface.subduePositive};
1234
1234
  padding: 4px;
1235
1235
  border-radius: 8px;
1236
- `,o=ee.div`
1236
+ `,o=ie.div`
1237
1237
  position: relative;
1238
1238
  ::before {
1239
1239
  content: '';
1240
1240
  height: 100%;
1241
1241
  width: 5px;
1242
- background: ${$e.color.status.positive};
1242
+ background: ${Le.color.status.positive};
1243
1243
  border-radius: 5px;
1244
1244
  position: absolute;
1245
1245
  left: 0;
@@ -1249,11 +1249,11 @@ padding-top:
1249
1249
  justify-content: center;
1250
1250
  padding: 5px 0 5px 15px;
1251
1251
  gap: ${t?"5px":"0px"};
1252
- `;return a.default.createElement(i,null,a.default.createElement(o,null,a.default.createElement(gt.Label,{size:"md"},t),n?a.default.createElement(gt.Body,{size:"md",style:{scrollbarWidth:"none"}},a.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},e.map((t,e)=>a.default.createElement("li",{key:e},t)))):a.default.createElement(gt.Body,{size:"md",style:{scrollbarWidth:"none"}},e)))},exports.P1=tn,exports.P1Bold=en,exports.Pagination=function({current:t,pageSize:n,total:i,onChange:o,showSizeChanger:r,onShowSizeChange:s,pageSizeOptions:l}){const c=`\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 ${exports.NEUTRAL_COLORS.G200};\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ${Ge};\n border-radius: 5px;\n border: 1px solid ${exports.NEUTRAL_COLORS.G200};\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ${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 a.default.createElement(e.Pagination,{className:`${ht(c)}`,current:t,pageSize:n,total:i,onChange:o,showSizeChanger:r,onShowSizeChange:s,pageSizeOptions:l})},exports.Radio=Jd,exports.RangePicker=function(t){var{format:e="DD-MM-YYYY",size:n="large"}=t,i=l(t,["format","size"]);const o=Ne(),{height:r,borderRadius:s,padding:c}=qe[n],d=`\n -webkit-font-smoothing: antialiased;\n height: ${r} !important;\n\n &.ant-picker {\n border-radius: ${s} !important;\n border-color: ${o.color.base.line} !important;\n padding: ${c} !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ${o.color.base.primary2} !important;\n }\n\n &.ant-picker-focused {\n border-color: ${o.color.base.primary2} !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ${o.color.base.primary2} !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ${Ge} !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ${o.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input {\n color: ${o.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ${o.color.component.placeholderInput} !important;\n }\n `,h=`\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ${o.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: ${o.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: ${o.color.interactive.selected} !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ${o.color.interactive.selected} !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ${o.color.interactive.selected} !important;\n }\n }\n `;return a.default.createElement(dh.RangePicker,Object.assign({className:`${ht(d)}`,format:e,popupClassName:ht(h)},i))},exports.Section=Mh,exports.Select=nd,exports.SelectionBox=hh,exports.SelectionBoxGroup=({children:t,label:e})=>a.default.createElement("div",{role:"radiogroup","aria-label":e},t),exports.SmallP=nn,exports.Spin=t=>{var{size:n}=t,i=l(t,["size"]);const{brand:o}=Ne(),r=ht`
1252
+ `;return s.default.createElement(i,null,s.default.createElement(o,null,s.default.createElement(bt.Label,{size:"md"},t),n?s.default.createElement(bt.Body,{size:"md",style:{scrollbarWidth:"none"}},s.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},e.map((t,e)=>s.default.createElement("li",{key:e},t)))):s.default.createElement(bt.Body,{size:"md",style:{scrollbarWidth:"none"}},e)))},exports.P1=nn,exports.P1Bold=on,exports.Pagination=function({current:t,pageSize:n,total:i,onChange:o,showSizeChanger:r,onShowSizeChange:a,pageSizeOptions:l}){const c=`\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 ${exports.NEUTRAL_COLORS.G200};\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ${qe};\n border-radius: 5px;\n border: 1px solid ${exports.NEUTRAL_COLORS.G200};\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ${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:`${pt(c)}`,current:t,pageSize:n,total:i,onChange:o,showSizeChanger:r,onShowSizeChange:a,pageSizeOptions:l})},exports.Radio=Qd,exports.RangePicker=function(t){var{format:e="DD-MM-YYYY",size:n="large"}=t,i=d(t,["format","size"]);const o=Fe(),{height:r,borderRadius:a,padding:l}=Ke[n],c=`\n -webkit-font-smoothing: antialiased;\n height: ${r} !important;\n\n &.ant-picker {\n border-radius: ${a} !important;\n border-color: ${o.color.base.line} !important;\n padding: ${l} !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ${o.color.base.primary2} !important;\n }\n\n &.ant-picker-focused {\n border-color: ${o.color.base.primary2} !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ${o.color.base.primary2} !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ${qe} !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ${o.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input {\n color: ${o.color.base.onNeutral} !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ${o.color.component.placeholderInput} !important;\n }\n `,h=`\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ${o.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: ${o.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: ${o.color.interactive.selected} !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ${o.color.interactive.selected} !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ${o.color.interactive.selected} !important;\n }\n }\n `;return s.default.createElement(gh.RangePicker,Object.assign({className:`${pt(c)}`,format:e,popupClassName:pt(h)},i))},exports.Section=Lh,exports.Select=od,exports.SelectionBox=mh,exports.SelectionBoxGroup=({children:t,label:e})=>s.default.createElement("div",{role:"radiogroup","aria-label":e},t),exports.SmallP=rn,exports.Spin=t=>{var{size:n}=t,i=d(t,["size"]);const{brand:o}=Fe(),r=pt`
1253
1253
  & .ant-spin-dot-item {
1254
1254
  background-color: ${o.primary.default};
1255
1255
  }
1256
- `;return a.default.createElement(e.Spin,Object.assign({className:dt(r),size:n},i))},exports.Steps=({current:e,steps:n,desktopNote:i})=>{const o=t.useRef(null),{brand:r,success:s,neutral:l}=Ne();t.useEffect(()=>{const t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);const c=ee.div`
1256
+ `;return s.default.createElement(e.Spin,Object.assign({className:ut(r),size:n},i))},exports.Steps=({current:e,steps:n,desktopNote:i})=>{const o=t.useRef(null),{brand:r,success:a,neutral:l}=Fe();t.useEffect(()=>{const t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);const c=ie.div`
1257
1257
  height: 58px;
1258
1258
  padding-left: 16px;
1259
1259
  border-bottom: 1px solid ${l.border};
@@ -1266,7 +1266,7 @@ padding-top:
1266
1266
  &::-webkit-scrollbar {
1267
1267
  display: none;
1268
1268
  }
1269
- `,d=ee.div`
1269
+ `,d=ie.div`
1270
1270
  width: 9px;
1271
1271
  height: 9px;
1272
1272
  border-radius: 50%;
@@ -1274,8 +1274,8 @@ padding-top:
1274
1274
  background: ${l.emphasis};
1275
1275
  display: inline-block;
1276
1276
 
1277
- ${t=>t.current===t.index?`\n background: ${r.primary.default};\n `:t.current>t.index?`\n background: ${s.emphasis};\n `:""};
1278
- `,h=ee.div`
1277
+ ${t=>t.current===t.index?`\n background: ${r.primary.default};\n `:t.current>t.index?`\n background: ${a.emphasis};\n `:""};
1278
+ `,h=ie.div`
1279
1279
  width: 20px;
1280
1280
  margin-left: 10px;
1281
1281
  margin-right: 10px;
@@ -1283,11 +1283,11 @@ padding-top:
1283
1283
  background: ${l.emphasis};
1284
1284
  display: inline-block;
1285
1285
  margin-bottom: 4px;
1286
- `,u=ee.div`
1286
+ `,u=ie.div`
1287
1287
  padding-right: 16px;
1288
1288
  width: 1px;
1289
1289
  white-space: nowrap;
1290
- `,p=ee(tn)`
1290
+ `,p=ie(nn)`
1291
1291
  color: #1b2736;
1292
1292
  display: inline-flex;
1293
1293
  align-items: center;
@@ -1298,12 +1298,12 @@ padding-top:
1298
1298
  }
1299
1299
 
1300
1300
  ${t=>t.current&&"\n font-weight: bold;\n "};
1301
- `;return a.default.createElement(a.default.Fragment,null,a.default.createElement(yh,{only:"sm"},a.default.createElement("div",{style:{padding:"30px",width:"266px"}},a.default.createElement(vh,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map((t,e)=>a.default.createElement(vh.Step,{key:`desktop-${t}-${e}`,title:t}))),i)),a.default.createElement(yh,{only:"lg",ref:o},a.default.createElement(c,null,a.default.createElement(u,null,n.map((t,i)=>a.default.createElement("span",{key:`mobile-${t}-${i}`},a.default.createElement(p,{inactive:e<i,current:e===i},a.default.createElement(d,{index:i,current:e}),t),i!==n.length-1&&a.default.createElement(h,null)))))))},exports.SummaryCard=({label:t,amount:e,type:n="default",height:i=91,width:o=230,isInverted:r=!1,icon:s})=>{const l=ee(Ze)`
1301
+ `;return s.default.createElement(s.default.Fragment,null,s.default.createElement(kh,{only:"sm"},s.default.createElement("div",{style:{padding:"30px",width:"266px"}},s.default.createElement(Eh,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map((t,e)=>s.default.createElement(Eh.Step,{key:`desktop-${t}-${e}`,title:t}))),i)),s.default.createElement(kh,{only:"lg",ref:o},s.default.createElement(c,null,s.default.createElement(u,null,n.map((t,i)=>s.default.createElement("span",{key:`mobile-${t}-${i}`},s.default.createElement(p,{inactive:e<i,current:e===i},s.default.createElement(d,{index:i,current:e}),t),i!==n.length-1&&s.default.createElement(h,null)))))))},exports.SummaryCard=({label:t,amount:e,type:n="default",height:i=91,width:o=230,isInverted:r=!1,icon:a})=>{const l=ie(Je)`
1302
1302
  width: ${"number"==typeof o?`${o}px`:o};
1303
1303
  min-height: ${i}px;
1304
1304
  padding: 3px !important;
1305
1305
  border-radius: 5px !important;
1306
1306
 
1307
- ${s&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n "} ${r&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n "};
1308
- `;return a.default.createElement(l,{type:n},s&&s,a.default.createElement("div",null,a.default.createElement(tn,{style:{marginBottom:r?"0":"5px"}},t),a.default.createElement(Ke,{style:{marginBottom:r?"5px":"0"}},e)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=t=>{var{className:n,emptyText:i}=t,o=l(t,["className","emptyText"]);return a.default.createElement(e.Table,Object.assign({className:dt(_h,n),locale:{emptyText:i}},o))},exports.Tabs=wh,exports.Tag=Pc,exports.ThemeProvider=({theme:t=$e,children:e})=>a.default.createElement(Pe.Provider,{value:t},a.default.createElement(Le,null),e),exports.Timeline=Wh,exports.Timer=({initialSeconds:e,blinkActivationSeconds:n,shouldRepeat:i,onTimesUp:o,children:r})=>{const[a,s]=t.useState(!1),[l,c]=t.useState(e),[d,h]=t.useState(void 0),[u,p]=t.useState(!0),f=Date.now()+1e3*l;return t.useEffect(()=>{u&&(h(setInterval(()=>{const t=(new Date).getTime(),e=f-t,i=Math.ceil(e/1e3);i>=0&&c(i),n&&i<=n&&s(!0)},1e3)),p(!1))},[u]),t.useEffect(()=>{l<=0&&void 0!==d&&(clearInterval(d),h(void 0),s(!1),o&&o(),i&&(c(e),p(!0)))},[d,l]),r(a,l)},exports.Tooltip=vc,exports.Typography=gt,exports.getCoachmarkJoyrideConfig=function(t){const{arrowColor:e=$e.color.surface.secondaryNeutral,arrowLength:n=8,arrowSpread:i=16}=t||{};return{floaterProps:{styles:{arrow:{length:n,spread:i,color:e}}}}},exports.straitsXTheme=$e,exports.useModal=()=>{const t=a.default.useContext(Qh);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},exports.useTheme=Ne,exports.xfersTheme=Ae;
1307
+ ${a&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n "} ${r&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n "};
1308
+ `;return s.default.createElement(l,{type:n},a&&a,s.default.createElement("div",null,s.default.createElement(nn,{style:{marginBottom:r?"0":"5px"}},t),s.default.createElement(Qe,{style:{marginBottom:r?"5px":"0"}},e)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=t=>{var{className:n,emptyText:i}=t,o=d(t,["className","emptyText"]);return s.default.createElement(e.Table,Object.assign({className:ut(Oh,n),locale:{emptyText:i}},o))},exports.Tabs=Ch,exports.Tag=Ic,exports.ThemeProvider=({theme:t=Le,children:e})=>s.default.createElement(Ie.Provider,{value:t},s.default.createElement(Ne,null),e),exports.Timeline=Xh,exports.Timer=({initialSeconds:e,blinkActivationSeconds:n,shouldRepeat:i,onTimesUp:o,children:r})=>{const[a,s]=t.useState(!1),[l,c]=t.useState(e),[d,h]=t.useState(void 0),[u,p]=t.useState(!0),f=Date.now()+1e3*l;return t.useEffect(()=>{u&&(h(setInterval(()=>{const t=(new Date).getTime(),e=f-t,i=Math.ceil(e/1e3);i>=0&&c(i),n&&i<=n&&s(!0)},1e3)),p(!1))},[u]),t.useEffect(()=>{l<=0&&void 0!==d&&(clearInterval(d),h(void 0),s(!1),o&&o(),i&&(c(e),p(!0)))},[d,l]),r(a,l)},exports.Tooltip=wc,exports.Typography=bt,exports.getCoachmarkJoyrideConfig=function(t){const{arrowColor:e=Le.color.surface.secondaryNeutral,arrowLength:n=8,arrowSpread:i=16}=t||{};return{floaterProps:{styles:{arrow:{length:n,spread:i,color:e}}}}},exports.straitsXTheme=Le,exports.useModal=()=>{const t=s.default.useContext(ou);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},exports.useTheme=Fe,exports.xfersTheme=Re;
1309
1309
  //# sourceMappingURL=index.js.map