1mpacto-react-ui 0.2.0-beta.12 → 0.2.0-beta.13
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/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1160 -1104
- package/dist/index.mjs.map +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -105,13 +105,13 @@ You should wrap it with \`css\` like this:
|
|
|
105
105
|
`),r=0;r<n.length;r++){var i=x7(n[r]);if(i){if(C7.has(i))break;if(/^[A-Z]/.test(i))return E7(i)}}},Qh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",e0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",w7=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var i in n)Hg.call(n,i)&&(r[i]=n[i]);if(r[Qh]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=S7(new Error().stack);a&&(r[e0]=a)}return r},I7=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Og(n,r,i),V2(function(){return Lg(n,r,i)}),null},H2=zg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Qh],a=[r],o="";typeof e.className=="string"?o=F2(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=Os(a,void 0,ae.useContext(Qc));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[e0];l&&(s=Os([s,"label:"+l+";"]))}o+=t.key+"-"+s.name;var u={};for(var c in e)Hg.call(e,c)&&c!=="css"&&c!==Qh&&(process.env.NODE_ENV==="production"||c!==e0)&&(u[c]=e[c]);return u.ref=n,u.className=o,ae.createElement(ae.Fragment,null,ae.createElement(I7,{cache:t,serialized:s,isStringTag:typeof i=="string"}),ae.createElement(i,u))});process.env.NODE_ENV!=="production"&&(H2.displayName="EmotionCssPropInternal");var _7=H2,D7={version:"11.11.4"},Ie=function(t,n){var r=arguments;if(n==null||!Hg.call(n,"css"))return ae.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=_7,a[1]=w7(t,n);for(var o=2;o<i;o++)a[o]=r[o];return ae.createElement.apply(null,a)},av=!1,T7=zg(function(e,t){process.env.NODE_ENV!=="production"&&!av&&(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?"),av=!0);var n=e.styles,r=Os([n],void 0,ae.useContext(Qc)),i=ae.useRef();return rv(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),rv(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Lg(t,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(T7.displayName="EmotionGlobal");function Gg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Os(t)}var A7=function(){var t=Gg.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},R7=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in a)a[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function B7(e,t,n){var r=[],i=F2(e,r,n);return r.length<2?n:i+t(r)}var k7=function(t){var n=t.cache,r=t.serializedArr;return V2(function(){for(var i=0;i<r.length;i++)Lg(n,r[i],!1)}),null},P7=zg(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),p=0;p<u;p++)c[p]=arguments[p];var h=Os(c,t.registered);return r.push(h),Og(t,h,!1),t.key+"-"+h.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),p=0;p<u;p++)c[p]=arguments[p];return B7(t.registered,i,R7(c))},o={css:i,cx:a,theme:ae.useContext(Qc)},s=e.children(o);return n=!0,ae.createElement(ae.Fragment,null,ae.createElement(k7,{cache:t,serializedArr:r}),s)});process.env.NODE_ENV!=="production"&&(P7.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var ov=!0,$7=typeof jest<"u"||typeof vi<"u";if(ov&&!$7){var sv=typeof globalThis<"u"?globalThis:ov?window:global,lv="__EMOTION_REACT_"+D7.version.split(".")[0]+"__";sv[lv]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),sv[lv]=!0}}function F7(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var t0=N.useLayoutEffect,N7=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ic=function(){};function M7(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function O7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(M7(e,o)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var uv=function(t){return X7(t)?t.filter(Boolean):Da(t)==="object"&&t!==null?[t]:[]},j2=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=yi(t,N7);return _e({},n)},St=function(t,n,r){var i=t.cx,a=t.getStyles,o=t.getClassNames,s=t.className;return{css:a(n,t),className:i(r??{},o(n,t),s)}};function ed(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function L7(e){return ed(e)?window.innerHeight:e.clientHeight}function z2(e){return ed(e)?window.pageYOffset:e.scrollTop}function ac(e,t){if(ed(e)){window.scrollTo(0,t);return}e.scrollTop=t}function V7(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function H7(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function zl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ic,i=z2(e),a=t-i,o=10,s=0;function l(){s+=o;var u=H7(s,i,a,n);ac(e,u),s<n?window.requestAnimationFrame(l):r(e)}l()}function cv(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ac(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ac(e,Math.max(t.offsetTop-i,0))}function j7(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function dv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function z7(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var G2=!1,G7={get passive(){return G2=!0}},Gl=typeof window<"u"?window:{};Gl.addEventListener&&Gl.removeEventListener&&(Gl.addEventListener("p",ic,G7),Gl.removeEventListener("p",ic,!1));var W7=G2;function U7(e){return e!=null}function X7(e){return Array.isArray(e)}function Wl(e,t,n){return e?t:n}var Y7=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(t).filter(function(o){var s=fi(o,1),l=s[0];return!r.includes(l)});return a.reduce(function(o,s){var l=fi(s,2),u=l[0],c=l[1];return o[u]=c,o},{})},K7=["children","innerProps"],Z7=["children","innerProps"];function q7(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=V7(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),p=c.height,h=n.getBoundingClientRect(),d=h.bottom,v=h.height,m=h.top,b=n.offsetParent.getBoundingClientRect(),f=b.top,y=o?window.innerHeight:L7(l),C=z2(l),S=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=f-w,x=y-m,g=E+C,I=p-C-m,T=d-y+C+S,_=C+m-w,A=160;switch(i){case"auto":case"bottom":if(x>=v)return{placement:"bottom",maxHeight:t};if(I>=v&&!o)return a&&zl(l,T,A),{placement:"bottom",maxHeight:t};if(!o&&I>=r||o&&x>=r){a&&zl(l,T,A);var F=o?x-S:I-S;return{placement:"bottom",maxHeight:F}}if(i==="auto"||o){var B=t,$=o?E:g;return $>=r&&(B=Math.min($-S-s,t)),{placement:"top",maxHeight:B}}if(i==="bottom")return a&&ac(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(E>=v)return{placement:"top",maxHeight:t};if(g>=v&&!o)return a&&zl(l,_,A),{placement:"top",maxHeight:t};if(!o&&g>=r||o&&E>=r){var k=t;return(!o&&g>=r||o&&E>=r)&&(k=o?E-w:g-w),a&&zl(l,_,A),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function J7(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var W2=function(t){return t==="auto"?"bottom":t},Q7=function(t,n){var r,i=t.placement,a=t.theme,o=a.borderRadius,s=a.spacing,l=a.colors;return _e((r={label:"menu"},is(r,J7(i),"100%"),is(r,"position","absolute"),is(r,"width","100%"),is(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},U2=N.createContext(null),e8=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=N.useContext(U2)||{},c=u.setPortalPlacement,p=N.useRef(null),h=N.useState(i),d=fi(h,2),v=d[0],m=d[1],b=N.useState(null),f=fi(b,2),y=f[0],C=f[1],S=l.spacing.controlHeight;return t0(function(){var w=p.current;if(w){var E=o==="fixed",x=s&&!E,g=q7({maxHeight:i,menuEl:w,minHeight:r,placement:a,shouldScroll:x,isFixedPosition:E,controlHeight:S});m(g.maxHeight),C(g.placement),c==null||c(g.placement)}},[i,a,o,s,r,c,S]),n({ref:p,placerProps:_e(_e({},t),{},{placement:y||W2(a),maxHeight:v})})},t8=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return Ie("div",De({},St(t,"menu",{menu:!0}),{ref:r},i),n)},n8=t8,r8=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return _e({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},i8=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return Ie("div",De({},St(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},X2=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return _e({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},a8=X2,o8=X2,s8=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,a=yi(t,K7);return Ie("div",De({},St(_e(_e({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},l8=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,a=yi(t,Z7);return Ie("div",De({},St(_e(_e({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},u8=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},c8=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=N.useRef(null),u=N.useRef(null),c=N.useState(W2(o)),p=fi(c,2),h=p[0],d=p[1],v=N.useMemo(function(){return{setPortalPlacement:d}},[]),m=N.useState(null),b=fi(m,2),f=b[0],y=b[1],C=N.useCallback(function(){if(i){var x=j7(i),g=s==="fixed"?0:window.pageYOffset,I=x[h]+g;(I!==(f==null?void 0:f.offset)||x.left!==(f==null?void 0:f.rect.left)||x.width!==(f==null?void 0:f.rect.width))&&y({offset:I,rect:x})}},[i,s,h,f==null?void 0:f.offset,f==null?void 0:f.rect.left,f==null?void 0:f.rect.width]);t0(function(){C()},[C]);var S=N.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=uC(i,l.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);t0(function(){S()},[S]);var w=N.useCallback(function(x){l.current=x,S()},[S]);if(!n&&s!=="fixed"||!f)return null;var E=Ie("div",De({ref:w},St(_e(_e({},t),{},{offset:f.offset,position:s,rect:f.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Ie(U2.Provider,{value:v},n?No.createPortal(E,n):E)},d8=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},f8=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return Ie("div",De({},St(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},h8=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,o=t.selectProps.controlShouldRenderValue;return _e({alignItems:"center",display:i&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},g8=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return Ie("div",De({},St(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},p8=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},m8=function(t){var n=t.children,r=t.innerProps;return Ie("div",De({},St(t,"indicatorsContainer",{indicators:!0}),r),n)},fv,v8=["size"],b8=["innerProps","isRtl","size"];function y8(){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)."}var x8=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:y8},Y2=function(t){var n=t.size,r=yi(t,v8);return Ie("svg",De({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:x8},r))},Wg=function(t){return Ie(Y2,De({size:20},t),Ie("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},K2=function(t){return Ie(Y2,De({size:20},t),Ie("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Z2=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return _e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:a*2,":hover":{color:r?o.neutral80:o.neutral40}})},C8=Z2,E8=function(t){var n=t.children,r=t.innerProps;return Ie("div",De({},St(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Ie(K2,null))},S8=Z2,w8=function(t){var n=t.children,r=t.innerProps;return Ie("div",De({},St(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Ie(Wg,null))},I8=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,o=i.colors;return _e({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:a*2,marginTop:a*2})},_8=function(t){var n=t.innerProps;return Ie("span",De({},n,St(t,"indicatorSeparator",{"indicator-separator":!0})))},D8=A7(fv||(fv=F7([`
|
|
106
106
|
0%, 80%, 100% { opacity: 0; }
|
|
107
107
|
40% { opacity: 1; }
|
|
108
|
-
`]))),T8=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},Df=function(t){var n=t.delay,r=t.offset;return Ie("span",{css:Gg({animation:"".concat(D8," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},A8=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=yi(t,b8);return Ie("div",De({},St(_e(_e({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Ie(Df,{delay:0,offset:r}),Ie(Df,{delay:160,offset:!0}),Ie(Df,{delay:320,offset:!r}))},R8=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},B8=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return Ie("div",De({ref:a},St(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},k8=B8,P8=["data"],$8=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},F8=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,p=t.selectProps;return Ie("div",De({},St(t,"group",{group:!0}),l),Ie(o,De({},s,{selectProps:p,theme:c,getStyles:i,getClassNames:a,cx:r}),u),Ie("div",null,n))},N8=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return _e({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},M8=function(t){var n=j2(t);n.data;var r=yi(n,P8);return Ie("div",De({},St(t,"groupHeading",{"group-heading":!0}),r))},O8=F8,L8=["innerRef","isDisabled","isHidden","inputClassName"],V8=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return _e(_e({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},H8),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},q2={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},H8={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},q2)},j8=function(t){return _e({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},q2)},z8=function(t){var n=t.cx,r=t.value,i=j2(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=yi(i,L8);return Ie("div",De({},St(t,"input",{"input-container":!0}),{"data-value":r||""}),Ie("input",De({className:n({input:!0},l),ref:a,style:j8(s),disabled:o},u)))},G8=z8,W8=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return _e({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},U8=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},X8=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return _e({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},J2=function(t){var n=t.children,r=t.innerProps;return Ie("div",r,n)},Y8=J2,K8=J2;function Z8(e){var t=e.children,n=e.innerProps;return Ie("div",De({role:"button"},n),t||Ie(Wg,{size:14}))}var q8=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,p=r.Remove;return Ie(u,{data:i,innerProps:_e(_e({},St(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},Ie(c,{data:i,innerProps:_e({},St(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),Ie(p,{data:i,innerProps:_e(_e({},St(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},J8=q8,Q8=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},eP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return Ie("div",De({},St(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},tP=eP,nP=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},rP=function(t){var n=t.children,r=t.innerProps;return Ie("div",De({},St(t,"placeholder",{placeholder:!0}),r),n)},iP=rP,aP=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},oP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return Ie("div",De({},St(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},sP=oP,Q2={ClearIndicator:w8,Control:k8,DropdownIndicator:E8,DownChevron:K2,CrossIcon:Wg,Group:O8,GroupHeading:M8,IndicatorsContainer:m8,IndicatorSeparator:_8,Input:G8,LoadingIndicator:A8,Menu:n8,MenuList:i8,MenuPortal:c8,LoadingMessage:l8,NoOptionsMessage:s8,MultiValue:J8,MultiValueContainer:Y8,MultiValueLabel:K8,MultiValueRemove:Z8,Option:tP,Placeholder:iP,SelectContainer:f8,SingleValue:sP,ValueContainer:g8},lP=function(t){return _e(_e({},Q2),t.components)},hv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function uP(e,t){return!!(e===t||hv(e)&&hv(t))}function cP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!uP(e[n],t[n]))return!1;return!0}function dP(e,t){t===void 0&&(t=cP);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function fP(){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)."}var hP=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fP},gP=function(t){return Ie("span",De({css:hP},t))},gv=gP,pP={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,p=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(p(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",d="".concat(u?" selected":"").concat(h);return"".concat(o).concat(d,", ").concat(p(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},mP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,p=l.ariaLiveMessages,h=l.getOptionLabel,d=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,f=l.menuIsOpen,y=l.options,C=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],x=l["aria-live"],g=N.useMemo(function(){return _e(_e({},pP),p||{})},[p]),I=N.useMemo(function(){var $="";if(n&&g.onChange){var k=n.option,O=n.options,M=n.removedValue,G=n.removedValues,W=n.value,U=function(re){return Array.isArray(re)?null:re},J=M||k||U(W),Q=J?h(J):"",Z=O||G||void 0,ee=Z?Z.map(h):[],q=_e({isDisabled:J&&m(J,s),label:Q,labels:ee},n);$=g.onChange(q)}return $},[n,g,m,s,h]),T=N.useMemo(function(){var $="",k=r||i,O=!!(r&&s&&s.includes(r));if(k&&g.onFocus){var M={focused:k,label:h(k),isDisabled:m(k,s),isSelected:O,options:a,context:k===r?"menu":"value",selectValue:s,isAppleDevice:c};$=g.onFocus(M)}return $},[r,i,h,m,g,a,s,c]),_=N.useMemo(function(){var $="";if(f&&y.length&&!w&&g.onFilter){var k=C({count:a.length});$=g.onFilter({inputValue:d,resultsMessage:k})}return $},[a,d,f,g,y,C,w]),A=(n==null?void 0:n.action)==="initial-input-focus",F=N.useMemo(function(){var $="";if(g.guidance){var k=i?"value":f?"menu":"input";$=g.guidance({"aria-label":E,context:k,isDisabled:r&&m(r,s),isMulti:v,isSearchable:b,tabSelectsValue:S,isInitialFocus:A})}return $},[E,r,i,v,m,b,f,g,s,S,A]),B=Ie(N.Fragment,null,Ie("span",{id:"aria-selection"},I),Ie("span",{id:"aria-focused"},T),Ie("span",{id:"aria-results"},_),Ie("span",{id:"aria-guidance"},F));return Ie(N.Fragment,null,Ie(gv,{id:u},A&&B),Ie(gv,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&B))},vP=mP,n0=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bP=new RegExp("["+n0.map(function(e){return e.letters}).join("")+"]","g"),e4={};for(var Tf=0;Tf<n0.length;Tf++)for(var Af=n0[Tf],Rf=0;Rf<Af.letters.length;Rf++)e4[Af.letters[Rf]]=Af.base;var t4=function(t){return t.replace(bP,function(n){return e4[n]})},yP=dP(t4),pv=function(t){return t.replace(/^\s+|\s+$/g,"")},xP=function(t){return"".concat(t.label," ").concat(t.value)},CP=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=_e({ignoreCase:!0,ignoreAccents:!0,stringify:xP,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?pv(r):r,p=l?pv(s(n)):s(n);return a&&(c=c.toLowerCase(),p=p.toLowerCase()),o&&(c=yP(c),p=t4(p)),u==="start"?p.substr(0,c.length)===c:p.indexOf(c)>-1}},EP=["innerRef"];function SP(e){var t=e.innerRef,n=yi(e,EP),r=Y7(n,"onExited","in","enter","exit","appear");return Ie("input",De({ref:t},r,{css:Gg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var wP=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function IP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=N.useRef(!1),s=N.useRef(!1),l=N.useRef(0),u=N.useRef(null),c=N.useCallback(function(b,f){if(u.current!==null){var y=u.current,C=y.scrollTop,S=y.scrollHeight,w=y.clientHeight,E=u.current,x=f>0,g=S-w-C,I=!1;g>f&&o.current&&(r&&r(b),o.current=!1),x&&s.current&&(a&&a(b),s.current=!1),x&&f>g?(n&&!o.current&&n(b),E.scrollTop=S,I=!0,o.current=!0):!x&&-f>C&&(i&&!s.current&&i(b),E.scrollTop=0,I=!0,s.current=!0),I&&wP(b)}},[n,r,i,a]),p=N.useCallback(function(b){c(b,b.deltaY)},[c]),h=N.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),d=N.useCallback(function(b){var f=l.current-b.changedTouches[0].clientY;c(b,f)},[c]),v=N.useCallback(function(b){if(b){var f=W7?{passive:!1}:!1;b.addEventListener("wheel",p,f),b.addEventListener("touchstart",h,f),b.addEventListener("touchmove",d,f)}},[d,h,p]),m=N.useCallback(function(b){b&&(b.removeEventListener("wheel",p,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",d,!1))},[d,h,p]);return N.useEffect(function(){if(t){var b=u.current;return v(b),function(){m(b)}}},[t,v,m]),function(b){u.current=b}}var mv=["boxSizing","height","overflow","paddingRight","position"],vv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bv(e){e.cancelable&&e.preventDefault()}function yv(e){e.stopPropagation()}function xv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ev=!!(typeof window<"u"&&window.document&&window.document.createElement),Xo=0,Ka={capture:!1,passive:!1};function _P(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=N.useRef({}),a=N.useRef(null),o=N.useCallback(function(l){if(Ev){var u=document.body,c=u&&u.style;if(r&&mv.forEach(function(v){var m=c&&c[v];i.current[v]=m}),r&&Xo<1){var p=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,d=window.innerWidth-h+p||0;Object.keys(vv).forEach(function(v){var m=vv[v];c&&(c[v]=m)}),c&&(c.paddingRight="".concat(d,"px"))}u&&Cv()&&(u.addEventListener("touchmove",bv,Ka),l&&(l.addEventListener("touchstart",xv,Ka),l.addEventListener("touchmove",yv,Ka))),Xo+=1}},[r]),s=N.useCallback(function(l){if(Ev){var u=document.body,c=u&&u.style;Xo=Math.max(Xo-1,0),r&&Xo<1&&mv.forEach(function(p){var h=i.current[p];c&&(c[p]=h)}),u&&Cv()&&(u.removeEventListener("touchmove",bv,Ka),l&&(l.removeEventListener("touchstart",xv,Ka),l.removeEventListener("touchmove",yv,Ka)))}},[r]);return N.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function DP(){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)."}var TP=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},AP=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:DP};function RP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=IP({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=_P({isEnabled:n}),p=function(d){u(d),c(d)};return Ie(N.Fragment,null,n&&Ie("div",{onClick:TP,css:AP}),t(p))}function BP(){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)."}var kP=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:BP},PP=function(t){var n=t.name,r=t.onFocus;return Ie("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:kP,value:"",onChange:function(){}})},$P=PP;function Ug(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function FP(){return Ug(/^iPhone/i)}function n4(){return Ug(/^Mac/i)}function NP(){return Ug(/^iPad/i)||n4()&&navigator.maxTouchPoints>1}function MP(){return FP()||NP()}function OP(){return n4()||MP()}var LP=function(t){return t.label},VP=function(t){return t.label},HP=function(t){return t.value},jP=function(t){return!!t.isDisabled},zP={clearIndicator:S8,container:d8,control:R8,dropdownIndicator:C8,group:$8,groupHeading:N8,indicatorsContainer:p8,indicatorSeparator:I8,input:V8,loadingIndicator:T8,loadingMessage:o8,menu:Q7,menuList:r8,menuPortal:u8,multiValue:W8,multiValueLabel:U8,multiValueRemove:X8,noOptionsMessage:a8,option:Q8,placeholder:nP,singleValue:aP,valueContainer:h8},GP={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},WP=4,r4=4,UP=38,XP=r4*2,YP={baseUnit:r4,controlHeight:UP,menuGutter:XP},Bf={borderRadius:WP,colors:GP,spacing:YP},KP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:dv(),captureMenuScroll:!dv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:CP(),formatGroupLabel:LP,getOptionLabel:VP,getOptionValue:HP,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:jP,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!z7(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Sv(e,t,n,r){var i=o4(e,t,n),a=s4(e,t,n),o=a4(e,t),s=oc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Iu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return Sv(e,o,t,s)}).filter(function(o){return Iv(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Sv(e,n,t,r);return Iv(e,a)?a:void 0}).filter(U7)}function i4(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,kg(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function wv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,kg(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function ZP(e,t){return i4(Iu(e,t))}function Iv(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!u4(e)||!a)&&l4(e,{label:o,value:s,data:i},r)}function qP(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function JP(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var kf=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},a4=function(t,n){return t.getOptionLabel(n)},oc=function(t,n){return t.getOptionValue(n)};function o4(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function s4(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=oc(e,t);return n.some(function(i){return oc(e,i)===r})}function l4(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var u4=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},QP=1,c4=function(e){vk(n,e);var t=xk(n);function n(r){var i;if(pk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,p=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),p(l,u)},i.setValue=function(l,u,c){var p=i.props,h=p.closeMenuOnSelect,d=p.isMulti,v=p.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),h&&(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,p=u.isMulti,h=u.name,d=i.state.selectValue,v=p&&i.isOptionSelected(l,d),m=i.isOptionDisabled(l,d);if(v){var b=i.getOptionValue(l);i.setValue(d.filter(function(f){return i.getOptionValue(f)!==b}),"deselect-option",l)}else if(!m)p?i.setValue([].concat(kg(d),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,p=i.getOptionValue(l),h=c.filter(function(v){return i.getOptionValue(v)!==p}),d=Wl(u,h,h[0]||null);i.onChange(d,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],p=u.slice(0,u.length-1),h=Wl(l,p,p[0]||null);c&&i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return kf(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return wv(Iu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return O7.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return a4(i.props,l)},i.getOptionValue=function(l){return oc(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,p=zP[l](u,c);p.boxSizing="border-box";var h=i.props.styles[l];return h?h(p,u):p},i.getClassNames=function(l,u){var c,p;return(c=(p=i.props.classNames)[l])===null||c===void 0?void 0:c.call(p,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return lP(i.props)},i.buildCategorizedOptions=function(){return Iu(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return i4(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:_e({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,p=u.menuIsOpen;i.focusInput(),p?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&ed(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var p=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),d=5;i.userIsDragging=p>d||h>d}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return u4(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,p=u.backspaceRemovesValue,h=u.escapeClearsValue,d=u.inputValue,v=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,f=u.onKeyDown,y=u.tabSelectsValue,C=u.openMenuOnFocus,S=i.state,w=S.focusedOption,E=S.focusedValue,x=S.selectValue;if(!m&&!(typeof f=="function"&&(f(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||d)return;i.focusValue("previous");break;case"ArrowRight":if(!c||d)return;i.focusValue("next");break;case"Delete":case"Backspace":if(d)return;if(E)i.removeValue(E);else{if(!p)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!y||!w||C&&i.isOptionSelected(w,x))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(b){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:d}),i.onMenuClose()):v&&h&&i.clearValue();break;case" ":if(d)return;if(!b){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++QP),i.state.selectValue=uv(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=kf(a,o[s])}return i}return mk(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&cv(this.menuListRef,this.focusedOptionRef),OP()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(cv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(s[0]);p>-1&&(c=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bf):_e(_e({},Bf),this.props.theme):Bf}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,p=this.props,h=p.isMulti,d=p.isRtl,v=p.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:d,options:v,selectOption:u,selectProps:p,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return o4(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return s4(this.props,i,a)}},{key:"filterOption",value:function(i,a){return l4(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,p=i.menuIsOpen,h=i.required,d=this.getComponents(),v=d.Input,m=this.state,b=m.inputIsHidden,f=m.ariaSelection,y=this.commonProps,C=s||this.getElementId("input"),S=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(f==null?void 0:f.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?ae.createElement(v,De({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):ae.createElement(SP,De({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ic,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,p=a.Placeholder,h=this.commonProps,d=this.props,v=d.controlShouldRenderValue,m=d.isDisabled,b=d.isMulti,f=d.inputValue,y=d.placeholder,C=this.state,S=C.selectValue,w=C.focusedValue,E=C.isFocused;if(!this.hasValue()||!v)return f?null:ae.createElement(p,De({},h,{key:"placeholder",isDisabled:m,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return S.map(function(g,I){var T=g===w,_="".concat(i.getOptionLabel(g),"-").concat(i.getOptionValue(g));return ae.createElement(o,De({},h,{components:{Container:s,Label:l,Remove:u},isFocused:T,isDisabled:m,key:_,index:I,removeProps:{onClick:function(){return i.removeValue(g)},onTouchEnd:function(){return i.removeValue(g)},onMouseDown:function(F){F.preventDefault()}},data:g}),i.formatOptionLabel(g,"value"))});if(f)return null;var x=S[0];return ae.createElement(c,De({},h,{data:x,isDisabled:m}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:p,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var p={"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:p,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return ae.createElement(o,De({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,p=a.LoadingMessage,h=a.NoOptionsMessage,d=a.Option,v=this.commonProps,m=this.state.focusedOption,b=this.props,f=b.captureMenuScroll,y=b.inputValue,C=b.isLoading,S=b.loadingMessage,w=b.minMenuHeight,E=b.maxMenuHeight,x=b.menuIsOpen,g=b.menuPlacement,I=b.menuPosition,T=b.menuPortalTarget,_=b.menuShouldBlockScroll,A=b.menuShouldScrollIntoView,F=b.noOptionsMessage,B=b.onMenuScrollToTop,$=b.onMenuScrollToBottom;if(!x)return null;var k=function(Q,Z){var ee=Q.type,q=Q.data,le=Q.isDisabled,re=Q.isSelected,R=Q.label,H=Q.value,V=m===q,D=le?void 0:function(){return i.onOptionHover(q)},L=le?void 0:function(){return i.selectOption(q)},K="".concat(i.getElementId("option"),"-").concat(Z),X={id:K,onClick:L,onMouseMove:D,onMouseOver:D,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:re};return ae.createElement(d,De({},v,{innerProps:X,data:q,isDisabled:le,isSelected:re,key:K,label:R,type:ee,value:H,isFocused:V,innerRef:V?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Q.data,"menu"))},O;if(this.hasOptions())O=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var Q=J.data,Z=J.options,ee=J.index,q="".concat(i.getElementId("group"),"-").concat(ee),le="".concat(q,"-heading");return ae.createElement(o,De({},v,{key:q,data:Q,options:Z,Heading:s,headingProps:{id:le,data:J.data},label:i.formatGroupLabel(J.data)}),J.options.map(function(re){return k(re,"".concat(ee,"-").concat(re.index))}))}else if(J.type==="option")return k(J,"".concat(J.index))});else if(C){var M=S({inputValue:y});if(M===null)return null;O=ae.createElement(p,v,M)}else{var G=F({inputValue:y});if(G===null)return null;O=ae.createElement(h,v,G)}var W={minMenuHeight:w,maxMenuHeight:E,menuPlacement:g,menuPosition:I,menuShouldScrollIntoView:A},U=ae.createElement(e8,De({},v,W),function(J){var Q=J.ref,Z=J.placerProps,ee=Z.placement,q=Z.maxHeight;return ae.createElement(l,De({},v,W,{innerRef:Q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:C,placement:ee}),ae.createElement(RP,{captureEnabled:f,onTopArrive:B,onBottomArrive:$,lockEnabled:_},function(le){return ae.createElement(u,De({},v,{innerRef:function(R){i.getMenuListRef(R),le(R)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:i.getElementId("listbox")},isLoading:C,maxHeight:q,focusedOption:m}),O)}))});return T||I==="fixed"?ae.createElement(c,De({},v,{appendTo:T,controlElement:this.controlRef,menuPlacement:g,menuPosition:I}),U):U}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,p=this.state.selectValue;if(c&&!this.hasValue()&&!s)return ae.createElement($P,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=p.map(function(m){return i.getOptionValue(m)}).join(o);return ae.createElement("input",{name:u,type:"hidden",value:h})}else{var d=p.length>0?p.map(function(m,b){return ae.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):ae.createElement("input",{name:u,type:"hidden",value:""});return ae.createElement("div",null,d)}else{var v=p[0]?this.getOptionValue(p[0]):"";return ae.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,p=this.getFocusableOptions();return ae.createElement(vP,De({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,p=u.id,h=u.isDisabled,d=u.menuIsOpen,v=this.state.isFocused,m=this.commonProps=this.getCommonProps();return ae.createElement(s,De({},m,{className:c,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:v}),this.renderLiveRegion(),ae.createElement(a,De({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:v,menuIsOpen:d}),ae.createElement(l,De({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),ae.createElement(o,De({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,p=a.prevWasFocused,h=a.instancePrefix,d=i.options,v=i.value,m=i.menuIsOpen,b=i.inputValue,f=i.isMulti,y=uv(v),C={};if(o&&(v!==o.value||d!==o.options||m!==o.menuIsOpen||b!==o.inputValue)){var S=m?ZP(i,y):[],w=m?wv(Iu(i,y),"".concat(h,"-option")):[],E=s?qP(a,y):null,x=JP(a,S),g=kf(w,x);C={selectValue:y,focusedOption:x,focusedOptionId:g,focusableOptionsWithIds:w,focusedValue:E,clearFocusValueOnUpdate:!1}}var I=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},T=u,_=c&&p;return c&&!_&&(T={value:Wl(f,y,y[0]||null),options:y,action:"initial-input-focus"},_=!p),(u==null?void 0:u.action)==="initial-input-focus"&&(T=null),_e(_e(_e({},C),I),{},{prevProps:i,ariaSelection:T,prevWasFocused:_})}}]),n}(N.Component);c4.defaultProps=KP;var e$=N.forwardRef(function(e,t){var n=gk(e);return ae.createElement(c4,De({ref:t},n))}),t$=e$;const n$="_container_brgpz_97",Pf={container:n$,"error-payhere":"_error-payhere_brgpz_97","error-laba":"_error-laba_brgpz_271"},r$={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},i$={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},a$={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0})},d4=N.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:p=!1,defaultValueButtonDropdown:h={},autoClose:d=!0,onMenuOpen:v=()=>{},autoCloseOutside:m=!0,styleInnerPopper:b={},onMenuClose:f=()=>{},zIndexPopper:y=0,id:C="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:w,flipOptions:E,autoPlacementOptions:x,withSearch:g=!1,floatingOptions:I={},offsetPopover:T=5,selectProps:_={},errorLabel:A="payhere",controlType:F="payhere",actionValueChange:B=()=>{},...$}=e,k={error:{laba:Pf["error-laba"],payhere:Pf["error-payhere"]}},O=N.useRef(null),M=N.useRef(null),[G,W]=N.useState(""),[U,J]=N.useState(!1),[Q,Z]=N.useState({}),[ee,q]=N.useState(0),le=L=>{var K;(K=M.current)==null||K.setShow(L),J(L)},re=()=>{if(p)return e.isMulti?h:[h]},R=L=>{var K;(K=M.current)==null||K.handlerShow(L),q(O.current.offsetWidth),J(X=>!X)},H=()=>{var L;m&&((L=M.current)==null||L.setShow(!1))},V=(L,K)=>{var X;d&&(J(!1),(X=M.current)==null||X.setShow(!1)),typeof c=="function"&&c(L,K),p||Z(L)},D=()=>{O.current&&q(O.current.offsetWidth)};return Gi(()=>{p&&Z(h),B(h)},[p,h]),N.useEffect(()=>{U?v():U||(f(),W(""))},[U]),N.useImperativeHandle(t,()=>({selectValue:Q,setSelectValue:Z,handlerClose:H,handlerShow:R,show:U,setShow:le}),[U,$s(Q)]),N.useEffect(()=>(window.addEventListener("resize",D),window.addEventListener("load",D),()=>{window.removeEventListener("resize",D),window.removeEventListener("load",D)}),[O]),P.jsxs("div",{id:C,className:`${Pf.container} ${a} ${U?`${o} open-popover`:null}`,ref:O,children:[r({selectValue:Q,setSelectValue:Z,handlerClose:H,handlerShow:R,show:U,setShow:le}),P.jsx(bi,{ref:M,offset:T,useAutoPlacement:w,flipOptions:E,autoPlacementOptions:x,zIndex:y,styleInnerPopover:b,id:S,width:typeof n=="function"?n(ee,Q):n||ee,className:s,floatingOptions:I,children:P.jsx(t$,{className:"1ru-w-full",defaultValue:re(),inputValue:G,onInputChange:(L,{action:K})=>{K==="input-change"&&W(L)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:g?F==="laba"?r$:i$:a$,noOptionsMessage:()=>"Tidak ada data.",onChange:V,selectProps:{..._,setShowDropdown:le},...$})}),P.jsx("div",{className:`${k.error[A]} ${l}`,children:u})]})});d4.displayName="SelectDropdownContainer";function po(e,t){return e-t*Math.floor(e/t)}const f4=1721426;function ma(e,t,n,r){t=ml(e,t);let i=t-1,a=-2;return n<=2?a=0:Li(t)&&(a=-1),f4-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Li(e){return e%4===0&&(e%100!==0||e%400===0)}function ml(e,t){return e==="BC"?1-t:t}function td(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const o$={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class zn{fromJulianDay(t){let n=t,r=n-f4,i=Math.floor(r/146097),a=po(r,146097),o=Math.floor(a/36524),s=po(a,36524),l=Math.floor(s/1461),u=po(s,1461),c=Math.floor(u/365),p=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,d]=td(p),v=n-ma(h,d,1,1),m=2;n<ma(h,d,3,1)?m=0:Li(d)&&(m=1);let b=Math.floor(((v+m)*12+373)/367),f=n-ma(h,d,b,1)+1;return new wt(h,d,b,f)}toJulianDay(t){return ma(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return o$[Li(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Li(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const s$={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function It(e,t){return t=tn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function r0(e,t){return Xg(e.calendar,t.calendar)&&It(e,t)}function Xg(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function l$(e,t){return It(e,Yg(t))}const u$={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function nd(e,t,n){let r=e.calendar.toJulianDay(e),i=n?u$[n]:g$(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function c$(e){return oi(Date.now(),e)}function Yg(e){return Hn(c$(e))}function h4(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function g4(e,t){return _v(e)-_v(t)}function _v(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let $f=null;function Ta(){return $f==null&&($f=new Intl.DateTimeFormat().resolvedOptions().timeZone),$f}function vl(e){return e.subtract({days:e.day-1})}function i0(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function d$(e){return vl(e.subtract({months:e.month-1}))}function Ls(e,t,n){let r=nd(e,t,n);return e.subtract({days:r})}function f$(e,t,n){return Ls(e,t,n).add({days:6})}const Dv=new Map;function h$(e){if(Intl.Locale){let n=Dv.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Dv.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g$(e){let t=h$(e);return t&&s$[t]||0}function Kg(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((nd(vl(e),t,n)+r)/7)}function Zg(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function qg(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function To(e){e=tn(e,new zn);let t=ml(e.era,e.year);return p4(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function p4(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function a0(e,t){if(t==="UTC")return 0;if(e>0&&t===Ta())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=m4(e,t);return p4(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const Tv=new Map;function m4(e,t){let n=Tv.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Tv.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Av=864e5;function p$(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>m$(e,t,a))}function m$(e,t,n){let r=m4(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function ri(e,t,n="compatible"){let r=Xi(e);if(t==="UTC")return To(r);if(t===Ta()&&n==="compatible"){r=tn(r,new zn);let l=new Date,u=ml(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=To(r),a=a0(i-Av,t),o=a0(i+Av,t),s=p$(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function v4(e,t,n="compatible"){return new Date(ri(e,t,n))}function oi(e,t){let n=a0(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Hs(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,u,c)}function Hn(e){return new wt(e.calendar,e.era,e.year,e.month,e.day)}function Xi(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new sc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function tn(e,t){if(Xg(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Aa(r),r}function v$(e,t,n){if(e instanceof Hs)return e.timeZone===t?e:y$(e,t);let r=ri(e,t,n);return oi(r,t)}function b$(e){let t=To(e)-e.offset;return new Date(t)}function y$(e,t){let n=To(e)-e.offset;return tn(oi(n,t),e.calendar)}const Yo=36e5;function rd(e,t){let n=e.copy(),r="hour"in n?C4(n,t):0;o0(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s0(n),b4(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,x$(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o0(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function s0(e){for(;e.month<1;)o0(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o0(e,1)}function x$(e){for(;e.day<1;)e.month--,s0(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s0(e)}function b4(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Aa(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),b4(e)}function Jg(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function y4(e,t){return rd(e,Jg(t))}function Qg(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Aa(n),n}function Vs(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),x4(n),n}function C$(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ul(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ul(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ul(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ul(e.hour,24),t}function x4(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ul(e,t){let n=e%t;return n<0&&(n+=t),n}function C4(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,C$(e)}function E4(e,t){let n=e.copy();return C4(n,t),n}function E$(e,t){return E4(e,Jg(t))}function ep(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=si(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Aa(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=si(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=si(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=si(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Aa(i),i}function tp(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=si(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=si(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=si(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=si(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function si(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function S4(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=rd(Xi(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ri(i,e.timeZone)}else n=To(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=oi(n,e.timeZone);return tn(r,e.calendar)}function S$(e,t){return S4(e,Jg(t))}function w$(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,a=v?23:11}let o=Xi(e),s=tn(Vs(o,{hour:i}),new zn),l=[ri(s,e.timeZone,"earlier"),ri(s,e.timeZone,"later")].filter(v=>oi(v,e.timeZone).day===s.day)[0],u=tn(Vs(o,{hour:a}),new zn),c=[ri(u,e.timeZone,"earlier"),ri(u,e.timeZone,"later")].filter(v=>oi(v,e.timeZone).day===u.day).pop(),p=To(e)-e.offset,h=Math.floor(p/Yo),d=p%Yo;return p=si(h,n,Math.floor(l/Yo),Math.floor(c/Yo),r==null?void 0:r.round)*Yo+d,tn(oi(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return tp(e,t,n,r);case"era":case"year":case"month":case"day":{let i=ep(Xi(e),t,n,r),a=ri(i,e.timeZone);return tn(oi(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function I$(e,t,n){let r=Xi(e),i=Vs(Qg(r,t),t);if(i.compare(r)===0)return e;let a=ri(i,e.timeZone,n);return tn(oi(a,e.timeZone),e.calendar)}const _$=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function np(e){let t=e.match(_$);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new wt(Ff(t[1],0,9999),Ff(t[2],1,12),1);return n.day=Ff(t[3],1,n.calendar.getDaysInMonth(n)),n}function Ff(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function w4(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function I4(e){let t=tn(e,new zn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function _4(e){return`${I4(e)}T${w4(e)}`}function D$(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function T$(e){return`${_4(e)}${D$(e.offset)}[${e.timeZone}]`}function A$(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bl(e,t,n){A$(e,t),t.set(e,n)}function rp(e){let t=typeof e[0]=="object"?e.shift():new zn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var R$=new WeakMap;class wt{copy(){return this.era?new wt(this.calendar,this.era,this.year,this.month,this.day):new wt(this.calendar,this.year,this.month,this.day)}add(t){return rd(this,t)}subtract(t){return y4(this,t)}set(t){return Qg(this,t)}cycle(t,n,r){return ep(this,t,n,r)}toDate(t){return v4(this,t)}toString(){return I4(this)}compare(t){return h4(this,t)}constructor(...t){bl(this,R$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Aa(this)}}var B$=new WeakMap;class ip{copy(){return new ip(this.hour,this.minute,this.second,this.millisecond)}add(t){return E4(this,t)}subtract(t){return E$(this,t)}set(t){return Vs(this,t)}cycle(t,n,r){return tp(this,t,n,r)}toString(){return w4(this)}compare(t){return g4(this,t)}constructor(t=0,n=0,r=0,i=0){bl(this,B$,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,x4(this)}}var k$=new WeakMap;class sc{copy(){return this.era?new sc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new sc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return rd(this,t)}subtract(t){return y4(this,t)}set(t){return Qg(Vs(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return ep(this,t,n,r);default:return tp(this,t,n,r)}}toDate(t,n){return v4(this,t,n)}toString(){return _4(this)}compare(t){let n=h4(this,t);return n===0?g4(this,Xi(t)):n}constructor(...t){bl(this,k$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Aa(this)}}var P$=new WeakMap;class Hs{copy(){return this.era?new Hs(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Hs(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return S4(this,t)}subtract(t){return S$(this,t)}set(t,n){return I$(this,t,n)}cycle(t,n,r){return w$(this,t,n,r)}toDate(){return b$(this)}toString(){return T$(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-v$(t,this.timeZone).toDate().getTime()}constructor(...t){bl(this,P$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Aa(this)}}const mo=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],$$=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_u=[1867,1911,1925,1988,2018],ki=["meiji","taisho","showa","heisei","reiwa"];function Rv(e){const t=mo.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?mo.length-1:t===0?0:t-1}function Nf(e){let t=_u[ki.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new wt(e.year+t,e.month,e.day)}class F$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Rv(n);return new wt(this,ki[r],n.year-_u[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Nf(t))}balanceDate(t){let n=Nf(t),r=Rv(n);ki[r]!==t.era&&(t.era=ki[r],t.year=n.year-_u[r]),this.constrainDate(t)}constrainDate(t){let n=ki.indexOf(t.era),r=$$[n];if(r!=null){let[i,a,o]=r,s=i-_u[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=mo[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ki}getYearsInEra(t){let n=ki.indexOf(t.era),r=mo[n],i=mo[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Nf(t))}getMinimumMonthInYear(t){let n=Bv(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Bv(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Bv(e){if(e.year===1){let t=ki.indexOf(e.era);return mo[t]}}const D4=-543;class N$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ml(n.era,n.year);return new wt(this,r-D4,n.month,n.day)}toJulianDay(t){return super.toJulianDay(kv(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(kv(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function kv(e){let[t,n]=td(e.year+D4);return new wt(t,n,e.month,e.day)}const lc=1911;function T4(e){return e.era==="minguo"?e.year+lc:1-e.year+lc}function Pv(e){let t=e-lc;return t>0?["minguo",t]:["before_minguo",1-t]}class M$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ml(n.era,n.year),[i,a]=Pv(r);return new wt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay($v(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Pv(T4(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth($v(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-lc}constructor(...t){super(...t),this.identifier="roc"}}function $v(e){let[t,n]=td(T4(e));return new wt(t,n,e.month,e.day)}const Fv=1948320,Nv=[0,31,62,93,124,155,186,216,246,276,306,336];class O${fromJulianDay(t){let n=t-Fv,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-Nv[o]+1;return new wt(this,r,o+1,s)}toJulianDay(t){let n=Fv-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Nv[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||po(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Mf=78,Mv=80;class L$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Mf,i=t-ma(n.era,n.year,1,1),a;i<Mv?(r--,a=Li(n.year-1)?31:30,i+=a+155+90+10):(a=Li(n.year)?31:30,i-=Mv);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new wt(this,r,o,s)}toJulianDay(t){let n=t.year+Mf,[r,i]=td(n),a,o;return Li(i)?(a=31,o=ma(r,i,3,21)):(a=30,o=ma(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Li(t.year+Mf)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const uc=1948440,Ov=1948439,Jn=1300,Za=1600,V$=460322;function cc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function A4(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+cc(t,r,1,1)))/29.5)+1),a=n-cc(t,r,i,1)+1;return new wt(e,r,i,a)}function Lv(e){return(14+11*e)%30<11}class ap{fromJulianDay(t){return A4(this,uc,t)}toJulianDay(t){return cc(uc,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Lv(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Lv(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class H$ extends ap{fromJulianDay(t){return A4(this,Ov,t)}toJulianDay(t){return cc(Ov,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const j$="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let l0,vo;function Du(e){return V$+vo[e-Jn]}function as(e,t){let n=e-Jn,r=1<<11-(t-1);return(l0[n]&r)===0?29:30}function Vv(e,t){let n=Du(e);for(let r=1;r<t;r++)n+=as(e,r);return n}function Hv(e){return vo[e+1-Jn]-vo[e-Jn]}class z$ extends ap{fromJulianDay(t){let n=t-uc,r=Du(Jn),i=Du(Za);if(n<r||n>i)return super.fromJulianDay(t);{let a=Jn-1,o=1,s=1;for(;s>0;){a++,s=n-Du(a)+1;let l=Hv(a);if(s===l){o=12;break}else if(s<l){let u=as(a,o);for(o=1;s>u;)s-=u,o++,u=as(a,o);break}}return new wt(this,a,o,n-Vv(a,o)+1)}}toJulianDay(t){return t.year<Jn||t.year>Za?super.toJulianDay(t):uc+Vv(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Jn||t.year>Za?super.getDaysInMonth(t):as(t.year,t.month)}getDaysInYear(t){return t.year<Jn||t.year>Za?super.getDaysInYear(t):Hv(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",l0||(l0=new Uint16Array(Uint8Array.from(atob(j$),t=>t.charCodeAt(0)).buffer)),!vo){vo=new Uint32Array(Za-Jn+1);let t=0;for(let n=Jn;n<=Za;n++){vo[n-Jn]=t;for(let r=1;r<=12;r++)t+=as(n,r)}}}}const jv=347997,R4=1080,B4=24*R4,G$=29,W$=12*R4+793,U$=G$*B4+W$;function fa(e){return po(e*7+1,19)<7}function Tu(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return po(3*(r+1),7)<3&&(r+=1),r}function X$(e){let t=Tu(e-1),n=Tu(e);return Tu(e+1)-n===356?2:n-t===382?1:0}function ms(e){return Tu(e)+X$(e)}function k4(e){return ms(e+1)-ms(e)}function Y$(e){let t=k4(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Xl(e,t){if(t>=6&&!fa(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Y$(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?fa(e)?30:0:30}class K${fromJulianDay(t){let n=t-jv,r=n*B4/U$,i=Math.floor((19*r+234)/235)+1,a=ms(i),o=Math.floor(n-a);for(;o<1;)i--,a=ms(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Xl(i,s),s++;s--,l-=Xl(i,s);let u=o-l;return new wt(this,i,s,u)}toJulianDay(t){let n=ms(t.year);for(let r=1;r<t.month;r++)n+=Xl(t.year,r);return n+t.day+jv}getDaysInMonth(t){return Xl(t.year,t.month)}getMonthsInYear(t){return fa(t.year)?13:12}getDaysInYear(t){return k4(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(fa(n.year)&&!fa(t.year)&&n.month>6?t.month--:!fa(n.year)&&fa(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const u0=1723856,zv=1824665,c0=5500;function dc(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function op(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-dc(e,n,1,1))/30),i=t+1-dc(e,n,r,1);return[n,r,i]}function P4(e){return Math.floor(e%4/3)}function $4(e,t){return t%13!==0?30:P4(e)+5}class sp{fromJulianDay(t){let[n,r,i]=op(u0,t),a="AM";return n<=0&&(a="AA",n+=c0),new wt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=c0),dc(u0,n,t.month,t.day)}getDaysInMonth(t){return $4(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+P4(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Z$ extends sp{fromJulianDay(t){let[n,r,i]=op(u0,t);return n+=c0,new wt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class q$ extends sp{fromJulianDay(t){let[n,r,i]=op(zv,t),a="CE";return n<=0&&(a="BCE",n=1-n),new wt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),dc(zv,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),$4(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function yl(e){switch(e){case"buddhist":return new N$;case"ethiopic":return new sp;case"ethioaa":return new Z$;case"coptic":return new q$;case"hebrew":return new K$;case"indian":return new L$;case"islamic-civil":return new ap;case"islamic-tbla":return new H$;case"islamic-umalqura":return new z$;case"japanese":return new F$;case"persian":return new O$;case"roc":return new M$;case"gregory":default:return new zn}}let Of=new Map;class bo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return eF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=tF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=F4(t,n),this.options=n}}const J$={true:{ja:"h11"},false:{}};function F4(e,t={}){if(typeof t.hour12=="boolean"&&Q$()){t={...t};let i=J$[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Of.has(n))return Of.get(n);let r=new Intl.DateTimeFormat(e,t);return Of.set(n,r),r}let Lf=null;function Q$(){return Lf==null&&(Lf=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Lf}let Vf=null;function eF(){return Vf==null&&(Vf=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Vf}function tF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=F4(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const La=typeof document<"u"?N.useLayoutEffect:()=>{};var Hf;const nF=(Hf=N.useInsertionEffect)!==null&&Hf!==void 0?Hf:La;function dr(e){const t=N.useRef(null);return nF(()=>{t.current=e},[e]),N.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function rF(e){let[t,n]=N.useState(e),r=N.useRef(null),i=dr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});La(()=>{r.current&&i()});let a=dr(o=>{r.current=o(t),i()});return[t,a]}const fc={prefix:String(Math.round(Math.random()*1e10)),current:0},N4=N.createContext(fc),iF=N.createContext(!1);let aF=!!(typeof window<"u"&&window.document&&window.document.createElement),jf=new WeakMap;function oF(e=!1){let t=N.useContext(N4),n=N.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=jf.get(a);o==null?jf.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,jf.delete(a))}n.current=++t.current}return n.current}function sF(e){let t=N.useContext(N4);t===fc&&!aF&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=oF(!!e),r=t===fc&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function lF(e){let t=N.useId(),[n]=N.useState(M4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${fc.prefix}`;return e||`${r}-${t}`}const uF=typeof N.useId=="function"?lF:sF;function cF(){return!1}function dF(){return!0}function fF(e){return()=>{}}function M4(){return typeof N.useSyncExternalStore=="function"?N.useSyncExternalStore(fF,cF,dF):N.useContext(iF)}let hF=!!(typeof window<"u"&&window.document&&window.document.createElement),yo=new Map,os;typeof FinalizationRegistry<"u"&&(os=new FinalizationRegistry(e=>{yo.delete(e)}));function Ao(e){let[t,n]=N.useState(e),r=N.useRef(null),i=uF(t),a=N.useRef(null);if(os&&os.register(a,i),hF){const o=yo.get(i);o&&!o.includes(r)?o.push(r):yo.set(i,[r])}return La(()=>{let o=i;return()=>{os&&os.unregister(a),yo.delete(o)}},[i]),N.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function gF(e,t){if(e===t)return e;let n=yo.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=yo.get(t);return r?(r.forEach(i=>i.current=e),e):t}function d0(e=[]){let t=Ao(),[n,r]=rF(t),i=N.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return La(i,[t,i,...e]),n}function O4(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ft=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},nr=e=>e&&"window"in e&&e.window===e?e:Ft(e).defaultView||window;function pF(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function mF(e){return pF(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let vF=!1;function id(){return vF}function vt(e,t){if(!id())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:mF(n)?n=n.host:n=n.parentNode}return!1}const Ra=(e=document)=>{var t;if(!id())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function dt(e){return id()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class bF{get currentNode(){return this._currentNode}set currentNode(t){if(!vt(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return vt(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function yF(e,t,n,r){return id()?new bF(e,t,n,r):e.createTreeWalker(t,n,r)}function kn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=O4(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=ji(a,o):i==="id"&&a&&o?t.id=gF(a,o):t[i]=o!==void 0?o:a}}return t}const xF=new Set(["id"]),CF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),EF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),SF=new Set(["dir","lang","hidden","inert","translate"]),Gv=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),wF=/^(data-.*)$/;function lp(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(xF.has(l)||n&&CF.has(l)||r&&EF.has(l)||i&&SF.has(l)||a&&Gv.has(l)||l.endsWith("Capture")&&Gv.has(l.slice(0,-7))||o!=null&&o.has(l)||wF.test(l))&&(s[l]=e[l]);return s}function Ba(e){if(IF())e.focus({preventScroll:!0});else{let t=_F(e);e.focus(),DF(t)}}let Yl=null;function IF(){if(Yl==null){Yl=!1;try{document.createElement("div").focus({get preventScroll(){return Yl=!0,!0}})}catch{}}return Yl}function _F(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function DF(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ad(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function up(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xi(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ro=xi(function(){return up(/^Mac/i)}),TF=xi(function(){return up(/^iPhone/i)}),L4=xi(function(){return up(/^iPad/i)||Ro()&&navigator.maxTouchPoints>1}),cp=xi(function(){return TF()||L4()});xi(function(){return Ro()||cp()});const AF=xi(function(){return ad(/AppleWebKit/i)&&!RF()}),RF=xi(function(){return ad(/Chrome/i)}),V4=xi(function(){return ad(/Android/i)}),BF=xi(function(){return ad(/Firefox/i)});function js(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;BF()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ro()?a=!0:o=!0);let u=AF()&&Ro()&&!L4()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});js.isOpening=n,Ba(e),e.dispatchEvent(u),js.isOpening=!1}js.isOpening=!1;let $i=new Map,f0=new Set;function Wv(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=$i.get(r.target);i||(i=new Set,$i.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=$i.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),$i.delete(r.target)),$i.size===0)){for(let a of f0)a();f0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Wv():document.addEventListener("DOMContentLoaded",Wv));function kF(){for(const[e]of $i)"isConnected"in e&&!e.isConnected&&$i.delete(e)}function H4(e){requestAnimationFrame(()=>{kF(),$i.size===0?e():f0.add(e)})}function j4(){let e=N.useRef(new Map),t=N.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,l,s)},[]),n=N.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=N.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return N.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function dp(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ao(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Uv(e,t){const n=N.useRef(!0),r=N.useRef(null);N.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),N.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,o)=>!Object.is(a,i[o])))&&e(),r.current=t},t)}function z4(e,t){La(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function h0(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function PF(e,t){let n=e;for(h0(n,t)&&(n=n.parentElement);n&&!h0(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function $F(e,t){const n=[];for(;e&&e!==document.documentElement;)h0(e,t)&&n.push(e),e=e.parentElement;return n}let FF=0;const zf=new Map;function G4(e){let[t,n]=N.useState();return La(()=>{if(!e)return;let r=zf.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${FF++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},zf.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),zf.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Gf(e,t,n,r){let i=dr(n),a=n==null;N.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function NF(e,t){let n=Xv(e,t,"left"),r=Xv(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:p,scrollPaddingBottom:h,scrollPaddingLeft:d}=getComputedStyle(e),v=o+parseInt(u,10),m=s+parseInt(l,10),b=v+e.clientWidth,f=m+e.clientHeight,y=parseInt(c,10)||0,C=parseInt(h,10)||0,S=parseInt(p,10)||0,w=parseInt(d,10)||0;n<=o+w?o=n-parseInt(u,10)-w:n+i>b-S&&(o+=n+i-b+S),r<=m+y?s=r-parseInt(l,10)-y:r+a>f-C&&(s+=r+a-f+C),e.scrollLeft=o,e.scrollTop=s}function Xv(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function MF(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=$F(e);for(let u of l)NF(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:p}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-p)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function g0(e){return e.mozInputSource===0&&e.isTrusted?!0:V4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function OF(e){return!V4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function W4(e,t){let n=N.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}const LF=typeof Element<"u"&&"checkVisibility"in Element.prototype;function VF(e){const t=nr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function HF(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function fp(e,t){return LF?e.checkVisibility():e.nodeName!=="#comment"&&VF(e)&&HF(e,t)&&(!e.parentElement||fp(e.parentElement,e))}const hp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],jF=hp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zF=hp.join(':not([hidden]):not([tabindex="-1"]),');function U4(e){return e.matches(jF)&&fp(e)&&!X4(e)}function GF(e){return e.matches(zF)&&fp(e)&&!X4(e)}function X4(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function zs(e,t,n){let[r,i]=N.useState(e||t),a=N.useRef(e!==void 0),o=e!==void 0;N.useEffect(()=>{let u=a.current;u!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=N.useCallback((u,...c)=>{let p=(h,...d)=>{n&&(Object.is(s,h)||n(h,...d)),o||(s=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((d,...v)=>{let m=u(o?s:d,...v);return p(m,...c),o?d:m})):(o||i(u),p(u,...c))},[o,s,n]);return[s,l]}function gp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Y4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function K4(e){let t=N.useRef({isFocused:!1,observer:null});La(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=dr(r=>{e==null||e(r)});return N.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{if(t.current.isFocused=!1,i.disabled){let s=gp(o);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let hc=!1;function Yv(e){for(;e&&!U4(e);)e=e.parentElement;let t=nr(e),n=t.document.activeElement;if(!n||n===e)return;hc=!0;let r=!1,i=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Ba(n),l()))},o=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},s=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Ba(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),hc=!1,r=!1},u=requestAnimationFrame(l);return l}let ao="default",p0="",Au=new WeakMap;function Kv(e){if(cp()){if(ao==="default"){const t=Ft(e);p0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ao="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Au.set(e,e.style[t]),e.style[t]="none"}}function Wf(e){if(cp()){if(ao!=="disabled")return;ao="restoring",setTimeout(()=>{H4(()=>{if(ao==="restoring"){const t=Ft(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=p0||""),p0="",ao="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Au.has(e)){let t=Au.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Au.delete(e)}}const Z4=N.createContext({register:()=>{}});Z4.displayName="PressResponderContext";function WF(e,t){return t.get?t.get.call(e):t.value}function q4(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function UF(e,t){var n=q4(e,t,"get");return WF(e,n)}function XF(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Zv(e,t,n){var r=q4(e,t,"set");return XF(e,r,n),n}function YF(e){let t=N.useContext(Z4);if(t){let{register:n,...r}=t;e=kn(r,e),n()}return z4(t,e.ref),e}var Kl=new WeakMap;class Zl{continuePropagation(){Zv(this,Kl,!1)}get shouldStopPropagation(){return UF(this,Kl)}constructor(t,n,r,i){bl(this,Kl,{writable:!0,value:void 0}),Zv(this,Kl,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,p=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,p=r.clientY),s&&(c!=null&&p!=null?(l=c-s.left,u=p-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const qv=Symbol("linkClicked"),Jv="react-aria-pressable-style",Qv="data-react-aria-pressable";function pp(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:p,ref:h,...d}=YF(e),[v,m]=N.useState(!1),b=N.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:f,removeAllGlobalListeners:y}=j4(),C=dr((_,A)=>{let F=b.current;if(s||F.didFirePressStart)return!1;let B=!0;if(F.isTriggeringEvent=!0,r){let $=new Zl("pressstart",A,_);r($),B=$.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,m(!0),B}),S=dr((_,A,F=!0)=>{let B=b.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let $=!0;if(i){let k=new Zl("pressend",A,_);i(k),$=k.shouldStopPropagation}if(n&&n(!1),m(!1),t&&F&&!s){let k=new Zl("press",A,_);t(k),$&&($=k.shouldStopPropagation)}return B.isTriggeringEvent=!1,$}),w=dr((_,A)=>{let F=b.current;if(s)return!1;if(a){F.isTriggeringEvent=!0;let B=new Zl("pressup",A,_);return a(B),F.isTriggeringEvent=!1,B.shouldStopPropagation}return!0}),E=dr(_=>{let A=b.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&S(ra(A.target,_),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,y(),p||Wf(A.target);for(let F of A.disposables)F();A.disposables=[]}}),x=dr(_=>{c&&E(_)}),g=dr(_=>{o==null||o(_)}),I=dr((_,A)=>{if(o){let F=new MouseEvent("click",_);Y4(F,A),o(gp(F))}}),T=N.useMemo(()=>{let _=b.current,A={onKeyDown(B){if(Uf(B.nativeEvent,B.currentTarget)&&vt(B.currentTarget,dt(B.nativeEvent))){var $;nb(dt(B.nativeEvent),B.key)&&B.preventDefault();let k=!0;if(!_.isPressed&&!B.repeat){_.target=B.currentTarget,_.isPressed=!0,_.pointerType="keyboard",k=C(B,"keyboard");let O=B.currentTarget,M=G=>{Uf(G,O)&&!G.repeat&&vt(O,dt(G))&&_.target&&w(ra(_.target,G),"keyboard")};f(Ft(B.currentTarget),"keyup",O4(M,F),!0)}k&&B.stopPropagation(),B.metaKey&&Ro()&&(($=_.metaKeyEvents)===null||$===void 0||$.set(B.key,B.nativeEvent))}else B.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(B){if(!(B&&!vt(B.currentTarget,dt(B.nativeEvent)))&&B&&B.button===0&&!_.isTriggeringEvent&&!js.isOpening){let $=!0;if(s&&B.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||g0(B.nativeEvent))){let k=C(B,"virtual"),O=w(B,"virtual"),M=S(B,"virtual");g(B),$=k&&O&&M}else if(_.isPressed&&_.pointerType!=="keyboard"){let k=_.pointerType||B.nativeEvent.pointerType||"virtual",O=w(ra(B.currentTarget,B),k),M=S(ra(B.currentTarget,B),k,!0);$=O&&M,_.isOverTarget=!1,g(B),E(B)}_.ignoreEmulatedMouseEvents=!1,$&&B.stopPropagation()}}},F=B=>{var $;if(_.isPressed&&_.target&&Uf(B,_.target)){var k;nb(dt(B),B.key)&&B.preventDefault();let M=dt(B),G=vt(_.target,dt(B));S(ra(_.target,B),"keyboard",G),G&&I(B,_.target),y(),B.key!=="Enter"&&mp(_.target)&&vt(_.target,M)&&!B[qv]&&(B[qv]=!0,js(_.target,B,!1)),_.isPressed=!1,(k=_.metaKeyEvents)===null||k===void 0||k.delete(B.key)}else if(B.key==="Meta"&&(!(($=_.metaKeyEvents)===null||$===void 0)&&$.size)){var O;let M=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let G of M.values())(O=_.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){A.onPointerDown=k=>{if(k.button!==0||!vt(k.currentTarget,dt(k.nativeEvent)))return;if(OF(k.nativeEvent)){_.pointerType="virtual";return}_.pointerType=k.pointerType;let O=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=k.pointerId,_.target=k.currentTarget,p||Kv(_.target),O=C(k,_.pointerType);let M=dt(k.nativeEvent);"releasePointerCapture"in M&&M.releasePointerCapture(k.pointerId),f(Ft(k.currentTarget),"pointerup",B,!1),f(Ft(k.currentTarget),"pointercancel",$,!1)}O&&k.stopPropagation()},A.onMouseDown=k=>{if(vt(k.currentTarget,dt(k.nativeEvent))&&k.button===0){if(u){let O=Yv(k.target);O&&_.disposables.push(O)}k.stopPropagation()}},A.onPointerUp=k=>{!vt(k.currentTarget,dt(k.nativeEvent))||_.pointerType==="virtual"||k.button===0&&!_.isPressed&&w(k,_.pointerType||k.pointerType)},A.onPointerEnter=k=>{k.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,C(ra(_.target,k),_.pointerType))},A.onPointerLeave=k=>{k.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,S(ra(_.target,k),_.pointerType,!1),x(k))};let B=k=>{if(k.pointerId===_.activePointerId&&_.isPressed&&k.button===0&&_.target){if(vt(_.target,dt(k))&&_.pointerType!=null){let O=!1,M=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(O?E(k):(Ba(_.target),_.target.click()))},80);f(k.currentTarget,"click",()=>O=!0,!0),_.disposables.push(()=>clearTimeout(M))}else E(k);_.isOverTarget=!1}},$=k=>{E(k)};A.onDragStart=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&E(k)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=k=>{if(k.button!==0||!vt(k.currentTarget,dt(k.nativeEvent)))return;if(_.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(_.isPressed=!0,_.isOverTarget=!0,_.target=k.currentTarget,_.pointerType=g0(k.nativeEvent)?"virtual":"mouse",No.flushSync(()=>C(k,_.pointerType))&&k.stopPropagation(),u){let M=Yv(k.target);M&&_.disposables.push(M)}f(Ft(k.currentTarget),"mouseup",B,!1)},A.onMouseEnter=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&_.pointerType!=null&&(_.isOverTarget=!0,O=C(k,_.pointerType)),O&&k.stopPropagation()},A.onMouseLeave=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&_.pointerType!=null&&(_.isOverTarget=!1,O=S(k,_.pointerType,!1),x(k)),O&&k.stopPropagation()},A.onMouseUp=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&!_.ignoreEmulatedMouseEvents&&k.button===0&&!_.isPressed&&w(k,_.pointerType||"mouse")};let B=k=>{if(k.button===0){if(_.ignoreEmulatedMouseEvents){_.ignoreEmulatedMouseEvents=!1;return}_.target&&_.target.contains(k.target)&&_.pointerType!=null||E(k),_.isOverTarget=!1}};A.onTouchStart=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=KF(k.nativeEvent);if(!O)return;_.activePointerId=O.identifier,_.ignoreEmulatedMouseEvents=!0,_.isOverTarget=!0,_.isPressed=!0,_.target=k.currentTarget,_.pointerType="touch",p||Kv(_.target),C(_i(_.target,k),_.pointerType)&&k.stopPropagation(),f(nr(k.currentTarget),"scroll",$,!0)},A.onTouchMove=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;if(!_.isPressed){k.stopPropagation();return}let O=eb(k.nativeEvent,_.activePointerId),M=!0;O&&tb(O,k.currentTarget)?!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,M=C(_i(_.target,k),_.pointerType)):_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,M=S(_i(_.target,k),_.pointerType,!1),x(_i(_.target,k))),M&&k.stopPropagation()},A.onTouchEnd=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;if(!_.isPressed){k.stopPropagation();return}let O=eb(k.nativeEvent,_.activePointerId),M=!0;O&&tb(O,k.currentTarget)&&_.pointerType!=null?(w(_i(_.target,k),_.pointerType),M=S(_i(_.target,k),_.pointerType),I(k.nativeEvent,_.target)):_.isOverTarget&&_.pointerType!=null&&(M=S(_i(_.target,k),_.pointerType,!1)),M&&k.stopPropagation(),_.isPressed=!1,_.activePointerId=null,_.isOverTarget=!1,_.ignoreEmulatedMouseEvents=!0,_.target&&!p&&Wf(_.target),y()},A.onTouchCancel=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&(k.stopPropagation(),_.isPressed&&E(_i(_.target,k)))};let $=k=>{_.isPressed&&vt(dt(k),_.target)&&E({currentTarget:_.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&E(k)}}return A},[f,s,u,y,p,E,x,S,C,w,g,I]);return N.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const _=Ft(h.current);if(!_||!_.head||_.getElementById(Jv))return;const A=_.createElement("style");A.id=Jv,A.textContent=`
|
|
108
|
+
`]))),T8=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,o=a.colors,s=a.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2})},Df=function(t){var n=t.delay,r=t.offset;return Ie("span",{css:Gg({animation:"".concat(D8," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},A8=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,a=i===void 0?4:i,o=yi(t,b8);return Ie("div",De({},St(_e(_e({},o),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Ie(Df,{delay:0,offset:r}),Ie(Df,{delay:160,offset:!0}),Ie(Df,{delay:320,offset:!r}))},R8=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,o=a.colors,s=a.borderRadius,l=a.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},B8=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return Ie("div",De({ref:a},St(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),o,{"aria-disabled":r||void 0}),n)},k8=B8,P8=["data"],$8=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},F8=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,p=t.selectProps;return Ie("div",De({},St(t,"group",{group:!0}),l),Ie(o,De({},s,{selectProps:p,theme:c,getStyles:i,getClassNames:a,cx:r}),u),Ie("div",null,n))},N8=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return _e({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},M8=function(t){var n=j2(t);n.data;var r=yi(n,P8);return Ie("div",De({},St(t,"groupHeading",{"group-heading":!0}),r))},O8=F8,L8=["innerRef","isDisabled","isHidden","inputClassName"],V8=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,o=a.spacing,s=a.colors;return _e(_e({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},H8),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},q2={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},H8={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},q2)},j8=function(t){return _e({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},q2)},z8=function(t){var n=t.cx,r=t.value,i=j2(t),a=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=yi(i,L8);return Ie("div",De({},St(t,"input",{"input-container":!0}),{"data-value":r||""}),Ie("input",De({className:n({input:!0},l),ref:a,style:j8(s),disabled:o},u)))},G8=z8,W8=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors;return _e({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},U8=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,o=t.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},X8=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,o=r.colors,s=t.isFocused;return _e({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},J2=function(t){var n=t.children,r=t.innerProps;return Ie("div",r,n)},Y8=J2,K8=J2;function Z8(e){var t=e.children,n=e.innerProps;return Ie("div",De({role:"button"},n),t||Ie(Wg,{size:14}))}var q8=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,p=r.Remove;return Ie(u,{data:i,innerProps:_e(_e({},St(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:l},Ie(c,{data:i,innerProps:_e({},St(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),Ie(p,{data:i,innerProps:_e(_e({},St(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},J8=q8,Q8=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},eP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,o=t.innerRef,s=t.innerProps;return Ie("div",De({},St(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:o,"aria-disabled":r},s),n)},tP=eP,nP=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},rP=function(t){var n=t.children,r=t.innerProps;return Ie("div",De({},St(t,"placeholder",{placeholder:!0}),r),n)},iP=rP,aP=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,o=i.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},oP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return Ie("div",De({},St(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},sP=oP,Q2={ClearIndicator:w8,Control:k8,DropdownIndicator:E8,DownChevron:K2,CrossIcon:Wg,Group:O8,GroupHeading:M8,IndicatorsContainer:m8,IndicatorSeparator:_8,Input:G8,LoadingIndicator:A8,Menu:n8,MenuList:i8,MenuPortal:c8,LoadingMessage:l8,NoOptionsMessage:s8,MultiValue:J8,MultiValueContainer:Y8,MultiValueLabel:K8,MultiValueRemove:Z8,Option:tP,Placeholder:iP,SelectContainer:f8,SingleValue:sP,ValueContainer:g8},lP=function(t){return _e(_e({},Q2),t.components)},hv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function uP(e,t){return!!(e===t||hv(e)&&hv(t))}function cP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!uP(e[n],t[n]))return!1;return!0}function dP(e,t){t===void 0&&(t=cP);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function fP(){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)."}var hP=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fP},gP=function(t){return Ie("span",De({css:hP},t))},gv=gP,pP={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,a=t.context,o=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,a=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,o=a===void 0?"":a,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,p=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(o," focused, ").concat(p(s,r),".");if(n==="menu"&&c){var h=l?" disabled":"",d="".concat(u?" selected":"").concat(h);return"".concat(o).concat(d,", ").concat(p(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},mP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,p=l.ariaLiveMessages,h=l.getOptionLabel,d=l.inputValue,v=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,f=l.menuIsOpen,y=l.options,C=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],x=l["aria-live"],g=N.useMemo(function(){return _e(_e({},pP),p||{})},[p]),I=N.useMemo(function(){var $="";if(n&&g.onChange){var k=n.option,O=n.options,M=n.removedValue,G=n.removedValues,W=n.value,U=function(re){return Array.isArray(re)?null:re},J=M||k||U(W),Q=J?h(J):"",Z=O||G||void 0,ee=Z?Z.map(h):[],q=_e({isDisabled:J&&m(J,s),label:Q,labels:ee},n);$=g.onChange(q)}return $},[n,g,m,s,h]),T=N.useMemo(function(){var $="",k=r||i,O=!!(r&&s&&s.includes(r));if(k&&g.onFocus){var M={focused:k,label:h(k),isDisabled:m(k,s),isSelected:O,options:a,context:k===r?"menu":"value",selectValue:s,isAppleDevice:c};$=g.onFocus(M)}return $},[r,i,h,m,g,a,s,c]),_=N.useMemo(function(){var $="";if(f&&y.length&&!w&&g.onFilter){var k=C({count:a.length});$=g.onFilter({inputValue:d,resultsMessage:k})}return $},[a,d,f,g,y,C,w]),A=(n==null?void 0:n.action)==="initial-input-focus",F=N.useMemo(function(){var $="";if(g.guidance){var k=i?"value":f?"menu":"input";$=g.guidance({"aria-label":E,context:k,isDisabled:r&&m(r,s),isMulti:v,isSearchable:b,tabSelectsValue:S,isInitialFocus:A})}return $},[E,r,i,v,m,b,f,g,s,S,A]),B=Ie(N.Fragment,null,Ie("span",{id:"aria-selection"},I),Ie("span",{id:"aria-focused"},T),Ie("span",{id:"aria-results"},_),Ie("span",{id:"aria-guidance"},F));return Ie(N.Fragment,null,Ie(gv,{id:u},A&&B),Ie(gv,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!A&&B))},vP=mP,n0=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bP=new RegExp("["+n0.map(function(e){return e.letters}).join("")+"]","g"),e4={};for(var Tf=0;Tf<n0.length;Tf++)for(var Af=n0[Tf],Rf=0;Rf<Af.letters.length;Rf++)e4[Af.letters[Rf]]=Af.base;var t4=function(t){return t.replace(bP,function(n){return e4[n]})},yP=dP(t4),pv=function(t){return t.replace(/^\s+|\s+$/g,"")},xP=function(t){return"".concat(t.label," ").concat(t.value)},CP=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=_e({ignoreCase:!0,ignoreAccents:!0,stringify:xP,trim:!0,matchFrom:"any"},t),a=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,l=i.trim,u=i.matchFrom,c=l?pv(r):r,p=l?pv(s(n)):s(n);return a&&(c=c.toLowerCase(),p=p.toLowerCase()),o&&(c=yP(c),p=t4(p)),u==="start"?p.substr(0,c.length)===c:p.indexOf(c)>-1}},EP=["innerRef"];function SP(e){var t=e.innerRef,n=yi(e,EP),r=Y7(n,"onExited","in","enter","exit","appear");return Ie("input",De({ref:t},r,{css:Gg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var wP=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function IP(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=N.useRef(!1),s=N.useRef(!1),l=N.useRef(0),u=N.useRef(null),c=N.useCallback(function(b,f){if(u.current!==null){var y=u.current,C=y.scrollTop,S=y.scrollHeight,w=y.clientHeight,E=u.current,x=f>0,g=S-w-C,I=!1;g>f&&o.current&&(r&&r(b),o.current=!1),x&&s.current&&(a&&a(b),s.current=!1),x&&f>g?(n&&!o.current&&n(b),E.scrollTop=S,I=!0,o.current=!0):!x&&-f>C&&(i&&!s.current&&i(b),E.scrollTop=0,I=!0,s.current=!0),I&&wP(b)}},[n,r,i,a]),p=N.useCallback(function(b){c(b,b.deltaY)},[c]),h=N.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),d=N.useCallback(function(b){var f=l.current-b.changedTouches[0].clientY;c(b,f)},[c]),v=N.useCallback(function(b){if(b){var f=W7?{passive:!1}:!1;b.addEventListener("wheel",p,f),b.addEventListener("touchstart",h,f),b.addEventListener("touchmove",d,f)}},[d,h,p]),m=N.useCallback(function(b){b&&(b.removeEventListener("wheel",p,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",d,!1))},[d,h,p]);return N.useEffect(function(){if(t){var b=u.current;return v(b),function(){m(b)}}},[t,v,m]),function(b){u.current=b}}var mv=["boxSizing","height","overflow","paddingRight","position"],vv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bv(e){e.cancelable&&e.preventDefault()}function yv(e){e.stopPropagation()}function xv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cv(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ev=!!(typeof window<"u"&&window.document&&window.document.createElement),Xo=0,Ka={capture:!1,passive:!1};function _P(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=N.useRef({}),a=N.useRef(null),o=N.useCallback(function(l){if(Ev){var u=document.body,c=u&&u.style;if(r&&mv.forEach(function(v){var m=c&&c[v];i.current[v]=m}),r&&Xo<1){var p=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,d=window.innerWidth-h+p||0;Object.keys(vv).forEach(function(v){var m=vv[v];c&&(c[v]=m)}),c&&(c.paddingRight="".concat(d,"px"))}u&&Cv()&&(u.addEventListener("touchmove",bv,Ka),l&&(l.addEventListener("touchstart",xv,Ka),l.addEventListener("touchmove",yv,Ka))),Xo+=1}},[r]),s=N.useCallback(function(l){if(Ev){var u=document.body,c=u&&u.style;Xo=Math.max(Xo-1,0),r&&Xo<1&&mv.forEach(function(p){var h=i.current[p];c&&(c[p]=h)}),u&&Cv()&&(u.removeEventListener("touchmove",bv,Ka),l&&(l.removeEventListener("touchstart",xv,Ka),l.removeEventListener("touchmove",yv,Ka)))}},[r]);return N.useEffect(function(){if(t){var l=a.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){a.current=l}}function DP(){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)."}var TP=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},AP=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:DP};function RP(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=IP({isEnabled:i,onBottomArrive:a,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=_P({isEnabled:n}),p=function(d){u(d),c(d)};return Ie(N.Fragment,null,n&&Ie("div",{onClick:TP,css:AP}),t(p))}function BP(){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)."}var kP=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:BP},PP=function(t){var n=t.name,r=t.onFocus;return Ie("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:kP,value:"",onChange:function(){}})},$P=PP;function Ug(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function FP(){return Ug(/^iPhone/i)}function n4(){return Ug(/^Mac/i)}function NP(){return Ug(/^iPad/i)||n4()&&navigator.maxTouchPoints>1}function MP(){return FP()||NP()}function OP(){return n4()||MP()}var LP=function(t){return t.label},VP=function(t){return t.label},HP=function(t){return t.value},jP=function(t){return!!t.isDisabled},zP={clearIndicator:S8,container:d8,control:R8,dropdownIndicator:C8,group:$8,groupHeading:N8,indicatorsContainer:p8,indicatorSeparator:I8,input:V8,loadingIndicator:T8,loadingMessage:o8,menu:Q7,menuList:r8,menuPortal:u8,multiValue:W8,multiValueLabel:U8,multiValueRemove:X8,noOptionsMessage:a8,option:Q8,placeholder:nP,singleValue:aP,valueContainer:h8},GP={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},WP=4,r4=4,UP=38,XP=r4*2,YP={baseUnit:r4,controlHeight:UP,menuGutter:XP},Bf={borderRadius:WP,colors:GP,spacing:YP},KP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:dv(),captureMenuScroll:!dv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:CP(),formatGroupLabel:LP,getOptionLabel:VP,getOptionValue:HP,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:jP,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!z7(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Sv(e,t,n,r){var i=o4(e,t,n),a=s4(e,t,n),o=a4(e,t),s=oc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function Iu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,s){return Sv(e,o,t,s)}).filter(function(o){return Iv(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Sv(e,n,t,r);return Iv(e,a)?a:void 0}).filter(U7)}function i4(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,kg(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function wv(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,kg(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function ZP(e,t){return i4(Iu(e,t))}function Iv(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!u4(e)||!a)&&l4(e,{label:o,value:s,data:i},r)}function qP(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function JP(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var kf=function(t,n){var r,i=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},a4=function(t,n){return t.getOptionLabel(n)},oc=function(t,n){return t.getOptionValue(n)};function o4(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function s4(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=oc(e,t);return n.some(function(i){return oc(e,i)===r})}function l4(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var u4=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},QP=1,c4=function(e){vk(n,e);var t=xk(n);function n(r){var i;if(pk(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,p=c.onChange,h=c.name;u.name=h,i.ariaOnChange(l,u),p(l,u)},i.setValue=function(l,u,c){var p=i.props,h=p.closeMenuOnSelect,d=p.isMulti,v=p.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:v}),h&&(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,p=u.isMulti,h=u.name,d=i.state.selectValue,v=p&&i.isOptionSelected(l,d),m=i.isOptionDisabled(l,d);if(v){var b=i.getOptionValue(l);i.setValue(d.filter(function(f){return i.getOptionValue(f)!==b}),"deselect-option",l)}else if(!m)p?i.setValue([].concat(kg(d),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,p=i.getOptionValue(l),h=c.filter(function(v){return i.getOptionValue(v)!==p}),d=Wl(u,h,h[0]||null);i.onChange(d,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],p=u.slice(0,u.length-1),h=Wl(l,p,p[0]||null);c&&i.onChange(h,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return kf(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return wv(Iu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return O7.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return a4(i.props,l)},i.getOptionValue=function(l){return oc(i.props,l)},i.getStyles=function(l,u){var c=i.props.unstyled,p=zP[l](u,c);p.boxSizing="border-box";var h=i.props.styles[l];return h?h(p,u):p},i.getClassNames=function(l,u){var c,p;return(c=(p=i.props.classNames)[l])===null||c===void 0?void 0:c.call(p,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return lP(i.props)},i.buildCategorizedOptions=function(){return Iu(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return i4(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:_e({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,c=u.isMulti,p=u.menuIsOpen;i.focusInput(),p?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&ed(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var p=Math.abs(c.clientX-i.initialTouchX),h=Math.abs(c.clientY-i.initialTouchY),d=5;i.userIsDragging=p>d||h>d}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return u4(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,p=u.backspaceRemovesValue,h=u.escapeClearsValue,d=u.inputValue,v=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,f=u.onKeyDown,y=u.tabSelectsValue,C=u.openMenuOnFocus,S=i.state,w=S.focusedOption,E=S.focusedValue,x=S.selectValue;if(!m&&!(typeof f=="function"&&(f(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||d)return;i.focusValue("previous");break;case"ArrowRight":if(!c||d)return;i.focusValue("next");break;case"Delete":case"Backspace":if(d)return;if(E)i.removeValue(E);else{if(!p)return;c?i.popValue():v&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!y||!w||C&&i.isOptionSelected(w,x))return;i.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(b){if(!w||i.isComposing)return;i.selectOption(w);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:d}),i.onMenuClose()):v&&h&&i.clearValue();break;case" ":if(d)return;if(!b){i.openMenu("first");break}if(!w)return;i.selectOption(w);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++QP),i.state.selectValue=uv(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),s=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=o[s],i.state.focusedOptionId=kf(a,o[s])}return i}return mk(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&cv(this.menuListRef,this.focusedOptionRef),OP()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(cv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var p=u.indexOf(s[0]);p>-1&&(c=p)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,o=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-a,l<0&&(l=0)):i==="pagedown"?(l=u+a,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bf):_e(_e({},Bf),this.props.theme):Bf}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,p=this.props,h=p.isMulti,d=p.isRtl,v=p.options,m=this.hasValue();return{clearValue:i,cx:a,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:h,isRtl:d,options:v,selectOption:u,selectProps:p,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,o=i.isMulti;return a===void 0?o:a}},{key:"isOptionDisabled",value:function(i,a){return o4(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return s4(this.props,i,a)}},{key:"filterOption",value:function(i,a){return l4(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,p=i.menuIsOpen,h=i.required,d=this.getComponents(),v=d.Input,m=this.state,b=m.inputIsHidden,f=m.ariaSelection,y=this.commonProps,C=s||this.getElementId("input"),S=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},p&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(f==null?void 0:f.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?ae.createElement(v,De({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},S)):ae.createElement(SP,De({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ic,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),o=a.MultiValue,s=a.MultiValueContainer,l=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,p=a.Placeholder,h=this.commonProps,d=this.props,v=d.controlShouldRenderValue,m=d.isDisabled,b=d.isMulti,f=d.inputValue,y=d.placeholder,C=this.state,S=C.selectValue,w=C.focusedValue,E=C.isFocused;if(!this.hasValue()||!v)return f?null:ae.createElement(p,De({},h,{key:"placeholder",isDisabled:m,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return S.map(function(g,I){var T=g===w,_="".concat(i.getOptionLabel(g),"-").concat(i.getOptionValue(g));return ae.createElement(o,De({},h,{components:{Container:s,Label:l,Remove:u},isFocused:T,isDisabled:m,key:_,index:I,removeProps:{onClick:function(){return i.removeValue(g)},onTouchEnd:function(){return i.removeValue(g)},onMouseDown:function(F){F.preventDefault()}},data:g}),i.formatOptionLabel(g,"value"))});if(f)return null;var x=S[0];return ae.createElement(c,De({},h,{data:x,isDisabled:m}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||u)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:p,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!a||!u)return null;var p={"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:p,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,o=i.IndicatorSeparator;if(!a||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return ae.createElement(o,De({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ae.createElement(a,De({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),o=a.Group,s=a.GroupHeading,l=a.Menu,u=a.MenuList,c=a.MenuPortal,p=a.LoadingMessage,h=a.NoOptionsMessage,d=a.Option,v=this.commonProps,m=this.state.focusedOption,b=this.props,f=b.captureMenuScroll,y=b.inputValue,C=b.isLoading,S=b.loadingMessage,w=b.minMenuHeight,E=b.maxMenuHeight,x=b.menuIsOpen,g=b.menuPlacement,I=b.menuPosition,T=b.menuPortalTarget,_=b.menuShouldBlockScroll,A=b.menuShouldScrollIntoView,F=b.noOptionsMessage,B=b.onMenuScrollToTop,$=b.onMenuScrollToBottom;if(!x)return null;var k=function(Q,Z){var ee=Q.type,q=Q.data,le=Q.isDisabled,re=Q.isSelected,R=Q.label,H=Q.value,V=m===q,D=le?void 0:function(){return i.onOptionHover(q)},L=le?void 0:function(){return i.selectOption(q)},K="".concat(i.getElementId("option"),"-").concat(Z),X={id:K,onClick:L,onMouseMove:D,onMouseOver:D,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:re};return ae.createElement(d,De({},v,{innerProps:X,data:q,isDisabled:le,isSelected:re,key:K,label:R,type:ee,value:H,isFocused:V,innerRef:V?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Q.data,"menu"))},O;if(this.hasOptions())O=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var Q=J.data,Z=J.options,ee=J.index,q="".concat(i.getElementId("group"),"-").concat(ee),le="".concat(q,"-heading");return ae.createElement(o,De({},v,{key:q,data:Q,options:Z,Heading:s,headingProps:{id:le,data:J.data},label:i.formatGroupLabel(J.data)}),J.options.map(function(re){return k(re,"".concat(ee,"-").concat(re.index))}))}else if(J.type==="option")return k(J,"".concat(J.index))});else if(C){var M=S({inputValue:y});if(M===null)return null;O=ae.createElement(p,v,M)}else{var G=F({inputValue:y});if(G===null)return null;O=ae.createElement(h,v,G)}var W={minMenuHeight:w,maxMenuHeight:E,menuPlacement:g,menuPosition:I,menuShouldScrollIntoView:A},U=ae.createElement(e8,De({},v,W),function(J){var Q=J.ref,Z=J.placerProps,ee=Z.placement,q=Z.maxHeight;return ae.createElement(l,De({},v,W,{innerRef:Q,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:C,placement:ee}),ae.createElement(RP,{captureEnabled:f,onTopArrive:B,onBottomArrive:$,lockEnabled:_},function(le){return ae.createElement(u,De({},v,{innerRef:function(R){i.getMenuListRef(R),le(R)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:i.getElementId("listbox")},isLoading:C,maxHeight:q,focusedOption:m}),O)}))});return T||I==="fixed"?ae.createElement(c,De({},v,{appendTo:T,controlElement:this.controlRef,menuPlacement:g,menuPosition:I}),U):U}},{key:"renderFormField",value:function(){var i=this,a=this.props,o=a.delimiter,s=a.isDisabled,l=a.isMulti,u=a.name,c=a.required,p=this.state.selectValue;if(c&&!this.hasValue()&&!s)return ae.createElement($P,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var h=p.map(function(m){return i.getOptionValue(m)}).join(o);return ae.createElement("input",{name:u,type:"hidden",value:h})}else{var d=p.length>0?p.map(function(m,b){return ae.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):ae.createElement("input",{name:u,type:"hidden",value:""});return ae.createElement("div",null,d)}else{var v=p[0]?this.getOptionValue(p[0]):"";return ae.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,o=a.ariaSelection,s=a.focusedOption,l=a.focusedValue,u=a.isFocused,c=a.selectValue,p=this.getFocusableOptions();return ae.createElement(vP,De({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:p,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,p=u.id,h=u.isDisabled,d=u.menuIsOpen,v=this.state.isFocused,m=this.commonProps=this.getCommonProps();return ae.createElement(s,De({},m,{className:c,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:v}),this.renderLiveRegion(),ae.createElement(a,De({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:v,menuIsOpen:d}),ae.createElement(l,De({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),ae.createElement(o,De({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var o=a.prevProps,s=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,p=a.prevWasFocused,h=a.instancePrefix,d=i.options,v=i.value,m=i.menuIsOpen,b=i.inputValue,f=i.isMulti,y=uv(v),C={};if(o&&(v!==o.value||d!==o.options||m!==o.menuIsOpen||b!==o.inputValue)){var S=m?ZP(i,y):[],w=m?wv(Iu(i,y),"".concat(h,"-option")):[],E=s?qP(a,y):null,x=JP(a,S),g=kf(w,x);C={selectValue:y,focusedOption:x,focusedOptionId:g,focusableOptionsWithIds:w,focusedValue:E,clearFocusValueOnUpdate:!1}}var I=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},T=u,_=c&&p;return c&&!_&&(T={value:Wl(f,y,y[0]||null),options:y,action:"initial-input-focus"},_=!p),(u==null?void 0:u.action)==="initial-input-focus"&&(T=null),_e(_e(_e({},C),I),{},{prevProps:i,ariaSelection:T,prevWasFocused:_})}}]),n}(N.Component);c4.defaultProps=KP;var e$=N.forwardRef(function(e,t){var n=gk(e);return ae.createElement(c4,De({ref:t},n))}),t$=e$;const n$="_container_brgpz_97",Pf={container:n$,"error-payhere":"_error-payhere_brgpz_97","error-laba":"_error-laba_brgpz_271"},r$={control:e=>({...e,border:"1px solid #D6D6D6","&:hover":{borderColor:"#0163C8"},borderRadius:"4px",outline:"none",boxShadow:"none",color:"#898989",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:32,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},i$={control:e=>({...e,border:"1px solid #BDBDBD","&:hover":{borderColor:"#64B5F6"},borderRadius:"6px",outline:"none",color:"#212121",backgroundColor:"white",margin:"0px",cursor:"text",minHeight:38,fontSize:"14px",lineHeight:"22px",fontFamily:"Inter",marginBottom:"5px"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:(t.isSelected,"white"),color:t.isSelected?"#212121":e.color,"&:hover":{background:t.isDisabled?"":"#E1F5FE",color:t.isDisabled?"":"#212121",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"14px",lineHeight:"22px",fontFamily:"Inter"})},a$={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:t.isSelected?"#F0F7FF":"white",color:t.isSelected?"#0163C8":e.color,"&:hover":{background:t.isDisabled?"":"#F0F7FF",color:t.isDisabled?"":"#0163C8",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"12px",lineHeight:"16px",fontFamily:"Lato"})},o$={control:()=>({display:"none"}),dropdownIndicator:e=>({...e,padding:"0px 8px"}),menu:e=>({...e,position:"static",boxShadow:"none",marginTop:"0px"}),option:(e,t)=>({...e,cursor:"pointer",background:(t.isSelected,"white"),color:t.isSelected?"#212121":e.color,"&:hover":{background:t.isDisabled?"":"#E1F5FE",color:t.isDisabled?"":"#212121",cursor:t.isDisabled?"default":""}}),group:e=>({...e,padding:0}),placeholder:e=>({...e,fontSize:"14px",lineHeight:"22px",fontFamily:"Inter"})},d4=N.forwardRef((e,t)=>{const{width:n,children:r,components:i,classNameContainer:a="",classNameContainerShowSelect:o="",classNameContainerSelect:s="",classNameLabelError:l="",error:u,onChange:c,externalValue:p=!1,defaultValueButtonDropdown:h={},autoClose:d=!0,onMenuOpen:v=()=>{},autoCloseOutside:m=!0,styleInnerPopper:b={},onMenuClose:f=()=>{},zIndexPopper:y=0,id:C="select-dropdown-container",idPopover:S="select-dropdown-container-popover",useAutoPlacement:w,flipOptions:E,autoPlacementOptions:x,withSearch:g=!1,floatingOptions:I={},offsetPopover:T=5,selectProps:_={},errorLabel:A="payhere",controlType:F="payhere",actionValueChange:B=()=>{},...$}=e,k={error:{laba:Pf["error-laba"],payhere:Pf["error-payhere"]},variant:{laba:r$,payhere:i$},noSearchVariant:{laba:a$,payhere:o$}},O=N.useRef(null),M=N.useRef(null),[G,W]=N.useState(""),[U,J]=N.useState(!1),[Q,Z]=N.useState({}),[ee,q]=N.useState(0),le=L=>{var K;(K=M.current)==null||K.setShow(L),J(L)},re=()=>{if(p)return e.isMulti?h:[h]},R=L=>{var K;(K=M.current)==null||K.handlerShow(L),q(O.current.offsetWidth),J(X=>!X)},H=()=>{var L;m&&((L=M.current)==null||L.setShow(!1))},V=(L,K)=>{var X;d&&(J(!1),(X=M.current)==null||X.setShow(!1)),typeof c=="function"&&c(L,K),p||Z(L)},D=()=>{O.current&&q(O.current.offsetWidth)};return Gi(()=>{p&&Z(h),B(h)},[p,h]),N.useEffect(()=>{U?v():U||(f(),W(""))},[U]),N.useImperativeHandle(t,()=>({selectValue:Q,setSelectValue:Z,handlerClose:H,handlerShow:R,show:U,setShow:le}),[U,$s(Q)]),N.useEffect(()=>(window.addEventListener("resize",D),window.addEventListener("load",D),()=>{window.removeEventListener("resize",D),window.removeEventListener("load",D)}),[O]),P.jsxs("div",{id:C,className:`${Pf.container} ${a} ${U?`${o} open-popover`:null}`,ref:O,children:[r({selectValue:Q,setSelectValue:Z,handlerClose:H,handlerShow:R,show:U,setShow:le}),P.jsx(bi,{ref:M,offset:T,useAutoPlacement:w,flipOptions:E,autoPlacementOptions:x,zIndex:y,styleInnerPopover:b,id:S,width:typeof n=="function"?n(ee,Q):n||ee,className:s,floatingOptions:I,children:P.jsx(t$,{className:"1ru-w-full",defaultValue:re(),inputValue:G,onInputChange:(L,{action:K})=>{K==="input-change"&&W(L)},openMenuOnFocus:!0,autoFocus:!1,backspaceRemovesValue:!1,components:{IndicatorSeparator:null,...i},controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,tabSelectsValue:!1,styles:g?k.variant[F]:k.noSearchVariant[F],noOptionsMessage:()=>"Tidak ada data.",onChange:V,selectProps:{..._,setShowDropdown:le},...$})}),P.jsx("div",{className:`${k.error[A]} ${l}`,children:u})]})});d4.displayName="SelectDropdownContainer";function po(e,t){return e-t*Math.floor(e/t)}const f4=1721426;function ma(e,t,n,r){t=ml(e,t);let i=t-1,a=-2;return n<=2?a=0:Li(t)&&(a=-1),f4-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Li(e){return e%4===0&&(e%100!==0||e%400===0)}function ml(e,t){return e==="BC"?1-t:t}function td(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const s$={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class zn{fromJulianDay(t){let n=t,r=n-f4,i=Math.floor(r/146097),a=po(r,146097),o=Math.floor(a/36524),s=po(a,36524),l=Math.floor(s/1461),u=po(s,1461),c=Math.floor(u/365),p=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[h,d]=td(p),v=n-ma(h,d,1,1),m=2;n<ma(h,d,3,1)?m=0:Li(d)&&(m=1);let b=Math.floor(((v+m)*12+373)/367),f=n-ma(h,d,b,1)+1;return new wt(h,d,b,f)}toJulianDay(t){return ma(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return s$[Li(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Li(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const l$={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function It(e,t){return t=tn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function r0(e,t){return Xg(e.calendar,t.calendar)&&It(e,t)}function Xg(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function u$(e,t){return It(e,Yg(t))}const c$={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function nd(e,t,n){let r=e.calendar.toJulianDay(e),i=n?c$[n]:p$(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function d$(e){return oi(Date.now(),e)}function Yg(e){return Hn(d$(e))}function h4(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function g4(e,t){return _v(e)-_v(t)}function _v(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let $f=null;function Ta(){return $f==null&&($f=new Intl.DateTimeFormat().resolvedOptions().timeZone),$f}function vl(e){return e.subtract({days:e.day-1})}function i0(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function f$(e){return vl(e.subtract({months:e.month-1}))}function Ls(e,t,n){let r=nd(e,t,n);return e.subtract({days:r})}function h$(e,t,n){return Ls(e,t,n).add({days:6})}const Dv=new Map;function g$(e){if(Intl.Locale){let n=Dv.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Dv.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function p$(e){let t=g$(e);return t&&l$[t]||0}function Kg(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((nd(vl(e),t,n)+r)/7)}function Zg(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function qg(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function To(e){e=tn(e,new zn);let t=ml(e.era,e.year);return p4(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function p4(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function a0(e,t){if(t==="UTC")return 0;if(e>0&&t===Ta())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=m4(e,t);return p4(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const Tv=new Map;function m4(e,t){let n=Tv.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Tv.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Av=864e5;function m$(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>v$(e,t,a))}function v$(e,t,n){let r=m4(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function ri(e,t,n="compatible"){let r=Xi(e);if(t==="UTC")return To(r);if(t===Ta()&&n==="compatible"){r=tn(r,new zn);let l=new Date,u=ml(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=To(r),a=a0(i-Av,t),o=a0(i+Av,t),s=m$(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function v4(e,t,n="compatible"){return new Date(ri(e,t,n))}function oi(e,t){let n=a0(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Hs(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,u,c)}function Hn(e){return new wt(e.calendar,e.era,e.year,e.month,e.day)}function Xi(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new sc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function tn(e,t){if(Xg(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Aa(r),r}function b$(e,t,n){if(e instanceof Hs)return e.timeZone===t?e:x$(e,t);let r=ri(e,t,n);return oi(r,t)}function y$(e){let t=To(e)-e.offset;return new Date(t)}function x$(e,t){let n=To(e)-e.offset;return tn(oi(n,t),e.calendar)}const Yo=36e5;function rd(e,t){let n=e.copy(),r="hour"in n?C4(n,t):0;o0(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s0(n),b4(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,C$(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o0(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function s0(e){for(;e.month<1;)o0(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o0(e,1)}function C$(e){for(;e.day<1;)e.month--,s0(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s0(e)}function b4(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Aa(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),b4(e)}function Jg(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function y4(e,t){return rd(e,Jg(t))}function Qg(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Aa(n),n}function Vs(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),x4(n),n}function E$(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ul(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ul(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ul(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ul(e.hour,24),t}function x4(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ul(e,t){let n=e%t;return n<0&&(n+=t),n}function C4(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,E$(e)}function E4(e,t){let n=e.copy();return C4(n,t),n}function S$(e,t){return E4(e,Jg(t))}function ep(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=si(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Aa(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=si(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=si(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=si(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Aa(i),i}function tp(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=si(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=si(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=si(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=si(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function si(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function S4(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=rd(Xi(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ri(i,e.timeZone)}else n=To(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=oi(n,e.timeZone);return tn(r,e.calendar)}function w$(e,t){return S4(e,Jg(t))}function I$(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,a=v?23:11}let o=Xi(e),s=tn(Vs(o,{hour:i}),new zn),l=[ri(s,e.timeZone,"earlier"),ri(s,e.timeZone,"later")].filter(v=>oi(v,e.timeZone).day===s.day)[0],u=tn(Vs(o,{hour:a}),new zn),c=[ri(u,e.timeZone,"earlier"),ri(u,e.timeZone,"later")].filter(v=>oi(v,e.timeZone).day===u.day).pop(),p=To(e)-e.offset,h=Math.floor(p/Yo),d=p%Yo;return p=si(h,n,Math.floor(l/Yo),Math.floor(c/Yo),r==null?void 0:r.round)*Yo+d,tn(oi(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return tp(e,t,n,r);case"era":case"year":case"month":case"day":{let i=ep(Xi(e),t,n,r),a=ri(i,e.timeZone);return tn(oi(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function _$(e,t,n){let r=Xi(e),i=Vs(Qg(r,t),t);if(i.compare(r)===0)return e;let a=ri(i,e.timeZone,n);return tn(oi(a,e.timeZone),e.calendar)}const D$=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function np(e){let t=e.match(D$);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new wt(Ff(t[1],0,9999),Ff(t[2],1,12),1);return n.day=Ff(t[3],1,n.calendar.getDaysInMonth(n)),n}function Ff(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function w4(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function I4(e){let t=tn(e,new zn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function _4(e){return`${I4(e)}T${w4(e)}`}function T$(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function A$(e){return`${_4(e)}${T$(e.offset)}[${e.timeZone}]`}function R$(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bl(e,t,n){R$(e,t),t.set(e,n)}function rp(e){let t=typeof e[0]=="object"?e.shift():new zn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var B$=new WeakMap;class wt{copy(){return this.era?new wt(this.calendar,this.era,this.year,this.month,this.day):new wt(this.calendar,this.year,this.month,this.day)}add(t){return rd(this,t)}subtract(t){return y4(this,t)}set(t){return Qg(this,t)}cycle(t,n,r){return ep(this,t,n,r)}toDate(t){return v4(this,t)}toString(){return I4(this)}compare(t){return h4(this,t)}constructor(...t){bl(this,B$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Aa(this)}}var k$=new WeakMap;class ip{copy(){return new ip(this.hour,this.minute,this.second,this.millisecond)}add(t){return E4(this,t)}subtract(t){return S$(this,t)}set(t){return Vs(this,t)}cycle(t,n,r){return tp(this,t,n,r)}toString(){return w4(this)}compare(t){return g4(this,t)}constructor(t=0,n=0,r=0,i=0){bl(this,k$,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,x4(this)}}var P$=new WeakMap;class sc{copy(){return this.era?new sc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new sc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return rd(this,t)}subtract(t){return y4(this,t)}set(t){return Qg(Vs(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return ep(this,t,n,r);default:return tp(this,t,n,r)}}toDate(t,n){return v4(this,t,n)}toString(){return _4(this)}compare(t){let n=h4(this,t);return n===0?g4(this,Xi(t)):n}constructor(...t){bl(this,P$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Aa(this)}}var $$=new WeakMap;class Hs{copy(){return this.era?new Hs(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Hs(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return S4(this,t)}subtract(t){return w$(this,t)}set(t,n){return _$(this,t,n)}cycle(t,n,r){return I$(this,t,n,r)}toDate(){return y$(this)}toString(){return A$(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-b$(t,this.timeZone).toDate().getTime()}constructor(...t){bl(this,$$,{writable:!0,value:void 0});let[n,r,i,a,o]=rp(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Aa(this)}}const mo=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],F$=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_u=[1867,1911,1925,1988,2018],ki=["meiji","taisho","showa","heisei","reiwa"];function Rv(e){const t=mo.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?mo.length-1:t===0?0:t-1}function Nf(e){let t=_u[ki.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new wt(e.year+t,e.month,e.day)}class N$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=Rv(n);return new wt(this,ki[r],n.year-_u[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Nf(t))}balanceDate(t){let n=Nf(t),r=Rv(n);ki[r]!==t.era&&(t.era=ki[r],t.year=n.year-_u[r]),this.constrainDate(t)}constrainDate(t){let n=ki.indexOf(t.era),r=F$[n];if(r!=null){let[i,a,o]=r,s=i-_u[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=mo[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ki}getYearsInEra(t){let n=ki.indexOf(t.era),r=mo[n],i=mo[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Nf(t))}getMinimumMonthInYear(t){let n=Bv(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Bv(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Bv(e){if(e.year===1){let t=ki.indexOf(e.era);return mo[t]}}const D4=-543;class M$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ml(n.era,n.year);return new wt(this,r-D4,n.month,n.day)}toJulianDay(t){return super.toJulianDay(kv(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(kv(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function kv(e){let[t,n]=td(e.year+D4);return new wt(t,n,e.month,e.day)}const lc=1911;function T4(e){return e.era==="minguo"?e.year+lc:1-e.year+lc}function Pv(e){let t=e-lc;return t>0?["minguo",t]:["before_minguo",1-t]}class O$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=ml(n.era,n.year),[i,a]=Pv(r);return new wt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay($v(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Pv(T4(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth($v(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-lc}constructor(...t){super(...t),this.identifier="roc"}}function $v(e){let[t,n]=td(T4(e));return new wt(t,n,e.month,e.day)}const Fv=1948320,Nv=[0,31,62,93,124,155,186,216,246,276,306,336];class L${fromJulianDay(t){let n=t-Fv,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-Nv[o]+1;return new wt(this,r,o+1,s)}toJulianDay(t){let n=Fv-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Nv[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||po(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Mf=78,Mv=80;class V$ extends zn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Mf,i=t-ma(n.era,n.year,1,1),a;i<Mv?(r--,a=Li(n.year-1)?31:30,i+=a+155+90+10):(a=Li(n.year)?31:30,i-=Mv);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new wt(this,r,o,s)}toJulianDay(t){let n=t.year+Mf,[r,i]=td(n),a,o;return Li(i)?(a=31,o=ma(r,i,3,21)):(a=30,o=ma(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Li(t.year+Mf)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const uc=1948440,Ov=1948439,Jn=1300,Za=1600,H$=460322;function cc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function A4(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+cc(t,r,1,1)))/29.5)+1),a=n-cc(t,r,i,1)+1;return new wt(e,r,i,a)}function Lv(e){return(14+11*e)%30<11}class ap{fromJulianDay(t){return A4(this,uc,t)}toJulianDay(t){return cc(uc,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Lv(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Lv(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class j$ extends ap{fromJulianDay(t){return A4(this,Ov,t)}toJulianDay(t){return cc(Ov,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const z$="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let l0,vo;function Du(e){return H$+vo[e-Jn]}function as(e,t){let n=e-Jn,r=1<<11-(t-1);return(l0[n]&r)===0?29:30}function Vv(e,t){let n=Du(e);for(let r=1;r<t;r++)n+=as(e,r);return n}function Hv(e){return vo[e+1-Jn]-vo[e-Jn]}class G$ extends ap{fromJulianDay(t){let n=t-uc,r=Du(Jn),i=Du(Za);if(n<r||n>i)return super.fromJulianDay(t);{let a=Jn-1,o=1,s=1;for(;s>0;){a++,s=n-Du(a)+1;let l=Hv(a);if(s===l){o=12;break}else if(s<l){let u=as(a,o);for(o=1;s>u;)s-=u,o++,u=as(a,o);break}}return new wt(this,a,o,n-Vv(a,o)+1)}}toJulianDay(t){return t.year<Jn||t.year>Za?super.toJulianDay(t):uc+Vv(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Jn||t.year>Za?super.getDaysInMonth(t):as(t.year,t.month)}getDaysInYear(t){return t.year<Jn||t.year>Za?super.getDaysInYear(t):Hv(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",l0||(l0=new Uint16Array(Uint8Array.from(atob(z$),t=>t.charCodeAt(0)).buffer)),!vo){vo=new Uint32Array(Za-Jn+1);let t=0;for(let n=Jn;n<=Za;n++){vo[n-Jn]=t;for(let r=1;r<=12;r++)t+=as(n,r)}}}}const jv=347997,R4=1080,B4=24*R4,W$=29,U$=12*R4+793,X$=W$*B4+U$;function fa(e){return po(e*7+1,19)<7}function Tu(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return po(3*(r+1),7)<3&&(r+=1),r}function Y$(e){let t=Tu(e-1),n=Tu(e);return Tu(e+1)-n===356?2:n-t===382?1:0}function ms(e){return Tu(e)+Y$(e)}function k4(e){return ms(e+1)-ms(e)}function K$(e){let t=k4(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Xl(e,t){if(t>=6&&!fa(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=K$(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?fa(e)?30:0:30}class Z${fromJulianDay(t){let n=t-jv,r=n*B4/X$,i=Math.floor((19*r+234)/235)+1,a=ms(i),o=Math.floor(n-a);for(;o<1;)i--,a=ms(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Xl(i,s),s++;s--,l-=Xl(i,s);let u=o-l;return new wt(this,i,s,u)}toJulianDay(t){let n=ms(t.year);for(let r=1;r<t.month;r++)n+=Xl(t.year,r);return n+t.day+jv}getDaysInMonth(t){return Xl(t.year,t.month)}getMonthsInYear(t){return fa(t.year)?13:12}getDaysInYear(t){return k4(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(fa(n.year)&&!fa(t.year)&&n.month>6?t.month--:!fa(n.year)&&fa(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const u0=1723856,zv=1824665,c0=5500;function dc(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function op(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-dc(e,n,1,1))/30),i=t+1-dc(e,n,r,1);return[n,r,i]}function P4(e){return Math.floor(e%4/3)}function $4(e,t){return t%13!==0?30:P4(e)+5}class sp{fromJulianDay(t){let[n,r,i]=op(u0,t),a="AM";return n<=0&&(a="AA",n+=c0),new wt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=c0),dc(u0,n,t.month,t.day)}getDaysInMonth(t){return $4(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+P4(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class q$ extends sp{fromJulianDay(t){let[n,r,i]=op(u0,t);return n+=c0,new wt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class J$ extends sp{fromJulianDay(t){let[n,r,i]=op(zv,t),a="CE";return n<=0&&(a="BCE",n=1-n),new wt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),dc(zv,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),$4(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function yl(e){switch(e){case"buddhist":return new M$;case"ethiopic":return new sp;case"ethioaa":return new q$;case"coptic":return new J$;case"hebrew":return new Z$;case"indian":return new V$;case"islamic-civil":return new ap;case"islamic-tbla":return new j$;case"islamic-umalqura":return new G$;case"japanese":return new N$;case"persian":return new L$;case"roc":return new O$;case"gregory":default:return new zn}}let Of=new Map;class bo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return tF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=nF(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=F4(t,n),this.options=n}}const Q$={true:{ja:"h11"},false:{}};function F4(e,t={}){if(typeof t.hour12=="boolean"&&eF()){t={...t};let i=Q$[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Of.has(n))return Of.get(n);let r=new Intl.DateTimeFormat(e,t);return Of.set(n,r),r}let Lf=null;function eF(){return Lf==null&&(Lf=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Lf}let Vf=null;function tF(){return Vf==null&&(Vf=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Vf}function nF(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=F4(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const La=typeof document<"u"?N.useLayoutEffect:()=>{};var Hf;const rF=(Hf=N.useInsertionEffect)!==null&&Hf!==void 0?Hf:La;function dr(e){const t=N.useRef(null);return rF(()=>{t.current=e},[e]),N.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function iF(e){let[t,n]=N.useState(e),r=N.useRef(null),i=dr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});La(()=>{r.current&&i()});let a=dr(o=>{r.current=o(t),i()});return[t,a]}const fc={prefix:String(Math.round(Math.random()*1e10)),current:0},N4=N.createContext(fc),aF=N.createContext(!1);let oF=!!(typeof window<"u"&&window.document&&window.document.createElement),jf=new WeakMap;function sF(e=!1){let t=N.useContext(N4),n=N.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=jf.get(a);o==null?jf.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,jf.delete(a))}n.current=++t.current}return n.current}function lF(e){let t=N.useContext(N4);t===fc&&!oF&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=sF(!!e),r=t===fc&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function uF(e){let t=N.useId(),[n]=N.useState(M4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${fc.prefix}`;return e||`${r}-${t}`}const cF=typeof N.useId=="function"?uF:lF;function dF(){return!1}function fF(){return!0}function hF(e){return()=>{}}function M4(){return typeof N.useSyncExternalStore=="function"?N.useSyncExternalStore(hF,dF,fF):N.useContext(aF)}let gF=!!(typeof window<"u"&&window.document&&window.document.createElement),yo=new Map,os;typeof FinalizationRegistry<"u"&&(os=new FinalizationRegistry(e=>{yo.delete(e)}));function Ao(e){let[t,n]=N.useState(e),r=N.useRef(null),i=cF(t),a=N.useRef(null);if(os&&os.register(a,i),gF){const o=yo.get(i);o&&!o.includes(r)?o.push(r):yo.set(i,[r])}return La(()=>{let o=i;return()=>{os&&os.unregister(a),yo.delete(o)}},[i]),N.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function pF(e,t){if(e===t)return e;let n=yo.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=yo.get(t);return r?(r.forEach(i=>i.current=e),e):t}function d0(e=[]){let t=Ao(),[n,r]=iF(t),i=N.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return La(i,[t,i,...e]),n}function O4(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Ft=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},nr=e=>e&&"window"in e&&e.window===e?e:Ft(e).defaultView||window;function mF(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function vF(e){return mF(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let bF=!1;function id(){return bF}function vt(e,t){if(!id())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:vF(n)?n=n.host:n=n.parentNode}return!1}const Ra=(e=document)=>{var t;if(!id())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function dt(e){return id()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class yF{get currentNode(){return this._currentNode}set currentNode(t){if(!vt(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return vt(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function xF(e,t,n,r){return id()?new yF(e,t,n,r):e.createTreeWalker(t,n,r)}function kn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=O4(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=ji(a,o):i==="id"&&a&&o?t.id=pF(a,o):t[i]=o!==void 0?o:a}}return t}const CF=new Set(["id"]),EF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),SF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),wF=new Set(["dir","lang","hidden","inert","translate"]),Gv=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),IF=/^(data-.*)$/;function lp(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(CF.has(l)||n&&EF.has(l)||r&&SF.has(l)||i&&wF.has(l)||a&&Gv.has(l)||l.endsWith("Capture")&&Gv.has(l.slice(0,-7))||o!=null&&o.has(l)||IF.test(l))&&(s[l]=e[l]);return s}function Ba(e){if(_F())e.focus({preventScroll:!0});else{let t=DF(e);e.focus(),TF(t)}}let Yl=null;function _F(){if(Yl==null){Yl=!1;try{document.createElement("div").focus({get preventScroll(){return Yl=!0,!0}})}catch{}}return Yl}function DF(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function TF(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ad(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function up(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xi(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ro=xi(function(){return up(/^Mac/i)}),AF=xi(function(){return up(/^iPhone/i)}),L4=xi(function(){return up(/^iPad/i)||Ro()&&navigator.maxTouchPoints>1}),cp=xi(function(){return AF()||L4()});xi(function(){return Ro()||cp()});const RF=xi(function(){return ad(/AppleWebKit/i)&&!BF()}),BF=xi(function(){return ad(/Chrome/i)}),V4=xi(function(){return ad(/Android/i)}),kF=xi(function(){return ad(/Firefox/i)});function js(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;kF()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ro()?a=!0:o=!0);let u=RF()&&Ro()&&!L4()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});js.isOpening=n,Ba(e),e.dispatchEvent(u),js.isOpening=!1}js.isOpening=!1;let $i=new Map,f0=new Set;function Wv(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=$i.get(r.target);i||(i=new Set,$i.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=$i.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),$i.delete(r.target)),$i.size===0)){for(let a of f0)a();f0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Wv():document.addEventListener("DOMContentLoaded",Wv));function PF(){for(const[e]of $i)"isConnected"in e&&!e.isConnected&&$i.delete(e)}function H4(e){requestAnimationFrame(()=>{PF(),$i.size===0?e():f0.add(e)})}function j4(){let e=N.useRef(new Map),t=N.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,l,s)},[]),n=N.useCallback((i,a,o,s)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,u,s),e.current.delete(o)},[]),r=N.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return N.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function dp(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ao(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Uv(e,t){const n=N.useRef(!0),r=N.useRef(null);N.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),N.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,o)=>!Object.is(a,i[o])))&&e(),r.current=t},t)}function z4(e,t){La(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function h0(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function $F(e,t){let n=e;for(h0(n,t)&&(n=n.parentElement);n&&!h0(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function FF(e,t){const n=[];for(;e&&e!==document.documentElement;)h0(e,t)&&n.push(e),e=e.parentElement;return n}let NF=0;const zf=new Map;function G4(e){let[t,n]=N.useState();return La(()=>{if(!e)return;let r=zf.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${NF++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},zf.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),zf.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Gf(e,t,n,r){let i=dr(n),a=n==null;N.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function MF(e,t){let n=Xv(e,t,"left"),r=Xv(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:p,scrollPaddingBottom:h,scrollPaddingLeft:d}=getComputedStyle(e),v=o+parseInt(u,10),m=s+parseInt(l,10),b=v+e.clientWidth,f=m+e.clientHeight,y=parseInt(c,10)||0,C=parseInt(h,10)||0,S=parseInt(p,10)||0,w=parseInt(d,10)||0;n<=o+w?o=n-parseInt(u,10)-w:n+i>b-S&&(o+=n+i-b+S),r<=m+y?s=r-parseInt(l,10)-y:r+a>f-C&&(s+=r+a-f+C),e.scrollLeft=o,e.scrollTop=s}function Xv(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function OF(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=FF(e);for(let u of l)MF(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:p}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-p)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function g0(e){return e.mozInputSource===0&&e.isTrusted?!0:V4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function LF(e){return!V4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function W4(e,t){let n=N.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}const VF=typeof Element<"u"&&"checkVisibility"in Element.prototype;function HF(e){const t=nr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function jF(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function fp(e,t){return VF?e.checkVisibility():e.nodeName!=="#comment"&&HF(e)&&jF(e,t)&&(!e.parentElement||fp(e.parentElement,e))}const hp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],zF=hp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";hp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const GF=hp.join(':not([hidden]):not([tabindex="-1"]),');function U4(e){return e.matches(zF)&&fp(e)&&!X4(e)}function WF(e){return e.matches(GF)&&fp(e)&&!X4(e)}function X4(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function zs(e,t,n){let[r,i]=N.useState(e||t),a=N.useRef(e!==void 0),o=e!==void 0;N.useEffect(()=>{let u=a.current;u!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=N.useCallback((u,...c)=>{let p=(h,...d)=>{n&&(Object.is(s,h)||n(h,...d)),o||(s=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((d,...v)=>{let m=u(o?s:d,...v);return p(m,...c),o?d:m})):(o||i(u),p(u,...c))},[o,s,n]);return[s,l]}function gp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Y4(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function K4(e){let t=N.useRef({isFocused:!1,observer:null});La(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=dr(r=>{e==null||e(r)});return N.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{if(t.current.isFocused=!1,i.disabled){let s=gp(o);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let hc=!1;function Yv(e){for(;e&&!U4(e);)e=e.parentElement;let t=nr(e),n=t.document.activeElement;if(!n||n===e)return;hc=!0;let r=!1,i=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Ba(n),l()))},o=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},s=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Ba(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),hc=!1,r=!1},u=requestAnimationFrame(l);return l}let ao="default",p0="",Au=new WeakMap;function Kv(e){if(cp()){if(ao==="default"){const t=Ft(e);p0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ao="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Au.set(e,e.style[t]),e.style[t]="none"}}function Wf(e){if(cp()){if(ao!=="disabled")return;ao="restoring",setTimeout(()=>{H4(()=>{if(ao==="restoring"){const t=Ft(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=p0||""),p0="",ao="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Au.has(e)){let t=Au.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Au.delete(e)}}const Z4=N.createContext({register:()=>{}});Z4.displayName="PressResponderContext";function UF(e,t){return t.get?t.get.call(e):t.value}function q4(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function XF(e,t){var n=q4(e,t,"get");return UF(e,n)}function YF(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Zv(e,t,n){var r=q4(e,t,"set");return YF(e,r,n),n}function KF(e){let t=N.useContext(Z4);if(t){let{register:n,...r}=t;e=kn(r,e),n()}return z4(t,e.ref),e}var Kl=new WeakMap;class Zl{continuePropagation(){Zv(this,Kl,!1)}get shouldStopPropagation(){return XF(this,Kl)}constructor(t,n,r,i){bl(this,Kl,{writable:!0,value:void 0}),Zv(this,Kl,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,p=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,p=r.clientY),s&&(c!=null&&p!=null?(l=c-s.left,u=p-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const qv=Symbol("linkClicked"),Jv="react-aria-pressable-style",Qv="data-react-aria-pressable";function pp(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:p,ref:h,...d}=KF(e),[v,m]=N.useState(!1),b=N.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:f,removeAllGlobalListeners:y}=j4(),C=dr((_,A)=>{let F=b.current;if(s||F.didFirePressStart)return!1;let B=!0;if(F.isTriggeringEvent=!0,r){let $=new Zl("pressstart",A,_);r($),B=$.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,m(!0),B}),S=dr((_,A,F=!0)=>{let B=b.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let $=!0;if(i){let k=new Zl("pressend",A,_);i(k),$=k.shouldStopPropagation}if(n&&n(!1),m(!1),t&&F&&!s){let k=new Zl("press",A,_);t(k),$&&($=k.shouldStopPropagation)}return B.isTriggeringEvent=!1,$}),w=dr((_,A)=>{let F=b.current;if(s)return!1;if(a){F.isTriggeringEvent=!0;let B=new Zl("pressup",A,_);return a(B),F.isTriggeringEvent=!1,B.shouldStopPropagation}return!0}),E=dr(_=>{let A=b.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&S(ra(A.target,_),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,y(),p||Wf(A.target);for(let F of A.disposables)F();A.disposables=[]}}),x=dr(_=>{c&&E(_)}),g=dr(_=>{o==null||o(_)}),I=dr((_,A)=>{if(o){let F=new MouseEvent("click",_);Y4(F,A),o(gp(F))}}),T=N.useMemo(()=>{let _=b.current,A={onKeyDown(B){if(Uf(B.nativeEvent,B.currentTarget)&&vt(B.currentTarget,dt(B.nativeEvent))){var $;nb(dt(B.nativeEvent),B.key)&&B.preventDefault();let k=!0;if(!_.isPressed&&!B.repeat){_.target=B.currentTarget,_.isPressed=!0,_.pointerType="keyboard",k=C(B,"keyboard");let O=B.currentTarget,M=G=>{Uf(G,O)&&!G.repeat&&vt(O,dt(G))&&_.target&&w(ra(_.target,G),"keyboard")};f(Ft(B.currentTarget),"keyup",O4(M,F),!0)}k&&B.stopPropagation(),B.metaKey&&Ro()&&(($=_.metaKeyEvents)===null||$===void 0||$.set(B.key,B.nativeEvent))}else B.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(B){if(!(B&&!vt(B.currentTarget,dt(B.nativeEvent)))&&B&&B.button===0&&!_.isTriggeringEvent&&!js.isOpening){let $=!0;if(s&&B.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||g0(B.nativeEvent))){let k=C(B,"virtual"),O=w(B,"virtual"),M=S(B,"virtual");g(B),$=k&&O&&M}else if(_.isPressed&&_.pointerType!=="keyboard"){let k=_.pointerType||B.nativeEvent.pointerType||"virtual",O=w(ra(B.currentTarget,B),k),M=S(ra(B.currentTarget,B),k,!0);$=O&&M,_.isOverTarget=!1,g(B),E(B)}_.ignoreEmulatedMouseEvents=!1,$&&B.stopPropagation()}}},F=B=>{var $;if(_.isPressed&&_.target&&Uf(B,_.target)){var k;nb(dt(B),B.key)&&B.preventDefault();let M=dt(B),G=vt(_.target,dt(B));S(ra(_.target,B),"keyboard",G),G&&I(B,_.target),y(),B.key!=="Enter"&&mp(_.target)&&vt(_.target,M)&&!B[qv]&&(B[qv]=!0,js(_.target,B,!1)),_.isPressed=!1,(k=_.metaKeyEvents)===null||k===void 0||k.delete(B.key)}else if(B.key==="Meta"&&(!(($=_.metaKeyEvents)===null||$===void 0)&&$.size)){var O;let M=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let G of M.values())(O=_.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){A.onPointerDown=k=>{if(k.button!==0||!vt(k.currentTarget,dt(k.nativeEvent)))return;if(LF(k.nativeEvent)){_.pointerType="virtual";return}_.pointerType=k.pointerType;let O=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=k.pointerId,_.target=k.currentTarget,p||Kv(_.target),O=C(k,_.pointerType);let M=dt(k.nativeEvent);"releasePointerCapture"in M&&M.releasePointerCapture(k.pointerId),f(Ft(k.currentTarget),"pointerup",B,!1),f(Ft(k.currentTarget),"pointercancel",$,!1)}O&&k.stopPropagation()},A.onMouseDown=k=>{if(vt(k.currentTarget,dt(k.nativeEvent))&&k.button===0){if(u){let O=Yv(k.target);O&&_.disposables.push(O)}k.stopPropagation()}},A.onPointerUp=k=>{!vt(k.currentTarget,dt(k.nativeEvent))||_.pointerType==="virtual"||k.button===0&&!_.isPressed&&w(k,_.pointerType||k.pointerType)},A.onPointerEnter=k=>{k.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,C(ra(_.target,k),_.pointerType))},A.onPointerLeave=k=>{k.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,S(ra(_.target,k),_.pointerType,!1),x(k))};let B=k=>{if(k.pointerId===_.activePointerId&&_.isPressed&&k.button===0&&_.target){if(vt(_.target,dt(k))&&_.pointerType!=null){let O=!1,M=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(O?E(k):(Ba(_.target),_.target.click()))},80);f(k.currentTarget,"click",()=>O=!0,!0),_.disposables.push(()=>clearTimeout(M))}else E(k);_.isOverTarget=!1}},$=k=>{E(k)};A.onDragStart=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&E(k)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=k=>{if(k.button!==0||!vt(k.currentTarget,dt(k.nativeEvent)))return;if(_.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(_.isPressed=!0,_.isOverTarget=!0,_.target=k.currentTarget,_.pointerType=g0(k.nativeEvent)?"virtual":"mouse",No.flushSync(()=>C(k,_.pointerType))&&k.stopPropagation(),u){let M=Yv(k.target);M&&_.disposables.push(M)}f(Ft(k.currentTarget),"mouseup",B,!1)},A.onMouseEnter=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&_.pointerType!=null&&(_.isOverTarget=!0,O=C(k,_.pointerType)),O&&k.stopPropagation()},A.onMouseLeave=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=!0;_.isPressed&&!_.ignoreEmulatedMouseEvents&&_.pointerType!=null&&(_.isOverTarget=!1,O=S(k,_.pointerType,!1),x(k)),O&&k.stopPropagation()},A.onMouseUp=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&!_.ignoreEmulatedMouseEvents&&k.button===0&&!_.isPressed&&w(k,_.pointerType||"mouse")};let B=k=>{if(k.button===0){if(_.ignoreEmulatedMouseEvents){_.ignoreEmulatedMouseEvents=!1;return}_.target&&_.target.contains(k.target)&&_.pointerType!=null||E(k),_.isOverTarget=!1}};A.onTouchStart=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;let O=ZF(k.nativeEvent);if(!O)return;_.activePointerId=O.identifier,_.ignoreEmulatedMouseEvents=!0,_.isOverTarget=!0,_.isPressed=!0,_.target=k.currentTarget,_.pointerType="touch",p||Kv(_.target),C(_i(_.target,k),_.pointerType)&&k.stopPropagation(),f(nr(k.currentTarget),"scroll",$,!0)},A.onTouchMove=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;if(!_.isPressed){k.stopPropagation();return}let O=eb(k.nativeEvent,_.activePointerId),M=!0;O&&tb(O,k.currentTarget)?!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,M=C(_i(_.target,k),_.pointerType)):_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,M=S(_i(_.target,k),_.pointerType,!1),x(_i(_.target,k))),M&&k.stopPropagation()},A.onTouchEnd=k=>{if(!vt(k.currentTarget,dt(k.nativeEvent)))return;if(!_.isPressed){k.stopPropagation();return}let O=eb(k.nativeEvent,_.activePointerId),M=!0;O&&tb(O,k.currentTarget)&&_.pointerType!=null?(w(_i(_.target,k),_.pointerType),M=S(_i(_.target,k),_.pointerType),I(k.nativeEvent,_.target)):_.isOverTarget&&_.pointerType!=null&&(M=S(_i(_.target,k),_.pointerType,!1)),M&&k.stopPropagation(),_.isPressed=!1,_.activePointerId=null,_.isOverTarget=!1,_.ignoreEmulatedMouseEvents=!0,_.target&&!p&&Wf(_.target),y()},A.onTouchCancel=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&(k.stopPropagation(),_.isPressed&&E(_i(_.target,k)))};let $=k=>{_.isPressed&&vt(dt(k),_.target)&&E({currentTarget:_.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=k=>{vt(k.currentTarget,dt(k.nativeEvent))&&E(k)}}return A},[f,s,u,y,p,E,x,S,C,w,g,I]);return N.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const _=Ft(h.current);if(!_||!_.head||_.getElementById(Jv))return;const A=_.createElement("style");A.id=Jv,A.textContent=`
|
|
109
109
|
@layer {
|
|
110
110
|
[${Qv}] {
|
|
111
111
|
touch-action: pan-x pan-y pinch-zoom;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`.trim(),_.head.prepend(A)},[h]),N.useEffect(()=>{let _=b.current;return()=>{var A;p||Wf((A=_.target)!==null&&A!==void 0?A:void 0);for(let F of _.disposables)F();_.disposables=[]}},[p]),{isPressed:l||v,pressProps:kn(d,T,{[Qv]:!0})}}function mp(e){return e.tagName==="A"&&e.hasAttribute("href")}function Uf(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof nr(i).HTMLInputElement&&!J4(i,n)||i instanceof nr(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&mp(i))&&n!=="Enter")}function KF(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function eb(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function _i(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ra(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ZF(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function qF(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function tb(e,t){let n=t.getBoundingClientRect(),r=ZF(e);return qF(n,r)}function JF(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!mp(e)}function nb(e,t){return e instanceof HTMLInputElement?!J4(e,t):JF(e)}const QF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J4(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":QF.has(e.type)}let zo=null,m0=new Set,vs=new Map,ka=!1,v0=!1;const eN={Tab:!0,Escape:!0};function vp(e,t){for(let n of m0)n(e,t)}function tN(e){return!(e.metaKey||!Ro()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function gc(e){ka=!0,tN(e)&&(zo="keyboard",vp("keyboard",e))}function Qn(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ka=!0,vp("pointer",e))}function Q4(e){g0(e)&&(ka=!0,zo="virtual")}function e3(e){e.target===window||e.target===document||hc||!e.isTrusted||(!ka&&!v0&&(zo="virtual",vp("virtual",e)),ka=!1,v0=!1)}function t3(){hc||(ka=!1,v0=!0)}function b0(e){if(typeof window>"u"||typeof document>"u"||vs.get(nr(e)))return;const t=nr(e),n=Ft(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ka=!0,r.apply(this,arguments)},n.addEventListener("keydown",gc,!0),n.addEventListener("keyup",gc,!0),n.addEventListener("click",Q4,!0),t.addEventListener("focus",e3,!0),t.addEventListener("blur",t3,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qn,!0),n.addEventListener("pointermove",Qn,!0),n.addEventListener("pointerup",Qn,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qn,!0),n.addEventListener("mousemove",Qn,!0),n.addEventListener("mouseup",Qn,!0)),t.addEventListener("beforeunload",()=>{n3(e)},{once:!0}),vs.set(t,{focus:r})}const n3=(e,t)=>{const n=nr(e),r=Ft(e);t&&r.removeEventListener("DOMContentLoaded",t),vs.has(n)&&(n.HTMLElement.prototype.focus=vs.get(n).focus,r.removeEventListener("keydown",gc,!0),r.removeEventListener("keyup",gc,!0),r.removeEventListener("click",Q4,!0),n.removeEventListener("focus",e3,!0),n.removeEventListener("blur",t3,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qn,!0),r.removeEventListener("pointermove",Qn,!0),r.removeEventListener("pointerup",Qn,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qn,!0),r.removeEventListener("mousemove",Qn,!0),r.removeEventListener("mouseup",Qn,!0)),vs.delete(n))};function nN(e){const t=Ft(e);let n;return t.readyState!=="loading"?b0(e):(n=()=>{b0(e)},t.addEventListener("DOMContentLoaded",n)),()=>n3(e,n)}typeof document<"u"&&nN();function r3(){return zo!=="pointer"}function i3(){return zo}const rN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iN(e,t,n){let r=Ft(n==null?void 0:n.target);const i=typeof window<"u"?nr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?nr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?nr(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?nr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!rN.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!eN[n.key])}function aN(e,t,n){b0(),N.useEffect(()=>{let r=(i,a)=>{iN(!!(n!=null&&n.isTextInput),i,a)&&e(r3())};return m0.add(r),()=>{m0.delete(r)}},t)}function a3(e){const t=Ft(e),n=Ra(t);if(i3()==="virtual"){let r=n;H4(()=>{Ra(t)===r&&e.isConnected&&Ba(e)})}else Ba(e)}function o3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=N.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=K4(a),s=N.useCallback(l=>{const u=Ft(l.target),c=u?Ra(u):Ra();l.target===l.currentTarget&&c===dt(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function rb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function oN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rb(e.onKeyDown),onKeyUp:rb(e.onKeyUp)}}}let sN=N.createContext(null);function lN(e){let t=N.useContext(sN)||{};z4(t,e);let{ref:n,...r}=t;return r}function uN(e,t){let{focusProps:n}=o3(e),{keyboardProps:r}=oN(e),i=kn(n,r),a=lN(t),o=e.isDisabled?{}:a,s=N.useRef(e.autoFocus);N.useEffect(()=>{s.current&&t.current&&a3(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:kn({...i,tabIndex:l},o)}}function s3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=N.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=j4(),l=N.useCallback(p=>{p.currentTarget.contains(p.target)&&a.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(p),i&&i(!1))},[n,i,a,s]),u=K4(l),c=N.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const h=Ft(p.target),d=Ra(h);if(!a.current.isFocusWithin&&d===dt(p.nativeEvent)){r&&r(p),i&&i(!0),a.current.isFocusWithin=!0,u(p);let v=p.currentTarget;o(h,"focus",m=>{if(a.current.isFocusWithin&&!vt(v,m.target)){let b=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Y4(b,v);let f=gp(b);l(f)}},{capture:!0})}},[r,i,u,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}const cN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),dN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function l3(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return cN.has(n.script)}let t=e.split("-")[0];return dN.has(t)}const fN=Symbol.for("react-aria.i18n.locale");function u3(){let e=typeof window<"u"&&window[fN]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:l3(e)?"rtl":"ltr"}}let y0=u3(),ss=new Set;function ib(){y0=u3();for(let e of ss)e(y0)}function c3(){let e=M4(),[t,n]=N.useState(y0);return N.useEffect(()=>(ss.size===0&&window.addEventListener("languagechange",ib),ss.add(n),()=>{ss.delete(n),ss.size===0&&window.removeEventListener("languagechange",ib)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const d3=N.createContext(null);function bp(e){let{locale:t,children:n}=e,r=c3(),i=N.useMemo(()=>t?{locale:t,direction:l3(t)?"rtl":"ltr"}:r,[r,t]);return N.createElement(d3.Provider,{value:i},n)}function yr(){let e=c3();return N.useContext(d3)||e}const hN=Symbol.for("react-aria.i18n.locale"),gN=Symbol.for("react-aria.i18n.strings");let qa;class Va{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=pN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[hN];if(qa===void 0){let i=window[gN];if(!i)return null;qa={};for(let a in i)qa[a]=new Va({[n]:i[a]},n)}let r=qa==null?void 0:qa[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function pN(e,t,n="en-US"){if(t[e])return t[e];let r=mN(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function mN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ab=new Map,ob=new Map;class f3{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=ab.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),ab.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=ob.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ob.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const sb=new WeakMap;function vN(e){let t=sb.get(e);return t||(t=new Va(e),sb.set(e,t)),t}function bN(e,t){return t&&Va.getGlobalDictionaryForPackage(t)||vN(e)}function xl(e,t){let{locale:n}=yr(),r=bN(e,t);return N.useMemo(()=>new f3(n,r),[n,r])}function Yi(e){e=W4(e??{},yN);let{locale:t}=yr();return N.useMemo(()=>new bo(t,e),[t,e])}function yN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function xN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:p,href:h,target:d,rel:v,type:m="button"}=e,b;n==="button"?b={type:m,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:b={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?d:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:f,isPressed:y}=pp({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:p,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:C}=uN(e,t);c&&(C.tabIndex=r?-1:C.tabIndex);let S=kn(C,f,lp(e,{labelable:!0}));return{isPressed:y,buttonProps:kn(b,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function CN(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ft(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function h3(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ko(e,t=!1){if(e!=null&&!t)try{a3(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function oo(e,t,n){let r=t!=null&&t.tabbable?GF:U4,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Ft(i),o=yF(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!CN(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||h3(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function g3(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||Ra(Ft(r)),u=oo(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Ko(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||Ra(Ft(r)),u=oo(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let p=Xf(u);return p&&Ko(p,!0),p??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let p=Xf(u);if(!p)return null;c=p}return c&&Ko(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=oo(r,{tabbable:i,accept:a}).nextNode();return s&&Ko(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=oo(r,{tabbable:i,accept:a}),s=Xf(o);return s&&Ko(s,!0),s??null}}}function Xf(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class yp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new lb({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&h3(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new yp;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new lb({scopeRef:null}),this.fastMap.set(null,this.root)}}class lb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new yp;function p3(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=N.useRef({isFocused:!1,isFocusVisible:t||r3()}),[a,o]=N.useState(!1),[s,l]=N.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=N.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=N.useCallback(d=>{i.current.isFocused=d,o(d),u()},[u]);aN(d=>{i.current.isFocusVisible=d,u()},[],{isTextInput:n});let{focusProps:p}=o3({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=s3({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:p}}var m3={};m3={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var v3={};v3={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var b3={};b3={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var y3={};y3={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var x3={};x3={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var C3={};C3={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var E3={};E3={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var S3={};S3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var w3={};w3={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var I3={};I3={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var _3={};_3={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var D3={};D3={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var T3={};T3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var A3={};A3={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var R3={};R3={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var B3={};B3={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var k3={};k3={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var P3={};P3={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var $3={};$3={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var F3={};F3={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var N3={};N3={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var M3={};M3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var O3={};O3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var L3={};L3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var V3={};V3={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var H3={};H3={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var j3={};j3={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var z3={};z3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var G3={};G3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var W3={};W3={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var U3={};U3={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var X3={};X3={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Y3={};Y3={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var K3={};K3={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Cl={};Cl={"ar-AE":m3,"bg-BG":v3,"cs-CZ":b3,"da-DK":y3,"de-DE":x3,"el-GR":C3,"en-US":E3,"es-ES":S3,"et-EE":w3,"fi-FI":I3,"fr-FR":_3,"he-IL":D3,"hr-HR":T3,"hu-HU":A3,"it-IT":R3,"ja-JP":B3,"ko-KR":k3,"lt-LT":P3,"lv-LV":$3,"nb-NO":F3,"nl-NL":N3,"pl-PL":M3,"pt-BR":O3,"pt-PT":L3,"ro-RO":V3,"ru-RU":H3,"sk-SK":j3,"sl-SI":z3,"sr-SP":G3,"sv-SE":W3,"tr-TR":U3,"uk-UA":X3,"zh-CN":Y3,"zh-TW":K3};function Z3(e){return e&&e.__esModule?e.default:e}const xp=new WeakMap;function Gs(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function EN(e){let t=xl(Z3(Cl),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=Yi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Gs(n)||Gs(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return N.useMemo(()=>{if(!o&&n&&r)if(It(n,r)){let s=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=C0(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function x0(e,t,n,r){let i=xl(Z3(Cl),"@react-aria/calendar"),a=Gs(e)||Gs(t),o=Yi({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Yi({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return N.useMemo(()=>{if(It(e,vl(e))){let l=e,u=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(u=t.calendar.getFormattableMonth(t)),It(t,i0(e)))return o.format(l.toDate(n));if(It(t,i0(t)))return r?C0(o,i,l,u,n):o.formatRange(l.toDate(n),u.toDate(n))}return r?C0(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function C0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const q3=7e3;let wr=null;function ub(e,t="assertive",n=q3){wr?wr.announce(e,t,n):(wr=new SN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?wr.announce(e,t,n):setTimeout(()=>{wr!=null&&wr.isAttached()&&(wr==null||wr.announce(e,t,n))},100))}class SN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=q3){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function wN(e){return e&&e.__esModule?e.default:e}function J3(e,t){let n=xl(wN(Cl),"@react-aria/calendar"),r=lp(e),i=x0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=x0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Uv(()=>{t.isFocused||ub(a)},[a]);let o=EN(t);Uv(()=>{o&&ub(o,"polite",4e3)},[o]);let s=d0([!!e.errorMessage,e.isInvalid,e.validationState]);xp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=N.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[p,h]=N.useState(!1),d=e.isDisabled||t.isPreviousVisibleRangeInvalid();d&&p&&(h(!1),t.setFocused(!0));let v=dp({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:kn(r,v,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:d,onFocusChange:h},errorMessageProps:{id:s},title:i}}function Q3(e,t){return J3(e,t)}function IN(e,t,n){let r=J3(e,t),i=N.useRef(!1),a=N.useRef(typeof window<"u"?window:null);return Gf(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Gf(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Gf(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function eE(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=yr(),o=m=>{switch(m.key){case"Enter":case" ":m.preventDefault(),t.selectFocusedDate();break;case"PageUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousSection(m.shiftKey);break;case"PageDown":m.preventDefault(),m.stopPropagation(),t.focusNextSection(m.shiftKey);break;case"End":m.preventDefault(),m.stopPropagation(),t.focusSectionEnd();break;case"Home":m.preventDefault(),m.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":m.preventDefault(),m.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":m.preventDefault(),m.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(m.preventDefault(),t.setAnchorDate(null));break}},s=x0(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:u}=xp.get(t),c=dp({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":u}),p=Yi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=yr(),d=N.useMemo(()=>{let m=Ls(Yg(t.timeZone),h,i);return[...new Array(7).keys()].map(b=>{let y=m.add({days:b}).toDate(t.timeZone);return p.format(y)})},[h,t.timeZone,p,i]),v=Kg(n,h,i);return{gridProps:kn(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:d,weeksInMonth:v}}function _N(e){return e&&e.__esModule?e.default:e}function DN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=xp.get(t),s=xl(_N(Cl),"@react-aria/calendar"),l=Yi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Gs(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let p=t.isCellUnavailable(r),h=!i&&!p,d=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&It(t.value,r));d&&(u=!0),r=W4(r,r0);let v=N.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=l$(r,t.timeZone),b=N.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(It(r,t.value.start)||It(r,t.value.end))&&(_=o+", "),_+=l.format(v),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&It(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&It(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,v,s,u,m,r,t,o]),f="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?f=s.format("finishRangeSelectionPrompt"):f=s.format("startRangeSelectionPrompt"));let y=G4(f),C=N.useRef(!1),S=N.useRef(!1),w=N.useRef(void 0),{pressProps:E,isPressed:x}=pp({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!d){if(It(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(It(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let A=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),C.current=!0};_.pointerType==="touch"?w.current=setTimeout(A,200):A()}},onPressEnd(){S.current=!1,C.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!C.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),g;i||(g=It(r,t.focusedDate)?0:-1),N.useEffect(()=>{c&&n.current&&(Ba(n.current),i3()!=="pointer"&&document.activeElement===n.current&&MF(n.current,{containingElement:PF(n.current)}))},[c,n]);let I=Yi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),T=N.useMemo(()=>I.formatToParts(v).find(_=>_.type==="day").value,[I,v]);return{cellProps:{role:"gridcell","aria-disabled":!h||void 0,"aria-selected":u||void 0,"aria-invalid":d||void 0},buttonProps:kn(E,{onFocus(){i||t.setFocusedDate(r)},tabIndex:g,role:"button","aria-disabled":!h||void 0,"aria-label":b,"aria-invalid":d||void 0,"aria-describedby":[d?a:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:x,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:d,formattedDate:T}}const od={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tE={...od,customError:!0,valid:!1},ha={isInvalid:!1,validationDetails:od,validationErrors:[]},TN=N.createContext({}),pc="__formValidationState"+Date.now();function AN(e){if(e[pc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[pc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return RN(e)}function RN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:tE}:null,u=N.useMemo(()=>{if(!o||i==null)return null;let T=BN(o,i);return cb(T)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let c=N.useContext(TN),p=N.useMemo(()=>r?Array.isArray(r)?r.flatMap(T=>E0(c[T])):E0(c[r]):[],[c,r]),[h,d]=N.useState(c),[v,m]=N.useState(!1);c!==h&&(d(c),m(!1));let b=N.useMemo(()=>cb(v?[]:p),[v,p]),f=N.useRef(ha),[y,C]=N.useState(ha),S=N.useRef(ha),w=()=>{if(!E)return;x(!1);let T=u||a||f.current;Yf(T,S.current)||(S.current=T,C(T))},[E,x]=N.useState(!1);return N.useEffect(w),{realtimeValidation:l||b||u||a||ha,displayValidation:s==="native"?l||b||y:l||b||u||a||y,updateValidation(T){s==="aria"&&!Yf(y,T)?C(T):f.current=T},resetValidation(){let T=ha;Yf(T,S.current)||(S.current=T,C(T)),s==="native"&&x(!1),m(!0)},commitValidation(){s==="native"&&x(!0),m(!0)}}}function E0(e){return e?Array.isArray(e)?e:[e]:[]}function BN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return E0(n)}return[]}function cb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tE}:null}function Yf(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function mc(...e){let t=new Set,n=!1,r={...od};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function kN(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ao(t);let o=Ao(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=dp({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function PN(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=kN(e),s=d0([!!t,!!n,r,i]),l=d0([!!t,!!n,r,i]);return o=kn(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var nE={};nE={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var rE={};rE={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var iE={};iE={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var aE={};aE={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var oE={};oE={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var sE={};sE={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var lE={};lE={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var uE={};uE={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var cE={};cE={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var dE={};dE={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var fE={};fE={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var hE={};hE={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var gE={};gE={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var pE={};pE={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var mE={};mE={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var vE={};vE={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var bE={};bE={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var yE={};yE={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var xE={};xE={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var CE={};CE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var EE={};EE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var SE={};SE={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var wE={};wE={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var IE={};IE={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var _E={};_E={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var DE={};DE={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var TE={};TE={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var AE={};AE={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var RE={};RE={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var BE={};BE={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var kE={};kE={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var PE={};PE={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var $E={};$E={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var FE={};FE={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var NE={};NE={"ar-AE":nE,"bg-BG":rE,"cs-CZ":iE,"da-DK":aE,"de-DE":oE,"el-GR":sE,"en-US":lE,"es-ES":uE,"et-EE":cE,"fi-FI":dE,"fr-FR":fE,"he-IL":hE,"hr-HR":gE,"hu-HU":pE,"it-IT":mE,"ja-JP":vE,"ko-KR":bE,"lt-LT":yE,"lv-LV":xE,"nb-NO":CE,"nl-NL":EE,"pl-PL":SE,"pt-BR":wE,"pt-PT":IE,"ro-RO":_E,"ru-RU":DE,"sk-SK":TE,"sl-SI":AE,"sr-SP":RE,"sv-SE":BE,"tr-TR":kE,"uk-UA":PE,"zh-CN":$E,"zh-TW":FE};function $N(e,t,n){let{direction:r}=yr(),i=N.useMemo(()=>g3(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let u=l.target,c=db(t.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let u=l.target,c=db(t.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=oo(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let p;do p=c.lastChild(),p&&(u=p);while(p)}for(;u!=null&&u.hasAttribute("data-placeholder");){let p=c.previousNode();if(p&&p.hasAttribute("data-placeholder"))u=p;else break}u&&u.focus()},{pressProps:s}=pp({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return kn(s,{onKeyDown:a})}function db(e,t,n){let r=oo(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,u=Math.abs(l);Math.sign(l)===n&&u<o&&(a=i,o=u),i=r.nextNode()}return a}const FN="__role_"+Date.now(),NN="__focusManager_"+Date.now();function MN(e){return e&&e.__esModule?e.default:e}function ON(e,t,n){var r,i,a,o,s;let l=xl(MN(NE),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:d,descriptionProps:v,errorMessageProps:m}=PN({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),b=d["aria-labelledby"]||d.id,{locale:f}=yr(),y=t.formatValue(f,{month:"long"}),C=y?l.format("selectedRangeDescription",{startDate:y.start,endDate:y.end}):"",S=G4(C),w={"aria-label":l.format("startDate"),"aria-labelledby":b},E={"aria-label":l.format("endDate"),"aria-labelledby":b},x=Ao(),g=Ao(),I=$N(t,n),T=[S["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=N.useMemo(()=>g3(n,{accept:W=>W.id!==x}),[n,x]),A={[NN]:_,[FN]:"presentation","aria-describedby":T,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=lp(e),B=N.useRef(!1),{focusWithinProps:$}=s3({...e,isDisabled:t.isOpen,onBlurWithin:W=>{let U=document.getElementById(g);if(!(U!=null&&U.contains(W.relatedTarget))){var J,Q;B.current=!1,(J=e.onBlur)===null||J===void 0||J.call(e,W),(Q=e.onFocusChange)===null||Q===void 0||Q.call(e,!1)}},onFocusWithin:W=>{if(!B.current){var U,J;B.current=!0,(U=e.onFocus)===null||U===void 0||U.call(e,W),(J=e.onFocusChange)===null||J===void 0||J.call(e,!0)}}}),k=N.useRef(ha),O=N.useRef(ha);var M,G;return{groupProps:kn(F,I,d,S,$,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":T,onKeyDown(W){t.isOpen||e.onKeyDown&&e.onKeyDown(W)},onKeyUp(W){t.isOpen||e.onKeyUp&&e.onKeyUp(W)}}),labelProps:{...h,onClick:()=>{_.focusFirst()}},buttonProps:{...S,id:x,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${x} ${b}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:g,"aria-labelledby":`${x} ${b}`},startFieldProps:{...w,...A,value:(M=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&M!==void 0?M:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:W=>t.setDateTime("start",W),autoFocus:e.autoFocus,name:e.startName,form:e.form,[pc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(W){k.current=W,t.updateValidation(mc(W,O.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...E,...A,value:(G=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&G!==void 0?G:null,defaultValue:(o=t.defaultValue)===null||o===void 0?void 0:o.end,onChange:W=>t.setDateTime("end",W),name:e.endName,form:e.form,[pc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(W){O.current=W,t.updateValidation(mc(k.current,W))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:v,errorMessageProps:m,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:p}}function xo(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function S0(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=va(e,t,n).subtract(a);return Ws(e,o,t,n,r,i)}function va(e,t,n,r,i){let a=e;return t.years?a=d$(e):t.months?a=vl(e):t.weeks&&(a=Ls(e,n)),Ws(e,a,t,n,r,i)}function w0(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=va(e,t,n).subtract(a);return Ws(e,o,t,n,r,i)}function Ws(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=qg(t,va(Hn(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=Zg(t,w0(Hn(a),n,r));o&&(t=o)}return t}function Bi(e,t,n){if(t){let r=qg(e,Hn(t));r&&(e=r)}if(n){let r=Zg(e,Hn(n));r&&(e=r)}return e}function ME(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function OE(e){let t=N.useMemo(()=>new bo(e.locale),[e.locale]),n=N.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:p}=e,h=N.useMemo(()=>i(n.calendar),[i,n.calendar]);var d;let[v,m]=zs(e.value,(d=e.defaultValue)!==null&&d!==void 0?d:null,e.onChange),b=N.useMemo(()=>v?tn(Hn(v),h):null,[v,h]),f=N.useMemo(()=>v&&"timeZone"in v?v.timeZone:n.timeZone,[v,n.timeZone]),y=N.useMemo(()=>e.focusedValue?Bi(tn(Hn(e.focusedValue),h),o,s):void 0,[e.focusedValue,h,o,s]),C=N.useMemo(()=>Bi(e.defaultFocusedValue?tn(Hn(e.defaultFocusedValue),h):b||tn(Yg(f),h),o,s),[e.defaultFocusedValue,b,f,h,o,s]),[S,w]=zs(y,C,e.onFocusChange),[E,x]=N.useState(()=>{switch(l){case"start":return va(S,a,r,o,s);case"end":return w0(S,a,r,o,s);case"center":default:return S0(S,a,r,o,s)}}),[g,I]=N.useState(e.autoFocus||!1),T=N.useMemo(()=>{let U={...a};return U.days?U.days--:U.days=-1,E.add(U)},[E,a]),[_,A]=N.useState(h);if(!Xg(h,_)){let U=tn(S,h);x(S0(U,a,r,o,s)),w(U),A(h)}xo(S,o,s)?w(Bi(S,o,s)):S.compare(E)<0?x(w0(S,a,r,o,s)):S.compare(T)>0&&x(va(S,a,r,o,s));function F(U){U=Bi(U,o,s),w(U)}function B(U){if(!e.isDisabled&&!e.isReadOnly){let J=U;if(J===null){m(null);return}if(J=Bi(J,o,s),J=ME(J,E,u),!J)return;J=tn(J,(v==null?void 0:v.calendar)||new zn),v&&"hour"in v?m(v.set(J)):m(J)}}let $=N.useMemo(()=>b?u&&u(b)?!0:xo(b,o,s):!1,[b,u,o,s]),k=e.isInvalid||e.validationState==="invalid"||$,O=k?"invalid":null,M=N.useMemo(()=>c==="visible"?a:Kf(a),[c,a]);var G,W;return{isDisabled:(G=e.isDisabled)!==null&&G!==void 0?G:!1,isReadOnly:(W=e.isReadOnly)!==null&&W!==void 0?W:!1,value:b,setValue:B,visibleRange:{start:E,end:T},minValue:o,maxValue:s,focusedDate:S,timeZone:f,validationState:O,isValueInvalid:k,setFocusedDate(U){F(U),I(!0)},focusNextDay(){F(S.add({days:1}))},focusPreviousDay(){F(S.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&F(S.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&F(S.subtract({weeks:1}))},focusNextPage(){let U=E.add(M);w(Bi(S.add(M),o,s)),x(va(Ws(S,U,M,r,o,s),M,r))},focusPreviousPage(){let U=E.subtract(M);w(Bi(S.subtract(M),o,s)),x(va(Ws(S,U,M,r,o,s),M,r))},focusSectionStart(){a.days?F(E):a.weeks?F(Ls(S,r)):(a.months||a.years)&&F(vl(S))},focusSectionEnd(){a.days?F(T):a.weeks?F(f$(S,r)):(a.months||a.years)&&F(i0(S))},focusNextSection(U){if(!U&&!a.days){F(S.add(Kf(a)));return}a.days?this.focusNextPage():a.weeks?F(S.add({months:1})):(a.months||a.years)&&F(S.add({years:1}))},focusPreviousSection(U){if(!U&&!a.days){F(S.subtract(Kf(a)));return}a.days?this.focusPreviousPage():a.weeks?F(S.subtract({months:1})):(a.months||a.years)&&F(S.subtract({years:1}))},selectFocusedDate(){u&&u(S)||B(S)},selectDate(U){B(U)},isFocused:g,setFocused:I,isInvalid(U){return xo(U,o,s)},isSelected(U){return b!=null&&It(U,b)&&!this.isCellDisabled(U)&&!this.isCellUnavailable(U)},isCellFocused(U){return g&&S&&It(U,S)},isCellDisabled(U){return e.isDisabled||U.compare(E)<0||U.compare(T)>0||this.isInvalid(U)},isCellUnavailable(U){return e.isDateUnavailable?e.isDateUnavailable(U):!1},isPreviousVisibleRangeInvalid(){let U=E.subtract({days:1});return It(U,E)||this.isInvalid(U)},isNextVisibleRangeInvalid(){let U=T.add({days:1});return It(U,T)||this.isInvalid(U)},getDatesInWeek(U,J=E){let Q=J.add({weeks:U}),Z=[];Q=Ls(Q,r,p);let ee=nd(Q,r,p);for(let q=0;q<ee;q++)Z.push(null);for(;Z.length<7;){Z.push(Q);let q=Q.add({days:1});if(It(Q,q))break;Q=q}for(;Z.length<7;)Z.push(null);return Z}}}function Kf(e){let t={...e};for(let n in e)t[n]=1;return t}function LN(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,p]=zs(t,n||null,r),[h,d]=N.useState(null),v="center";if(c&&c.start&&c.end){let M=S0(Hn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(M)>0&&(v="start")}let m=N.useRef(null),[b,f]=N.useState(null),y=N.useMemo(()=>qg(s,b==null?void 0:b.start),[s,b]),C=N.useMemo(()=>Zg(l,b==null?void 0:b.end),[l,b]),S=OE({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:y,maxValue:C,selectionAlignment:v}),w=O=>{if(O&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=hb(O,S,-1),G=hb(O,S,1);m.current={start:M,end:G},f(m.current)}else m.current=null,f(null)},[E,x]=N.useState(S.visibleRange);(!r0(S.visibleRange.start,E.start)||!r0(S.visibleRange.end,E.end))&&(w(h),x(S.visibleRange));let g=O=>{O?(d(O),w(O)):(d(null),w(null))},I=h?Zf(h,S.focusedDate):c&&Zf(c.start,c.end),T=O=>{if(e.isReadOnly)return;const M=Bi(O,y,C),G=ME(M,S.visibleRange.start,e.isDateUnavailable);if(G)if(!h)g(G);else{let W=Zf(h,G);W&&p({start:fb(W.start,c==null?void 0:c.start),end:fb(W.end,c==null?void 0:c.end)}),g(null)}},[_,A]=N.useState(!1),{isDateUnavailable:F}=e,B=N.useMemo(()=>!c||h?!1:F&&(F(c.start)||F(c.end))?!0:xo(c.start,s,l)||xo(c.end,s,l),[F,c,h,s,l]),$=e.isInvalid||e.validationState==="invalid"||B;return{...S,value:c,setValue:p,anchorDate:h,setAnchorDate:g,highlightedRange:I,validationState:$?"invalid":null,isValueInvalid:$,selectFocusedDate(){T(S.focusedDate)},selectDate:T,highlightDate(O){h&&S.setFocusedDate(O)},isSelected(O){return!!(I&&O.compare(I.start)>=0&&O.compare(I.end)<=0&&!S.isCellDisabled(O)&&!S.isCellUnavailable(O))},isInvalid(O){var M,G;return S.isInvalid(O)||xo(O,(M=m.current)===null||M===void 0?void 0:M.start,(G=m.current)===null||G===void 0?void 0:G.end)},isDragging:_,setDragging:A}}function Zf(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Hn(e),end:Hn(t)})}function fb(e,t){return e=tn(e,(t==null?void 0:t.calendar)||new zn),t&&"hour"in t?t.set(e):e}function hb(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}function VN(e){let[t,n]=zs(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=N.useCallback(()=>{n(!0)},[n]),i=N.useCallback(()=>{n(!1)},[n]),a=N.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var LE={};LE={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var VE={};VE={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var HE={};HE={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var jE={};jE={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var zE={};zE={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var GE={};GE={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var WE={};WE={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var UE={};UE={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var XE={};XE={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var YE={};YE={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var KE={};KE={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var ZE={};ZE={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var qE={};qE={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var JE={};JE={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var QE={};QE={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var eS={};eS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var tS={};tS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var nS={};nS={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var rS={};rS={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var iS={};iS={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var aS={};aS={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var oS={};oS={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var sS={};sS={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var lS={};lS={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var uS={};uS={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var cS={};cS={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var dS={};dS={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var fS={};fS={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var hS={};hS={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var gS={};gS={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var pS={};pS={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var mS={};mS={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var vS={};vS={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var bS={};bS={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var yS={};yS={"ar-AE":LE,"bg-BG":VE,"cs-CZ":HE,"da-DK":jE,"de-DE":zE,"el-GR":GE,"en-US":WE,"es-ES":UE,"et-EE":XE,"fi-FI":YE,"fr-FR":KE,"he-IL":ZE,"hr-HR":qE,"hu-HU":JE,"it-IT":QE,"ja-JP":eS,"ko-KR":tS,"lt-LT":nS,"lv-LV":rS,"nb-NO":iS,"nl-NL":aS,"pl-PL":oS,"pt-BR":sS,"pt-PT":lS,"ro-RO":uS,"ru-RU":cS,"sk-SK":dS,"sl-SI":fS,"sr-SP":hS,"sv-SE":gS,"tr-TR":pS,"uk-UA":mS,"zh-CN":vS,"zh-TW":bS};function HN(e){return e&&e.__esModule?e.default:e}const xS=new Va(HN(yS));function CS(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function gb(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=CS(),p=Va.getGlobalDictionaryForPackage("@react-stately/datepicker")||xS,h=new f3(c,p),d=new bo(c,Ru({},i)),v=d.resolvedOptions().timeZone;o&&t!=null&&u.push(h.format("rangeUnderflow",{minValue:d.format(t.toDate(v))})),a&&n!=null&&u.push(h.format("rangeOverflow",{maxValue:d.format(n.toDate(v))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function jN(e,t,n,r,i){var a;let o=gb((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=gb((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),u=mc(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let c=Va.getGlobalDictionaryForPackage("@react-stately/datepicker")||xS;u=mc(u,{isInvalid:!0,validationErrors:[c.getStringForLocale("rangeReversed",CS())],validationDetails:{...od,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return u}const zN={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},GN={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Ru(e,t){e={...t.shouldForceLeadingZeros?GN:zN,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,p)=>(c[p]=e[p],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function ql(e){return e&&"hour"in e?e:new ip}function WN(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=N.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function UN(e){var t,n;let r=VN(e),[i,a]=zs(e.value,e.defaultValue||null,e.onChange),[o]=N.useState(i),[s,l]=N.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},l(s));let u=i||s,c=M=>{u=M||{start:null,end:null},l(u),ia(u)?a(u):a(null)},p=(u==null?void 0:u.start)||(u==null?void 0:u.end)||e.placeholderValue||null,[h,d]=WN(p,e.granularity),v=h==="hour"||h==="minute"||h==="second";var m;let b=(m=e.shouldCloseOnSelect)!==null&&m!==void 0?m:!0,[f,y]=N.useState(null),[C,S]=N.useState(null);u&&ia(u)&&(f=u,"hour"in u.start&&(C=u));let w=(M,G)=>{c({start:"timeZone"in G.start?G.start.set(Hn(M.start)):Xi(M.start,G.start),end:"timeZone"in G.end?G.end.set(Hn(M.end)):Xi(M.end,G.end)}),y(null),S(null),B.commitValidation()},E=M=>{let G=typeof b=="function"?b():b;v?ia(M)&&(G||C!=null&&C.start&&(C!=null&&C.end))?w(M,{start:(C==null?void 0:C.start)||ql(e.placeholderValue),end:(C==null?void 0:C.end)||ql(e.placeholderValue)}):y(M):ia(M)?(c(M),B.commitValidation()):y(M),G&&r.setOpen(!1)},x=M=>{ia(f)&&ia(M)?w(f,M):S(M)},g=(u==null||(t=u.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&u.start.era==="BC"||(u==null||(n=u.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&u.end.era==="BC",I=N.useMemo(()=>({granularity:h,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:g}),[h,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,g]),{minValue:T,maxValue:_,isDateUnavailable:A}=e,F=N.useMemo(()=>jN(u,T,_,A,I),[u,T,_,A,I]),B=AN({...e,value:i,name:N.useMemo(()=>[e.startName,e.endName].filter(M=>M!=null),[e.startName,e.endName]),builtinValidation:F}),$=B.displayValidation.isInvalid,k=e.validationState||($?"invalid":null);var O;return{...B,value:u,defaultValue:(O=e.defaultValue)!==null&&O!==void 0?O:o,setValue:c,dateRange:f,timeRange:C,granularity:h,hasTime:v,setDate(M,G){var W,U;E(M==="start"?{start:G,end:(W=f==null?void 0:f.end)!==null&&W!==void 0?W:null}:{start:(U=f==null?void 0:f.start)!==null&&U!==void 0?U:null,end:G})},setTime(M,G){var W,U;x(M==="start"?{start:G,end:(W=C==null?void 0:C.end)!==null&&W!==void 0?W:null}:{start:(U=C==null?void 0:C.start)!==null&&U!==void 0?U:null,end:G})},setDateTime(M,G){var W,U;c(M==="start"?{start:G,end:(W=u==null?void 0:u.end)!==null&&W!==void 0?W:null}:{start:(U=u==null?void 0:u.start)!==null&&U!==void 0?U:null,end:G})},setDateRange:E,setTimeRange:x,...r,setOpen(M){!M&&!(u!=null&&u.start&&(u!=null&&u.end))&&ia(f)&&v&&w(f,{start:(C==null?void 0:C.start)||ql(e.placeholderValue),end:(C==null?void 0:C.end)||ql(e.placeholderValue)}),r.setOpen(M)},validationState:k,isInvalid:$,formatValue(M,G){if(!u||!u.start||!u.end)return null;let W="timeZone"in u.start?u.start.timeZone:void 0,U=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),J="timeZone"in u.end?u.end.timeZone:void 0,Q=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),Z=Ru(G,{granularity:U,timeZone:W,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:u.start.calendar.identifier==="gregory"&&u.start.era==="BC"||u.end.calendar.identifier==="gregory"&&u.end.era==="BC"}),ee=u.start.toDate(W||"UTC"),q=u.end.toDate(J||"UTC"),le=new bo(M,Z),re;if(W===J&&U===Q&&u.start.compare(u.end)!==0){try{let R=le.formatRangeToParts(ee,q),H=-1;for(let L=0;L<R.length;L++){let K=R[L];if(K.source==="shared"&&K.type==="literal")H=L;else if(K.source==="endRange")break}let V="",D="";for(let L=0;L<R.length;L++)L<H?V+=R[L].value:L>H&&(D+=R[L].value);return{start:V,end:D}}catch{}re=le}else{let R=Ru(G,{granularity:Q,timeZone:J,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});re=new bo(M,R)}return{start:le.format(ee),end:re.format(q)}},getDateFormatter(M,G){let W={...I,...G},U=Ru({},W);return new bo(M,U)}}}function ia(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const ES=e=>{const t=N.useRef(null),{locale:n}=yr(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:p}=DN({date:i},r,t),{focusProps:h}=p3(),d="highlightedRange"in r?r.highlightedRange?It(i,r.highlightedRange.start):null:s,v="highlightedRange"in r?r.highlightedRange?It(i,r.highlightedRange.end):null:s,m=nd(i,n),b=s&&(d||m===0||i.day===1),f=s&&(v||m===6||i.day===i.calendar.getDaysInMonth(i));return P.jsx("td",{...a,children:P.jsx("div",{...kn(o,h),ref:t,className:`${Ae["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${f?"1ru-rounded-r-full":""} ${s?p?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?P.jsx("div",{className:Ae["visible-cell-calendar"],children:c}):P.jsx("div",{className:`${Ae["active-cell-calendar"]} ${u&&!p?Ae.disabled:""} ${d||v?p?Ae.error:Ae.selected:""} ${s&&!u&&!(d??v)?p?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},Bo=e=>{const t=N.useRef(null),{buttonProps:n}=xN(e,t),{focusProps:r}=p3();return P.jsx("button",{...kn(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},SS=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a,hiddenHeader:o})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=Yi({month:"short",timeZone:n.timeZone}),c=(h,d)=>{const v=n.focusedDate.set({month:h});d?(r("date"),n.setFocusedDate(v)):!d&&typeof i=="function"&&i(v)},p=h=>{const d=n.focusedDate.set({year:h});n.setFocusedDate(d)};return P.jsxs("div",{className:`1ru-w-[296px] ${Ae["container-calendar"]}`,children:[!o&&P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>p(n.focusedDate.year-1),children:typeof e=="function"||N.isValidElement(e)?N.isValidElement(e)?e:e():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:`${Ae["header-button-calendar"]} ${a.includes("year")?"":Ae.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),P.jsx(Bo,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>p(n.focusedDate.year+1),children:typeof t=="function"||N.isValidElement(t)?N.isValidElement(t)?t:t():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsx("div",{className:Ae["month-calendar"],children:[...Array(l).keys()].map(h=>{var C,S,w,E;const d=n.focusedDate.set({month:h+1}),v=u.format(d.toDate(n.timeZone)),m=((C=n.value)==null?void 0:C.year)||((w=(S=n.value)==null?void 0:S.start)==null?void 0:w.year)||s,b=n!=null&&n.minValue?d.month<((E=n==null?void 0:n.minValue)==null?void 0:E.month)&&d.year<=n.minValue.year:!1,f=n!=null&&n.maxValue?d.month>n.maxValue.month&&d.year>=n.maxValue.year:!1,y=b||f;return P.jsx("div",{onClick:()=>{y||c(d.month,a.includes("date"))},className:`${Ae["cell-month"]} ${n.focusedDate.month===d.month&&!y&&d.year===m?Ae.selected:""} ${n.focusedDate.month!==d.month&&!y?"hover:1ru-bg-laba-blue-01":""} ${y?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:v},h)})})]})},XN=e=>{const t=Kg(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=eE({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Q3(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return P.jsxs("div",{children:[!e.hiddenHeader&&P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||N.isValidElement(e==null?void 0:e.prevIcon)?N.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:Ae["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),P.jsx(Bo,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||N.isValidElement(e==null?void 0:e.nextIcon)?N.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsxs("table",{...n,children:[P.jsx("thead",{...r,children:P.jsx("tr",{children:i.map((u,c)=>P.jsx("th",{className:Ae["days-calendar"],children:l(c)},c))})}),P.jsx("tbody",{children:[...new Array(t).keys()].map(u=>P.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,p)=>c?P.jsx(ES,{state:e.state,date:c},p):P.jsx("td",{},p))},u))})]})]})},YN=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:a})=>{const o=e?new Date(e):null,s=t?new Date(t):null,l=o==null?void 0:o.getHours(),u=s==null?void 0:s.getHours(),c=o==null?void 0:o.getMinutes(),p=s==null?void 0:s.getMinutes(),[h,d]=N.useState(!0),v=(y,C,S)=>Array.from({length:(C-y)/S+1},(w,E)=>y+E*S),m=(y,C)=>{typeof a=="function"&&a({hour:y,minut:C,second:r==null?void 0:r.second})},b=()=>{const y=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),C=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),S=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");y&&S&&S.scrollTo({behavior:"instant",top:y.offsetTop-75}),C&&w&&w.scrollTo({behavior:"instant",top:C.offsetTop-75})},f=(y,C)=>{let S=!0;if(o&&n){const w=n.year===o.getFullYear(),E=n.month===o.getMonth()+1;n.day===o.getDate()&&E&&w?(C==="hour"&&y<(l??0)||C==="minut"&&((r==null?void 0:r.hour)??0)<=o.getHours()&&y<(c??0))&&(S=!1):n.toDate(Ta()).getTime()<o.getTime()&&(S=!1)}if(s&&n){const w=n.year===s.getFullYear(),E=n.month===s.getMonth()+1;n.day===s.getDate()&&E&&w?(C==="hour"&&y>(u??0)||C==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&y>(p??0))&&(S=!1):n.toDate(Ta()).getTime()>s.getTime()&&(S=!1)}return S};return N.useEffect(()=>{h&&b(),r&&d(!1)},[JSON.stringify(n)]),P.jsxs("div",{className:Ae["custom-time-calendar"],children:[!i&&P.jsx("div",{className:Ae["header-time"],children:"Atur Waktu"}),P.jsxs("div",{className:Ae["type-time"],children:[P.jsx("div",{children:"Jam"}),P.jsx("div",{children:"Menit"})]}),P.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[P.jsx("div",{id:"wrapper-calendar-hour",className:Ae["container-cell-time"],children:v(0,23,1).map(y=>P.jsx("div",{id:`calendar-hour-${y}`,className:`${Ae["cell-time"]} ${(r==null?void 0:r.hour)===y?f(y,"hour")?Ae.selected:Ae.error:""} ${f(y,"hour")&&(r==null?void 0:r.hour)!=y?Ae.valid:Ae.invalid}`,onClick:()=>{f(y,"hour")&&m(y,r==null?void 0:r.minut)},children:y<10?`0${y}`:y},y))}),P.jsx("div",{id:"wrapper-calendar-minut",className:Ae["container-cell-time"],children:v(0,59,1).map(y=>P.jsx("div",{id:`calendar-minut-${y}`,className:`${Ae["cell-time"]} ${(r==null?void 0:r.minut)===y?f(y,"minut")?Ae.selected:Ae.error:""} ${f(y,"minut")&&(r==null?void 0:r.minut)!=y?Ae.valid:Ae.invalid}`,onClick:()=>{f(y,"minut")&&m(r==null?void 0:r.hour,y)},children:y<10?`0${y}`:y},y))})]})]})},sd=e=>{const t=OE({...e,locale:e.locale,createCalendar:yl}),{title:n}=Q3(e,t),[r,i]=N.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Gi(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),P.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&P.jsx(P.Fragment,{children:P.jsxs("div",{className:Ae["container-calendar"],children:[P.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[P.jsx(XN,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&P.jsx(YN,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&P.jsxs("div",{className:`${Ae["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?P.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):P.jsx(mr,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?P.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):P.jsx(mr,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&P.jsx(SS,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a,hiddenHeader:e.hiddenHeader}),r==="year"&&P.jsx(w2,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a,hiddenHeader:e.hiddenHeader})]})},KN=e=>{const t=N.useRef(null),{locale:n}=yr(),r=LN({...e,locale:n,createCalendar:yl}),i=m=>{let b="";switch(m){case 0:b="Min";break;case 1:b="Sen";break;case 2:b="Sel";break;case 3:b="Rab";break;case 4:b="Kam";break;case 5:b="Jum";break;case 6:b="Sab";break}return b},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=IN(e,r,t),{gridProps:u,headerProps:c,weekDays:p}=eE({},r),h=Kg(r.visibleRange.start,n),[d,v]=N.useState("date");return P.jsxs("div",{className:"1ru-text-laba-base-sr",children:[d==="date"&&P.jsx(P.Fragment,{children:P.jsx("div",{...a,ref:t,children:P.jsxs("div",{className:Ae["container-calendar"],children:[P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||N.isValidElement(e==null?void 0:e.prevIcon)?N.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:Ae["header-button-calendar"],onClick:()=>v("month"),children:l}),P.jsx(Bo,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||N.isValidElement(e==null?void 0:e.nextIcon)?N.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[P.jsx("thead",{...c,className:"text-gray-600",children:P.jsx("tr",{children:p.map((m,b)=>P.jsx("th",{className:Ae["days-calendar"],children:i(b)},b))})}),P.jsx("tbody",{children:[...new Array(h).keys()].map(m=>P.jsx("tr",{children:r.getDatesInWeek(m).map((b,f)=>b?P.jsx(ES,{state:r,date:b},f):P.jsx("td",{},f))},m))})]}),e.withConfirm&&P.jsxs("div",{className:Ae["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?P.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):P.jsx(mr,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?P.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):P.jsx(mr,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),d==="month"&&P.jsx(SS,{state:r,setActiveTypeCalendar:v,type:["date","month","year"]}),d==="year"&&P.jsx(w2,{state:r,setActiveTypeCalendar:v,title:l,type:["date","month","year"]})]})},wS=e=>{const t=UN(e),n=N.useRef(null),{calendarProps:r}=ON(e,t,n);return P.jsx("div",{ref:n,children:P.jsx(KN,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Jl=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},ZN=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:p,prevIcon:h,nextIcon:d,onChange:v,id:m="date-picker",idPopover:b="date-picker-popover",floatingOptions:f={},offsetPopover:y=5,zIndexPopper:C=1,hiddenHeader:S}=e,w=Yi(),{locale:E}=yr(),x=Jl(t),g=Jl(n),I=N.useRef(null),[T,_]=N.useState(),[A,F]=N.useState(),B=G=>{var Z;const W=new Date;let U=G.toDate(Ta());U.setHours(W.getHours(),W.getMinutes(),W.getSeconds());const J=t?new Date(t):null,Q=n?new Date(n):null;if(o){if(U=new Date(new Date(U).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),J&&(J==null?void 0:J.toDateString())===new Date(U).toDateString()&&(J==null?void 0:J.toTimeString())>=(U==null?void 0:U.toTimeString())){if(J&&(J.getHours()>U.getHours()||J.getHours()===U.getHours()&&J.getMinutes()>U.getMinutes()))return;U=new Date(J.setSeconds(J.getSeconds()+1))}if(Q&&(Q==null?void 0:Q.toDateString())===new Date(U).toDateString()&&(Q==null?void 0:Q.toTimeString())<(U==null?void 0:U.toTimeString())){if(Q&&(Q.getHours()<U.getHours()||Q.getHours()===U.getHours()&&Q.getMinutes()<U.getMinutes()))return;U=new Date(Q.setSeconds(Q.getSeconds()-1))}}else J&&w.format(U)===w.format(J)&&J.getTime()>=U.getTime()?U=new Date(J.setSeconds(J.getSeconds()+1)):Q&&w.format(U)===w.format(Q)&&Q.getTime()<=U.getTime()&&(U=new Date(Q.setSeconds(Q.getSeconds()-1)));typeof v=="function"&&(v(U),(Z=I.current)==null||Z.setShow(!1))},$=(G,W)=>{_(G),(W??(!a&&!o))&&B(G)},k=G=>{F(G)},O=G=>{const W=new Date(r??new Date);F({hour:W.getHours(),minut:W.getMinutes(),second:W.getSeconds()}),_(Jl(r))},M=()=>{T&&$(T,!0)};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:m,onClick:G=>{var W;(W=I.current)==null||W.handlerShow(G),O()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),P.jsx(bi,{zIndex:C,ref:I,offset:y,id:b,floatingOptions:{placement:"bottom-end",...f},children:P.jsx("div",{className:s??"",children:P.jsx(bp,{locale:"id-ID",children:P.jsx(sd,{minValue:x,maxValue:g,minDate:t,maxDate:n,time:A,locale:E,value:T,buttonReset:c,buttonSubmit:p,prevIcon:h,nextIcon:d,createCalendar:yl,defaultValue:Jl(r),onChange:$,handlerReset:()=>{var G;typeof v=="function"&&(v(i),(G=I.current)==null||G.setShow(!1))},handlerSubmit:M,handlerChangeTime:k,withConfirm:a,isCustomTime:o,type:["date","month","year"],hiddenHeader:S})})})})]})},qf=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},pb=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new wt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new wt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},IS=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:p}=e,{locale:h}=yr(),d=qf(t),v=qf(n),[m,b]=N.useState(),f=w=>{typeof c=="function"&&c(w)},y=(w,E)=>{const x=w.start.toDate(Ta()),g=w.end.toDate(Ta());b(w),(E??!i)&&f({startDate:x,endDate:new Date(g.setHours(23,59,59))})},C=w=>{if(typeof p=="function")p();else if(r&&w){const E=new Date(r.endDate??new Date),x=w.focusedDate.set({month:E.getMonth()+1,year:E.getFullYear()});w.setFocusedDate(x)}b(pb(r))},S=()=>{m&&y(m,!0)};return P.jsx("div",{className:"1ru-flex 1ru-flex-col",children:P.jsxs(bp,{locale:"id-ID",children:[u==="RANGE"&&P.jsx(wS,{defaultValue:pb(r),value:m,minValue:d,maxValue:v,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:w=>y(w),handlerReset:C,handlerSubmit:S}),u==="SINGLE"&&P.jsx(sd,{defaultValue:qf(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:d,maxValue:v,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:yl,onChange:w=>y({start:w,end:w}),handlerReset:C,handlerSubmit:S,type:["date","month","year"]})]})})},qN=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:p="filter-date-popover",id:h="filter-date",floatingOptions:d={},offsetPopover:v=5,zIndexPopper:m=0,defaultValueLabel:b,mountedExecuteChange:f=!0,formatingDate:y})=>{const C=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],S=N.useRef(null),[w,E]=N.useState(),[x,g]=N.useState(),[I,T]=N.useState(),_=(Z,ee)=>{const q=new Date(Z??new Date);return ee==="start"?new Date(q.setHours(0,0,0)):new Date(q.setHours(23,59,59))},A=()=>{const Z=new Date;return{startDate:Z,endDate:Z}},F=()=>{const Z=new Date;Z.setDate(Z.getDate()-Z.getDay());const ee=new Date;return ee.setDate(ee.getDate()+(6-ee.getDay())),{startDate:Z,endDate:ee}},B=()=>{const Z=new Date,ee=new Date(Z.getFullYear(),Z.getMonth(),1),q=new Date(Z.getFullYear(),Z.getMonth()+1,0);return{startDate:ee,endDate:q}},$=()=>{const Z=new Date(new Date().getFullYear(),0,1),ee=new Date(new Date().getFullYear(),11,31);return{startDate:Z,endDate:ee}},k=()=>{const Z=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:Z,endDate:Z}},O=()=>{const Z=new Date;Z.setDate(Z.getDate()-(7+Z.getDay()));const ee=new Date;return ee.setDate(ee.getDate()-(ee.getDay()+1)),{startDate:Z,endDate:ee}},M=()=>{const Z=new Date,ee=new Date(Z.getFullYear(),Z.getMonth()-1,1),q=new Date(Z.getFullYear(),Z.getMonth(),0);return{startDate:ee,endDate:q}},G=()=>{const Z=new Date(new Date().getFullYear()-1,0,1),ee=new Date(new Date().getFullYear()-1,11,31);return{startDate:Z,endDate:ee}},W=(Z,ee,q)=>{var le;if(T(Z),typeof c=="function"){let re=Z;y==="string"&&Z?re={startDate:io(Z.startDate,y),endDate:io(Z.endDate,y)}:typeof y=="boolean"&&Z&&(re={startDate:io(Z.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:io(Z.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(le=S.current)==null||le.setShow(!1),c(re,ee??"",q)}},U=(Z,ee)=>{E(Z);let q;if((Z==null?void 0:Z.key)!=="custom"){switch(g(Z),Z==null?void 0:Z.key){case"thisDay":q=A();break;case"thisWeek":q=F();break;case"thisMonth":q=B();break;case"thisYear":q=$();break;case"yesterday":q=k();break;case"lastWeek":q=O();break;case"lastMonth":q=M();break;case"lastYear":q=G();break}q&&ee&&W({startDate:_(q.startDate,"start"),endDate:_(q.endDate,"end")},Z==null?void 0:Z.value,Z)}},J=(Z,ee)=>{const q=(l??C).find(le=>le.key===Z);!Z&&!q?(ee&&W(),U(void 0,ee),g(void 0)):typeof Z=="object"?(ee&&W({startDate:_(Z.startDate,"start"),endDate:_(Z.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),U({key:"custom",value:"Kustom"},ee),g({key:"custom",value:"Kustom"})):(U(q,ee),g(q))},Q=()=>{var Z;if(e){T(e);const ee=(Z=l??C)==null?void 0:Z.find(q=>q.key===e.label||q.value===e.label);Object.keys(ee||{}).length>0&&E(ee)}else E(void 0),g(void 0)};return N.useEffect(()=>{Q()},[JSON.stringify(e)]),N.useEffect(()=>{J(b??e,f)},[]),P.jsxs(P.Fragment,{children:[P.jsxs("div",{onClick:Z=>{var ee;(ee=S.current)==null||ee.handlerShow(Z),Q()},className:o,id:h,children:[N.isValidElement(s)&&s,typeof s=="function"?s(I,x):"Pilih Filter"]}),P.jsx(bi,{zIndex:m,ref:S,offset:v,id:p,floatingOptions:{placement:"bottom-end",...d},children:P.jsxs("div",{className:`${Ae["container-filter-date"]} ${a}`,children:[P.jsx("div",{children:(l??C).map((Z,ee)=>P.jsx("div",{className:`${Ae["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(w==null?void 0:w.key)===Z.key?"1ru-text-laba-blue-10":""}`,onClick:()=>U(Z,!0),children:Z.value},ee))}),(w==null?void 0:w.key)==="custom"&&P.jsx("div",{children:P.jsx(IS,{defaultValue:I,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:Z=>{W(Z,"Kustom",{key:"custom",value:"Kustom"}),g({key:"custom",value:"Kustom"})},onReset:()=>{J(b,!0)},typePicker:u,withConfirm:!0})})]})})]})},JN="_active_103r8_306",QN="_disabled_103r8_309",on={"title-switch-payhere":"_title-switch-payhere_103r8_73","description-switch-payhere":"_description-switch-payhere_103r8_97","title-switch-laba":"_title-switch-laba_103r8_211","description-switch-laba":"_description-switch-laba_103r8_235","switch-l":"_switch-l_103r8_293","switch-payhere":"_switch-payhere_103r8_293",active:JN,disabled:QN,"disabled-nonactive":"_disabled-nonactive_103r8_312","thumb-switch":"_thumb-switch_103r8_315","switch-laba":"_switch-laba_103r8_332","switch-r":"_switch-r_103r8_372","switch-s":"_switch-s_103r8_451"},eM=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const p={size:{large:on["switch-l"],regular:on["switch-r"],small:on["switch-s"]},kind:{laba:on["switch-laba"],payhere:on["switch-payhere"]},text:{title:{laba:on["title-switch-laba"],payhere:on["title-switch-payhere"]},desc:{laba:on["description-switch-laba"],payhere:on["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return P.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:d=>d.stopPropagation(),children:[P.jsxs("label",{children:[P.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),P.jsx("span",{className:`${p.size[i]} ${p.kind[a]} ${e?on.active:""} ${t?on.disabled:""} ${!e&&t?on["disabled-nonactive"]:""}`,children:P.jsx("span",{className:`${on["thumb-switch"]} ${e?on.active:""} ${t?on.disabled:""} ${!e&&t?on["disabled-nonactive"]:""}`})})]}),(n||r)&&P.jsxs("div",{children:[n&&P.jsx("div",{className:`${p.text.title[a]} ${l}`,children:n}),r&&P.jsx("div",{className:`${p.text.desc[a]} ${u}`,children:r})]})]})},tM="_loading_1t1z4_291",He={"button-l":"_button-l_1t1z4_67","button-m":"_button-m_1t1z4_67","button-s":"_button-s_1t1z4_103","button-xs":"_button-xs_1t1z4_103","button-large":"_button-large_1t1z4_205","button-reguler":"_button-reguler_1t1z4_205","button-small":"_button-small_1t1z4_223","button-extra-small":"_button-extra-small_1t1z4_223",loading:tM,"nude-laba-red-05":"_nude-laba-red-05_1t1z4_306","nude-laba-red-10":"_nude-laba-red-10_1t1z4_306","nude-gray-500":"_nude-gray-500_1t1z4_306","nude-green-700":"_nude-green-700_1t1z4_306","nude-red-700":"_nude-red-700_1t1z4_306","nude-laba-blue-10":"_nude-laba-blue-10_1t1z4_306","ghost-laba-green-10":"_ghost-laba-green-10_1t1z4_306","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1t1z4_306","ghost-green-700":"_ghost-green-700_1t1z4_306","ghost-red-700":"_ghost-red-700_1t1z4_306","ghost-laba-blue-10":"_ghost-laba-blue-10_1t1z4_306","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_1t1z4_306","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_1t1z4_306","primary-green-700":"_primary-green-700_1t1z4_306","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1t1z4_306","primary-laba-blue-10":"_primary-laba-blue-10_1t1z4_306","tertiary-gray-500":"_tertiary-gray-500_1t1z4_306","tertiary-red-600":"_tertiary-red-600_1t1z4_306","tertiary-red-300":"_tertiary-red-300_1t1z4_306","tertiary-blue-700":"_tertiary-blue-700_1t1z4_306","secondary-green-600":"_secondary-green-600_1t1z4_306","secondary-red-700":"_secondary-red-700_1t1z4_306","secondary-red-600":"_secondary-red-600_1t1z4_306","secondary-blue-700":"_secondary-blue-700_1t1z4_306","primary-red-700":"_primary-red-700_1t1z4_306","primary-blue-700":"_primary-blue-700_1t1z4_306","icon-loading":"_icon-loading_1t1z4_366"},nM=({className:e=""})=>P.jsx("svg",{className:`${He["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:P.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
114
|
+
`.trim(),_.head.prepend(A)},[h]),N.useEffect(()=>{let _=b.current;return()=>{var A;p||Wf((A=_.target)!==null&&A!==void 0?A:void 0);for(let F of _.disposables)F();_.disposables=[]}},[p]),{isPressed:l||v,pressProps:kn(d,T,{[Qv]:!0})}}function mp(e){return e.tagName==="A"&&e.hasAttribute("href")}function Uf(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof nr(i).HTMLInputElement&&!J4(i,n)||i instanceof nr(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&mp(i))&&n!=="Enter")}function ZF(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function eb(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function _i(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ra(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function qF(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function JF(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function tb(e,t){let n=t.getBoundingClientRect(),r=qF(e);return JF(n,r)}function QF(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!mp(e)}function nb(e,t){return e instanceof HTMLInputElement?!J4(e,t):QF(e)}const eN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J4(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":eN.has(e.type)}let zo=null,m0=new Set,vs=new Map,ka=!1,v0=!1;const tN={Tab:!0,Escape:!0};function vp(e,t){for(let n of m0)n(e,t)}function nN(e){return!(e.metaKey||!Ro()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function gc(e){ka=!0,nN(e)&&(zo="keyboard",vp("keyboard",e))}function Qn(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ka=!0,vp("pointer",e))}function Q4(e){g0(e)&&(ka=!0,zo="virtual")}function e3(e){e.target===window||e.target===document||hc||!e.isTrusted||(!ka&&!v0&&(zo="virtual",vp("virtual",e)),ka=!1,v0=!1)}function t3(){hc||(ka=!1,v0=!0)}function b0(e){if(typeof window>"u"||typeof document>"u"||vs.get(nr(e)))return;const t=nr(e),n=Ft(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ka=!0,r.apply(this,arguments)},n.addEventListener("keydown",gc,!0),n.addEventListener("keyup",gc,!0),n.addEventListener("click",Q4,!0),t.addEventListener("focus",e3,!0),t.addEventListener("blur",t3,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qn,!0),n.addEventListener("pointermove",Qn,!0),n.addEventListener("pointerup",Qn,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qn,!0),n.addEventListener("mousemove",Qn,!0),n.addEventListener("mouseup",Qn,!0)),t.addEventListener("beforeunload",()=>{n3(e)},{once:!0}),vs.set(t,{focus:r})}const n3=(e,t)=>{const n=nr(e),r=Ft(e);t&&r.removeEventListener("DOMContentLoaded",t),vs.has(n)&&(n.HTMLElement.prototype.focus=vs.get(n).focus,r.removeEventListener("keydown",gc,!0),r.removeEventListener("keyup",gc,!0),r.removeEventListener("click",Q4,!0),n.removeEventListener("focus",e3,!0),n.removeEventListener("blur",t3,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qn,!0),r.removeEventListener("pointermove",Qn,!0),r.removeEventListener("pointerup",Qn,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qn,!0),r.removeEventListener("mousemove",Qn,!0),r.removeEventListener("mouseup",Qn,!0)),vs.delete(n))};function rN(e){const t=Ft(e);let n;return t.readyState!=="loading"?b0(e):(n=()=>{b0(e)},t.addEventListener("DOMContentLoaded",n)),()=>n3(e,n)}typeof document<"u"&&rN();function r3(){return zo!=="pointer"}function i3(){return zo}const iN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function aN(e,t,n){let r=Ft(n==null?void 0:n.target);const i=typeof window<"u"?nr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?nr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?nr(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?nr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!iN.has(r.activeElement.type)||r.activeElement instanceof a||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!tN[n.key])}function oN(e,t,n){b0(),N.useEffect(()=>{let r=(i,a)=>{aN(!!(n!=null&&n.isTextInput),i,a)&&e(r3())};return m0.add(r),()=>{m0.delete(r)}},t)}function a3(e){const t=Ft(e),n=Ra(t);if(i3()==="virtual"){let r=n;H4(()=>{Ra(t)===r&&e.isConnected&&Ba(e)})}else Ba(e)}function o3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=N.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=K4(a),s=N.useCallback(l=>{const u=Ft(l.target),c=u?Ra(u):Ra();l.target===l.currentTarget&&c===dt(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function rb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function sN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rb(e.onKeyDown),onKeyUp:rb(e.onKeyUp)}}}let lN=N.createContext(null);function uN(e){let t=N.useContext(lN)||{};z4(t,e);let{ref:n,...r}=t;return r}function cN(e,t){let{focusProps:n}=o3(e),{keyboardProps:r}=sN(e),i=kn(n,r),a=uN(t),o=e.isDisabled?{}:a,s=N.useRef(e.autoFocus);N.useEffect(()=>{s.current&&t.current&&a3(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:kn({...i,tabIndex:l},o)}}function s3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=N.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=j4(),l=N.useCallback(p=>{p.currentTarget.contains(p.target)&&a.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(p),i&&i(!1))},[n,i,a,s]),u=K4(l),c=N.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const h=Ft(p.target),d=Ra(h);if(!a.current.isFocusWithin&&d===dt(p.nativeEvent)){r&&r(p),i&&i(!0),a.current.isFocusWithin=!0,u(p);let v=p.currentTarget;o(h,"focus",m=>{if(a.current.isFocusWithin&&!vt(v,m.target)){let b=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Y4(b,v);let f=gp(b);l(f)}},{capture:!0})}},[r,i,u,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}const dN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function l3(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return dN.has(n.script)}let t=e.split("-")[0];return fN.has(t)}const hN=Symbol.for("react-aria.i18n.locale");function u3(){let e=typeof window<"u"&&window[hN]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:l3(e)?"rtl":"ltr"}}let y0=u3(),ss=new Set;function ib(){y0=u3();for(let e of ss)e(y0)}function c3(){let e=M4(),[t,n]=N.useState(y0);return N.useEffect(()=>(ss.size===0&&window.addEventListener("languagechange",ib),ss.add(n),()=>{ss.delete(n),ss.size===0&&window.removeEventListener("languagechange",ib)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const d3=N.createContext(null);function bp(e){let{locale:t,children:n}=e,r=c3(),i=N.useMemo(()=>t?{locale:t,direction:l3(t)?"rtl":"ltr"}:r,[r,t]);return N.createElement(d3.Provider,{value:i},n)}function yr(){let e=c3();return N.useContext(d3)||e}const gN=Symbol.for("react-aria.i18n.locale"),pN=Symbol.for("react-aria.i18n.strings");let qa;class Va{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=mN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[gN];if(qa===void 0){let i=window[pN];if(!i)return null;qa={};for(let a in i)qa[a]=new Va({[n]:i[a]},n)}let r=qa==null?void 0:qa[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function mN(e,t,n="en-US"){if(t[e])return t[e];let r=vN(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function vN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ab=new Map,ob=new Map;class f3{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=ab.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),ab.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=ob.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ob.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const sb=new WeakMap;function bN(e){let t=sb.get(e);return t||(t=new Va(e),sb.set(e,t)),t}function yN(e,t){return t&&Va.getGlobalDictionaryForPackage(t)||bN(e)}function xl(e,t){let{locale:n}=yr(),r=yN(e,t);return N.useMemo(()=>new f3(n,r),[n,r])}function Yi(e){e=W4(e??{},xN);let{locale:t}=yr();return N.useMemo(()=>new bo(t,e),[t,e])}function xN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function CN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:p,href:h,target:d,rel:v,type:m="button"}=e,b;n==="button"?b={type:m,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:b={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?d:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:f,isPressed:y}=pp({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:p,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:C}=cN(e,t);c&&(C.tabIndex=r?-1:C.tabIndex);let S=kn(C,f,lp(e,{labelable:!0}));return{isPressed:y,buttonProps:kn(b,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function EN(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ft(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function h3(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ko(e,t=!1){if(e!=null&&!t)try{a3(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function oo(e,t,n){let r=t!=null&&t.tabbable?WF:U4,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Ft(i),o=xF(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!EN(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||h3(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function g3(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||Ra(Ft(r)),u=oo(r,{tabbable:a,accept:s});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=r,c=u.nextNode()),c&&Ko(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||Ra(Ft(r)),u=oo(r,{tabbable:a,accept:s});if(r.contains(l))u.currentNode=l;else{let p=Xf(u);return p&&Ko(p,!0),p??null}let c=u.previousNode();if(!c&&o){u.currentNode=r;let p=Xf(u);if(!p)return null;c=p}return c&&Ko(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=oo(r,{tabbable:i,accept:a}).nextNode();return s&&Ko(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=oo(r,{tabbable:i,accept:a}),s=Xf(o);return s&&Ko(s,!0),s??null}}}function Xf(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class yp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new lb({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&h3(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new yp;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new lb({scopeRef:null}),this.fastMap.set(null,this.root)}}class lb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new yp;function p3(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=N.useRef({isFocused:!1,isFocusVisible:t||r3()}),[a,o]=N.useState(!1),[s,l]=N.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=N.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=N.useCallback(d=>{i.current.isFocused=d,o(d),u()},[u]);oN(d=>{i.current.isFocusVisible=d,u()},[],{isTextInput:n});let{focusProps:p}=o3({isDisabled:r,onFocusChange:c}),{focusWithinProps:h}=s3({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:r?h:p}}var m3={};m3={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var v3={};v3={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var b3={};b3={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var y3={};y3={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var x3={};x3={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var C3={};C3={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var E3={};E3={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var S3={};S3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var w3={};w3={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var I3={};I3={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var _3={};_3={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var D3={};D3={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var T3={};T3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var A3={};A3={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var R3={};R3={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var B3={};B3={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var k3={};k3={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var P3={};P3={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var $3={};$3={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var F3={};F3={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var N3={};N3={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var M3={};M3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var O3={};O3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var L3={};L3={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var V3={};V3={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var H3={};H3={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var j3={};j3={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var z3={};z3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var G3={};G3={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var W3={};W3={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var U3={};U3={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var X3={};X3={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var Y3={};Y3={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var K3={};K3={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Cl={};Cl={"ar-AE":m3,"bg-BG":v3,"cs-CZ":b3,"da-DK":y3,"de-DE":x3,"el-GR":C3,"en-US":E3,"es-ES":S3,"et-EE":w3,"fi-FI":I3,"fr-FR":_3,"he-IL":D3,"hr-HR":T3,"hu-HU":A3,"it-IT":R3,"ja-JP":B3,"ko-KR":k3,"lt-LT":P3,"lv-LV":$3,"nb-NO":F3,"nl-NL":N3,"pl-PL":M3,"pt-BR":O3,"pt-PT":L3,"ro-RO":V3,"ru-RU":H3,"sk-SK":j3,"sl-SI":z3,"sr-SP":G3,"sv-SE":W3,"tr-TR":U3,"uk-UA":X3,"zh-CN":Y3,"zh-TW":K3};function Z3(e){return e&&e.__esModule?e.default:e}const xp=new WeakMap;function Gs(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function SN(e){let t=xl(Z3(Cl),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=Yi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Gs(n)||Gs(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return N.useMemo(()=>{if(!o&&n&&r)if(It(n,r)){let s=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=C0(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function x0(e,t,n,r){let i=xl(Z3(Cl),"@react-aria/calendar"),a=Gs(e)||Gs(t),o=Yi({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Yi({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return N.useMemo(()=>{if(It(e,vl(e))){let l=e,u=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(u=t.calendar.getFormattableMonth(t)),It(t,i0(e)))return o.format(l.toDate(n));if(It(t,i0(t)))return r?C0(o,i,l,u,n):o.formatRange(l.toDate(n),u.toDate(n))}return r?C0(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function C0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let s="",l="";for(let u=0;u<a.length;u++)u<o?s+=a[u].value:u>o&&(l+=a[u].value);return t.format("dateRange",{startDate:s,endDate:l})}const q3=7e3;let wr=null;function ub(e,t="assertive",n=q3){wr?wr.announce(e,t,n):(wr=new wN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?wr.announce(e,t,n):setTimeout(()=>{wr!=null&&wr.isAttached()&&(wr==null||wr.announce(e,t,n))},100))}class wN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=q3){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function IN(e){return e&&e.__esModule?e.default:e}function J3(e,t){let n=xl(IN(Cl),"@react-aria/calendar"),r=lp(e),i=x0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=x0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Uv(()=>{t.isFocused||ub(a)},[a]);let o=SN(t);Uv(()=>{o&&ub(o,"polite",4e3)},[o]);let s=d0([!!e.errorMessage,e.isInvalid,e.validationState]);xp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,u]=N.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[p,h]=N.useState(!1),d=e.isDisabled||t.isPreviousVisibleRangeInvalid();d&&p&&(h(!1),t.setFocused(!0));let v=dp({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:kn(r,v,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:d,onFocusChange:h},errorMessageProps:{id:s},title:i}}function Q3(e,t){return J3(e,t)}function _N(e,t,n){let r=J3(e,t),i=N.useRef(!1),a=N.useRef(typeof window<"u"?window:null);return Gf(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),Gf(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Gf(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function eE(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=yr(),o=m=>{switch(m.key){case"Enter":case" ":m.preventDefault(),t.selectFocusedDate();break;case"PageUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousSection(m.shiftKey);break;case"PageDown":m.preventDefault(),m.stopPropagation(),t.focusNextSection(m.shiftKey);break;case"End":m.preventDefault(),m.stopPropagation(),t.focusSectionEnd();break;case"Home":m.preventDefault(),m.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":m.preventDefault(),m.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":m.preventDefault(),m.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(m.preventDefault(),t.setAnchorDate(null));break}},s=x0(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:u}=xp.get(t),c=dp({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":u}),p=Yi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=yr(),d=N.useMemo(()=>{let m=Ls(Yg(t.timeZone),h,i);return[...new Array(7).keys()].map(b=>{let y=m.add({days:b}).toDate(t.timeZone);return p.format(y)})},[h,t.timeZone,p,i]),v=Kg(n,h,i);return{gridProps:kn(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:d,weeksInMonth:v}}function DN(e){return e&&e.__esModule?e.default:e}function TN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=xp.get(t),s=xl(DN(Cl),"@react-aria/calendar"),l=Yi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Gs(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let p=t.isCellUnavailable(r),h=!i&&!p,d=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&It(t.value,r));d&&(u=!0),r=W4(r,r0);let v=N.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),m=u$(r,t.timeZone),b=N.useMemo(()=>{let _="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(It(r,t.value.start)||It(r,t.value.end))&&(_=o+", "),_+=l.format(v),m?_=s.format(u?"todayDateSelected":"todayDate",{date:_}):u&&(_=s.format("dateSelected",{date:_})),t.minValue&&It(r,t.minValue)?_+=", "+s.format("minimumDate"):t.maxValue&&It(r,t.maxValue)&&(_+=", "+s.format("maximumDate")),_},[l,v,s,u,m,r,t,o]),f="";"anchorDate"in t&&c&&!t.isReadOnly&&h&&(t.anchorDate?f=s.format("finishRangeSelectionPrompt"):f=s.format("startRangeSelectionPrompt"));let y=G4(f),C=N.useRef(!1),S=N.useRef(!1),w=N.useRef(void 0),{pressProps:E,isPressed:x}=pp({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!h||t.isReadOnly,onPressStart(_){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(_.pointerType==="mouse"||_.pointerType==="touch")){if(t.highlightedRange&&!d){if(It(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}else if(It(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),S.current=!0;return}}let A=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),C.current=!0};_.pointerType==="touch"?w.current=setTimeout(A,200):A()}},onPressEnd(){S.current=!1,C.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(_){if(!t.isReadOnly&&("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!C.current)t.selectDate(r),t.setFocusedDate(r);else if(_.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let A=r.add({days:1});t.isInvalid(A)&&(A=r.subtract({days:1})),t.isInvalid(A)||t.setFocusedDate(A)}else _.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),g;i||(g=It(r,t.focusedDate)?0:-1),N.useEffect(()=>{c&&n.current&&(Ba(n.current),i3()!=="pointer"&&document.activeElement===n.current&&OF(n.current,{containingElement:$F(n.current)}))},[c,n]);let I=Yi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),T=N.useMemo(()=>I.formatToParts(v).find(_=>_.type==="day").value,[I,v]);return{cellProps:{role:"gridcell","aria-disabled":!h||void 0,"aria-selected":u||void 0,"aria-invalid":d||void 0},buttonProps:kn(E,{onFocus(){i||t.setFocusedDate(r)},tabIndex:g,role:"button","aria-disabled":!h||void 0,"aria-label":b,"aria-invalid":d||void 0,"aria-describedby":[d?a:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(_){"highlightDate"in t&&(_.pointerType!=="touch"||t.isDragging)&&h&&t.highlightDate(r)},onPointerDown(_){"releasePointerCapture"in _.target&&_.target.releasePointerCapture(_.pointerId)},onContextMenu(_){_.preventDefault()}}),isPressed:x,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:p,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:d,formattedDate:T}}const od={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tE={...od,customError:!0,valid:!1},ha={isInvalid:!1,validationDetails:od,validationErrors:[]},AN=N.createContext({}),pc="__formValidationState"+Date.now();function RN(e){if(e[pc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[pc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return BN(e)}function BN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:tE}:null,u=N.useMemo(()=>{if(!o||i==null)return null;let T=kN(o,i);return cb(T)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let c=N.useContext(AN),p=N.useMemo(()=>r?Array.isArray(r)?r.flatMap(T=>E0(c[T])):E0(c[r]):[],[c,r]),[h,d]=N.useState(c),[v,m]=N.useState(!1);c!==h&&(d(c),m(!1));let b=N.useMemo(()=>cb(v?[]:p),[v,p]),f=N.useRef(ha),[y,C]=N.useState(ha),S=N.useRef(ha),w=()=>{if(!E)return;x(!1);let T=u||a||f.current;Yf(T,S.current)||(S.current=T,C(T))},[E,x]=N.useState(!1);return N.useEffect(w),{realtimeValidation:l||b||u||a||ha,displayValidation:s==="native"?l||b||y:l||b||u||a||y,updateValidation(T){s==="aria"&&!Yf(y,T)?C(T):f.current=T},resetValidation(){let T=ha;Yf(T,S.current)||(S.current=T,C(T)),s==="native"&&x(!1),m(!0)},commitValidation(){s==="native"&&x(!0),m(!0)}}}function E0(e){return e?Array.isArray(e)?e:[e]:[]}function kN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return E0(n)}return[]}function cb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tE}:null}function Yf(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function mc(...e){let t=new Set,n=!1,r={...od};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function PN(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ao(t);let o=Ao(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=dp({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function $N(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=PN(e),s=d0([!!t,!!n,r,i]),l=d0([!!t,!!n,r,i]);return o=kn(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}var nE={};nE={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var rE={};rE={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var iE={};iE={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var aE={};aE={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var oE={};oE={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var sE={};sE={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var lE={};lE={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var uE={};uE={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var cE={};cE={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var dE={};dE={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var fE={};fE={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var hE={};hE={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var gE={};gE={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var pE={};pE={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var mE={};mE={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var vE={};vE={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var bE={};bE={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var yE={};yE={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var xE={};xE={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var CE={};CE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var EE={};EE={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var SE={};SE={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var wE={};wE={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var IE={};IE={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var _E={};_E={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var DE={};DE={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var TE={};TE={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var AE={};AE={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var RE={};RE={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var BE={};BE={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var kE={};kE={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var PE={};PE={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var $E={};$E={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var FE={};FE={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var NE={};NE={"ar-AE":nE,"bg-BG":rE,"cs-CZ":iE,"da-DK":aE,"de-DE":oE,"el-GR":sE,"en-US":lE,"es-ES":uE,"et-EE":cE,"fi-FI":dE,"fr-FR":fE,"he-IL":hE,"hr-HR":gE,"hu-HU":pE,"it-IT":mE,"ja-JP":vE,"ko-KR":bE,"lt-LT":yE,"lv-LV":xE,"nb-NO":CE,"nl-NL":EE,"pl-PL":SE,"pt-BR":wE,"pt-PT":IE,"ro-RO":_E,"ru-RU":DE,"sk-SK":TE,"sl-SI":AE,"sr-SP":RE,"sv-SE":BE,"tr-TR":kE,"uk-UA":PE,"zh-CN":$E,"zh-TW":FE};function FN(e,t,n){let{direction:r}=yr(),i=N.useMemo(()=>g3(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let u=l.target,c=db(t.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let u=l.target,c=db(t.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=oo(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let p;do p=c.lastChild(),p&&(u=p);while(p)}for(;u!=null&&u.hasAttribute("data-placeholder");){let p=c.previousNode();if(p&&p.hasAttribute("data-placeholder"))u=p;else break}u&&u.focus()},{pressProps:s}=pp({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return kn(s,{onKeyDown:a})}function db(e,t,n){let r=oo(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,u=Math.abs(l);Math.sign(l)===n&&u<o&&(a=i,o=u),i=r.nextNode()}return a}const NN="__role_"+Date.now(),MN="__focusManager_"+Date.now();function ON(e){return e&&e.__esModule?e.default:e}function LN(e,t,n){var r,i,a,o,s;let l=xl(ON(NE),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:d,descriptionProps:v,errorMessageProps:m}=$N({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),b=d["aria-labelledby"]||d.id,{locale:f}=yr(),y=t.formatValue(f,{month:"long"}),C=y?l.format("selectedRangeDescription",{startDate:y.start,endDate:y.end}):"",S=G4(C),w={"aria-label":l.format("startDate"),"aria-labelledby":b},E={"aria-label":l.format("endDate"),"aria-labelledby":b},x=Ao(),g=Ao(),I=FN(t,n),T=[S["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=N.useMemo(()=>g3(n,{accept:W=>W.id!==x}),[n,x]),A={[MN]:_,[NN]:"presentation","aria-describedby":T,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=lp(e),B=N.useRef(!1),{focusWithinProps:$}=s3({...e,isDisabled:t.isOpen,onBlurWithin:W=>{let U=document.getElementById(g);if(!(U!=null&&U.contains(W.relatedTarget))){var J,Q;B.current=!1,(J=e.onBlur)===null||J===void 0||J.call(e,W),(Q=e.onFocusChange)===null||Q===void 0||Q.call(e,!1)}},onFocusWithin:W=>{if(!B.current){var U,J;B.current=!0,(U=e.onFocus)===null||U===void 0||U.call(e,W),(J=e.onFocusChange)===null||J===void 0||J.call(e,!0)}}}),k=N.useRef(ha),O=N.useRef(ha);var M,G;return{groupProps:kn(F,I,d,S,$,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":T,onKeyDown(W){t.isOpen||e.onKeyDown&&e.onKeyDown(W)},onKeyUp(W){t.isOpen||e.onKeyUp&&e.onKeyUp(W)}}),labelProps:{...h,onClick:()=>{_.focusFirst()}},buttonProps:{...S,id:x,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${x} ${b}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:g,"aria-labelledby":`${x} ${b}`},startFieldProps:{...w,...A,value:(M=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&M!==void 0?M:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:W=>t.setDateTime("start",W),autoFocus:e.autoFocus,name:e.startName,form:e.form,[pc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(W){k.current=W,t.updateValidation(mc(W,O.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...E,...A,value:(G=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&G!==void 0?G:null,defaultValue:(o=t.defaultValue)===null||o===void 0?void 0:o.end,onChange:W=>t.setDateTime("end",W),name:e.endName,form:e.form,[pc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(W){O.current=W,t.updateValidation(mc(k.current,W))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:v,errorMessageProps:m,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:p}}function xo(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function S0(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=va(e,t,n).subtract(a);return Ws(e,o,t,n,r,i)}function va(e,t,n,r,i){let a=e;return t.years?a=f$(e):t.months?a=vl(e):t.weeks&&(a=Ls(e,n)),Ws(e,a,t,n,r,i)}function w0(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=va(e,t,n).subtract(a);return Ws(e,o,t,n,r,i)}function Ws(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=qg(t,va(Hn(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=Zg(t,w0(Hn(a),n,r));o&&(t=o)}return t}function Bi(e,t,n){if(t){let r=qg(e,Hn(t));r&&(e=r)}if(n){let r=Zg(e,Hn(n));r&&(e=r)}return e}function ME(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function OE(e){let t=N.useMemo(()=>new bo(e.locale),[e.locale]),n=N.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:p}=e,h=N.useMemo(()=>i(n.calendar),[i,n.calendar]);var d;let[v,m]=zs(e.value,(d=e.defaultValue)!==null&&d!==void 0?d:null,e.onChange),b=N.useMemo(()=>v?tn(Hn(v),h):null,[v,h]),f=N.useMemo(()=>v&&"timeZone"in v?v.timeZone:n.timeZone,[v,n.timeZone]),y=N.useMemo(()=>e.focusedValue?Bi(tn(Hn(e.focusedValue),h),o,s):void 0,[e.focusedValue,h,o,s]),C=N.useMemo(()=>Bi(e.defaultFocusedValue?tn(Hn(e.defaultFocusedValue),h):b||tn(Yg(f),h),o,s),[e.defaultFocusedValue,b,f,h,o,s]),[S,w]=zs(y,C,e.onFocusChange),[E,x]=N.useState(()=>{switch(l){case"start":return va(S,a,r,o,s);case"end":return w0(S,a,r,o,s);case"center":default:return S0(S,a,r,o,s)}}),[g,I]=N.useState(e.autoFocus||!1),T=N.useMemo(()=>{let U={...a};return U.days?U.days--:U.days=-1,E.add(U)},[E,a]),[_,A]=N.useState(h);if(!Xg(h,_)){let U=tn(S,h);x(S0(U,a,r,o,s)),w(U),A(h)}xo(S,o,s)?w(Bi(S,o,s)):S.compare(E)<0?x(w0(S,a,r,o,s)):S.compare(T)>0&&x(va(S,a,r,o,s));function F(U){U=Bi(U,o,s),w(U)}function B(U){if(!e.isDisabled&&!e.isReadOnly){let J=U;if(J===null){m(null);return}if(J=Bi(J,o,s),J=ME(J,E,u),!J)return;J=tn(J,(v==null?void 0:v.calendar)||new zn),v&&"hour"in v?m(v.set(J)):m(J)}}let $=N.useMemo(()=>b?u&&u(b)?!0:xo(b,o,s):!1,[b,u,o,s]),k=e.isInvalid||e.validationState==="invalid"||$,O=k?"invalid":null,M=N.useMemo(()=>c==="visible"?a:Kf(a),[c,a]);var G,W;return{isDisabled:(G=e.isDisabled)!==null&&G!==void 0?G:!1,isReadOnly:(W=e.isReadOnly)!==null&&W!==void 0?W:!1,value:b,setValue:B,visibleRange:{start:E,end:T},minValue:o,maxValue:s,focusedDate:S,timeZone:f,validationState:O,isValueInvalid:k,setFocusedDate(U){F(U),I(!0)},focusNextDay(){F(S.add({days:1}))},focusPreviousDay(){F(S.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&F(S.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&F(S.subtract({weeks:1}))},focusNextPage(){let U=E.add(M);w(Bi(S.add(M),o,s)),x(va(Ws(S,U,M,r,o,s),M,r))},focusPreviousPage(){let U=E.subtract(M);w(Bi(S.subtract(M),o,s)),x(va(Ws(S,U,M,r,o,s),M,r))},focusSectionStart(){a.days?F(E):a.weeks?F(Ls(S,r)):(a.months||a.years)&&F(vl(S))},focusSectionEnd(){a.days?F(T):a.weeks?F(h$(S,r)):(a.months||a.years)&&F(i0(S))},focusNextSection(U){if(!U&&!a.days){F(S.add(Kf(a)));return}a.days?this.focusNextPage():a.weeks?F(S.add({months:1})):(a.months||a.years)&&F(S.add({years:1}))},focusPreviousSection(U){if(!U&&!a.days){F(S.subtract(Kf(a)));return}a.days?this.focusPreviousPage():a.weeks?F(S.subtract({months:1})):(a.months||a.years)&&F(S.subtract({years:1}))},selectFocusedDate(){u&&u(S)||B(S)},selectDate(U){B(U)},isFocused:g,setFocused:I,isInvalid(U){return xo(U,o,s)},isSelected(U){return b!=null&&It(U,b)&&!this.isCellDisabled(U)&&!this.isCellUnavailable(U)},isCellFocused(U){return g&&S&&It(U,S)},isCellDisabled(U){return e.isDisabled||U.compare(E)<0||U.compare(T)>0||this.isInvalid(U)},isCellUnavailable(U){return e.isDateUnavailable?e.isDateUnavailable(U):!1},isPreviousVisibleRangeInvalid(){let U=E.subtract({days:1});return It(U,E)||this.isInvalid(U)},isNextVisibleRangeInvalid(){let U=T.add({days:1});return It(U,T)||this.isInvalid(U)},getDatesInWeek(U,J=E){let Q=J.add({weeks:U}),Z=[];Q=Ls(Q,r,p);let ee=nd(Q,r,p);for(let q=0;q<ee;q++)Z.push(null);for(;Z.length<7;){Z.push(Q);let q=Q.add({days:1});if(It(Q,q))break;Q=q}for(;Z.length<7;)Z.push(null);return Z}}}function Kf(e){let t={...e};for(let n in e)t[n]=1;return t}function VN(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,p]=zs(t,n||null,r),[h,d]=N.useState(null),v="center";if(c&&c.start&&c.end){let M=S0(Hn(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(M)>0&&(v="start")}let m=N.useRef(null),[b,f]=N.useState(null),y=N.useMemo(()=>qg(s,b==null?void 0:b.start),[s,b]),C=N.useMemo(()=>Zg(l,b==null?void 0:b.end),[l,b]),S=OE({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:y,maxValue:C,selectionAlignment:v}),w=O=>{if(O&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=hb(O,S,-1),G=hb(O,S,1);m.current={start:M,end:G},f(m.current)}else m.current=null,f(null)},[E,x]=N.useState(S.visibleRange);(!r0(S.visibleRange.start,E.start)||!r0(S.visibleRange.end,E.end))&&(w(h),x(S.visibleRange));let g=O=>{O?(d(O),w(O)):(d(null),w(null))},I=h?Zf(h,S.focusedDate):c&&Zf(c.start,c.end),T=O=>{if(e.isReadOnly)return;const M=Bi(O,y,C),G=ME(M,S.visibleRange.start,e.isDateUnavailable);if(G)if(!h)g(G);else{let W=Zf(h,G);W&&p({start:fb(W.start,c==null?void 0:c.start),end:fb(W.end,c==null?void 0:c.end)}),g(null)}},[_,A]=N.useState(!1),{isDateUnavailable:F}=e,B=N.useMemo(()=>!c||h?!1:F&&(F(c.start)||F(c.end))?!0:xo(c.start,s,l)||xo(c.end,s,l),[F,c,h,s,l]),$=e.isInvalid||e.validationState==="invalid"||B;return{...S,value:c,setValue:p,anchorDate:h,setAnchorDate:g,highlightedRange:I,validationState:$?"invalid":null,isValueInvalid:$,selectFocusedDate(){T(S.focusedDate)},selectDate:T,highlightDate(O){h&&S.setFocusedDate(O)},isSelected(O){return!!(I&&O.compare(I.start)>=0&&O.compare(I.end)<=0&&!S.isCellDisabled(O)&&!S.isCellUnavailable(O))},isInvalid(O){var M,G;return S.isInvalid(O)||xo(O,(M=m.current)===null||M===void 0?void 0:M.start,(G=m.current)===null||G===void 0?void 0:G.end)},isDragging:_,setDragging:A}}function Zf(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Hn(e),end:Hn(t)})}function fb(e,t){return e=tn(e,(t==null?void 0:t.calendar)||new zn),t&&"hour"in t?t.set(e):e}function hb(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}function HN(e){let[t,n]=zs(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=N.useCallback(()=>{n(!0)},[n]),i=N.useCallback(()=>{n(!1)},[n]),a=N.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var LE={};LE={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var VE={};VE={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var HE={};HE={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var jE={};jE={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var zE={};zE={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var GE={};GE={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var WE={};WE={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var UE={};UE={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var XE={};XE={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var YE={};YE={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var KE={};KE={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var ZE={};ZE={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var qE={};qE={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var JE={};JE={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var QE={};QE={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var eS={};eS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var tS={};tS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var nS={};nS={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var rS={};rS={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var iS={};iS={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var aS={};aS={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var oS={};oS={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var sS={};sS={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var lS={};lS={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var uS={};uS={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var cS={};cS={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var dS={};dS={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var fS={};fS={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var hS={};hS={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var gS={};gS={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var pS={};pS={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var mS={};mS={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var vS={};vS={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var bS={};bS={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var yS={};yS={"ar-AE":LE,"bg-BG":VE,"cs-CZ":HE,"da-DK":jE,"de-DE":zE,"el-GR":GE,"en-US":WE,"es-ES":UE,"et-EE":XE,"fi-FI":YE,"fr-FR":KE,"he-IL":ZE,"hr-HR":qE,"hu-HU":JE,"it-IT":QE,"ja-JP":eS,"ko-KR":tS,"lt-LT":nS,"lv-LV":rS,"nb-NO":iS,"nl-NL":aS,"pl-PL":oS,"pt-BR":sS,"pt-PT":lS,"ro-RO":uS,"ru-RU":cS,"sk-SK":dS,"sl-SI":fS,"sr-SP":hS,"sv-SE":gS,"tr-TR":pS,"uk-UA":mS,"zh-CN":vS,"zh-TW":bS};function jN(e){return e&&e.__esModule?e.default:e}const xS=new Va(jN(yS));function CS(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function gb(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,u=[];if(l){let c=CS(),p=Va.getGlobalDictionaryForPackage("@react-stately/datepicker")||xS,h=new f3(c,p),d=new bo(c,Ru({},i)),v=d.resolvedOptions().timeZone;o&&t!=null&&u.push(h.format("rangeUnderflow",{minValue:d.format(t.toDate(v))})),a&&n!=null&&u.push(h.format("rangeOverflow",{maxValue:d.format(n.toDate(v))})),s&&u.push(h.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function zN(e,t,n,r,i){var a;let o=gb((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=gb((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),u=mc(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let c=Va.getGlobalDictionaryForPackage("@react-stately/datepicker")||xS;u=mc(u,{isInvalid:!0,validationErrors:[c.getStringForLocale("rangeReversed",CS())],validationDetails:{...od,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return u}const GN={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},WN={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Ru(e,t){e={...t.shouldForceLeadingZeros?WN:GN,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((c,p)=>(c[p]=e[p],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function ql(e){return e&&"hour"in e?e:new ip}function UN(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=N.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function XN(e){var t,n;let r=HN(e),[i,a]=zs(e.value,e.defaultValue||null,e.onChange),[o]=N.useState(i),[s,l]=N.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},l(s));let u=i||s,c=M=>{u=M||{start:null,end:null},l(u),ia(u)?a(u):a(null)},p=(u==null?void 0:u.start)||(u==null?void 0:u.end)||e.placeholderValue||null,[h,d]=UN(p,e.granularity),v=h==="hour"||h==="minute"||h==="second";var m;let b=(m=e.shouldCloseOnSelect)!==null&&m!==void 0?m:!0,[f,y]=N.useState(null),[C,S]=N.useState(null);u&&ia(u)&&(f=u,"hour"in u.start&&(C=u));let w=(M,G)=>{c({start:"timeZone"in G.start?G.start.set(Hn(M.start)):Xi(M.start,G.start),end:"timeZone"in G.end?G.end.set(Hn(M.end)):Xi(M.end,G.end)}),y(null),S(null),B.commitValidation()},E=M=>{let G=typeof b=="function"?b():b;v?ia(M)&&(G||C!=null&&C.start&&(C!=null&&C.end))?w(M,{start:(C==null?void 0:C.start)||ql(e.placeholderValue),end:(C==null?void 0:C.end)||ql(e.placeholderValue)}):y(M):ia(M)?(c(M),B.commitValidation()):y(M),G&&r.setOpen(!1)},x=M=>{ia(f)&&ia(M)?w(f,M):S(M)},g=(u==null||(t=u.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&u.start.era==="BC"||(u==null||(n=u.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&u.end.era==="BC",I=N.useMemo(()=>({granularity:h,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:g}),[h,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,g]),{minValue:T,maxValue:_,isDateUnavailable:A}=e,F=N.useMemo(()=>zN(u,T,_,A,I),[u,T,_,A,I]),B=RN({...e,value:i,name:N.useMemo(()=>[e.startName,e.endName].filter(M=>M!=null),[e.startName,e.endName]),builtinValidation:F}),$=B.displayValidation.isInvalid,k=e.validationState||($?"invalid":null);var O;return{...B,value:u,defaultValue:(O=e.defaultValue)!==null&&O!==void 0?O:o,setValue:c,dateRange:f,timeRange:C,granularity:h,hasTime:v,setDate(M,G){var W,U;E(M==="start"?{start:G,end:(W=f==null?void 0:f.end)!==null&&W!==void 0?W:null}:{start:(U=f==null?void 0:f.start)!==null&&U!==void 0?U:null,end:G})},setTime(M,G){var W,U;x(M==="start"?{start:G,end:(W=C==null?void 0:C.end)!==null&&W!==void 0?W:null}:{start:(U=C==null?void 0:C.start)!==null&&U!==void 0?U:null,end:G})},setDateTime(M,G){var W,U;c(M==="start"?{start:G,end:(W=u==null?void 0:u.end)!==null&&W!==void 0?W:null}:{start:(U=u==null?void 0:u.start)!==null&&U!==void 0?U:null,end:G})},setDateRange:E,setTimeRange:x,...r,setOpen(M){!M&&!(u!=null&&u.start&&(u!=null&&u.end))&&ia(f)&&v&&w(f,{start:(C==null?void 0:C.start)||ql(e.placeholderValue),end:(C==null?void 0:C.end)||ql(e.placeholderValue)}),r.setOpen(M)},validationState:k,isInvalid:$,formatValue(M,G){if(!u||!u.start||!u.end)return null;let W="timeZone"in u.start?u.start.timeZone:void 0,U=e.granularity||(u.start&&"minute"in u.start?"minute":"day"),J="timeZone"in u.end?u.end.timeZone:void 0,Q=e.granularity||(u.end&&"minute"in u.end?"minute":"day"),Z=Ru(G,{granularity:U,timeZone:W,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:u.start.calendar.identifier==="gregory"&&u.start.era==="BC"||u.end.calendar.identifier==="gregory"&&u.end.era==="BC"}),ee=u.start.toDate(W||"UTC"),q=u.end.toDate(J||"UTC"),le=new bo(M,Z),re;if(W===J&&U===Q&&u.start.compare(u.end)!==0){try{let R=le.formatRangeToParts(ee,q),H=-1;for(let L=0;L<R.length;L++){let K=R[L];if(K.source==="shared"&&K.type==="literal")H=L;else if(K.source==="endRange")break}let V="",D="";for(let L=0;L<R.length;L++)L<H?V+=R[L].value:L>H&&(D+=R[L].value);return{start:V,end:D}}catch{}re=le}else{let R=Ru(G,{granularity:Q,timeZone:J,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});re=new bo(M,R)}return{start:le.format(ee),end:re.format(q)}},getDateFormatter(M,G){let W={...I,...G},U=Ru({},W);return new bo(M,U)}}}function ia(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const ES=e=>{const t=N.useRef(null),{locale:n}=yr(),{state:r,date:i}=e,{cellProps:a,buttonProps:o,isSelected:s,isOutsideVisibleRange:l,isDisabled:u,formattedDate:c,isInvalid:p}=TN({date:i},r,t),{focusProps:h}=p3(),d="highlightedRange"in r?r.highlightedRange?It(i,r.highlightedRange.start):null:s,v="highlightedRange"in r?r.highlightedRange?It(i,r.highlightedRange.end):null:s,m=nd(i,n),b=s&&(d||m===0||i.day===1),f=s&&(v||m===6||i.day===i.calendar.getDaysInMonth(i));return P.jsx("td",{...a,children:P.jsx("div",{...kn(o,h),ref:t,className:`${Ae["cell-calendar"]} ${b?"1ru-rounded-l-full":""} ${f?"1ru-rounded-r-full":""} ${s?p?"1ru-bg-red-300":"1ru-bg-laba-blue-02":""} ${u?"1ru-disabled":""}`,children:l?P.jsx("div",{className:Ae["visible-cell-calendar"],children:c}):P.jsx("div",{className:`${Ae["active-cell-calendar"]} ${u&&!p?Ae.disabled:""} ${d||v?p?Ae.error:Ae.selected:""} ${s&&!u&&!(d??v)?p?"hover:1ru-bg-red-400":"hover:1ru-text-laba-blue-05":""} ${!s&&!u?"hover:1ru-bg-laba-blue-01":""}`,children:c})})})},Bo=e=>{const t=N.useRef(null),{buttonProps:n}=CN(e,t),{focusProps:r}=p3();return P.jsx("button",{...kn(n,r),ref:t,className:`1ru-px-2 1ru-py-1 1ru-rounded-full ${e.isDisabled?"1ru-text-gray-400":"1ru-text-laba-blue-10"} ${e.isDisabled?"":"hover:1ru-bg-laba-blue-01 1ru-cursor-pointer"} 1ru-outline-none`,children:e.children})},SS=({prevIcon:e,nextIcon:t,state:n,setActiveTypeCalendar:r,onChangeMonth:i,type:a,hiddenHeader:o})=>{const s=new Date().getFullYear(),l=n.focusedDate.calendar.getMonthsInYear(n.focusedDate),u=Yi({month:"short",timeZone:n.timeZone}),c=(h,d)=>{const v=n.focusedDate.set({month:h});d?(r("date"),n.setFocusedDate(v)):!d&&typeof i=="function"&&i(v)},p=h=>{const d=n.focusedDate.set({year:h});n.setFocusedDate(d)};return P.jsxs("div",{className:`1ru-w-[296px] ${Ae["container-calendar"]}`,children:[!o&&P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{isDisabled:n!=null&&n.minValue?n.focusedDate.year<=n.minValue.year:!1,onPress:()=>p(n.focusedDate.year-1),children:typeof e=="function"||N.isValidElement(e)?N.isValidElement(e)?e:e():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:`${Ae["header-button-calendar"]} ${a.includes("year")?"":Ae.disabled}`,onClick:()=>{a.includes("year")&&r("year")},children:n.focusedDate.year}),P.jsx(Bo,{isDisabled:n!=null&&n.maxValue?n.focusedDate.year>=n.maxValue.year:!1,onPress:()=>p(n.focusedDate.year+1),children:typeof t=="function"||N.isValidElement(t)?N.isValidElement(t)?t:t():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsx("div",{className:Ae["month-calendar"],children:[...Array(l).keys()].map(h=>{var C,S,w,E;const d=n.focusedDate.set({month:h+1}),v=u.format(d.toDate(n.timeZone)),m=((C=n.value)==null?void 0:C.year)||((w=(S=n.value)==null?void 0:S.start)==null?void 0:w.year)||s,b=n!=null&&n.minValue?d.month<((E=n==null?void 0:n.minValue)==null?void 0:E.month)&&d.year<=n.minValue.year:!1,f=n!=null&&n.maxValue?d.month>n.maxValue.month&&d.year>=n.maxValue.year:!1,y=b||f;return P.jsx("div",{onClick:()=>{y||c(d.month,a.includes("date"))},className:`${Ae["cell-month"]} ${n.focusedDate.month===d.month&&!y&&d.year===m?Ae.selected:""} ${n.focusedDate.month!==d.month&&!y?"hover:1ru-bg-laba-blue-01":""} ${y?"1ru-text-gray-400":"1ru-cursor-pointer"}`,children:v},h)})})]})},YN=e=>{const t=Kg(e.state.visibleRange.start,e.locale),{gridProps:n,headerProps:r,weekDays:i}=eE({},e.state),{prevButtonProps:a,nextButtonProps:o,title:s}=Q3(e,e.state),l=u=>{let c="";switch(u){case 0:c="Min";break;case 1:c="Sen";break;case 2:c="Sel";break;case 3:c="Rab";break;case 4:c="Kam";break;case 5:c="Jum";break;case 6:c="Sab";break}return c};return P.jsxs("div",{children:[!e.hiddenHeader&&P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{...a,children:typeof(e==null?void 0:e.prevIcon)=="function"||N.isValidElement(e==null?void 0:e.prevIcon)?N.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:Ae["header-button-calendar"],onClick:()=>e.setActiveTypeCalendar("month"),children:s}),P.jsx(Bo,{...o,children:typeof(e==null?void 0:e.nextIcon)=="function"||N.isValidElement(e==null?void 0:e.nextIcon)?N.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsxs("table",{...n,children:[P.jsx("thead",{...r,children:P.jsx("tr",{children:i.map((u,c)=>P.jsx("th",{className:Ae["days-calendar"],children:l(c)},c))})}),P.jsx("tbody",{children:[...new Array(t).keys()].map(u=>P.jsx("tr",{children:e.state.getDatesInWeek(u).map((c,p)=>c?P.jsx(ES,{state:e.state,date:c},p):P.jsx("td",{},p))},u))})]})]})},KN=({minDate:e,maxDate:t,value:n,time:r,hiddenHeader:i,handlerChangeTime:a})=>{const o=e?new Date(e):null,s=t?new Date(t):null,l=o==null?void 0:o.getHours(),u=s==null?void 0:s.getHours(),c=o==null?void 0:o.getMinutes(),p=s==null?void 0:s.getMinutes(),[h,d]=N.useState(!0),v=(y,C,S)=>Array.from({length:(C-y)/S+1},(w,E)=>y+E*S),m=(y,C)=>{typeof a=="function"&&a({hour:y,minut:C,second:r==null?void 0:r.second})},b=()=>{const y=document.getElementById(`calendar-hour-${r==null?void 0:r.hour}`),C=document.getElementById(`calendar-minut-${r==null?void 0:r.minut}`),S=document.getElementById("wrapper-calendar-hour"),w=document.getElementById("wrapper-calendar-minut");y&&S&&S.scrollTo({behavior:"instant",top:y.offsetTop-75}),C&&w&&w.scrollTo({behavior:"instant",top:C.offsetTop-75})},f=(y,C)=>{let S=!0;if(o&&n){const w=n.year===o.getFullYear(),E=n.month===o.getMonth()+1;n.day===o.getDate()&&E&&w?(C==="hour"&&y<(l??0)||C==="minut"&&((r==null?void 0:r.hour)??0)<=o.getHours()&&y<(c??0))&&(S=!1):n.toDate(Ta()).getTime()<o.getTime()&&(S=!1)}if(s&&n){const w=n.year===s.getFullYear(),E=n.month===s.getMonth()+1;n.day===s.getDate()&&E&&w?(C==="hour"&&y>(u??0)||C==="minut"&&((r==null?void 0:r.hour)??0)>=s.getHours()&&y>(p??0))&&(S=!1):n.toDate(Ta()).getTime()>s.getTime()&&(S=!1)}return S};return N.useEffect(()=>{h&&b(),r&&d(!1)},[JSON.stringify(n)]),P.jsxs("div",{className:Ae["custom-time-calendar"],children:[!i&&P.jsx("div",{className:Ae["header-time"],children:"Atur Waktu"}),P.jsxs("div",{className:Ae["type-time"],children:[P.jsx("div",{children:"Jam"}),P.jsx("div",{children:"Menit"})]}),P.jsxs("div",{className:"1ru-flex 1ru-justify-around",children:[P.jsx("div",{id:"wrapper-calendar-hour",className:Ae["container-cell-time"],children:v(0,23,1).map(y=>P.jsx("div",{id:`calendar-hour-${y}`,className:`${Ae["cell-time"]} ${(r==null?void 0:r.hour)===y?f(y,"hour")?Ae.selected:Ae.error:""} ${f(y,"hour")&&(r==null?void 0:r.hour)!=y?Ae.valid:Ae.invalid}`,onClick:()=>{f(y,"hour")&&m(y,r==null?void 0:r.minut)},children:y<10?`0${y}`:y},y))}),P.jsx("div",{id:"wrapper-calendar-minut",className:Ae["container-cell-time"],children:v(0,59,1).map(y=>P.jsx("div",{id:`calendar-minut-${y}`,className:`${Ae["cell-time"]} ${(r==null?void 0:r.minut)===y?f(y,"minut")?Ae.selected:Ae.error:""} ${f(y,"minut")&&(r==null?void 0:r.minut)!=y?Ae.valid:Ae.invalid}`,onClick:()=>{f(y,"minut")&&m(r==null?void 0:r.hour,y)},children:y<10?`0${y}`:y},y))})]})]})},sd=e=>{const t=OE({...e,locale:e.locale,createCalendar:yl}),{title:n}=Q3(e,t),[r,i]=N.useState((e==null?void 0:e.activeType)??"date"),a=o=>{t.setValue(o)};return Gi(()=>{e!=null&&e.activeType&&i(e.activeType)},[e==null?void 0:e.activeType]),P.jsxs("div",{className:"1ru-text-laba-base-sr",children:[r==="date"&&P.jsx(P.Fragment,{children:P.jsxs("div",{className:Ae["container-calendar"],children:[P.jsxs("div",{className:"1ru-flex 1ru-gap-2",children:[P.jsx(YN,{state:t,setActiveTypeCalendar:i,...e}),(e==null?void 0:e.isCustomTime)&&P.jsx(KN,{minDate:e.minDate,maxDate:e.maxDate,time:e.time,value:e.value,hiddenHeader:e.hiddenHeader,handlerChangeTime:e.handlerChangeTime})]}),((e==null?void 0:e.withConfirm)??(e==null?void 0:e.isCustomTime))&&P.jsxs("div",{className:`${Ae["footer-calendar"]}`,children:[typeof(e==null?void 0:e.buttonReset)=="function"?P.jsx("div",{onClick:()=>e.handlerReset(t),children:e.buttonReset()}):P.jsx(mr,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(t),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?P.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):P.jsx(mr,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})}),r==="month"&&P.jsx(SS,{state:t,setActiveTypeCalendar:i,type:e.type,onChangeMonth:a,hiddenHeader:e.hiddenHeader}),r==="year"&&P.jsx(w2,{state:t,type:e.type,setActiveTypeCalendar:i,title:n,onChangeYear:a,hiddenHeader:e.hiddenHeader})]})},ZN=e=>{const t=N.useRef(null),{locale:n}=yr(),r=VN({...e,locale:n,createCalendar:yl}),i=m=>{let b="";switch(m){case 0:b="Min";break;case 1:b="Sen";break;case 2:b="Sel";break;case 3:b="Rab";break;case 4:b="Kam";break;case 5:b="Jum";break;case 6:b="Sab";break}return b},{calendarProps:a,prevButtonProps:o,nextButtonProps:s,title:l}=_N(e,r,t),{gridProps:u,headerProps:c,weekDays:p}=eE({},r),h=Kg(r.visibleRange.start,n),[d,v]=N.useState("date");return P.jsxs("div",{className:"1ru-text-laba-base-sr",children:[d==="date"&&P.jsx(P.Fragment,{children:P.jsx("div",{...a,ref:t,children:P.jsxs("div",{className:Ae["container-calendar"],children:[P.jsxs("div",{className:Ae["header-calendar"],children:[P.jsx(Bo,{...o,children:typeof(e==null?void 0:e.prevIcon)=="function"||N.isValidElement(e==null?void 0:e.prevIcon)?N.isValidElement(e.prevIcon)?e.prevIcon:e.prevIcon():P.jsx(Or,{className:"1ru-rotate-90"})}),P.jsx("div",{className:Ae["header-button-calendar"],onClick:()=>v("month"),children:l}),P.jsx(Bo,{...s,children:typeof(e==null?void 0:e.nextIcon)=="function"||N.isValidElement(e==null?void 0:e.nextIcon)?N.isValidElement(e.nextIcon)?e.nextIcon:e.nextIcon():P.jsx(Or,{className:"-1ru-rotate-90"})})]}),P.jsxs("table",{...u,cellPadding:"0",className:"flex-1",children:[P.jsx("thead",{...c,className:"text-gray-600",children:P.jsx("tr",{children:p.map((m,b)=>P.jsx("th",{className:Ae["days-calendar"],children:i(b)},b))})}),P.jsx("tbody",{children:[...new Array(h).keys()].map(m=>P.jsx("tr",{children:r.getDatesInWeek(m).map((b,f)=>b?P.jsx(ES,{state:r,date:b},f):P.jsx("td",{},f))},m))})]}),e.withConfirm&&P.jsxs("div",{className:Ae["footer-calendar"],children:[typeof(e==null?void 0:e.buttonReset)=="function"?P.jsx("div",{onClick:()=>e.handlerReset(r),children:e.buttonReset()}):P.jsx(mr,{variants:"nude-laba-blue-10",size:"small",onClick:()=>e.handlerReset(r),children:"Reset"}),typeof(e==null?void 0:e.buttonSubmit)=="function"?P.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):P.jsx(mr,{size:"small",onClick:e.handlerSubmit,children:"Terapkan"})]})]})})}),d==="month"&&P.jsx(SS,{state:r,setActiveTypeCalendar:v,type:["date","month","year"]}),d==="year"&&P.jsx(w2,{state:r,setActiveTypeCalendar:v,title:l,type:["date","month","year"]})]})},wS=e=>{const t=XN(e),n=N.useRef(null),{calendarProps:r}=LN(e,t,n);return P.jsx("div",{ref:n,children:P.jsx(ZN,{handlerReset:e.handlerReset,handlerSubmit:e.handlerSubmit,withConfirm:e.withConfirm,prevIcon:e.prevIcon,nextIcon:e.nextIcon,buttonReset:e.buttonReset,buttonSubmit:e.buttonSubmit,...r})})},Jl=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},qN=e=>{const{minDate:t,maxDate:n,value:r,defaultValue:i,withConfirm:a=!1,isCustomTime:o=!1,className:s,classNameButton:l,buttonClick:u,buttonReset:c,buttonSubmit:p,prevIcon:h,nextIcon:d,onChange:v,id:m="date-picker",idPopover:b="date-picker-popover",floatingOptions:f={},offsetPopover:y=5,zIndexPopper:C=1,hiddenHeader:S}=e,w=Yi(),{locale:E}=yr(),x=Jl(t),g=Jl(n),I=N.useRef(null),[T,_]=N.useState(),[A,F]=N.useState(),B=G=>{var Z;const W=new Date;let U=G.toDate(Ta());U.setHours(W.getHours(),W.getMinutes(),W.getSeconds());const J=t?new Date(t):null,Q=n?new Date(n):null;if(o){if(U=new Date(new Date(U).setHours((A==null?void 0:A.hour)??0,A==null?void 0:A.minut,A==null?void 0:A.second)),J&&(J==null?void 0:J.toDateString())===new Date(U).toDateString()&&(J==null?void 0:J.toTimeString())>=(U==null?void 0:U.toTimeString())){if(J&&(J.getHours()>U.getHours()||J.getHours()===U.getHours()&&J.getMinutes()>U.getMinutes()))return;U=new Date(J.setSeconds(J.getSeconds()+1))}if(Q&&(Q==null?void 0:Q.toDateString())===new Date(U).toDateString()&&(Q==null?void 0:Q.toTimeString())<(U==null?void 0:U.toTimeString())){if(Q&&(Q.getHours()<U.getHours()||Q.getHours()===U.getHours()&&Q.getMinutes()<U.getMinutes()))return;U=new Date(Q.setSeconds(Q.getSeconds()-1))}}else J&&w.format(U)===w.format(J)&&J.getTime()>=U.getTime()?U=new Date(J.setSeconds(J.getSeconds()+1)):Q&&w.format(U)===w.format(Q)&&Q.getTime()<=U.getTime()&&(U=new Date(Q.setSeconds(Q.getSeconds()-1)));typeof v=="function"&&(v(U),(Z=I.current)==null||Z.setShow(!1))},$=(G,W)=>{_(G),(W??(!a&&!o))&&B(G)},k=G=>{F(G)},O=G=>{const W=new Date(r??new Date);F({hour:W.getHours(),minut:W.getMinutes(),second:W.getSeconds()}),_(Jl(r))},M=()=>{T&&$(T,!0)};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:m,onClick:G=>{var W;(W=I.current)==null||W.handlerShow(G),O()},className:l,children:typeof u=="function"?u(r):r?new Date(r).toDateString():"Pilih Tanggal"}),P.jsx(bi,{zIndex:C,ref:I,offset:y,id:b,floatingOptions:{placement:"bottom-end",...f},children:P.jsx("div",{className:s??"",children:P.jsx(bp,{locale:"id-ID",children:P.jsx(sd,{minValue:x,maxValue:g,minDate:t,maxDate:n,time:A,locale:E,value:T,buttonReset:c,buttonSubmit:p,prevIcon:h,nextIcon:d,createCalendar:yl,defaultValue:Jl(r),onChange:$,handlerReset:()=>{var G;typeof v=="function"&&(v(i),(G=I.current)==null||G.setShow(!1))},handlerSubmit:M,handlerChangeTime:k,withConfirm:a,isCustomTime:o,type:["date","month","year"],hiddenHeader:S})})})})]})},qf=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},pb=e=>{const t=new Date((e==null?void 0:e.startDate)??new Date),n=new Date((e==null?void 0:e.endDate)??new Date),r=new wt(t.getFullYear(),t.getMonth()+1,t.getDate()),i=new wt(n.getFullYear(),n.getMonth()+1,n.getDate());return e?{start:r,end:i}:void 0},IS=e=>{const{minDate:t,maxDate:n,defaultValue:r,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,typePicker:u="RANGE",onChange:c,onReset:p}=e,{locale:h}=yr(),d=qf(t),v=qf(n),[m,b]=N.useState(),f=w=>{typeof c=="function"&&c(w)},y=(w,E)=>{const x=w.start.toDate(Ta()),g=w.end.toDate(Ta());b(w),(E??!i)&&f({startDate:x,endDate:new Date(g.setHours(23,59,59))})},C=w=>{if(typeof p=="function")p();else if(r&&w){const E=new Date(r.endDate??new Date),x=w.focusedDate.set({month:E.getMonth()+1,year:E.getFullYear()});w.setFocusedDate(x)}b(pb(r))},S=()=>{m&&y(m,!0)};return P.jsx("div",{className:"1ru-flex 1ru-flex-col",children:P.jsxs(bp,{locale:"id-ID",children:[u==="RANGE"&&P.jsx(wS,{defaultValue:pb(r),value:m,minValue:d,maxValue:v,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,onChange:w=>y(w),handlerReset:C,handlerSubmit:S}),u==="SINGLE"&&P.jsx(sd,{defaultValue:qf(r==null?void 0:r.endDate),value:m==null?void 0:m.end,minValue:d,maxValue:v,minDate:t,maxDate:n,withConfirm:i,prevIcon:a,nextIcon:o,buttonReset:s,buttonSubmit:l,locale:h,createCalendar:yl,onChange:w=>y({start:w,end:w}),handlerReset:C,handlerSubmit:S,type:["date","month","year"]})]})})},JN=({value:e,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,className:a,classNameButton:o,buttonClick:s,buttonList:l,typePicker:u="RANGE",onChange:c,idPopover:p="filter-date-popover",id:h="filter-date",floatingOptions:d={},offsetPopover:v=5,zIndexPopper:m=0,defaultValueLabel:b,mountedExecuteChange:f=!0,formatingDate:y})=>{const C=[{key:"thisDay",value:"Hari ini"},{key:"thisWeek",value:"Minggu ini"},{key:"thisMonth",value:"Bulan ini"},{key:"thisYear",value:"Tahun ini"},{key:"yesterday",value:"Kemarin"},{key:"lastWeek",value:"Minggu lalu"},{key:"lastMonth",value:"Bulan lalu"},{key:"lastYear",value:"Tahun lalu"},{key:"custom",value:"Kustom"}],S=N.useRef(null),[w,E]=N.useState(),[x,g]=N.useState(),[I,T]=N.useState(),_=(Z,ee)=>{const q=new Date(Z??new Date);return ee==="start"?new Date(q.setHours(0,0,0)):new Date(q.setHours(23,59,59))},A=()=>{const Z=new Date;return{startDate:Z,endDate:Z}},F=()=>{const Z=new Date;Z.setDate(Z.getDate()-Z.getDay());const ee=new Date;return ee.setDate(ee.getDate()+(6-ee.getDay())),{startDate:Z,endDate:ee}},B=()=>{const Z=new Date,ee=new Date(Z.getFullYear(),Z.getMonth(),1),q=new Date(Z.getFullYear(),Z.getMonth()+1,0);return{startDate:ee,endDate:q}},$=()=>{const Z=new Date(new Date().getFullYear(),0,1),ee=new Date(new Date().getFullYear(),11,31);return{startDate:Z,endDate:ee}},k=()=>{const Z=new Date(new Date().setDate(new Date().getDate()-1));return{startDate:Z,endDate:Z}},O=()=>{const Z=new Date;Z.setDate(Z.getDate()-(7+Z.getDay()));const ee=new Date;return ee.setDate(ee.getDate()-(ee.getDay()+1)),{startDate:Z,endDate:ee}},M=()=>{const Z=new Date,ee=new Date(Z.getFullYear(),Z.getMonth()-1,1),q=new Date(Z.getFullYear(),Z.getMonth(),0);return{startDate:ee,endDate:q}},G=()=>{const Z=new Date(new Date().getFullYear()-1,0,1),ee=new Date(new Date().getFullYear()-1,11,31);return{startDate:Z,endDate:ee}},W=(Z,ee,q)=>{var le;if(T(Z),typeof c=="function"){let re=Z;y==="string"&&Z?re={startDate:io(Z.startDate,y),endDate:io(Z.endDate,y)}:typeof y=="boolean"&&Z&&(re={startDate:io(Z.startDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),endDate:io(Z.endDate,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")}),(le=S.current)==null||le.setShow(!1),c(re,ee??"",q)}},U=(Z,ee)=>{E(Z);let q;if((Z==null?void 0:Z.key)!=="custom"){switch(g(Z),Z==null?void 0:Z.key){case"thisDay":q=A();break;case"thisWeek":q=F();break;case"thisMonth":q=B();break;case"thisYear":q=$();break;case"yesterday":q=k();break;case"lastWeek":q=O();break;case"lastMonth":q=M();break;case"lastYear":q=G();break}q&&ee&&W({startDate:_(q.startDate,"start"),endDate:_(q.endDate,"end")},Z==null?void 0:Z.value,Z)}},J=(Z,ee)=>{const q=(l??C).find(le=>le.key===Z);!Z&&!q?(ee&&W(),U(void 0,ee),g(void 0)):typeof Z=="object"?(ee&&W({startDate:_(Z.startDate,"start"),endDate:_(Z.endDate,"end")},"Kustom",{key:"custom",value:"Kustom"}),U({key:"custom",value:"Kustom"},ee),g({key:"custom",value:"Kustom"})):(U(q,ee),g(q))},Q=()=>{var Z;if(e){T(e);const ee=(Z=l??C)==null?void 0:Z.find(q=>q.key===e.label||q.value===e.label);Object.keys(ee||{}).length>0&&E(ee)}else E(void 0),g(void 0)};return N.useEffect(()=>{Q()},[JSON.stringify(e)]),N.useEffect(()=>{J(b??e,f)},[]),P.jsxs(P.Fragment,{children:[P.jsxs("div",{onClick:Z=>{var ee;(ee=S.current)==null||ee.handlerShow(Z),Q()},className:o,id:h,children:[N.isValidElement(s)&&s,typeof s=="function"?s(I,x):"Pilih Filter"]}),P.jsx(bi,{zIndex:m,ref:S,offset:v,id:p,floatingOptions:{placement:"bottom-end",...d},children:P.jsxs("div",{className:`${Ae["container-filter-date"]} ${a}`,children:[P.jsx("div",{children:(l??C).map((Z,ee)=>P.jsx("div",{className:`${Ae["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(w==null?void 0:w.key)===Z.key?"1ru-text-laba-blue-10":""}`,onClick:()=>U(Z,!0),children:Z.value},ee))}),(w==null?void 0:w.key)==="custom"&&P.jsx("div",{children:P.jsx(IS,{defaultValue:I,prevIcon:t,nextIcon:n,buttonReset:r,buttonSubmit:i,onChange:Z=>{W(Z,"Kustom",{key:"custom",value:"Kustom"}),g({key:"custom",value:"Kustom"})},onReset:()=>{J(b,!0)},typePicker:u,withConfirm:!0})})]})})]})},QN="_active_103r8_306",eM="_disabled_103r8_309",on={"title-switch-payhere":"_title-switch-payhere_103r8_73","description-switch-payhere":"_description-switch-payhere_103r8_97","title-switch-laba":"_title-switch-laba_103r8_211","description-switch-laba":"_description-switch-laba_103r8_235","switch-l":"_switch-l_103r8_293","switch-payhere":"_switch-payhere_103r8_293",active:QN,disabled:eM,"disabled-nonactive":"_disabled-nonactive_103r8_312","thumb-switch":"_thumb-switch_103r8_315","switch-laba":"_switch-laba_103r8_332","switch-r":"_switch-r_103r8_372","switch-s":"_switch-s_103r8_451"},tM=({value:e,disabled:t,title:n="",description:r="",size:i="regular",kind:a="payhere",id:o,className:s,classNameTitle:l,classNameDesc:u,onChange:c})=>{const p={size:{large:on["switch-l"],regular:on["switch-r"],small:on["switch-s"]},kind:{laba:on["switch-laba"],payhere:on["switch-payhere"]},text:{title:{laba:on["title-switch-laba"],payhere:on["title-switch-payhere"]},desc:{laba:on["description-switch-laba"],payhere:on["description-switch-payhere"]}}},h=()=>{!t&&typeof c=="function"&&c(!e)};return P.jsxs("div",{id:o??"1ru-switch",className:`1ru-flex 1ru-gap-2 ${s??""}`,onClick:d=>d.stopPropagation(),children:[P.jsxs("label",{children:[P.jsx("input",{type:"checkbox",checked:e,onChange:h,className:"1ru-hidden"}),P.jsx("span",{className:`${p.size[i]} ${p.kind[a]} ${e?on.active:""} ${t?on.disabled:""} ${!e&&t?on["disabled-nonactive"]:""}`,children:P.jsx("span",{className:`${on["thumb-switch"]} ${e?on.active:""} ${t?on.disabled:""} ${!e&&t?on["disabled-nonactive"]:""}`})})]}),(n||r)&&P.jsxs("div",{children:[n&&P.jsx("div",{className:`${p.text.title[a]} ${l}`,children:n}),r&&P.jsx("div",{className:`${p.text.desc[a]} ${u}`,children:r})]})]})},nM="_loading_1t1z4_291",He={"button-l":"_button-l_1t1z4_67","button-m":"_button-m_1t1z4_67","button-s":"_button-s_1t1z4_103","button-xs":"_button-xs_1t1z4_103","button-large":"_button-large_1t1z4_205","button-reguler":"_button-reguler_1t1z4_205","button-small":"_button-small_1t1z4_223","button-extra-small":"_button-extra-small_1t1z4_223",loading:nM,"nude-laba-red-05":"_nude-laba-red-05_1t1z4_306","nude-laba-red-10":"_nude-laba-red-10_1t1z4_306","nude-gray-500":"_nude-gray-500_1t1z4_306","nude-green-700":"_nude-green-700_1t1z4_306","nude-red-700":"_nude-red-700_1t1z4_306","nude-laba-blue-10":"_nude-laba-blue-10_1t1z4_306","ghost-laba-green-10":"_ghost-laba-green-10_1t1z4_306","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1t1z4_306","ghost-green-700":"_ghost-green-700_1t1z4_306","ghost-red-700":"_ghost-red-700_1t1z4_306","ghost-laba-blue-10":"_ghost-laba-blue-10_1t1z4_306","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_1t1z4_306","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_1t1z4_306","primary-green-700":"_primary-green-700_1t1z4_306","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_1t1z4_306","primary-laba-blue-10":"_primary-laba-blue-10_1t1z4_306","tertiary-gray-500":"_tertiary-gray-500_1t1z4_306","tertiary-red-600":"_tertiary-red-600_1t1z4_306","tertiary-red-300":"_tertiary-red-300_1t1z4_306","tertiary-blue-700":"_tertiary-blue-700_1t1z4_306","secondary-green-600":"_secondary-green-600_1t1z4_306","secondary-red-700":"_secondary-red-700_1t1z4_306","secondary-red-600":"_secondary-red-600_1t1z4_306","secondary-blue-700":"_secondary-blue-700_1t1z4_306","primary-red-700":"_primary-red-700_1t1z4_306","primary-blue-700":"_primary-blue-700_1t1z4_306","icon-loading":"_icon-loading_1t1z4_366"},rM=({className:e=""})=>P.jsx("svg",{className:`${He["icon-loading"]} ${e??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:P.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
115
115
|
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
|
116
116
|
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
|
117
117
|
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
|
@@ -122,21 +122,21 @@ You should wrap it with \`css\` like this:
|
|
|
122
122
|
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
|
123
123
|
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
|
124
124
|
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),_S=N.forwardRef((e,t)=>{const{size:n="reguler",variants:r="primary-laba-blue-10",children:i,className:a,classNameIconLoading:o,loading:s,onClick:l,type:u="button",disabled:c,...p}=e,h={size:{large:He["button-large"],reguler:He["button-reguler"],small:He["button-small"],"extra-small":He["button-extra-small"],l:He["button-l"],m:He["button-m"],s:He["button-s"],xs:He["button-xs"]},loadingSize:{large:"1ru-size-6",reguler:"1ru-size-5",small:"1ru-size-5","extra-small":"1ru-size-5",l:"1ru-size-6",m:"1ru-size-5",s:"1ru-size-5",xs:"1ru-size-5"},variants:{"primary-laba-blue-10":He["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":He["primary-red-700-dsb_laba-grey-06"],"primary-green-700":He["primary-green-700"],"filled-laba-white_laba-blue-10":He["filled-laba-white_laba-blue-10"],"filled-laba-white_laba-red-05":He["filled-laba-white_laba-red-05"],"ghost-laba-blue-10":He["ghost-laba-blue-10"],"ghost-red-700":He["ghost-red-700"],"ghost-green-700":He["ghost-green-700"],"ghost-laba-green-10":He["ghost-laba-green-10"],"nude-laba-blue-10":He["nude-laba-blue-10"],"nude-red-700":He["nude-red-700"],"nude-green-700":He["nude-green-700"],"nude-gray-500":He["nude-gray-500"],"primary-blue-700":He["primary-blue-700"],"secondary-blue-700":He["secondary-blue-700"],"tertiary-blue-700":He["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":He["ghost-blue-gray-100-bg_white"],"secondary-red-600":He["secondary-red-600"],"tertiary-red-300":He["tertiary-red-300"],"tertiary-gray-500":He["tertiary-gray-500"],"tertiary-red-600":He["tertiary-red-600"],"secondary-green-600":He["secondary-green-600"],"nude-laba-red-10":He["nude-laba-red-10"],"nude-laba-red-05":He["nude-laba-red-05"],"primary-red-700":He["primary-red-700"],"secondary-red-700":He["secondary-red-700"]}};return P.jsxs("button",{onClick:s?void 0:l,ref:t,className:`${h.size[n]} ${h.variants[r]}
|
|
125
|
-
${s?He.loading:""} ${a??""}`,type:u,disabled:c??s,...p,children:[s&&P.jsx(
|
|
125
|
+
${s?He.loading:""} ${a??""}`,type:u,disabled:c??s,...p,children:[s&&P.jsx(rM,{className:`${h.loadingSize[n]} ${o}`}),i]})});_S.displayName="ButtonIcon";const ze={"outline-laba-red-06":"_outline-laba-red-06_1gf6a_277","outline-laba-green-06":"_outline-laba-green-06_1gf6a_277","outline-laba-orange-06-bg_laba-orange-01":"_outline-laba-orange-06-bg_laba-orange-01_1gf6a_277","outline-laba-orange-06":"_outline-laba-orange-06_1gf6a_277","outline-laba-blue-01":"_outline-laba-blue-01_1gf6a_277","outline-amber-800":"_outline-amber-800_1gf6a_277","outline-blue-600":"_outline-blue-600_1gf6a_277","outline-red-500":"_outline-red-500_1gf6a_277","outline-green-600":"_outline-green-600_1gf6a_277","outline-gray-600":"_outline-gray-600_1gf6a_277","ghost-laba-red-01":"_ghost-laba-red-01_1gf6a_277","ghost-laba-grey-05":"_ghost-laba-grey-05_1gf6a_277","ghost-laba-blue-01":"_ghost-laba-blue-01_1gf6a_277","ghost-laba-blue-02":"_ghost-laba-blue-02_1gf6a_277","ghost-laba-green-02":"_ghost-laba-green-02_1gf6a_277","ghost-laba-green-01":"_ghost-laba-green-01_1gf6a_277","ghost-laba-orange-01":"_ghost-laba-orange-01_1gf6a_277","ghost-amber-100":"_ghost-amber-100_1gf6a_277","ghost-blue-100":"_ghost-blue-100_1gf6a_277","ghost-red-100":"_ghost-red-100_1gf6a_277","ghost-green-100":"_ghost-green-100_1gf6a_277","ghost-gray-200":"_ghost-gray-200_1gf6a_277","filled-cyan-800-bg_cyan-100":"_filled-cyan-800-bg_cyan-100_1gf6a_277","filled-laba-green-10":"_filled-laba-green-10_1gf6a_277","filled-blue-gray-50":"_filled-blue-gray-50_1gf6a_277","filled-green-50":"_filled-green-50_1gf6a_277","filled-red-900":"_filled-red-900_1gf6a_277","filled-lime-900-bg_lime-100":"_filled-lime-900-bg_lime-100_1gf6a_277","filled-lime-700":"_filled-lime-700_1gf6a_277","filled-amber-800":"_filled-amber-800_1gf6a_277","filled-pink-600":"_filled-pink-600_1gf6a_277","filled-blue-600":"_filled-blue-600_1gf6a_277","filled-red-500":"_filled-red-500_1gf6a_277","filled-green-600":"_filled-green-600_1gf6a_277","filled-gray-600":"_filled-gray-600_1gf6a_277"},Us={"payhere-h1":"1ru-text-payhere-h1","payhere-h2":"1ru-text-payhere-h2","payhere-h3":"1ru-text-payhere-h3","payhere-h4":"1ru-text-payhere-h4","payhere-h5":"1ru-text-payhere-h5","payhere-h6":"1ru-text-payhere-h6","payhere-body-lr":"1ru-text-payhere-body-lr","payhere-body-lm":"1ru-text-payhere-body-lm","payhere-body-ls":"1ru-text-payhere-body-ls","payhere-body-lb":"1ru-text-payhere-body-lb","payhere-body-mr":"1ru-text-payhere-body-mr","payhere-body-mm":"1ru-text-payhere-body-mm","payhere-body-ms":"1ru-text-payhere-body-ms","payhere-body-mb":"1ru-text-payhere-body-mb","payhere-label-r":"1ru-text-payhere-label-r","payhere-label-m":"1ru-text-payhere-label-m","payhere-body-sr":"1ru-text-payhere-body-sr","payhere-body-sm":"1ru-text-payhere-body-sm","payhere-body-esr":"1ru-text-payhere-body-esr","payhere-body-esm":"1ru-text-payhere-body-esm","laba-title-lb":"1ru-text-laba-title-lb","laba-title-ls":"1ru-text-laba-title-ls","laba-title-lr":"1ru-text-laba-title-lr","laba-title-mb":"1ru-text-laba-title-mb","laba-title-ms":"1ru-text-laba-title-ms","laba-title-mr":"1ru-text-laba-title-mr","laba-h1":"1ru-text-laba-h1","laba-h1-b":"1ru-text-laba-h1-b","laba-h1-sb":"1ru-text-laba-h1-sb","laba-h1-r":"1ru-text-laba-h1-r","laba-h2":"1ru-text-laba-h2","laba-h2-b":"1ru-text-laba-h2-b","laba-h2-sb":"1ru-text-laba-h2-sb","laba-h2-r":"1ru-text-laba-h2-r","laba-base-rb":"1ru-text-laba-base-rb","laba-base-rs":"1ru-text-laba-base-rs","laba-base-rr":"1ru-text-laba-base-rr","laba-base-sb":"1ru-text-laba-base-sb","laba-base-ss":"1ru-text-laba-base-ss","laba-base-sr":"1ru-text-laba-base-sr","laba-subtitle-rb":"1ru-text-laba-subtitle-rb","laba-subtitle-rs":"1ru-text-laba-subtitle-rs","laba-subtitle-rr":"1ru-text-laba-subtitle-rr","laba-subtitle-sb":"1ru-text-laba-subtitle-sb","laba-subtitle-ss":"1ru-text-laba-subtitle-ss","laba-subtitle-sr":"1ru-text-laba-subtitle-sr"},DS=N.forwardRef((e,t)=>{const n={variants:{"filled-gray-600":ze["filled-gray-600"],"filled-green-600":ze["filled-green-600"],"filled-red-500":ze["filled-red-500"],"filled-blue-600":ze["filled-blue-600"],"filled-amber-800":ze["filled-amber-800"],"filled-pink-600":ze["filled-pink-600"],"filled-lime-700":ze["filled-lime-700"],"filled-lime-900-bg_lime-100":ze["filled-lime-900-bg_lime-100"],"filled-red-900":ze["filled-red-900"],"filled-laba-green-10":ze["filled-laba-green-10"],"filled-green-50":ze["filled-green-50"],"filled-blue-gray-50":ze["filled-blue-gray-50"],"filled-cyan-800-bg_cyan-100":ze["filled-cyan-800-bg_cyan-100"],"ghost-laba-orange-01":ze["ghost-laba-orange-01"],"ghost-laba-green-01":ze["ghost-laba-green-01"],"ghost-laba-green-02":ze["ghost-laba-green-02"],"ghost-laba-blue-02":ze["ghost-laba-blue-02"],"ghost-laba-blue-01":ze["ghost-laba-blue-01"],"ghost-gray-200":ze["ghost-gray-200"],"ghost-green-100":ze["ghost-green-100"],"ghost-red-100":ze["ghost-red-100"],"ghost-blue-100":ze["ghost-blue-100"],"ghost-amber-100":ze["ghost-amber-100"],"ghost-laba-grey-05":ze["ghost-laba-grey-05"],"ghost-laba-red-01":ze["ghost-laba-red-01"],"outline-gray-600":ze["outline-gray-600"],"outline-green-600":ze["outline-green-600"],"outline-red-500":ze["outline-red-500"],"outline-blue-600":ze["outline-blue-600"],"outline-amber-800":ze["outline-amber-800"],"outline-laba-blue-01":ze["outline-laba-blue-01"],"outline-laba-orange-06":ze["outline-laba-orange-06"],"outline-laba-orange-06-bg_laba-orange-01":ze["outline-laba-orange-06-bg_laba-orange-01"],"outline-laba-green-06":ze["outline-laba-green-06"],"outline-laba-red-06":ze["outline-laba-red-06"]},fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},typography:Us},{className:r,rounded:i="8px",variants:a="filled-gray-600",children:o,fonts:s="inter",typography:l="payhere-body-esm",...u}=e;return P.jsx("span",{className:`${Kc[i]} ${n.fonts[s]}
|
|
126
126
|
${n.variants[a]} ${n.typography[l]} ${r??""}`,ref:t,...u,children:o})});DS.displayName="Badges";const Zr={"chips-reguler":"_chips-reguler_1g6ru_277","chips-small":"_chips-small_1g6ru_289","chips-l":"_chips-l_1g6ru_301","chips-s":"_chips-s_1g6ru_289","filled-laba-blue-10":"_filled-laba-blue-10_1g6ru_325","filled-blue-gray-100":"_filled-blue-gray-100_1g6ru_330","filled-gray-300":"_filled-gray-300_1g6ru_335","ghost-laba-grey-02":"_ghost-laba-grey-02_1g6ru_340","nude-laba-grey-10":"_nude-laba-grey-10_1g6ru_346"},TS=N.forwardRef((e,t)=>{const{className:n,children:r,fonts:i="inter",size:a="reguler",variants:o="filled-laba-blue-10",icon:s=P.jsx(P.Fragment,{}),removeIcon:l=P.jsx(P.Fragment,{}),typography:u}=e,c={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},size:{reguler:{style:Zr["chips-reguler"],typography:"laba-subtitle-rb"},small:{style:Zr["chips-small"],typography:"laba-subtitle-sb"},l:{style:Zr["chips-l"],typography:"payhere-label-r"},s:{style:Zr["chips-s"],typography:"payhere-body-esm"}},typography:Us,variants:{"filled-laba-blue-10":Zr["filled-laba-blue-10"],"filled-gray-300":Zr["filled-gray-300"],"filled-blue-gray-100":Zr["filled-blue-gray-100"],"ghost-laba-grey-02":Zr["ghost-laba-grey-02"],"nude-laba-grey-10":Zr["nude-laba-grey-10"]}};return P.jsxs("span",{className:`${c.fonts[i]} ${c.size[a].style}
|
|
127
127
|
${u?c.typography[u]:c.size[a].typography}
|
|
128
|
-
${c.variants[o]} ${n??""}`,ref:t,children:[typeof s=="function"&&s(),N.isValidElement(s)&&s,r,typeof l=="function"&&l(),N.isValidElement(l)&&l]})});TS.displayName="Chips";const
|
|
128
|
+
${c.variants[o]} ${n??""}`,ref:t,children:[typeof s=="function"&&s(),N.isValidElement(s)&&s,r,typeof l=="function"&&l(),N.isValidElement(l)&&l]})});TS.displayName="Chips";const iM="_container_ryss4_277",aM="_label_ryss4_399",oM="_disabled_ryss4_403",nn={container:iM,"container-input":"_container-input_ryss4_277","input-radio-checkbox-s":"_input-radio-checkbox-s_ryss4_277","input-radio-checkbox-m":"_input-radio-checkbox-m_ryss4_277","input-radio-checkbox-small":"_input-radio-checkbox-small_ryss4_277","input-radio-checkbox-reguler":"_input-radio-checkbox-reguler_ryss4_277","checked-icon":"_checked-icon_ryss4_287","default-disabled-radio":"_default-disabled-radio_ryss4_324","default-disabled-checkbox":"_default-disabled-checkbox_ryss4_334","laba-blue-10":"_laba-blue-10_ryss4_342","laba-blue-10-hv_bg_transparent":"_laba-blue-10-hv_bg_transparent_ryss4_354","blue-700":"_blue-700_ryss4_366","blue-700-hv_bg_transparent":"_blue-700-hv_bg_transparent_ryss4_378",label:aM,disabled:oM},AS=({className:e})=>P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-3.5 1ru-w-3.5 1ru-text-white ${e??""}`,viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:P.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),RS=({className:e})=>P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-4 1ru-w-4 1ru-text-blue-700 ${e??""}`,viewBox:"0 0 16 16",fill:"currentColor",children:P.jsx("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})}),ld=N.forwardRef((e,t)=>{const{variantDisableds:n,classNameContainer:r,classNameLabel:i,classNameCheckedIcon:a,fonts:o="lato",id:s,name:l,borderRadius:u="full",className:c,sizeInput:p="reguler",variants:h="laba-blue-10",type:d="checkbox",checkedIcon:v,label:m,typography:b="payhere-body-mr",classNameContainerCheckedIcon:f,...y}=e,C={size:{reguler:nn["input-radio-checkbox-reguler"],small:nn["input-radio-checkbox-small"],m:nn["input-radio-checkbox-m"],s:nn["input-radio-checkbox-s"]},variants:{"laba-blue-10":nn["laba-blue-10"],"laba-blue-10-hv_bg_transparent":nn["laba-blue-10-hv_bg_transparent"],"blue-700":nn["blue-700"],"blue-700-hv_bg_transparent":nn["blue-700-hv_bg_transparent"]},variantDisableds:{"default-disabled-checkbox":nn["default-disabled-checkbox"],"default-disabled-radio":nn["default-disabled-radio"]},borderRadius:Kc,typography:Us,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"}},S=()=>n?C.variantDisableds[n]:d==="checkbox"?nn["default-disabled-checkbox"]:nn["default-disabled-radio"];return P.jsxs("div",{className:`${nn.container} ${r??""}`,children:[P.jsxs("div",{className:nn["container-input"],children:[P.jsx("input",{id:s??l,type:d,name:l,className:`${C.size[p]} ${C.variants[h]}
|
|
129
129
|
${C.borderRadius[u]} ${S()} ${c??""}`,ref:t,...y}),P.jsx("span",{className:`${nn["checked-icon"]} ${f??""}`,children:v?P.jsx(P.Fragment,{children:v}):P.jsx(P.Fragment,{children:d==="checkbox"?P.jsx(AS,{className:a}):P.jsx(RS,{className:a})})})]}),m&&P.jsx("label",{className:`${C.fonts[o]} ${C.typography[b]}
|
|
130
|
-
${nn.label} ${y.disabled?nn.disabled:""} ${i??""}`,htmlFor:s??l,children:m})]})});ld.displayName="RadioCheckbox";const
|
|
130
|
+
${nn.label} ${y.disabled?nn.disabled:""} ${i??""}`,htmlFor:s??l,children:m})]})});ld.displayName="RadioCheckbox";const sM="_label_1hlqr_67",lM="_desc_1hlqr_109",uM="_container_1hlqr_277",cM="_disabled_1hlqr_287",aa={"blue-50":"_blue-50_1hlqr_67",label:sM,desc:lM,"laba-blue-01":"_laba-blue-01_1hlqr_211",container:uM,disabled:cM,"same-background":"_same-background_1hlqr_297"},dM=({radioCheckboxProps:e,name:t,id:n,type:r="checkbox",typographyLabel:i,typographyDesc:a,fonts:o,borderRadius:s="8px",className:l,disabled:u,variants:c,label:p,desc:h,backgroundWithHover:d=!1,...v})=>{const m={borderRadius:Kc,typographyLabel:Us,typographyDesc:Us,fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-01":aa["laba-blue-01"],"blue-50":aa["blue-50"]}},b=()=>o?m.fonts[o]:r==="checkbox"?m.fonts.lato:m.fonts.inter,f=()=>c?m.variants[c]:r==="checkbox"?m.variants["laba-blue-01"]:m.variants["blue-50"];return P.jsxs("label",{className:`${aa.container} ${d?aa["same-background"]:""}
|
|
131
131
|
${m.borderRadius[s]}
|
|
132
132
|
${b()} ${f()} ${u?aa.disabled:""} ${l??""}`,htmlFor:n??t,children:[P.jsx(ld,{id:n,name:t,type:r,disabled:u,...e,...v}),P.jsxs("div",{children:[P.jsx("p",{className:`${aa.label}
|
|
133
|
-
${i?`${m.typographyLabel[i]} custom-typography`:""}`,children:p}),P.jsx("p",{className:`${aa.desc} ${a?`${m.typographyDesc[a]} custom-typography`:""}`,children:h})]})]})},mb={"gap-0":"1ru-gap-0","gap-x-0":"1ru-gap-x-0","gap-y-0":"1ru-gap-y-0","gap-px":"1ru-gap-px","gap-x-px":"1ru-gap-x-px","gap-y-px":"1ru-gap-y-px","gap-0.5":"1ru-gap-0.5","gap-x-0.5":"1ru-gap-x-0.5","gap-y-0.5":"1ru-gap-y-0.5","gap-1":"1ru-gap-1","gap-x-1":"1ru-gap-x-1","gap-y-1":"1ru-gap-y-1","gap-1.5":"1ru-gap-1.5","gap-x-1.5":"1ru-gap-x-1.5","gap-y-1.5":"1ru-gap-y-1.5","gap-2":"1ru-gap-2","gap-x-2":"1ru-gap-x-2","gap-y-2":"1ru-gap-y-2","gap-2.5":"1ru-gap-2.5","gap-x-2.5":"1ru-gap-x-2.5","gap-y-2.5":"1ru-gap-y-2.5","gap-3":"1ru-gap-3","gap-x-3":"1ru-gap-x-3","gap-y-3":"1ru-gap-y-3","gap-3.5":"1ru-gap-3.5","gap-x-3.5":"1ru-gap-x-3.5","gap-y-3.5":"1ru-gap-y-3.5","gap-4":"1ru-gap-4","gap-x-4":"1ru-gap-x-4","gap-y-4":"1ru-gap-y-4","gap-5":"1ru-gap-5","gap-x-5":"1ru-gap-x-5","gap-y-5":"1ru-gap-y-5","gap-6":"1ru-gap-6","gap-x-6":"1ru-gap-x-6","gap-y-6":"1ru-gap-y-6","gap-7":"1ru-gap-7","gap-x-7":"1ru-gap-x-7","gap-y-7":"1ru-gap-y-7","gap-8":"1ru-gap-8","gap-x-8":"1ru-gap-x-8","gap-y-8":"1ru-gap-y-8","gap-9":"1ru-gap-9","gap-x-9":"1ru-gap-x-9","gap-y-9":"1ru-gap-y-9","gap-10":"1ru-gap-10","gap-x-10":"1ru-gap-x-10","gap-y-10":"1ru-gap-y-10"},
|
|
133
|
+
${i?`${m.typographyLabel[i]} custom-typography`:""}`,children:p}),P.jsx("p",{className:`${aa.desc} ${a?`${m.typographyDesc[a]} custom-typography`:""}`,children:h})]})]})},mb={"gap-0":"1ru-gap-0","gap-x-0":"1ru-gap-x-0","gap-y-0":"1ru-gap-y-0","gap-px":"1ru-gap-px","gap-x-px":"1ru-gap-x-px","gap-y-px":"1ru-gap-y-px","gap-0.5":"1ru-gap-0.5","gap-x-0.5":"1ru-gap-x-0.5","gap-y-0.5":"1ru-gap-y-0.5","gap-1":"1ru-gap-1","gap-x-1":"1ru-gap-x-1","gap-y-1":"1ru-gap-y-1","gap-1.5":"1ru-gap-1.5","gap-x-1.5":"1ru-gap-x-1.5","gap-y-1.5":"1ru-gap-y-1.5","gap-2":"1ru-gap-2","gap-x-2":"1ru-gap-x-2","gap-y-2":"1ru-gap-y-2","gap-2.5":"1ru-gap-2.5","gap-x-2.5":"1ru-gap-x-2.5","gap-y-2.5":"1ru-gap-y-2.5","gap-3":"1ru-gap-3","gap-x-3":"1ru-gap-x-3","gap-y-3":"1ru-gap-y-3","gap-3.5":"1ru-gap-3.5","gap-x-3.5":"1ru-gap-x-3.5","gap-y-3.5":"1ru-gap-y-3.5","gap-4":"1ru-gap-4","gap-x-4":"1ru-gap-x-4","gap-y-4":"1ru-gap-y-4","gap-5":"1ru-gap-5","gap-x-5":"1ru-gap-x-5","gap-y-5":"1ru-gap-y-5","gap-6":"1ru-gap-6","gap-x-6":"1ru-gap-x-6","gap-y-6":"1ru-gap-y-6","gap-7":"1ru-gap-7","gap-x-7":"1ru-gap-x-7","gap-y-7":"1ru-gap-y-7","gap-8":"1ru-gap-8","gap-x-8":"1ru-gap-x-8","gap-y-8":"1ru-gap-y-8","gap-9":"1ru-gap-9","gap-x-9":"1ru-gap-x-9","gap-y-9":"1ru-gap-y-9","gap-10":"1ru-gap-10","gap-x-10":"1ru-gap-x-10","gap-y-10":"1ru-gap-y-10"},fM="_urls_vp8nl_85",hM="_action_vp8nl_103",gM="_url_vp8nl_85",pM="_active_vp8nl_314",Ja={"blue-700":"_blue-700_vp8nl_85",urls:fM,action:hM,"laba-blue-10":"_laba-blue-10_vp8nl_205",url:gM,active:pM},mM=({as:e,variants:t="laba-blue-10",fonts:n="lato",urls:r=[],textBreadcrumbs:i=[],onClickBreadcrumbs:a=[],gapAction:o,gapUrls:s,className:l,textAction:u="Kembali",iconAction:c,onClickAction:p,onClickUrls:h,separator:d=">",propsLink:v,classNameAction:m,classNameUrl:b,renderAction:f,...y})=>{const C=e??"div",S={fonts:{lato:"1ru-font-lato",inter:"1ru-font-Inter"},variants:{"laba-blue-10":Ja["laba-blue-10"],"blue-700":Ja["blue-700"]},gapAction:mb,gapUrls:mb},w=E=>!!(Array.isArray(r)&&r.length>0&&r.length-1===E);return P.jsxs("div",{className:`${S.fonts[n]} ${S.variants[t]}
|
|
134
134
|
${l??""}`,...y,children:[p&&P.jsxs("div",{onClick:p,className:`${Ja.action} ${m??""}
|
|
135
|
-
${o?S.gapAction[o]:""}`,children:[c,u]}),typeof f=="function"&&f(),P.jsx("div",{className:`${Ja.urls} ${s?S.gapUrls[s]:""}`,children:r==null?void 0:r.map((E,x)=>P.jsxs(N.Fragment,{children:[P.jsx(C,{className:`${Ja.url} ${w(x)?Ja.active:""} ${b??""}`,onClick:()=>{(a==null?void 0:a[x])!==void 0&&typeof a[x]=="function"?a[x]():typeof h=="function"&&h(E)},...v?v(E,x,r):{},children:i[x]}),!w(x)&&P.jsx(P.Fragment,{children:d})]},x))})]})},
|
|
135
|
+
${o?S.gapAction[o]:""}`,children:[c,u]}),typeof f=="function"&&f(),P.jsx("div",{className:`${Ja.urls} ${s?S.gapUrls[s]:""}`,children:r==null?void 0:r.map((E,x)=>P.jsxs(N.Fragment,{children:[P.jsx(C,{className:`${Ja.url} ${w(x)?Ja.active:""} ${b??""}`,onClick:()=>{(a==null?void 0:a[x])!==void 0&&typeof a[x]=="function"?a[x]():typeof h=="function"&&h(E)},...v?v(E,x,r):{},children:i[x]}),!w(x)&&P.jsx(P.Fragment,{children:d})]},x))})]})},vM="_sidebar_1vp5l_292",In={"splace-screen":"_splace-screen_1vp5l_277","payhere-brand-base-white":"_payhere-brand-base-white_1vp5l_289",sidebar:vM,"button-collaps-sidebar":"_button-collaps-sidebar_1vp5l_307","menu-sidebar":"_menu-sidebar_1vp5l_324","sidebar-open":"_sidebar-open_1vp5l_352","container-icon-company-sidebar":"_container-icon-company-sidebar_1vp5l_369","icon-company-sidebar":"_icon-company-sidebar_1vp5l_372","sidebar-close":"_sidebar-close_1vp5l_380","content-sidebar":"_content-sidebar_1vp5l_405","payhere-brand-base-transparent":"_payhere-brand-base-transparent_1vp5l_484","laba-white":"_laba-white_1vp5l_679","lpd-brand-base-white":"_lpd-brand-base-white_1vp5l_1063","lpd-brand-base-transparent":"_lpd-brand-base-transparent_1vp5l_1294"},bM="_hidden_17vqy_366",tt={"item-sidebar-1":"_item-sidebar-1_17vqy_67","item-sidebar-2":"_item-sidebar-2_17vqy_67","item-label":"_item-label_17vqy_103","item-icon-subs":"_item-icon-subs_17vqy_277","item-icon":"_item-icon_17vqy_277","item-sidebar-open":"_item-sidebar-open_17vqy_326","item-sidebar-close":"_item-sidebar-close_17vqy_341","item-sidebar-lpd":"_item-sidebar-lpd_17vqy_350","item-sidebar-laba":"_item-sidebar-laba_17vqy_350","item-sidebar-payhere":"_item-sidebar-payhere_17vqy_350","item-subs-sidebar":"_item-subs-sidebar_17vqy_357",hidden:bM,"divider-item-sidebar-payhere":"_divider-item-sidebar-payhere_17vqy_376","divider-item-sidebar-lpd":"_divider-item-sidebar-lpd_17vqy_381","hover-sidebar-payhere":"_hover-sidebar-payhere_17vqy_423","hover-sidebar-laba":"_hover-sidebar-laba_17vqy_432","hover-sidebar-lpd":"_hover-sidebar-lpd_17vqy_441"},BS=({as:e,show:t,open:n,patch:r,iconSubs:i,variant:a="payhere-brand-base-white",setShow:o,onClickItems:s,propsLink:l,...u})=>{var C,S,w,E,x,g,I;const c={activeColor:{"payhere-brand-base-white":tt["item-sidebar-payhere"],"payhere-brand-base-transparent":tt["item-sidebar-payhere"],"laba-white":tt["item-sidebar-laba"],"lpd-brand-base-white":tt["item-sidebar-lpd"],"lpd-brand-base-transparent":tt["item-sidebar-lpd"]},hoverColor:{"payhere-brand-base-white":tt["hover-sidebar-payhere"],"payhere-brand-base-transparent":tt["hover-sidebar-payhere"],"laba-white":tt["hover-sidebar-laba"],"lpd-brand-base-white":tt["hover-sidebar-lpd"],"lpd-brand-base-transparent":tt["hover-sidebar-lpd"]},divider:{"payhere-brand-base-white":tt["divider-item-sidebar-payhere"],"payhere-brand-base-transparent":tt["divider-item-sidebar-payhere"],"laba-white":tt["divider-item-sidebar-laba"],"lpd-brand-base-white":tt["divider-item-sidebar-lpd"],"lpd-brand-base-transparent":tt["divider-item-sidebar-lpd"]}};let p=P.jsx(P.Fragment,{});const h=e??"div",[d,v]=N.useState(!1),m=r===u.slug,b=t.split("/"),f=b.includes(u.name),y=()=>{if(u.subs.length>0)if(f){const T=b.splice(0,b.indexOf(u.name));T.length>0?o(`${T.join("/")}/`):o("")}else o(`${t}${u.name}/`);else typeof s=="function"&&s(u)};return u.isShow?((u.parent===1||u.parent===3)&&(p=P.jsxs(P.Fragment,{children:[P.jsxs(h,{id:u.name,className:`${tt["item-sidebar-1"]} ${(C=c.hoverColor)==null?void 0:C[a]}
|
|
136
136
|
${m||u.subs.length>0&&f?(S=c.activeColor)==null?void 0:S[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
|
137
137
|
`,onClick:y,onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),...l?l(u.slug,u):{},children:[P.jsxs("div",{className:"1ru-flex 1ru-items-center 1ru-gap-3 1ru-relative",children:[N.isValidElement(u.svgIcon)&&P.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&f?u==null?void 0:u.svgIconActive:d?(u==null?void 0:u.svgIconHover)||(u==null?void 0:u.svgIconActive):u==null?void 0:u.svgIcon}),P.jsx("div",{className:tt["item-label"],children:u.label})]}),u.subs.length>0&&n&&P.jsxs("div",{className:tt["item-icon-subs"],children:[N.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===3&&!u.subs.length&&P.jsx("div",{className:(w=c.divider)==null?void 0:w[a]})]})),(u.parent===2||u.parent===4)&&(p=P.jsxs(P.Fragment,{children:[P.jsxs(h,{id:u.name,className:`${tt["item-sidebar-2"]} ${(E=c.hoverColor)==null?void 0:E[a]}
|
|
138
138
|
${m||u.subs.length>0&&f?(x=c.activeColor)==null?void 0:x[a]:""} ${typeof n=="boolean"&&n?tt["item-sidebar-open"]:""} ${typeof n=="boolean"&&!n?tt["item-sidebar-close"]:""}
|
|
139
|
-
`,onClick:y,onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),...l?l(u.slug,u):{},children:[N.isValidElement(u.svgIcon)&&P.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&f?u==null?void 0:u.svgIconActive:d?(u==null?void 0:u.svgIconHover)||(u==null?void 0:u.svgIconActive):u==null?void 0:u.svgIcon}),P.jsx("div",{className:tt["item-label"],children:u.label}),u.subs.length>0&&n&&P.jsxs("div",{className:tt["item-icon-subs"],children:[N.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&P.jsx("div",{className:(g=c.divider)==null?void 0:g[a]})]})),u.subs.length>0?P.jsxs("div",{className:`${n||f?"":"-mt-2"}`,children:[p,P.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!f?tt.hidden:""}`,children:u.subs.map(T=>N.createElement(BS,{...T,as:T.manualRoute?"div":T.subs.length>0?e:u.linkComponent,key:T.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&P.jsx("div",{className:(I=c.divider)==null?void 0:I[a]})]}):p):P.jsx(P.Fragment,{})},kS=N.forwardRef((e,t)=>{var $;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:p,variant:h="payhere-brand-base-white",footer:d,withInheritance:v,...m}=e,b=N.useRef(null),f={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":In["payhere-brand-base-white"],"payhere-brand-base-transparent":In["payhere-brand-base-transparent"],"laba-white":In["laba-white"],"lpd-brand-base-white":In["lpd-brand-base-white"],"lpd-brand-base-transparent":In["lpd-brand-base-transparent"]}},[y,C]=N.useState(null),[S,w]=N.useState(null),[E,x]=N.useState(""),[g,I]=N.useState(),[T,_]=N.useState(0),A=()=>{var M;let k=0;const O=document.getElementById("icon-company-sidebar");(M=O==null?void 0:O.childNodes)==null||M.forEach(G=>{k+=G.getBoundingClientRect().width??0}),I(k+c+"px")},F=()=>{_(window.innerWidth)},B=()=>{C(!S),S?I("auto"):setTimeout(()=>{A()},100)};return N.useEffect(()=>{T>=768?(C(!0),setTimeout(()=>{A()},100)):(C(!1),I("auto"))},[T]),N.useEffect(()=>{typeof y=="boolean"&&w(y)},[y]),N.useImperativeHandle(t,()=>({openSidebar:y,setOpenSidebar:C,handlerClickCollapse:B}),[y,S]),N.useEffect(()=>(i&&i.split("/").length>1&&x(i+"/"),A(),F(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)),[]),P.jsxs("div",{className:f.variants[h],...m,ref:b,children:[P.jsxs("div",{id:"1ru-sidebar",className:`${In.sidebar} ${typeof S=="boolean"&&S?In["sidebar-open"]:""} ${typeof S=="boolean"&&!S?In["sidebar-close"]:""}`,children:[N.isValidElement(s)&&P.jsxs("div",{className:In["button-collaps-sidebar"],onClick:B,children:[y&&s,y?"":N.isValidElement(l)?l:s]}),P.jsx("div",{className:In["container-icon-company-sidebar"],children:P.jsxs("div",{id:"icon-company-sidebar",className:In["icon-company-sidebar"],style:{width:g&&f.withCuctomWidthIconCompany.includes(h)?g:"100%"},children:[N.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:C})]})}),P.jsx("div",{className:In["menu-sidebar"],onMouseOver:()=>{y||w(!0)},onMouseOut:()=>{y||w(!1)},children:u.map(k=>N.createElement(BS,{...k,as:k.manualRoute||k.subs.length>0?"div":n,linkComponent:n,key:k.name,show:E,open:S,patch:i,iconSubs:o,variant:h,setShow:x,onClickItems:p}))}),d&&P.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[N.isValidElement(d)&&P.jsx("div",{children:d}),typeof d=="function"&&P.jsx("div",{children:d()})]})]}),y&&P.jsx("div",{className:In["splace-screen"],onClick:B}),P.jsxs("div",{className:In["content-sidebar"],children:[v&&(($=N.Children)==null?void 0:$.map(r,k=>P.jsx(P.Fragment,{children:N.isValidElement(k)&&P.jsx(P.Fragment,{children:N.cloneElement(k,{openSidebar:y,handlerClickCollapse:B})})}))),!v&&P.jsx(P.Fragment,{children:r})]})]})});kS.displayName="Sidebar";const bM="_collapse_qzzyu_1",PS={collapse:bM},yM=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,delayTriggerCalculateHeight:s=0})=>{const[l,u]=N.useState("1000vh"),c=()=>{var h;const p=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(p||"1000vh")};return N.useEffect(()=>{const p=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(p),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[o]),P.jsx("div",{className:`${PS.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:P.jsx("div",{id:t,className:r??"",children:e})})},xM="_modal_12o7y_1",Di={modal:xM,"modal-content":"_modal-content_12o7y_1","with-overlay":"_with-overlay_12o7y_23","modal-small":"_modal-small_12o7y_40","modal-medium":"_modal-medium_12o7y_44","modal-regular":"_modal-regular_12o7y_48","modal-large":"_modal-large_12o7y_52","modal-show":"_modal-show_12o7y_56"},CM=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const p=e??"div",h={size:{small:Di["modal-small"],medium:Di["modal-medium"],regular:Di["modal-regular"],large:Di["modal-large"]}},d=()=>{typeof u=="function"&&u()};return P.jsx(P.Fragment,{children:a&&document.getElementById(r)&&No.createPortal(P.jsx("div",{id:n,onClick:d,className:`${Di.modal} ${i?Di["with-overlay"]:""} ${a?Di["modal-show"]:""} ${l??""}`,children:P.jsx(p,{onClick:v=>v.stopPropagation(),className:`${Di["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},EM="_dot_10oqk_31",Dr={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:EM,"right-content":"_right-content_10oqk_34"},SM=({children:e,noTime:t=!1})=>P.jsx("div",{className:`${Dr["timeline-container"]} ${t?Dr["no-time"]:""}`,children:e}),wM=({children:e,time:t,clasName:n,noTime:r=!1})=>P.jsxs("div",{className:Dr["timeline-content"],children:[P.jsx("div",{className:`${Dr["left-content"]} ${r?Dr["no-time"]:""}`,children:P.jsxs("div",{className:Dr["time-content"],children:[!r&&P.jsx("time",{className:Dr["text-time"],children:t??""}),P.jsx("div",{className:Dr.dot})]})}),P.jsx("div",{className:`${Dr["right-content"]} ${r?Dr["no-time"]:""} ${n??""}`,children:e})]}),IM=Object.assign(SM,{TimelineContent:wM}),Ql=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},$S=N.forwardRef((e,t)=>{const{children:n,onChange:r,prefixNativeValue:i="",defaultNativeValue:a,defaultValue:o,mountedExecuteChange:s=!0,keepKeys:l=[],resetPagination:u=!0,keyPageNumber:c="pageNumber",triggerReset:p={},reset:h}=e,d=u?{[c]:1}:{},[v,m]=N.useState(Ql(o??{},l,"")),[b,f]=N.useState(Mm(i,Ql(a??{},l,i))),[y,C]=N.useState(!1),S=(x,g)=>{const I={};return Object.keys(g).forEach(T=>{I[`${x}${T}`]=g[T]}),I},w=(x,g,I,T)=>{let _=x;const A=S(i,{[g]:x});Array.isArray(x)&&(I==="array-of-object-to-array"?_=U0(x,T):I==="array-of-object-to-string"?_=W0(x,T):I==="array-to-string"&&(_=_.toString())),typeof r=="function"&&r({...v,[g]:_,...d},{...b,...A}),m(F=>({...F,[g]:_})),f(F=>({...F,...A}))},E=(x,g)=>{const T=S(i,{...g??x});typeof r=="function"&&r({...v,...x,...d},{...b,...T}),m(_=>({..._,...x})),f(_=>({..._,...T}))};return Gi(()=>{!y&&typeof r=="function"&&s&&(r(v,b),C(!0))},[v,b,y,s]),Gi(()=>{h&&(f(Mm(i,Ql(a??{},l,i))),m(Ql(o??{},l,"")))},[h,p]),N.useImperativeHandle(t,()=>({nativeValue:b,value:v,handlerOnChange:w,handlerOnChangeNative:E}),[$s(v),$s(b)]),P.jsx(P.Fragment,{children:n({handlerOnChange:w,handlerOnChangeNative:E,value:v,nativeValue:b})})});$S.displayName="FilterContainer";function Cp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Xs;(function(e){e.event="event",e.props="prop"})(Xs||(Xs={}));function ii(){}function _M(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Pa(e){return!!(e||"").match(/\d/)}function xa(e){return e==null}function DM(e){return typeof e=="number"&&isNaN(e)}function FS(e){return xa(e)||DM(e)||typeof e=="number"&&!isFinite(e)}function NS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function TM(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function AM(e,t,n){var r=TM(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function RM(e){var t=N.useRef(e);t.current=e;var n=N.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Ep(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function BM(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function MS(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function vb(e,t){return Array(t+1).join(e)}function OS(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+vb("0",Math.abs(o))+i:o>=s?i=i+vb("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function bb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Ep(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),p=a;a&&Number(c[0])&&(p=a.split("").reverse().reduce(function(m,b,f){return m.length>f?(Number(m[0])+Number(b)).toString()+m.substring(1,m.length):b+m},c[0]));var h=MS(c[1]||"",t,n),d=s?"-":"",v=r?".":"";return""+d+p+v+h}function Fi(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var LS=_M(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),kM=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function PM(e,t,n){return Math.min(Math.max(e,t),n)}function Jf(e){return Math.max(e.selectionStart,e.selectionEnd)}function $M(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function VS(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function HS(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function FM(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function NM(e,t,n,r,i,a,o){o===void 0&&(o=FM);var s=i.findIndex(function(S){return S}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,p={},h=new Array(u),d=0;d<u;d++){h[d]=-1;for(var v=0,m=c;v<m;v++){var b=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:d,formattedValueIndex:v});if(b&&p[v]!==!0){h[d]=v,p[v]=!0;break}}}for(var f=r;f<u&&(h[f]===-1||!a(n[f]));)f++;var y=f===u||h[f]===-1?c:h[f];for(f=r-1;f>0&&h[f]===-1;)f--;var C=f===-1||h[f]===-1?0:h[f]+1;return C>y?y:r-C<y-r?C:y}function vc(e,t,n,r){var i=e.length;if(t=PM(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function MM(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Pa(e[n])||Pa(e[n-1]));return t}function jS(e,t,n,r,i,a){a===void 0&&(a=ii);var o=RM(function(v,m){var b,f;return FS(v)?(f="",b=""):typeof v=="number"||m?(f=typeof v=="number"?OS(v):v,b=r(f)):(f=i(v,void 0),b=r(f)),{formattedValue:b,numAsString:f}}),s=N.useState(function(){return o(xa(e)?t:e,n)}),l=s[0],u=s[1],c=function(v,m){v.formattedValue!==l.formattedValue&&u({formattedValue:v.formattedValue,numAsString:v.value}),a(v,m)},p=e,h=n;xa(e)&&(p=l.numAsString,h=!0);var d=o(p,h);return N.useMemo(function(){u(d)},[d.formattedValue]),[l,c]}function OM(e){return e.replace(/[^0-9]/g,"")}function LM(e){return e}function zS(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=LM);var s=e.removeFormatting;s===void 0&&(s=OM);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,p=e.isAllowed,h=e.onChange;h===void 0&&(h=ii);var d=e.onKeyDown;d===void 0&&(d=ii);var v=e.onMouseUp;v===void 0&&(v=ii);var m=e.onFocus;m===void 0&&(m=ii);var b=e.onBlur;b===void 0&&(b=ii);var f=e.value,y=e.getCaretBoundary;y===void 0&&(y=MM);var C=e.isValidInputCharacter;C===void 0&&(C=Pa);var S=e.isCharacterSame,w=Cp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=jS(f,l,!!u,o,s,c),x=E[0],g=x.formattedValue,I=x.numAsString,T=E[1],_=N.useRef(),A=N.useRef({formattedValue:g,numAsString:I}),F=function(ie,oe){A.current={formattedValue:ie.formattedValue,numAsString:ie.value},T(ie,oe)},B=N.useState(!1),$=B[0],k=B[1],O=N.useRef(null),M=N.useRef({setCaretTimeout:null,focusTimeout:null});N.useEffect(function(){return k(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}},[]);var G=o,W=function(ie,oe){var te=parseFloat(oe);return{formattedValue:ie,value:oe,floatValue:isNaN(te)?void 0:te}},U=function(ie,oe,te){ie.selectionStart===0&&ie.selectionEnd===ie.value.length||(Fi(ie,oe),M.current.setCaretTimeout=setTimeout(function(){ie.value===te&&ie.selectionStart!==oe&&Fi(ie,oe)},0))},J=function(ie,oe,te){return vc(ie,oe,y(ie),te)},Q=function(ie,oe,te){var ue=y(oe),ve=NM(oe,g,ie,te,ue,C,S);return ve=vc(oe,ve,ue),ve},Z=function(ie){var oe=ie.formattedValue;oe===void 0&&(oe="");var te=ie.input,ue=ie.source,ve=ie.event,be=ie.numAsString,pe;if(te){var Te=ie.inputValue||te.value,Ne=Jf(te);te.value=oe,pe=Q(Te,oe,Ne),pe!==void 0&&U(te,pe,oe)}oe!==g&&F(W(oe,be),{event:ve,source:ue})};N.useEffect(function(){var ie=A.current,oe=ie.formattedValue,te=ie.numAsString;(g!==oe||I!==te)&&F(W(g,I),{event:void 0,source:Xs.props})},[g,I]);var ee=O.current?Jf(O.current):void 0,q=typeof window<"u"?N.useLayoutEffect:N.useEffect;q(function(){var ie=O.current;if(g!==A.current.formattedValue&&ie){var oe=Q(A.current.formattedValue,g,ee);ie.value=g,U(ie,oe,g)}},[g]);var le=function(ie,oe,te){var ue=oe.target,ve=_.current?kM(_.current,ue.selectionEnd):LS(g,ie),be=Object.assign(Object.assign({},ve),{lastValue:g}),pe=s(ie,be),Te=G(pe);if(pe=s(Te,void 0),p&&!p(W(Te,pe))){var Ne=oe.target,We=Jf(Ne),et=Q(ie,g,We);return Ne.value=g,U(Ne,et,g),!1}return Z({formattedValue:Te,numAsString:pe,inputValue:ie,event:oe,source:te,input:oe.target}),!0},re=function(ie,oe){oe===void 0&&(oe=0);var te=ie.selectionStart,ue=ie.selectionEnd;_.current={selectionStart:te,selectionEnd:ue+oe}},R=function(ie){var oe=ie.target,te=oe.value,ue=le(te,ie,Xs.event);ue&&h(ie),_.current=void 0},H=function(ie){var oe=ie.target,te=ie.key,ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;be===void 0&&(be="");var pe;te==="ArrowLeft"||te==="Backspace"?pe=Math.max(ue-1,0):te==="ArrowRight"?pe=Math.min(ue+1,be.length):te==="Delete"&&(pe=ue);var Te=0;te==="Delete"&&ue===ve&&(Te=1);var Ne=te==="ArrowLeft"||te==="ArrowRight";if(pe===void 0||ue!==ve&&!Ne){d(ie),re(oe,Te);return}var We=pe;if(Ne){var et=te==="ArrowLeft"?"left":"right";We=J(be,pe,et),We!==pe&&ie.preventDefault()}else te==="Delete"&&!C(be[pe])?We=J(be,pe,"right"):te==="Backspace"&&!C(be[pe])&&(We=J(be,pe,"left"));We!==pe&&U(oe,We,be),d(ie),re(oe,Te)},V=function(ie){var oe=ie.target,te=function(){var ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;if(be===void 0&&(be=""),ue===ve){var pe=J(be,ue);pe!==ue&&U(oe,pe,be)}};te(),requestAnimationFrame(function(){te()}),v(ie),re(oe)},D=function(ie){ie.persist&&ie.persist();var oe=ie.target,te=ie.currentTarget;O.current=oe,M.current.focusTimeout=setTimeout(function(){var ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;be===void 0&&(be="");var pe=J(be,ue);pe!==ue&&!(ue===0&&ve===be.length)&&U(oe,pe,be),m(Object.assign(Object.assign({},ie),{currentTarget:te}))},0)},L=function(ie){O.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),b(ie)},K=$&&$M()?"numeric":void 0,X=Object.assign({inputMode:K},w,{type:t,value:g,onChange:R,onKeyDown:H,onMouseUp:V,onFocus:D,onBlur:L});if(n==="text")return i?N.createElement(N.Fragment,null,i(g,w)||null):N.createElement("span",Object.assign({},w,{ref:a}),g);if(r){var se=r;return N.createElement(se,Object.assign({},X,{ref:a}))}return N.createElement("input",Object.assign({},X,{ref:a}))}function yb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=ud(t),u=l.thousandSeparator,c=l.decimalSeparator,p=n!==0&&e.indexOf(".")!==-1||n&&r,h=Ep(e,o),d=h.beforeDecimal,v=h.afterDecimal,m=h.addNegation;return n!==void 0&&(v=MS(v,n,!!r)),u&&(d=AM(d,u,s)),i&&(d=i+d),a&&(v=v+a),m&&(d="-"+d),e=d+(p&&c||"")+v,e}function ud(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function VM(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function HM(e,t){return new RegExp("(^-)|[0-9]|"+NS(e),"g")}function jM(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function zM(e,t,n){var r;t===void 0&&(t=VS(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,p=u.end,h=ud(n),d=h.allowedDecimalSeparators,v=h.decimalSeparator,m=e[p]===v;if(Pa(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(p-c===1&&d.indexOf(e[c])!==-1){var b=s===0?"":v;e=e.substring(0,c)+b+e.substring(c+1,e.length)}var f=function(O,M,G){var W=!1,U=!1;a.startsWith("-")?W=!1:O.startsWith("--")?(W=!1,U=!0):o.startsWith("-")&&O.length===o.length?W=!1:O[0]==="-"&&(W=!0);var J=W?1:0;return U&&(J=2),J&&(O=O.substring(J),M-=J,G-=J),{value:O,start:M,end:G,hasNegation:W}},y=f(e,c,p),C=y.hasNegation;r=y,e=r.value,c=r.start,p=r.end;var S=f(t.lastValue,l.start,l.end),w=S.start,E=S.end,x=S.value,g=e.substring(c,p);e.length&&x.length&&(w>x.length-o.length||E<a.length)&&!(g&&o.startsWith(g))&&(e=x);var I=0;e.startsWith(a)?I+=a.length:c<a.length&&(I=c),e=e.substring(I),p-=I;var T=e.length,_=e.length-o.length;e.endsWith(o)?T=_:(p>_||p>e.length-o.length)&&(T=p),e=e.substring(0,T),e=VM(C?"-"+e:e,i),e=(e.match(HM(v))||[]).join("");var A=e.indexOf(v);e=e.replace(new RegExp(NS(v),"g"),function(O,M){return M===A?".":""});var F=Ep(e,i),B=F.beforeDecimal,$=F.afterDecimal,k=F.addNegation;return u.end-u.start<l.end-l.start&&B===""&&m&&!parseFloat($)&&(e=k?"-":""),e}function GM(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function WM(e){var t=ud(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
|
139
|
+
`,onClick:y,onMouseOver:()=>v(!0),onMouseOut:()=>v(!1),...l?l(u.slug,u):{},children:[N.isValidElement(u.svgIcon)&&P.jsx("div",{className:tt["item-icon"],children:m||u.subs.length>0&&f?u==null?void 0:u.svgIconActive:d?(u==null?void 0:u.svgIconHover)||(u==null?void 0:u.svgIconActive):u==null?void 0:u.svgIcon}),P.jsx("div",{className:tt["item-label"],children:u.label}),u.subs.length>0&&n&&P.jsxs("div",{className:tt["item-icon-subs"],children:[N.isValidElement(i)&&i,typeof i=="function"&&i()]})]}),u.parent===4&&!u.subs.length&&P.jsx("div",{className:(g=c.divider)==null?void 0:g[a]})]})),u.subs.length>0?P.jsxs("div",{className:`${n||f?"":"-mt-2"}`,children:[p,P.jsx("div",{className:`${tt["item-subs-sidebar"]} ${!n||!f?tt.hidden:""}`,children:u.subs.map(T=>N.createElement(BS,{...T,as:T.manualRoute?"div":T.subs.length>0?e:u.linkComponent,key:T.name,patch:r,iconSubs:i,show:t,open:n,variant:a,setShow:o}))}),[3,4].includes(u.parent)&&P.jsx("div",{className:(I=c.divider)==null?void 0:I[a]})]}):p):P.jsx(P.Fragment,{})},kS=N.forwardRef((e,t)=>{var $;const{as:n,children:r,patch:i="/",iconCompany:a,iconSubs:o,iconCollapse:s,iconCollapseClose:l,modules:u,toleranceWidthIconCompany:c=25,onClickItems:p,variant:h="payhere-brand-base-white",footer:d,withInheritance:v,...m}=e,b=N.useRef(null),f={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":In["payhere-brand-base-white"],"payhere-brand-base-transparent":In["payhere-brand-base-transparent"],"laba-white":In["laba-white"],"lpd-brand-base-white":In["lpd-brand-base-white"],"lpd-brand-base-transparent":In["lpd-brand-base-transparent"]}},[y,C]=N.useState(null),[S,w]=N.useState(null),[E,x]=N.useState(""),[g,I]=N.useState(),[T,_]=N.useState(0),A=()=>{var M;let k=0;const O=document.getElementById("icon-company-sidebar");(M=O==null?void 0:O.childNodes)==null||M.forEach(G=>{k+=G.getBoundingClientRect().width??0}),I(k+c+"px")},F=()=>{_(window.innerWidth)},B=()=>{C(!S),S?I("auto"):setTimeout(()=>{A()},100)};return N.useEffect(()=>{T>=768?(C(!0),setTimeout(()=>{A()},100)):(C(!1),I("auto"))},[T]),N.useEffect(()=>{typeof y=="boolean"&&w(y)},[y]),N.useImperativeHandle(t,()=>({openSidebar:y,setOpenSidebar:C,handlerClickCollapse:B}),[y,S]),N.useEffect(()=>(i&&i.split("/").length>1&&x(i+"/"),A(),F(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)),[]),P.jsxs("div",{className:f.variants[h],...m,ref:b,children:[P.jsxs("div",{id:"1ru-sidebar",className:`${In.sidebar} ${typeof S=="boolean"&&S?In["sidebar-open"]:""} ${typeof S=="boolean"&&!S?In["sidebar-close"]:""}`,children:[N.isValidElement(s)&&P.jsxs("div",{className:In["button-collaps-sidebar"],onClick:B,children:[y&&s,y?"":N.isValidElement(l)?l:s]}),P.jsx("div",{className:In["container-icon-company-sidebar"],children:P.jsxs("div",{id:"icon-company-sidebar",className:In["icon-company-sidebar"],style:{width:g&&f.withCuctomWidthIconCompany.includes(h)?g:"100%"},children:[N.isValidElement(a)&&a,typeof a=="function"&&a({openSidebar:S,setOpenSidebar:C})]})}),P.jsx("div",{className:In["menu-sidebar"],onMouseOver:()=>{y||w(!0)},onMouseOut:()=>{y||w(!1)},children:u.map(k=>N.createElement(BS,{...k,as:k.manualRoute||k.subs.length>0?"div":n,linkComponent:n,key:k.name,show:E,open:S,patch:i,iconSubs:o,variant:h,setShow:x,onClickItems:p}))}),d&&P.jsxs("div",{className:S?"1ru-opacity-[1]":"1ru-opacity-0",children:[N.isValidElement(d)&&P.jsx("div",{children:d}),typeof d=="function"&&P.jsx("div",{children:d()})]})]}),y&&P.jsx("div",{className:In["splace-screen"],onClick:B}),P.jsxs("div",{className:In["content-sidebar"],children:[v&&(($=N.Children)==null?void 0:$.map(r,k=>P.jsx(P.Fragment,{children:N.isValidElement(k)&&P.jsx(P.Fragment,{children:N.cloneElement(k,{openSidebar:y,handlerClickCollapse:B})})}))),!v&&P.jsx(P.Fragment,{children:r})]})]})});kS.displayName="Sidebar";const yM="_collapse_qzzyu_1",PS={collapse:yM},xM=({children:e,id:t,open:n,className:r,classNameContainer:i,maxCollapsedHeight:a="0px",triggerCalCulateContainer:o,delayTriggerCalculateHeight:s=0})=>{const[l,u]=N.useState("1000vh"),c=()=>{var h;const p=((h=document==null?void 0:document.getElementById(t))==null?void 0:h.offsetHeight)??0;u(p||"1000vh")};return N.useEffect(()=>{const p=setTimeout(c,s);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(p),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[o]),P.jsx("div",{className:`${PS.collapse} ${i??""}`,style:{maxHeight:n?l:a},children:P.jsx("div",{id:t,className:r??"",children:e})})},CM="_modal_12o7y_1",Di={modal:CM,"modal-content":"_modal-content_12o7y_1","with-overlay":"_with-overlay_12o7y_23","modal-small":"_modal-small_12o7y_40","modal-medium":"_modal-medium_12o7y_44","modal-regular":"_modal-regular_12o7y_48","modal-large":"_modal-large_12o7y_52","modal-show":"_modal-show_12o7y_56"},EM=({as:e,children:t,id:n="modal",idModal:r="1ru-modal",withOverlay:i=!0,show:a,size:o="regular",className:s,classNameContainer:l,onClose:u,...c})=>{const p=e??"div",h={size:{small:Di["modal-small"],medium:Di["modal-medium"],regular:Di["modal-regular"],large:Di["modal-large"]}},d=()=>{typeof u=="function"&&u()};return P.jsx(P.Fragment,{children:a&&document.getElementById(r)&&No.createPortal(P.jsx("div",{id:n,onClick:d,className:`${Di.modal} ${i?Di["with-overlay"]:""} ${a?Di["modal-show"]:""} ${l??""}`,children:P.jsx(p,{onClick:v=>v.stopPropagation(),className:`${Di["modal-content"]} ${h.size[o]} ${s??""}`,...c,children:t})}),document.getElementById(r))})},SM="_dot_10oqk_31",Dr={"timeline-container":"_timeline-container_10oqk_1","no-time":"_no-time_10oqk_11","timeline-content":"_timeline-content_10oqk_15","left-content":"_left-content_10oqk_18","time-content":"_time-content_10oqk_24","text-time":"_text-time_10oqk_27",dot:SM,"right-content":"_right-content_10oqk_34"},wM=({children:e,noTime:t=!1})=>P.jsx("div",{className:`${Dr["timeline-container"]} ${t?Dr["no-time"]:""}`,children:e}),IM=({children:e,time:t,clasName:n,noTime:r=!1})=>P.jsxs("div",{className:Dr["timeline-content"],children:[P.jsx("div",{className:`${Dr["left-content"]} ${r?Dr["no-time"]:""}`,children:P.jsxs("div",{className:Dr["time-content"],children:[!r&&P.jsx("time",{className:Dr["text-time"],children:t??""}),P.jsx("div",{className:Dr.dot})]})}),P.jsx("div",{className:`${Dr["right-content"]} ${r?Dr["no-time"]:""} ${n??""}`,children:e})]}),_M=Object.assign(wM,{TimelineContent:IM}),Ql=(e,t,n)=>{if((t==null?void 0:t.length)>0){const r={};return t.forEach(i=>{e[i]&&(r[i]=e[i]),n&&e[`${n}${i}`]&&(r[`${n}${i}`]=e[`${n}${i}`])}),r}return e},$S=N.forwardRef((e,t)=>{const{children:n,onChange:r,prefixNativeValue:i="",defaultNativeValue:a,defaultValue:o,mountedExecuteChange:s=!0,keepKeys:l=[],resetPagination:u=!0,keyPageNumber:c="pageNumber",triggerReset:p={},reset:h}=e,d=u?{[c]:1}:{},[v,m]=N.useState(Ql(o??{},l,"")),[b,f]=N.useState(Mm(i,Ql(a??{},l,i))),[y,C]=N.useState(!1),S=(x,g)=>{const I={};return Object.keys(g).forEach(T=>{I[`${x}${T}`]=g[T]}),I},w=(x,g,I,T)=>{let _=x;const A=S(i,{[g]:x});Array.isArray(x)&&(I==="array-of-object-to-array"?_=U0(x,T):I==="array-of-object-to-string"?_=W0(x,T):I==="array-to-string"&&(_=_.toString())),typeof r=="function"&&r({...v,[g]:_,...d},{...b,...A}),m(F=>({...F,[g]:_})),f(F=>({...F,...A}))},E=(x,g)=>{const T=S(i,{...g??x});typeof r=="function"&&r({...v,...x,...d},{...b,...T}),m(_=>({..._,...x})),f(_=>({..._,...T}))};return Gi(()=>{!y&&typeof r=="function"&&s&&(r(v,b),C(!0))},[v,b,y,s]),Gi(()=>{h&&(f(Mm(i,Ql(a??{},l,i))),m(Ql(o??{},l,"")))},[h,p]),N.useImperativeHandle(t,()=>({nativeValue:b,value:v,handlerOnChange:w,handlerOnChangeNative:E}),[$s(v),$s(b)]),P.jsx(P.Fragment,{children:n({handlerOnChange:w,handlerOnChangeNative:E,value:v,nativeValue:b})})});$S.displayName="FilterContainer";function Cp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Xs;(function(e){e.event="event",e.props="prop"})(Xs||(Xs={}));function ii(){}function DM(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Pa(e){return!!(e||"").match(/\d/)}function xa(e){return e==null}function TM(e){return typeof e=="number"&&isNaN(e)}function FS(e){return xa(e)||TM(e)||typeof e=="number"&&!isFinite(e)}function NS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function AM(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function RM(e,t,n){var r=AM(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function BM(e){var t=N.useRef(e);t.current=e;var n=N.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function Ep(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function kM(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function MS(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function vb(e,t){return Array(t+1).join(e)}function OS(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+vb("0",Math.abs(o))+i:o>=s?i=i+vb("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function bb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=Ep(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=o.length<=t?"0."+o:l.toFixed(t),c=u.split("."),p=a;a&&Number(c[0])&&(p=a.split("").reverse().reduce(function(m,b,f){return m.length>f?(Number(m[0])+Number(b)).toString()+m.substring(1,m.length):b+m},c[0]));var h=MS(c[1]||"",t,n),d=s?"-":"",v=r?".":"";return""+d+p+v+h}function Fi(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var LS=DM(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),PM=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function $M(e,t,n){return Math.min(Math.max(e,t),n)}function Jf(e){return Math.max(e.selectionStart,e.selectionEnd)}function FM(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function VS(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function HS(e,t){return e===void 0&&(e=" "),typeof e=="string"?e:e[t]||" "}function NM(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function MM(e,t,n,r,i,a,o){o===void 0&&(o=NM);var s=i.findIndex(function(S){return S}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var u=n.length,c=e.length,p={},h=new Array(u),d=0;d<u;d++){h[d]=-1;for(var v=0,m=c;v<m;v++){var b=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:d,formattedValueIndex:v});if(b&&p[v]!==!0){h[d]=v,p[v]=!0;break}}}for(var f=r;f<u&&(h[f]===-1||!a(n[f]));)f++;var y=f===u||h[f]===-1?c:h[f];for(f=r-1;f>0&&h[f]===-1;)f--;var C=f===-1||h[f]===-1?0:h[f]+1;return C>y?y:r-C<y-r?C:y}function vc(e,t,n,r){var i=e.length;if(t=$M(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function OM(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Pa(e[n])||Pa(e[n-1]));return t}function jS(e,t,n,r,i,a){a===void 0&&(a=ii);var o=BM(function(v,m){var b,f;return FS(v)?(f="",b=""):typeof v=="number"||m?(f=typeof v=="number"?OS(v):v,b=r(f)):(f=i(v,void 0),b=r(f)),{formattedValue:b,numAsString:f}}),s=N.useState(function(){return o(xa(e)?t:e,n)}),l=s[0],u=s[1],c=function(v,m){v.formattedValue!==l.formattedValue&&u({formattedValue:v.formattedValue,numAsString:v.value}),a(v,m)},p=e,h=n;xa(e)&&(p=l.numAsString,h=!0);var d=o(p,h);return N.useMemo(function(){u(d)},[d.formattedValue]),[l,c]}function LM(e){return e.replace(/[^0-9]/g,"")}function VM(e){return e}function zS(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=VM);var s=e.removeFormatting;s===void 0&&(s=LM);var l=e.defaultValue,u=e.valueIsNumericString,c=e.onValueChange,p=e.isAllowed,h=e.onChange;h===void 0&&(h=ii);var d=e.onKeyDown;d===void 0&&(d=ii);var v=e.onMouseUp;v===void 0&&(v=ii);var m=e.onFocus;m===void 0&&(m=ii);var b=e.onBlur;b===void 0&&(b=ii);var f=e.value,y=e.getCaretBoundary;y===void 0&&(y=OM);var C=e.isValidInputCharacter;C===void 0&&(C=Pa);var S=e.isCharacterSame,w=Cp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),E=jS(f,l,!!u,o,s,c),x=E[0],g=x.formattedValue,I=x.numAsString,T=E[1],_=N.useRef(),A=N.useRef({formattedValue:g,numAsString:I}),F=function(ie,oe){A.current={formattedValue:ie.formattedValue,numAsString:ie.value},T(ie,oe)},B=N.useState(!1),$=B[0],k=B[1],O=N.useRef(null),M=N.useRef({setCaretTimeout:null,focusTimeout:null});N.useEffect(function(){return k(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}},[]);var G=o,W=function(ie,oe){var te=parseFloat(oe);return{formattedValue:ie,value:oe,floatValue:isNaN(te)?void 0:te}},U=function(ie,oe,te){ie.selectionStart===0&&ie.selectionEnd===ie.value.length||(Fi(ie,oe),M.current.setCaretTimeout=setTimeout(function(){ie.value===te&&ie.selectionStart!==oe&&Fi(ie,oe)},0))},J=function(ie,oe,te){return vc(ie,oe,y(ie),te)},Q=function(ie,oe,te){var ue=y(oe),ve=MM(oe,g,ie,te,ue,C,S);return ve=vc(oe,ve,ue),ve},Z=function(ie){var oe=ie.formattedValue;oe===void 0&&(oe="");var te=ie.input,ue=ie.source,ve=ie.event,be=ie.numAsString,pe;if(te){var Te=ie.inputValue||te.value,Ne=Jf(te);te.value=oe,pe=Q(Te,oe,Ne),pe!==void 0&&U(te,pe,oe)}oe!==g&&F(W(oe,be),{event:ve,source:ue})};N.useEffect(function(){var ie=A.current,oe=ie.formattedValue,te=ie.numAsString;(g!==oe||I!==te)&&F(W(g,I),{event:void 0,source:Xs.props})},[g,I]);var ee=O.current?Jf(O.current):void 0,q=typeof window<"u"?N.useLayoutEffect:N.useEffect;q(function(){var ie=O.current;if(g!==A.current.formattedValue&&ie){var oe=Q(A.current.formattedValue,g,ee);ie.value=g,U(ie,oe,g)}},[g]);var le=function(ie,oe,te){var ue=oe.target,ve=_.current?PM(_.current,ue.selectionEnd):LS(g,ie),be=Object.assign(Object.assign({},ve),{lastValue:g}),pe=s(ie,be),Te=G(pe);if(pe=s(Te,void 0),p&&!p(W(Te,pe))){var Ne=oe.target,We=Jf(Ne),et=Q(ie,g,We);return Ne.value=g,U(Ne,et,g),!1}return Z({formattedValue:Te,numAsString:pe,inputValue:ie,event:oe,source:te,input:oe.target}),!0},re=function(ie,oe){oe===void 0&&(oe=0);var te=ie.selectionStart,ue=ie.selectionEnd;_.current={selectionStart:te,selectionEnd:ue+oe}},R=function(ie){var oe=ie.target,te=oe.value,ue=le(te,ie,Xs.event);ue&&h(ie),_.current=void 0},H=function(ie){var oe=ie.target,te=ie.key,ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;be===void 0&&(be="");var pe;te==="ArrowLeft"||te==="Backspace"?pe=Math.max(ue-1,0):te==="ArrowRight"?pe=Math.min(ue+1,be.length):te==="Delete"&&(pe=ue);var Te=0;te==="Delete"&&ue===ve&&(Te=1);var Ne=te==="ArrowLeft"||te==="ArrowRight";if(pe===void 0||ue!==ve&&!Ne){d(ie),re(oe,Te);return}var We=pe;if(Ne){var et=te==="ArrowLeft"?"left":"right";We=J(be,pe,et),We!==pe&&ie.preventDefault()}else te==="Delete"&&!C(be[pe])?We=J(be,pe,"right"):te==="Backspace"&&!C(be[pe])&&(We=J(be,pe,"left"));We!==pe&&U(oe,We,be),d(ie),re(oe,Te)},V=function(ie){var oe=ie.target,te=function(){var ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;if(be===void 0&&(be=""),ue===ve){var pe=J(be,ue);pe!==ue&&U(oe,pe,be)}};te(),requestAnimationFrame(function(){te()}),v(ie),re(oe)},D=function(ie){ie.persist&&ie.persist();var oe=ie.target,te=ie.currentTarget;O.current=oe,M.current.focusTimeout=setTimeout(function(){var ue=oe.selectionStart,ve=oe.selectionEnd,be=oe.value;be===void 0&&(be="");var pe=J(be,ue);pe!==ue&&!(ue===0&&ve===be.length)&&U(oe,pe,be),m(Object.assign(Object.assign({},ie),{currentTarget:te}))},0)},L=function(ie){O.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),b(ie)},K=$&&FM()?"numeric":void 0,X=Object.assign({inputMode:K},w,{type:t,value:g,onChange:R,onKeyDown:H,onMouseUp:V,onFocus:D,onBlur:L});if(n==="text")return i?N.createElement(N.Fragment,null,i(g,w)||null):N.createElement("span",Object.assign({},w,{ref:a}),g);if(r){var se=r;return N.createElement(se,Object.assign({},X,{ref:a}))}return N.createElement("input",Object.assign({},X,{ref:a}))}function yb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=ud(t),u=l.thousandSeparator,c=l.decimalSeparator,p=n!==0&&e.indexOf(".")!==-1||n&&r,h=Ep(e,o),d=h.beforeDecimal,v=h.afterDecimal,m=h.addNegation;return n!==void 0&&(v=MS(v,n,!!r)),u&&(d=RM(d,u,s)),i&&(d=i+d),a&&(v=v+a),m&&(d="-"+d),e=d+(p&&c||"")+v,e}function ud(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function HM(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function jM(e,t){return new RegExp("(^-)|[0-9]|"+NS(e),"g")}function zM(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function GM(e,t,n){var r;t===void 0&&(t=VS(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,u=t.to,c=u.start,p=u.end,h=ud(n),d=h.allowedDecimalSeparators,v=h.decimalSeparator,m=e[p]===v;if(Pa(e)&&(e===a||e===o)&&t.lastValue==="")return e;if(p-c===1&&d.indexOf(e[c])!==-1){var b=s===0?"":v;e=e.substring(0,c)+b+e.substring(c+1,e.length)}var f=function(O,M,G){var W=!1,U=!1;a.startsWith("-")?W=!1:O.startsWith("--")?(W=!1,U=!0):o.startsWith("-")&&O.length===o.length?W=!1:O[0]==="-"&&(W=!0);var J=W?1:0;return U&&(J=2),J&&(O=O.substring(J),M-=J,G-=J),{value:O,start:M,end:G,hasNegation:W}},y=f(e,c,p),C=y.hasNegation;r=y,e=r.value,c=r.start,p=r.end;var S=f(t.lastValue,l.start,l.end),w=S.start,E=S.end,x=S.value,g=e.substring(c,p);e.length&&x.length&&(w>x.length-o.length||E<a.length)&&!(g&&o.startsWith(g))&&(e=x);var I=0;e.startsWith(a)?I+=a.length:c<a.length&&(I=c),e=e.substring(I),p-=I;var T=e.length,_=e.length-o.length;e.endsWith(o)?T=_:(p>_||p>e.length-o.length)&&(T=p),e=e.substring(0,T),e=HM(C?"-"+e:e,i),e=(e.match(jM(v))||[]).join("");var A=e.indexOf(v);e=e.replace(new RegExp(NS(v),"g"),function(O,M){return M===A?".":""});var F=Ep(e,i),B=F.beforeDecimal,$=F.afterDecimal,k=F.addNegation;return u.end-u.start<l.end-l.start&&B===""&&m&&!parseFloat($)&&(e=k?"-":""),e}function WM(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function UM(e){var t=ud(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
|
|
140
140
|
Decimal separator can't be same as thousand separator.
|
|
141
141
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
142
142
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
@@ -144,7 +144,7 @@ You should wrap it with \`css\` like this:
|
|
|
144
144
|
Prefix can't start with '-' when allowNegative is true.
|
|
145
145
|
prefix: `+i+`
|
|
146
146
|
allowNegative: `+a+`
|
|
147
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function UM(e){e=WM(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ii);var a=e.onBlur;a===void 0&&(a=ii);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,p=e.value,h=e.valueIsNumericString,d=e.onValueChange,v=Cp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=ud(e),b=m.decimalSeparator,f=m.allowedDecimalSeparators,y=function(k){return yb(k,e)},C=function(k,O){return zM(k,O,e)},S=xa(p)?c:p,w=h??jM(S,u,t);xa(p)?xa(c)||(w=w||typeof c=="number"):w=w||typeof p=="number";var E=function(k){return FS(k)?k:(typeof k=="number"&&(k=OS(k)),w&&typeof s=="number"?bb(k,s,!!l):k)},x=jS(E(p),E(c),!!w,y,C,d),g=x[0],I=g.numAsString,T=g.formattedValue,_=x[1],A=function(k){var O=k.target,M=k.key,G=O.selectionStart,W=O.selectionEnd,U=O.value;if(U===void 0&&(U=""),(M==="Backspace"||M==="Delete")&&W<u.length){k.preventDefault();return}if(G!==W){i(k);return}M==="Backspace"&&U[0]==="-"&&G===u.length+1&&n&&Fi(O,1),s&&l&&(M==="Backspace"&&U[G-1]===b?(Fi(O,G-1),k.preventDefault()):M==="Delete"&&U[G]===b&&k.preventDefault()),f!=null&&f.includes(M)&&U[G]===b&&Fi(O,G+1);var J=o===!0?",":o;M==="Backspace"&&U[G-1]===J&&Fi(O,G-1),M==="Delete"&&U[G]===J&&Fi(O,G+1),i(k)},F=function(k){var O=I;if(O.match(/\d/g)||(O=""),r||(O=BM(O)),l&&s&&(O=bb(O,s,l)),O!==I){var M=yb(O,e);_({formattedValue:M,value:O,floatValue:parseFloat(O)},{event:k,source:Xs.event})}a(k)},B=function(k){return k===b?!0:Pa(k)},$=function(k){var O=k.currentValue,M=k.lastValue,G=k.formattedValue,W=k.currentValueIndex,U=k.formattedValueIndex,J=O[W],Q=G[U],Z=LS(M,O),ee=Z.to,q=function(le){return C(le).indexOf(".")+u.length};return p===0&&l&&s&&O[ee.start]===b&&q(O)<W&&q(G)>U?!1:W>=ee.start&&W<ee.end&&f&&f.includes(J)&&Q===b?!0:J===Q};return Object.assign(Object.assign({},v),{value:T,valueIsNumericString:!1,isValidInputCharacter:B,isCharacterSame:$,onValueChange:_,format:y,removeFormatting:C,getCaretBoundary:function(k){return GM(k,e)},onKeyDown:A,onBlur:F})}function XM(e){var t=UM(e);return N.createElement(zS,Object.assign({},t))}function YM(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||HS(i,o),o+=1);return s.join("")}function KM(e,t,n){t===void 0&&(t=VS(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,f){for(var y="",C=0;C<b.length;C++)l(f+C)&&Pa(b[C])&&(y+=b[C]);return y},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var p="",h=0;h<e.length;h++)if(l(h))Pa(e[h])&&(p+=e[h]);else if(e[h]!==r[h])return c(e);return p}var d=s.substring(0,a.start),v=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(d,0)+c(v)+u(m,a.end)}function ZM(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,d){var v=void 0;h===i&&(o++,v=HS(r,o-1),s===-1&&e[d]===v&&(s=d)),l[d]=v});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,p=a.length;c<p;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function qM(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function JM(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function QM(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=ii);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Cp(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);qM(e);var u=function(v){return ZM(v,e)},c=function(v){var m=v.key,b=v.target,f=b.selectionStart,y=b.selectionEnd,C=b.value;if(f!==y){r(v);return}var S=f;if(m==="Backspace"||m==="Delete"){var w="right";if(m==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;w="left"}else{for(var E=t.length;S<E&&t[S]!==i;)S++;w="right"}S=vc(C,S,u(C),w)}else t[S]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(S=vc(C,S+1,u(C),"right"));S!==f&&Fi(b,S),r(v)},p=xa(a)?o:a,h=s??JM(p,t),d=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(v){return YM(v,d)},removeFormatting:function(v,m){return KM(v,m,d)},getCaretBoundary:u,onKeyDown:c})}function eO(e){var t=QM(e);return N.createElement(zS,Object.assign({},t))}const tO=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>P.jsx(XM,{isAllowed:o=>e!==void 0&&Hr(e)&&bt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:bt(e).toString()}}),!1):t!==void 0&&Hr(t)&&bt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:bt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),Sp=({children:e,containerId:t="portal-root",selector:n})=>{const[r,i]=N.useState(null);return N.useEffect(()=>{let a=n?document.querySelector(n):document.getElementById(t),o=!1;return a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),o=!0),i(a),()=>{o&&a&&document.body.removeChild(a)}},[t,n]),r?No.createPortal(e,r):null},nO={"button-remove":"_button-remove_1o2yg_1"},rO=()=>P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),iO=()=>P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:P.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),GS=e=>{const t=N.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:p}=e,h=o||["image/png","image/jpeg","image/jpg"],[d,v]=N.useState(""),m={internal:d||s,external:s||d},b=C=>{if(C!=null&&C.length){const S=C[0],w=S.size/1024/1024;let E="";if(h.some(x=>{var g;return(g=C[0].type)==null?void 0:g.includes(x)})?w>a?E=`${C.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):E="Berkas tidak didukung, silahkan pilih file kembali.",v(E),p==null||p(E),!(t!=null&&t.current))return;t.current.value=""}},f=C=>{var S;C.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},y=C=>{C.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return P.jsxs(P.Fragment,{children:[P.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:C=>{b(C.target.files)}}),P.jsx(sg,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:C=>f(C),startIcon:P.jsx(iO,{}),endIcon:n&&P.jsx("div",{className:nO["button-remove"],onClick:C=>y(C),children:P.jsx(rO,{})}),error:m[c],...u})]})};GS.displayName="UploadFile";const aO=({children:e,maxWidth:t,moreElement:n,style:r={},className:i,gap:a=0,gapStyle:o,...s})=>{const l=N.useMemo(()=>N.Children.toArray(e),[e]),u=l.length,[c,p]=N.useState(u),h=N.useRef(null),d=N.useRef([]),v=N.useRef(null);d.current=[];const m=()=>{const C=h.current,S=v.current;if(!C||C.offsetWidth===0)return;const w=C.offsetWidth,E=d.current.map(B=>B?B.offsetWidth:0),x=E.reduce((B,$)=>B+$,0),g=Math.max(0,u-1)*a;if(x+g<=w){p(u);return}const T=S?S.offsetWidth+a:0,_=w-T;let A=0,F=0;for(let B=0;B<u;B++){const $=E[B],k=B>0?a:0;if(A+$+k>_)break;A+=$+k,F++}p(F)};N.useLayoutEffect(()=>{m();const C=new ResizeObserver(m);return h.current&&C.observe(h.current),()=>{C.disconnect()}},[l,a]);const b=u-c,f={display:"flex",flexWrap:"nowrap",alignItems:"center",overflow:"hidden",gap:o??`${a}px`,maxWidth:t,minHeight:"38px",...r},y={position:"fixed",top:"-9999px",left:"-9999px",visibility:"hidden",pointerEvents:"none",zIndex:-1,display:"flex",flexWrap:"nowrap",alignItems:"center",gap:o??`${a}px`};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{ref:h,style:f,className:i??"",...s,children:[l.slice(0,c),b>0&&n(b)]}),P.jsxs("div",{style:y,"aria-hidden":"true",children:[l.map((C,S)=>N.cloneElement(C,{ref:w=>d.current[S]=w,key:`measure-${C.key||S}`})),u>0&&P.jsx("span",{ref:v,children:n(u)})]})]})},oO="_container_1wopr_1",sO="_image_1wopr_5",qr={container:oO,"image-content":"_image-content_1wopr_5",image:sO,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},lO=({className:e})=>P.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:P.jsx("g",{id:"x",children:P.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
|
147
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function XM(e){e=UM(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=ii);var a=e.onBlur;a===void 0&&(a=ii);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,p=e.value,h=e.valueIsNumericString,d=e.onValueChange,v=Cp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=ud(e),b=m.decimalSeparator,f=m.allowedDecimalSeparators,y=function(k){return yb(k,e)},C=function(k,O){return GM(k,O,e)},S=xa(p)?c:p,w=h??zM(S,u,t);xa(p)?xa(c)||(w=w||typeof c=="number"):w=w||typeof p=="number";var E=function(k){return FS(k)?k:(typeof k=="number"&&(k=OS(k)),w&&typeof s=="number"?bb(k,s,!!l):k)},x=jS(E(p),E(c),!!w,y,C,d),g=x[0],I=g.numAsString,T=g.formattedValue,_=x[1],A=function(k){var O=k.target,M=k.key,G=O.selectionStart,W=O.selectionEnd,U=O.value;if(U===void 0&&(U=""),(M==="Backspace"||M==="Delete")&&W<u.length){k.preventDefault();return}if(G!==W){i(k);return}M==="Backspace"&&U[0]==="-"&&G===u.length+1&&n&&Fi(O,1),s&&l&&(M==="Backspace"&&U[G-1]===b?(Fi(O,G-1),k.preventDefault()):M==="Delete"&&U[G]===b&&k.preventDefault()),f!=null&&f.includes(M)&&U[G]===b&&Fi(O,G+1);var J=o===!0?",":o;M==="Backspace"&&U[G-1]===J&&Fi(O,G-1),M==="Delete"&&U[G]===J&&Fi(O,G+1),i(k)},F=function(k){var O=I;if(O.match(/\d/g)||(O=""),r||(O=kM(O)),l&&s&&(O=bb(O,s,l)),O!==I){var M=yb(O,e);_({formattedValue:M,value:O,floatValue:parseFloat(O)},{event:k,source:Xs.event})}a(k)},B=function(k){return k===b?!0:Pa(k)},$=function(k){var O=k.currentValue,M=k.lastValue,G=k.formattedValue,W=k.currentValueIndex,U=k.formattedValueIndex,J=O[W],Q=G[U],Z=LS(M,O),ee=Z.to,q=function(le){return C(le).indexOf(".")+u.length};return p===0&&l&&s&&O[ee.start]===b&&q(O)<W&&q(G)>U?!1:W>=ee.start&&W<ee.end&&f&&f.includes(J)&&Q===b?!0:J===Q};return Object.assign(Object.assign({},v),{value:T,valueIsNumericString:!1,isValidInputCharacter:B,isCharacterSame:$,onValueChange:_,format:y,removeFormatting:C,getCaretBoundary:function(k){return WM(k,e)},onKeyDown:A,onBlur:F})}function YM(e){var t=XM(e);return N.createElement(zS,Object.assign({},t))}function KM(e,t){var n=t.format,r=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(a===void 0&&(a="#"),e===""&&!r)return"";for(var o=0,s=n.split(""),l=0,u=n.length;l<u;l++)n[l]===a&&(s[l]=e[o]||HS(i,o),o+=1);return s.join("")}function ZM(e,t,n){t===void 0&&(t=VS(e));var r=n.format,i=n.patternChar;i===void 0&&(i="#");var a=t.from,o=t.to,s=t.lastValue;s===void 0&&(s="");var l=function(b){return r[b]===i},u=function(b,f){for(var y="",C=0;C<b.length;C++)l(f+C)&&Pa(b[C])&&(y+=b[C]);return y},c=function(b){return b.replace(/[^0-9]/g,"")};if(!r.match(/\d/))return c(e);if((s===""||a.end-a.start===s.length)&&e.length===r.length){for(var p="",h=0;h<e.length;h++)if(l(h))Pa(e[h])&&(p+=e[h]);else if(e[h]!==r[h])return c(e);return p}var d=s.substring(0,a.start),v=e.substring(o.start,o.end),m=s.substring(a.end);return""+u(d,0)+c(v)+u(m,a.end)}function qM(e,t){var n=t.format,r=t.mask,i=t.patternChar;i===void 0&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),o=0,s=-1,l={};n.split("").forEach(function(h,d){var v=void 0;h===i&&(o++,v=HS(r,o-1),s===-1&&e[d]===v&&(s=d)),l[d]=v});for(var u=function(h){return n[h]===i&&e[h]!==l[h]},c=0,p=a.length;c<p;c++)a[c]=c===s||u(c)||u(c-1);return a[n.indexOf(i)]=!0,a}function JM(e){var t=e.mask;if(t){var n=t==="string"?t:t.toString();if(n.match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}}function QM(e,t){return e===""?!0:!(t!=null&&t.match(/\d/))&&typeof e=="string"&&(!!e.match(/^\d+$/)||e==="")}function eO(e){e.mask,e.allowEmptyFormatting;var t=e.format,n=e.inputMode;n===void 0&&(n="numeric");var r=e.onKeyDown;r===void 0&&(r=ii);var i=e.patternChar;i===void 0&&(i="#");var a=e.value,o=e.defaultValue,s=e.valueIsNumericString,l=Cp(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);JM(e);var u=function(v){return qM(v,e)},c=function(v){var m=v.key,b=v.target,f=b.selectionStart,y=b.selectionEnd,C=b.value;if(f!==y){r(v);return}var S=f;if(m==="Backspace"||m==="Delete"){var w="right";if(m==="Backspace"){for(;S>0&&t[S-1]!==i;)S--;w="left"}else{for(var E=t.length;S<E&&t[S]!==i;)S++;w="right"}S=vc(C,S,u(C),w)}else t[S]!==i&&m!=="ArrowLeft"&&m!=="ArrowRight"&&(S=vc(C,S+1,u(C),"right"));S!==f&&Fi(b,S),r(v)},p=xa(a)?o:a,h=s??QM(p,t),d=Object.assign(Object.assign({},e),{valueIsNumericString:h});return Object.assign(Object.assign({},l),{value:a,defaultValue:o,valueIsNumericString:h,inputMode:n,format:function(v){return KM(v,d)},removeFormatting:function(v,m){return ZM(v,m,d)},getCaretBoundary:u,onKeyDown:c})}function tO(e){var t=eO(e);return N.createElement(zS,Object.assign({},t))}const nO=({max:e,min:t,selectedText:n="Rp0",onChange:r,onFocusInput:i,...a})=>P.jsx(YM,{isAllowed:o=>e!==void 0&&Hr(e)&&bt(o.value).isGreaterThan(e)?(typeof r=="function"&&r({target:{value:bt(e).toString()}}),!1):t!==void 0&&Hr(t)&&bt(o.value).isLessThan(t)?(typeof r=="function"&&r({target:{value:bt(t).toString()}}),!1):!0,onValueChange:(o,{source:s})=>{typeof r=="function"&&s.includes("event")&&r({target:{value:o.value}})},decimalSeparator:",",thousandSeparator:".",decimalScale:2,valueIsNumericString:!0,thousandsGroupStyle:"thousand",onFocus:o=>{var s;((s=o==null?void 0:o.target)==null?void 0:s.value)===n&&(typeof i=="function"?i(""):typeof r=="function"&&r({target:{value:""}}))},...a}),Sp=({children:e,containerId:t="portal-root",selector:n})=>{const[r,i]=N.useState(null);return N.useEffect(()=>{let a=n?document.querySelector(n):document.getElementById(t),o=!1;return a||(a=document.createElement("div"),a.id=t,document.body.appendChild(a),o=!0),i(a),()=>{o&&a&&document.body.removeChild(a)}},[t,n]),r?No.createPortal(e,r):null},rO={"button-remove":"_button-remove_1o2yg_1"},iO=()=>P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",fill:"#212121"})}),aO=()=>P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:P.jsx("path",{d:"M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",stroke:"#9E9E9E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),GS=e=>{const t=N.useRef(null),{fileName:n,onChange:r,maxFile:i,maxSize:a=2,validateFile:o,error:s,label:l,inputProps:u,priorityError:c="external",eventError:p}=e,h=o||["image/png","image/jpeg","image/jpg"],[d,v]=N.useState(""),m={internal:d||s,external:s||d},b=C=>{if(C!=null&&C.length){const S=C[0],w=S.size/1024/1024;let E="";if(h.some(x=>{var g;return(g=C[0].type)==null?void 0:g.includes(x)})?w>a?E=`${C.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${a}MB.`:r(S):E="Berkas tidak didukung, silahkan pilih file kembali.",v(E),p==null||p(E),!(t!=null&&t.current))return;t.current.value=""}},f=C=>{var S;C.preventDefault(),t!=null&&t.current&&((S=t.current)==null||S.click())},y=C=>{C.preventDefault(),t!=null&&t.current&&(r(null),t.current.value="")};return P.jsxs(P.Fragment,{children:[P.jsx("input",{accept:h==null?void 0:h.join(", "),ref:t,hidden:!0,type:"file",max:i,onChange:C=>{b(C.target.files)}}),P.jsx(sg,{sizeInput:"medium",placeholder:"Pilih Berkas",label:l,value:n,readOnly:!0,onClick:C=>f(C),startIcon:P.jsx(aO,{}),endIcon:n&&P.jsx("div",{className:rO["button-remove"],onClick:C=>y(C),children:P.jsx(iO,{})}),error:m[c],...u})]})};GS.displayName="UploadFile";const oO=({children:e,maxWidth:t,moreElement:n,style:r={},className:i,gap:a=0,gapStyle:o,...s})=>{const l=N.useMemo(()=>N.Children.toArray(e),[e]),u=l.length,[c,p]=N.useState(u),h=N.useRef(null),d=N.useRef([]),v=N.useRef(null);d.current=[];const m=()=>{const C=h.current,S=v.current;if(!C||C.offsetWidth===0)return;const w=C.offsetWidth,E=d.current.map(B=>B?B.offsetWidth:0),x=E.reduce((B,$)=>B+$,0),g=Math.max(0,u-1)*a;if(x+g<=w){p(u);return}const T=S?S.offsetWidth+a:0,_=w-T;let A=0,F=0;for(let B=0;B<u;B++){const $=E[B],k=B>0?a:0;if(A+$+k>_)break;A+=$+k,F++}p(F)};N.useLayoutEffect(()=>{m();const C=new ResizeObserver(m);return h.current&&C.observe(h.current),()=>{C.disconnect()}},[l,a]);const b=u-c,f={display:"flex",flexWrap:"nowrap",alignItems:"center",overflow:"hidden",gap:o??`${a}px`,maxWidth:t,minHeight:"38px",...r},y={position:"fixed",top:"-9999px",left:"-9999px",visibility:"hidden",pointerEvents:"none",zIndex:-1,display:"flex",flexWrap:"nowrap",alignItems:"center",gap:o??`${a}px`};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{ref:h,style:f,className:i??"",...s,children:[l.slice(0,c),b>0&&n(b)]}),P.jsxs("div",{style:y,"aria-hidden":"true",children:[l.map((C,S)=>N.cloneElement(C,{ref:w=>d.current[S]=w,key:`measure-${C.key||S}`})),u>0&&P.jsx("span",{ref:v,children:n(u)})]})]})},sO="_container_1wopr_1",lO="_image_1wopr_5",qr={container:sO,"image-content":"_image-content_1wopr_5",image:lO,"text-desc":"_text-desc_1wopr_13","action-content":"_action-content_1wopr_20","button-content":"_button-content_1wopr_24","text-error":"_text-error_1wopr_31"},uO=({className:e})=>P.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 1ru-text-red-600 ${e??""}`,fill:"currentColor",children:P.jsx("g",{id:"x",children:P.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
|
148
148
|
6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
|
|
149
149
|
5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
|
|
150
150
|
6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
|
|
@@ -153,9 +153,9 @@ You should wrap it with \`css\` like this:
|
|
|
153
153
|
13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 \r
|
|
154
154
|
13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 \r
|
|
155
155
|
13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
|
|
156
|
-
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),
|
|
156
|
+
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),cO=({className:e})=>P.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`1ru-h-5 1ru-w-5 ${e??""}`,children:P.jsx("g",{id:"upload",children:P.jsx("path",{id:"Vector",d:`M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
|
|
157
157
|
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
|
158
|
-
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),
|
|
158
|
+
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),dO=({onChange:e,valueUrl:t,validateFile:n,validateFileDesc:r="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:i=2,icon:a,desc:o,classNameContainer:s,classNameImage:l,classNameAction:u})=>{const c=N.useRef(null),p=n||["image/png","image/jpeg","image/jpg"],[h,d]=N.useState(""),[v,m]=N.useState(""),b=C=>{if(C!=null&&C.length){const S=C[0],w=S.size/1024/1024;if(!p.some(E=>{var x;return(x=C[0].type)==null?void 0:x.includes(E)}))m("Berkas tidak didukung, silahkan pilih file kembali.");else if(w>i){const E=`${C.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${i}MB.`;m(E)}else{if(!(c!=null&&c.current))return;m(""),e(S),d(URL.createObjectURL(S)),c.current.value=""}}},f=C=>{C.preventDefault(),b(C.dataTransfer.files)},y=C=>{C.preventDefault(),c!=null&&c.current&&(typeof e=="function"&&e(null),d(""),c.current.value="")};return P.jsxs("div",{className:`${qr.container} ${s}`,children:[P.jsx("input",{accept:p==null?void 0:p.join(", "),ref:c,hidden:!0,type:"file",multiple:!1,onChange:C=>{C.target.files&&b(C.target.files)}}),h||t?P.jsx("div",{className:`${qr["image-content"]} ${l}`,onDrop:f,onDragOver:C=>C.preventDefault(),onDragLeave:C=>C.preventDefault(),children:P.jsx("img",{src:h||t,alt:"upload-image",className:`${qr.image} ${l}`})}):P.jsxs("div",{className:`${qr["image-content"]} ${l}`,onDrop:f,onDragOver:C=>C.preventDefault(),onDragLeave:C=>C.preventDefault(),children:[a,P.jsx("div",{className:qr["text-desc"],children:typeof o=="function"?o():o})]}),P.jsxs("div",{className:qr["action-content"],children:[P.jsxs("div",{className:`${qr["button-content"]} ${u}`,children:[(h||t)&&P.jsx(mr,{variants:"tertiary-red-600",size:"xs",startIcon:P.jsx(uO,{}),onClick:C=>y(C),children:"Hapus"}),P.jsxs(mr,{variants:"tertiary-blue-700",size:"xs",onClick:()=>{var C;return(C=c.current)==null?void 0:C.click()},startIcon:P.jsx(cO,{}),children:[h||t?"Ganti":"Pilih"," Gambar"]})]}),P.jsx("p",{className:qr["text-desc"],children:r}),v&&P.jsx("p",{className:qr["text-error"],children:v})]})]})},fO="_container_qyhmv_1",hO="_label_qyhmv_4",gO="_disabled_qyhmv_9",pO="_textarea_qyhmv_15",mO="_error_qyhmv_41",sn={container:fO,"size-medium":"_size-medium_qyhmv_1",label:hO,disabled:gO,"container-textarea":"_container-textarea_qyhmv_12",textarea:pO,error:mO,"label-error":"_label-error_qyhmv_49","size-medium-border-bottom":"_size-medium-border-bottom_qyhmv_57","size-m":"_size-m_qyhmv_1","solid-blue-300":"_solid-blue-300_qyhmv_169","dashed-blue-300":"_dashed-blue-300_qyhmv_182","solid-laba-blue-10":"_solid-laba-blue-10_qyhmv_192","dashed-laba-blue-10":"_dashed-laba-blue-10_qyhmv_205","border-bottom-laba-blue-08":"_border-bottom-laba-blue-08_qyhmv_215"},WS=N.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:p,minHeight:h=94,maxHeight:d=150,style:v,sizeInput:m="m",variant:b="solid-blue-300",...f}=e,y=N.useRef(null),C=Bg(y,t),S={...v??{},maxHeight:d,height:p??h,minHeight:h},[w,E]=N.useState(!1),x={size:{m:sn["size-m"],medium:sn["size-medium"],"medium-border-bottom":sn["size-medium-border-bottom"]},variant:{"solid-blue-300":{border:0,style:sn["solid-blue-300"]},"dashed-blue-300":{border:3.7,style:sn["dashed-blue-300"]},"solid-laba-blue-10":{border:0,style:sn["solid-laba-blue-10"]},"dashed-laba-blue-10":{border:3.7,style:sn["dashed-laba-blue-10"]},"border-bottom-laba-blue-08":{border:1,style:sn["border-bottom-laba-blue-08"]}}},g=function(_){var A;E(!0),(A=e.onFocus)==null||A.call(e,_)},I=function(_){var A;E(!1),(A=e.onBlur)==null||A.call(e,_)},T=function(_){const A=(_==null?void 0:_.target)??y.current;A.style.height="0px",A.style.height=A.scrollHeight+x.variant[b].border+"px"};return Rg(()=>(w&&y.current?y.current.addEventListener("input",T):T(),()=>{var _;(_=y.current)==null||_.removeEventListener("input",T)}),[w]),P.jsxs("div",{className:`${sn.container}
|
|
159
159
|
${x.size[m]}
|
|
160
160
|
${x.variant[b].style}
|
|
161
161
|
${r??""}`,children:[u&&P.jsxs("label",{htmlFor:l??s,className:`${sn.label} ${f.disabled?sn.disabled:""} ${a??""}`,children:[u," ",n&&P.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),P.jsx("div",{className:`${sn["container-textarea"]}`,children:P.jsx("textarea",{id:l??s,className:` ${c?sn.error:""}
|
|
@@ -166,35 +166,35 @@ You should wrap it with \`css\` like this:
|
|
|
166
166
|
* https://github.com/kurkle/color#readme
|
|
167
167
|
* (c) 2023 Jukka Kurkela
|
|
168
168
|
* Released under the MIT License
|
|
169
|
-
*/function El(e){return e+.5|0}const Vi=(e,t,n)=>Math.max(Math.min(e,n),t);function ls(e){return Vi(El(e*2.55),0,255)}function Wi(e){return Vi(El(e*255),0,255)}function ni(e){return Vi(El(e/2.55)/100,0,1)}function xb(e){return Vi(El(e*100),0,100)}const Yn={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},I0=[..."0123456789ABCDEF"],
|
|
169
|
+
*/function El(e){return e+.5|0}const Vi=(e,t,n)=>Math.max(Math.min(e,n),t);function ls(e){return Vi(El(e*2.55),0,255)}function Wi(e){return Vi(El(e*255),0,255)}function ni(e){return Vi(El(e/2.55)/100,0,1)}function xb(e){return Vi(El(e*100),0,100)}const Yn={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},I0=[..."0123456789ABCDEF"],vO=e=>I0[e&15],bO=e=>I0[(e&240)>>4]+I0[e&15],eu=e=>(e&240)>>4===(e&15),yO=e=>eu(e.r)&&eu(e.g)&&eu(e.b)&&eu(e.a);function xO(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Yn[e[1]]*17,g:255&Yn[e[2]]*17,b:255&Yn[e[3]]*17,a:t===5?Yn[e[4]]*17:255}:(t===7||t===9)&&(n={r:Yn[e[1]]<<4|Yn[e[2]],g:Yn[e[3]]<<4|Yn[e[4]],b:Yn[e[5]]<<4|Yn[e[6]],a:t===9?Yn[e[7]]<<4|Yn[e[8]]:255})),n}const CO=(e,t)=>e<255?t(e):"";function EO(e){var t=yO(e)?vO:bO;return e?"#"+t(e.r)+t(e.g)+t(e.b)+CO(e.a,t):void 0}const SO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function US(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function wO(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function IO(e,t,n){const r=US(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function _O(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function wp(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;let l,u,c;return a!==o&&(c=a-o,u=s>.5?c/(2-a-o):c/(a+o),l=_O(n,r,i,c,a),l=l*60+.5),[l|0,u||0,s]}function Ip(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Wi)}function _p(e,t,n){return Ip(US,e,t,n)}function DO(e,t,n){return Ip(IO,e,t,n)}function TO(e,t,n){return Ip(wO,e,t,n)}function XS(e){return(e%360+360)%360}function AO(e){const t=SO.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ls(+t[5]):Wi(+t[5]));const i=XS(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=DO(i,a,o):t[1]==="hsv"?r=TO(i,a,o):r=_p(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function RO(e,t){var n=wp(e);n[0]=XS(n[0]+t),n=_p(n),e.r=n[0],e.g=n[1],e.b=n[2]}function BO(e){if(!e)return;const t=wp(e),n=t[0],r=xb(t[1]),i=xb(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${ni(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Cb={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"},Eb={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"};function kO(){const e={},t=Object.keys(Eb),n=Object.keys(Cb);let r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Cb[a]);a=parseInt(Eb[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let tu;function PO(e){tu||(tu=kO(),tu.transparent=[0,0,0,0]);const t=tu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const $O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function FO(e){const t=$O.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?ls(o):Vi(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ls(r):Vi(r,0,255)),i=255&(t[4]?ls(i):Vi(i,0,255)),a=255&(t[6]?ls(a):Vi(a,0,255)),{r,g:i,b:a,a:n}}}function NO(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ni(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Qf=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Qa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function MO(e,t,n){const r=Qa(ni(e.r)),i=Qa(ni(e.g)),a=Qa(ni(e.b));return{r:Wi(Qf(r+n*(Qa(ni(t.r))-r))),g:Wi(Qf(i+n*(Qa(ni(t.g))-i))),b:Wi(Qf(a+n*(Qa(ni(t.b))-a))),a:e.a+n*(t.a-e.a)}}function nu(e,t,n){if(e){let r=wp(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=_p(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function YS(e,t){return e&&Object.assign(t||{},e)}function Sb(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Wi(e[3]))):(t=YS(e,{r:0,g:0,b:0,a:1}),t.a=Wi(t.a)),t}function OO(e){return e.charAt(0)==="r"?FO(e):AO(e)}class Ys{constructor(t){if(t instanceof Ys)return t;const n=typeof t;let r;n==="object"?r=Sb(t):n==="string"&&(r=xO(t)||PO(t)||OO(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=YS(this._rgb);return t&&(t.a=ni(t.a)),t}set rgb(t){this._rgb=Sb(t)}rgbString(){return this._valid?NO(this._rgb):void 0}hexString(){return this._valid?EO(this._rgb):void 0}hslString(){return this._valid?BO(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=MO(this._rgb,t._rgb,n)),this}clone(){return new Ys(this.rgb)}alpha(t){return this._rgb.a=Wi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=El(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.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 nu(this._rgb,2,t),this}darken(t){return nu(this._rgb,2,-t),this}saturate(t){return nu(this._rgb,1,t),this}desaturate(t){return nu(this._rgb,1,-t),this}rotate(t){return RO(this._rgb,t),this}}/*!
|
|
170
170
|
* Chart.js v4.5.0
|
|
171
171
|
* https://www.chartjs.org
|
|
172
172
|
* (c) 2025 Chart.js Contributors
|
|
173
173
|
* Released under the MIT License
|
|
174
|
-
*/function Jr(){}const OO=(()=>{let e=0;return()=>e++})();function Qe(e){return e==null}function At(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function je(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function hn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Ir(e,t){return hn(e)?e:t}function Me(e,t){return typeof e>"u"?t:e}const LO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,KS=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ft(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function rt(e,t,n,r){let i,a,o;if(At(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(je(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function bc(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function yc(e){if(At(e))return e.map(yc);if(je(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=yc(e[n[i]]);return t}return e}function ZS(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function VO(e,t,n,r){if(!ZS(e))return;const i=t[e],a=n[e];je(i)&&je(a)?Ks(i,a,r):t[e]=yc(a)}function Ks(e,t,n){const r=At(t)?t:[t],i=r.length;if(!je(e))return e;n=n||{};const a=n.merger||VO;let o;for(let s=0;s<i;++s){if(o=r[s],!je(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function bs(e,t){return Ks(e,t,{merger:HO})}function HO(e,t,n){if(!ZS(e))return;const r=t[e],i=n[e];je(r)&&je(i)?bs(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=yc(i))}const wb={"":e=>e,x:e=>e.x,y:e=>e.y};function jO(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function zO(e){const t=jO(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $a(e,t){return(wb[t]||(wb[t]=zO(t)))(e)}function Dp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Zs=e=>typeof e<"u",Ki=e=>typeof e=="function",Ib=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function GO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const it=Math.PI,yt=2*it,WO=yt+it,xc=Number.POSITIVE_INFINITY,UO=it/180,Nt=it/2,oa=it/4,_b=it*2/3,qS=Math.log10,Vr=Math.sign;function ys(e,t,n){return Math.abs(e-t)<n}function Db(e){const t=Math.round(e);e=ys(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(qS(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function XO(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function YO(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function qs(e){return!YO(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function KO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function ZO(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function li(e){return e*(it/180)}function qO(e){return e*(180/it)}function Tb(e){if(!hn(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function JS(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*it&&(a+=yt),{angle:a,distance:i}}function _0(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function JO(e,t){return(e-t+WO)%yt-it}function Nn(e){return(e%yt+yt)%yt}function Js(e,t,n,r){const i=Nn(e),a=Nn(t),o=Nn(n),s=Nn(a-i),l=Nn(o-i),u=Nn(i-a),c=Nn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function dn(e,t,n){return Math.max(t,Math.min(n,e))}function QO(e){return dn(e,-32768,32767)}function ui(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Tp(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const ba=(e,t,n,r)=>Tp(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),eL=(e,t,n)=>Tp(e,n,r=>e[r][t]>=n);function tL(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const QS=["push","pop","shift","splice","unshift"];function nL(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),QS.forEach(n=>{const r="_onData"+Dp(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function Ab(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(QS.forEach(a=>{delete e[a]}),delete e._chartjs)}function ew(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const tw=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function nw(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,tw.call(window,()=>{r=!1,e.apply(t,n)}))}}function rL(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Ap=e=>e==="start"?"left":e==="end"?"right":"center",un=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,iL=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function aL(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=o.axis,{min:p,max:h,minDefined:d,maxDefined:v}=o.getUserBounds();if(d){if(i=Math.min(ba(l,c,p).lo,n?r:ba(t,c,o.getPixelForValue(p)).lo),u){const m=l.slice(0,i+1).reverse().findIndex(b=>!Qe(b[s.axis]));i-=Math.max(0,m)}i=dn(i,0,r-1)}if(v){let m=Math.max(ba(l,o.axis,h,!0).hi+1,n?0:ba(t,c,o.getPixelForValue(h),!0).hi+1);if(u){const b=l.slice(m-1).findIndex(f=>!Qe(f[s.axis]));m+=Math.max(0,b)}a=dn(m,i,r)-i}else a=r-i}return{start:i,count:a}}function oL(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const ru=e=>e===0||e===1,Rb=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*yt/n)),Bb=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*yt/n)+1,xs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Nt)+1,easeOutSine:e=>Math.sin(e*Nt),easeInOutSine:e=>-.5*(Math.cos(it*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ru(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ru(e)?e:Rb(e,.075,.3),easeOutElastic:e=>ru(e)?e:Bb(e,.075,.3),easeInOutElastic(e){return ru(e)?e:e<.5?.5*Rb(e*2,.1125,.45):.5+.5*Bb(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?xs.easeInBounce(e*2)*.5:xs.easeOutBounce(e*2-1)*.5+.5};function Rp(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function kb(e){return Rp(e)?e:new Ys(e)}function eh(e){return Rp(e)?e:new Ys(e).saturate(.5).darken(.1).hexString()}const sL=["x","y","borderWidth","radius","tension"],lL=["color","borderColor","backgroundColor"];function uL(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:lL},numbers:{type:"number",properties:sL}}),e.describe("animations",{_fallback:"animation"}),e.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=>t|0}}}})}function cL(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Pb=new Map;function dL(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Pb.get(n);return r||(r=new Intl.NumberFormat(e,t),Pb.set(n,r)),r}function Bp(e,t,n){return dL(t,n).format(e)}const fL={values(e){return At(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=hL(e,n)}const o=qS(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bp(e,r,l)}};function hL(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var rw={formatters:fL};function gL(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:rw.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Fa=Object.create(null),D0=Object.create(null);function Cs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function th(e,t,n){return typeof t=="string"?Ks(Cs(e,t),n):Ks(Cs(e,""),t)}class pL{constructor(t,n){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=r=>r.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=(r,i)=>eh(i.backgroundColor),this.hoverBorderColor=(r,i)=>eh(i.borderColor),this.hoverColor=(r,i)=>eh(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return th(this,t,n)}get(t){return Cs(this,t)}describe(t,n){return th(D0,t,n)}override(t,n){return th(Fa,t,n)}route(t,n,r,i){const a=Cs(this,t),o=Cs(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return je(l)?Object.assign({},u,l):Me(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var _t=new pL({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[uL,cL,gL]);function mL(e){return!e||Qe(e.size)||Qe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function $b(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function sa(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function Fb(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function T0(e,t,n,r){iw(e,t,n,r,null)}function iw(e,t,n,r,i){let a,o,s,l,u,c,p,h;const d=t.pointStyle,v=t.rotation,m=t.radius;let b=(v||0)*UO;if(d&&typeof d=="object"&&(a=d.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),d){default:i?e.ellipse(n,r,i/2,m,0,0,yt):e.arc(n,r,m,0,yt),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=_b,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=_b,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(b+oa)*l,p=Math.cos(b+oa)*(i?i/2-u:l),s=Math.sin(b+oa)*l,h=Math.sin(b+oa)*(i?i/2-u:l),e.arc(n-p,r-s,u,b-it,b-Nt),e.arc(n+h,r-o,u,b-Nt,b),e.arc(n+p,r+s,u,b,b+Nt),e.arc(n-h,r+o,u,b+Nt,b+it),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=oa;case"rectRot":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+h,r-o),e.lineTo(n+p,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":b+=oa;case"cross":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),b+=oa,p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(b)*m,s=Math.sin(b)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:m),r+Math.sin(b)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Qs(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function cd(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dd(e){e.restore()}function vL(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function bL(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function yL(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Qe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function xL(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function CL(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function el(e,t,n,r,i,a={}){const o=At(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,yL(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&CL(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Qe(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),xL(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Cc(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*it,it,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,it,Nt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,Nt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Nt,!0),e.lineTo(n+o.topLeft,r)}const EL=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,SL=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function wL(e,t){const n=(""+e).match(EL);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const IL=e=>+e||0;function kp(e,t){const n={},r=je(t),i=r?Object.keys(t):t,a=je(e)?r?o=>Me(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=IL(a(o));return n}function aw(e){return kp(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(e){return kp(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ir(e){const t=aw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function fn(e,t){e=e||{},t=t||_t.font;let n=Me(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Me(e.style,t.style);r&&!(""+r).match(SL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Me(e.family,t.family),lineHeight:wL(Me(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Me(e.weight,t.weight),string:""};return i.string=mL(i),i}function iu(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function _L(e,t,n){const{min:r,max:i}=e,a=KS(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Ha(e,t){return Object.assign(Object.create(e),t)}function Pp(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=uw("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Pp([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return sw(s,l,()=>$L(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Mb(s).includes(l)},ownKeys(s){return Mb(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function ko(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ow(e,r),setContext:a=>ko(e,a,n,r),override:a=>ko(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return sw(a,o,()=>TL(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function ow(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ki(n)?n:()=>n,isIndexable:Ki(r)?r:()=>r}}const DL=(e,t)=>e?e+Dp(t):t,$p=(e,t)=>je(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sw(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function TL(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Ki(s)&&o.isScriptable(t)&&(s=AL(t,s,e,n)),At(s)&&s.length&&(s=RL(t,s,e,o.isIndexable)),$p(t,s)&&(s=ko(s,i,a&&a[t],o)),s}function AL(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),$p(e,l)&&(l=Fp(i._scopes,i,e,l)),l}function RL(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(je(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const p=Fp(u,i,e,c);t.push(ko(p,a,o&&o[e],s))}}return t}function lw(e,t,n){return Ki(e)?e(t,n):e}const BL=(e,t)=>e===!0?t:typeof e=="string"?$a(t,e):void 0;function kL(e,t,n,r,i){for(const a of t){const o=BL(n,a);if(o){e.add(o);const s=lw(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Fp(e,t,n,r){const i=t._rootScopes,a=lw(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=Nb(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Nb(s,o,a,l,r),l===null)?!1:Pp(Array.from(s),[""],i,a,()=>PL(t,n,r))}function Nb(e,t,n,r,i){for(;n;)n=kL(e,t,n,r,i);return n}function PL(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return At(i)&&je(n)?n:i||{}}function $L(e,t,n,r){let i;for(const a of t)if(i=uw(DL(a,e),n),typeof i<"u")return $p(e,i)?Fp(n,r,e,i):i}function uw(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Mb(e){let t=e._keys;return t||(t=e._keys=FL(e._scopes)),t}function FL(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const NL=Number.EPSILON||1e-14,Po=(e,t)=>t<e.length&&!e[t].skip&&e[t],cw=e=>e==="x"?"y":"x";function ML(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=_0(a,i),l=_0(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const p=r*u,h=r*c;return{previous:{x:a.x-p*(o.x-i.x),y:a.y-p*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function OL(e,t,n){const r=e.length;let i,a,o,s,l,u=Po(e,0);for(let c=0;c<r-1;++c)if(l=u,u=Po(e,c+1),!(!l||!u)){if(ys(t[c],0,NL)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function LL(e,t,n="x"){const r=cw(n),i=e.length;let a,o,s,l=Po(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=Po(e,u+1),!s)continue;const c=s[n],p=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=p-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=p+a*t[u])}}function VL(e,t="x"){const n=cw(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=Po(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=Po(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?Vr(i[o-1])!==Vr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}OL(e,i,a),LL(e,a,t)}function au(e,t,n){return Math.max(Math.min(e,n),t)}function HL(e,t){let n,r,i,a,o,s=Qs(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&Qs(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=au(i.cp1x,t.left,t.right),i.cp1y=au(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=au(i.cp2x,t.left,t.right),i.cp2y=au(i.cp2y,t.top,t.bottom)))}function jL(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")VL(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=ML(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&HL(e,n)}function Np(){return typeof window<"u"&&typeof document<"u"}function Mp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ec(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const fd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function zL(e,t){return fd(e).getPropertyValue(t)}const GL=["top","right","bottom","left"];function Ca(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=GL[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const WL=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function UL(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(WL(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function ca(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=fd(n),a=i.boxSizing==="border-box",o=Ca(i,"padding"),s=Ca(i,"border","width"),{x:l,y:u,box:c}=UL(e,n),p=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:d,height:v}=t;return a&&(d-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-p)/d*n.width/r),y:Math.round((u-h)/v*n.height/r)}}function XL(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&Mp(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=fd(a),l=Ca(s,"border","width"),u=Ca(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Ec(s.maxWidth,a,"clientWidth"),i=Ec(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||xc,maxHeight:i||xc}}const ou=e=>Math.round(e*10)/10;function YL(e,t,n,r){const i=fd(e),a=Ca(i,"margin"),o=Ec(i.maxWidth,e,"clientWidth")||xc,s=Ec(i.maxHeight,e,"clientHeight")||xc,l=XL(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ca(i,"border","width"),d=Ca(i,"padding");u-=d.width+h.width,c-=d.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=ou(Math.min(u,o,l.maxWidth)),c=ou(Math.min(c,s,l.maxHeight)),u&&!c&&(c=ou(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=ou(Math.floor(c*r))),{width:u,height:c}}function Ob(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const KL=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Np()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Lb(e,t){const n=zL(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function da(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function ZL(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function qL(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=da(e,i,n),s=da(i,a,n),l=da(a,t,n),u=da(o,s,n),c=da(s,l,n);return da(u,c,n)}const JL=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},QL=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Eo(e,t,n){return e?JL(t,n):QL()}function dw(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function fw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function hw(e){return e==="angle"?{between:Js,compare:JO,normalize:Nn}:{between:ui,compare:(t,n)=>t-n,normalize:t=>t}}function Vb({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function eV(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=hw(r),l=t.length;let{start:u,end:c,loop:p}=e,h,d;if(p){for(u+=l,c+=l,h=0,d=l;h<d&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:p,style:e.style}}function gw(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=hw(r),{start:c,end:p,loop:h,style:d}=eV(e,t,n),v=[];let m=!1,b=null,f,y,C;const S=()=>l(i,C,f)&&s(i,C)!==0,w=()=>s(a,f)===0||l(a,C,f),E=()=>m||S(),x=()=>!m||w();for(let g=c,I=c;g<=p;++g)y=t[g%o],!y.skip&&(f=u(y[r]),f!==C&&(m=l(f,i,a),b===null&&E()&&(b=s(f,i)===0?g:I),b!==null&&x()&&(v.push(Vb({start:b,end:g,loop:h,count:o,style:d})),b=null),I=g,C=f));return b!==null&&v.push(Vb({start:b,end:p,loop:h,count:o,style:d})),v}function pw(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=gw(r[i],e.points,t);a.length&&n.push(...a)}return n}function tV(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function nV(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function rV(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=tV(n,i,a,r);if(r===!0)return Hb(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return Hb(e,nV(n,o,l,u),n,t)}function Hb(e,t,n,r){return!r||!r.setContext||!n?t:iV(e,t,n,r)}function iV(e,t,n,r){const i=e._chart.getContext(),a=jb(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,p=t[0].start,h=p;function d(v,m,b,f){const y=s?-1:1;if(v!==m){for(v+=l;n[v%l].skip;)v-=y;for(;n[m%l].skip;)m+=y;v%l!==m%l&&(u.push({start:v%l,end:m%l,loop:b,style:f}),c=f,p=m%l)}}for(const v of t){p=s?p:v.start;let m=n[p%l],b;for(h=p+1;h<=v.end;h++){const f=n[h%l];b=jb(r.setContext(Ha(i,{type:"segment",p0:m,p1:f,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),aV(b,c)&&d(p,h-1,v.loop,c),m=f,c=b}p<h-1&&d(p,h-1,v.loop,c)}return u}function jb(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function aV(e,t){if(!t)return!1;const n=[],r=function(i,a){return Rp(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function su(e,t,n){return e.options.clip?e[n]:t[n]}function oV(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:su(n,t,"left"),right:su(n,t,"right"),top:su(r,t,"top"),bottom:su(r,t,"bottom")}:t}function mw(e,t){const n=t._clip;if(n.disabled)return!1;const r=oV(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
174
|
+
*/function Jr(){}const LO=(()=>{let e=0;return()=>e++})();function Qe(e){return e==null}function At(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function je(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function hn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Ir(e,t){return hn(e)?e:t}function Me(e,t){return typeof e>"u"?t:e}const VO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,KS=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ft(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function rt(e,t,n,r){let i,a,o;if(At(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(je(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function bc(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function yc(e){if(At(e))return e.map(yc);if(je(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=yc(e[n[i]]);return t}return e}function ZS(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function HO(e,t,n,r){if(!ZS(e))return;const i=t[e],a=n[e];je(i)&&je(a)?Ks(i,a,r):t[e]=yc(a)}function Ks(e,t,n){const r=At(t)?t:[t],i=r.length;if(!je(e))return e;n=n||{};const a=n.merger||HO;let o;for(let s=0;s<i;++s){if(o=r[s],!je(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)a(l[u],e,o,n)}return e}function bs(e,t){return Ks(e,t,{merger:jO})}function jO(e,t,n){if(!ZS(e))return;const r=t[e],i=n[e];je(r)&&je(i)?bs(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=yc(i))}const wb={"":e=>e,x:e=>e.x,y:e=>e.y};function zO(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function GO(e){const t=zO(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $a(e,t){return(wb[t]||(wb[t]=GO(t)))(e)}function Dp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Zs=e=>typeof e<"u",Ki=e=>typeof e=="function",Ib=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function WO(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const it=Math.PI,yt=2*it,UO=yt+it,xc=Number.POSITIVE_INFINITY,XO=it/180,Nt=it/2,oa=it/4,_b=it*2/3,qS=Math.log10,Vr=Math.sign;function ys(e,t,n){return Math.abs(e-t)<n}function Db(e){const t=Math.round(e);e=ys(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(qS(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function YO(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function KO(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function qs(e){return!KO(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function ZO(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function qO(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function li(e){return e*(it/180)}function JO(e){return e*(180/it)}function Tb(e){if(!hn(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function JS(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*it&&(a+=yt),{angle:a,distance:i}}function _0(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function QO(e,t){return(e-t+UO)%yt-it}function Nn(e){return(e%yt+yt)%yt}function Js(e,t,n,r){const i=Nn(e),a=Nn(t),o=Nn(n),s=Nn(a-i),l=Nn(o-i),u=Nn(i-a),c=Nn(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function dn(e,t,n){return Math.max(t,Math.min(n,e))}function eL(e){return dn(e,-32768,32767)}function ui(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Tp(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const ba=(e,t,n,r)=>Tp(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),tL=(e,t,n)=>Tp(e,n,r=>e[r][t]>=n);function nL(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const QS=["push","pop","shift","splice","unshift"];function rL(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),QS.forEach(n=>{const r="_onData"+Dp(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function Ab(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(QS.forEach(a=>{delete e[a]}),delete e._chartjs)}function ew(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const tw=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function nw(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,tw.call(window,()=>{r=!1,e.apply(t,n)}))}}function iL(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Ap=e=>e==="start"?"left":e==="end"?"right":"center",un=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,aL=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function oL(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=o.axis,{min:p,max:h,minDefined:d,maxDefined:v}=o.getUserBounds();if(d){if(i=Math.min(ba(l,c,p).lo,n?r:ba(t,c,o.getPixelForValue(p)).lo),u){const m=l.slice(0,i+1).reverse().findIndex(b=>!Qe(b[s.axis]));i-=Math.max(0,m)}i=dn(i,0,r-1)}if(v){let m=Math.max(ba(l,o.axis,h,!0).hi+1,n?0:ba(t,c,o.getPixelForValue(h),!0).hi+1);if(u){const b=l.slice(m-1).findIndex(f=>!Qe(f[s.axis]));m+=Math.max(0,b)}a=dn(m,i,r)-i}else a=r-i}return{start:i,count:a}}function sL(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const ru=e=>e===0||e===1,Rb=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*yt/n)),Bb=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*yt/n)+1,xs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Nt)+1,easeOutSine:e=>Math.sin(e*Nt),easeInOutSine:e=>-.5*(Math.cos(it*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ru(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ru(e)?e:Rb(e,.075,.3),easeOutElastic:e=>ru(e)?e:Bb(e,.075,.3),easeInOutElastic(e){return ru(e)?e:e<.5?.5*Rb(e*2,.1125,.45):.5+.5*Bb(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?xs.easeInBounce(e*2)*.5:xs.easeOutBounce(e*2-1)*.5+.5};function Rp(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function kb(e){return Rp(e)?e:new Ys(e)}function eh(e){return Rp(e)?e:new Ys(e).saturate(.5).darken(.1).hexString()}const lL=["x","y","borderWidth","radius","tension"],uL=["color","borderColor","backgroundColor"];function cL(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:uL},numbers:{type:"number",properties:lL}}),e.describe("animations",{_fallback:"animation"}),e.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=>t|0}}}})}function dL(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Pb=new Map;function fL(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Pb.get(n);return r||(r=new Intl.NumberFormat(e,t),Pb.set(n,r)),r}function Bp(e,t,n){return fL(t,n).format(e)}const hL={values(e){return At(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=gL(e,n)}const o=qS(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Bp(e,r,l)}};function gL(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var rw={formatters:hL};function pL(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:rw.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Fa=Object.create(null),D0=Object.create(null);function Cs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function th(e,t,n){return typeof t=="string"?Ks(Cs(e,t),n):Ks(Cs(e,""),t)}class mL{constructor(t,n){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=r=>r.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=(r,i)=>eh(i.backgroundColor),this.hoverBorderColor=(r,i)=>eh(i.borderColor),this.hoverColor=(r,i)=>eh(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return th(this,t,n)}get(t){return Cs(this,t)}describe(t,n){return th(D0,t,n)}override(t,n){return th(Fa,t,n)}route(t,n,r,i){const a=Cs(this,t),o=Cs(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],u=o[i];return je(l)?Object.assign({},u,l):Me(l,u)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var _t=new mL({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[cL,dL,pL]);function vL(e){return!e||Qe(e.size)||Qe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function $b(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function sa(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function Fb(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function T0(e,t,n,r){iw(e,t,n,r,null)}function iw(e,t,n,r,i){let a,o,s,l,u,c,p,h;const d=t.pointStyle,v=t.rotation,m=t.radius;let b=(v||0)*XO;if(d&&typeof d=="object"&&(a=d.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),d){default:i?e.ellipse(n,r,i/2,m,0,0,yt):e.arc(n,r,m,0,yt),e.closePath();break;case"triangle":c=i?i/2:m,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=_b,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),b+=_b,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*m),e.closePath();break;case"rectRounded":u=m*.516,l=m-u,o=Math.cos(b+oa)*l,p=Math.cos(b+oa)*(i?i/2-u:l),s=Math.sin(b+oa)*l,h=Math.sin(b+oa)*(i?i/2-u:l),e.arc(n-p,r-s,u,b-it,b-Nt),e.arc(n+h,r-o,u,b-Nt,b),e.arc(n+p,r+s,u,b,b+Nt),e.arc(n-h,r+o,u,b+Nt,b+it),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*m,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=oa;case"rectRot":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+h,r-o),e.lineTo(n+p,r+s),e.lineTo(n-h,r+o),e.closePath();break;case"crossRot":b+=oa;case"cross":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"star":p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o),b+=oa,p=Math.cos(b)*(i?i/2:m),o=Math.cos(b)*m,s=Math.sin(b)*m,h=Math.sin(b)*(i?i/2:m),e.moveTo(n-p,r-s),e.lineTo(n+p,r+s),e.moveTo(n+h,r-o),e.lineTo(n-h,r+o);break;case"line":o=i?i/2:Math.cos(b)*m,s=Math.sin(b)*m,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:m),r+Math.sin(b)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Qs(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function cd(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dd(e){e.restore()}function bL(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function yL(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function xL(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Qe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function CL(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function EL(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function el(e,t,n,r,i,a={}){const o=At(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,xL(e,a),l=0;l<o.length;++l)u=o[l],a.backdrop&&EL(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Qe(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),CL(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function Cc(e,t){const{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*it,it,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,it,Nt,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,Nt,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Nt,!0),e.lineTo(n+o.topLeft,r)}const SL=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wL=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function IL(e,t){const n=(""+e).match(SL);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const _L=e=>+e||0;function kp(e,t){const n={},r=je(t),i=r?Object.keys(t):t,a=je(e)?r?o=>Me(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=_L(a(o));return n}function aw(e){return kp(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(e){return kp(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ir(e){const t=aw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function fn(e,t){e=e||{},t=t||_t.font;let n=Me(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Me(e.style,t.style);r&&!(""+r).match(wL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Me(e.family,t.family),lineHeight:IL(Me(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Me(e.weight,t.weight),string:""};return i.string=vL(i),i}function iu(e,t,n,r){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function DL(e,t,n){const{min:r,max:i}=e,a=KS(t,(i-r)/2),o=(s,l)=>n&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Ha(e,t){return Object.assign(Object.create(e),t)}function Pp(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=uw("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Pp([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return sw(s,l,()=>FL(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Mb(s).includes(l)},ownKeys(s){return Mb(s)},set(s,l,u){const c=s._storage||(s._storage=i());return s[l]=c[l]=u,delete s._keys,!0}})}function ko(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ow(e,r),setContext:a=>ko(e,a,n,r),override:a=>ko(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return sw(a,o,()=>AL(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function ow(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ki(n)?n:()=>n,isIndexable:Ki(r)?r:()=>r}}const TL=(e,t)=>e?e+Dp(t):t,$p=(e,t)=>je(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sw(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function AL(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Ki(s)&&o.isScriptable(t)&&(s=RL(t,s,e,n)),At(s)&&s.length&&(s=BL(t,s,e,o.isIndexable)),$p(t,s)&&(s=ko(s,i,a&&a[t],o)),s}function RL(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),$p(e,l)&&(l=Fp(i._scopes,i,e,l)),l}function BL(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(je(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const p=Fp(u,i,e,c);t.push(ko(p,a,o&&o[e],s))}}return t}function lw(e,t,n){return Ki(e)?e(t,n):e}const kL=(e,t)=>e===!0?t:typeof e=="string"?$a(t,e):void 0;function PL(e,t,n,r,i){for(const a of t){const o=kL(n,a);if(o){e.add(o);const s=lw(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Fp(e,t,n,r){const i=t._rootScopes,a=lw(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=Nb(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Nb(s,o,a,l,r),l===null)?!1:Pp(Array.from(s),[""],i,a,()=>$L(t,n,r))}function Nb(e,t,n,r,i){for(;n;)n=PL(e,t,n,r,i);return n}function $L(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return At(i)&&je(n)?n:i||{}}function FL(e,t,n,r){let i;for(const a of t)if(i=uw(TL(a,e),n),typeof i<"u")return $p(e,i)?Fp(n,r,e,i):i}function uw(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Mb(e){let t=e._keys;return t||(t=e._keys=NL(e._scopes)),t}function NL(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const ML=Number.EPSILON||1e-14,Po=(e,t)=>t<e.length&&!e[t].skip&&e[t],cw=e=>e==="x"?"y":"x";function OL(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=_0(a,i),l=_0(o,a);let u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const p=r*u,h=r*c;return{previous:{x:a.x-p*(o.x-i.x),y:a.y-p*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function LL(e,t,n){const r=e.length;let i,a,o,s,l,u=Po(e,0);for(let c=0;c<r-1;++c)if(l=u,u=Po(e,c+1),!(!l||!u)){if(ys(t[c],0,ML)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),n[c]=i*o*t[c],n[c+1]=a*o*t[c])}}function VL(e,t,n="x"){const r=cw(n),i=e.length;let a,o,s,l=Po(e,0);for(let u=0;u<i;++u){if(o=s,s=l,l=Po(e,u+1),!s)continue;const c=s[n],p=s[r];o&&(a=(c-o[n])/3,s[`cp1${n}`]=c-a,s[`cp1${r}`]=p-a*t[u]),l&&(a=(l[n]-c)/3,s[`cp2${n}`]=c+a,s[`cp2${r}`]=p+a*t[u])}}function HL(e,t="x"){const n=cw(t),r=e.length,i=Array(r).fill(0),a=Array(r);let o,s,l,u=Po(e,0);for(o=0;o<r;++o)if(s=l,l=u,u=Po(e,o+1),!!l){if(u){const c=u[t]-l[t];i[o]=c!==0?(u[n]-l[n])/c:0}a[o]=s?u?Vr(i[o-1])!==Vr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}LL(e,i,a),VL(e,a,t)}function au(e,t,n){return Math.max(Math.min(e,n),t)}function jL(e,t){let n,r,i,a,o,s=Qs(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&Qs(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=au(i.cp1x,t.left,t.right),i.cp1y=au(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=au(i.cp2x,t.left,t.right),i.cp2y=au(i.cp2y,t.top,t.bottom)))}function zL(e,t,n,r,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")HL(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=OL(u,s,e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&jL(e,n)}function Np(){return typeof window<"u"&&typeof document<"u"}function Mp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ec(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const fd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function GL(e,t){return fd(e).getPropertyValue(t)}const WL=["top","right","bottom","left"];function Ca(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=WL[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const UL=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function XL(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(UL(i,a,e.target))s=i,l=a;else{const u=t.getBoundingClientRect();s=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:s,y:l,box:o}}function ca(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=fd(n),a=i.boxSizing==="border-box",o=Ca(i,"padding"),s=Ca(i,"border","width"),{x:l,y:u,box:c}=XL(e,n),p=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:d,height:v}=t;return a&&(d-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-p)/d*n.width/r),y:Math.round((u-h)/v*n.height/r)}}function YL(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&Mp(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=fd(a),l=Ca(s,"border","width"),u=Ca(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Ec(s.maxWidth,a,"clientWidth"),i=Ec(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||xc,maxHeight:i||xc}}const ou=e=>Math.round(e*10)/10;function KL(e,t,n,r){const i=fd(e),a=Ca(i,"margin"),o=Ec(i.maxWidth,e,"clientWidth")||xc,s=Ec(i.maxHeight,e,"clientHeight")||xc,l=YL(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const h=Ca(i,"border","width"),d=Ca(i,"padding");u-=d.width+h.width,c-=d.height+h.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=ou(Math.min(u,o,l.maxWidth)),c=ou(Math.min(c,s,l.maxHeight)),u&&!c&&(c=ou(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=ou(Math.floor(c*r))),{width:u,height:c}}function Ob(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const ZL=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Np()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Lb(e,t){const n=GL(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function da(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function qL(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function JL(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=da(e,i,n),s=da(i,a,n),l=da(a,t,n),u=da(o,s,n),c=da(s,l,n);return da(u,c,n)}const QL=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},eV=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Eo(e,t,n){return e?QL(t,n):eV()}function dw(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function fw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function hw(e){return e==="angle"?{between:Js,compare:QO,normalize:Nn}:{between:ui,compare:(t,n)=>t-n,normalize:t=>t}}function Vb({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function tV(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=hw(r),l=t.length;let{start:u,end:c,loop:p}=e,h,d;if(p){for(u+=l,c+=l,h=0,d=l;h<d&&o(s(t[u%l][r]),i,a);++h)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:p,style:e.style}}function gw(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,o=t.length,{compare:s,between:l,normalize:u}=hw(r),{start:c,end:p,loop:h,style:d}=tV(e,t,n),v=[];let m=!1,b=null,f,y,C;const S=()=>l(i,C,f)&&s(i,C)!==0,w=()=>s(a,f)===0||l(a,C,f),E=()=>m||S(),x=()=>!m||w();for(let g=c,I=c;g<=p;++g)y=t[g%o],!y.skip&&(f=u(y[r]),f!==C&&(m=l(f,i,a),b===null&&E()&&(b=s(f,i)===0?g:I),b!==null&&x()&&(v.push(Vb({start:b,end:g,loop:h,count:o,style:d})),b=null),I=g,C=f));return b!==null&&v.push(Vb({start:b,end:p,loop:h,count:o,style:d})),v}function pw(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=gw(r[i],e.points,t);a.length&&n.push(...a)}return n}function nV(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function rV(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=u.stop?l:null):(o=l,s.skip&&(t=l)),s=u}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function iV(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=nV(n,i,a,r);if(r===!0)return Hb(e,[{start:o,end:s,loop:a}],n,t);const l=s<o?s+i:s,u=!!e._fullLoop&&o===0&&s===i-1;return Hb(e,rV(n,o,l,u),n,t)}function Hb(e,t,n,r){return!r||!r.setContext||!n?t:aV(e,t,n,r)}function aV(e,t,n,r){const i=e._chart.getContext(),a=jb(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,u=[];let c=a,p=t[0].start,h=p;function d(v,m,b,f){const y=s?-1:1;if(v!==m){for(v+=l;n[v%l].skip;)v-=y;for(;n[m%l].skip;)m+=y;v%l!==m%l&&(u.push({start:v%l,end:m%l,loop:b,style:f}),c=f,p=m%l)}}for(const v of t){p=s?p:v.start;let m=n[p%l],b;for(h=p+1;h<=v.end;h++){const f=n[h%l];b=jb(r.setContext(Ha(i,{type:"segment",p0:m,p1:f,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),oV(b,c)&&d(p,h-1,v.loop,c),m=f,c=b}p<h-1&&d(p,h-1,v.loop,c)}return u}function jb(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function oV(e,t){if(!t)return!1;const n=[],r=function(i,a){return Rp(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function su(e,t,n){return e.options.clip?e[n]:t[n]}function sV(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:su(n,t,"left"),right:su(n,t,"right"),top:su(r,t,"top"),bottom:su(r,t,"bottom")}:t}function mw(e,t){const n=t._clip;if(n.disabled)return!1;const r=sV(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
175
175
|
* Chart.js v4.5.0
|
|
176
176
|
* https://www.chartjs.org
|
|
177
177
|
* (c) 2025 Chart.js Contributors
|
|
178
178
|
* Released under the MIT License
|
|
179
|
-
*/class sV{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=tw.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ei=new sV;const zb="transparent",lV={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=kb(e||zb),i=r.valid&&kb(t||zb);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class uV{constructor(t,n,r,i){const a=n[r];i=iu([t.to,i,a,t.from]);const o=iu([t.from,a,i]);this._active=!0,this._fn=t.fn||lV[t.type||typeof o],this._easing=xs[t.easing]||xs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=iu([t.to,n,i,t.from]),this._from=iu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class vw{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!je(t))return;const n=Object.keys(_t.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!je(a))return;const o={};for(const s of n)o[s]=a[s];(At(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=dV(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&cV(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let p=a[u];const h=r.get(u);if(p)if(h&&p.active()){p.update(h,c,s);continue}else p.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=p=new uV(h,t,u,c),i.push(p)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ei.add(this._chart,r),!0}}function cV(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function dV(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Gb(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function fV(e,t,n){if(n===!1)return!1;const r=Gb(e,n),i=Gb(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function hV(e){let t,n,r,i;return je(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function bw(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function Wb(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t===null)return;let c=!1;for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(c=!0,r.all)continue;break}u=e.values[l],hn(u)&&(a||t===0||Vr(t)===Vr(u))&&(t+=u)}return!c&&!r.all?0:t}function gV(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function nh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function pV(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function mV(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function vV(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ub(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function Xb(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=pV(a,o,r),p=t.length;let h;for(let d=0;d<p;++d){const v=t[d],{[l]:m,[u]:b}=v,f=v._stacks||(v._stacks={});h=f[u]=vV(i,c,m),h[s]=b,h._top=Ub(h,o,!0,r.type),h._bottom=Ub(h,o,!1,r.type);const y=h._visualValues||(h._visualValues={});y[s]=b}}function rh(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function bV(e,t){return Ha(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function yV(e,t,n){return Ha(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Zo(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const ih=e=>e==="reset"||e==="none",Yb=(e,t)=>t?e:Object.assign({},e),xV=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:bw(n,!0),values:null};class Ea{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=nh(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Zo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,h,d,v)=>p==="x"?h:p==="r"?v:d,a=n.xAxisID=Me(r.xAxisID,rh(t,"x")),o=n.yAxisID=Me(r.yAxisID,rh(t,"y")),s=n.rAxisID=Me(r.rAxisID,rh(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.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 n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ab(this._data,this),t._stacked&&Zo(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(je(n)){const i=this._cachedMeta;this._data=gV(n,i)}else if(r!==n){if(r){Ab(r,this);const i=this._cachedMeta;Zo(i),i._parsed=[]}n&&Object.isExtensible(n)&&nL(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=nh(n.vScale,n),n.stack!==r.stack&&(i=!0,Zo(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&(Xb(this,n._parsed),n._stacked=nh(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,p,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{At(i[t])?h=this.parseArrayData(r,i,t,n):je(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const d=()=>p[s]===null||u&&p[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=p=h[c],l&&(d()&&(l=!1),u=p);r._sorted=l}o&&Xb(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,p=new Array(i);let h,d,v;for(h=0,d=i;h<d;++h)v=h+r,p[h]={[s]:c||a.parse(u[v],v),[l]:o.parse(n[v],v)};return p}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,p;for(l=0,u=i;l<u;++l)c=l+r,p=n[c],s[l]={x:a.parse(p[0],c),y:o.parse(p[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,p,h,d;for(c=0,p=i;c<p;++c)h=c+r,d=n[h],u[c]={x:a.parse($a(d,s),h),y:o.parse($a(d,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:bw(i,!0),values:n._stacks[t.axis]._visualValues};return Wb(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=Wb(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=xV(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:p}=mV(s);let h,d;function v(){d=i[h];const m=d[s.axis];return!hn(d[t.axis])||c>m||p<m}for(h=0;h<o&&!(!v()&&(this.updateRangeFromParsed(u,t,d,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!v()){this.updateRangeFromParsed(u,t,d,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=hV(Me(this.options.clip,fV(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const p=i[c];p.hidden||(p.active&&u?o.push(p):p.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=yV(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=bV(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&Zs(r);if(s)return Yb(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),p=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),d=Object.keys(_t.elements[t]),v=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,d,v,p);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Yb(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,p=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),p);l=c.createResolver(h,this.getContext(t,r,n))}const u=new vw(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ih(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){ih(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ih(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"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 n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Zo(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,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,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Ce(Ea,"defaults",{}),Ce(Ea,"datasetElementType",null),Ce(Ea,"dataElementType",null);function CV(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=ew(r.sort((i,a)=>i-a))}return e._cache.$bar}function EV(e){const t=e.iScale,n=CV(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(Zs(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return r}function SV(e,t,n,r){const i=n.barThickness;let a,o;return Qe(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function wV(e,t,n,r){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}function IV(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a);let l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}function yw(e,t,n,r){return At(e)?IV(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Kb(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let u,c,p,h;for(u=n,c=n+r;u<c;++u)h=t[u],p={},p[i.axis]=s||i.parse(o[u],u),l.push(yw(h,p,a,u));return l}function ah(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function _V(e,t,n){return e!==0?Vr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function DV(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function TV(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:u,bottom:c}=DV(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[Zb(c,o,s,l)]=!0,i=u)),a[Zb(i,o,s,l)]=!0,e.borderSkipped=a}function Zb(e,t,n,r){return r?(e=AV(e,t,n),e=qb(e,n,t)):e=qb(e,t,n),e}function AV(e,t,n){return e===t?n:e===n?t:e}function qb(e,t,n){return e==="start"?t:e==="end"?n:e}function RV(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Bu extends Ea{parsePrimitiveData(t,n,r,i){return Kb(t,n,r,i)}parseArrayData(t,n,r,i){return Kb(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?s:l,c=o.axis==="x"?s:l,p=[];let h,d,v,m;for(h=r,d=r+i;h<d;++h)m=n[h],v={},v[a.axis]=a.parse($a(m,u),h),p.push(yw($a(m,c),v,o,h));return p}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=ah(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:p,includeOptions:h}=this._getSharedOptions(n,i);for(let d=n;d<n+r;d++){const v=this.getParsed(d),m=a||Qe(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),b=this._calculateBarIndexPixels(d,c),f=(v._stacks||{})[s.axis],y={horizontal:u,base:m.base,enableBorderRadius:!f||ah(v._custom)||o===f._top||o===f._bottom,x:u?m.head:b.center,y:u?b.center:m.head,height:u?b.size:Math.abs(m.size),width:u?Math.abs(m.size):b.size};h&&(y.options=p||this.resolveDataElementOptions(d,t[d].active?"active":i));const C=y.options||t[d].options;TV(y,C,f,o),RV(y,C,c.ratio),this.updateElement(t[d],d,y,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),a=r.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(n),l=s&&s[r.axis],u=c=>{const p=c._parsed.find(d=>d[r.axis]===l),h=p&&p[c.vScale.axis];if(Qe(h)||isNaN(h))return!0};for(const c of i)if(!(n!==void 0&&u(c))&&((a===!1||o.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[Me(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const s=t.barThickness;return{min:s||EV(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),u=l._custom,c=ah(u);let p=l[n.axis],h=0,d=r?this.applyStack(n,l,r):p,v,m;d!==p&&(h=d-p,d=p),c&&(p=u.barStart,d=u.barEnd-u.barStart,p!==0&&Vr(p)!==Vr(u.barEnd)&&(h=0),h+=p);const b=!Qe(a)&&!c?a:h;let f=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(h+d):v=f,m=v-f,Math.abs(m)<o){m=_V(m,n,s)*o,p===s&&(f-=m/2);const y=n.getPixelForDecimal(0),C=n.getPixelForDecimal(1),S=Math.min(y,C),w=Math.max(y,C);f=Math.max(Math.min(f,w),S),v=f+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(f))}if(f===n.getPixelForValue(s)){const y=Vr(m)*n.getLineWidthForValue(s)/2;f+=y,m-=y}return{size:m,base:f,head:v,center:v+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,o=Me(i.maxBarThickness,1/0);let s,l;const u=this._getAxisCount();if(n.grouped){const c=a?this._getStackCount(t):n.stackCount,p=i.barThickness==="flex"?wV(t,n,i,c*u):SV(t,n,i,c*u),h=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Me(h,this.getFirstScaleIdForIndexAxis())),v=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+d;s=p.start+p.chunk*v+p.chunk/2,l=Math.min(o,p.chunk*p.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}Ce(Bu,"id","bar"),Ce(Bu,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Ce(Bu,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function BV(e,t,n){let r=1,i=1,a=0,o=0;if(t<yt){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),p=Math.cos(l),h=Math.sin(l),d=(C,S,w)=>Js(C,s,l,!0)?1:Math.max(S,S*n,w,w*n),v=(C,S,w)=>Js(C,s,l,!0)?-1:Math.min(S,S*n,w,w*n),m=d(0,u,p),b=d(Nt,c,h),f=v(it,u,p),y=v(it+Nt,c,h);r=(m-f)/2,i=(b-y)/2,a=-(m+f)/2,o=-(b+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class us extends Ea{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(je(r[t])){const{key:l="value"}=this._parsing;a=u=>+$a(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return li(this.options.rotation-90)}_getCircumference(){return li(this.options.circumference)}_getRotationExtents(){let t=yt,n=-yt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(LO(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:d,offsetX:v,offsetY:m}=BV(p,c,l),b=(r.width-o)/h,f=(r.height-o)/d,y=Math.max(Math.min(b,f)/2,0),C=KS(this.options.radius,y),S=Math.max(C*l,0),w=(C-S)/this._getVisibleDatasetWeightTotal();this.offsetX=v*C,this.offsetY=m*C,i.total=this.calculateTotal(),this.outerRadius=C-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/yt)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,p=(s.top+s.bottom)/2,h=a&&u.animateScale,d=h?0:this.innerRadius,v=h?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,i);let f=this._getRotation(),y;for(y=0;y<n;++y)f+=this._circumference(y,a);for(y=n;y<n+r;++y){const C=this._circumference(y,a),S=t[y],w={x:c+this.offsetX,y:p+this.offsetY,startAngle:f,endAngle:f+C,circumference:C,outerRadius:v,innerRadius:d};b&&(w.options=m||this.resolveDataElementOptions(y,S.active?"active":i)),f+=C,this.updateElement(S,y,w,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?yt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Bp(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Me(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ce(us,"id","doughnut"),Ce(us,"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"}),Ce(us,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Ce(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class ku extends Ea{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=aL(n,i,o);this._drawStart=s,this._drawCount=l,oL(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:p}=this._getSharedOptions(n,i),h=o.axis,d=s.axis,{spanGaps:v,segment:m}=this.options,b=qs(v)?v:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||a||i==="none",y=n+r,C=t.length;let S=n>0&&this.getParsed(n-1);for(let w=0;w<C;++w){const E=t[w],x=f?E:{};if(w<n||w>=y){x.skip=!0;continue}const g=this.getParsed(w),I=Qe(g[d]),T=x[h]=o.getPixelForValue(g[h],w),_=x[d]=a||I?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,g,l):g[d],w);x.skip=isNaN(T)||isNaN(_)||I,x.stop=w>0&&Math.abs(g[h]-S[h])>b,m&&(x.parsed=g,x.raw=u.data[w]),p&&(x.options=c||this.resolveDataElementOptions(w,E.active?"active":i)),f||this.updateElement(E,w,x,i),S=g}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ce(ku,"id","line"),Ce(ku,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Ce(ku,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function la(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Op{constructor(t){Ce(this,"options");this.options=t||{}}static override(t){Object.assign(Op.prototype,t)}init(){}formats(){return la()}parse(){return la()}format(){return la()}add(){return la()}diff(){return la()}startOf(){return la()}endOf(){return la()}}var kV={_date:Op};function PV(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const u=s._reversePixels?eL:ba;if(r){if(i._sharedOptions){const c=a[0],p=typeof c.getRange=="function"&&c.getRange(t);if(p){const h=u(a,t,n-p),d=u(a,t,n+p);return{lo:h.lo,hi:d.hi}}}}else{const c=u(a,t,n);if(l){const{vScale:p}=i._cachedMeta,{_parsed:h}=e,d=h.slice(0,c.lo+1).reverse().findIndex(m=>!Qe(m[p.axis]));c.lo-=Math.max(0,d);const v=h.slice(c.hi).findIndex(m=>!Qe(m[p.axis]));c.hi+=Math.max(0,v)}return c}}return{lo:0,hi:a.length-1}}function hd(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:p,hi:h}=PV(a[s],t,o,i);for(let d=p;d<=h;++d){const v=c[d];v.skip||r(v,u,d)}}}function $V(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function oh(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||hd(e,n,t,function(s,l,u){!i&&!Qs(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function FV(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:p}=JS(o,{x:t.x,y:t.y});Js(p,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return hd(e,n,t,a),i}function NV(e,t,n,r,i,a){let o=[];const s=$V(n);let l=Number.POSITIVE_INFINITY;function u(c,p,h){const d=c.inRange(t.x,t.y,i);if(r&&!d)return;const v=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(v))&&!d)return;const b=s(t,v);b<l?(o=[{element:c,datasetIndex:p,index:h}],l=b):b===l&&o.push({element:c,datasetIndex:p,index:h})}return hd(e,n,t,u),o}function sh(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?FV(e,t,n,i):NV(e,t,n,r,i,a)}function Jb(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return hd(e,n,t,(l,u,c)=>{l[o]&&l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var MV={modes:{index(e,t,n,r){const i=ca(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?oh(e,i,a,r,o):sh(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,p=u.data[c];p&&!p.skip&&l.push({element:p,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?oh(e,i,a,r,o):sh(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return oh(e,i,a,r,o)},nearest(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return sh(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=ca(t,e);return Jb(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ca(t,e);return Jb(e,i,"y",n.intersect,r)}}};const xw=["left","top","right","bottom"];function qo(e,t){return e.filter(n=>n.pos===t)}function Qb(e,t){return e.filter(n=>xw.indexOf(n.pos)===-1&&n.box.axis===t)}function Jo(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function OV(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function LV(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!xw.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function VV(e,t){const n=LV(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function HV(e){const t=OV(e),n=Jo(t.filter(u=>u.box.fullSize),!0),r=Jo(qo(t,"left"),!0),i=Jo(qo(t,"right")),a=Jo(qo(t,"top"),!0),o=Jo(qo(t,"bottom")),s=Qb(t,"x"),l=Qb(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:qo(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function ey(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Cw(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function jV(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!je(i)){n.size&&(e[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?a.height:a.width),n.size=p.size/p.count,e[i]+=n.size}a.getPadding&&Cw(o,a.getPadding());const s=Math.max(0,t.outerWidth-ey(o,e,"left","right")),l=Math.max(0,t.outerHeight-ey(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function zV(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function GV(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function cs(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,GV(s.horizontal,t));const{same:p,other:h}=jV(t,n,s,r);u|=p&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&cs(i,t,n,r)||c}function lu(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function ty(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const p=t.w*c,h=u.size||l.height;Zs(u.start)&&(o=u.start),l.fullSize?lu(l,i.left,o,n.outerWidth-i.right-i.left,h):lu(l,t.left+u.placed,o,p,h),u.start=o,u.placed+=p,o=l.bottom}else{const p=t.h*c,h=u.size||l.width;Zs(u.start)&&(a=u.start),l.fullSize?lu(l,a,i.top,h,n.outerHeight-i.bottom-i.top):lu(l,a,t.top+u.placed,h,p),u.start=a,u.placed+=p,a=l.right}}t.x=a,t.y=o}var rr={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=ir(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=HV(e.boxes),l=s.vertical,u=s.horizontal;rt(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);Cw(h,ir(r));const d=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),v=VV(l.concat(u),p);cs(s.fullSize,d,p,v),cs(l,d,p,v),cs(u,d,p,v)&&cs(l,d,p,v),zV(d),ty(s.leftAndTop,d,p,v),d.x+=d.w,d.y+=d.h,ty(s.rightAndBottom,d,p,v),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},rt(s.chartArea,m=>{const b=m.box;Object.assign(b,e.chartArea),b.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class Ew{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class WV extends Ew{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Pu="$chartjs",UV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ny=e=>e===null||e==="";function XV(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Pu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ny(i)){const a=Lb(e,"width");a!==void 0&&(e.width=a)}if(ny(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=Lb(e,"height");a!==void 0&&(e.height=a)}return e}const Sw=KL?{passive:!0}:!1;function YV(e,t,n){e&&e.addEventListener(t,n,Sw)}function KV(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Sw)}function ZV(e,t){const n=UV[e.type]||e.type,{x:r,y:i}=ca(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Sc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function qV(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Sc(s.addedNodes,r),o=o&&!Sc(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function JV(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Sc(s.removedNodes,r),o=o&&!Sc(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const tl=new Map;let ry=0;function ww(){const e=window.devicePixelRatio;e!==ry&&(ry=e,tl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function QV(e,t){tl.size||window.addEventListener("resize",ww),tl.set(e,t)}function eH(e){tl.delete(e),tl.size||window.removeEventListener("resize",ww)}function tH(e,t,n){const r=e.canvas,i=r&&Mp(r);if(!i)return;const a=nw((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),QV(e,a),o}function lh(e,t,n){n&&n.disconnect(),t==="resize"&&eH(e)}function nH(e,t,n){const r=e.canvas,i=nw(a=>{e.ctx!==null&&n(ZV(a,e))},e);return YV(r,t,i),i}class rH extends Ew{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(XV(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Pu])return!1;const r=n[Pu].initial;["height","width"].forEach(a=>{const o=r[a];Qe(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Pu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:qV,detach:JV,resize:tH}[n]||nH;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:lh,detach:lh,resize:lh}[n]||KV)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return YL(t,n,r,i)}isAttached(t){const n=t&&Mp(t);return!!(n&&n.isConnected)}}function iH(e){return!Np()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?WV:rH}var mu;let Ci=(mu=class{constructor(){Ce(this,"x");Ce(this,"y");Ce(this,"active",!1);Ce(this,"options");Ce(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return qs(this.x)&&qs(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},Ce(mu,"defaults",{}),Ce(mu,"defaultRoutes"),mu);function aH(e,t){const n=e.options.ticks,r=oH(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?lH(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return uH(t,u,a,o/i),u;const c=sH(a,t,i);if(o>0){let p,h;const d=o>1?Math.round((l-s)/(o-1)):null;for(uu(t,u,c,Qe(d)?0:s-d,s),p=0,h=o-1;p<h;p++)uu(t,u,c,a[p],a[p+1]);return uu(t,u,c,l,Qe(d)?t.length:l+d),u}return uu(t,u,c),u}function oH(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function sH(e,t,n){const r=cH(e),i=t.length/n;if(!r)return Math.max(i,1);const a=XO(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function lH(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function uH(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function uu(e,t,n,r,i){const a=Me(r,0),o=Math.min(Me(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function cH(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const dH=e=>e==="left"?"right":e==="right"?"left":e,iy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ay=(e,t)=>Math.min(t||e,e);function oy(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function fH(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function hH(e,t){rt(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Qo(e){return e.drawTicks?e.tickLength:0}function sy(e,t){if(!e.display)return 0;const n=fn(e.font,t),r=ir(e.padding);return(At(e.text)?e.text.length:1)*n.lineHeight+r.height}function gH(e,t){return Ha(e,{scale:t,type:"scale"})}function pH(e,t,n){return Ha(e,{tick:n,index:t,type:"tick"})}function mH(e,t,n){let r=Ap(e);return(n&&t!=="right"||!n&&t==="right")&&(r=dH(r)),r}function vH(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let p=0,h,d,v;const m=o-i,b=s-a;if(e.isHorizontal()){if(d=un(r,a,s),je(n)){const f=Object.keys(n)[0],y=n[f];v=c[f].getPixelForValue(y)+m-t}else n==="center"?v=(u.bottom+u.top)/2+m-t:v=iy(e,n,t);h=s-a}else{if(je(n)){const f=Object.keys(n)[0],y=n[f];d=c[f].getPixelForValue(y)-b+t}else n==="center"?d=(u.left+u.right)/2-b+t:d=iy(e,n,t);v=un(r,o,i),p=n==="left"?-Nt:Nt}return{titleX:d,titleY:v,maxWidth:h,rotation:p}}class Go extends Ci{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Ir(t,Number.POSITIVE_INFINITY),n=Ir(n,Number.NEGATIVE_INFINITY),r=Ir(r,Number.POSITIVE_INFINITY),i=Ir(i,Number.NEGATIVE_INFINITY),{min:Ir(t,r),max:Ir(n,i),minDefined:hn(t),maxDefined:hn(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Ir(n,Ir(r,n)),max:Ir(r,Ir(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ft(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_L(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?oy(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=aH(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ft(this.options.afterUpdate,[this])}beforeSetDimensions(){ft(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(){ft(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ft(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ft(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=ft(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){ft(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ft(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=ay(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),p=c.widest.width,h=c.highest.height,d=dn(this.chart.width-p,0,this.maxWidth);s=t.offset?this.maxWidth/r:d/(r-1),p+6>s&&(s=d/(r-(t.offset?.5:1)),l=this.maxHeight-Qo(t.grid)-n.padding-sy(t.title,this.chart.options.font),u=Math.sqrt(p*p+h*h),o=qO(Math.min(Math.asin(dn((c.highest.height+6)/s,-1,1)),Math.asin(dn(l/u,-1,1))-Math.asin(dn(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){ft(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ft(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=sy(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Qo(a)+l):(t.height=this.maxHeight,t.width=Qo(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:p,highest:h}=this._getLabelSizes(),d=r.padding*2,v=li(this.labelRotation),m=Math.cos(v),b=Math.sin(v);if(s){const f=r.mirror?0:b*p.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+f+d)}else{const f=r.mirror?0:m*p.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+f+d)}this._calculatePadding(u,c,b,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;l?u?(h=i*t.width,d=r*n.height):(h=r*t.height,d=i*n.width):a==="start"?d=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,d=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((d-p+o)*this.width/(this.width-p),0)}else{let c=n.height/2,p=t.height/2;a==="start"?(c=0,p=t.height):a==="end"&&(c=n.height,p=0),this.paddingTop=c+o,this.paddingBottom=p+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ft(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Qe(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=oy(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/ay(n,r));let u=0,c=0,p,h,d,v,m,b,f,y,C,S,w;for(p=0;p<n;p+=l){if(v=t[p].label,m=this._resolveTickFontOptions(p),i.font=b=m.string,f=a[b]=a[b]||{data:{},gc:[]},y=m.lineHeight,C=S=0,!Qe(v)&&!At(v))C=$b(i,f.data,f.gc,C,v),S=y;else if(At(v))for(h=0,d=v.length;h<d;++h)w=v[h],!Qe(w)&&!At(w)&&(C=$b(i,f.data,f.gc,C,w),S+=y);o.push(C),s.push(S),u=Math.max(C,u),c=Math.max(S,c)}hH(a,n);const E=o.indexOf(u),x=s.indexOf(c),g=I=>({width:o[I]||0,height:s[I]||0});return{first:g(0),last:g(n-1),widest:g(E),highest:g(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return QO(this._alignToPixels?sa(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=pH(this.getContext(),t,r))}return this.$context||(this.$context=gH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=li(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),p=this.ticks.length+(l?1:0),h=Qo(a),d=[],v=s.setContext(this.getContext()),m=v.display?v.width:0,b=m/2,f=function(k){return sa(r,k,m)};let y,C,S,w,E,x,g,I,T,_,A,F;if(o==="top")y=f(this.bottom),x=this.bottom-h,I=y-b,_=f(t.top)+b,F=t.bottom;else if(o==="bottom")y=f(this.top),_=t.top,F=f(t.bottom)-b,x=y+b,I=this.top+h;else if(o==="left")y=f(this.right),E=this.right-h,g=y-b,T=f(t.left)+b,A=t.right;else if(o==="right")y=f(this.left),T=t.left,A=f(t.right)-b,E=y+b,g=this.left+h;else if(n==="x"){if(o==="center")y=f((t.top+t.bottom)/2+.5);else if(je(o)){const k=Object.keys(o)[0],O=o[k];y=f(this.chart.scales[k].getPixelForValue(O))}_=t.top,F=t.bottom,x=y+b,I=x+h}else if(n==="y"){if(o==="center")y=f((t.left+t.right)/2);else if(je(o)){const k=Object.keys(o)[0],O=o[k];y=f(this.chart.scales[k].getPixelForValue(O))}E=y-b,g=E-h,T=t.left,A=t.right}const B=Me(i.ticks.maxTicksLimit,p),$=Math.max(1,Math.ceil(p/B));for(C=0;C<p;C+=$){const k=this.getContext(C),O=a.setContext(k),M=s.setContext(k),G=O.lineWidth,W=O.color,U=M.dash||[],J=M.dashOffset,Q=O.tickWidth,Z=O.tickColor,ee=O.tickBorderDash||[],q=O.tickBorderDashOffset;S=fH(this,C,l),S!==void 0&&(w=sa(r,S,G),u?E=g=T=A=w:x=I=_=F=w,d.push({tx1:E,ty1:x,tx2:g,ty2:I,x1:T,y1:_,x2:A,y2:F,width:G,color:W,borderDash:U,borderDashOffset:J,tickWidth:Q,tickColor:Z,tickBorderDash:ee,tickBorderDashOffset:q}))}return this._ticksLength=p,this._borderValue=y,d}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:p}=a,h=Qo(r.grid),d=h+c,v=p?-c:d,m=-li(this.labelRotation),b=[];let f,y,C,S,w,E,x,g,I,T,_,A,F="middle";if(i==="top")E=this.bottom-v,x=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+v,x=this._getXAxisLabelAlignment();else if(i==="left"){const $=this._getYAxisLabelAlignment(h);x=$.textAlign,w=$.x}else if(i==="right"){const $=this._getYAxisLabelAlignment(h);x=$.textAlign,w=$.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+d;else if(je(i)){const $=Object.keys(i)[0],k=i[$];E=this.chart.scales[$].getPixelForValue(k)+d}x=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-d;else if(je(i)){const $=Object.keys(i)[0],k=i[$];w=this.chart.scales[$].getPixelForValue(k)}x=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?F="top":l==="end"&&(F="bottom"));const B=this._getLabelSizes();for(f=0,y=s.length;f<y;++f){C=s[f],S=C.label;const $=a.setContext(this.getContext(f));g=this.getPixelForTick(f)+a.labelOffset,I=this._resolveTickFontOptions(f),T=I.lineHeight,_=At(S)?S.length:1;const k=_/2,O=$.color,M=$.textStrokeColor,G=$.textStrokeWidth;let W=x;o?(w=g,x==="inner"&&(f===y-1?W=this.options.reverse?"left":"right":f===0?W=this.options.reverse?"right":"left":W="center"),i==="top"?u==="near"||m!==0?A=-_*T+T/2:u==="center"?A=-B.highest.height/2-k*T+T:A=-B.highest.height+T/2:u==="near"||m!==0?A=T/2:u==="center"?A=B.highest.height/2-k*T:A=B.highest.height-_*T,p&&(A*=-1),m!==0&&!$.showLabelBackdrop&&(w+=T/2*Math.sin(m))):(E=g,A=(1-_)*T/2);let U;if($.showLabelBackdrop){const J=ir($.backdropPadding),Q=B.heights[f],Z=B.widths[f];let ee=A-J.top,q=0-J.left;switch(F){case"middle":ee-=Q/2;break;case"bottom":ee-=Q;break}switch(x){case"center":q-=Z/2;break;case"right":q-=Z;break;case"inner":f===y-1?q-=Z:f>0&&(q-=Z/2);break}U={left:q,top:ee,width:Z+J.width,height:Q+J.height,color:$.backdropColor}}b.push({label:S,font:I,textOffset:A,options:{rotation:m,color:O,strokeColor:M,strokeWidth:G,textAlign:W,textBaseline:F,translation:[w,E],backdrop:U}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-li(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,p,h;this.isHorizontal()?(u=sa(t,this.left,o)-o/2,c=sa(t,this.right,s)+s/2,p=h=l):(p=sa(t,this.top,o)-o/2,h=sa(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,p),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&cd(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;el(r,u,0,c,l,s)}i&&dd(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=fn(r.font),o=ir(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||je(n)?(l+=o.bottom,At(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:p,rotation:h}=vH(this,l,n,s);el(t,r.text,0,0,a,{color:r.color,maxWidth:p,rotation:h,textAlign:mH(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Me(t.grid&&t.grid.z,-1),i=Me(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Go.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return fn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cu{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;xH(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,bH(t,o,r),this.override&&_t.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in _t[i]&&(delete _t[i][r],this.override&&delete Fa[r])}}function bH(e,t,n){const r=Ks(Object.create(null),[n?_t.get(n):{},_t.get(t),e.defaults]);_t.set(t,r),e.defaultRoutes&&yH(t,e.defaultRoutes),e.descriptors&&_t.describe(t,e.descriptors)}function yH(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");_t.route(a,i,l,s)})}function xH(e){return"id"in e&&"defaults"in e}class CH{constructor(){this.controllers=new cu(Ea,"datasets",!0),this.elements=new cu(Ci,"elements"),this.plugins=new cu(Object,"plugins"),this.scales=new cu(Go,"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,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):rt(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=Dp(t);ft(r["before"+i],[],r),n[t](r),ft(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Tr=new CH;class EH{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(ft(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Qe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Me(r.options&&r.options.plugins,{}),a=SH(r);return i===!1&&!n?[]:IH(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function SH(e){const t={},n=[],r=Object.keys(Tr.plugins.items);for(let a=0;a<r.length;a++)n.push(Tr.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function wH(e,t){return!t&&e===!1?null:e===!0?{}:e}function IH(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=wH(r[l],i);u!==null&&a.push({plugin:s,options:_H(e.config,{plugin:s,local:n[l]},u,o)})}return a}function _H(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function A0(e,t){const n=_t.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function DH(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function TH(e,t){return e===t?"_index_":"_value_"}function ly(e){if(e==="x"||e==="y"||e==="r")return e}function AH(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function R0(e,...t){if(ly(e))return e;for(const n of t){const r=n.axis||AH(n.position)||e.length>1&&ly(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function uy(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function RH(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return uy(e,"x",n[0])||uy(e,"y",n[0])}return{}}function BH(e,t){const n=Fa[e.type]||{scales:{}},r=t.scales||{},i=A0(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!je(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=R0(o,s,RH(o,e),_t.scales[s.type]),u=TH(l,i),c=n.scales||{};a[o]=bs(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||A0(s,t),c=(Fa[s]||{}).scales||{};Object.keys(c).forEach(p=>{const h=DH(p,l),d=o[h+"AxisID"]||h;a[d]=a[d]||Object.create(null),bs(a[d],[{axis:h},r[d],c[p]])})}),Object.keys(a).forEach(o=>{const s=a[o];bs(s,[_t.scales[s.type],_t.scale])}),a}function Iw(e){const t=e.options||(e.options={});t.plugins=Me(t.plugins,{}),t.scales=BH(e,t)}function _w(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function kH(e){return e=e||{},e.data=_w(e.data),Iw(e),e}const cy=new Map,Dw=new Set;function du(e,t){let n=cy.get(e);return n||(n=t(),cy.set(e,n),Dw.add(n)),n}const es=(e,t,n)=>{const r=$a(t,n);r!==void 0&&e.add(r)};class PH{constructor(t){this._config=kH(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=_w(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(),Iw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return du(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return du(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return du(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return du(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(p=>es(l,t,p))),c.forEach(p=>es(l,i,p)),c.forEach(p=>es(l,Fa[a]||{},p)),c.forEach(p=>es(l,_t,p)),c.forEach(p=>es(l,D0,p))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Dw.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Fa[n]||{},_t.datasets[n]||{},{type:n},_t,D0]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=dy(this._resolverCache,t,i);let l=o;if(FH(o,n)){a.$shared=!1,r=Ki(r)?r():r;const u=this.createResolver(t,r,s);l=ko(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=dy(this._resolverCache,t,r);return je(n)?ko(a,n,void 0,i):a}}function dy(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Pp(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const $H=e=>je(e)&&Object.getOwnPropertyNames(e).some(t=>Ki(e[t]));function FH(e,t){const{isScriptable:n,isIndexable:r}=ow(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Ki(s)||$H(s))||o&&At(s))return!0}return!1}var NH="4.5.0";const MH=["top","bottom","left","right","chartArea"];function fy(e,t){return e==="top"||e==="bottom"||MH.indexOf(e)===-1&&t==="x"}function hy(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function gy(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ft(n&&n.onComplete,[e],t)}function OH(e){const t=e.chart,n=t.options.animation;ft(n&&n.onProgress,[e],t)}function Tw(e){return Np()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const $u={},py=e=>{const t=Tw(e);return Object.values($u).filter(n=>n.canvas===t).pop()};function LH(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function VH(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}var Ai;let ja=(Ai=class{static register(...t){Tr.add(...t),my()}static unregister(...t){Tr.remove(...t),my()}constructor(t,n){const r=this.config=new PH(n),i=Tw(t),a=py(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||iH(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=OO(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new EH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=rL(p=>this.update(p),o.resizeDelay||0),this._dataChanges=[],$u[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ei.listen(this,"complete",gy),ei.listen(this,"progress",OH),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Qe(t)?n&&a?a:i?r/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}get registry(){return Tr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ob(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Fb(this.canvas,this.ctx),this}stop(){return ei.stop(this),this}resize(t,n){ei.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Ob(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),ft(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};rt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=R0(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),rt(a,o=>{const s=o.options,l=s.id,u=R0(l,s),c=Me(s.type,o.dtype);(s.position===void 0||fy(s.position,u)!==fy(o.dposition))&&(s.position=o.dposition),i[l]=!0;let p=null;if(l in r&&r[l].type===c)p=r[l];else{const h=Tr.getScale(c);p=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(s,t)}),rt(i,(o,s)=>{o||delete r[s]}),rt(r,o=>{rr.configure(this,o,o.options),rr.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(hy("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||A0(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Tr.getController(s),{datasetElementType:u,dataElementType:c}=_t.datasets[s];Object.assign(l,{dataElementType:Tr.getElement(c),datasetElementType:u&&Tr.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){rt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:p}=this.getDatasetMeta(u),h=!i&&a.indexOf(p)===-1;p.buildOrUpdateElements(h),o=Math.max(+p.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||rt(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hy("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){rt(this.scales,t=>{rr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Ib(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;LH(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!Ib(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;rr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],rt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Ki(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ei.has(this)?this.attached&&!ei.running(this)&&ei.start(this):(this.draw(),gy({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=mw(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&cd(n,i),t.controller.draw(),i&&dd(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Qs(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=MV.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);Zs(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ei.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Fb(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete $u[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};rt(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){rt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},rt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!bc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(p=>c.datasetIndex===p.datasetIndex&&c.index===p.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=GO(t),u=VH(t,this._lastEvent,r,l);r&&(this._lastEvent=null,ft(a.onHover,[t,s,this],this),l&&ft(a.onClick,[t,s,this],this));const c=!bc(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},Ce(Ai,"defaults",_t),Ce(Ai,"instances",$u),Ce(Ai,"overrides",Fa),Ce(Ai,"registry",Tr),Ce(Ai,"version",NH),Ce(Ai,"getChart",py),Ai);function my(){return rt(ja.instances,e=>e._plugins.invalidate())}function HH(e,t,n){const{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:l}=t,{borderWidth:u,borderJoinStyle:c}=l,p=Math.min(u/o,Nn(r-n));if(e.beginPath(),e.arc(i,a,o-u/2,r+p/2,n-p/2),s>0){const h=Math.min(u/s,Nn(r-n));e.arc(i,a,s+u/2,n-h/2,r+h/2,!0)}else{const h=Math.min(u/2,o*Nn(r-n));if(c==="round")e.arc(i,a,h,n-it/2,r+it/2,!0);else if(c==="bevel"){const d=2*h*h,v=-d*Math.cos(n+it/2)+i,m=-d*Math.sin(n+it/2)+a,b=d*Math.cos(r+it/2)+i,f=d*Math.sin(r+it/2)+a;e.lineTo(v,m),e.lineTo(b,f)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function jH(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+Nt,r-Nt),e.closePath(),e.clip()}function zH(e){return kp(e,["outerStart","outerEnd","innerStart","innerEnd"])}function GH(e,t,n,r){const i=zH(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return dn(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:dn(i.innerStart,0,o),innerEnd:dn(i.innerEnd,0,o)}}function eo(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function wc(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,p=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let d=0;const v=i-l;if(r){const $=c>0?c-r:0,k=p>0?p-r:0,O=($+k)/2,M=O!==0?v*O/(O+r):v;d=(v-M)/2}const m=Math.max(.001,v*p-n/it)/p,b=(v-m)/2,f=l+b+d,y=i-b-d,{outerStart:C,outerEnd:S,innerStart:w,innerEnd:E}=GH(t,h,p,y-f),x=p-C,g=p-S,I=f+C/x,T=y-S/g,_=h+w,A=h+E,F=f+w/_,B=y-E/A;if(e.beginPath(),a){const $=(I+T)/2;if(e.arc(o,s,p,I,$),e.arc(o,s,p,$,T),S>0){const G=eo(g,T,o,s);e.arc(G.x,G.y,S,T,y+Nt)}const k=eo(A,y,o,s);if(e.lineTo(k.x,k.y),E>0){const G=eo(A,B,o,s);e.arc(G.x,G.y,E,y+Nt,B+Math.PI)}const O=(y-E/h+(f+w/h))/2;if(e.arc(o,s,h,y-E/h,O,!0),e.arc(o,s,h,O,f+w/h,!0),w>0){const G=eo(_,F,o,s);e.arc(G.x,G.y,w,F+Math.PI,f-Nt)}const M=eo(x,f,o,s);if(e.lineTo(M.x,M.y),C>0){const G=eo(x,I,o,s);e.arc(G.x,G.y,C,f-Nt,I)}}else{e.moveTo(o,s);const $=Math.cos(I)*p+o,k=Math.sin(I)*p+s;e.lineTo($,k);const O=Math.cos(T)*p+o,M=Math.sin(T)*p+s;e.lineTo(O,M)}e.closePath()}function WH(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){wc(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%yt||yt))}return wc(e,t,n,r,l,i),e.fill(),l}function UH(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:p,borderDashOffset:h,borderRadius:d}=l,v=l.borderAlign==="inner";if(!u)return;e.setLineDash(p||[]),e.lineDashOffset=h,v?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let m=t.endAngle;if(a){wc(e,t,n,r,m,i);for(let b=0;b<a;++b)e.stroke();isNaN(s)||(m=o+(s%yt||yt))}v&&jH(e,t,m),l.selfJoin&&m-o>=it&&d===0&&c!=="miter"&&HH(e,t,m),a||(wc(e,t,n,r,m,i),e.stroke())}class ds extends Ci{constructor(n){super();Ce(this,"circumference");Ce(this,"endAngle");Ce(this,"fullCircles");Ce(this,"innerRadius");Ce(this,"outerRadius");Ce(this,"pixelMargin");Ce(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=JS(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:p,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,v=Me(h,u-l),m=Js(o,l,u)&&l!==u,b=v>=yt||m,f=ui(s,c+d,p+d);return b&&f}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,p=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(p)*h,y:i+Math.sin(p)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>yt?Math.floor(i/yt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(it,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,WH(n,this,c,o,s),UH(n,this,c,o,s),n.restore()}}Ce(ds,"id","arc"),Ce(ds,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),Ce(ds,"defaultRoutes",{backgroundColor:"backgroundColor"}),Ce(ds,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Aw(e,t,n=t){e.lineCap=Me(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Me(n.borderDash,t.borderDash)),e.lineDashOffset=Me(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Me(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Me(n.borderWidth,t.borderWidth),e.strokeStyle=Me(n.borderColor,t.borderColor)}function XH(e,t,n){e.lineTo(n.x,n.y)}function YH(e){return e.stepped?vL:e.tension||e.cubicInterpolationMode==="monotone"?bL:XH}function Rw(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function KH(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=Rw(i,n,r),c=YH(a);let{move:p=!0,reverse:h}=r||{},d,v,m;for(d=0;d<=u;++d)v=i[(s+(h?u-d:d))%o],!v.skip&&(p?(e.moveTo(v.x,v.y),p=!1):c(e,m,v,h,a.stepped),m=v);return l&&(v=i[(s+(h?u:0))%o],c(e,m,v,h,a.stepped)),!!l}function ZH(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=Rw(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,p=0,h,d,v,m,b,f;const y=S=>(o+(u?s-S:S))%a,C=()=>{m!==b&&(e.lineTo(c,b),e.lineTo(c,m),e.lineTo(c,f))};for(l&&(d=i[y(0)],e.moveTo(d.x,d.y)),h=0;h<=s;++h){if(d=i[y(h)],d.skip)continue;const S=d.x,w=d.y,E=S|0;E===v?(w<m?m=w:w>b&&(b=w),c=(p*c+S)/++p):(C(),e.lineTo(S,w),v=E,p=0,m=b=w),f=w}C()}function B0(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?ZH:KH}function qH(e){return e.stepped?ZL:e.tension||e.cubicInterpolationMode==="monotone"?qL:da}function JH(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Aw(e,t.options),e.stroke(i)}function QH(e,t,n,r){const{segments:i,options:a}=t,o=B0(t);for(const s of i)Aw(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const ej=typeof Path2D=="function";function tj(e,t,n,r){ej&&!t.options.segment?JH(e,t,n,r):QH(e,t,n,r)}class Fr extends Ci{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,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;jL(this._points,r,t,i,n),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=rV(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=pw(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=qH(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:p,end:h}=o[u],d=a[p],v=a[h];if(d===v){s.push(d);continue}const m=Math.abs((i-d[n])/(v[n]-d[n])),b=l(d,v,m,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return B0(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=B0(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),tj(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Ce(Fr,"id","line"),Ce(Fr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Ce(Fr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Ce(Fr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function vy(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class Sa extends Ci{constructor(n){super();Ce(this,"parsed");Ce(this,"skip");Ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return vy(this,n,"x",r)}inYRange(n,r){return vy(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Qs(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,T0(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}Ce(Sa,"id","point"),Ce(Sa,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Ce(Sa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Bw(e,t){const{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,p;return e.horizontal?(p=o/2,s=Math.min(n,i),l=Math.max(n,i),u=r-p,c=r+p):(p=a/2,s=n-p,l=n+p,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function Hi(e,t,n,r){return e?0:dn(t,n,r)}function nj(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=aw(r);return{t:Hi(i.top,a.top,0,n),r:Hi(i.right,a.right,0,t),b:Hi(i.bottom,a.bottom,0,n),l:Hi(i.left,a.left,0,t)}}function rj(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Co(i),o=Math.min(t,n),s=e.borderSkipped,l=r||je(i);return{topLeft:Hi(!l||s.top||s.left,a.topLeft,0,o),topRight:Hi(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Hi(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Hi(!l||s.bottom||s.right,a.bottomRight,0,o)}}function ij(e){const t=Bw(e),n=t.right-t.left,r=t.bottom-t.top,i=nj(e,n/2,r/2),a=rj(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function uh(e,t,n,r){const i=t===null,a=n===null,s=e&&!(i&&a)&&Bw(e,r);return s&&(i||ui(t,s.left,s.right))&&(a||ui(n,s.top,s.bottom))}function aj(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function oj(e,t){e.rect(t.x,t.y,t.w,t.h)}function ch(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class Fu extends Ci{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:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=ij(this),s=aj(o.radius)?Cc:oj;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,ch(o,n,a)),t.clip(),s(t,ch(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,ch(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return uh(this,t,n,r)}inXRange(t,n){return uh(this,t,null,n)}inYRange(t,n){return uh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Ce(Fu,"id","bar"),Ce(Fu,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Ce(Fu,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sj(e,t,n){const r=e.segments,i=e.points,a=t.points,o=[];for(const s of r){let{start:l,end:u}=s;u=gd(l,u,i);const c=k0(n,i[l],i[u],s.loop);if(!t.segments){o.push({source:s,target:c,start:i[l],end:i[u]});continue}const p=pw(t,c);for(const h of p){const d=k0(n,a[h.start],a[h.end],h.loop),v=gw(s,i,d);for(const m of v)o.push({source:m,target:h,start:{[n]:by(c,d,"start",Math.max)},end:{[n]:by(c,d,"end",Math.min)}})}}return o}function k0(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=Nn(i),a=Nn(a)),{property:e,start:i,end:a}}function lj(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:o,end:s})=>{s=gd(o,s,i);const l=i[o],u=i[s];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function gd(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function by(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function kw(e,t){let n=[],r=!1;return At(e)?(r=!0,n=e):n=lj(e,t),n.length?new Fr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function yy(e){return e&&e.fill!==!1}function uj(e,t,n){let i=e[t].fill;const a=[t];let o;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!hn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;a.push(i),i=o.fill}return!1}function cj(e,t,n){const r=gj(e);if(je(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return hn(i)&&Math.floor(i)===i?dj(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function dj(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function fj(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:je(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function hj(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:je(e)?r=e.value:r=t.getBaseValue(),r}function gj(e){const t=e.options,n=t.fill;let r=Me(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function pj(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=mj(t,n);s.push(kw({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)vj(i,o[c],s)}return new Fr({points:i,options:{}})}function mj(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function vj(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:o,last:s,point:l}=bj(a,t,"x");if(!(!l||o&&s)){if(o)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function bj(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,o=e.points;let s=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],p=o[c.start][n],h=o[c.end][n];if(ui(i,p,h)){s=i===p,l=i===h;break}}return{first:s,last:l,point:r}}class Pw{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:o}=this;return n=n||{start:0,end:yt},t.arc(i,a,o,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function yj(e){const{chart:t,fill:n,line:r}=e;if(hn(n))return xj(t,n);if(n==="stack")return pj(e);if(n==="shape")return!0;const i=Cj(e);return i instanceof Pw?i:kw(i,r)}function xj(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Cj(e){return(e.scale||{}).getPointPositionForValue?Sj(e):Ej(e)}function Ej(e){const{scale:t={},fill:n}=e,r=fj(n,t);if(hn(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function Sj(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=hj(n,t,a),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new Pw({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,o));return s}function dh(e,t,n){const r=yj(t),{chart:i,index:a,line:o,scale:s,axis:l}=t,u=o.options,c=u.fill,p=u.backgroundColor,{above:h=p,below:d=p}=c||{},v=i.getDatasetMeta(a),m=mw(i,v);r&&o.points.length&&(cd(e,n),wj(e,{line:o,target:r,above:h,below:d,area:n,scale:s,axis:l,clip:m}),dd(e))}function wj(e,t){const{line:n,target:r,above:i,below:a,area:o,scale:s,clip:l}=t,u=n._loop?"angle":t.axis;e.save();let c=a;a!==i&&(u==="x"?(xy(e,r,o.top),fh(e,{line:n,target:r,color:i,scale:s,property:u,clip:l}),e.restore(),e.save(),xy(e,r,o.bottom)):u==="y"&&(Cy(e,r,o.left),fh(e,{line:n,target:r,color:a,scale:s,property:u,clip:l}),e.restore(),e.save(),Cy(e,r,o.right),c=i)),fh(e,{line:n,target:r,color:c,scale:s,property:u,clip:l}),e.restore()}function xy(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],p=i[gd(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(p.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Cy(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],p=i[gd(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(n,c.y),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(n,p.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function fh(e,t){const{line:n,target:r,property:i,color:a,scale:o,clip:s}=t,l=sj(n,r,i);for(const{source:u,target:c,start:p,end:h}of l){const{style:{backgroundColor:d=a}={}}=u,v=r!==!0;e.save(),e.fillStyle=d,Ij(e,o,s,v&&k0(i,p,h)),e.beginPath();const m=!!n.pathSegment(e,u);let b;if(v){m?e.closePath():Ey(e,r,h,i);const f=!!r.pathSegment(e,c,{move:m,reverse:!0});b=m&&f,b||Ey(e,r,p,i)}e.closePath(),e.fill(b?"evenodd":"nonzero"),e.restore()}}function Ij(e,t,n,r){const i=t.chart.chartArea,{property:a,start:o,end:s}=r||{};if(a==="x"||a==="y"){let l,u,c,p;a==="x"?(l=o,u=i.top,c=s,p=i.bottom):(l=i.left,u=o,c=i.right,p=s),e.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),p=Math.min(p,n.bottom)),e.rect(l,u,c-l,p-u),e.clip()}}function Ey(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var $w={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,o,s,l;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof Fr&&(l={visible:e.isDatasetVisible(o),index:o,fill:cj(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=uj(i,o,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&dh(e.ctx,s,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;yy(a)&&dh(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!yy(r)||n.drawTime!=="beforeDatasetDraw"||dh(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Sy=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},_j=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class wy extends Ci{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,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 n=ft(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=fn(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Sy(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let p=t;a.textAlign="left",a.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach((v,m)=>{const b=r+n/2+a.measureText(v.text).width;(m===0||u[u.length-1]+b+2*s>o)&&(p+=c,u[u.length-(m>0?0:1)]=0,d+=c,h++),l[m]={left:0,top:d,row:h,width:b,height:i},u[u.length-1]+=b+s}),p}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let p=s,h=0,d=0,v=0,m=0;return this.legendItems.forEach((b,f)=>{const{itemWidth:y,itemHeight:C}=Dj(r,n,a,b,i);f>0&&d+C+2*s>c&&(p+=h+s,u.push({width:h,height:d}),v+=h+s,m++,h=d=0),l[f]={left:v,top:d,col:m,width:y,height:C},h=Math.max(h,y),d+=C+s}),p+=h,u.push({width:h,height:d}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=Eo(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=un(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=un(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=un(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=un(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;cd(t,this),this._draw(),dd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=_t.color,l=Eo(t.rtl,this.left,this.width),u=fn(o.font),{padding:c}=o,p=u.size,h=p/2;let d;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:v,boxHeight:m,itemHeight:b}=Sy(o,p),f=function(E,x,g){if(isNaN(v)||v<=0||isNaN(m)||m<0)return;i.save();const I=Me(g.lineWidth,1);if(i.fillStyle=Me(g.fillStyle,s),i.lineCap=Me(g.lineCap,"butt"),i.lineDashOffset=Me(g.lineDashOffset,0),i.lineJoin=Me(g.lineJoin,"miter"),i.lineWidth=I,i.strokeStyle=Me(g.strokeStyle,s),i.setLineDash(Me(g.lineDash,[])),o.usePointStyle){const T={radius:m*Math.SQRT2/2,pointStyle:g.pointStyle,rotation:g.rotation,borderWidth:I},_=l.xPlus(E,v/2),A=x+h;iw(i,T,_,A,o.pointStyleWidth&&v)}else{const T=x+Math.max((p-m)/2,0),_=l.leftForLtr(E,v),A=Co(g.borderRadius);i.beginPath(),Object.values(A).some(F=>F!==0)?Cc(i,{x:_,y:T,w:v,h:m,radius:A}):i.rect(_,T,v,m),i.fill(),I!==0&&i.stroke()}i.restore()},y=function(E,x,g){el(i,g.text,E,x+b/2,u,{strikethrough:g.hidden,textAlign:l.textAlign(g.textAlign)})},C=this.isHorizontal(),S=this._computeTitleHeight();C?d={x:un(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:d={x:this.left+c,y:un(a,this.top+S+c,this.bottom-n[0].height),line:0},dw(this.ctx,t.textDirection);const w=b+c;this.legendItems.forEach((E,x)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const g=i.measureText(E.text).width,I=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),T=v+h+g;let _=d.x,A=d.y;l.setWidth(this.width),C?x>0&&_+T+c>this.right&&(A=d.y+=w,d.line++,_=d.x=un(a,this.left+c,this.right-r[d.line])):x>0&&A+w>this.bottom&&(_=d.x=_+n[d.line].width+c,d.line++,A=d.y=un(a,this.top+S+c,this.bottom-n[d.line].height));const F=l.x(_);if(f(F,A,E),_=iL(I,_+v+h,C?_+T:this.right,t.rtl),y(l.x(_),A,E),C)d.x+=T+c;else if(typeof E.text!="string"){const B=u.lineHeight;d.y+=Fw(E,B)+c}else d.y+=w}),fw(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=fn(n.font),i=ir(n.padding);if(!n.display)return;const a=Eo(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,p=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,p=un(t.align,p,this.right-h);else{const v=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);c=u+un(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const d=un(s,p,p+h);o.textAlign=a.textAlign(Ap(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,el(o,n.text,d,c,r)}_computeTitleHeight(){const t=this.options.title,n=fn(t.font),r=ir(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(ui(t,this.left,this.right)&&ui(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],ui(t,i.left,i.left+i.width)&&ui(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!Rj(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=_j(i,r);i&&!a&&ft(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&ft(n.onHover,[t,r,this],this)}else r&&ft(n.onClick,[t,r,this],this)}}function Dj(e,t,n,r,i){const a=Tj(r,e,t,n),o=Aj(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function Tj(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function Aj(e,t,n){let r=e;return typeof t.text!="string"&&(r=Fw(t,n)),r}function Fw(e,t){const n=e.text?e.text.length:0;return t*n}function Rj(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Nw={id:"legend",_element:wy,start(e,t,n){const r=e.legend=new wy({ctx:e.ctx,options:n,chart:e});rr.configure(e,r,n),rr.addBox(e,r)},stop(e){rr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;rr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=ir(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Mw extends Ci{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=At(r.text)?r.text.length:1;this._padding=ir(r.padding);const a=i*fn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,p;return this.isHorizontal()?(c=un(s,r,a),p=n+t,u=a-r):(o.position==="left"?(c=r+t,p=un(s,i,n),l=it*-.5):(c=a-t,p=un(s,n,i),l=it*.5),u=i-n),{titleX:c,titleY:p,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=fn(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);el(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Ap(n.align),textBaseline:"middle",translation:[o,s]})}}function Bj(e,t){const n=new Mw({ctx:e.ctx,options:t,chart:e});rr.configure(e,n,t),rr.addBox(e,n),e.titleBlock=n}var Ow={id:"title",_element:Mw,start(e,t,n){Bj(e,n)},stop(e){const t=e.titleBlock;rr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;rr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const fs={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=_0(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function _r(e,t){return t&&(At(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ti(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
179
|
+
*/class lV{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],o=n.duration;a.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=tw.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ei=new lV;const zb="transparent",uV={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=kb(e||zb),i=r.valid&&kb(t||zb);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class cV{constructor(t,n,r,i){const a=n[r];i=iu([t.to,i,a,t.from]);const o=iu([t.from,a,i]);this._active=!0,this._fn=t.fn||uV[t.type||typeof o],this._easing=xs[t.easing]||xs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=iu([t.to,n,i,t.from]),this._from=iu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class vw{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!je(t))return;const n=Object.keys(_t.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!je(a))return;const o={};for(const s of n)o[s]=a[s];(At(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=fV(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&dV(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let p=a[u];const h=r.get(u);if(p)if(h&&p.active()){p.update(h,c,s);continue}else p.cancel();if(!h||!h.duration){t[u]=c;continue}a[u]=p=new cV(h,t,u,c),i.push(p)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ei.add(this._chart,r),!0}}function dV(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function fV(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Gb(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function hV(e,t,n){if(n===!1)return!1;const r=Gb(e,n),i=Gb(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function gV(e){let t,n,r,i;return je(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function bw(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function Wb(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let o,s,l,u;if(t===null)return;let c=!1;for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===n){if(c=!0,r.all)continue;break}u=e.values[l],hn(u)&&(a||t===0||Vr(t)===Vr(u))&&(t+=u)}return!c&&!r.all?0:t}function pV(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,u,c;for(l=0,u=o.length;l<u;++l)c=o[l],s[l]={[i]:c,[a]:e[c]};return s}function nh(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function mV(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function vV(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function bV(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ub(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function Xb(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,u=o.axis,c=mV(a,o,r),p=t.length;let h;for(let d=0;d<p;++d){const v=t[d],{[l]:m,[u]:b}=v,f=v._stacks||(v._stacks={});h=f[u]=bV(i,c,m),h[s]=b,h._top=Ub(h,o,!0,r.type),h._bottom=Ub(h,o,!1,r.type);const y=h._visualValues||(h._visualValues={});y[s]=b}}function rh(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function yV(e,t){return Ha(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function xV(e,t,n){return Ha(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Zo(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const ih=e=>e==="reset"||e==="none",Yb=(e,t)=>t?e:Object.assign({},e),CV=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:bw(n,!0),values:null};class Ea{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=nh(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Zo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,h,d,v)=>p==="x"?h:p==="r"?v:d,a=n.xAxisID=Me(r.xAxisID,rh(t,"x")),o=n.yAxisID=Me(r.yAxisID,rh(t,"y")),s=n.rAxisID=Me(r.rAxisID,rh(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,o,s),c=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(u),n.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 n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ab(this._data,this),t._stacked&&Zo(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(je(n)){const i=this._cachedMeta;this._data=pV(n,i)}else if(r!==n){if(r){Ab(r,this);const i=this._cachedMeta;Zo(i),i._parsed=[]}n&&Object.isExtensible(n)&&rL(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=nh(n.vScale,n),n.stack!==r.stack&&(i=!0,Zo(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&(Xb(this,n._parsed),n._stacked=nh(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,p,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{At(i[t])?h=this.parseArrayData(r,i,t,n):je(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const d=()=>p[s]===null||u&&p[s]<u[s];for(c=0;c<n;++c)r._parsed[c+t]=p=h[c],l&&(d()&&(l=!1),u=p);r._sorted=l}o&&Xb(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,u=a.getLabels(),c=a===o,p=new Array(i);let h,d,v;for(h=0,d=i;h<d;++h)v=h+r,p[h]={[s]:c||a.parse(u[v],v),[l]:o.parse(n[v],v)};return p}parseArrayData(t,n,r,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,u,c,p;for(l=0,u=i;l<u;++l)c=l+r,p=n[c],s[l]={x:a.parse(p[0],c),y:o.parse(p[1],c)};return s}parseObjectData(t,n,r,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,p,h,d;for(c=0,p=i;c<p;++c)h=c+r,d=n[h],u[c]={x:a.parse($a(d,s),h),y:o.parse($a(d,l),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,o=n[t.axis],s={keys:bw(i,!0),values:n._stacks[t.axis]._visualValues};return Wb(s,o,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let o=a===null?NaN:a;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,o=Wb(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,o=i.length,s=this._getOtherScale(t),l=CV(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:p}=vV(s);let h,d;function v(){d=i[h];const m=d[s.axis];return!hn(d[t.axis])||c>m||p<m}for(h=0;h<o&&!(!v()&&(this.updateRangeFromParsed(u,t,d,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!v()){this.updateRangeFromParsed(u,t,d,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i<a;++i)o=n[i][t.axis],hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=gV(Me(this.options.clip,hV(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,s,l),c=s;c<s+l;++c){const p=i[c];p.hidden||(p.active&&u?o.push(p):p.draw(t,a))}for(c=0;c<o.length;++c)o[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=xV(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=yV(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,o=t+"-"+n,s=a[o],l=this.enableOptionSharing&&Zs(r);if(s)return Yb(s,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),p=i?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),c),d=Object.keys(_t.elements[t]),v=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(h,d,v,p);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Yb(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const c=this.chart.config,p=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),p);l=c.createResolver(h,this.getContext(t,r,n))}const u=new vw(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ih(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){ih(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ih(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"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 n=this._data,r=this._cachedMeta.data;for(const[s,l,u]of this._syncList)this[s](l,u);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,o=t+n;let s;const l=u=>{for(u.length+=n,s=u.length-1;s>=o;s--)u[s]=u[s-n]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Zo(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,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,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Ce(Ea,"defaults",{}),Ce(Ea,"datasetElementType",null),Ce(Ea,"dataElementType",null);function EV(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=ew(r.sort((i,a)=>i-a))}return e._cache.$bar}function SV(e){const t=e.iScale,n=EV(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(Zs(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return r}function wV(e,t,n,r){const i=n.barThickness;let a,o;return Qe(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function IV(e,t,n,r){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}function _V(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a);let l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}function yw(e,t,n,r){return At(e)?_V(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Kb(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let u,c,p,h;for(u=n,c=n+r;u<c;++u)h=t[u],p={},p[i.axis]=s||i.parse(o[u],u),l.push(yw(h,p,a,u));return l}function ah(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function DV(e,t,n){return e!==0?Vr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function TV(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function AV(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:u,bottom:c}=TV(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[Zb(c,o,s,l)]=!0,i=u)),a[Zb(i,o,s,l)]=!0,e.borderSkipped=a}function Zb(e,t,n,r){return r?(e=RV(e,t,n),e=qb(e,n,t)):e=qb(e,t,n),e}function RV(e,t,n){return e===t?n:e===n?t:e}function qb(e,t,n){return e==="start"?t:e==="end"?n:e}function BV(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Bu extends Ea{parsePrimitiveData(t,n,r,i){return Kb(t,n,r,i)}parseArrayData(t,n,r,i){return Kb(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?s:l,c=o.axis==="x"?s:l,p=[];let h,d,v,m;for(h=r,d=r+i;h<d;++h)m=n[h],v={},v[a.axis]=a.parse($a(m,u),h),p.push(yw($a(m,c),v,o,h));return p}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),o=a._custom,s=ah(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),u=s.isHorizontal(),c=this._getRuler(),{sharedOptions:p,includeOptions:h}=this._getSharedOptions(n,i);for(let d=n;d<n+r;d++){const v=this.getParsed(d),m=a||Qe(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),b=this._calculateBarIndexPixels(d,c),f=(v._stacks||{})[s.axis],y={horizontal:u,base:m.base,enableBorderRadius:!f||ah(v._custom)||o===f._top||o===f._bottom,x:u?m.head:b.center,y:u?b.center:m.head,height:u?b.size:Math.abs(m.size),width:u?Math.abs(m.size):b.size};h&&(y.options=p||this.resolveDataElementOptions(d,t[d].active?"active":i));const C=y.options||t[d].options;AV(y,C,f,o),BV(y,C,c.ratio),this.updateElement(t[d],d,y,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),a=r.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(n),l=s&&s[r.axis],u=c=>{const p=c._parsed.find(d=>d[r.axis]===l),h=p&&p[c.vScale.axis];if(Qe(h)||isNaN(h))return!0};for(const c of i)if(!(n!==void 0&&u(c))&&((a===!1||o.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[Me(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;a<o;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const s=t.barThickness;return{min:s||SV(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),u=l._custom,c=ah(u);let p=l[n.axis],h=0,d=r?this.applyStack(n,l,r):p,v,m;d!==p&&(h=d-p,d=p),c&&(p=u.barStart,d=u.barEnd-u.barStart,p!==0&&Vr(p)!==Vr(u.barEnd)&&(h=0),h+=p);const b=!Qe(a)&&!c?a:h;let f=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(h+d):v=f,m=v-f,Math.abs(m)<o){m=DV(m,n,s)*o,p===s&&(f-=m/2);const y=n.getPixelForDecimal(0),C=n.getPixelForDecimal(1),S=Math.min(y,C),w=Math.max(y,C);f=Math.max(Math.min(f,w),S),v=f+m,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(f))}if(f===n.getPixelForValue(s)){const y=Vr(m)*n.getLineWidthForValue(s)/2;f+=y,m-=y}return{size:m,base:f,head:v,center:v+m/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,o=Me(i.maxBarThickness,1/0);let s,l;const u=this._getAxisCount();if(n.grouped){const c=a?this._getStackCount(t):n.stackCount,p=i.barThickness==="flex"?IV(t,n,i,c*u):wV(t,n,i,c*u),h=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Me(h,this.getFirstScaleIdForIndexAxis())),v=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+d;s=p.start+p.chunk*v+p.chunk/2,l=Math.min(o,p.chunk*p.ratio)}else s=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(o,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}Ce(Bu,"id","bar"),Ce(Bu,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Ce(Bu,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function kV(e,t,n){let r=1,i=1,a=0,o=0;if(t<yt){const s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),p=Math.cos(l),h=Math.sin(l),d=(C,S,w)=>Js(C,s,l,!0)?1:Math.max(S,S*n,w,w*n),v=(C,S,w)=>Js(C,s,l,!0)?-1:Math.min(S,S*n,w,w*n),m=d(0,u,p),b=d(Nt,c,h),f=v(it,u,p),y=v(it+Nt,c,h);r=(m-f)/2,i=(b-y)/2,a=-(m+f)/2,o=-(b+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class us extends Ea{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(je(r[t])){const{key:l="value"}=this._parsing;a=u=>+$a(r[u],l)}let o,s;for(o=t,s=t+n;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return li(this.options.rotation-90)}_getCircumference(){return li(this.options.circumference)}_getRotationExtents(){let t=yt,n=-yt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(VO(this.options.cutout,s),1),u=this._getRingWeight(this.index),{circumference:c,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:d,offsetX:v,offsetY:m}=kV(p,c,l),b=(r.width-o)/h,f=(r.height-o)/d,y=Math.max(Math.min(b,f)/2,0),C=KS(this.options.radius,y),S=Math.max(C*l,0),w=(C-S)/this._getVisibleDatasetWeightTotal();this.offsetX=v*C,this.offsetY=m*C,i.total=this.calculateTotal(),this.outerRadius=C-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/yt)}updateElements(t,n,r,i){const a=i==="reset",o=this.chart,s=o.chartArea,u=o.options.animation,c=(s.left+s.right)/2,p=(s.top+s.bottom)/2,h=a&&u.animateScale,d=h?0:this.innerRadius,v=h?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,i);let f=this._getRotation(),y;for(y=0;y<n;++y)f+=this._circumference(y,a);for(y=n;y<n+r;++y){const C=this._circumference(y,a),S=t[y],w={x:c+this.offsetX,y:p+this.offsetY,startAngle:f,endAngle:f+C,circumference:C,outerRadius:v,innerRadius:d};b&&(w.options=m||this.resolveDataElementOptions(y,S.active?"active":i)),f+=C,this.updateElement(S,y,w,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?yt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Bp(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){o=r.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Me(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ce(us,"id","doughnut"),Ce(us,"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"}),Ce(us,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Ce(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class ku extends Ea{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=oL(n,i,o);this._drawStart=s,this._drawCount=l,sL(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:u},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:p}=this._getSharedOptions(n,i),h=o.axis,d=s.axis,{spanGaps:v,segment:m}=this.options,b=qs(v)?v:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||a||i==="none",y=n+r,C=t.length;let S=n>0&&this.getParsed(n-1);for(let w=0;w<C;++w){const E=t[w],x=f?E:{};if(w<n||w>=y){x.skip=!0;continue}const g=this.getParsed(w),I=Qe(g[d]),T=x[h]=o.getPixelForValue(g[h],w),_=x[d]=a||I?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,g,l):g[d],w);x.skip=isNaN(T)||isNaN(_)||I,x.stop=w>0&&Math.abs(g[h]-S[h])>b,m&&(x.parsed=g,x.raw=u.data[w]),p&&(x.options=c||this.resolveDataElementOptions(w,E.active?"active":i)),f||this.updateElement(E,w,x,i),S=g}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ce(ku,"id","line"),Ce(ku,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Ce(ku,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function la(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Op{constructor(t){Ce(this,"options");this.options=t||{}}static override(t){Object.assign(Op.prototype,t)}init(){}formats(){return la()}parse(){return la()}format(){return la()}add(){return la()}diff(){return la()}startOf(){return la()}endOf(){return la()}}var PV={_date:Op};function $V(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const u=s._reversePixels?tL:ba;if(r){if(i._sharedOptions){const c=a[0],p=typeof c.getRange=="function"&&c.getRange(t);if(p){const h=u(a,t,n-p),d=u(a,t,n+p);return{lo:h.lo,hi:d.hi}}}}else{const c=u(a,t,n);if(l){const{vScale:p}=i._cachedMeta,{_parsed:h}=e,d=h.slice(0,c.lo+1).reverse().findIndex(m=>!Qe(m[p.axis]));c.lo-=Math.max(0,d);const v=h.slice(c.hi).findIndex(m=>!Qe(m[p.axis]));c.hi+=Math.max(0,v)}return c}}return{lo:0,hi:a.length-1}}function hd(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:u,data:c}=a[s],{lo:p,hi:h}=$V(a[s],t,o,i);for(let d=p;d<=h;++d){const v=c[d];v.skip||r(v,u,d)}}}function FV(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function oh(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||hd(e,n,t,function(s,l,u){!i&&!Qs(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&a.push({element:s,datasetIndex:l,index:u})},!0),a}function NV(e,t,n,r){let i=[];function a(o,s,l){const{startAngle:u,endAngle:c}=o.getProps(["startAngle","endAngle"],r),{angle:p}=JS(o,{x:t.x,y:t.y});Js(p,u,c)&&i.push({element:o,datasetIndex:s,index:l})}return hd(e,n,t,a),i}function MV(e,t,n,r,i,a){let o=[];const s=FV(n);let l=Number.POSITIVE_INFINITY;function u(c,p,h){const d=c.inRange(t.x,t.y,i);if(r&&!d)return;const v=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(v))&&!d)return;const b=s(t,v);b<l?(o=[{element:c,datasetIndex:p,index:h}],l=b):b===l&&o.push({element:c,datasetIndex:p,index:h})}return hd(e,n,t,u),o}function sh(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?NV(e,t,n,i):MV(e,t,n,r,i,a)}function Jb(e,t,n,r,i){const a=[],o=n==="x"?"inXRange":"inYRange";let s=!1;return hd(e,n,t,(l,u,c)=>{l[o]&&l[o](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var OV={modes:{index(e,t,n,r){const i=ca(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?oh(e,i,a,r,o):sh(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=s[0].index,p=u.data[c];p&&!p.skip&&l.push({element:p,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?oh(e,i,a,r,o):sh(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(let c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return oh(e,i,a,r,o)},nearest(e,t,n,r){const i=ca(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return sh(e,i,a,n.intersect,r,o)},x(e,t,n,r){const i=ca(t,e);return Jb(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ca(t,e);return Jb(e,i,"y",n.intersect,r)}}};const xw=["left","top","right","bottom"];function qo(e,t){return e.filter(n=>n.pos===t)}function Qb(e,t){return e.filter(n=>xw.indexOf(n.pos)===-1&&n.box.axis===t)}function Jo(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function LV(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function VV(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!xw.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function HV(e,t){const n=VV(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,u=n[s.stack],c=u&&s.stackWeight/u.weight;s.horizontal?(s.width=c?c*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:l&&t.availableHeight)}return n}function jV(e){const t=LV(e),n=Jo(t.filter(u=>u.box.fullSize),!0),r=Jo(qo(t,"left"),!0),i=Jo(qo(t,"right")),a=Jo(qo(t,"top"),!0),o=Jo(qo(t,"bottom")),s=Qb(t,"x"),l=Qb(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:qo(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function ey(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Cw(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function zV(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!je(i)){n.size&&(e[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?a.height:a.width),n.size=p.size/p.count,e[i]+=n.size}a.getPadding&&Cw(o,a.getPadding());const s=Math.max(0,t.outerWidth-ey(o,e,"left","right")),l=Math.max(0,t.outerHeight-ey(o,e,"top","bottom")),u=s!==e.w,c=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function GV(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function WV(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function cs(e,t,n,r){const i=[];let a,o,s,l,u,c;for(a=0,o=e.length,u=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,WV(s.horizontal,t));const{same:p,other:h}=zV(t,n,s,r);u|=p&&i.length,c=c||h,l.fullSize||i.push(s)}return u&&cs(i,t,n,r)||c}function lu(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function ty(e,t,n,r){const i=n.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,u=r[s.stack]||{placed:0,weight:1},c=s.stackWeight/u.weight||1;if(s.horizontal){const p=t.w*c,h=u.size||l.height;Zs(u.start)&&(o=u.start),l.fullSize?lu(l,i.left,o,n.outerWidth-i.right-i.left,h):lu(l,t.left+u.placed,o,p,h),u.start=o,u.placed+=p,o=l.bottom}else{const p=t.h*c,h=u.size||l.width;Zs(u.start)&&(a=u.start),l.fullSize?lu(l,a,i.top,h,n.outerHeight-i.bottom-i.top):lu(l,a,t.top+u.placed,h,p),u.start=a,u.placed+=p,a=l.right}}t.x=a,t.y=o}var rr={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=ir(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=jV(e.boxes),l=s.vertical,u=s.horizontal;rt(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);Cw(h,ir(r));const d=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),v=HV(l.concat(u),p);cs(s.fullSize,d,p,v),cs(l,d,p,v),cs(u,d,p,v)&&cs(l,d,p,v),GV(d),ty(s.leftAndTop,d,p,v),d.x+=d.w,d.y+=d.h,ty(s.rightAndBottom,d,p,v),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},rt(s.chartArea,m=>{const b=m.box;Object.assign(b,e.chartArea),b.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class Ew{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class UV extends Ew{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Pu="$chartjs",XV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ny=e=>e===null||e==="";function YV(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Pu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ny(i)){const a=Lb(e,"width");a!==void 0&&(e.width=a)}if(ny(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=Lb(e,"height");a!==void 0&&(e.height=a)}return e}const Sw=ZL?{passive:!0}:!1;function KV(e,t,n){e&&e.addEventListener(t,n,Sw)}function ZV(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Sw)}function qV(e,t){const n=XV[e.type]||e.type,{x:r,y:i}=ca(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Sc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function JV(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Sc(s.addedNodes,r),o=o&&!Sc(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function QV(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Sc(s.removedNodes,r),o=o&&!Sc(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const tl=new Map;let ry=0;function ww(){const e=window.devicePixelRatio;e!==ry&&(ry=e,tl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function eH(e,t){tl.size||window.addEventListener("resize",ww),tl.set(e,t)}function tH(e){tl.delete(e),tl.size||window.removeEventListener("resize",ww)}function nH(e,t,n){const r=e.canvas,i=r&&Mp(r);if(!i)return;const a=nw((s,l)=>{const u=i.clientWidth;n(s,l),u<i.clientWidth&&n()},window),o=new ResizeObserver(s=>{const l=s[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return o.observe(i),eH(e,a),o}function lh(e,t,n){n&&n.disconnect(),t==="resize"&&tH(e)}function rH(e,t,n){const r=e.canvas,i=nw(a=>{e.ctx!==null&&n(qV(a,e))},e);return KV(r,t,i),i}class iH extends Ew{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(YV(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Pu])return!1;const r=n[Pu].initial;["height","width"].forEach(a=>{const o=r[a];Qe(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[Pu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:JV,detach:QV,resize:nH}[n]||rH;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:lh,detach:lh,resize:lh}[n]||ZV)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return KL(t,n,r,i)}isAttached(t){const n=t&&Mp(t);return!!(n&&n.isConnected)}}function aH(e){return!Np()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?UV:iH}var mu;let Ci=(mu=class{constructor(){Ce(this,"x");Ce(this,"y");Ce(this,"active",!1);Ce(this,"options");Ce(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return qs(this.x)&&qs(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},Ce(mu,"defaults",{}),Ce(mu,"defaultRoutes"),mu);function oH(e,t){const n=e.options.ticks,r=sH(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?uH(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return cH(t,u,a,o/i),u;const c=lH(a,t,i);if(o>0){let p,h;const d=o>1?Math.round((l-s)/(o-1)):null;for(uu(t,u,c,Qe(d)?0:s-d,s),p=0,h=o-1;p<h;p++)uu(t,u,c,a[p],a[p+1]);return uu(t,u,c,l,Qe(d)?t.length:l+d),u}return uu(t,u,c),u}function sH(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function lH(e,t,n){const r=dH(e),i=t.length/n;if(!r)return Math.max(i,1);const a=YO(r);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function uH(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function cH(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function uu(e,t,n,r,i){const a=Me(r,0),o=Math.min(Me(i,e.length),e.length);let s=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)s++,c=Math.round(a+s*n);for(u=Math.max(a,0);u<o;u++)u===c&&(t.push(e[u]),s++,c=Math.round(a+s*n))}function dH(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const fH=e=>e==="left"?"right":e==="right"?"left":e,iy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,ay=(e,t)=>Math.min(t||e,e);function oy(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function hH(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,o-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-s||l>o+s)))return l}function gH(e,t){rt(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function Qo(e){return e.drawTicks?e.tickLength:0}function sy(e,t){if(!e.display)return 0;const n=fn(e.font,t),r=ir(e.padding);return(At(e.text)?e.text.length:1)*n.lineHeight+r.height}function pH(e,t){return Ha(e,{scale:t,type:"scale"})}function mH(e,t,n){return Ha(e,{tick:n,index:t,type:"tick"})}function vH(e,t,n){let r=Ap(e);return(n&&t!=="right"||!n&&t==="right")&&(r=fH(r)),r}function bH(e,t,n,r){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:u,scales:c}=l;let p=0,h,d,v;const m=o-i,b=s-a;if(e.isHorizontal()){if(d=un(r,a,s),je(n)){const f=Object.keys(n)[0],y=n[f];v=c[f].getPixelForValue(y)+m-t}else n==="center"?v=(u.bottom+u.top)/2+m-t:v=iy(e,n,t);h=s-a}else{if(je(n)){const f=Object.keys(n)[0],y=n[f];d=c[f].getPixelForValue(y)-b+t}else n==="center"?d=(u.left+u.right)/2-b+t:d=iy(e,n,t);v=un(r,o,i),p=n==="left"?-Nt:Nt}return{titleX:d,titleY:v,maxWidth:h,rotation:p}}class Go extends Ci{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Ir(t,Number.POSITIVE_INFINITY),n=Ir(n,Number.NEGATIVE_INFINITY),r=Ir(r,Number.POSITIVE_INFINITY),i=Ir(i,Number.NEGATIVE_INFINITY),{min:Ir(t,r),max:Ir(n,i),minDefined:hn(t),maxDefined:hn(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,u=s.length;l<u;++l)o=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:Ir(n,Ir(r,n)),max:Ir(r,Ir(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ft(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=DL(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?oy(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=oH(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ft(this.options.afterUpdate,[this])}beforeSetDimensions(){ft(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(){ft(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ft(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ft(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=ft(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){ft(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ft(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=ay(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let o=i,s,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),p=c.widest.width,h=c.highest.height,d=dn(this.chart.width-p,0,this.maxWidth);s=t.offset?this.maxWidth/r:d/(r-1),p+6>s&&(s=d/(r-(t.offset?.5:1)),l=this.maxHeight-Qo(t.grid)-n.padding-sy(t.title,this.chart.options.font),u=Math.sqrt(p*p+h*h),o=JO(Math.min(Math.asin(dn((c.highest.height+6)/s,-1,1)),Math.asin(dn(l/u,-1,1))-Math.asin(dn(h/u,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){ft(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ft(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=sy(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Qo(a)+l):(t.height=this.maxHeight,t.width=Qo(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:p,highest:h}=this._getLabelSizes(),d=r.padding*2,v=li(this.labelRotation),m=Math.cos(v),b=Math.sin(v);if(s){const f=r.mirror?0:b*p.width+m*h.height;t.height=Math.min(this.maxHeight,t.height+f+d)}else{const f=r.mirror?0:m*p.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+f+d)}this._calculatePadding(u,c,b,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,u=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;l?u?(h=i*t.width,d=r*n.height):(h=r*t.height,d=i*n.width):a==="start"?d=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,d=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((d-p+o)*this.width/(this.width-p),0)}else{let c=n.height/2,p=t.height/2;a==="start"?(c=0,p=t.height):a==="end"&&(c=n.height,p=0),this.paddingTop=c+o,this.paddingBottom=p+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ft(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Qe(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=oy(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(n/ay(n,r));let u=0,c=0,p,h,d,v,m,b,f,y,C,S,w;for(p=0;p<n;p+=l){if(v=t[p].label,m=this._resolveTickFontOptions(p),i.font=b=m.string,f=a[b]=a[b]||{data:{},gc:[]},y=m.lineHeight,C=S=0,!Qe(v)&&!At(v))C=$b(i,f.data,f.gc,C,v),S=y;else if(At(v))for(h=0,d=v.length;h<d;++h)w=v[h],!Qe(w)&&!At(w)&&(C=$b(i,f.data,f.gc,C,w),S+=y);o.push(C),s.push(S),u=Math.max(C,u),c=Math.max(S,c)}gH(a,n);const E=o.indexOf(u),x=s.indexOf(c),g=I=>({width:o[I]||0,height:s[I]||0});return{first:g(0),last:g(n-1),widest:g(E),highest:g(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return eL(this._alignToPixels?sa(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=mH(this.getContext(),t,r))}return this.$context||(this.$context=pH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=li(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,u=this.isHorizontal(),p=this.ticks.length+(l?1:0),h=Qo(a),d=[],v=s.setContext(this.getContext()),m=v.display?v.width:0,b=m/2,f=function(k){return sa(r,k,m)};let y,C,S,w,E,x,g,I,T,_,A,F;if(o==="top")y=f(this.bottom),x=this.bottom-h,I=y-b,_=f(t.top)+b,F=t.bottom;else if(o==="bottom")y=f(this.top),_=t.top,F=f(t.bottom)-b,x=y+b,I=this.top+h;else if(o==="left")y=f(this.right),E=this.right-h,g=y-b,T=f(t.left)+b,A=t.right;else if(o==="right")y=f(this.left),T=t.left,A=f(t.right)-b,E=y+b,g=this.left+h;else if(n==="x"){if(o==="center")y=f((t.top+t.bottom)/2+.5);else if(je(o)){const k=Object.keys(o)[0],O=o[k];y=f(this.chart.scales[k].getPixelForValue(O))}_=t.top,F=t.bottom,x=y+b,I=x+h}else if(n==="y"){if(o==="center")y=f((t.left+t.right)/2);else if(je(o)){const k=Object.keys(o)[0],O=o[k];y=f(this.chart.scales[k].getPixelForValue(O))}E=y-b,g=E-h,T=t.left,A=t.right}const B=Me(i.ticks.maxTicksLimit,p),$=Math.max(1,Math.ceil(p/B));for(C=0;C<p;C+=$){const k=this.getContext(C),O=a.setContext(k),M=s.setContext(k),G=O.lineWidth,W=O.color,U=M.dash||[],J=M.dashOffset,Q=O.tickWidth,Z=O.tickColor,ee=O.tickBorderDash||[],q=O.tickBorderDashOffset;S=hH(this,C,l),S!==void 0&&(w=sa(r,S,G),u?E=g=T=A=w:x=I=_=F=w,d.push({tx1:E,ty1:x,tx2:g,ty2:I,x1:T,y1:_,x2:A,y2:F,width:G,color:W,borderDash:U,borderDashOffset:J,tickWidth:Q,tickColor:Z,tickBorderDash:ee,tickBorderDashOffset:q}))}return this._ticksLength=p,this._borderValue=y,d}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:u,padding:c,mirror:p}=a,h=Qo(r.grid),d=h+c,v=p?-c:d,m=-li(this.labelRotation),b=[];let f,y,C,S,w,E,x,g,I,T,_,A,F="middle";if(i==="top")E=this.bottom-v,x=this._getXAxisLabelAlignment();else if(i==="bottom")E=this.top+v,x=this._getXAxisLabelAlignment();else if(i==="left"){const $=this._getYAxisLabelAlignment(h);x=$.textAlign,w=$.x}else if(i==="right"){const $=this._getYAxisLabelAlignment(h);x=$.textAlign,w=$.x}else if(n==="x"){if(i==="center")E=(t.top+t.bottom)/2+d;else if(je(i)){const $=Object.keys(i)[0],k=i[$];E=this.chart.scales[$].getPixelForValue(k)+d}x=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-d;else if(je(i)){const $=Object.keys(i)[0],k=i[$];w=this.chart.scales[$].getPixelForValue(k)}x=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?F="top":l==="end"&&(F="bottom"));const B=this._getLabelSizes();for(f=0,y=s.length;f<y;++f){C=s[f],S=C.label;const $=a.setContext(this.getContext(f));g=this.getPixelForTick(f)+a.labelOffset,I=this._resolveTickFontOptions(f),T=I.lineHeight,_=At(S)?S.length:1;const k=_/2,O=$.color,M=$.textStrokeColor,G=$.textStrokeWidth;let W=x;o?(w=g,x==="inner"&&(f===y-1?W=this.options.reverse?"left":"right":f===0?W=this.options.reverse?"right":"left":W="center"),i==="top"?u==="near"||m!==0?A=-_*T+T/2:u==="center"?A=-B.highest.height/2-k*T+T:A=-B.highest.height+T/2:u==="near"||m!==0?A=T/2:u==="center"?A=B.highest.height/2-k*T:A=B.highest.height-_*T,p&&(A*=-1),m!==0&&!$.showLabelBackdrop&&(w+=T/2*Math.sin(m))):(E=g,A=(1-_)*T/2);let U;if($.showLabelBackdrop){const J=ir($.backdropPadding),Q=B.heights[f],Z=B.widths[f];let ee=A-J.top,q=0-J.left;switch(F){case"middle":ee-=Q/2;break;case"bottom":ee-=Q;break}switch(x){case"center":q-=Z/2;break;case"right":q-=Z;break;case"inner":f===y-1?q-=Z:f>0&&(q-=Z/2);break}U={left:q,top:ee,width:Z+J.width,height:Q+J.height,color:$.backdropColor}}b.push({label:S,font:I,textOffset:A,options:{rotation:m,color:O,strokeColor:M,strokeWidth:G,textAlign:W,textBaseline:F,translation:[w,E],backdrop:U}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-li(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a<o;++a){const l=i[a];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,p,h;this.isHorizontal()?(u=sa(t,this.left,o)-o/2,c=sa(t,this.right,s)+s/2,p=h=l):(p=sa(t,this.top,o)-o/2,h=sa(t,this.bottom,s)+s/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,p),n.lineTo(c,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&cd(r,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,u=o.label,c=o.textOffset;el(r,u,0,c,l,s)}i&&dd(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=fn(r.font),o=ir(r.padding),s=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||je(n)?(l+=o.bottom,At(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:u,titleY:c,maxWidth:p,rotation:h}=bH(this,l,n,s);el(t,r.text,0,0,a,{color:r.color,maxWidth:p,rotation:h,textAlign:vH(s,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Me(t.grid&&t.grid.z,-1),i=Me(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Go.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a<o;++a){const s=n[a];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return fn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cu{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;CH(n)&&(r=this.register(n));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,yH(t,o,r),this.override&&_t.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in _t[i]&&(delete _t[i][r],this.override&&delete Fa[r])}}function yH(e,t,n){const r=Ks(Object.create(null),[n?_t.get(n):{},_t.get(t),e.defaults]);_t.set(t,r),e.defaultRoutes&&xH(t,e.defaultRoutes),e.descriptors&&_t.describe(t,e.descriptors)}function xH(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");_t.route(a,i,l,s)})}function CH(e){return"id"in e&&"defaults"in e}class EH{constructor(){this.controllers=new cu(Ea,"datasets",!0),this.elements=new cu(Ci,"elements"),this.plugins=new cu(Object,"plugins"),this.scales=new cu(Go,"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,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):rt(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=Dp(t);ft(r["before"+i],[],r),n[t](r),ft(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Tr=new EH;class SH{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,r,i){i=i||{};for(const a of t){const o=a.plugin,s=o[r],l=[n,i,a.options];if(ft(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){Qe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Me(r.options&&r.options.plugins,{}),a=wH(r);return i===!1&&!n?[]:_H(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function wH(e){const t={},n=[],r=Object.keys(Tr.plugins.items);for(let a=0;a<r.length;a++)n.push(Tr.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function IH(e,t){return!t&&e===!1?null:e===!0?{}:e}function _H(e,{plugins:t,localIds:n},r,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,u=IH(r[l],i);u!==null&&a.push({plugin:s,options:DH(e.config,{plugin:s,local:n[l]},u,o)})}return a}function DH(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function A0(e,t){const n=_t.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function TH(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function AH(e,t){return e===t?"_index_":"_value_"}function ly(e){if(e==="x"||e==="y"||e==="r")return e}function RH(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function R0(e,...t){if(ly(e))return e;for(const n of t){const r=n.axis||RH(n.position)||e.length>1&&ly(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function uy(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function BH(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return uy(e,"x",n[0])||uy(e,"y",n[0])}return{}}function kH(e,t){const n=Fa[e.type]||{scales:{}},r=t.scales||{},i=A0(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!je(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=R0(o,s,BH(o,e),_t.scales[s.type]),u=AH(l,i),c=n.scales||{};a[o]=bs(Object.create(null),[{axis:l},s,c[l],c[u]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||A0(s,t),c=(Fa[s]||{}).scales||{};Object.keys(c).forEach(p=>{const h=TH(p,l),d=o[h+"AxisID"]||h;a[d]=a[d]||Object.create(null),bs(a[d],[{axis:h},r[d],c[p]])})}),Object.keys(a).forEach(o=>{const s=a[o];bs(s,[_t.scales[s.type],_t.scale])}),a}function Iw(e){const t=e.options||(e.options={});t.plugins=Me(t.plugins,{}),t.scales=kH(e,t)}function _w(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function PH(e){return e=e||{},e.data=_w(e.data),Iw(e),e}const cy=new Map,Dw=new Set;function du(e,t){let n=cy.get(e);return n||(n=t(),cy.set(e,n),Dw.add(n)),n}const es=(e,t,n)=>{const r=$a(t,n);r!==void 0&&e.add(r)};class $H{constructor(t){this._config=PH(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=_w(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(),Iw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return du(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return du(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return du(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return du(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(p=>es(l,t,p))),c.forEach(p=>es(l,i,p)),c.forEach(p=>es(l,Fa[a]||{},p)),c.forEach(p=>es(l,_t,p)),c.forEach(p=>es(l,D0,p))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Dw.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Fa[n]||{},_t.datasets[n]||{},{type:n},_t,D0]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=dy(this._resolverCache,t,i);let l=o;if(NH(o,n)){a.$shared=!1,r=Ki(r)?r():r;const u=this.createResolver(t,r,s);l=ko(o,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=dy(this._resolverCache,t,r);return je(n)?ko(a,n,void 0,i):a}}function dy(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Pp(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,a)),a}const FH=e=>je(e)&&Object.getOwnPropertyNames(e).some(t=>Ki(e[t]));function NH(e,t){const{isScriptable:n,isIndexable:r}=ow(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Ki(s)||FH(s))||o&&At(s))return!0}return!1}var MH="4.5.0";const OH=["top","bottom","left","right","chartArea"];function fy(e,t){return e==="top"||e==="bottom"||OH.indexOf(e)===-1&&t==="x"}function hy(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function gy(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ft(n&&n.onComplete,[e],t)}function LH(e){const t=e.chart,n=t.options.animation;ft(n&&n.onProgress,[e],t)}function Tw(e){return Np()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const $u={},py=e=>{const t=Tw(e);return Object.values($u).filter(n=>n.canvas===t).pop()};function VH(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function HH(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}var Ai;let ja=(Ai=class{static register(...t){Tr.add(...t),my()}static unregister(...t){Tr.remove(...t),my()}constructor(t,n){const r=this.config=new $H(n),i=Tw(t),a=py(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||aH(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(this.id=LO(),this.ctx=s,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new SH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=iL(p=>this.update(p),o.resizeDelay||0),this._dataChanges=[],$u[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ei.listen(this,"complete",gy),ei.listen(this,"progress",LH),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return Qe(t)?n&&a?a:i?r/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}get registry(){return Tr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ob(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Fb(this.canvas,this.ctx),this}stop(){return ei.stop(this),this}resize(t,n){ei.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,a),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Ob(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),ft(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};rt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,s)=>(o[s]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const s=n[o],l=R0(o,s),u=l==="r",c=l==="x";return{options:s,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),rt(a,o=>{const s=o.options,l=s.id,u=R0(l,s),c=Me(s.type,o.dtype);(s.position===void 0||fy(s.position,u)!==fy(o.dposition))&&(s.position=o.dposition),i[l]=!0;let p=null;if(l in r&&r[l].type===c)p=r[l];else{const h=Tr.getScale(c);p=new h({id:l,type:c,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(s,t)}),rt(i,(o,s)=>{o||delete r[s]}),rt(r,o=>{rr.configure(this,o,o.options),rr.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(hy("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let o=this.getDatasetMeta(r);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=s,o.indexAxis=a.indexAxis||A0(s,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Tr.getController(s),{datasetElementType:u,dataElementType:c}=_t.datasets[s];Object.assign(l,{dataElementType:Tr.getElement(c),datasetElementType:u&&Tr.getElement(u)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){rt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:p}=this.getDatasetMeta(u),h=!i&&a.indexOf(p)===-1;p.buildOrUpdateElements(h),o=Math.max(+p.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||rt(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hy("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){rt(this.scales,t=>{rr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Ib(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const o=r==="_removeElements"?-a:a;VH(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!Ib(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;rr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],rt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Ki(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ei.has(this)?this.attached&&!ei.running(this)&&ei.start(this):(this.draw(),gy({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=mw(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&cd(n,i),t.controller.draw(),i&&dd(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Qs(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=OV.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);Zs(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(a,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ei.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Fb(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete $u[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};rt(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():o()}unbindEvents(){rt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},rt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,o,s,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const u=o&&this.getDatasetMeta(o.datasetIndex).controller;u&&u[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!bc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(p=>c.datasetIndex===p.datasetIndex&&c.index===p.index)),o=a(n,t),s=r?t:a(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,o=n,s=this._getActiveElements(t,i,r,o),l=WO(t),u=HH(t,this._lastEvent,r,l);r&&(this._lastEvent=null,ft(a.onHover,[t,s,this],this),l&&ft(a.onClick,[t,s,this],this));const c=!bc(s,i);return(c||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},Ce(Ai,"defaults",_t),Ce(Ai,"instances",$u),Ce(Ai,"overrides",Fa),Ce(Ai,"registry",Tr),Ce(Ai,"version",MH),Ce(Ai,"getChart",py),Ai);function my(){return rt(ja.instances,e=>e._plugins.invalidate())}function jH(e,t,n){const{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:l}=t,{borderWidth:u,borderJoinStyle:c}=l,p=Math.min(u/o,Nn(r-n));if(e.beginPath(),e.arc(i,a,o-u/2,r+p/2,n-p/2),s>0){const h=Math.min(u/s,Nn(r-n));e.arc(i,a,s+u/2,n-h/2,r+h/2,!0)}else{const h=Math.min(u/2,o*Nn(r-n));if(c==="round")e.arc(i,a,h,n-it/2,r+it/2,!0);else if(c==="bevel"){const d=2*h*h,v=-d*Math.cos(n+it/2)+i,m=-d*Math.sin(n+it/2)+a,b=d*Math.cos(r+it/2)+i,f=d*Math.sin(r+it/2)+a;e.lineTo(v,m),e.lineTo(b,f)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function zH(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+Nt,r-Nt),e.closePath(),e.clip()}function GH(e){return kp(e,["outerStart","outerEnd","innerStart","innerEnd"])}function WH(e,t,n,r){const i=GH(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const u=(n-Math.min(a,l))*r/2;return dn(l,0,Math.min(a,u))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:dn(i.innerStart,0,o),innerEnd:dn(i.innerEnd,0,o)}}function eo(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function wc(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:u,innerRadius:c}=t,p=Math.max(t.outerRadius+r+n-u,0),h=c>0?c+r+n+u:0;let d=0;const v=i-l;if(r){const $=c>0?c-r:0,k=p>0?p-r:0,O=($+k)/2,M=O!==0?v*O/(O+r):v;d=(v-M)/2}const m=Math.max(.001,v*p-n/it)/p,b=(v-m)/2,f=l+b+d,y=i-b-d,{outerStart:C,outerEnd:S,innerStart:w,innerEnd:E}=WH(t,h,p,y-f),x=p-C,g=p-S,I=f+C/x,T=y-S/g,_=h+w,A=h+E,F=f+w/_,B=y-E/A;if(e.beginPath(),a){const $=(I+T)/2;if(e.arc(o,s,p,I,$),e.arc(o,s,p,$,T),S>0){const G=eo(g,T,o,s);e.arc(G.x,G.y,S,T,y+Nt)}const k=eo(A,y,o,s);if(e.lineTo(k.x,k.y),E>0){const G=eo(A,B,o,s);e.arc(G.x,G.y,E,y+Nt,B+Math.PI)}const O=(y-E/h+(f+w/h))/2;if(e.arc(o,s,h,y-E/h,O,!0),e.arc(o,s,h,O,f+w/h,!0),w>0){const G=eo(_,F,o,s);e.arc(G.x,G.y,w,F+Math.PI,f-Nt)}const M=eo(x,f,o,s);if(e.lineTo(M.x,M.y),C>0){const G=eo(x,I,o,s);e.arc(G.x,G.y,C,f-Nt,I)}}else{e.moveTo(o,s);const $=Math.cos(I)*p+o,k=Math.sin(I)*p+s;e.lineTo($,k);const O=Math.cos(T)*p+o,M=Math.sin(T)*p+s;e.lineTo(O,M)}e.closePath()}function UH(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){wc(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%yt||yt))}return wc(e,t,n,r,l,i),e.fill(),l}function XH(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:p,borderDashOffset:h,borderRadius:d}=l,v=l.borderAlign==="inner";if(!u)return;e.setLineDash(p||[]),e.lineDashOffset=h,v?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let m=t.endAngle;if(a){wc(e,t,n,r,m,i);for(let b=0;b<a;++b)e.stroke();isNaN(s)||(m=o+(s%yt||yt))}v&&zH(e,t,m),l.selfJoin&&m-o>=it&&d===0&&c!=="miter"&&jH(e,t,m),a||(wc(e,t,n,r,m,i),e.stroke())}class ds extends Ci{constructor(n){super();Ce(this,"circumference");Ce(this,"endAngle");Ce(this,"fullCircles");Ce(this,"innerRadius");Ce(this,"outerRadius");Ce(this,"pixelMargin");Ce(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:o,distance:s}=JS(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:p,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,v=Me(h,u-l),m=Js(o,l,u)&&l!==u,b=v>=yt||m,f=ui(s,c+d,p+d);return b&&f}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:o,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,p=(a+o)/2,h=(s+l+c+u)/2;return{x:r+Math.cos(p)*h,y:i+Math.sin(p)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>yt?Math.floor(i/yt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(it,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,UH(n,this,c,o,s),XH(n,this,c,o,s),n.restore()}}Ce(ds,"id","arc"),Ce(ds,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),Ce(ds,"defaultRoutes",{backgroundColor:"backgroundColor"}),Ce(ds,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Aw(e,t,n=t){e.lineCap=Me(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Me(n.borderDash,t.borderDash)),e.lineDashOffset=Me(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Me(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Me(n.borderWidth,t.borderWidth),e.strokeStyle=Me(n.borderColor,t.borderColor)}function YH(e,t,n){e.lineTo(n.x,n.y)}function KH(e){return e.stepped?bL:e.tension||e.cubicInterpolationMode==="monotone"?yL:YH}function Rw(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),u=Math.min(a,s),c=i<o&&a<o||i>s&&a>s;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function ZH(e,t,n,r){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:u}=Rw(i,n,r),c=KH(a);let{move:p=!0,reverse:h}=r||{},d,v,m;for(d=0;d<=u;++d)v=i[(s+(h?u-d:d))%o],!v.skip&&(p?(e.moveTo(v.x,v.y),p=!1):c(e,m,v,h,a.stepped),m=v);return l&&(v=i[(s+(h?u:0))%o],c(e,m,v,h,a.stepped)),!!l}function qH(e,t,n,r){const i=t.points,{count:a,start:o,ilen:s}=Rw(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,p=0,h,d,v,m,b,f;const y=S=>(o+(u?s-S:S))%a,C=()=>{m!==b&&(e.lineTo(c,b),e.lineTo(c,m),e.lineTo(c,f))};for(l&&(d=i[y(0)],e.moveTo(d.x,d.y)),h=0;h<=s;++h){if(d=i[y(h)],d.skip)continue;const S=d.x,w=d.y,E=S|0;E===v?(w<m?m=w:w>b&&(b=w),c=(p*c+S)/++p):(C(),e.lineTo(S,w),v=E,p=0,m=b=w),f=w}C()}function B0(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?qH:ZH}function JH(e){return e.stepped?qL:e.tension||e.cubicInterpolationMode==="monotone"?JL:da}function QH(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Aw(e,t.options),e.stroke(i)}function ej(e,t,n,r){const{segments:i,options:a}=t,o=B0(t);for(const s of i)Aw(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const tj=typeof Path2D=="function";function nj(e,t,n,r){tj&&!t.options.segment?QH(e,t,n,r):ej(e,t,n,r)}class Fr extends Ci{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,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;zL(this._points,r,t,i,n),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=iV(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=pw(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=JH(r);let u,c;for(u=0,c=o.length;u<c;++u){const{start:p,end:h}=o[u],d=a[p],v=a[h];if(d===v){s.push(d);continue}const m=Math.abs((i-d[n])/(v[n]-d[n])),b=l(d,v,m,r.stepped);b[n]=t[n],s.push(b)}return s.length===1?s[0]:s}pathSegment(t,n,r){return B0(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=B0(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)o&=a(t,this,s,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),nj(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Ce(Fr,"id","line"),Ce(Fr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Ce(Fr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Ce(Fr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function vy(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class Sa extends Ci{constructor(n){super();Ce(this,"parsed");Ce(this,"skip");Ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(r-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return vy(this,n,"x",r)}inYRange(n,r){return vy(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!Qs(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,T0(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}Ce(Sa,"id","point"),Ce(Sa,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Ce(Sa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Bw(e,t){const{x:n,y:r,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,u,c,p;return e.horizontal?(p=o/2,s=Math.min(n,i),l=Math.max(n,i),u=r-p,c=r+p):(p=a/2,s=n-p,l=n+p,u=Math.min(r,i),c=Math.max(r,i)),{left:s,top:u,right:l,bottom:c}}function Hi(e,t,n,r){return e?0:dn(t,n,r)}function rj(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=aw(r);return{t:Hi(i.top,a.top,0,n),r:Hi(i.right,a.right,0,t),b:Hi(i.bottom,a.bottom,0,n),l:Hi(i.left,a.left,0,t)}}function ij(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Co(i),o=Math.min(t,n),s=e.borderSkipped,l=r||je(i);return{topLeft:Hi(!l||s.top||s.left,a.topLeft,0,o),topRight:Hi(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Hi(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Hi(!l||s.bottom||s.right,a.bottomRight,0,o)}}function aj(e){const t=Bw(e),n=t.right-t.left,r=t.bottom-t.top,i=rj(e,n/2,r/2),a=ij(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function uh(e,t,n,r){const i=t===null,a=n===null,s=e&&!(i&&a)&&Bw(e,r);return s&&(i||ui(t,s.left,s.right))&&(a||ui(n,s.top,s.bottom))}function oj(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function sj(e,t){e.rect(t.x,t.y,t.w,t.h)}function ch(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class Fu extends Ci{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:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:o}=aj(this),s=oj(o.radius)?Cc:sj;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,ch(o,n,a)),t.clip(),s(t,ch(a,-n,o)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),s(t,ch(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return uh(this,t,n,r)}inXRange(t,n){return uh(this,t,null,n)}inYRange(t,n){return uh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Ce(Fu,"id","bar"),Ce(Fu,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Ce(Fu,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function lj(e,t,n){const r=e.segments,i=e.points,a=t.points,o=[];for(const s of r){let{start:l,end:u}=s;u=gd(l,u,i);const c=k0(n,i[l],i[u],s.loop);if(!t.segments){o.push({source:s,target:c,start:i[l],end:i[u]});continue}const p=pw(t,c);for(const h of p){const d=k0(n,a[h.start],a[h.end],h.loop),v=gw(s,i,d);for(const m of v)o.push({source:m,target:h,start:{[n]:by(c,d,"start",Math.max)},end:{[n]:by(c,d,"end",Math.min)}})}}return o}function k0(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=Nn(i),a=Nn(a)),{property:e,start:i,end:a}}function uj(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:o,end:s})=>{s=gd(o,s,i);const l=i[o],u=i[s];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function gd(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function by(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function kw(e,t){let n=[],r=!1;return At(e)?(r=!0,n=e):n=uj(e,t),n.length?new Fr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function yy(e){return e&&e.fill!==!1}function cj(e,t,n){let i=e[t].fill;const a=[t];let o;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!hn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;a.push(i),i=o.fill}return!1}function dj(e,t,n){const r=pj(e);if(je(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return hn(i)&&Math.floor(i)===i?fj(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function fj(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function hj(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:je(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function gj(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:je(e)?r=e.value:r=t.getBaseValue(),r}function pj(e){const t=e.options,n=t.fill;let r=Me(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function mj(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=vj(t,n);s.push(kw({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)bj(i,o[c],s)}return new Fr({points:i,options:{}})}function vj(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function bj(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:o,last:s,point:l}=yj(a,t,"x");if(!(!l||o&&s)){if(o)r.unshift(l);else if(e.push(l),!s)break}}e.push(...r)}function yj(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,o=e.points;let s=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],p=o[c.start][n],h=o[c.end][n];if(ui(i,p,h)){s=i===p,l=i===h;break}}return{first:s,last:l,point:r}}class Pw{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:o}=this;return n=n||{start:0,end:yt},t.arc(i,a,o,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function xj(e){const{chart:t,fill:n,line:r}=e;if(hn(n))return Cj(t,n);if(n==="stack")return mj(e);if(n==="shape")return!0;const i=Ej(e);return i instanceof Pw?i:kw(i,r)}function Cj(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Ej(e){return(e.scale||{}).getPointPositionForValue?wj(e):Sj(e)}function Sj(e){const{scale:t={},fill:n}=e,r=hj(n,t);if(hn(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function wj(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,o=gj(n,t,a),s=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new Pw({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)s.push(t.getPointPositionForValue(l,o));return s}function dh(e,t,n){const r=xj(t),{chart:i,index:a,line:o,scale:s,axis:l}=t,u=o.options,c=u.fill,p=u.backgroundColor,{above:h=p,below:d=p}=c||{},v=i.getDatasetMeta(a),m=mw(i,v);r&&o.points.length&&(cd(e,n),Ij(e,{line:o,target:r,above:h,below:d,area:n,scale:s,axis:l,clip:m}),dd(e))}function Ij(e,t){const{line:n,target:r,above:i,below:a,area:o,scale:s,clip:l}=t,u=n._loop?"angle":t.axis;e.save();let c=a;a!==i&&(u==="x"?(xy(e,r,o.top),fh(e,{line:n,target:r,color:i,scale:s,property:u,clip:l}),e.restore(),e.save(),xy(e,r,o.bottom)):u==="y"&&(Cy(e,r,o.left),fh(e,{line:n,target:r,color:a,scale:s,property:u,clip:l}),e.restore(),e.save(),Cy(e,r,o.right),c=i)),fh(e,{line:n,target:r,color:c,scale:s,property:u,clip:l}),e.restore()}function xy(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],p=i[gd(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(p.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Cy(e,t,n){const{segments:r,points:i}=t;let a=!0,o=!1;e.beginPath();for(const s of r){const{start:l,end:u}=s,c=i[l],p=i[gd(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(n,c.y),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,s,{move:o}),o?e.closePath():e.lineTo(n,p.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function fh(e,t){const{line:n,target:r,property:i,color:a,scale:o,clip:s}=t,l=lj(n,r,i);for(const{source:u,target:c,start:p,end:h}of l){const{style:{backgroundColor:d=a}={}}=u,v=r!==!0;e.save(),e.fillStyle=d,_j(e,o,s,v&&k0(i,p,h)),e.beginPath();const m=!!n.pathSegment(e,u);let b;if(v){m?e.closePath():Ey(e,r,h,i);const f=!!r.pathSegment(e,c,{move:m,reverse:!0});b=m&&f,b||Ey(e,r,p,i)}e.closePath(),e.fill(b?"evenodd":"nonzero"),e.restore()}}function _j(e,t,n,r){const i=t.chart.chartArea,{property:a,start:o,end:s}=r||{};if(a==="x"||a==="y"){let l,u,c,p;a==="x"?(l=o,u=i.top,c=s,p=i.bottom):(l=i.left,u=o,c=i.right,p=s),e.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),p=Math.min(p,n.bottom)),e.rect(l,u,c-l,p-u),e.clip()}}function Ey(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var $w={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,o,s,l;for(o=0;o<r;++o)a=e.getDatasetMeta(o),s=a.dataset,l=null,s&&s.options&&s instanceof Fr&&(l={visible:e.isDatasetVisible(o),index:o,fill:dj(s,o,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=cj(i,o,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&s.fill&&dh(e.ctx,s,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;yy(a)&&dh(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!yy(r)||n.drawTime!=="beforeDatasetDraw"||dh(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Sy=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Dj=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class wy extends Ci{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,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 n=ft(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=fn(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Sy(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,a,s,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,s,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+s;let p=t;a.textAlign="left",a.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach((v,m)=>{const b=r+n/2+a.measureText(v.text).width;(m===0||u[u.length-1]+b+2*s>o)&&(p+=c,u[u.length-(m>0?0:1)]=0,d+=c,h++),l[m]={left:0,top:d,row:h,width:b,height:i},u[u.length-1]+=b+s}),p}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let p=s,h=0,d=0,v=0,m=0;return this.legendItems.forEach((b,f)=>{const{itemWidth:y,itemHeight:C}=Tj(r,n,a,b,i);f>0&&d+C+2*s>c&&(p+=h+s,u.push({width:h,height:d}),v+=h+s,m++,h=d=0),l[f]={left:v,top:d,col:m,width:y,height:C},h=Math.max(h,y),d+=C+s}),p+=h,u.push({width:h,height:d}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=Eo(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=un(r,this.left+i,this.right-this.lineWidths[s]);for(const u of n)s!==u.row&&(s=u.row,l=un(r,this.left+i,this.right-this.lineWidths[s])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let s=0,l=un(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const u of n)u.col!==s&&(s=u.col,l=un(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;cd(t,this),this._draw(),dd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=_t.color,l=Eo(t.rtl,this.left,this.width),u=fn(o.font),{padding:c}=o,p=u.size,h=p/2;let d;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:v,boxHeight:m,itemHeight:b}=Sy(o,p),f=function(E,x,g){if(isNaN(v)||v<=0||isNaN(m)||m<0)return;i.save();const I=Me(g.lineWidth,1);if(i.fillStyle=Me(g.fillStyle,s),i.lineCap=Me(g.lineCap,"butt"),i.lineDashOffset=Me(g.lineDashOffset,0),i.lineJoin=Me(g.lineJoin,"miter"),i.lineWidth=I,i.strokeStyle=Me(g.strokeStyle,s),i.setLineDash(Me(g.lineDash,[])),o.usePointStyle){const T={radius:m*Math.SQRT2/2,pointStyle:g.pointStyle,rotation:g.rotation,borderWidth:I},_=l.xPlus(E,v/2),A=x+h;iw(i,T,_,A,o.pointStyleWidth&&v)}else{const T=x+Math.max((p-m)/2,0),_=l.leftForLtr(E,v),A=Co(g.borderRadius);i.beginPath(),Object.values(A).some(F=>F!==0)?Cc(i,{x:_,y:T,w:v,h:m,radius:A}):i.rect(_,T,v,m),i.fill(),I!==0&&i.stroke()}i.restore()},y=function(E,x,g){el(i,g.text,E,x+b/2,u,{strikethrough:g.hidden,textAlign:l.textAlign(g.textAlign)})},C=this.isHorizontal(),S=this._computeTitleHeight();C?d={x:un(a,this.left+c,this.right-r[0]),y:this.top+c+S,line:0}:d={x:this.left+c,y:un(a,this.top+S+c,this.bottom-n[0].height),line:0},dw(this.ctx,t.textDirection);const w=b+c;this.legendItems.forEach((E,x)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const g=i.measureText(E.text).width,I=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),T=v+h+g;let _=d.x,A=d.y;l.setWidth(this.width),C?x>0&&_+T+c>this.right&&(A=d.y+=w,d.line++,_=d.x=un(a,this.left+c,this.right-r[d.line])):x>0&&A+w>this.bottom&&(_=d.x=_+n[d.line].width+c,d.line++,A=d.y=un(a,this.top+S+c,this.bottom-n[d.line].height));const F=l.x(_);if(f(F,A,E),_=aL(I,_+v+h,C?_+T:this.right,t.rtl),y(l.x(_),A,E),C)d.x+=T+c;else if(typeof E.text!="string"){const B=u.lineHeight;d.y+=Fw(E,B)+c}else d.y+=w}),fw(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=fn(n.font),i=ir(n.padding);if(!n.display)return;const a=Eo(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,u=i.top+l;let c,p=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,p=un(t.align,p,this.right-h);else{const v=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);c=u+un(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const d=un(s,p,p+h);o.textAlign=a.textAlign(Ap(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,el(o,n.text,d,c,r)}_computeTitleHeight(){const t=this.options.title,n=fn(t.font),r=ir(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(ui(t,this.left,this.right)&&ui(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],ui(t,i.left,i.left+i.width)&&ui(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!Bj(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=Dj(i,r);i&&!a&&ft(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&ft(n.onHover,[t,r,this],this)}else r&&ft(n.onClick,[t,r,this],this)}}function Tj(e,t,n,r,i){const a=Aj(r,e,t,n),o=Rj(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}function Aj(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function Rj(e,t,n){let r=e;return typeof t.text!="string"&&(r=Fw(t,n)),r}function Fw(e,t){const n=e.text?e.text.length:0;return t*n}function Bj(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Nw={id:"legend",_element:wy,start(e,t,n){const r=e.legend=new wy({ctx:e.ctx,options:n,chart:e});rr.configure(e,r,n),rr.addBox(e,r)},stop(e){rr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;rr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=ir(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(s||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Mw extends Ci{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=At(r.text)?r.text.length:1;this._padding=ir(r.padding);const a=i*fn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,u,c,p;return this.isHorizontal()?(c=un(s,r,a),p=n+t,u=a-r):(o.position==="left"?(c=r+t,p=un(s,i,n),l=it*-.5):(c=a-t,p=un(s,n,i),l=it*.5),u=i-n),{titleX:c,titleY:p,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=fn(n.font),a=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:l,rotation:u}=this._drawArgs(a);el(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Ap(n.align),textBaseline:"middle",translation:[o,s]})}}function kj(e,t){const n=new Mw({ctx:e.ctx,options:t,chart:e});rr.configure(e,n,t),rr.addBox(e,n),e.titleBlock=n}var Ow={id:"title",_element:Mw,start(e,t,n){kj(e,n)},stop(e){const t=e.titleBlock;rr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;rr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const fs={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=_0(t,u);c<i&&(i=c,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function _r(e,t){return t&&(At(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ti(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
180
180
|
`)>-1?e.split(`
|
|
181
|
-
`):e}function kj(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Iy(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=fn(t.bodyFont),u=fn(t.titleFont),c=fn(t.footerFont),p=a.length,h=i.length,d=r.length,v=ir(t.padding);let m=v.height,b=0,f=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(f+=e.beforeBody.length+e.afterBody.length,p&&(m+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),f){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=d*S+(f-d)*l.lineHeight+(f-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(S){b=Math.max(b,n.measureText(S).width+y)};return n.save(),n.font=u.string,rt(e.title,C),n.font=l.string,rt(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?o+2+t.boxPadding:0,rt(r,S=>{rt(S.before,C),rt(S.lines,C),rt(S.after,C)}),y=0,n.font=c.string,rt(e.footer,C),n.restore(),b+=v.width,{width:b,height:m}}function Pj(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function $j(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function Fj(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),$j(u,e,t,n)&&(u="center"),u}function _y(e,t,n){const r=n.yAlign||t.yAlign||Pj(e,n);return{xAlign:n.xAlign||t.xAlign||Fj(e,t,n,r),yAlign:r}}function Nj(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Mj(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Dy(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:p,bottomLeft:h,bottomRight:d}=Co(o);let v=Nj(t,s);const m=Mj(t,l,u);return l==="center"?s==="left"?v+=u:s==="right"&&(v-=u):s==="left"?v-=Math.max(c,h)+i:s==="right"&&(v+=Math.max(p,d)+i),{x:dn(v,0,r.width-t.width),y:dn(m,0,r.height-t.height)}}function fu(e,t,n){const r=ir(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ty(e){return _r([],ti(e))}function Oj(e,t,n){return Ha(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Ay(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Lw={beforeTitle:Jr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Jr,beforeBody:Jr,beforeLabel:Jr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Qe(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Jr,afterBody:Jr,beforeFooter:Jr,footer:Jr,afterFooter:Jr};function _n(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Lw[t].call(n,r):i}var Eh;let Ry=(Eh=class extends Ci{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new vw(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Oj(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=_n(r,"beforeTitle",this,t),a=_n(r,"title",this,t),o=_n(r,"afterTitle",this,t);let s=[];return s=_r(s,ti(i)),s=_r(s,ti(a)),s=_r(s,ti(o)),s}getBeforeBody(t,n){return Ty(_n(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return rt(t,a=>{const o={before:[],lines:[],after:[]},s=Ay(r,a);_r(o.before,ti(_n(s,"beforeLabel",this,a))),_r(o.lines,_n(s,"label",this,a)),_r(o.after,ti(_n(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Ty(_n(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=_n(r,"beforeFooter",this,t),a=_n(r,"footer",this,t),o=_n(r,"afterFooter",this,t);let s=[];return s=_r(s,ti(i)),s=_r(s,ti(a)),s=_r(s,ti(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(kj(this.chart,n[l]));return t.filter&&(s=s.filter((c,p,h)=>t.filter(c,p,h,r))),t.itemSort&&(s=s.sort((c,p)=>t.itemSort(c,p,r))),rt(s,c=>{const p=Ay(t.callbacks,c);i.push(_n(p,"labelColor",this,c)),a.push(_n(p,"labelPointStyle",this,c)),o.push(_n(p,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=fs[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Iy(this,r),u=Object.assign({},s,l),c=_y(this.chart,r,u),p=Dy(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:p.x,y:p.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:p}=Co(s),{x:h,y:d}=t,{width:v,height:m}=n;let b,f,y,C,S,w;return a==="center"?(S=d+m/2,i==="left"?(b=h,f=b-o,C=S+o,w=S-o):(b=h+v,f=b+o,C=S-o,w=S+o),y=b):(i==="left"?f=h+Math.max(l,c)+o:i==="right"?f=h+v-Math.max(u,p)-o:f=this.caretX,a==="top"?(C=d,S=C-o,b=f-o,y=f+o):(C=d+m,S=C+o,b=f+o,y=f-o),w=C),{x1:b,x2:f,x3:y,y1:C,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=Eo(r.rtl,this.x,this.width);for(t.x=fu(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=fn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=fn(a.bodyFont),p=fu(this,"left",a),h=i.x(p),d=l<c.lineHeight?(c.lineHeight-l)/2:0,v=n.y+d;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,f=v+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,T0(t,m,b,f),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,T0(t,m,b,f)}else{t.lineWidth=je(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),f=Co(o.borderRadius);Object.values(f).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Cc(t,{x:m,y:v,w:u,h:l,radius:f}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Cc(t,{x:b,y:v+1,w:u-2,h:l-2,radius:f}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,v,u,l),t.strokeRect(m,v,u,l),t.fillStyle=o.backgroundColor,t.fillRect(b,v+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,p=fn(r.bodyFont);let h=p.lineHeight,d=0;const v=Eo(r.rtl,this.x,this.width),m=function(g){n.fillText(g,v.x(t.x+d),t.y+h/2),t.y+=h+a},b=v.textAlign(o);let f,y,C,S,w,E,x;for(n.textAlign=o,n.textBaseline="middle",n.font=p.string,t.x=fu(this,b,r),n.fillStyle=r.bodyColor,rt(this.beforeBody,m),d=s&&b!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,E=i.length;S<E;++S){for(f=i[S],y=this.labelTextColors[S],n.fillStyle=y,rt(f.before,m),C=f.lines,s&&C.length&&(this._drawColorBox(n,t,S,v,r),h=Math.max(p.lineHeight,l)),w=0,x=C.length;w<x;++w)m(C[w]),h=p.lineHeight;rt(f.after,m)}d=0,h=p.lineHeight,rt(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=Eo(r.rtl,this.x,this.width);for(t.x=fu(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=fn(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:p,topRight:h,bottomLeft:d,bottomRight:v}=Co(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+p,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-v),n.quadraticCurveTo(s+u,l+c,s+u-v,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+d,l+c),n.quadraticCurveTo(s,l+c,s,l+c-d),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+p),n.quadraticCurveTo(s,l,s+p,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=fs[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Iy(this,t),l=Object.assign({},o,this._size),u=_y(n,t,l),c=Dy(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=ir(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),dw(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),fw(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!bc(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!bc(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=fs[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},Ce(Eh,"positioners",fs),Eh);var nl={id:"tooltip",_element:Ry,positioners:fs,afterInit(e,t,n){n&&(e.tooltip=new Ry({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:Lw},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Lj=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Vj(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Lj(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const Hj=(e,t)=>e===null?null:dn(Math.round(e),0,t);function By(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class $o extends Go{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Qe(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Vj(r,t,Me(n,t),this._addedLabels),Hj(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return By.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Ce($o,"id","category"),Ce($o,"defaults",{ticks:{callback:By}});function jj(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:p,includeBounds:h}=e,d=a||1,v=c-1,{min:m,max:b}=t,f=!Qe(o),y=!Qe(s),C=!Qe(u),S=(b-m)/(p+1);let w=Db((b-m)/v/d)*d,E,x,g,I;if(w<1e-14&&!f&&!y)return[{value:m},{value:b}];I=Math.ceil(b/w)-Math.floor(m/w),I>v&&(w=Db(I*w/v/d)*d),Qe(l)||(E=Math.pow(10,l),w=Math.ceil(w*E)/E),i==="ticks"?(x=Math.floor(m/w)*w,g=Math.ceil(b/w)*w):(x=m,g=b),f&&y&&a&&KO((s-o)/a,w/1e3)?(I=Math.round(Math.min((s-o)/w,c)),w=(s-o)/I,x=o,g=s):C?(x=f?o:x,g=y?s:g,I=u-1,w=(g-x)/I):(I=(g-x)/w,ys(I,Math.round(I),w/1e3)?I=Math.round(I):I=Math.ceil(I));const T=Math.max(Tb(w),Tb(x));E=Math.pow(10,Qe(l)?T:l),x=Math.round(x*E)/E,g=Math.round(g*E)/E;let _=0;for(f&&(h&&x!==o?(n.push({value:o}),x<o&&_++,ys(Math.round((x+_*w)*E)/E,o,ky(o,S,e))&&_++):x<o&&_++);_<I;++_){const A=Math.round((x+_*w)*E)/E;if(y&&A>s)break;n.push({value:A})}return y&&h&&g!==s?n.length&&ys(n[n.length-1].value,s,ky(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!y||g===s)&&n.push({value:g}),n}function ky(e,t,{horizontal:n,minRotation:r}){const i=li(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class zj extends Go{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,n){return Qe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Vr(i),u=Vr(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=jj(i,a);return t.bounds==="ticks"&&ZO(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Bp(t,this.chart.options.locale,this.options.ticks.format)}}class Fo extends zj{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=hn(t)?t:0,this.max=hn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=li(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ce(Fo,"id","linear"),Ce(Fo,"defaults",{ticks:{callback:rw.formatters.numeric}});const pd={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}},Tn=Object.keys(pd);function Py(e,t){return e-t}function $y(e,t){if(Qe(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(qs(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Fy(e,t,n,r){const i=Tn.length;for(let a=Tn.indexOf(e);a<i-1;++a){const o=pd[Tn[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Tn[a]}return Tn[i-1]}function Gj(e,t,n,r,i){for(let a=Tn.length-1;a>=Tn.indexOf(n);a--){const o=Tn[a];if(pd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Tn[n?Tn.indexOf(n):0]}function Wj(e){for(let t=Tn.indexOf(e)+1,n=Tn.length;t<n;++t)if(pd[Tn[t]].common)return Tn[t]}function Ny(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Tp(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function Uj(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function My(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:Uj(e,r,i,n)}class Ic extends Go{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,n={}){const r=t.time||(t.time={}),i=this._adapter=new kV._date(t.adapters.date);i.init(n),bs(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:$y(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=hn(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=tL(i,a,o);return this._unit=n.unit||(r.autoSkip?Fy(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Gj(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Wj(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),My(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=dn(n,0,o),r=dn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||Fy(a.minUnit,n,r,this._getLabelCapacity(n)),s=Me(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=qs(l)||l===!0,c={};let p=n,h,d;if(u&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(h=p,d=0;h<r;h=+t.add(h,s,o),d++)Ny(c,h,v);return(h===r||i.bounds==="ticks"||d===1)&&Ny(c,h,v),Object.keys(c).sort(Py).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return ft(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],p=u&&s[u],h=r[n],d=u&&p&&h&&h.major;return this._adapter.format(t,i||(d?p:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=li(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,My(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push($y(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ew(t.sort(Py))}}Ce(Ic,"id","time"),Ce(Ic,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hu(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=ba(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=ba(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Oy extends Ic{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hu(n,this.min),this._tableRange=hu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hu(this._table,r*this._tableRange+this._minPos,!0)}}Ce(Oy,"id","timeseries"),Ce(Oy,"defaults",Ic.defaults);const Vw="label";function Ly(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Xj(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Hw(e,t){e.labels=t}function jw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vw;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function Yj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vw;const n={labels:[],datasets:[]};return Hw(n,e.labels),jw(n,e.datasets,t),n}function Kj(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:p,...h}=e,d=N.useRef(null),v=N.useRef(null),m=()=>{d.current&&(v.current=new ja(d.current,{type:o,data:Yj(s,a),options:l&&{...l},plugins:u}),Ly(t,v.current))},b=()=>{Ly(t,null),v.current&&(v.current.destroy(),v.current=null)};return N.useEffect(()=>{!i&&v.current&&l&&Xj(v.current,l)},[i,l]),N.useEffect(()=>{!i&&v.current&&Hw(v.current.config.data,s.labels)},[i,s.labels]),N.useEffect(()=>{!i&&v.current&&s.datasets&&jw(v.current.config.data,s.datasets,a)},[i,s.datasets]),N.useEffect(()=>{v.current&&(i?(b(),setTimeout(m)):v.current.update(p))},[i,l,s.labels,s.datasets,p]),N.useEffect(()=>{v.current&&(b(),setTimeout(m))},[o]),N.useEffect(()=>(m(),()=>b()),[]),N.createElement("canvas",{ref:d,role:"img",height:n,width:r,...h},c)}const Zj=N.forwardRef(Kj);function Lp(e,t){return ja.register(t),N.forwardRef((n,r)=>N.createElement(Zj,{...n,ref:r,type:e}))}const zw=Lp("line",ku),qj=Lp("bar",Bu),Vy=Lp("doughnut",us);ja.register($o,Fo,Sa,Fr,ds,Ow,nl,Nw);const Hy=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var _;const S=[].concat(t),w=S.length,E=u.font;let x=0,g=0,I;for(I=0;I<w;++I)u.font=S[I].font,x=Math.max(u.measureText(S[I].text).width,x),g+=(_=S[I].font)==null?void 0:_.lineHeight;return u.font=E,{height:g,width:x}},p=(S,w)=>{let E=document.createElement("div");document.body.appendChild(E),E.style.fontSize=`${w}px`,E.style.position="absolute",E.style.left="-10",E.style.top="-10",E.textContent=S;const x={width:E.clientWidth,height:E.clientHeight};return document.body.removeChild(E),E=null,x},h=c(),d=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const v=(e.chartArea.left+e.chartArea.right)/2,b=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let f;const y=t.length;let C=0;for(f=0;f<y;++f){let S=(i=t[f].font)==null?void 0:i.size,w=(a=t[f].font)==null?void 0:a.lineHeight;const E=typeof t[f].text=="number"?t[f].text.toString():t[f].text;for(;p(E,S).width>d+(t[f].id==="value"?50:0);)S-=1,w=p(E,S).height;E.length>22&&w<14&&(w=18);const x=b+w/2+C,g=typeof t[f].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[f].text):t[f].text;let I=t[f].urlIconDesc?" ":"";if(t[f].percentage!==void 0?I+=`${t[f].percentage}% ${t[f].text}`:I+=g,u.fillStyle=t[f].color,u.font=`${S<10?10:S}px sans-serif`,C+=w,t[f].percentage!==void 0&&t[f].urlIconDesc){const T=((s=(o=t[f])==null?void 0:o.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[f].urlIconDesc,u.drawImage(_,45-(T>6?T+2:T-2.5),x-8,16,14)}u.fillText(I,v,x)}u.restore(),u.save()}},Jj=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:p="backgroundColor",className:h})=>{const d={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[p])}]},v={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const f=m.tooltip;if(f.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),f.yAlign?b.classList.add(f.yAlign):b.classList.add("no-transform");const y=t.filter(x=>!x[u]),C=t.filter(x=>x[c]>0&&x[c]<1);if(y.length===1&&C.length===1)return;function S(x){return x.lines}if(f.body){const x=f.title||[];let g=f.body.map(S),I="<thead>";x.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",I+=`<tr><span style="${A}">${_}</span></tr>`}),I+="</thead><tbody>",g.length>1&&g[0][0]===g[1][0]&&(g=[g[0]]),g.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const F=`<span style="${A}">${_}</span>`;I+=`<tr><td>${F}</td></tr>`}),I+="</tbody>";const T=b.querySelector("table");T&&(T.innerHTML=I)}const w=m.chart.canvas.getBoundingClientRect(),E=w.top+window.pageYOffset+f.caretY;b.style.opacity="1",b.style.border="solid 1px #0163C8",b.style.background="white",b.style.height="fit-content",b.style.borderRadius="10px",b.style.position="absolute",b.style.zIndex="10",b.style.padding="4px 0",b.style.left=`${w.left+window.pageXOffset+f.caretX-80}px`,b.style.top=`${E>300&&!s?280:E}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const b=t[m[0].dataIndex];return b==null?void 0:b[u]},label(m){const b=t==null?void 0:t[m.dataIndex];let f="Nilai: ";return b&&(f+=b.value),f}}}},elements:{arc:{borderWidth:0}}};return P.jsxs("div",{className:h??"",children:[!s&&P.jsx(Vy,{data:d,redraw:i,plugins:[{id:"draw",beforeDraw(m){Hy(m,o)}}],options:Object.keys(r).length>1?r:v}),s&&P.jsx(Vy,{data:d,redraw:i,plugins:[{id:"draw",beforeDraw(m){Hy(m,o.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:v})]})},gu=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},Qj=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:p="date-picker-popover",floatingOptions:h={},offsetPopover:d=5,zIndexPopper:v=1,hiddenHeader:m})=>{const{locale:b}=yr(),f=N.useRef(null),y=gu(i),C=gu(a),S=w=>{var E;typeof l=="function"&&(l({month:w.month,year:w.year}),(E=f.current)==null||E.setShow(!1))};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:c,onClick:w=>{var E;w.stopPropagation(),(E=f.current)==null||E.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),P.jsx("div",{className:o??"",children:P.jsx(bi,{zIndex:v,ref:f,offset:d,id:p,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:P.jsx(bp,{locale:"id-ID",children:P.jsx(sd,{minValue:y,maxValue:C,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:b,value:gu(`${t}/${e}/1`),createCalendar:yl,defaultValue:gu(`${t}/${e}/1`),onChange:S,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},ez=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=N.useRef(null);return N.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),P.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:P.jsx(ld,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},tz="_input_qgcle_217",nz="_error_qgcle_321",Kn={"container-l":"_container-l_qgcle_217","container-input":"_container-input_qgcle_217",input:tz,"container-s":"_container-s_qgcle_235","container-xs":"_container-xs_qgcle_253","label-error":"_label-error_qgcle_271",error:nz,"isset-right-icon":"_isset-right-icon_qgcle_330","isset-left-icon":"_isset-left-icon_qgcle_334","start-icon":"_start-icon_qgcle_338","end-icon":"_end-icon_qgcle_345"},Vp=N.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},p)=>{const h={size:{l:Kn["container-l"],s:Kn["container-s"],xs:Kn["container-xs"]}},d=()=>typeof i=="function"||N.isValidElement(i),v=()=>typeof a=="function"||N.isValidElement(a);return P.jsxs("div",{className:`${h.size[s]} ${t}`,children:[P.jsxs("div",{className:`${Kn["container-input"]}`,children:[P.jsxs("div",{className:Kn["start-icon"],children:[typeof i=="function"&&i(),N.isValidElement(i)&&i]}),P.jsx("input",{id:n??e,className:`${Kn.input} ${o?Kn.error:""}
|
|
181
|
+
`):e}function Pj(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Iy(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=fn(t.bodyFont),u=fn(t.titleFont),c=fn(t.footerFont),p=a.length,h=i.length,d=r.length,v=ir(t.padding);let m=v.height,b=0,f=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(f+=e.beforeBody.length+e.afterBody.length,p&&(m+=p*u.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),f){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=d*S+(f-d)*l.lineHeight+(f-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(S){b=Math.max(b,n.measureText(S).width+y)};return n.save(),n.font=u.string,rt(e.title,C),n.font=l.string,rt(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?o+2+t.boxPadding:0,rt(r,S=>{rt(S.before,C),rt(S.lines,C),rt(S.after,C)}),y=0,n.font=c.string,rt(e.footer,C),n.restore(),b+=v.width,{width:b,height:m}}function $j(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Fj(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function Nj(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return r==="center"?u=i<=(s+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),Fj(u,e,t,n)&&(u="center"),u}function _y(e,t,n){const r=n.yAlign||t.yAlign||$j(e,n);return{xAlign:n.xAlign||t.xAlign||Nj(e,t,n,r),yAlign:r}}function Mj(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Oj(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Dy(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+a,{topLeft:c,topRight:p,bottomLeft:h,bottomRight:d}=Co(o);let v=Mj(t,s);const m=Oj(t,l,u);return l==="center"?s==="left"?v+=u:s==="right"&&(v-=u):s==="left"?v-=Math.max(c,h)+i:s==="right"&&(v+=Math.max(p,d)+i),{x:dn(v,0,r.width-t.width),y:dn(m,0,r.height-t.height)}}function fu(e,t,n){const r=ir(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ty(e){return _r([],ti(e))}function Lj(e,t,n){return Ha(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Ay(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Lw={beforeTitle:Jr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Jr,beforeBody:Jr,beforeLabel:Jr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Qe(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Jr,afterBody:Jr,beforeFooter:Jr,footer:Jr,afterFooter:Jr};function _n(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Lw[t].call(n,r):i}var Eh;let Ry=(Eh=class extends Ci{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new vw(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=Lj(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=_n(r,"beforeTitle",this,t),a=_n(r,"title",this,t),o=_n(r,"afterTitle",this,t);let s=[];return s=_r(s,ti(i)),s=_r(s,ti(a)),s=_r(s,ti(o)),s}getBeforeBody(t,n){return Ty(_n(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return rt(t,a=>{const o={before:[],lines:[],after:[]},s=Ay(r,a);_r(o.before,ti(_n(s,"beforeLabel",this,a))),_r(o.lines,_n(s,"label",this,a)),_r(o.after,ti(_n(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Ty(_n(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=_n(r,"beforeFooter",this,t),a=_n(r,"footer",this,t),o=_n(r,"afterFooter",this,t);let s=[];return s=_r(s,ti(i)),s=_r(s,ti(a)),s=_r(s,ti(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,u;for(l=0,u=n.length;l<u;++l)s.push(Pj(this.chart,n[l]));return t.filter&&(s=s.filter((c,p,h)=>t.filter(c,p,h,r))),t.itemSort&&(s=s.sort((c,p)=>t.itemSort(c,p,r))),rt(s,c=>{const p=Ay(t.callbacks,c);i.push(_n(p,"labelColor",this,c)),a.push(_n(p,"labelPointStyle",this,c)),o.push(_n(p,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=fs[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Iy(this,r),u=Object.assign({},s,l),c=_y(this.chart,r,u),p=Dy(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:p.x,y:p.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:p}=Co(s),{x:h,y:d}=t,{width:v,height:m}=n;let b,f,y,C,S,w;return a==="center"?(S=d+m/2,i==="left"?(b=h,f=b-o,C=S+o,w=S-o):(b=h+v,f=b+o,C=S-o,w=S+o),y=b):(i==="left"?f=h+Math.max(l,c)+o:i==="right"?f=h+v-Math.max(u,p)-o:f=this.caretX,a==="top"?(C=d,S=C-o,b=f-o,y=f+o):(C=d+m,S=C+o,b=f+o,y=f-o),w=C),{x1:b,x2:f,x3:y,y1:C,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const u=Eo(r.rtl,this.x,this.width);for(t.x=fu(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=fn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,a){const o=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=fn(a.bodyFont),p=fu(this,"left",a),h=i.x(p),d=l<c.lineHeight?(c.lineHeight-l)/2:0,v=n.y+d;if(a.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},b=i.leftForLtr(h,u)+u/2,f=v+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,T0(t,m,b,f),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,T0(t,m,b,f)}else{t.lineWidth=je(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(h,u),b=i.leftForLtr(i.xPlus(h,1),u-2),f=Co(o.borderRadius);Object.values(f).some(y=>y!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Cc(t,{x:m,y:v,w:u,h:l,radius:f}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Cc(t,{x:b,y:v+1,w:u-2,h:l-2,radius:f}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,v,u,l),t.strokeRect(m,v,u,l),t.fillStyle=o.backgroundColor,t.fillRect(b,v+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:u,boxPadding:c}=r,p=fn(r.bodyFont);let h=p.lineHeight,d=0;const v=Eo(r.rtl,this.x,this.width),m=function(g){n.fillText(g,v.x(t.x+d),t.y+h/2),t.y+=h+a},b=v.textAlign(o);let f,y,C,S,w,E,x;for(n.textAlign=o,n.textBaseline="middle",n.font=p.string,t.x=fu(this,b,r),n.fillStyle=r.bodyColor,rt(this.beforeBody,m),d=s&&b!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,E=i.length;S<E;++S){for(f=i[S],y=this.labelTextColors[S],n.fillStyle=y,rt(f.before,m),C=f.lines,s&&C.length&&(this._drawColorBox(n,t,S,v,r),h=Math.max(p.lineHeight,l)),w=0,x=C.length;w<x;++w)m(C[w]),h=p.lineHeight;rt(f.after,m)}d=0,h=p.lineHeight,rt(this.afterBody,m),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let o,s;if(a){const l=Eo(r.rtl,this.x,this.width);for(t.x=fu(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=fn(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,s=0;s<a;++s)n.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:u,height:c}=r,{topLeft:p,topRight:h,bottomLeft:d,bottomRight:v}=Co(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+p,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+u-h,l),n.quadraticCurveTo(s+u,l,s+u,l+h),o==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+u,l+c-v),n.quadraticCurveTo(s+u,l+c,s+u-v,l+c),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+d,l+c),n.quadraticCurveTo(s,l+c,s,l+c-d),o==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+p),n.quadraticCurveTo(s,l,s+p,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=fs[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Iy(this,t),l=Object.assign({},o,this._size),u=_y(n,t,l),c=Dy(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=ir(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),dw(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),fw(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const u=this.chart.getDatasetMeta(s);if(!u)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:u.data[l],index:l}}),a=!bc(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!bc(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=fs[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}},Ce(Eh,"positioners",fs),Eh);var nl={id:"tooltip",_element:Ry,positioners:fs,afterInit(e,t,n){n&&(e.tooltip=new Ry({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:Lw},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Vj=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Hj(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Vj(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const jj=(e,t)=>e===null?null:dn(Math.round(e),0,t);function By(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class $o extends Go{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Qe(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Hj(r,t,Me(n,t),this._addedLabels),jj(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return By.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Ce($o,"id","category"),Ce($o,"defaults",{ticks:{callback:By}});function zj(e,t){const n=[],{bounds:i,step:a,min:o,max:s,precision:l,count:u,maxTicks:c,maxDigits:p,includeBounds:h}=e,d=a||1,v=c-1,{min:m,max:b}=t,f=!Qe(o),y=!Qe(s),C=!Qe(u),S=(b-m)/(p+1);let w=Db((b-m)/v/d)*d,E,x,g,I;if(w<1e-14&&!f&&!y)return[{value:m},{value:b}];I=Math.ceil(b/w)-Math.floor(m/w),I>v&&(w=Db(I*w/v/d)*d),Qe(l)||(E=Math.pow(10,l),w=Math.ceil(w*E)/E),i==="ticks"?(x=Math.floor(m/w)*w,g=Math.ceil(b/w)*w):(x=m,g=b),f&&y&&a&&ZO((s-o)/a,w/1e3)?(I=Math.round(Math.min((s-o)/w,c)),w=(s-o)/I,x=o,g=s):C?(x=f?o:x,g=y?s:g,I=u-1,w=(g-x)/I):(I=(g-x)/w,ys(I,Math.round(I),w/1e3)?I=Math.round(I):I=Math.ceil(I));const T=Math.max(Tb(w),Tb(x));E=Math.pow(10,Qe(l)?T:l),x=Math.round(x*E)/E,g=Math.round(g*E)/E;let _=0;for(f&&(h&&x!==o?(n.push({value:o}),x<o&&_++,ys(Math.round((x+_*w)*E)/E,o,ky(o,S,e))&&_++):x<o&&_++);_<I;++_){const A=Math.round((x+_*w)*E)/E;if(y&&A>s)break;n.push({value:A})}return y&&h&&g!==s?n.length&&ys(n[n.length-1].value,s,ky(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!y||g===s)&&n.push({value:g}),n}function ky(e,t,{horizontal:n,minRotation:r}){const i=li(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class Gj extends Go{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,n){return Qe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Vr(i),u=Vr(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,o=zj(i,a);return t.bounds==="ticks"&&qO(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Bp(t,this.chart.options.locale,this.options.ticks.format)}}class Fo extends Gj{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=hn(t)?t:0,this.max=hn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=li(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ce(Fo,"id","linear"),Ce(Fo,"defaults",{ticks:{callback:rw.formatters.numeric}});const pd={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}},Tn=Object.keys(pd);function Py(e,t){return e-t}function $y(e,t){if(Qe(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(qs(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Fy(e,t,n,r){const i=Tn.length;for(let a=Tn.indexOf(e);a<i-1;++a){const o=pd[Tn[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Tn[a]}return Tn[i-1]}function Wj(e,t,n,r,i){for(let a=Tn.length-1;a>=Tn.indexOf(n);a--){const o=Tn[a];if(pd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Tn[n?Tn.indexOf(n):0]}function Uj(e){for(let t=Tn.indexOf(e)+1,n=Tn.length;t<n;++t)if(pd[Tn[t]].common)return Tn[t]}function Ny(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=Tp(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function Xj(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function My(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:Xj(e,r,i,n)}class Ic extends Go{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,n={}){const r=t.time||(t.time={}),i=this._adapter=new PV._date(t.adapters.date);i.init(n),bs(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:$y(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(u){!o&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!s&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=hn(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=nL(i,a,o);return this._unit=n.unit||(r.autoSkip?Fy(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Wj(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Uj(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),My(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=dn(n,0,o),r=dn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||Fy(a.minUnit,n,r,this._getLabelCapacity(n)),s=Me(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,u=qs(l)||l===!0,c={};let p=n,h,d;if(u&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,u?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(h=p,d=0;h<r;h=+t.add(h,s,o),d++)Ny(c,h,v);return(h===r||i.bounds==="ticks"||d===1)&&Ny(c,h,v),Object.keys(c).sort(Py).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,o=n||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return ft(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&s[l],p=u&&s[u],h=r[n],d=u&&p&&h&&h.major;return this._adapter.format(t,i||(d?p:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=li(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,My(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push($y(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ew(t.sort(Py))}}Ce(Ic,"id","time"),Ce(Ic,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function hu(e,t,n){let r=0,i=e.length-1,a,o,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=ba(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=ba(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const u=o-a;return u?s+(l-s)*(t-a)/u:s}class Oy extends Ic{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=hu(n,this.min),this._tableRange=hu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,u,c;for(o=0,s=t.length;o<s;++o)u=t[o],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],l=i[o-1],u=i[o],Math.round((c+l)/2)!==u&&a.push({time:u,pos:o/(s-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(hu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return hu(this._table,r*this._tableRange+this._minPos,!0)}}Ce(Oy,"id","timeseries"),Ce(Oy,"defaults",Ic.defaults);const Vw="label";function Ly(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Yj(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Hw(e,t){e.labels=t}function jw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vw;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function Kj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vw;const n={labels:[],datasets:[]};return Hw(n,e.labels),jw(n,e.datasets,t),n}function Zj(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:u=[],fallbackContent:c,updateMode:p,...h}=e,d=N.useRef(null),v=N.useRef(null),m=()=>{d.current&&(v.current=new ja(d.current,{type:o,data:Kj(s,a),options:l&&{...l},plugins:u}),Ly(t,v.current))},b=()=>{Ly(t,null),v.current&&(v.current.destroy(),v.current=null)};return N.useEffect(()=>{!i&&v.current&&l&&Yj(v.current,l)},[i,l]),N.useEffect(()=>{!i&&v.current&&Hw(v.current.config.data,s.labels)},[i,s.labels]),N.useEffect(()=>{!i&&v.current&&s.datasets&&jw(v.current.config.data,s.datasets,a)},[i,s.datasets]),N.useEffect(()=>{v.current&&(i?(b(),setTimeout(m)):v.current.update(p))},[i,l,s.labels,s.datasets,p]),N.useEffect(()=>{v.current&&(b(),setTimeout(m))},[o]),N.useEffect(()=>(m(),()=>b()),[]),N.createElement("canvas",{ref:d,role:"img",height:n,width:r,...h},c)}const qj=N.forwardRef(Zj);function Lp(e,t){return ja.register(t),N.forwardRef((n,r)=>N.createElement(qj,{...n,ref:r,type:e}))}const zw=Lp("line",ku),Jj=Lp("bar",Bu),Vy=Lp("doughnut",us);ja.register($o,Fo,Sa,Fr,ds,Ow,nl,Nw);const Hy=(e,t)=>{var i,a,o,s;const n=e.getVisibleDatasetCount(),r=e.getDatasetMeta(n-1).data.at(0);if(r){const{innerRadius:l}=r.getProps(["innerRadius"]),{ctx:u}=e,c=()=>{var _;const S=[].concat(t),w=S.length,E=u.font;let x=0,g=0,I;for(I=0;I<w;++I)u.font=S[I].font,x=Math.max(u.measureText(S[I].text).width,x),g+=(_=S[I].font)==null?void 0:_.lineHeight;return u.font=E,{height:g,width:x}},p=(S,w)=>{let E=document.createElement("div");document.body.appendChild(E),E.style.fontSize=`${w}px`,E.style.position="absolute",E.style.left="-10",E.style.top="-10",E.textContent=S;const x={width:E.clientWidth,height:E.clientHeight};return document.body.removeChild(E),E=null,x},h=c(),d=parseFloat(parseFloat(l).toFixed(2));u.textAlign="center",u.textBaseline="middle";const v=(e.chartArea.left+e.chartArea.right)/2,b=(e.chartArea.top+e.chartArea.bottom)/2-h.height/2;let f;const y=t.length;let C=0;for(f=0;f<y;++f){let S=(i=t[f].font)==null?void 0:i.size,w=(a=t[f].font)==null?void 0:a.lineHeight;const E=typeof t[f].text=="number"?t[f].text.toString():t[f].text;for(;p(E,S).width>d+(t[f].id==="value"?50:0);)S-=1,w=p(E,S).height;E.length>22&&w<14&&(w=18);const x=b+w/2+C,g=typeof t[f].text=="number"?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(t[f].text):t[f].text;let I=t[f].urlIconDesc?" ":"";if(t[f].percentage!==void 0?I+=`${t[f].percentage}% ${t[f].text}`:I+=g,u.fillStyle=t[f].color,u.font=`${S<10?10:S}px sans-serif`,C+=w,t[f].percentage!==void 0&&t[f].urlIconDesc){const T=((s=(o=t[f])==null?void 0:o.percentage)==null?void 0:s.length)??0,_=new Image;_.src=t[f].urlIconDesc,u.drawImage(_,45-(T>6?T+2:T-2.5),x-8,16,14)}u.fillText(I,v,x)}u.restore(),u.save()}},Qj=({labels:e,data:t,backgroundColor:n,options:r={},redraw:i,widthInnerDoughnut:a,innerLabels:o,open:s=!0,keyRemoveDataOpen:l="gap",keyLabel:u="title",keyValue:c="originalValue",keyBackground:p="backgroundColor",className:h})=>{const d={labels:e||t.map(m=>m[u]),datasets:[{data:t.map(m=>m[c]),backgroundColor:n||t.map(m=>m[p])}]},v={cutout:a,animation:{duration:i?400:0},plugins:{legend:{display:!1},tooltip:{external(m){let b=document.getElementById("chartjs-tooltip");b||(b=document.createElement("div"),b.id="chartjs-tooltip",b.innerHTML="<table></table>",document.body.appendChild(b));const f=m.tooltip;if(f.opacity===0){b.style.opacity="0";return}b.classList.remove("above","below","no-transform"),f.yAlign?b.classList.add(f.yAlign):b.classList.add("no-transform");const y=t.filter(x=>!x[u]),C=t.filter(x=>x[c]>0&&x[c]<1);if(y.length===1&&C.length===1)return;function S(x){return x.lines}if(f.body){const x=f.title||[];let g=f.body.map(S),I="<thead>";x.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; font-weight: 600",A+="; font-size: 12px",A+="; padding: 0px 14px",I+=`<tr><span style="${A}">${_}</span></tr>`}),I+="</thead><tbody>",g.length>1&&g[0][0]===g[1][0]&&(g=[g[0]]),g.forEach(_=>{let A="";A+="display: flex",A+="; justify-content: center",A+="; color: #0163C8",A+="; padding: 0px 14px",A+="; font-size: 12px";const F=`<span style="${A}">${_}</span>`;I+=`<tr><td>${F}</td></tr>`}),I+="</tbody>";const T=b.querySelector("table");T&&(T.innerHTML=I)}const w=m.chart.canvas.getBoundingClientRect(),E=w.top+window.pageYOffset+f.caretY;b.style.opacity="1",b.style.border="solid 1px #0163C8",b.style.background="white",b.style.height="fit-content",b.style.borderRadius="10px",b.style.position="absolute",b.style.zIndex="10",b.style.padding="4px 0",b.style.left=`${w.left+window.pageXOffset+f.caretX-80}px`,b.style.top=`${E>300&&!s?280:E}px`,b.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title(m){const b=t[m[0].dataIndex];return b==null?void 0:b[u]},label(m){const b=t==null?void 0:t[m.dataIndex];let f="Nilai: ";return b&&(f+=b.value),f}}}},elements:{arc:{borderWidth:0}}};return P.jsxs("div",{className:h??"",children:[!s&&P.jsx(Vy,{data:d,redraw:i,plugins:[{id:"draw",beforeDraw(m){Hy(m,o)}}],options:Object.keys(r).length>1?r:v}),s&&P.jsx(Vy,{data:d,redraw:i,plugins:[{id:"draw",beforeDraw(m){Hy(m,o.filter(b=>b.id!==l))}}],options:Object.keys(r).length>1?r:v})]})},gu=e=>{let t;const n=new Date(e??new Date);return e&&(t=np(new Date(n.setHours(n.getHours()+7)).toISOString().slice(0,10))),t},ez=({month:e,year:t,type:n=["month","year"],activeType:r="month",minDate:i,maxDate:a,className:o,classNameButton:s,onChange:l,buttonClick:u,id:c="date-picker",idPopover:p="date-picker-popover",floatingOptions:h={},offsetPopover:d=5,zIndexPopper:v=1,hiddenHeader:m})=>{const{locale:b}=yr(),f=N.useRef(null),y=gu(i),C=gu(a),S=w=>{var E;typeof l=="function"&&(l({month:w.month,year:w.year}),(E=f.current)==null||E.setShow(!1))};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:c,onClick:w=>{var E;w.stopPropagation(),(E=f.current)==null||E.handlerShow(w)},className:s,children:typeof u=="function"?u({month:e,year:t}):"Pilih Tanggal"}),P.jsx("div",{className:o??"",children:P.jsx(bi,{zIndex:v,ref:f,offset:d,id:p,floatingOptions:{placement:"bottom-end",...h},onClick:w=>w.stopPropagation(),children:P.jsx(bp,{locale:"id-ID",children:P.jsx(sd,{minValue:y,maxValue:C,minDate:i,maxDate:a,activeType:n.length===1?n[0]:r,locale:b,value:gu(`${t}/${e}/1`),createCalendar:yl,defaultValue:gu(`${t}/${e}/1`),onChange:S,handlerReset:()=>{},handlerSubmit:()=>{},withDateSelect:!1,type:n,hiddenHeader:m})})})})]})},tz=({indeterminate:e,className:t="",classNameContainer:n,...r})=>{const i=N.useRef(null);return N.useEffect(()=>{typeof e=="boolean"&&(i.current.indeterminate=!r.checked&&e)},[i,e]),P.jsx("div",{className:`1ru-flex 1ru-items-center 1ru-h-full ${t??""}`,children:P.jsx(ld,{ref:i,label:"",variants:"blue-700",borderRadius:"full",className:"1ru-flex 1ru-items-center 1ru-h-full",classNameContainer:`1ru-flex 1ru-items-center 1ru-h-full ${n??""}}`,...r,onClick:a=>{a.stopPropagation(),typeof r.onClick=="function"&&r.onClick(a)},type:"checkbox"})})},nz="_input_qgcle_217",rz="_error_qgcle_321",Kn={"container-l":"_container-l_qgcle_217","container-input":"_container-input_qgcle_217",input:nz,"container-s":"_container-s_qgcle_235","container-xs":"_container-xs_qgcle_253","label-error":"_label-error_qgcle_271",error:rz,"isset-right-icon":"_isset-right-icon_qgcle_330","isset-left-icon":"_isset-left-icon_qgcle_334","start-icon":"_start-icon_qgcle_338","end-icon":"_end-icon_qgcle_345"},Vp=N.forwardRef(({name:e,classNameContainer:t,id:n,type:r="text",startIcon:i,endIcon:a,error:o,sizeInput:s="xs",classNameLabelError:l,className:u,...c},p)=>{const h={size:{l:Kn["container-l"],s:Kn["container-s"],xs:Kn["container-xs"]}},d=()=>typeof i=="function"||N.isValidElement(i),v=()=>typeof a=="function"||N.isValidElement(a);return P.jsxs("div",{className:`${h.size[s]} ${t}`,children:[P.jsxs("div",{className:`${Kn["container-input"]}`,children:[P.jsxs("div",{className:Kn["start-icon"],children:[typeof i=="function"&&i(),N.isValidElement(i)&&i]}),P.jsx("input",{id:n??e,className:`${Kn.input} ${o?Kn.error:""}
|
|
182
182
|
${d()?Kn["isset-left-icon"]:""}
|
|
183
183
|
${v()?Kn["isset-right-icon"]:""}
|
|
184
184
|
${u??""}`,ref:p,type:r,...c}),P.jsxs("div",{className:Kn["end-icon"],children:[typeof a=="function"&&a(),N.isValidElement(a)&&a]})]}),o&&P.jsx("label",{className:`${Kn["label-error"]}
|
|
185
|
-
${c.disabled?Kn.disabled:""} ${l??""}`,children:o})]})});Vp.displayName="InputNative";const
|
|
185
|
+
${c.disabled?Kn.disabled:""} ${l??""}`,children:o})]})});Vp.displayName="InputNative";const iz="_container_1szxn_1",az="_files_1szxn_4",oz="_file_1szxn_4",to={container:iz,files:az,file:oz,"file-name-wrapper":"_file-name-wrapper_1szxn_10","file-name":"_file-name_1szxn_10","file-extension":"_file-extension_1szxn_13"},sz=({value:e,validateFile:t,classNameContainer:n,classNameButton:r,textUpload:i="Unggah Lampiran",buttonProps:a={},maxFile:o=1,maxSize:s=1,error:l,removeElement:u,onChange:c,handlerDownload:p,priorityError:h="external",eventError:d})=>{const v={variants:"ghost-laba-blue-10",size:"small"},m=N.useRef(null),b=t||["image/png","image/jpeg","image/jpg"],[f,y]=N.useState(""),C={internal:f||l,external:l||f},S=E=>{if(E!=null&&E.length){const x=Array.from(E).slice(0,o),g=x==null?void 0:x.filter(_=>!b.includes(_.type)),I=(x==null?void 0:x.reduce((_,A)=>_+A.size,0))/1024/1024;let T="";if(g.length>0?T="Berkas tidak didukung, silahkan pilih file kembali.":I>s?T=`${E.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${s}MB.`:typeof c=="function"&&c(x),y(T),d==null||d(T),!(m!=null&&m.current))return;m.current.value=""}},w=E=>{var x;E.preventDefault(),m!=null&&m.current&&((x=m.current)==null||x.click())};return P.jsxs("div",{className:`${to.container} ${n??""}`,children:[P.jsx(mr,{...v,...a,className:r??"",onClick:E=>w(E),children:i}),P.jsx(Vp,{accept:b==null?void 0:b.join(", "),ref:m,type:"file",onChange:E=>S(E.target.files),error:C[h],multiple:o>1,hidden:!0}),P.jsx("div",{className:to.files,children:e==null?void 0:e.map((E,x)=>P.jsxs("div",{className:to.file,onClick:g=>{g.stopPropagation(),typeof p=="function"&&p(E)},children:[P.jsxs("div",{className:to["file-name-wrapper"],children:[P.jsx("span",{className:to["file-name"],children:wh((E==null?void 0:E.originalName)??(E==null?void 0:E.name)??(E==null?void 0:E.fileName)??"").filename}),P.jsx("span",{className:to["file-extension"],children:wh((E==null?void 0:E.originalName)??(E==null?void 0:E.name)??(E==null?void 0:E.fileName)??"").extension})]}),typeof u=="function"&&P.jsx(P.Fragment,{children:u(E)})]},x))})]})},jy={"error-payhere":"_error-payhere_14r1r_97","error-laba":"_error-laba_14r1r_271"},lz=({className:e,variants:t="laba",error:n})=>{const r={variants:{laba:jy["error-laba"],payhere:jy["error-payhere"]}};return P.jsx(P.Fragment,{children:n?P.jsx("span",{className:`${r.variants[t]} ${e??""}`,children:n}):P.jsx(P.Fragment,{})})},uz="_container_2h4d1_1",cz="_textarea_2h4d1_7",dz="_label_2h4d1_36",fz="_error_2h4d1_44",Qr={container:uz,"size-medium":"_size-medium_2h4d1_1","container-textarea":"_container-textarea_2h4d1_4",textarea:cz,"placeholder-shown":"_placeholder-shown_2h4d1_24",label:dz,error:fz,"label-error":"_label-error_2h4d1_61"},Gw=N.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:i,classNameLabel:a,classNameLabelError:o,name:s,id:l,label:u,error:c,height:p,minHeight:h=94,maxHeight:d=150,style:v,sizeInput:m="medium",translateLabel:b=20,autoTranslateLabel:f=!1,...y}=e,C=N.useRef(null),S=Bg(C,t),w=N.useRef(null),E={...v??{},maxHeight:d,height:p??h,minHeight:h},[x,g]=N.useState(!1),[I,T]=N.useState(!1),[_,A]=N.useState(b),F={size:{medium:Qr["size-medium"]}},B=()=>{var M;["",void 0,null].includes(y.value)||["",void 0,null].includes((M=C.current)==null?void 0:M.value)?(T(!1),f&&setTimeout(()=>{var J,Q;const G=((J=C.current)==null?void 0:J.offsetHeight)??0,W=((Q=w.current)==null?void 0:Q.offsetHeight)??0,U=(G-W)/2;A(U)},100)):T(!0)},$=function(M){var G;g(!0),B(),(G=e.onFocus)==null||G.call(e,M)},k=function(M){var G;g(!1),(G=e.onBlur)==null||G.call(e,M)},O=function(M){B();const G=(M==null?void 0:M.target)??C.current;G.style.height="0px",G.style.height=G.scrollHeight+"px"};return Rg(()=>(x&&C.current?C.current.addEventListener("input",O):O(),()=>{var M;(M=C.current)==null||M.removeEventListener("input",O)}),[x]),P.jsxs("div",{className:`${Qr.container}
|
|
186
186
|
${F.size[m]}
|
|
187
187
|
${r??""}`,children:[P.jsxs("div",{className:`${Qr["container-textarea"]}`,children:[P.jsx("textarea",{id:l??s,className:`${I?"":Qr["placeholder-shown"]} ${c?Qr.error:""}
|
|
188
188
|
${Qr.textarea}
|
|
189
189
|
${i??""}`,ref:S,style:E,...y,onFocus:$,onBlur:k}),u&&P.jsxs("label",{htmlFor:l??s,ref:w,style:{transform:`translateY(${_}px)`},className:`${Qr.label} ${a??""}`,children:[u," ",n&&P.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]})]}),c&&P.jsx("label",{className:`${Qr["label-error"]}
|
|
190
|
-
${y.disabled?Qr.disabled:""} ${o??""}`,children:c})]})});Gw.displayName="TextareaFloatingInner";const
|
|
190
|
+
${y.disabled?Qr.disabled:""} ${o??""}`,children:c})]})});Gw.displayName="TextareaFloatingInner";const hz="_container_15jwt_205",gz="_passed_15jwt_309",pz="_active_15jwt_313",Ar={container:hz,"content-section":"_content-section_15jwt_205","content-step":"_content-step_15jwt_205","number-step":"_number-step_15jwt_205","content-description":"_content-description_15jwt_241",passed:gz,active:pz,"content-line-dashed":"_content-line-dashed_15jwt_318","content-line-active":"_content-line-active_15jwt_322"},zy=({widthLine:e,color:t})=>P.jsx("svg",{height:"5",xmlns:"http://www.w3.org/2000/svg",className:Ar["content-line-dashed"],width:e+10,style:{right:-(e/2+14)},children:P.jsx("g",{fill:"none",stroke:t,strokeWidth:"10",children:P.jsx("path",{strokeDasharray:"12,4",d:`M0 0 ${e+10} 0`})})}),Gy=({widthLine:e,color:t})=>P.jsx("hr",{className:Ar["content-line-active"],style:{width:e+22,right:-(e/2+20),borderColor:t}}),mz=({activeStep:e,stepList:t,widthLine:n=250,classNameContainer:r,classNameContent:i,classNameDesc:a,onChange:o,afterActiveType:s="solid",beforeActiveType:l="dashed",colorActive:u="#0163c8 ",colorInactive:c="#D6D6D6"})=>P.jsx("div",{className:`${Ar.container} ${r??""}`,children:t.map((p,h)=>{const d=h+1;return P.jsxs("div",{className:`${Ar["content-section"]} ${i??""}`,onClick:()=>{typeof o=="function"&&o(p)},children:[P.jsxs("div",{className:Ar["content-step"],children:[d<t.length&&P.jsxs(P.Fragment,{children:[(p.step??d)>=e&&P.jsxs(P.Fragment,{children:[l==="solid"&&P.jsx(Gy,{color:c,widthLine:n}),l==="dashed"&&P.jsx(zy,{color:c,widthLine:n})]}),(p.step??d)<e&&P.jsxs(P.Fragment,{children:[s==="solid"&&P.jsx(Gy,{color:u,widthLine:n}),s==="dashed"&&P.jsx(zy,{color:u,widthLine:n})]})]}),h!==0&&P.jsx("div",{style:{width:n/2}}),P.jsx("div",{className:`${Ar["number-step"]}
|
|
191
191
|
${(p.step??d)<e?Ar.passed:""}
|
|
192
192
|
${(p.step??d)===e?Ar.active:""}
|
|
193
193
|
${p.className??""}`,children:e>p.step&&p.valueDone?P.jsx(P.Fragment,{children:p.valueDone}):P.jsx(P.Fragment,{children:p.value?p.value:d})}),h+1!==(t==null?void 0:t.length)&&P.jsx("div",{style:{width:n/2}})]}),p.desc&&P.jsx("div",{className:`${Ar["content-description"]} ${a??""}
|
|
194
|
-
${(p.step??d)<=e?Ar.active:""}`,style:{maxWidth:h+1===(t==null?void 0:t.length)||h===0?(n-30)*2:n-30,marginRight:h+1===(t==null?void 0:t.length)?-(n/2):0,marginLeft:h===0?-(n/2):0},children:p.desc})]},h)})});ja.register($o,Fo,Sa,Fr,Ow,nl,Nw);const mz=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},vz=({data:e,className:t,height:n=65})=>{const r=N.useRef(null),i=e.map(h=>Ss(mz(1,h.label,h.year),"MMM yy",{locale:Mu}))||[],[a,o]=N.useState(""),[s,l]=N.useState(""),u=h=>{const d=[],v=[];let m=!h.find(b=>b.isCurrent);return h.forEach(b=>{m?(v.push(b.value),d.push(null)):(d.push(b.value),b.isCurrent?(m=!0,v.push(b.value)):v.push(null))}),{passed:d,notPassed:v}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:a,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const d=e[h.dataIndex];let v=s;return d.isCurrent&&(v="#ED0019"),v},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:a,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},p={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let d=document.getElementById("chartjs-tooltip");d||(d=document.createElement("div"),d.id="chartjs-tooltip",d.innerHTML="<table></table>",document.body.appendChild(d));const v=h.tooltip;if(v.opacity===0){d.style.opacity="0";return}d.classList.remove("above","below","no-transform"),v.yAlign?d.classList.add(v.yAlign):d.classList.add("no-transform");function m(f){return f.lines}if(v.body){const f=v.title||[];let y=v.body.map(m),C="<thead>";f.forEach(w=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; font-weight: 600",E+="; font-size: 12px",E+="; padding: 0px 14px",C+=`<tr><span style="${E}">${w}</span></tr>`}),C+="</thead><tbody>",y.length>1&&y[0][0]===y[1][0]&&(y=[y[0]]),y.forEach(w=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; color: #0163C8",E+="; padding: 0px 14px",E+="; font-size: 12px";const x=`<span style="${E}">${w}</span>`;C+=`<tr><td>${x}</td></tr>`}),C+="</tbody>";const S=d.querySelector("table");S&&(S.innerHTML=C)}const b=h.chart.canvas.getBoundingClientRect();d.style.opacity="1",d.style.border="solid 1px #0163C8",d.style.background="white",d.style.height="fit-content",d.style.borderRadius="10px",d.style.position="absolute",d.style.zIndex="10",d.style.padding="4px 0",d.style.left=b.left+window.pageXOffset+v.caretX-30+"px",d.style.top=b.top+window.pageYOffset+v.caretY-60+"px",d.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const d=e[h[0].dataIndex];return Ss(new Date(`1/${d.label}/${d.year}`),"MMMM yyyy",{locale:Mu})},label:function(h){let d=h.dataset.label??"";return d&&(d+=": "),h.parsed.y!==null&&(d+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),d}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return kc(h)??0}}}}};return N.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),d=h==null?void 0:h.createLinearGradient(0,100,500,-500);d==null||d.addColorStop(0,"rgba(237, 0, 25, 0)"),d==null||d.addColorStop(1,"rgba(237, 0, 25, 20)");const v=h.fillStyle="rgba(255, 255, 255, 0)";l(v),o(d)}},[]),P.jsxs("div",{className:t??"",children:[P.jsx(zw,{options:p,data:c,height:n}),P.jsx("div",{className:"1ru-h-5",children:P.jsx("canvas",{ref:r})})]})},bz="_container_1oiqk_1",Wy={container:bz,"container-popover":"_container-popover_1oiqk_5"},yz=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:p,delay:h=600})=>{let d;const v=N.useRef(null),m={backgroundColor:Ox[s]||s},[b,f]=N.useState(!1),[y,C]=N.useState(!1),S=E=>{var x;(x=v.current)==null||x.handlerShow(E),C(!0),typeof i=="function"&&i()},w=()=>{var E;C(!1),b||(clearInterval(d),(E=v.current)==null||E.setShow(!1),typeof a=="function"&&a())};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:e,onMouseEnter:E=>{if(p&&!b){const x=E.currentTarget;d=setTimeout(()=>{S({...E,currentTarget:x})},h)}},onMouseLeave:()=>{p&&!b&&w()},onClick:E=>{f(!0),clearInterval(d),y||S(E)},className:Wy.container,children:t}),P.jsx(bi,{floatingOptions:{placement:o},ref:v,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(f(!1),w())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${Wy["container-popover"]} ${c??""}`,...l,children:n})]})},xz="_icon_zrudt_5",Cz="_show_zrudt_10",hh={"container-popover":"_container-popover_zrudt_1",icon:xz,show:Cz},Ww=N.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:p="",placement:h="top-end",popoverProps:d,zIndexPopover:v=1,offset:m=5,idPopover:b="1ru-popover-button-popover",onClick:f,onClose:y,...C}=e,S=N.useRef(null),w=N.useRef(null),[E,x]=N.useState(!1),g=(A,F,B)=>{let $=P.jsx(P.Fragment,{});return A&&N.isValidElement(F)?$=F:N.isValidElement(B)&&($=P.jsx("div",{className:`${hh.icon} ${A?hh.show:""}`,children:B})),$},I=A=>{var F;(F=S.current)==null||F.setShow(A),x(A)},T=A=>{var F;(F=S.current)==null||F.handlerShow(A),x(!0)},_=()=>{var A;x(!1),(A=S.current)==null||A.setShow(!1),typeof y=="function"&&y()};return N.useImperativeHandle(t,()=>({show:E,setShow:I,handlerClose:_,handlerShow:T}),[E]),P.jsxs(P.Fragment,{children:[P.jsx(mr,{ref:w,id:r,className:`${u} ${E?c:""}`,onClick:A=>{E?_():typeof f=="function"?f(A):T(A)},startIcon:g(E,s,a),endIcon:g(E,l,o),...C,children:i}),P.jsx(bi,{ref:S,id:b,offset:m,floatingOptions:{placement:h},zIndex:v,onClose:_,className:`${hh["container-popover"]} ${p}`,...d,children:n})]})});Ww.displayName="ButtonPopover";ja.register($o,Fo,Sa,Fr,$w,nl);const Ez=e=>({chart:t,tooltip:n})=>{var l,u,c,p,h,d;const r={};if(n.opacity===0){e(v=>({...v,style:{...v.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const a=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",o=((p=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:p.raw)??"",s=((d=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:d.dataset.label)??"";e({dataset:s,label:a,value:o,style:r,dataPoints:n.dataPoints})},Sz={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:a,right:o}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(a,s),n.lineTo(o,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},wz={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},Iz=({data:e,height:t,classNameContainer:n,id:r,options:i,CustomTooltip:a})=>{const o=N.useRef(void 0),s=N.useRef(0),l=N.useRef(0),[u,c]=N.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),p=N.useCallback(function({ctx:m,chartArea:b,scales:f,chartHeight:y,gradientFor:C,item:S}){let x=(f.y.getPixelForValue(0)-b.top)/y;x=x<0?0:x>1?1:x,o.current=m.createLinearGradient(0,b.top,0,y+b.top),C==="background"?(o.current.addColorStop(0,(S==null?void 0:S.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(S==null?void 0:S.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(x,(S==null?void 0:S.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(x,(S==null?void 0:S.colorBorderNegative)||"#EB6B6B"))},[]),h=N.useCallback(function({ctx:m,chartArea:b,scales:f,gradientFor:y,item:C}){const S=b.right-b.left,w=b.bottom-b.top;return(!o.current||s.current!==S||l.current!==w)&&(s.current=S,l.current=w,p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C})),p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C}),o.current},[]),d=N.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"background",item:b})},borderColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"border",item:b})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...b,data:b.data}))}),[e]),v=N.useMemo(()=>ws(wz,{plugins:{tooltip:{enabled:!a,external:({chart:b,tooltip:f})=>a?Ez(c)({chart:b,tooltip:f}):void 0}}},i??{}),[i,a]);return P.jsxs("div",{id:r,className:n,style:{height:t||"300px"},children:[a&&P.jsx(Sp,{selector:"body",children:P.jsx(a,{...u})}),P.jsx(zw,{data:d,options:v,plugins:[Sz]})]})};ja.register($o,Fo,Fu,nl,Sa,$w,nl);const _z=e=>({chart:t,tooltip:n})=>{var l,u,c,p,h,d;const r={};if(n.opacity===0){e(v=>({...v,style:{...v.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const a=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",o=((p=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:p.raw)??"",s=((d=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:d.dataset.label)??"";e({dataset:s,label:a,value:o,style:r,dataPoints:n.dataPoints})},Dz={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,a)=>{const o=e.getDatasetMeta(a);o.visible&&o.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?kc(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let p,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,p=s.y-5,p>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,p=s.y+5,p<r&&(h=!0)),h&&t.fillText(c,s.x,p)})}),t.restore()}},Tz={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return kc(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},Az=({data:e,classNameContainer:t,height:n,id:r,options:i,CustomTooltip:a})=>{const o=N.useRef(void 0),s=N.useRef(0),l=N.useRef(0),[u,c]=N.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),p=N.useCallback(function({ctx:m,chartArea:b,scales:f,chartHeight:y,gradientFor:C,item:S}){let x=(f.y.getPixelForValue(0)-b.top)/y;x=x<0?0:x>1?1:x,o.current=m.createLinearGradient(0,b.top,0,y+b.top),C==="background"?(o.current.addColorStop(0,(S==null?void 0:S.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(S==null?void 0:S.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(x,(S==null?void 0:S.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(x,(S==null?void 0:S.colorBorderNegative)||"#EB6B6B"))},[]),h=N.useCallback(function({ctx:m,chartArea:b,scales:f,gradientFor:y,item:C}){const S=b.right-b.left,w=b.bottom-b.top;return(!o.current||s.current!==S||l.current!==w)&&(s.current=S,l.current=w,p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C})),p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C}),o.current},[]),d=N.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"background",item:b})},borderColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"border",item:b})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...b,data:b.data}))}),[e]),v=N.useMemo(()=>ws(Tz,{plugins:{tooltip:{enabled:!a,external:({chart:b,tooltip:f})=>a?_z(c)({chart:b,tooltip:f}):void 0}}},i??{}),[i,a]);return P.jsxs("div",{id:r,className:t,style:{height:n||"300px"},children:[a&&P.jsx(Sp,{selector:"body",children:P.jsx(a,{...u})}),P.jsx(qj,{data:d,options:v,plugins:[Dz]})]})},Rz="_left_137ks_283",Bz="_right_137ks_286",kz="_indicator_137ks_297",Pz="_active_137ks_302",Ti={"container-step-indicator":"_container-step-indicator_137ks_265","text-step-indicator":"_text-step-indicator_137ks_265",left:Rz,right:Bz,"step-indicator":"_step-indicator_137ks_293",indicator:kz,active:Pz};function $z(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const Fz=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:a="",id:o="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:p=""})=>P.jsxs("div",{id:o,className:`${Ti["container-step-indicator"]}
|
|
194
|
+
${(p.step??d)<=e?Ar.active:""}`,style:{maxWidth:h+1===(t==null?void 0:t.length)||h===0?(n-30)*2:n-30,marginRight:h+1===(t==null?void 0:t.length)?-(n/2):0,marginLeft:h===0?-(n/2):0},children:p.desc})]},h)})});ja.register($o,Fo,Sa,Fr,Ow,nl,Nw);const vz=(e,t,n)=>{const r=e,i=t||new Date().getMonth(),a=n||new Date().getFullYear();return new Date(`${i}/${r}/${a}`)},bz=({data:e,className:t,height:n=65})=>{const r=N.useRef(null),i=e.map(h=>Ss(vz(1,h.label,h.year),"MMM yy",{locale:Mu}))||[],[a,o]=N.useState(""),[s,l]=N.useState(""),u=h=>{const d=[],v=[];let m=!h.find(b=>b.isCurrent);return h.forEach(b=>{m?(v.push(b.value),d.push(null)):(d.push(b.value),b.isCurrent?(m=!0,v.push(b.value)):v.push(null))}),{passed:d,notPassed:v}},c={labels:i,datasets:[{label:"",fill:"blue",backgroundColor:"rgba(75,192,192,1)",borderColor:a,borderCapStyle:"butt",borderDashOffset:0,borderJoinStyle:"miter",pointBackgroundColor:function(h){const d=e[h.dataIndex];let v=s;return d.isCurrent&&(v="#ED0019"),v},pointBorderWidth:.1,pointHoverRadius:4,pointRadius:5,pointBorderColor:s,pointHoverBorderColor:a,data:u(e).passed||[]},{label:"",fill:"grey",backgroundColor:"rgba(75,192,192,1)",borderColor:"#D6D6D6",borderCapStyle:"butt",borderDashOffset:0,pointRadius:5,borderJoinStyle:"miter",pointBackgroundColor:s,pointBorderWidth:.1,pointHoverRadius:4,borderDash:[15,5],data:u(e).notPassed||[]}]},p={interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!1,labels:{usePointStyle:!0}},tooltip:{external:function(h){let d=document.getElementById("chartjs-tooltip");d||(d=document.createElement("div"),d.id="chartjs-tooltip",d.innerHTML="<table></table>",document.body.appendChild(d));const v=h.tooltip;if(v.opacity===0){d.style.opacity="0";return}d.classList.remove("above","below","no-transform"),v.yAlign?d.classList.add(v.yAlign):d.classList.add("no-transform");function m(f){return f.lines}if(v.body){const f=v.title||[];let y=v.body.map(m),C="<thead>";f.forEach(w=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; font-weight: 600",E+="; font-size: 12px",E+="; padding: 0px 14px",C+=`<tr><span style="${E}">${w}</span></tr>`}),C+="</thead><tbody>",y.length>1&&y[0][0]===y[1][0]&&(y=[y[0]]),y.forEach(w=>{let E="";E+="display: flex",E+="; justify-content: center",E+="; color: #0163C8",E+="; padding: 0px 14px",E+="; font-size: 12px";const x=`<span style="${E}">${w}</span>`;C+=`<tr><td>${x}</td></tr>`}),C+="</tbody>";const S=d.querySelector("table");S&&(S.innerHTML=C)}const b=h.chart.canvas.getBoundingClientRect();d.style.opacity="1",d.style.border="solid 1px #0163C8",d.style.background="white",d.style.height="fit-content",d.style.borderRadius="10px",d.style.position="absolute",d.style.zIndex="10",d.style.padding="4px 0",d.style.left=b.left+window.pageXOffset+v.caretX-30+"px",d.style.top=b.top+window.pageYOffset+v.caretY-60+"px",d.style.pointerEvents="none"},displayColors:!0,enabled:!1,callbacks:{title:function(h){const d=e[h[0].dataIndex];return Ss(new Date(`1/${d.label}/${d.year}`),"MMMM yyyy",{locale:Mu})},label:function(h){let d=h.dataset.label??"";return d&&(d+=": "),h.parsed.y!==null&&(d+=new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(h.parsed.y)),d}}}},scales:{x:{grid:{display:!1},beginAtZero:!0,ticks:{autoSkip:!0,maxTicksLimit:20}},y:{min:0,grid:{display:!1},beginAtZero:!0,ticks:{maxTicksLimit:6,callback:function(h){return kc(h)??0}}}}};return N.useEffect(()=>{if(r.current){const h=r.current.getContext("2d"),d=h==null?void 0:h.createLinearGradient(0,100,500,-500);d==null||d.addColorStop(0,"rgba(237, 0, 25, 0)"),d==null||d.addColorStop(1,"rgba(237, 0, 25, 20)");const v=h.fillStyle="rgba(255, 255, 255, 0)";l(v),o(d)}},[]),P.jsxs("div",{className:t??"",children:[P.jsx(zw,{options:p,data:c,height:n}),P.jsx("div",{className:"1ru-h-5",children:P.jsx("canvas",{ref:r})})]})},yz="_container_1oiqk_1",Wy={container:yz,"container-popover":"_container-popover_1oiqk_5"},xz=({id:e="1ru-tooltip",children:t,text:n,zIndexPopover:r=1,onShow:i,onClose:a,placement:o="top",backgroundColor:s="black",popoverProps:l={},arrowProps:u={},className:c,isHover:p,delay:h=600})=>{let d;const v=N.useRef(null),m={backgroundColor:Ox[s]||s},[b,f]=N.useState(!1),[y,C]=N.useState(!1),S=E=>{var x;(x=v.current)==null||x.handlerShow(E),C(!0),typeof i=="function"&&i()},w=()=>{var E;C(!1),b||(clearInterval(d),(E=v.current)==null||E.setShow(!1),typeof a=="function"&&a())};return P.jsxs(P.Fragment,{children:[P.jsx("div",{id:e,onMouseEnter:E=>{if(p&&!b){const x=E.currentTarget;d=setTimeout(()=>{S({...E,currentTarget:x})},h)}},onMouseLeave:()=>{p&&!b&&w()},onClick:E=>{f(!0),clearInterval(d),y||S(E)},className:Wy.container,children:t}),P.jsx(bi,{floatingOptions:{placement:o},ref:v,id:"1ru-popover-tooltip",offset:10,withArrow:!0,zIndex:r,onClose:()=>{b&&(f(!1),w())},styleInnerPopover:{backgroundColor:m.backgroundColor},propsArrow:{fill:m.backgroundColor,...u},className:`${Wy["container-popover"]} ${c??""}`,...l,children:n})]})},Cz="_icon_zrudt_5",Ez="_show_zrudt_10",hh={"container-popover":"_container-popover_zrudt_1",icon:Cz,show:Ez},Ww=N.forwardRef((e,t)=>{const{children:n,id:r="1ru-button-popover",text:i="",startIcon:a,endIcon:o,startIconShow:s,endIconShow:l,classNameButton:u="",classNameButtonShow:c="",className:p="",placement:h="top-end",popoverProps:d,zIndexPopover:v=1,offset:m=5,idPopover:b="1ru-popover-button-popover",onClick:f,onClose:y,...C}=e,S=N.useRef(null),w=N.useRef(null),[E,x]=N.useState(!1),g=(A,F,B)=>{let $=P.jsx(P.Fragment,{});return A&&N.isValidElement(F)?$=F:N.isValidElement(B)&&($=P.jsx("div",{className:`${hh.icon} ${A?hh.show:""}`,children:B})),$},I=A=>{var F;(F=S.current)==null||F.setShow(A),x(A)},T=A=>{var F;(F=S.current)==null||F.handlerShow(A),x(!0)},_=()=>{var A;x(!1),(A=S.current)==null||A.setShow(!1),typeof y=="function"&&y()};return N.useImperativeHandle(t,()=>({show:E,setShow:I,handlerClose:_,handlerShow:T}),[E]),P.jsxs(P.Fragment,{children:[P.jsx(mr,{ref:w,id:r,className:`${u} ${E?c:""}`,onClick:A=>{E?_():typeof f=="function"?f(A):T(A)},startIcon:g(E,s,a),endIcon:g(E,l,o),...C,children:i}),P.jsx(bi,{ref:S,id:b,offset:m,floatingOptions:{placement:h},zIndex:v,onClose:_,className:`${hh["container-popover"]} ${p}`,...d,children:n})]})});Ww.displayName="ButtonPopover";ja.register($o,Fo,Sa,Fr,$w,nl);const Sz=e=>({chart:t,tooltip:n})=>{var l,u,c,p,h,d;const r={};if(n.opacity===0){e(v=>({...v,style:{...v.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const a=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",o=((p=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:p.raw)??"",s=((d=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:d.dataset.label)??"";e({dataset:s,label:a,value:o,style:r,dataPoints:n.dataPoints})},wz={id:"hairlinePlugin",beforeDatasetsDraw:e=>{const t=e.scales.y;if(!t)return;const{ctx:n}=e,{top:r,bottom:i,left:a,right:o}=e.chartArea;if(t.min>0||t.max<0)return;const s=t.getPixelForValue(0);s<r||s>i||(n.save(),n.beginPath(),n.moveTo(a,s),n.lineTo(o,s),n.lineWidth=2,n.strokeStyle="rgb(207, 216, 220)",n.setLineDash([4,3]),n.stroke(),n.restore())}},Iz={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"right",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},_z=({data:e,height:t,classNameContainer:n,id:r,options:i,CustomTooltip:a})=>{const o=N.useRef(void 0),s=N.useRef(0),l=N.useRef(0),[u,c]=N.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),p=N.useCallback(function({ctx:m,chartArea:b,scales:f,chartHeight:y,gradientFor:C,item:S}){let x=(f.y.getPixelForValue(0)-b.top)/y;x=x<0?0:x>1?1:x,o.current=m.createLinearGradient(0,b.top,0,y+b.top),C==="background"?(o.current.addColorStop(0,(S==null?void 0:S.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(S==null?void 0:S.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(x,(S==null?void 0:S.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(x,(S==null?void 0:S.colorBorderNegative)||"#EB6B6B"))},[]),h=N.useCallback(function({ctx:m,chartArea:b,scales:f,gradientFor:y,item:C}){const S=b.right-b.left,w=b.bottom-b.top;return(!o.current||s.current!==S||l.current!==w)&&(s.current=S,l.current=w,p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C})),p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C}),o.current},[]),d=N.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"background",item:b})},borderColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"border",item:b})},borderWidth:3,tension:0,pointRadius:0,pointHoverRadius:4,...b,data:b.data}))}),[e]),v=N.useMemo(()=>ws(Iz,{plugins:{tooltip:{enabled:!a,external:({chart:b,tooltip:f})=>a?Sz(c)({chart:b,tooltip:f}):void 0}}},i??{}),[i,a]);return P.jsxs("div",{id:r,className:n,style:{height:t||"300px"},children:[a&&P.jsx(Sp,{selector:"body",children:P.jsx(a,{...u})}),P.jsx(zw,{data:d,options:v,plugins:[wz]})]})};ja.register($o,Fo,Fu,nl,Sa,$w,nl);const Dz=e=>({chart:t,tooltip:n})=>{var l,u,c,p,h,d;const r={};if(n.opacity===0){e(v=>({...v,style:{...v.style,opacity:0,pointerEvents:"none"}}));return}if(!n.dataPoints||n.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const i=t.canvas.getBoundingClientRect();r.left=i.left+window.pageXOffset+n.caretX+"px",r.top=i.top+window.pageYOffset+n.caretY+"px";const a=((u=(l=n.dataPoints)==null?void 0:l[0])==null?void 0:u.label)??"",o=((p=(c=n.dataPoints)==null?void 0:c[0])==null?void 0:p.raw)??"",s=((d=(h=n.dataPoints)==null?void 0:h[0])==null?void 0:d.dataset.label)??"";e({dataset:s,label:a,value:o,style:r,dataPoints:n.dataPoints})},Tz={id:"labelplugin",afterDatasetsDraw(e){const{ctx:t,chartArea:{top:n,bottom:r}}=e;t.save(),e.data.datasets.forEach((i,a)=>{const o=e.getDatasetMeta(a);o.visible&&o.data.forEach((s,l)=>{const u=i.data[l]||0,c=i!=null&&i.setDigit?kc(String(u)):String(u);t.font="12px Lato",t.textAlign="center";let p,h=!1;typeof u=="number"&&u>=0?(t.textBaseline="bottom",t.fillStyle=(i==null?void 0:i.colorTextLabelPositive)||s.options.borderColor,p=s.y-5,p>n&&(h=!0)):(t.textBaseline="top",t.fillStyle=(i==null?void 0:i.colorTextLabelNegative)||s.options.borderColor,p=s.y+5,p<r&&(h=!0)),h&&t.fillText(c,s.x,p)})}),t.restore()}},Az={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{y:{grace:"15%",position:"left",border:{display:!1,dash:[5,3],color:"#CFD8DC"},ticks:{callback:function(e){return kc(e)??0},font:{size:10,weight:"normal"},padding:10,color:"#898989"}},x:{grid:{display:!1},border:{dash:[5,3],color:"#CFD8DC"},ticks:{font:{size:10,weight:"normal"},color:"#898989"}}},interaction:{mode:"index",intersect:!1}},Rz=({data:e,classNameContainer:t,height:n,id:r,options:i,CustomTooltip:a})=>{const o=N.useRef(void 0),s=N.useRef(0),l=N.useRef(0),[u,c]=N.useState({dataset:"",label:"",value:0,style:{opacity:0,position:"absolute",left:0,bottom:0},dataPoints:[]}),p=N.useCallback(function({ctx:m,chartArea:b,scales:f,chartHeight:y,gradientFor:C,item:S}){let x=(f.y.getPixelForValue(0)-b.top)/y;x=x<0?0:x>1?1:x,o.current=m.createLinearGradient(0,b.top,0,y+b.top),C==="background"?(o.current.addColorStop(0,(S==null?void 0:S.colorBackgroundPositiveZero)||"#9FD2FF"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundPositivePercentage)||"rgba(115, 235, 163, 0.1)"),o.current.addColorStop(x,(S==null?void 0:S.colorBackgroundNegativePercentage)||"rgba(235, 107, 107, 0.1)"),o.current.addColorStop(1,(S==null?void 0:S.colorBackgroundNegativeOne)||"#EB6B6B")):(o.current.addColorStop(x,(S==null?void 0:S.colorBorderPositive)||"#80CBC4"),o.current.addColorStop(x,(S==null?void 0:S.colorBorderNegative)||"#EB6B6B"))},[]),h=N.useCallback(function({ctx:m,chartArea:b,scales:f,gradientFor:y,item:C}){const S=b.right-b.left,w=b.bottom-b.top;return(!o.current||s.current!==S||l.current!==w)&&(s.current=S,l.current=w,p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C})),p({ctx:m,chartArea:b,scales:f,chartHeight:w,gradientFor:y,item:C}),o.current},[]),d=N.useMemo(()=>({...e,datasets:e.datasets.map(b=>({fill:!0,backgroundColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"background",item:b})},borderColor:function(f){const y=f.chart,{ctx:C,chartArea:S,scales:w}=y;if(S)return h({ctx:C,chartArea:S,scales:w,gradientFor:"border",item:b})},borderWidth:0,tension:0,pointRadius:0,pointHoverRadius:4,setDigit:!0,...b,data:b.data}))}),[e]),v=N.useMemo(()=>ws(Az,{plugins:{tooltip:{enabled:!a,external:({chart:b,tooltip:f})=>a?Dz(c)({chart:b,tooltip:f}):void 0}}},i??{}),[i,a]);return P.jsxs("div",{id:r,className:t,style:{height:n||"300px"},children:[a&&P.jsx(Sp,{selector:"body",children:P.jsx(a,{...u})}),P.jsx(Jj,{data:d,options:v,plugins:[Tz]})]})},Bz="_left_137ks_283",kz="_right_137ks_286",Pz="_indicator_137ks_297",$z="_active_137ks_302",Ti={"container-step-indicator":"_container-step-indicator_137ks_265","text-step-indicator":"_text-step-indicator_137ks_265",left:Bz,right:kz,"step-indicator":"_step-indicator_137ks_293",indicator:Pz,active:$z};function Fz(e,t){if(e<=0)return"0px";if(e===1)return"100%";const n=e-1;return`calc((100% - (${t} * ${n})) / ${e})`}const Nz=({activeStep:e=0,countStep:t=0,classNameActiveStepIndicator:n="",classNameContainer:r="",classNameDesc:i="",classNameStepIndicator:a="",id:o="1ru-step-indicator",locationStepIndicator:s="right",widthStepIndicator:l=120,dynamicWidthStepIndicator:u=!1,gapStepIndicator:c="2px",classNameStepIndicatorContainer:p=""})=>P.jsxs("div",{id:o,className:`${Ti["container-step-indicator"]}
|
|
195
195
|
${s==="left"?Ti.left:Ti.right} ${r||""}`,children:[s==="left"&&P.jsxs("p",{className:`${Ti["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]}),P.jsx("div",{className:`${Ti["step-indicator"]} ${p||""}
|
|
196
196
|
${u?"1ru-w-full":""} ${c}`,style:{gap:c},children:Array.from({length:t}).map((h,d)=>P.jsx("div",{className:`${Ti.indicator} ${a||""}
|
|
197
|
-
${d<=e?`${Ti.active} ${n}`:""}`,style:{width:u
|
|
197
|
+
${d<=e?`${Ti.active} ${n}`:""}`,style:{width:u?Fz(t,c):l}},d))}),s==="right"&&P.jsxs("p",{className:`${Ti["text-step-indicator"]} ${i||""}`,children:[e+1,"/",t]})]}),Mz="0.2.0-beta.13",Uy={version:Mz},Oz=({label:e})=>({tinymceScriptSrc:`https://unpkg.com/1mpacto-react-ui@${Uy.version}/dist/tinymce/js/tinymce/tinymce.min.js`,init:{plugins:"lists",menubar:!1,statusbar:!1,content_css:`https://unpkg.com/1mpacto-react-ui@${Uy.version}/dist/assets/fontfamily.css`,toolbar:"fontfamily fontsize italic bold underline bullist numlist",font_size_formats:"8px 10px 12px 14px 16px 18px 24px 36px 48px",image_advtab:!0,importcss_append:!0,min_height:220,image_caption:!0,noneditable_class:"mceNonEditable",toolbar_mode:"sliding",table_tab_navigation:!1,line_height_formats:"100px",font_family_formats:`
|
|
198
198
|
Lato=Lato;
|
|
199
199
|
Inter=Inter;
|
|
200
200
|
Andale Mono=Andale Mono,times;
|
|
@@ -221,10 +221,10 @@ You should wrap it with \`css\` like this:
|
|
|
221
221
|
!1ru-pl-2
|
|
222
222
|
!1ru-pt-2
|
|
223
223
|
!1ru-pointer-events-none
|
|
224
|
-
`,n!=null&&n.className&&(n.className="!1ru-mt-6 !1ru-w-full"),i.appendChild(document.createTextNode(e||"")),r==null||r.appendChild(i)}},setup:t=>{t.on("PostProcess",function(n){/<p style="font-family: Lato; margin: 0px;"> <\/p>/i.test(n.content)&&(n.content=n.content.replace(/ /gi,"<br />"))}),t.on("PastePostProcess",n=>{n.node.querySelectorAll("*").forEach(a=>{t.dom.setStyle(a,"font-family","Lato"),t.dom.setStyle(a,"margin","0px")})})}}}),
|
|
224
|
+
`,n!=null&&n.className&&(n.className="!1ru-mt-6 !1ru-w-full"),i.appendChild(document.createTextNode(e||"")),r==null||r.appendChild(i)}},setup:t=>{t.on("PostProcess",function(n){/<p style="font-family: Lato; margin: 0px;"> <\/p>/i.test(n.content)&&(n.content=n.content.replace(/ /gi,"<br />"))}),t.on("PastePostProcess",n=>{n.node.querySelectorAll("*").forEach(a=>{t.dom.setStyle(a,"font-family","Lato"),t.dom.setStyle(a,"margin","0px")})})}}}),Lz="_container_4wlxe_1",Vz={container:Lz};var pu={exports:{}};/*
|
|
225
225
|
object-assign
|
|
226
226
|
(c) Sindre Sorhus
|
|
227
227
|
@license MIT
|
|
228
|
-
*/var gh,Xy;function
|
|
229
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var D=V(le,H,Z,ee,q+"."+H,n);if(D)return D}return null}return b(U)}function B(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(B);if(W===null||s(W))return!0;var U=p(W);if(U){var J=U.call(W),Q;if(U!==W.entries){for(;!(Q=J.next()).done;)if(!B(Q.value))return!1}else for(;!(Q=J.next()).done;){var Z=Q.value;if(Z&&!B(Z[1]))return!1}}else return!1;return!0;default:return!1}}function $(W,U){return W==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function k(W){var U=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":$(U,W)?"symbol":U}function O(W){if(typeof W>"u"||W===null)return""+W;var U=k(W);if(U==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return U}function M(W){var U=O(W);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function G(W){return!W.constructor||!W.constructor.name?h:W.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},bh}var yh,Jy;function zz(){if(Jy)return yh;Jy=1;var e=Hp();function t(){}function n(){}return n.resetWarningCache=t,yh=function(){function r(o,s,l,u,c,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},yh}var Qy;function Gz(){if(Qy)return pu.exports;if(Qy=1,process.env.NODE_ENV!=="production"){var e=Mg(),t=!0;pu.exports=jz()(e.isElement,t)}else pu.exports=zz()();return pu.exports}var ce=Gz(),P0=function(){return P0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P0.apply(this,arguments)},Xw={onActivate:ce.func,onAddUndo:ce.func,onBeforeAddUndo:ce.func,onBeforeExecCommand:ce.func,onBeforeGetContent:ce.func,onBeforeRenderUI:ce.func,onBeforeSetContent:ce.func,onBeforePaste:ce.func,onBlur:ce.func,onChange:ce.func,onClearUndos:ce.func,onClick:ce.func,onContextMenu:ce.func,onCommentChange:ce.func,onCompositionEnd:ce.func,onCompositionStart:ce.func,onCompositionUpdate:ce.func,onCopy:ce.func,onCut:ce.func,onDblclick:ce.func,onDeactivate:ce.func,onDirty:ce.func,onDrag:ce.func,onDragDrop:ce.func,onDragEnd:ce.func,onDragGesture:ce.func,onDragOver:ce.func,onDrop:ce.func,onExecCommand:ce.func,onFocus:ce.func,onFocusIn:ce.func,onFocusOut:ce.func,onGetContent:ce.func,onHide:ce.func,onInit:ce.func,onInput:ce.func,onKeyDown:ce.func,onKeyPress:ce.func,onKeyUp:ce.func,onLoadContent:ce.func,onMouseDown:ce.func,onMouseEnter:ce.func,onMouseLeave:ce.func,onMouseMove:ce.func,onMouseOut:ce.func,onMouseOver:ce.func,onMouseUp:ce.func,onNodeChange:ce.func,onObjectResizeStart:ce.func,onObjectResized:ce.func,onObjectSelected:ce.func,onPaste:ce.func,onPostProcess:ce.func,onPostRender:ce.func,onPreProcess:ce.func,onProgressState:ce.func,onRedo:ce.func,onRemove:ce.func,onReset:ce.func,onSaveContent:ce.func,onSelectionChange:ce.func,onSetAttrib:ce.func,onSetContent:ce.func,onShow:ce.func,onSubmit:ce.func,onUndo:ce.func,onVisualAid:ce.func,onSkinLoadError:ce.func,onThemeLoadError:ce.func,onModelLoadError:ce.func,onPluginLoadError:ce.func,onIconsLoadError:ce.func,onLanguageLoadError:ce.func,onScriptsLoad:ce.func,onScriptsLoadError:ce.func},Wz=P0({apiKey:ce.string,licenseKey:ce.string,id:ce.string,inline:ce.bool,init:ce.object,initialValue:ce.string,onEditorChange:ce.func,value:ce.string,tagName:ce.string,tabIndex:ce.number,cloudChannel:ce.string,plugins:ce.oneOfType([ce.string,ce.array]),toolbar:ce.oneOfType([ce.string,ce.array]),disabled:ce.bool,readonly:ce.bool,textareaName:ce.string,tinymceScriptSrc:ce.oneOfType([ce.string,ce.arrayOf(ce.string),ce.arrayOf(ce.shape({src:ce.string,async:ce.bool,defer:ce.bool}))]),rollback:ce.oneOfType([ce.number,ce.oneOf([!1])]),scriptLoading:ce.shape({async:ce.bool,defer:ce.bool,delay:ce.number})},Xw),Yw=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},xh=function(e){return typeof e=="function"},ex=function(e){return e in Xw},tx=function(e){return e.substr(2)},Uz=function(e,t,n,r,i,a,o){var s=Object.keys(i).filter(ex),l=Object.keys(a).filter(ex),u=s.filter(function(p){return a[p]===void 0}),c=l.filter(function(p){return i[p]===void 0});u.forEach(function(p){var h=tx(p),d=o[h];n(h,d),delete o[h]}),c.forEach(function(p){var h=r(e,p),d=tx(p);o[d]=h,t(d,h)})},Xz=function(e,t,n,r,i){return Uz(i,e.on.bind(e),e.off.bind(e),function(a,o){return function(s){var l;return(l=a(o))===null||l===void 0?void 0:l(s,e)}},t,n,r)},nx=0,Kw=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return nx++,e+"_"+n+nx+String(t)},rx=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},ix=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},Yz=function(e,t){return ix(e).concat(ix(t))},Kz=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},Zz=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},ax=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},qz=function(e){var t=Yw(e);if(!t)throw new Error("tinymce should have been loaded into global scope");return t},ox=function(e){return e.options&&e.options.isRegistered("disabled")},$0=function(){return $0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$0.apply(this,arguments)},Jz=function(e,t,n){var r,i,a=e.createElement("script");a.referrerPolicy="origin",a.type="application/javascript",a.id=t.id,a.src=t.src,a.async=(r=t.async)!==null&&r!==void 0?r:!1,a.defer=(i=t.defer)!==null&&i!==void 0?i:!1;var o=function(){a.removeEventListener("load",o),a.removeEventListener("error",s),n(t.src)},s=function(l){a.removeEventListener("load",o),a.removeEventListener("error",s),n(t.src,l)};a.addEventListener("load",o),a.addEventListener("error",s),e.head&&e.head.appendChild(a)},Qz=function(e){var t={},n=function(o,s){var l=t[o];l.done=!0,l.error=s;for(var u=0,c=l.handlers;u<c.length;u++){var p=c[u];p(o,s)}l.handlers=[]},r=function(o,s,l){var u=function(y){return l!==void 0?l(y):console.error(y)};if(o.length===0){u(new Error("At least one script must be provided"));return}for(var c=0,p=!1,h=function(y,C){p||(C?(p=!0,u(C)):++c===o.length&&s())},d=0,v=o;d<v.length;d++){var m=v[d],b=t[m.src];if(b)b.done?h(m.src,b.error):b.handlers.push(h);else{var f=Kw("tiny-");t[m.src]={id:f,src:m.src,done:!1,error:null,handlers:[h]},Jz(e,$0({id:f},m),n)}}},i=function(){for(var o,s=0,l=Object.values(t);s<l.length;s++){var u=l[s],c=e.getElementById(u.id);c!=null&&c.tagName==="SCRIPT"&&((o=c.parentNode)===null||o===void 0||o.removeChild(c))}t={}},a=function(){return e};return{loadScripts:r,deleteScripts:i,getDocument:a}},eG=function(){var e=[],t=function(i){var a=e.find(function(o){return o.getDocument()===i});return a===void 0&&(a=Qz(i),e.push(a)),a},n=function(i,a,o,s,l){var u=function(){return t(i).loadScripts(a,s,l)};o>0?setTimeout(u,o):u()},r=function(){for(var i=e.pop();i!=null;i=e.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},tG=eG(),nG=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),so=function(){return so=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},so.apply(this,arguments)},Ch="change keyup compositionend setcontent CommentChange",rG=function(e){nG(t,e);function t(n){var r,i,a,o=e.call(this,n)||this;return o.rollbackTimer=void 0,o.valueCursor=void 0,o.rollbackChange=function(){var s=o.editor,l=o.props.value;s&&l&&l!==o.currentContent&&s.undoManager.ignore(function(){if(s.setContent(l),o.valueCursor&&(!o.inline||s.hasFocus()))try{s.selection.moveToBookmark(o.valueCursor)}catch{}}),o.rollbackTimer=void 0},o.handleBeforeInput=function(s){if(o.props.value!==void 0&&o.props.value===o.currentContent&&o.editor&&(!o.inline||o.editor.hasFocus()))try{o.valueCursor=o.editor.selection.getBookmark(3)}catch{}},o.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&o.handleBeforeInput(s)},o.handleEditorChange=function(s){var l=o.editor;if(l&&l.initialized){var u=l.getContent();o.props.value!==void 0&&o.props.value!==u&&o.props.rollback!==!1&&(o.rollbackTimer||(o.rollbackTimer=window.setTimeout(o.rollbackChange,typeof o.props.rollback=="number"?o.props.rollback:200))),u!==o.currentContent&&(o.currentContent=u,xh(o.props.onEditorChange)&&o.props.onEditorChange(u,l))}},o.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&o.handleEditorChange(s)},o.initialise=function(s){var l,u,c;s===void 0&&(s=0);var p=o.elementRef.current;if(p){if(!Zz(p)){if(s===0)setTimeout(function(){return o.initialise(1)},1);else if(s<100)setTimeout(function(){return o.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var h=qz(o.view),d=so(so(so(so({},o.props.init),{selector:void 0,target:p,disabled:o.props.disabled,readonly:o.props.readonly,inline:o.inline,plugins:Yz((l=o.props.init)===null||l===void 0?void 0:l.plugins,o.props.plugins),toolbar:(u=o.props.toolbar)!==null&&u!==void 0?u:(c=o.props.init)===null||c===void 0?void 0:c.toolbar}),o.props.licenseKey?{license_key:o.props.licenseKey}:{}),{setup:function(v){o.editor=v,o.bindHandlers({}),o.inline&&!rx(p)&&v.once("PostRender",function(m){v.setContent(o.getInitialValue(),{no_events:!0})}),o.props.init&&xh(o.props.init.setup)&&o.props.init.setup(v),o.props.disabled&&(ox(o.editor)?o.editor.options.set("disabled",o.props.disabled):o.editor.mode.set("readonly"))},init_instance_callback:function(v){var m,b=o.getInitialValue();o.currentContent=(m=o.currentContent)!==null&&m!==void 0?m:v.getContent(),o.currentContent!==b&&(o.currentContent=b,v.setContent(b),v.undoManager.clear(),v.undoManager.add(),v.setDirty(!1)),o.props.init&&xh(o.props.init.init_instance_callback)&&o.props.init.init_instance_callback(v)}});o.inline||(p.style.visibility=""),rx(p)&&(p.value=o.getInitialValue()),h.init(d)}},o.id=o.props.id||Kw("tiny-react"),o.elementRef=ae.createRef(),o.inline=(a=(r=o.props.inline)!==null&&r!==void 0?r:(i=o.props.init)===null||i===void 0?void 0:i.inline)!==null&&a!==void 0?a:!1,o.boundHandlers={},o}return Object.defineProperty(t.prototype,"view",{get:function(){var n,r;return(r=(n=this.elementRef.current)===null||n===void 0?void 0:n.ownerDocument.defaultView)!==null&&r!==void 0?r:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(n){var r=this,i,a;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=(i=this.currentContent)!==null&&i!==void 0?i:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var o=this.editor;o.undoManager.transact(function(){var l;if(!r.inline||o.hasFocus())try{l=o.selection.getBookmark(3)}catch{}var u=r.valueCursor;if(o.setContent(r.props.value),!r.inline||o.hasFocus())for(var c=0,p=[l,u];c<p.length;c++){var h=p[c];if(h)try{o.selection.moveToBookmark(h),r.valueCursor=h;break}catch{}}})}if(this.props.readonly!==n.readonly){var s=(a=this.props.readonly)!==null&&a!==void 0?a:!1;ax(this.editor,s?"readonly":"design")}this.props.disabled!==n.disabled&&(ox(this.editor)?this.editor.options.set("disabled",this.props.disabled):ax(this.editor,this.props.disabled?"readonly":"design"))}},t.prototype.componentDidMount=function(){var n=this,r,i,a,o,s;if(Yw(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(i=(r=this.props).onScriptsLoadError)===null||i===void 0||i.call(r,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((a=this.elementRef.current)===null||a===void 0)&&a.ownerDocument){var l=function(){var c,p;(p=(c=n.props).onScriptsLoad)===null||p===void 0||p.call(c),n.initialise()},u=function(c){var p,h;(h=(p=n.props).onScriptsLoadError)===null||h===void 0||h.call(p,c)};tG.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(o=this.props.scriptLoading)===null||o===void 0?void 0:o.delay)!==null&&s!==void 0?s:0,l,u)}},t.prototype.componentWillUnmount=function(){var n=this,r=this.editor;r&&(r.off(Ch,this.handleEditorChange),r.off(this.beforeInputEvent(),this.handleBeforeInput),r.off("keypress",this.handleEditorChangeSpecial),r.off("keydown",this.handleBeforeInputSpecial),r.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(i){r.off(i,n.boundHandlers[i])}),this.boundHandlers={},r.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.beforeInputEvent=function(){return Kz()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var n=this.props.tagName,r=n===void 0?"div":n;return ae.createElement(r,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.renderIframe=function(){return ae.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.getScriptSources=function(){var n,r,i=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.async,a=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:i,defer:a}]:this.props.tinymceScriptSrc.map(function(u){return typeof u=="string"?{src:u,async:i,defer:a}:u});var o=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",l="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(o,"/tinymce.min.js");return[{src:l,async:i,defer:a}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(n){var r=this;if(this.editor!==void 0){Xz(this.editor,n,this.props,this.boundHandlers,function(s){return r.props[s]});var i=function(s){return s.onEditorChange!==void 0||s.value!==void 0},a=i(n),o=i(this.props);!a&&o?(this.editor.on(Ch,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):a&&!o&&(this.editor.off(Ch,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=Wz,t.defaultProps={cloudChannel:"7"},t}(ae.Component);const iG=e=>P.jsx("div",{className:`${Lz.container}`,children:P.jsx(rG,{...ws(Mz({label:e.label}),e)})}),aG=({children:e,open:t,className:n,id:r,classNameContainer:i})=>(N.useLayoutEffect(()=>{const a=document.getElementById(r),o=document.getElementById(`inner-${r}`);if(!a||!o)return;const s=new ResizeObserver(()=>{const l=o.getBoundingClientRect().height;a.style.height=`${l}px`});if(t){const l=o.getBoundingClientRect().height;a.style.height=`${l}px`,s.observe(o)}else a.style.height="0px";return()=>{s.disconnect()}},[t,r]),P.jsx("div",{id:r,className:`${PS.collapse} ${i??""}`,style:{height:0},children:P.jsx("div",{id:`inner-${r}`,className:n??"",children:e})}));exports.AlertContainer=MD;exports.Badges=DS;exports.BigNumber=bt;exports.Breadcrumbs=pM;exports.Button=mr;exports.ButtonIcon=_S;exports.ButtonPopover=Ww;exports.Calendar=sd;exports.CalendarRange=wS;exports.CheckboxTable=ez;exports.Chips=TS;exports.Collapse=yM;exports.CollapseV2=aG;exports.ConfigColors=Ox;exports.ConfigTable=mn;exports.DatePicker=ZN;exports.DateRangePicker=IS;exports.DefaultCheckedChecboxIcon=AS;exports.DefaultRadioChecboxIcon=RS;exports.DoughnutChart=Jj;exports.ErrorMessage=sz;exports.FilterContainer=$S;exports.FilterDate=qN;exports.GradientBarChart=Az;exports.GradientLineChart=Iz;exports.InputFloatingInner=pC;exports.InputNative=Vp;exports.InputReguler=sg;exports.LineChart=vz;exports.ListVirtualization=S2;exports.ModalDialog=CM;exports.MonthYearPicker=Qj;exports.NumberFormat=tO;exports.Pagination=sk;exports.PatternFormat=eO;exports.Popover=bi;exports.PortalComponent=Sp;exports.RadioCheckbox=ld;exports.RadioCheckboxLabel=cM;exports.SelectDropdownContainer=d4;exports.SelectDropdownContainerComponents=Q2;exports.Sidebar=kS;exports.Step=pz;exports.StepIndicator=Fz;exports.Switch=eM;exports.TPublish=LT;exports.TabPanel=Q9;exports.Table=U9;exports.TableSubComponent=X9;exports.TableVirtualization=Ag;exports.Tabs=J9;exports.TextEditor=iG;exports.Textarea=WS;exports.TextareaFloatingInner=Gw;exports.Timeline=IM;exports.Tooltip=yz;exports.TruncateComponent=aO;exports.TypeBigNumber=Dc;exports.UploadFile=GS;exports.UploadImage=cO;exports.UploadMultipleFile=oz;exports.betweenBig=qD;exports.configNativeScreens=OT;exports.configScreens=MT;exports.configTypography=NT;exports.configTypographyLabaBisnis=Vx;exports.configTypographyPayhere=Lx;exports.convertBigNumbersToStrings=kh;exports.convertNumbersToBigNumbers=Bh;exports.convertTextToJsonBigNumbers=FT;exports.cookieStorage=nD;exports.deepCompareEquals=X0;exports.defaultConfig=gx;exports.deleteKeysImmutable=X_;exports.deleteKeysMutable=U_;exports.encryptRSAOAEP=J_;exports.extractElementStringToOriginalValue=q_;exports.formatBigNumber=Q_;exports.formatDate=io;exports.formatDateRange=L_;exports.formatNumber=Ri;exports.groupByKey=Ax;exports.isAccurateBigNumber=Hr;exports.isAccurateNumber=Tx;exports.lessThanBig=ZD;exports.maxBig=YD;exports.minBig=XD;exports.moreThanBig=KD;exports.openAlert=OD;exports.parseBigDecimal=Bc;exports.parseDecimal=G0;exports.parseFileName=wh;exports.removeKeyObjectEmptyValue=H_;exports.removeTrailingZeros=eD;exports.setDigit=kc;exports.transformArrayMapping=z_;exports.transformArrayMappingObjectFC=G_;exports.transformArrayOfObjectToArray=U0;exports.transformArrayOfObjectToString=W0;exports.transformBigNumber=K_;exports.transformDataHistory=V_;exports.transformLatLong=j_;exports.transformNumber=Y_;exports.transformSecondTime=W_;exports.transfromIsNan=Z_;exports.useAsyncDebounce=x2;exports.useCombinedResizeObserver=N9;exports.useCountdown=F9;exports.useDeepCompareEffect=Gi;exports.useDeepCompareMemoize=$s;exports.useElementOrWindowMediaQuery=$9;exports.useEventListener=V9;exports.useMasonry=H9;exports.useMergeRefs=Bg;exports.useStateRef=M9;exports.utilTable=YR;
|
|
228
|
+
*/var gh,Xy;function Hz(){if(Xy)return gh;Xy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gh=i()?Object.assign:function(a,o){for(var s,l=r(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var p in s)t.call(s,p)&&(l[p]=s[p]);if(e){u=e(s);for(var h=0;h<u.length;h++)n.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},gh}var ph,Yy;function Hp(){if(Yy)return ph;Yy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ph=e,ph}var mh,Ky;function Uw(){return Ky||(Ky=1,mh=Function.call.bind(Object.prototype.hasOwnProperty)),mh}var vh,Zy;function jz(){if(Zy)return vh;Zy=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hp(),n={},r=Uw();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(r(a,c)){var p;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=a[c](o,c,l,s,null,t)}catch(v){p=v}if(p&&!(p instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var d=u?u():"";e("Failed "+s+" type: "+p.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vh=i,vh}var bh,qy;function zz(){if(qy)return bh;qy=1;var e=Mg(),t=Hz(),n=Hp(),r=Uw(),i=jz(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return bh=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function p(W){var U=W&&(u&&W[u]||W[c]);if(typeof U=="function")return U}var h="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:y(),arrayOf:C,element:S(),elementType:w(),instanceOf:E,node:T(),objectOf:g,oneOf:x,oneOfType:I,shape:A,exact:F};function v(W,U){return W===U?W!==0||1/W===1/U:W!==W&&U!==U}function m(W,U){this.message=W,this.data=U&&typeof U=="object"?U:{},this.stack=""}m.prototype=Error.prototype;function b(W){if(process.env.NODE_ENV!=="production")var U={},J=0;function Q(ee,q,le,re,R,H,V){if(re=re||h,H=H||le,V!==n){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var L=re+":"+le;!U[L]&&J<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[L]=!0,J++)}}return q[le]==null?ee?q[le]===null?new m("The "+R+" `"+H+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new m("The "+R+" `"+H+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:W(q,le,re,R,H)}var Z=Q.bind(null,!1);return Z.isRequired=Q.bind(null,!0),Z}function f(W){function U(J,Q,Z,ee,q,le){var re=J[Q],R=k(re);if(R!==W){var H=O(re);return new m("Invalid "+ee+" `"+q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return b(U)}function y(){return b(o)}function C(W){function U(J,Q,Z,ee,q){if(typeof W!="function")return new m("Property `"+q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var le=J[Q];if(!Array.isArray(le)){var re=k(le);return new m("Invalid "+ee+" `"+q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an array."))}for(var R=0;R<le.length;R++){var H=W(le,R,Z,ee,q+"["+R+"]",n);if(H instanceof Error)return H}return null}return b(U)}function S(){function W(U,J,Q,Z,ee){var q=U[J];if(!s(q)){var le=k(q);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return b(W)}function w(){function W(U,J,Q,Z,ee){var q=U[J];if(!e.isValidElementType(q)){var le=k(q);return new m("Invalid "+Z+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return b(W)}function E(W){function U(J,Q,Z,ee,q){if(!(J[Q]instanceof W)){var le=W.name||h,re=G(J[Q]);return new m("Invalid "+ee+" `"+q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected ")+("instance of `"+le+"`."))}return null}return b(U)}function x(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function U(J,Q,Z,ee,q){for(var le=J[Q],re=0;re<W.length;re++)if(v(le,W[re]))return null;var R=JSON.stringify(W,function(V,D){var L=O(D);return L==="symbol"?String(D):D});return new m("Invalid "+ee+" `"+q+"` of value `"+String(le)+"` "+("supplied to `"+Z+"`, expected one of "+R+"."))}return b(U)}function g(W){function U(J,Q,Z,ee,q){if(typeof W!="function")return new m("Property `"+q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var le=J[Q],re=k(le);if(re!=="object")return new m("Invalid "+ee+" `"+q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an object."));for(var R in le)if(r(le,R)){var H=W(le,R,Z,ee,q+"."+R,n);if(H instanceof Error)return H}return null}return b(U)}function I(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<W.length;U++){var J=W[U];if(typeof J!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(J)+" at index "+U+"."),o}function Q(Z,ee,q,le,re){for(var R=[],H=0;H<W.length;H++){var V=W[H],D=V(Z,ee,q,le,re,n);if(D==null)return null;D.data&&r(D.data,"expectedType")&&R.push(D.data.expectedType)}var L=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new m("Invalid "+le+" `"+re+"` supplied to "+("`"+q+"`"+L+"."))}return b(Q)}function T(){function W(U,J,Q,Z,ee){return B(U[J])?null:new m("Invalid "+Z+" `"+ee+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return b(W)}function _(W,U,J,Q,Z){return new m((W||"React class")+": "+U+" type `"+J+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function A(W){function U(J,Q,Z,ee,q){var le=J[Q],re=k(le);if(re!=="object")return new m("Invalid "+ee+" `"+q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));for(var R in W){var H=W[R];if(typeof H!="function")return _(Z,ee,q,R,O(H));var V=H(le,R,Z,ee,q+"."+R,n);if(V)return V}return null}return b(U)}function F(W){function U(J,Q,Z,ee,q){var le=J[Q],re=k(le);if(re!=="object")return new m("Invalid "+ee+" `"+q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));var R=t({},J[Q],W);for(var H in R){var V=W[H];if(r(W,H)&&typeof V!="function")return _(Z,ee,q,H,O(V));if(!V)return new m("Invalid "+ee+" `"+q+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(J[Q],null," ")+`
|
|
229
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var D=V(le,H,Z,ee,q+"."+H,n);if(D)return D}return null}return b(U)}function B(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(B);if(W===null||s(W))return!0;var U=p(W);if(U){var J=U.call(W),Q;if(U!==W.entries){for(;!(Q=J.next()).done;)if(!B(Q.value))return!1}else for(;!(Q=J.next()).done;){var Z=Q.value;if(Z&&!B(Z[1]))return!1}}else return!1;return!0;default:return!1}}function $(W,U){return W==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function k(W){var U=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":$(U,W)?"symbol":U}function O(W){if(typeof W>"u"||W===null)return""+W;var U=k(W);if(U==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return U}function M(W){var U=O(W);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function G(W){return!W.constructor||!W.constructor.name?h:W.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},bh}var yh,Jy;function Gz(){if(Jy)return yh;Jy=1;var e=Hp();function t(){}function n(){}return n.resetWarningCache=t,yh=function(){function r(o,s,l,u,c,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},yh}var Qy;function Wz(){if(Qy)return pu.exports;if(Qy=1,process.env.NODE_ENV!=="production"){var e=Mg(),t=!0;pu.exports=zz()(e.isElement,t)}else pu.exports=Gz()();return pu.exports}var ce=Wz(),P0=function(){return P0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P0.apply(this,arguments)},Xw={onActivate:ce.func,onAddUndo:ce.func,onBeforeAddUndo:ce.func,onBeforeExecCommand:ce.func,onBeforeGetContent:ce.func,onBeforeRenderUI:ce.func,onBeforeSetContent:ce.func,onBeforePaste:ce.func,onBlur:ce.func,onChange:ce.func,onClearUndos:ce.func,onClick:ce.func,onContextMenu:ce.func,onCommentChange:ce.func,onCompositionEnd:ce.func,onCompositionStart:ce.func,onCompositionUpdate:ce.func,onCopy:ce.func,onCut:ce.func,onDblclick:ce.func,onDeactivate:ce.func,onDirty:ce.func,onDrag:ce.func,onDragDrop:ce.func,onDragEnd:ce.func,onDragGesture:ce.func,onDragOver:ce.func,onDrop:ce.func,onExecCommand:ce.func,onFocus:ce.func,onFocusIn:ce.func,onFocusOut:ce.func,onGetContent:ce.func,onHide:ce.func,onInit:ce.func,onInput:ce.func,onKeyDown:ce.func,onKeyPress:ce.func,onKeyUp:ce.func,onLoadContent:ce.func,onMouseDown:ce.func,onMouseEnter:ce.func,onMouseLeave:ce.func,onMouseMove:ce.func,onMouseOut:ce.func,onMouseOver:ce.func,onMouseUp:ce.func,onNodeChange:ce.func,onObjectResizeStart:ce.func,onObjectResized:ce.func,onObjectSelected:ce.func,onPaste:ce.func,onPostProcess:ce.func,onPostRender:ce.func,onPreProcess:ce.func,onProgressState:ce.func,onRedo:ce.func,onRemove:ce.func,onReset:ce.func,onSaveContent:ce.func,onSelectionChange:ce.func,onSetAttrib:ce.func,onSetContent:ce.func,onShow:ce.func,onSubmit:ce.func,onUndo:ce.func,onVisualAid:ce.func,onSkinLoadError:ce.func,onThemeLoadError:ce.func,onModelLoadError:ce.func,onPluginLoadError:ce.func,onIconsLoadError:ce.func,onLanguageLoadError:ce.func,onScriptsLoad:ce.func,onScriptsLoadError:ce.func},Uz=P0({apiKey:ce.string,licenseKey:ce.string,id:ce.string,inline:ce.bool,init:ce.object,initialValue:ce.string,onEditorChange:ce.func,value:ce.string,tagName:ce.string,tabIndex:ce.number,cloudChannel:ce.string,plugins:ce.oneOfType([ce.string,ce.array]),toolbar:ce.oneOfType([ce.string,ce.array]),disabled:ce.bool,readonly:ce.bool,textareaName:ce.string,tinymceScriptSrc:ce.oneOfType([ce.string,ce.arrayOf(ce.string),ce.arrayOf(ce.shape({src:ce.string,async:ce.bool,defer:ce.bool}))]),rollback:ce.oneOfType([ce.number,ce.oneOf([!1])]),scriptLoading:ce.shape({async:ce.bool,defer:ce.bool,delay:ce.number})},Xw),Yw=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},xh=function(e){return typeof e=="function"},ex=function(e){return e in Xw},tx=function(e){return e.substr(2)},Xz=function(e,t,n,r,i,a,o){var s=Object.keys(i).filter(ex),l=Object.keys(a).filter(ex),u=s.filter(function(p){return a[p]===void 0}),c=l.filter(function(p){return i[p]===void 0});u.forEach(function(p){var h=tx(p),d=o[h];n(h,d),delete o[h]}),c.forEach(function(p){var h=r(e,p),d=tx(p);o[d]=h,t(d,h)})},Yz=function(e,t,n,r,i){return Xz(i,e.on.bind(e),e.off.bind(e),function(a,o){return function(s){var l;return(l=a(o))===null||l===void 0?void 0:l(s,e)}},t,n,r)},nx=0,Kw=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return nx++,e+"_"+n+nx+String(t)},rx=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},ix=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},Kz=function(e,t){return ix(e).concat(ix(t))},Zz=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},qz=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},ax=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},Jz=function(e){var t=Yw(e);if(!t)throw new Error("tinymce should have been loaded into global scope");return t},ox=function(e){return e.options&&e.options.isRegistered("disabled")},$0=function(){return $0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$0.apply(this,arguments)},Qz=function(e,t,n){var r,i,a=e.createElement("script");a.referrerPolicy="origin",a.type="application/javascript",a.id=t.id,a.src=t.src,a.async=(r=t.async)!==null&&r!==void 0?r:!1,a.defer=(i=t.defer)!==null&&i!==void 0?i:!1;var o=function(){a.removeEventListener("load",o),a.removeEventListener("error",s),n(t.src)},s=function(l){a.removeEventListener("load",o),a.removeEventListener("error",s),n(t.src,l)};a.addEventListener("load",o),a.addEventListener("error",s),e.head&&e.head.appendChild(a)},eG=function(e){var t={},n=function(o,s){var l=t[o];l.done=!0,l.error=s;for(var u=0,c=l.handlers;u<c.length;u++){var p=c[u];p(o,s)}l.handlers=[]},r=function(o,s,l){var u=function(y){return l!==void 0?l(y):console.error(y)};if(o.length===0){u(new Error("At least one script must be provided"));return}for(var c=0,p=!1,h=function(y,C){p||(C?(p=!0,u(C)):++c===o.length&&s())},d=0,v=o;d<v.length;d++){var m=v[d],b=t[m.src];if(b)b.done?h(m.src,b.error):b.handlers.push(h);else{var f=Kw("tiny-");t[m.src]={id:f,src:m.src,done:!1,error:null,handlers:[h]},Qz(e,$0({id:f},m),n)}}},i=function(){for(var o,s=0,l=Object.values(t);s<l.length;s++){var u=l[s],c=e.getElementById(u.id);c!=null&&c.tagName==="SCRIPT"&&((o=c.parentNode)===null||o===void 0||o.removeChild(c))}t={}},a=function(){return e};return{loadScripts:r,deleteScripts:i,getDocument:a}},tG=function(){var e=[],t=function(i){var a=e.find(function(o){return o.getDocument()===i});return a===void 0&&(a=eG(i),e.push(a)),a},n=function(i,a,o,s,l){var u=function(){return t(i).loadScripts(a,s,l)};o>0?setTimeout(u,o):u()},r=function(){for(var i=e.pop();i!=null;i=e.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},nG=tG(),rG=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),so=function(){return so=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},so.apply(this,arguments)},Ch="change keyup compositionend setcontent CommentChange",iG=function(e){rG(t,e);function t(n){var r,i,a,o=e.call(this,n)||this;return o.rollbackTimer=void 0,o.valueCursor=void 0,o.rollbackChange=function(){var s=o.editor,l=o.props.value;s&&l&&l!==o.currentContent&&s.undoManager.ignore(function(){if(s.setContent(l),o.valueCursor&&(!o.inline||s.hasFocus()))try{s.selection.moveToBookmark(o.valueCursor)}catch{}}),o.rollbackTimer=void 0},o.handleBeforeInput=function(s){if(o.props.value!==void 0&&o.props.value===o.currentContent&&o.editor&&(!o.inline||o.editor.hasFocus()))try{o.valueCursor=o.editor.selection.getBookmark(3)}catch{}},o.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&o.handleBeforeInput(s)},o.handleEditorChange=function(s){var l=o.editor;if(l&&l.initialized){var u=l.getContent();o.props.value!==void 0&&o.props.value!==u&&o.props.rollback!==!1&&(o.rollbackTimer||(o.rollbackTimer=window.setTimeout(o.rollbackChange,typeof o.props.rollback=="number"?o.props.rollback:200))),u!==o.currentContent&&(o.currentContent=u,xh(o.props.onEditorChange)&&o.props.onEditorChange(u,l))}},o.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&o.handleEditorChange(s)},o.initialise=function(s){var l,u,c;s===void 0&&(s=0);var p=o.elementRef.current;if(p){if(!qz(p)){if(s===0)setTimeout(function(){return o.initialise(1)},1);else if(s<100)setTimeout(function(){return o.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var h=Jz(o.view),d=so(so(so(so({},o.props.init),{selector:void 0,target:p,disabled:o.props.disabled,readonly:o.props.readonly,inline:o.inline,plugins:Kz((l=o.props.init)===null||l===void 0?void 0:l.plugins,o.props.plugins),toolbar:(u=o.props.toolbar)!==null&&u!==void 0?u:(c=o.props.init)===null||c===void 0?void 0:c.toolbar}),o.props.licenseKey?{license_key:o.props.licenseKey}:{}),{setup:function(v){o.editor=v,o.bindHandlers({}),o.inline&&!rx(p)&&v.once("PostRender",function(m){v.setContent(o.getInitialValue(),{no_events:!0})}),o.props.init&&xh(o.props.init.setup)&&o.props.init.setup(v),o.props.disabled&&(ox(o.editor)?o.editor.options.set("disabled",o.props.disabled):o.editor.mode.set("readonly"))},init_instance_callback:function(v){var m,b=o.getInitialValue();o.currentContent=(m=o.currentContent)!==null&&m!==void 0?m:v.getContent(),o.currentContent!==b&&(o.currentContent=b,v.setContent(b),v.undoManager.clear(),v.undoManager.add(),v.setDirty(!1)),o.props.init&&xh(o.props.init.init_instance_callback)&&o.props.init.init_instance_callback(v)}});o.inline||(p.style.visibility=""),rx(p)&&(p.value=o.getInitialValue()),h.init(d)}},o.id=o.props.id||Kw("tiny-react"),o.elementRef=ae.createRef(),o.inline=(a=(r=o.props.inline)!==null&&r!==void 0?r:(i=o.props.init)===null||i===void 0?void 0:i.inline)!==null&&a!==void 0?a:!1,o.boundHandlers={},o}return Object.defineProperty(t.prototype,"view",{get:function(){var n,r;return(r=(n=this.elementRef.current)===null||n===void 0?void 0:n.ownerDocument.defaultView)!==null&&r!==void 0?r:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(n){var r=this,i,a;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(n),this.editor.initialized)){if(this.currentContent=(i=this.currentContent)!==null&&i!==void 0?i:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==n.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var o=this.editor;o.undoManager.transact(function(){var l;if(!r.inline||o.hasFocus())try{l=o.selection.getBookmark(3)}catch{}var u=r.valueCursor;if(o.setContent(r.props.value),!r.inline||o.hasFocus())for(var c=0,p=[l,u];c<p.length;c++){var h=p[c];if(h)try{o.selection.moveToBookmark(h),r.valueCursor=h;break}catch{}}})}if(this.props.readonly!==n.readonly){var s=(a=this.props.readonly)!==null&&a!==void 0?a:!1;ax(this.editor,s?"readonly":"design")}this.props.disabled!==n.disabled&&(ox(this.editor)?this.editor.options.set("disabled",this.props.disabled):ax(this.editor,this.props.disabled?"readonly":"design"))}},t.prototype.componentDidMount=function(){var n=this,r,i,a,o,s;if(Yw(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(i=(r=this.props).onScriptsLoadError)===null||i===void 0||i.call(r,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((a=this.elementRef.current)===null||a===void 0)&&a.ownerDocument){var l=function(){var c,p;(p=(c=n.props).onScriptsLoad)===null||p===void 0||p.call(c),n.initialise()},u=function(c){var p,h;(h=(p=n.props).onScriptsLoadError)===null||h===void 0||h.call(p,c)};nG.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(o=this.props.scriptLoading)===null||o===void 0?void 0:o.delay)!==null&&s!==void 0?s:0,l,u)}},t.prototype.componentWillUnmount=function(){var n=this,r=this.editor;r&&(r.off(Ch,this.handleEditorChange),r.off(this.beforeInputEvent(),this.handleBeforeInput),r.off("keypress",this.handleEditorChangeSpecial),r.off("keydown",this.handleBeforeInputSpecial),r.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(i){r.off(i,n.boundHandlers[i])}),this.boundHandlers={},r.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.beforeInputEvent=function(){return Zz()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var n=this.props.tagName,r=n===void 0?"div":n;return ae.createElement(r,{ref:this.elementRef,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.renderIframe=function(){return ae.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id,tabIndex:this.props.tabIndex})},t.prototype.getScriptSources=function(){var n,r,i=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.async,a=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:i,defer:a}]:this.props.tinymceScriptSrc.map(function(u){return typeof u=="string"?{src:u,async:i,defer:a}:u});var o=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",l="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(o,"/tinymce.min.js");return[{src:l,async:i,defer:a}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(n){var r=this;if(this.editor!==void 0){Yz(this.editor,n,this.props,this.boundHandlers,function(s){return r.props[s]});var i=function(s){return s.onEditorChange!==void 0||s.value!==void 0},a=i(n),o=i(this.props);!a&&o?(this.editor.on(Ch,this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):a&&!o&&(this.editor.off(Ch,this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=Uz,t.defaultProps={cloudChannel:"7"},t}(ae.Component);const aG=e=>P.jsx("div",{className:`${Vz.container}`,children:P.jsx(iG,{...ws(Oz({label:e.label}),e)})}),oG=({children:e,open:t,className:n,id:r,classNameContainer:i})=>(N.useLayoutEffect(()=>{const a=document.getElementById(r),o=document.getElementById(`inner-${r}`);if(!a||!o)return;const s=new ResizeObserver(()=>{const l=o.getBoundingClientRect().height;a.style.height=`${l}px`});if(t){const l=o.getBoundingClientRect().height;a.style.height=`${l}px`,s.observe(o)}else a.style.height="0px";return()=>{s.disconnect()}},[t,r]),P.jsx("div",{id:r,className:`${PS.collapse} ${i??""}`,style:{height:0},children:P.jsx("div",{id:`inner-${r}`,className:n??"",children:e})}));exports.AlertContainer=MD;exports.Badges=DS;exports.BigNumber=bt;exports.Breadcrumbs=mM;exports.Button=mr;exports.ButtonIcon=_S;exports.ButtonPopover=Ww;exports.Calendar=sd;exports.CalendarRange=wS;exports.CheckboxTable=tz;exports.Chips=TS;exports.Collapse=xM;exports.CollapseV2=oG;exports.ConfigColors=Ox;exports.ConfigTable=mn;exports.DatePicker=qN;exports.DateRangePicker=IS;exports.DefaultCheckedChecboxIcon=AS;exports.DefaultRadioChecboxIcon=RS;exports.DoughnutChart=Qj;exports.ErrorMessage=lz;exports.FilterContainer=$S;exports.FilterDate=JN;exports.GradientBarChart=Rz;exports.GradientLineChart=_z;exports.InputFloatingInner=pC;exports.InputNative=Vp;exports.InputReguler=sg;exports.LineChart=bz;exports.ListVirtualization=S2;exports.ModalDialog=EM;exports.MonthYearPicker=ez;exports.NumberFormat=nO;exports.Pagination=sk;exports.PatternFormat=tO;exports.Popover=bi;exports.PortalComponent=Sp;exports.RadioCheckbox=ld;exports.RadioCheckboxLabel=dM;exports.SelectDropdownContainer=d4;exports.SelectDropdownContainerComponents=Q2;exports.Sidebar=kS;exports.Step=mz;exports.StepIndicator=Nz;exports.Switch=tM;exports.TPublish=LT;exports.TabPanel=Q9;exports.Table=U9;exports.TableSubComponent=X9;exports.TableVirtualization=Ag;exports.Tabs=J9;exports.TextEditor=aG;exports.Textarea=WS;exports.TextareaFloatingInner=Gw;exports.Timeline=_M;exports.Tooltip=xz;exports.TruncateComponent=oO;exports.TypeBigNumber=Dc;exports.UploadFile=GS;exports.UploadImage=dO;exports.UploadMultipleFile=sz;exports.betweenBig=qD;exports.configNativeScreens=OT;exports.configScreens=MT;exports.configTypography=NT;exports.configTypographyLabaBisnis=Vx;exports.configTypographyPayhere=Lx;exports.convertBigNumbersToStrings=kh;exports.convertNumbersToBigNumbers=Bh;exports.convertTextToJsonBigNumbers=FT;exports.cookieStorage=nD;exports.deepCompareEquals=X0;exports.defaultConfig=gx;exports.deleteKeysImmutable=X_;exports.deleteKeysMutable=U_;exports.encryptRSAOAEP=J_;exports.extractElementStringToOriginalValue=q_;exports.formatBigNumber=Q_;exports.formatDate=io;exports.formatDateRange=L_;exports.formatNumber=Ri;exports.groupByKey=Ax;exports.isAccurateBigNumber=Hr;exports.isAccurateNumber=Tx;exports.lessThanBig=ZD;exports.maxBig=YD;exports.minBig=XD;exports.moreThanBig=KD;exports.openAlert=OD;exports.parseBigDecimal=Bc;exports.parseDecimal=G0;exports.parseFileName=wh;exports.removeKeyObjectEmptyValue=H_;exports.removeTrailingZeros=eD;exports.setDigit=kc;exports.transformArrayMapping=z_;exports.transformArrayMappingObjectFC=G_;exports.transformArrayOfObjectToArray=U0;exports.transformArrayOfObjectToString=W0;exports.transformBigNumber=K_;exports.transformDataHistory=V_;exports.transformLatLong=j_;exports.transformNumber=Y_;exports.transformSecondTime=W_;exports.transfromIsNan=Z_;exports.useAsyncDebounce=x2;exports.useCombinedResizeObserver=N9;exports.useCountdown=F9;exports.useDeepCompareEffect=Gi;exports.useDeepCompareMemoize=$s;exports.useElementOrWindowMediaQuery=$9;exports.useEventListener=V9;exports.useMasonry=H9;exports.useMergeRefs=Bg;exports.useStateRef=M9;exports.utilTable=YR;
|
|
230
230
|
//# sourceMappingURL=index.cjs.map
|