react-luminus-components 1.3.76 → 1.3.78

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.
Files changed (91) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +60 -95
  3. package/dist/Loading-CBsJX4LG.js +17 -0
  4. package/dist/Loading-If5qsvY2.cjs +1 -0
  5. package/dist/SimpleTooltip-DwgjTb1C.js +5 -0
  6. package/dist/{SimpleTooltip-Duct0nes.cjs → SimpleTooltip-dm9JzI9d.cjs} +1 -1
  7. package/dist/components/Documents/Documents.d.ts +10 -0
  8. package/dist/components/Documents/components/DocumentDirectory/DocumentDirectory.d.ts +5 -0
  9. package/dist/components/Documents/components/DocumentDirectory/components/DocumentDirectoryLabel/DocumentDirectoryLabel.d.ts +7 -0
  10. package/dist/components/Documents/components/DocumentDirectory/components/index.d.ts +1 -0
  11. package/dist/components/Documents/components/DocumentsActions/DocumentsActions.d.ts +7 -0
  12. package/dist/components/Documents/components/DocumentsActions/components/DocActionButton/DocActionButton.d.ts +10 -0
  13. package/dist/components/Documents/components/DocumentsActions/components/DocumentsUpload/DocumentsUpload.d.ts +10 -0
  14. package/dist/components/Documents/components/DocumentsActions/components/DocumentsUpload/componenets/UploadFilesModal/UploadFilesModal.d.ts +7 -0
  15. package/dist/components/Documents/components/DocumentsActions/components/DocumentsUpload/componenets/UploadFilesModal/hooks/useUploadFilesFormSchema.d.ts +18 -0
  16. package/dist/components/Documents/components/DocumentsActions/components/DocumentsUpload/componenets/index.d.ts +1 -0
  17. package/dist/components/Documents/components/DocumentsActions/components/index.d.ts +2 -0
  18. package/dist/components/Documents/components/DocumentsFilesTable/DocumentsFilesTable.d.ts +6 -0
  19. package/dist/components/Documents/components/DocumentsFilesTable/hooks/useDocumentsFilesColumns.d.ts +11 -0
  20. package/dist/components/Documents/components/DocumentsModals/DocumentsModals.d.ts +2 -0
  21. package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/CreateFolderModal.d.ts +5 -0
  22. package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +13 -0
  23. package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/EditFileModal.d.ts +5 -0
  24. package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/EditFileModalInner.d.ts +8 -0
  25. package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +18 -0
  26. package/dist/components/Documents/components/DocumentsModals/components/index.d.ts +2 -0
  27. package/dist/components/Documents/components/DocumentsModals/types/DocumentsModalType.d.ts +2 -0
  28. package/dist/components/Documents/components/DocumentsRoot/DocumentsRoot.d.ts +5 -0
  29. package/dist/components/Documents/components/FileExtensionIcon/FileExtensionIcon.d.ts +7 -0
  30. package/dist/components/Documents/components/index.d.ts +6 -0
  31. package/dist/components/Documents/contexts/DocumentsContext.d.ts +13 -0
  32. package/dist/components/Documents/hooks/useDocContextApiActions.d.ts +17 -0
  33. package/dist/components/Documents/hooks/useDocumentsApiActions.d.ts +7 -0
  34. package/dist/components/Documents/hooks/useDocumentsDrag.d.ts +19 -0
  35. package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +91 -0
  36. package/dist/components/Documents/index.d.ts +2 -0
  37. package/dist/components/Documents/types/api/DocType.d.ts +6 -0
  38. package/dist/components/Documents/types/api/DocumentFileModel.d.ts +18 -0
  39. package/dist/components/Documents/types/api/DocumentFolderModel.d.ts +9 -0
  40. package/dist/components/Documents/types/api/DocumentListModel.d.ts +8 -0
  41. package/dist/components/Documents/types/api/DocumentUploadModel.d.ts +6 -0
  42. package/dist/components/Documents/types/api/DocumentsCreateFolderModel.d.ts +8 -0
  43. package/dist/components/Documents/types/ui/DocumentFile.d.ts +6 -0
  44. package/dist/components/Documents/types/ui/DocumentFolder.d.ts +10 -0
  45. package/dist/components/Documents/types/ui/DocumentState.d.ts +2 -0
  46. package/dist/components/Documents/types/ui/DocumentsActionsObj.d.ts +14 -0
  47. package/dist/components/Documents/types/ui/DocumentsFolderId.d.ts +2 -0
  48. package/dist/components/Documents/types/ui/FileDirType.d.ts +2 -0
  49. package/dist/components/Documents/utils/documentsConstants.d.ts +1 -0
  50. package/dist/components/Documents/utils/documentsDataUtils.d.ts +12 -0
  51. package/dist/components/Documents/utils/documentsTypeUtils.d.ts +4 -0
  52. package/dist/components/Documents/utils/documentsUtils.d.ts +7 -0
  53. package/dist/contexts.cjs.js +1 -1
  54. package/dist/contexts.es.js +103 -105
  55. package/dist/hooks.cjs.js +1 -1
  56. package/dist/hooks.es.js +40 -2968
  57. package/dist/layout.cjs.js +1 -1
  58. package/dist/layout.es.js +18 -18
  59. package/dist/main.cjs.js +2 -2
  60. package/dist/main.d.ts +2 -0
  61. package/dist/main.es.js +2958 -3364
  62. package/dist/models/luminus-context-types/CommonLuminusIcons.d.ts +1 -1
  63. package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
  64. package/dist/models/texts/DocumentsTexts.d.ts +45 -0
  65. package/dist/nivo-pie.es-CWpL5Qz1.cjs +279 -0
  66. package/dist/nivo-pie.es-CfGrs0qQ.js +21226 -0
  67. package/dist/{searchUtils-C-P7nqmc.js → searchUtils-6cFIcqrD.js} +1 -1
  68. package/dist/{searchUtils-Bwcn0kNN.cjs → searchUtils-eG-nNTgU.cjs} +1 -1
  69. package/dist/style.css +1 -1
  70. package/dist/useClipboard-BbFBkj-c.cjs +1 -0
  71. package/dist/{useClipboard-Ci3XItTi.js → useClipboard-BsBDyYHu.js} +12 -13
  72. package/dist/useLocalStorageState-B8C3HlW-.cjs +1 -0
  73. package/dist/useLocalStorageState-D9uh-D8S.js +64 -0
  74. package/dist/{usePermissions-CDkc5n4B.cjs → usePermissions-D3jEVB-f.cjs} +1 -1
  75. package/dist/{usePermissions-D1kTfy1F.js → usePermissions-DInna_ZH.js} +1 -1
  76. package/dist/utils.cjs.js +1 -1
  77. package/dist/utils.es.js +70 -105
  78. package/dist/variables.scss +171 -171
  79. package/package.json +111 -109
  80. package/dist/PrimaryButton-DHWMFBqe.js +0 -682
  81. package/dist/PrimaryButton-DoEWPvdG.cjs +0 -1
  82. package/dist/SimpleTooltip-DIbveCyg.js +0 -5
  83. package/dist/dateUtils-DBObp1Kn.js +0 -1402
  84. package/dist/dateUtils-UEaQDw00.cjs +0 -1
  85. package/dist/nivo-pie.es-CYja6R0y.cjs +0 -279
  86. package/dist/nivo-pie.es-DbylxdLa.js +0 -14728
  87. package/dist/useClipboard-KQiedKAp.cjs +0 -1
  88. package/dist/useConfirm-BFRnARZA.js +0 -18
  89. package/dist/useConfirm-SzzUX_WZ.cjs +0 -1
  90. package/dist/useLocalStorageState-C2fAE5hY.cjs +0 -1
  91. package/dist/useLocalStorageState-OXK3MAPN.js +0 -72
@@ -0,0 +1,279 @@
1
+ "use strict";const p=require("react"),Vl=require("react-router-dom"),Rf=require("@azure/msal-browser"),Af=require("@azure/msal-react"),nt=require("react-hook-form"),$n=require("react-dom");function Hy(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const oe=Hy(p);var is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uu={exports:{}},Ea={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Mf;function Vy(){if(Mf)return Ea;Mf=1;var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(o,c,u){var l,d={},f=null,m=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(l in c)r.call(c,l)&&!i.hasOwnProperty(l)&&(d[l]=c[l]);if(o&&o.defaultProps)for(l in c=o.defaultProps,c)d[l]===void 0&&(d[l]=c[l]);return{$$typeof:t,type:o,key:f,ref:m,props:d,_owner:a.current}}return Ea.Fragment=n,Ea.jsx=s,Ea.jsxs=s,Ea}var Sa={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var $f;function Yy(){return $f||($f=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function h(C){if(C===null||typeof C!="object")return null;var z=g&&C[g]||C[v];return typeof z=="function"?z:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(C){{for(var z=arguments.length,re=new Array(z>1?z-1:0),le=1;le<z;le++)re[le-1]=arguments[le];b("error",C,re)}}function b(C,z,re){{var le=w.ReactDebugCurrentFrame,Ee=le.getStackAddendum();Ee!==""&&(z+="%s",re=re.concat([Ee]));var Ne=re.map(function(Ce){return String(Ce)});Ne.unshift("Warning: "+z),Function.prototype.apply.call(console[C],console,Ne)}}var T=!1,_=!1,S=!1,$=!1,D=!1,I;I=Symbol.for("react.module.reference");function M(C){return!!(typeof C=="string"||typeof C=="function"||C===r||C===i||D||C===a||C===u||C===l||$||C===m||T||_||S||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===d||C.$$typeof===s||C.$$typeof===o||C.$$typeof===c||C.$$typeof===I||C.getModuleId!==void 0))}function k(C,z,re){var le=C.displayName;if(le)return le;var Ee=z.displayName||z.name||"";return Ee!==""?re+"("+Ee+")":re}function Y(C){return C.displayName||"Context"}function A(C){if(C==null)return null;if(typeof C.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case l:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case o:var z=C;return Y(z)+".Consumer";case s:var re=C;return Y(re._context)+".Provider";case c:return k(C,C.render,"ForwardRef");case d:var le=C.displayName||null;return le!==null?le:A(C.type)||"Memo";case f:{var Ee=C,Ne=Ee._payload,Ce=Ee._init;try{return A(Ce(Ne))}catch{return null}}}return null}var R=Object.assign,F=0,B,L,G,Z,j,U,J;function te(){}te.__reactDisabledLog=!0;function K(){{if(F===0){B=console.log,L=console.info,G=console.warn,Z=console.error,j=console.group,U=console.groupCollapsed,J=console.groupEnd;var C={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}F++}}function X(){{if(F--,F===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},C,{value:B}),info:R({},C,{value:L}),warn:R({},C,{value:G}),error:R({},C,{value:Z}),group:R({},C,{value:j}),groupCollapsed:R({},C,{value:U}),groupEnd:R({},C,{value:J})})}F<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var V=w.ReactCurrentDispatcher,Q;function ee(C,z,re){{if(Q===void 0)try{throw Error()}catch(Ee){var le=Ee.stack.trim().match(/\n( *(at )?)/);Q=le&&le[1]||""}return`
18
+ `+Q+C}}var N=!1,W;{var ne=typeof WeakMap=="function"?WeakMap:Map;W=new ne}function O(C,z){if(!C||N)return"";{var re=W.get(C);if(re!==void 0)return re}var le;N=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=V.current,V.current=null,K();try{if(z){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Ye){le=Ye}Reflect.construct(C,[],Ce)}else{try{Ce.call()}catch(Ye){le=Ye}C.call(Ce.prototype)}}else{try{throw Error()}catch(Ye){le=Ye}C()}}catch(Ye){if(Ye&&le&&typeof Ye.stack=="string"){for(var xe=Ye.stack.split(`
19
+ `),Ge=le.stack.split(`
20
+ `),We=xe.length-1,He=Ge.length-1;We>=1&&He>=0&&xe[We]!==Ge[He];)He--;for(;We>=1&&He>=0;We--,He--)if(xe[We]!==Ge[He]){if(We!==1||He!==1)do if(We--,He--,He<0||xe[We]!==Ge[He]){var lt=`
21
+ `+xe[We].replace(" at new "," at ");return C.displayName&&lt.includes("<anonymous>")&&(lt=lt.replace("<anonymous>",C.displayName)),typeof C=="function"&&W.set(C,lt),lt}while(We>=1&&He>=0);break}}}finally{N=!1,V.current=Ne,X(),Error.prepareStackTrace=Ee}var Tn=C?C.displayName||C.name:"",an=Tn?ee(Tn):"";return typeof C=="function"&&W.set(C,an),an}function ge(C,z,re){return O(C,!1)}function he(C){var z=C.prototype;return!!(z&&z.isReactComponent)}function ue(C,z,re){if(C==null)return"";if(typeof C=="function")return O(C,he(C));if(typeof C=="string")return ee(C);switch(C){case u:return ee("Suspense");case l:return ee("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case c:return ge(C.render);case d:return ue(C.type,z,re);case f:{var le=C,Ee=le._payload,Ne=le._init;try{return ue(Ne(Ee),z,re)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,ze={},bt=w.ReactDebugCurrentFrame;function yt(C){if(C){var z=C._owner,re=ue(C.type,C._source,z?z.type:null);bt.setExtraStackFrame(re)}else bt.setExtraStackFrame(null)}function Ve(C,z,re,le,Ee){{var Ne=Function.call.bind(Ae);for(var Ce in C)if(Ne(C,Ce)){var xe=void 0;try{if(typeof C[Ce]!="function"){var Ge=Error((le||"React class")+": "+re+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ge.name="Invariant Violation",Ge}xe=C[Ce](z,Ce,le,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){xe=We}xe&&!(xe instanceof Error)&&(yt(Ee),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",le||"React class",re,Ce,typeof xe),yt(null)),xe instanceof Error&&!(xe.message in ze)&&(ze[xe.message]=!0,yt(Ee),x("Failed %s type: %s",re,xe.message),yt(null))}}}var st=Array.isArray;function Ke(C){return st(C)}function _t(C){{var z=typeof Symbol=="function"&&Symbol.toStringTag,re=z&&C[Symbol.toStringTag]||C.constructor.name||"Object";return re}}function Bt(C){try{return Wt(C),!1}catch{return!0}}function Wt(C){return""+C}function Oe(C){if(Bt(C))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(C)),Wt(C)}var Xe=w.ReactCurrentOwner,rn={key:!0,ref:!0,__self:!0,__source:!0},ba,Gi,ya;ya={};function Ki(C){if(Ae.call(C,"ref")){var z=Object.getOwnPropertyDescriptor(C,"ref").get;if(z&&z.isReactWarning)return!1}return C.ref!==void 0}function Hc(C){if(Ae.call(C,"key")){var z=Object.getOwnPropertyDescriptor(C,"key").get;if(z&&z.isReactWarning)return!1}return C.key!==void 0}function Xi(C,z){if(typeof C.ref=="string"&&Xe.current&&z&&Xe.current.stateNode!==z){var re=A(Xe.current.type);ya[re]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(Xe.current.type),C.ref),ya[re]=!0)}}function Vc(C,z){{var re=function(){ba||(ba=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};re.isReactWarning=!0,Object.defineProperty(C,"key",{get:re,configurable:!0})}}function Ji(C,z){{var re=function(){Gi||(Gi=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};re.isReactWarning=!0,Object.defineProperty(C,"ref",{get:re,configurable:!0})}}var Yc=function(C,z,re,le,Ee,Ne,Ce){var xe={$$typeof:t,type:C,key:z,ref:re,props:Ce,_owner:Ne};return xe._store={},Object.defineProperty(xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.defineProperty(xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.freeze&&(Object.freeze(xe.props),Object.freeze(xe)),xe};function Zc(C,z,re,le,Ee){{var Ne,Ce={},xe=null,Ge=null;re!==void 0&&(Oe(re),xe=""+re),Hc(z)&&(Oe(z.key),xe=""+z.key),Ki(z)&&(Ge=z.ref,Xi(z,Ee));for(Ne in z)Ae.call(z,Ne)&&!rn.hasOwnProperty(Ne)&&(Ce[Ne]=z[Ne]);if(C&&C.defaultProps){var We=C.defaultProps;for(Ne in We)Ce[Ne]===void 0&&(Ce[Ne]=We[Ne])}if(xe||Ge){var He=typeof C=="function"?C.displayName||C.name||"Unknown":C;xe&&Vc(Ce,He),Ge&&Ji(Ce,He)}return Yc(C,xe,Ge,Ee,le,Xe.current,Ce)}}var _a=w.ReactCurrentOwner,Qi=w.ReactDebugCurrentFrame;function wn(C){if(C){var z=C._owner,re=ue(C.type,C._source,z?z.type:null);Qi.setExtraStackFrame(re)}else Qi.setExtraStackFrame(null)}var Sr;Sr=!1;function xa(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function es(){{if(_a.current){var C=A(_a.current.type);if(C)return`
22
+
23
+ Check the render method of \``+C+"`."}return""}}function Gc(C){return""}var ts={};function ns(C){{var z=es();if(!z){var re=typeof C=="string"?C:C.displayName||C.name;re&&(z=`
24
+
25
+ Check the top-level render call using <`+re+">.")}return z}}function wa(C,z){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var re=ns(z);if(ts[re])return;ts[re]=!0;var le="";C&&C._owner&&C._owner!==_a.current&&(le=" It was passed a child from "+A(C._owner.type)+"."),wn(C),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,le),wn(null)}}function Ta(C,z){{if(typeof C!="object")return;if(Ke(C))for(var re=0;re<C.length;re++){var le=C[re];xa(le)&&wa(le,z)}else if(xa(C))C._store&&(C._store.validated=!0);else if(C){var Ee=h(C);if(typeof Ee=="function"&&Ee!==C.entries)for(var Ne=Ee.call(C),Ce;!(Ce=Ne.next()).done;)xa(Ce.value)&&wa(Ce.value,z)}}}function rs(C){{var z=C.type;if(z==null||typeof z=="string")return;var re;if(typeof z=="function")re=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===c||z.$$typeof===d))re=z.propTypes;else return;if(re){var le=A(z);Ve(re,C.props,"prop",le,C)}else if(z.PropTypes!==void 0&&!Sr){Sr=!0;var Ee=A(z);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ee||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kc(C){{for(var z=Object.keys(C.props),re=0;re<z.length;re++){var le=z[re];if(le!=="children"&&le!=="key"){wn(C),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),wn(null);break}}C.ref!==null&&(wn(C),x("Invalid attribute `ref` supplied to `React.Fragment`."),wn(null))}}var Oa={};function as(C,z,re,le,Ee,Ne){{var Ce=M(C);if(!Ce){var xe="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ge=Gc();Ge?xe+=Ge:xe+=es();var We;C===null?We="null":Ke(C)?We="array":C!==void 0&&C.$$typeof===t?(We="<"+(A(C.type)||"Unknown")+" />",xe=" Did you accidentally export a JSX literal instead of a component?"):We=typeof C,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,xe)}var He=Zc(C,z,re,Ee,Ne);if(He==null)return He;if(Ce){var lt=z.children;if(lt!==void 0)if(le)if(Ke(lt)){for(var Tn=0;Tn<lt.length;Tn++)Ta(lt[Tn],C);Object.freeze&&Object.freeze(lt)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ta(lt,C)}if(Ae.call(z,"key")){var an=A(C),Ye=Object.keys(z).filter(function(eu){return eu!=="key"}),Ca=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Oa[an+Ca]){var kr=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Ca,an,kr,an),Oa[an+Ca]=!0}}return C===r?Kc(He):rs(He),He}}function Zn(C,z,re){return as(C,z,re,!0)}function Xc(C,z,re){return as(C,z,re,!1)}var Jc=Xc,Qc=Zn;Sa.Fragment=r,Sa.jsx=Jc,Sa.jsxs=Qc}()),Sa}process.env.NODE_ENV==="production"?Uu.exports=Vy():Uu.exports=Yy();var y=Uu.exports,Fm={exports:{}};/*!
31
+ Copyright (c) 2018 Jed Watson.
32
+ Licensed under the MIT License (MIT), see
33
+ http://jedwatson.github.io/classnames
34
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(i=a(i,r(o)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var o in i)t.call(i,o)&&i[o]&&(s=a(s,o));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fm);var Zy=Fm.exports;const ae=vt(Zy);function Ct(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function hn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Gy(e,t){const n=+Ct(e);return hn(e,n+t)}const Ky=365.2425,Yl=6048e5,Xy=864e5,Zl=6e4,Co=36e5,Lm=3600,Jy=60,Gl=Lm*24,Qy=Gl*7,Um=Gl*Ky,zm=Um/12,e1=zm*3;function t1(e,t){return Gy(e,t*Co)}let n1={};function Eo(){return n1}function Vr(e,t){var o,c,u,l;const n=Eo(),r=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.weekStartsOn)??0,a=Ct(e),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function Ns(e){return Vr(e,{weekStartsOn:1})}function Bm(e){const t=Ct(e),n=t.getFullYear(),r=hn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ns(r),i=hn(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=Ns(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function zu(e){const t=Ct(e);return t.setHours(0,0,0,0),t}function Bu(e){const t=Ct(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Wm(e,t){const n=zu(e),r=zu(t),a=+n-Bu(n),i=+r-Bu(r);return Math.round((a-i)/Xy)}function r1(e){const t=Bm(e),n=hn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ns(n)}function a1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function i1(e){if(!a1(e)&&typeof e!="number")return!1;const t=Ct(e);return!isNaN(Number(t))}function s1(e){const t=Ct(e),n=hn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const o1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},c1=(e,t,n)=>{let r;const a=o1[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function tu(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const u1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},f1={date:tu({formats:u1,defaultWidth:"full"}),time:tu({formats:l1,defaultWidth:"full"}),dateTime:tu({formats:d1,defaultWidth:"full"})},h1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},p1=(e,t,n,r)=>h1[e];function ka(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;a=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[o]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const m1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},g1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},v1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},b1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},y1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},x1=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},w1={ordinalNumber:x1,era:ka({values:m1,defaultWidth:"wide"}),quarter:ka({values:g1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ka({values:v1,defaultWidth:"wide"}),day:ka({values:b1,defaultWidth:"wide"}),dayPeriod:ka({values:y1,defaultWidth:"wide",formattingValues:_1,defaultFormattingWidth:"wide"})};function Ra(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const s=i[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?O1(o,d=>d.test(s)):T1(o,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const l=t.slice(s.length);return{value:u,rest:l}}}function T1(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function O1(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function C1(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(a.length);return{value:s,rest:o}}}const E1=/^(\d+)(th|st|nd|rd)?/i,S1=/\d+/i,k1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},R1={any:[/^b/i,/^(a|c)/i]},A1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},M1={any:[/1/i,/2/i,/3/i,/4/i]},$1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},j1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},P1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},I1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},D1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},F1={ordinalNumber:C1({matchPattern:E1,parsePattern:S1,valueCallback:e=>parseInt(e,10)}),era:Ra({matchPatterns:k1,defaultMatchWidth:"wide",parsePatterns:R1,defaultParseWidth:"any"}),quarter:Ra({matchPatterns:A1,defaultMatchWidth:"wide",parsePatterns:M1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ra({matchPatterns:$1,defaultMatchWidth:"wide",parsePatterns:j1,defaultParseWidth:"any"}),day:Ra({matchPatterns:P1,defaultMatchWidth:"wide",parsePatterns:I1,defaultParseWidth:"any"}),dayPeriod:Ra({matchPatterns:N1,defaultMatchWidth:"any",parsePatterns:D1,defaultParseWidth:"any"})},L1={code:"en-US",formatDistance:c1,formatLong:f1,formatRelative:p1,localize:w1,match:F1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function U1(e){const t=Ct(e);return Wm(t,s1(t))+1}function z1(e){const t=Ct(e),n=+Ns(t)-+r1(t);return Math.round(n/Yl)+1}function qm(e,t){var l,d,f,m;const n=Ct(e),r=n.getFullYear(),a=Eo(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((m=(f=a.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,s=hn(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const o=Vr(s,t),c=hn(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const u=Vr(c,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function B1(e,t){var o,c,u,l;const n=Eo(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((l=(u=n.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??1,a=qm(e,t),i=hn(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),Vr(i,t)}function W1(e,t){const n=Ct(e),r=+Vr(n,t)-+B1(n,t);return Math.round(r/Yl)+1}function Ie(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const On={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ie(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ie(n+1,2)},d(e,t){return Ie(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ie(e.getHours()%12||12,t.length)},H(e,t){return Ie(e.getHours(),t.length)},m(e,t){return Ie(e.getMinutes(),t.length)},s(e,t){return Ie(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return Ie(a,t.length)}},Rr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jf={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return On.y(e,t)},Y:function(e,t,n,r){const a=qm(e,r),i=a>0?a:1-a;if(t==="YY"){const s=i%100;return Ie(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ie(i,t.length)},R:function(e,t){const n=Bm(e);return Ie(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ie(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ie(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ie(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return On.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ie(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=W1(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):Ie(a,t.length)},I:function(e,t,n){const r=z1(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ie(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):On.d(e,t)},D:function(e,t,n){const r=U1(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ie(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ie(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ie(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return Ie(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=Rr.noon:r===0?a=Rr.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=Rr.evening:r>=12?a=Rr.afternoon:r>=4?a=Rr.morning:a=Rr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return On.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):On.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ie(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):On.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):On.s(e,t)},S:function(e,t){return On.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return If(r);case"XXXX":case"XX":return Jn(r);case"XXXXX":case"XXX":default:return Jn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return If(r);case"xxxx":case"xx":return Jn(r);case"xxxxx":case"xxx":default:return Jn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Pf(r,":");case"OOOO":default:return"GMT"+Jn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Pf(r,":");case"zzzz":default:return"GMT"+Jn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ie(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ie(r,t.length)}};function Pf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+Ie(i,2)}function If(e,t){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):Jn(e,t)}function Jn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Ie(Math.trunc(r/60),2),i=Ie(r%60,2);return n+a+t+i}const Nf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Hm=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},q1=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Nf(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Nf(r,t)).replace("{{time}}",Hm(a,t))},H1={p:Hm,P:q1},V1=/^D+$/,Y1=/^Y+$/,Z1=["D","DD","YY","YYYY"];function G1(e){return V1.test(e)}function K1(e){return Y1.test(e)}function X1(e,t,n){const r=J1(e,t,n);if(console.warn(r),Z1.includes(e))throw new RangeError(r)}function J1(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Q1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,e_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,t_=/^'([^]*?)'?$/,n_=/''/g,r_=/[a-zA-Z]/;function Kl(e,t,n){var l,d,f,m,g,v,h,w;const r=Eo(),a=(n==null?void 0:n.locale)??r.locale??L1,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(f=r.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((v=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((w=(h=r.locale)==null?void 0:h.options)==null?void 0:w.weekStartsOn)??0,o=Ct(e);if(!i1(o))throw new RangeError("Invalid time value");let c=t.match(e_).map(x=>{const b=x[0];if(b==="p"||b==="P"){const T=H1[b];return T(x,a.formatLong)}return x}).join("").match(Q1).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:a_(x)};if(jf[b])return{isToken:!0,value:x};if(b.match(r_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(c=a.localize.preprocessor(o,c));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&K1(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&G1(b))&&X1(b,t,String(e));const T=jf[b[0]];return T(o,b,a.localize,u)}).join("")}function a_(e){const t=e.match(t_);return t?t[1].replace(n_,"'"):e}function So(e,t){const r=c_(e);let a;if(r.date){const c=u_(r.date,2);a=l_(c.restDateString,c.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);const i=a.getTime();let s=0,o;if(r.time&&(s=d_(r.time),isNaN(s)))return new Date(NaN);if(r.timezone){if(o=f_(r.timezone),isNaN(o))return new Date(NaN)}else{const c=new Date(i+s),u=new Date(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return new Date(i+s+o)}const ss={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o_=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c_(e){const t={},n=e.split(ss.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ss.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ss.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const a=ss.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function u_(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function l_(e,t){if(t===null)return new Date(NaN);const n=e.match(i_);if(!n)return new Date(NaN);const r=!!n[4],a=Aa(n[1]),i=Aa(n[2])-1,s=Aa(n[3]),o=Aa(n[4]),c=Aa(n[5])-1;if(r)return v_(t,o,c)?h_(t,o,c):new Date(NaN);{const u=new Date(0);return!m_(t,i,s)||!g_(t,a)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(a,s)),u)}}function Aa(e){return e?parseInt(e):1}function d_(e){const t=e.match(s_);if(!t)return NaN;const n=nu(t[1]),r=nu(t[2]),a=nu(t[3]);return b_(n,r,a)?n*Co+r*Zl+a*1e3:NaN}function nu(e){return e&&parseFloat(e.replace(",","."))||0}function f_(e){if(e==="Z")return 0;const t=e.match(o_);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return y_(r,a)?n*(r*Co+a*Zl):NaN}function h_(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const p_=[31,null,31,30,31,30,31,31,30,31,30,31];function Vm(e){return e%400===0||e%4===0&&e%100!==0}function m_(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(p_[t]||(Vm(e)?29:28))}function g_(e,t){return t>=1&&t<=(Vm(e)?366:365)}function v_(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function b_(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function y_(e,t){return t>=0&&t<=59}function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wu.apply(null,arguments)}function Ym(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Df(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function __(e){var t=x_(e,"string");return typeof t=="symbol"?t:String(t)}function x_(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zm(e,t,n){var r=p.useRef(e!==void 0),a=p.useState(t),i=a[0],s=a[1],o=e!==void 0,c=r.current;return r.current=o,!o&&c&&i!==t&&s(t),[o?e:i,p.useCallback(function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[u].concat(d)),s(u)},[n])]}function w_(e,t){return Object.keys(t).reduce(function(n,r){var a,i=n,s=i[Df(r)],o=i[r],c=Ym(i,[Df(r),r].map(__)),u=t[r],l=Zm(o,s,e[u]),d=l[0],f=l[1];return Wu({},c,(a={},a[r]=d,a[u]=f,a))},e)}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qu(e,t)}function T_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qu(e,t)}const O_=["xxl","xl","lg","md","sm","xs"],C_="xs",ko=oe.createContext({prefixes:{},breakpoints:O_,minBreakpoint:C_});function Ue(e,t){const{prefixes:n}=p.useContext(ko);return e||n[t]||t}function E_(){const{breakpoints:e}=p.useContext(ko);return e}function S_(){const{minBreakpoint:e}=p.useContext(ko);return e}function Ro(){const{dir:e}=p.useContext(ko);return e==="rtl"}function sa(e){return e&&e.ownerDocument||document}function k_(e){var t=sa(e);return t&&t.defaultView||window}function R_(e,t){return k_(e).getComputedStyle(e,t)}var A_=/([A-Z])/g;function M_(e){return e.replace(A_,"-$1").toLowerCase()}var $_=/^ms-/;function os(e){return M_(e).replace($_,"-ms-")}var j_=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function P_(e){return!!(e&&j_.test(e))}function In(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(os(t))||R_(e).getPropertyValue(os(t));Object.keys(t).forEach(function(a){var i=t[a];!i&&i!==0?e.style.removeProperty(os(a)):P_(a)?r+=a+"("+i+") ":n+=os(a)+": "+i+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Hu={exports:{}},cs={exports:{}},Me={};/** @license React v16.13.1
35
+ * react-is.production.min.js
36
+ *
37
+ * Copyright (c) Facebook, Inc. and its affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Ff;function I_(){if(Ff)return Me;Ff=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var S=_.$$typeof;switch(S){case t:switch(_=_.type,_){case c:case u:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case o:case l:case g:case m:case s:return _;default:return S}}case n:return S}}}function T(_){return b(_)===u}return Me.AsyncMode=c,Me.ConcurrentMode=u,Me.ContextConsumer=o,Me.ContextProvider=s,Me.Element=t,Me.ForwardRef=l,Me.Fragment=r,Me.Lazy=g,Me.Memo=m,Me.Portal=n,Me.Profiler=i,Me.StrictMode=a,Me.Suspense=d,Me.isAsyncMode=function(_){return T(_)||b(_)===c},Me.isConcurrentMode=T,Me.isContextConsumer=function(_){return b(_)===o},Me.isContextProvider=function(_){return b(_)===s},Me.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Me.isForwardRef=function(_){return b(_)===l},Me.isFragment=function(_){return b(_)===r},Me.isLazy=function(_){return b(_)===g},Me.isMemo=function(_){return b(_)===m},Me.isPortal=function(_){return b(_)===n},Me.isProfiler=function(_){return b(_)===i},Me.isStrictMode=function(_){return b(_)===a},Me.isSuspense=function(_){return b(_)===d},Me.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===s||_.$$typeof===o||_.$$typeof===l||_.$$typeof===h||_.$$typeof===w||_.$$typeof===x||_.$$typeof===v)},Me.typeOf=b,Me}var $e={};/** @license React v16.13.1
42
+ * react-is.development.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Lf;function N_(){return Lf||(Lf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===i||O===a||O===d||O===f||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===m||O.$$typeof===s||O.$$typeof===o||O.$$typeof===l||O.$$typeof===h||O.$$typeof===w||O.$$typeof===x||O.$$typeof===v)}function T(O){if(typeof O=="object"&&O!==null){var ge=O.$$typeof;switch(ge){case t:var he=O.type;switch(he){case c:case u:case r:case i:case a:case d:return he;default:var ue=he&&he.$$typeof;switch(ue){case o:case l:case g:case m:case s:return ue;default:return ge}}case n:return ge}}}var _=c,S=u,$=o,D=s,I=t,M=l,k=r,Y=g,A=m,R=n,F=i,B=a,L=d,G=!1;function Z(O){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(O)||T(O)===c}function j(O){return T(O)===u}function U(O){return T(O)===o}function J(O){return T(O)===s}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function K(O){return T(O)===l}function X(O){return T(O)===r}function V(O){return T(O)===g}function Q(O){return T(O)===m}function ee(O){return T(O)===n}function N(O){return T(O)===i}function W(O){return T(O)===a}function ne(O){return T(O)===d}$e.AsyncMode=_,$e.ConcurrentMode=S,$e.ContextConsumer=$,$e.ContextProvider=D,$e.Element=I,$e.ForwardRef=M,$e.Fragment=k,$e.Lazy=Y,$e.Memo=A,$e.Portal=R,$e.Profiler=F,$e.StrictMode=B,$e.Suspense=L,$e.isAsyncMode=Z,$e.isConcurrentMode=j,$e.isContextConsumer=U,$e.isContextProvider=J,$e.isElement=te,$e.isForwardRef=K,$e.isFragment=X,$e.isLazy=V,$e.isMemo=Q,$e.isPortal=ee,$e.isProfiler=N,$e.isStrictMode=W,$e.isSuspense=ne,$e.isValidElementType=b,$e.typeOf=T}()),$e}var Uf;function Gm(){return Uf||(Uf=1,process.env.NODE_ENV==="production"?cs.exports=I_():cs.exports=N_()),cs.exports}/*
49
+ object-assign
50
+ (c) Sindre Sorhus
51
+ @license MIT
52
+ */var ru,zf;function D_(){if(zf)return ru;zf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var c=Object.getOwnPropertyNames(s).map(function(l){return s[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ru=a()?Object.assign:function(i,s){for(var o,c=r(i),u,l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var d in o)t.call(o,d)&&(c[d]=o[d]);if(e){u=e(o);for(var f=0;f<u.length;f++)n.call(o,u[f])&&(c[u[f]]=o[u[f]])}}return c},ru}var au,Bf;function Xl(){if(Bf)return au;Bf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return au=e,au}var iu,Wf;function Km(){return Wf||(Wf=1,iu=Function.call.bind(Object.prototype.hasOwnProperty)),iu}var su,qf;function F_(){if(qf)return su;qf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xl(),n={},r=Km();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,o,c,u){if(process.env.NODE_ENV!=="production"){for(var l in i)if(r(i,l)){var d;try{if(typeof i[l]!="function"){var f=Error((c||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[l](s,l,c,o,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=u?u():"";e("Failed "+o+" type: "+d.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},su=a,su}var ou,Hf;function L_(){if(Hf)return ou;Hf=1;var e=Gm(),t=D_(),n=Xl(),r=Km(),a=F_(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return ou=function(o,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(j){var U=j&&(u&&j[u]||j[l]);if(typeof U=="function")return U}var f="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:x(),arrayOf:b,element:T(),elementType:_(),instanceOf:S,node:M(),objectOf:D,oneOf:$,oneOfType:I,shape:Y,exact:A};function g(j,U){return j===U?j!==0||1/j===1/U:j!==j&&U!==U}function v(j,U){this.message=j,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function h(j){if(process.env.NODE_ENV!=="production")var U={},J=0;function te(X,V,Q,ee,N,W,ne){if(ee=ee||f,W=W||Q,ne!==n){if(c){var O=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 O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=ee+":"+Q;!U[ge]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+ee+"`. 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[ge]=!0,J++)}}return V[Q]==null?X?V[Q]===null?new v("The "+N+" `"+W+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new v("The "+N+" `"+W+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:j(V,Q,ee,N,W)}var K=te.bind(null,!1);return K.isRequired=te.bind(null,!0),K}function w(j){function U(J,te,K,X,V,Q){var ee=J[te],N=B(ee);if(N!==j){var W=L(ee);return new v("Invalid "+X+" `"+V+"` of type "+("`"+W+"` supplied to `"+K+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return h(U)}function x(){return h(s)}function b(j){function U(J,te,K,X,V){if(typeof j!="function")return new v("Property `"+V+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var Q=J[te];if(!Array.isArray(Q)){var ee=B(Q);return new v("Invalid "+X+" `"+V+"` of type "+("`"+ee+"` supplied to `"+K+"`, expected an array."))}for(var N=0;N<Q.length;N++){var W=j(Q,N,K,X,V+"["+N+"]",n);if(W instanceof Error)return W}return null}return h(U)}function T(){function j(U,J,te,K,X){var V=U[J];if(!o(V)){var Q=B(V);return new v("Invalid "+K+" `"+X+"` of type "+("`"+Q+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return h(j)}function _(){function j(U,J,te,K,X){var V=U[J];if(!e.isValidElementType(V)){var Q=B(V);return new v("Invalid "+K+" `"+X+"` of type "+("`"+Q+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return h(j)}function S(j){function U(J,te,K,X,V){if(!(J[te]instanceof j)){var Q=j.name||f,ee=Z(J[te]);return new v("Invalid "+X+" `"+V+"` of type "+("`"+ee+"` supplied to `"+K+"`, expected ")+("instance of `"+Q+"`."))}return null}return h(U)}function $(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function U(J,te,K,X,V){for(var Q=J[te],ee=0;ee<j.length;ee++)if(g(Q,j[ee]))return null;var N=JSON.stringify(j,function(ne,O){var ge=L(O);return ge==="symbol"?String(O):O});return new v("Invalid "+X+" `"+V+"` of value `"+String(Q)+"` "+("supplied to `"+K+"`, expected one of "+N+"."))}return h(U)}function D(j){function U(J,te,K,X,V){if(typeof j!="function")return new v("Property `"+V+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var Q=J[te],ee=B(Q);if(ee!=="object")return new v("Invalid "+X+" `"+V+"` of type "+("`"+ee+"` supplied to `"+K+"`, expected an object."));for(var N in Q)if(r(Q,N)){var W=j(Q,N,K,X,V+"."+N,n);if(W instanceof Error)return W}return null}return h(U)}function I(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var U=0;U<j.length;U++){var J=j[U];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(J)+" at index "+U+"."),s}function te(K,X,V,Q,ee){for(var N=[],W=0;W<j.length;W++){var ne=j[W],O=ne(K,X,V,Q,ee,n);if(O==null)return null;O.data&&r(O.data,"expectedType")&&N.push(O.data.expectedType)}var ge=N.length>0?", expected one of type ["+N.join(", ")+"]":"";return new v("Invalid "+Q+" `"+ee+"` supplied to "+("`"+V+"`"+ge+"."))}return h(te)}function M(){function j(U,J,te,K,X){return R(U[J])?null:new v("Invalid "+K+" `"+X+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return h(j)}function k(j,U,J,te,K){return new v((j||"React class")+": "+U+" type `"+J+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function Y(j){function U(J,te,K,X,V){var Q=J[te],ee=B(Q);if(ee!=="object")return new v("Invalid "+X+" `"+V+"` of type `"+ee+"` "+("supplied to `"+K+"`, expected `object`."));for(var N in j){var W=j[N];if(typeof W!="function")return k(K,X,V,N,L(W));var ne=W(Q,N,K,X,V+"."+N,n);if(ne)return ne}return null}return h(U)}function A(j){function U(J,te,K,X,V){var Q=J[te],ee=B(Q);if(ee!=="object")return new v("Invalid "+X+" `"+V+"` of type `"+ee+"` "+("supplied to `"+K+"`, expected `object`."));var N=t({},J[te],j);for(var W in N){var ne=j[W];if(r(j,W)&&typeof ne!="function")return k(K,X,V,W,L(ne));if(!ne)return new v("Invalid "+X+" `"+V+"` key `"+W+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(J[te],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var O=ne(Q,W,K,X,V+"."+W,n);if(O)return O}return null}return h(U)}function R(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(R);if(j===null||o(j))return!0;var U=d(j);if(U){var J=U.call(j),te;if(U!==j.entries){for(;!(te=J.next()).done;)if(!R(te.value))return!1}else for(;!(te=J.next()).done;){var K=te.value;if(K&&!R(K[1]))return!1}}else return!1;return!0;default:return!1}}function F(j,U){return j==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function B(j){var U=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":F(U,j)?"symbol":U}function L(j){if(typeof j>"u"||j===null)return""+j;var U=B(j);if(U==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return U}function G(j){var U=L(j);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Z(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},ou}var cu,Vf;function U_(){if(Vf)return cu;Vf=1;var e=Xl();function t(){}function n(){}return n.resetWarningCache=t,cu=function(){function r(s,o,c,u,l,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},cu}if(process.env.NODE_ENV!=="production"){var z_=Gm(),B_=!0;Hu.exports=L_()(z_.isElement,B_)}else Hu.exports=U_()();var W_=Hu.exports;const E=vt(W_),Yf={disabled:!1};var q_=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]);const Xm=p.createContext(null);var H_=function(t){return t.scrollTop},Ha="unmounted",kn="exited",un="entering",Rn="entered",Ds="exiting",yn=function(e){T_(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,o=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?o?(c=kn,i.appearStatus=un):c=Rn:r.unmountOnExit||r.mountOnEnter?c=Ha:c=kn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Ha?{status:kn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==un&&s!==Rn&&(i=un):(s===un||s===Rn)&&(i=Ds)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,o;return i=s=o=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===un){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this);s&&H_(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kn&&this.setState({status:Ha})},n.performEnter=function(a){var i=this,s=this.props.enter,o=this.context?this.context.isMounting:a,c=this.props.nodeRef?[o]:[$n.findDOMNode(this),o],u=c[0],l=c[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!a&&!s||Yf.disabled){this.safeSetState({status:Rn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:un},function(){i.props.onEntering(u,l),i.onTransitionEnd(f,function(){i.safeSetState({status:Rn},function(){i.props.onEntered(u,l)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:$n.findDOMNode(this);if(!i||Yf.disabled){this.safeSetState({status:kn},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ds},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:kn},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Ha)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=Ym(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(Xm.Provider,{value:null},typeof s=="function"?s(a,o):p.cloneElement(p.Children.only(s),o))},t}(p.Component);yn.contextType=Xm;yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(e,t,n,r,a,i){var s=e[t];return E.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(t){var n=q_;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}:{};function Ar(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ar,onEntering:Ar,onEntered:Ar,onExit:Ar,onExiting:Ar,onExited:Ar};yn.UNMOUNTED=Ha;yn.EXITED=kn;yn.ENTERING=un;yn.ENTERED=Rn;yn.EXITING=Ds;const oa=!!(typeof window<"u"&&window.document&&window.document.createElement);var Vu=!1,Yu=!1;try{var uu={get passive(){return Vu=!0},get once(){return Yu=Vu=!0}};oa&&(window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,!0))}catch{}function Jl(e,t,n,r){if(r&&typeof r!="boolean"&&!Yu){var a=r.once,i=r.capture,s=n;!Yu&&a&&(s=n.__once||function o(c){this.removeEventListener(t,o,i),n.call(this,c)},n.__once=s),e.addEventListener(t,s,Vu?r:i)}e.addEventListener(t,n,r)}function Zu(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function ln(e,t,n,r){return Jl(e,t,n,r),function(){Zu(e,t,n,r)}}function V_(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function Y_(e){var t=In(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Z_(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||V_(e,"transitionend",!0)},t+n),i=ln(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function Jm(e,t,n,r){n==null&&(n=Y_(e)||0);var a=Z_(e,n,r),i=ln(e,"transitionend",t);return function(){a(),i()}}function Zf(e,t){const n=In(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Qm(e,t){const n=Zf(e,"transitionDuration"),r=Zf(e,"transitionDelay"),a=Jm(e,i=>{i.target===e&&(a(),t(i))},n+r)}function e0(e){e.offsetHeight}const Gf=e=>!e||typeof e=="function"?e:t=>{e.current=t};function G_(e,t){const n=Gf(e),r=Gf(t);return a=>{n&&n(a),r&&r(a)}}function _n(e,t){return p.useMemo(()=>G_(e,t),[e,t])}function Fs(e){return e&&"setState"in e?$n.findDOMNode(e):e??null}const t0=p.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:s,children:o,childRef:c,...u},l)=>{const d=p.useRef(null),f=_n(d,c),m=S=>{f(Fs(S))},g=S=>$=>{S&&d.current&&S(d.current,$)},v=p.useCallback(g(e),[e]),h=p.useCallback(g(t),[t]),w=p.useCallback(g(n),[n]),x=p.useCallback(g(r),[r]),b=p.useCallback(g(a),[a]),T=p.useCallback(g(i),[i]),_=p.useCallback(g(s),[s]);return y.jsx(yn,{ref:l,...u,onEnter:v,onEntered:w,onEntering:h,onExit:x,onExited:T,onExiting:b,addEndListener:_,nodeRef:d,children:typeof o=="function"?(S,$)=>o(S,{...$,ref:m}):p.cloneElement(o,{ref:m})})});function K_(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e},[e]),t}function ot(e){const t=K_(e);return p.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const n0=e=>oe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:ae(t.className,e)}));function Ls(){return p.useState(null)}function Ql(){const e=p.useRef(!0),t=p.useRef(()=>e.current);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function r0(e){const t=p.useRef(null);return p.useEffect(()=>{t.current=e}),t.current}const X_=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",J_=typeof document<"u",Us=J_||X_?p.useLayoutEffect:p.useEffect,Q_={[un]:"show",[Rn]:"show"},Yr=oe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},o=p.useCallback((c,u)=>{e0(c),r==null||r(c,u)},[r]);return y.jsx(t0,{ref:i,addEndListener:Qm,...s,onEnter:o,childRef:t.ref,children:(c,u)=>oe.cloneElement(t,{...u,className:ae("fade",e,t.props.className,Q_[c],n[c])})})});Yr.displayName="Fade";const e2={"aria-label":E.string,onClick:E.func,variant:E.oneOf(["white"])},Ao=oe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>y.jsx("button",{ref:a,type:"button",className:ae("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Ao.displayName="CloseButton";Ao.propTypes=e2;function t2(e){const t=p.useRef(e);return t.current=e,t}function ed(e){const t=t2(e);p.useEffect(()=>()=>t.current(),[])}const Gu=2**31-1;function a0(e,t,n){const r=n-Date.now();e.current=r<=Gu?setTimeout(t,r):setTimeout(()=>a0(e,t,n),Gu)}function n2(){const e=Ql(),t=p.useRef();return ed(()=>clearTimeout(t.current)),p.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=Gu?t.current=setTimeout(a,i):a0(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function r2(e,t){return oe.Children.toArray(e).some(n=>oe.isValidElement(n)&&n.type===t)}function i0({as:e,bsPrefix:t,className:n,...r}){t=Ue(t,"col");const a=E_(),i=S_(),s=[],o=[];return a.forEach(c=>{const u=r[c];delete r[c];let l,d,f;typeof u=="object"&&u!=null?{span:l,offset:d,order:f}=u:l=u;const m=c!==i?`-${c}`:"";l&&s.push(l===!0?`${t}${m}`:`${t}${m}-${l}`),f!=null&&o.push(`order${m}-${f}`),d!=null&&o.push(`offset${m}-${d}`)}),[{...r,className:ae(n,...s,...o)},{as:e,bsPrefix:t,spans:s}]}const s0=oe.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:s}]=i0(e);return y.jsx(a,{...r,ref:t,className:ae(n,!s.length&&i)})});s0.displayName="Col";var a2=Function.prototype.bind.call(Function.prototype.call,[].slice);function Qn(e,t){return a2(e.querySelectorAll(t))}var Kf=Object.prototype.hasOwnProperty;function Xf(e,t,n){for(n of e.keys())if(Ka(n,t))return n}function Ka(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ka(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Xf(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Xf(t,a),!a)||!Ka(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Kf.call(e,n)&&++r&&!Kf.call(t,n)||!(n in t)||!Ka(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function i2(e){const t=Ql();return[e[0],p.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var pt="top",At="bottom",Mt="right",mt="left",td="auto",Pi=[pt,At,Mt,mt],Zr="start",ri="end",s2="clippingParents",o0="viewport",Ma="popper",o2="reference",Jf=Pi.reduce(function(e,t){return e.concat([t+"-"+Zr,t+"-"+ri])},[]),c0=[].concat(Pi,[td]).reduce(function(e,t){return e.concat([t,t+"-"+Zr,t+"-"+ri])},[]),c2="beforeRead",u2="read",l2="afterRead",d2="beforeMain",f2="main",h2="afterMain",p2="beforeWrite",m2="write",g2="afterWrite",v2=[c2,u2,l2,d2,f2,h2,p2,m2,g2];function Yt(e){return e.split("-")[0]}function Ot(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dr(e){var t=Ot(e).Element;return e instanceof t||e instanceof Element}function Zt(e){var t=Ot(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nd(e){if(typeof ShadowRoot>"u")return!1;var t=Ot(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var sr=Math.max,zs=Math.min,Gr=Math.round;function Ku(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function u0(){return!/^((?!chrome|android).)*safari/i.test(Ku())}function Kr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Zt(e)&&(a=e.offsetWidth>0&&Gr(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Gr(r.height)/e.offsetHeight||1);var s=dr(e)?Ot(e):window,o=s.visualViewport,c=!u0()&&n,u=(r.left+(c&&o?o.offsetLeft:0))/a,l=(r.top+(c&&o?o.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:l,right:u+d,bottom:l+f,left:u,x:u,y:l}}function rd(e){var t=Kr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function l0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){return Ot(e).getComputedStyle(e)}function b2(e){return["table","td","th"].indexOf(Dn(e))>=0}function qn(e){return((dr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mo(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(nd(e)?e.host:null)||qn(e)}function Qf(e){return!Zt(e)||pn(e).position==="fixed"?null:e.offsetParent}function y2(e){var t=/firefox/i.test(Ku()),n=/Trident/i.test(Ku());if(n&&Zt(e)){var r=pn(e);if(r.position==="fixed")return null}var a=Mo(e);for(nd(a)&&(a=a.host);Zt(a)&&["html","body"].indexOf(Dn(a))<0;){var i=pn(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ii(e){for(var t=Ot(e),n=Qf(e);n&&b2(n)&&pn(n).position==="static";)n=Qf(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&pn(n).position==="static")?t:n||y2(e)||t}function ad(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xa(e,t,n){return sr(e,zs(t,n))}function _2(e,t,n){var r=Xa(e,t,n);return r>n?n:r}function d0(){return{top:0,right:0,bottom:0,left:0}}function f0(e){return Object.assign({},d0(),e)}function h0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,f0(typeof t!="number"?t:h0(t,Pi))};function w2(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Yt(n.placement),c=ad(o),u=[mt,Mt].indexOf(o)>=0,l=u?"height":"width";if(!(!i||!s)){var d=x2(a.padding,n),f=rd(i),m=c==="y"?pt:mt,g=c==="y"?At:Mt,v=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],h=s[c]-n.rects.reference[c],w=Ii(i),x=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,b=v/2-h/2,T=d[m],_=x-f[l]-d[g],S=x/2-f[l]/2+b,$=Xa(T,S,_),D=c;n.modifiersData[r]=(t={},t[D]=$,t.centerOffset=$-S,t)}}function T2(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||l0(t.elements.popper,a)&&(t.elements.arrow=a))}const O2={name:"arrow",enabled:!0,phase:"main",fn:w2,effect:T2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xr(e){return e.split("-")[1]}var C2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E2(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Gr(n*a)/a||0,y:Gr(r*a)/a||0}}function eh(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=s.x,m=f===void 0?0:f,g=s.y,v=g===void 0?0:g,h=typeof l=="function"?l({x:m,y:v}):{x:m,y:v};m=h.x,v=h.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),b=mt,T=pt,_=window;if(u){var S=Ii(n),$="clientHeight",D="clientWidth";if(S===Ot(n)&&(S=qn(n),pn(S).position!=="static"&&o==="absolute"&&($="scrollHeight",D="scrollWidth")),S=S,a===pt||(a===mt||a===Mt)&&i===ri){T=At;var I=d&&S===_&&_.visualViewport?_.visualViewport.height:S[$];v-=I-r.height,v*=c?1:-1}if(a===mt||(a===pt||a===At)&&i===ri){b=Mt;var M=d&&S===_&&_.visualViewport?_.visualViewport.width:S[D];m-=M-r.width,m*=c?1:-1}}var k=Object.assign({position:o},u&&C2),Y=l===!0?E2({x:m,y:v},Ot(n)):{x:m,y:v};if(m=Y.x,v=Y.y,c){var A;return Object.assign({},k,(A={},A[T]=x?"0":"",A[b]=w?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",A))}return Object.assign({},k,(t={},t[T]=x?v+"px":"",t[b]=w?m+"px":"",t.transform="",t))}function S2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,o=n.roundOffsets,c=o===void 0?!0:o,u={placement:Yt(t.placement),variation:Xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const k2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:S2,data:{}};var us={passive:!0};function R2(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,o=s===void 0?!0:s,c=Ot(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(l){l.addEventListener("scroll",n.update,us)}),o&&c.addEventListener("resize",n.update,us),function(){i&&u.forEach(function(l){l.removeEventListener("scroll",n.update,us)}),o&&c.removeEventListener("resize",n.update,us)}}const A2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:R2,data:{}};var M2={left:"right",right:"left",bottom:"top",top:"bottom"};function Es(e){return e.replace(/left|right|bottom|top/g,function(t){return M2[t]})}var $2={start:"end",end:"start"};function th(e){return e.replace(/start|end/g,function(t){return $2[t]})}function id(e){var t=Ot(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function sd(e){return Kr(qn(e)).left+id(e).scrollLeft}function j2(e,t){var n=Ot(e),r=qn(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,o=0,c=0;if(a){i=a.width,s=a.height;var u=u0();(u||!u&&t==="fixed")&&(o=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:o+sd(e),y:c}}function P2(e){var t,n=qn(e),r=id(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=sr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=sr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-r.scrollLeft+sd(e),c=-r.scrollTop;return pn(a||n).direction==="rtl"&&(o+=sr(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:o,y:c}}function od(e){var t=pn(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function p0(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Zt(e)&&od(e)?e:p0(Mo(e))}function Ja(e,t){var n;t===void 0&&(t=[]);var r=p0(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ot(r),s=a?[i].concat(i.visualViewport||[],od(r)?r:[]):r,o=t.concat(s);return a?o:o.concat(Ja(Mo(s)))}function Xu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I2(e,t){var n=Kr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function nh(e,t,n){return t===o0?Xu(j2(e,n)):dr(t)?I2(t,n):Xu(P2(qn(e)))}function N2(e){var t=Ja(Mo(e)),n=["absolute","fixed"].indexOf(pn(e).position)>=0,r=n&&Zt(e)?Ii(e):e;return dr(r)?t.filter(function(a){return dr(a)&&l0(a,r)&&Dn(a)!=="body"}):[]}function D2(e,t,n,r){var a=t==="clippingParents"?N2(e):[].concat(t),i=[].concat(a,[n]),s=i[0],o=i.reduce(function(c,u){var l=nh(e,u,r);return c.top=sr(l.top,c.top),c.right=zs(l.right,c.right),c.bottom=zs(l.bottom,c.bottom),c.left=sr(l.left,c.left),c},nh(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function m0(e){var t=e.reference,n=e.element,r=e.placement,a=r?Yt(r):null,i=r?Xr(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,c;switch(a){case pt:c={x:s,y:t.y-n.height};break;case At:c={x:s,y:t.y+t.height};break;case Mt:c={x:t.x+t.width,y:o};break;case mt:c={x:t.x-n.width,y:o};break;default:c={x:t.x,y:t.y}}var u=a?ad(a):null;if(u!=null){var l=u==="y"?"height":"width";switch(i){case Zr:c[u]=c[u]-(t[l]/2-n[l]/2);break;case ri:c[u]=c[u]+(t[l]/2-n[l]/2);break}}return c}function ai(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,o=n.boundary,c=o===void 0?s2:o,u=n.rootBoundary,l=u===void 0?o0:u,d=n.elementContext,f=d===void 0?Ma:d,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,h=v===void 0?0:v,w=f0(typeof h!="number"?h:h0(h,Pi)),x=f===Ma?o2:Ma,b=e.rects.popper,T=e.elements[g?x:f],_=D2(dr(T)?T:T.contextElement||qn(e.elements.popper),c,l,s),S=Kr(e.elements.reference),$=m0({reference:S,element:b,strategy:"absolute",placement:a}),D=Xu(Object.assign({},b,$)),I=f===Ma?D:S,M={top:_.top-I.top+w.top,bottom:I.bottom-_.bottom+w.bottom,left:_.left-I.left+w.left,right:I.right-_.right+w.right},k=e.modifiersData.offset;if(f===Ma&&k){var Y=k[a];Object.keys(M).forEach(function(A){var R=[Mt,At].indexOf(A)>=0?1:-1,F=[pt,At].indexOf(A)>=0?"y":"x";M[A]+=Y[F]*R})}return M}function F2(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,o=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?c0:c,l=Xr(r),d=l?o?Jf:Jf.filter(function(g){return Xr(g)===l}):Pi,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var m=f.reduce(function(g,v){return g[v]=ai(e,{placement:v,boundary:a,rootBoundary:i,padding:s})[Yt(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function L2(e){if(Yt(e)===td)return[];var t=Es(e);return[th(e),t,th(t)]}function U2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,o=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,h=t.options.placement,w=Yt(h),x=w===h,b=c||(x||!g?[Es(h)]:L2(h)),T=[h].concat(b).reduce(function(K,X){return K.concat(Yt(X)===td?F2(t,{placement:X,boundary:l,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:v}):X)},[]),_=t.rects.reference,S=t.rects.popper,$=new Map,D=!0,I=T[0],M=0;M<T.length;M++){var k=T[M],Y=Yt(k),A=Xr(k)===Zr,R=[pt,At].indexOf(Y)>=0,F=R?"width":"height",B=ai(t,{placement:k,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),L=R?A?Mt:mt:A?At:pt;_[F]>S[F]&&(L=Es(L));var G=Es(L),Z=[];if(i&&Z.push(B[Y]<=0),o&&Z.push(B[L]<=0,B[G]<=0),Z.every(function(K){return K})){I=k,D=!1;break}$.set(k,Z)}if(D)for(var j=g?3:1,U=function(X){var V=T.find(function(Q){var ee=$.get(Q);if(ee)return ee.slice(0,X).every(function(N){return N})});if(V)return I=V,"break"},J=j;J>0;J--){var te=U(J);if(te==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const z2={name:"flip",enabled:!0,phase:"main",fn:U2,requiresIfExists:["offset"],data:{_skip:!1}};function rh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ah(e){return[pt,Mt,At,mt].some(function(t){return e[t]>=0})}function B2(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=ai(t,{elementContext:"reference"}),o=ai(t,{altBoundary:!0}),c=rh(s,r),u=rh(o,a,i),l=ah(c),d=ah(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const W2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B2};function q2(e,t,n){var r=Yt(e),a=[mt,pt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],o=i[1];return s=s||0,o=(o||0)*a,[mt,Mt].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function H2(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=c0.reduce(function(l,d){return l[d]=q2(d,t.rects,i),l},{}),o=s[t.placement],c=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const V2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H2};function Y2(e){var t=e.state,n=e.name;t.modifiersData[n]=m0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Z2={name:"popperOffsets",enabled:!0,phase:"read",fn:Y2,data:{}};function G2(e){return e==="x"?"y":"x"}function K2(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,o=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,h=ai(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),w=Yt(t.placement),x=Xr(t.placement),b=!x,T=ad(w),_=G2(T),S=t.modifiersData.popperOffsets,$=t.rects.reference,D=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,M=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(S){if(i){var A,R=T==="y"?pt:mt,F=T==="y"?At:Mt,B=T==="y"?"height":"width",L=S[T],G=L+h[R],Z=L-h[F],j=m?-D[B]/2:0,U=x===Zr?$[B]:D[B],J=x===Zr?-D[B]:-$[B],te=t.elements.arrow,K=m&&te?rd(te):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d0(),V=X[R],Q=X[F],ee=Xa(0,$[B],K[B]),N=b?$[B]/2-j-ee-V-M.mainAxis:U-ee-V-M.mainAxis,W=b?-$[B]/2+j+ee+Q+M.mainAxis:J+ee+Q+M.mainAxis,ne=t.elements.arrow&&Ii(t.elements.arrow),O=ne?T==="y"?ne.clientTop||0:ne.clientLeft||0:0,ge=(A=k==null?void 0:k[T])!=null?A:0,he=L+N-ge-O,ue=L+W-ge,Ae=Xa(m?zs(G,he):G,L,m?sr(Z,ue):Z);S[T]=Ae,Y[T]=Ae-L}if(o){var ze,bt=T==="x"?pt:mt,yt=T==="x"?At:Mt,Ve=S[_],st=_==="y"?"height":"width",Ke=Ve+h[bt],_t=Ve-h[yt],Bt=[pt,mt].indexOf(w)!==-1,Wt=(ze=k==null?void 0:k[_])!=null?ze:0,Oe=Bt?Ke:Ve-$[st]-D[st]-Wt+M.altAxis,Xe=Bt?Ve+$[st]+D[st]-Wt-M.altAxis:_t,rn=m&&Bt?_2(Oe,Ve,Xe):Xa(m?Oe:Ke,Ve,m?Xe:_t);S[_]=rn,Y[_]=rn-Ve}t.modifiersData[r]=Y}}const X2={name:"preventOverflow",enabled:!0,phase:"main",fn:K2,requiresIfExists:["offset"]};function J2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Q2(e){return e===Ot(e)||!Zt(e)?id(e):J2(e)}function ex(e){var t=e.getBoundingClientRect(),n=Gr(t.width)/e.offsetWidth||1,r=Gr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tx(e,t,n){n===void 0&&(n=!1);var r=Zt(t),a=Zt(t)&&ex(t),i=qn(t),s=Kr(e,a,n),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||od(i))&&(o=Q2(t)),Zt(t)?(c=Kr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=sd(i))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function nx(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var c=t.get(o);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function rx(e){var t=nx(e);return v2.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function ax(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ix(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ih={placement:"bottom",modifiers:[],strategy:"absolute"};function sh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function sx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?ih:a;return function(o,c,u){u===void 0&&(u=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ih,i),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},d=[],f=!1,m={state:l,setOptions:function(w){var x=typeof w=="function"?w(l.options):w;v(),l.options=Object.assign({},i,l.options,x),l.scrollParents={reference:dr(o)?Ja(o):o.contextElement?Ja(o.contextElement):[],popper:Ja(c)};var b=rx(ix([].concat(r,l.options.modifiers)));return l.orderedModifiers=b.filter(function(T){return T.enabled}),g(),m.update()},forceUpdate:function(){if(!f){var w=l.elements,x=w.reference,b=w.popper;if(sh(x,b)){l.rects={reference:tx(x,Ii(b),l.options.strategy==="fixed"),popper:rd(b)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(M){return l.modifiersData[M.name]=Object.assign({},M.data)});for(var T=0;T<l.orderedModifiers.length;T++){if(l.reset===!0){l.reset=!1,T=-1;continue}var _=l.orderedModifiers[T],S=_.fn,$=_.options,D=$===void 0?{}:$,I=_.name;typeof S=="function"&&(l=S({state:l,options:D,name:I,instance:m})||l)}}}},update:ax(function(){return new Promise(function(h){m.forceUpdate(),h(l)})}),destroy:function(){v(),f=!0}};if(!sh(o,c))return m;m.setOptions(u).then(function(h){!f&&u.onFirstUpdate&&u.onFirstUpdate(h)});function g(){l.orderedModifiers.forEach(function(h){var w=h.name,x=h.options,b=x===void 0?{}:x,T=h.effect;if(typeof T=="function"){var _=T({state:l,name:w,instance:m,options:b}),S=function(){};d.push(_||S)}})}function v(){d.forEach(function(h){return h()}),d=[]}return m}}const ox=sx({defaultModifiers:[W2,Z2,k2,A2,V2,z2,X2,O2]}),cx=["enabled","placement","strategy","modifiers"];function ux(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const lx={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},dx={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},fx=[];function g0(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:s=fx}=n,o=ux(n,cx);const c=p.useRef(s),u=p.useRef(),l=p.useCallback(()=>{var h;(h=u.current)==null||h.update()},[]),d=p.useCallback(()=>{var h;(h=u.current)==null||h.forceUpdate()},[]),[f,m]=i2(p.useState({placement:a,update:l,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=p.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:h})=>{const w={},x={};Object.keys(h.elements).forEach(b=>{w[b]=h.styles[b],x[b]=h.attributes[b]}),m({state:h,styles:w,attributes:x,update:l,forceUpdate:d,placement:h.placement})}}),[l,d,m]),v=p.useMemo(()=>(Ka(c.current,s)||(c.current=s),c.current),[s]);return p.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...v,g,lx]})},[i,a,g,r,v]),p.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=ox(e,t,Object.assign({},o,{placement:a,strategy:i,modifiers:[...v,dx,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,m(h=>Object.assign({},h,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function ii(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var hx=process.env.NODE_ENV!=="production",v0=function(){};if(hx){var px=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,s="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}};v0=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||px.apply(null,[t].concat(n))}}var mx=v0;const Ni=vt(mx),oh=()=>{};function gx(e){return e.button===0}function vx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ss=e=>e&&("current"in e?e.current:e),ch={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function b0(e,t=oh,{disabled:n,clickTrigger:r="click"}={}){const a=p.useRef(!1),i=p.useRef(!1),s=p.useCallback(u=>{const l=Ss(e);Ni(!!l,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!l||vx(u)||!gx(u)||!!ii(l,u.target)||i.current,i.current=!1},[e]),o=ot(u=>{const l=Ss(e);l&&ii(l,u.target)&&(i.current=!0)}),c=ot(u=>{a.current||t(u)});p.useEffect(()=>{var u,l;if(n||e==null)return;const d=sa(Ss(e)),f=d.defaultView||window;let m=(u=f.event)!=null?u:(l=f.parent)==null?void 0:l.event,g=null;ch[r]&&(g=ln(d,ch[r],o,!0));const v=ln(d,r,s,!0),h=ln(d,r,x=>{if(x===m){m=void 0;return}c(x)});let w=[];return"ontouchstart"in d.documentElement&&(w=[].slice.call(d.body.children).map(x=>ln(x,"mousemove",oh))),()=>{g==null||g(),v(),h(),w.forEach(x=>x())}},[e,n,r,s,o,c])}function bx(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function yx(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function y0({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:s,arrowElement:o,popperConfig:c={}}){var u,l,d,f,m;const g=bx(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:yx(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(l=g.preventOverflow)==null?void 0:l.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!o,options:Object.assign({},(m=g.arrow)==null?void 0:m.options,{element:o})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const _x="data-rr-ui-";function _0(e){return`${_x}${e}`}const x0=p.createContext(oa?window:void 0);x0.Provider;function $o(){return p.useContext(x0)}const xx={type:E.string,tooltip:E.bool,as:E.elementType},jo=oe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>y.jsx(e,{...a,ref:i,className:ae(t,`${n}-${r?"tooltip":"feedback"}`)}));jo.displayName="Feedback";jo.propTypes=xx;const mn=oe.createContext({}),Po=oe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:s="input",...o},c)=>{const{controlId:u}=p.useContext(mn);return t=Ue(t,"form-check-input"),y.jsx(s,{...o,ref:c,type:r,id:e||u,className:ae(n,t,a&&"is-valid",i&&"is-invalid")})});Po.displayName="FormCheckInput";const Bs=oe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=p.useContext(mn);return e=Ue(e,"form-check-label"),y.jsx("label",{...r,ref:a,htmlFor:n||i,className:ae(t,e)})});Bs.displayName="FormCheckLabel";const w0=oe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:s=!1,isInvalid:o=!1,feedbackTooltip:c=!1,feedback:u,feedbackType:l,className:d,style:f,title:m="",type:g="checkbox",label:v,children:h,as:w="input",...x},b)=>{t=Ue(t,"form-check"),n=Ue(n,"form-switch");const{controlId:T}=p.useContext(mn),_=p.useMemo(()=>({controlId:e||T}),[T,e]),S=!h&&v!=null&&v!==!1||r2(h,Bs),$=y.jsx(Po,{...x,type:g==="switch"?"checkbox":g,ref:b,isValid:s,isInvalid:o,disabled:i,as:w});return y.jsx(mn.Provider,{value:_,children:y.jsx("div",{style:f,className:ae(d,S&&t,r&&`${t}-inline`,a&&`${t}-reverse`,g==="switch"&&n),children:h||y.jsxs(y.Fragment,{children:[$,S&&y.jsx(Bs,{title:m,children:v}),u&&y.jsx(jo,{type:l,tooltip:c,children:u})]})})})});w0.displayName="FormCheck";const Ws=Object.assign(w0,{Input:Po,Label:Bs}),T0=oe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:s=!1,isInvalid:o=!1,plaintext:c,readOnly:u,as:l="input",...d},f)=>{const{controlId:m}=p.useContext(mn);return e=Ue(e,"form-control"),process.env.NODE_ENV!=="production"&&Ni(m==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(l,{...d,type:t,size:r,ref:f,readOnly:u,id:a||m,className:ae(i,c?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",o&&"is-invalid")})});T0.displayName="FormControl";const O0=Object.assign(T0,{Feedback:jo}),C0=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Ue(t,"form-floating"),y.jsx(n,{ref:a,className:ae(e,t),...r})));C0.displayName="FormFloating";const cd=oe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=p.useMemo(()=>({controlId:e}),[e]);return y.jsx(mn.Provider,{value:a,children:y.jsx(t,{...n,ref:r})})});cd.displayName="FormGroup";const E0=oe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...s},o)=>{const{controlId:c}=p.useContext(mn);t=Ue(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const l=ae(a,t,r&&"visually-hidden",n&&u);return process.env.NODE_ENV!=="production"&&Ni(c==null||!i,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),i=i||c,n?y.jsx(s0,{ref:o,as:"label",className:l,htmlFor:i,...s}):y.jsx(e,{ref:o,className:l,htmlFor:i,...s})});E0.displayName="FormLabel";const S0=oe.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=p.useContext(mn);return e=Ue(e,"form-range"),y.jsx("input",{...r,type:"range",ref:a,className:ae(t,e),id:n||i})});S0.displayName="FormRange";const k0=oe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:s,...o},c)=>{const{controlId:u}=p.useContext(mn);return e=Ue(e,"form-select"),y.jsx("select",{...o,size:n,ref:c,className:ae(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:s||u})});k0.displayName="FormSelect";const R0=oe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=Ue(e,"form-text"),y.jsx(n,{...a,ref:i,className:ae(t,e,r&&"text-muted")})));R0.displayName="FormText";const A0=oe.forwardRef((e,t)=>y.jsx(Ws,{...e,ref:t,type:"switch"}));A0.displayName="Switch";const wx=Object.assign(A0,{Input:Ws.Input,Label:Ws.Label}),ud=oe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},s)=>(e=Ue(e,"form-floating"),y.jsxs(cd,{ref:s,className:ae(t,e),controlId:r,...i,children:[n,y.jsx("label",{htmlFor:r,children:a})]})));ud.displayName="FloatingLabel";const Tx={_ref:E.any,validated:E.bool,as:E.elementType},ld=oe.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>y.jsx(n,{...r,ref:a,className:ae(e,t&&"was-validated")}));ld.displayName="Form";ld.propTypes=Tx;const xr=Object.assign(ld,{Group:cd,Control:O0,Floating:C0,Check:Ws,Switch:wx,Label:E0,Text:R0,Range:S0,Select:k0,FloatingLabel:ud});var ls;function uh(e){if((!ls&&ls!==0||e)&&oa){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),ls=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ls}function lu(e){e===void 0&&(e=sa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Ox(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const lh=_0("modal-open");class dd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Ox(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(In(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(lh,""),In(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(lh),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const du=(e,t)=>oa?e==null?(t||sa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ju(e,t){const n=$o(),[r,a]=p.useState(()=>du(e,n==null?void 0:n.document));if(!r){const i=du(e);i&&a(i)}return p.useEffect(()=>{},[t,r]),p.useEffect(()=>{const i=du(e);i!==r&&a(i)},[e,r]),r}function Cx({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=p.useRef(null),s=p.useRef(t),o=ot(n);p.useEffect(()=>{t?s.current=!0:o(i.current)},[t,o]);const c=_n(i,e.ref),u=p.cloneElement(e,{ref:c});return t?u:a||!s.current&&r?null:u}function M0(e){return e.code==="Escape"||e.keyCode===27}function Ex(){const e=oe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const Sx=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rx(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:s,addEndListener:o,children:c}=e,u=kx(e,Sx);const{major:l}=Ex(),d=l>=19?c.props.ref:c.ref,f=p.useRef(null),m=_n(f,typeof c=="function"?null:d),g=S=>$=>{S&&f.current&&S(f.current,$)},v=p.useCallback(g(t),[t]),h=p.useCallback(g(n),[n]),w=p.useCallback(g(r),[r]),x=p.useCallback(g(a),[a]),b=p.useCallback(g(i),[i]),T=p.useCallback(g(s),[s]),_=p.useCallback(g(o),[o]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:v},n&&{onEntering:h},r&&{onEntered:w},a&&{onExit:x},i&&{onExiting:b},s&&{onExited:T},o&&{addEndListener:_},{children:typeof c=="function"?(S,$)=>c(S,Object.assign({},$,{ref:m})):p.cloneElement(c,{ref:m})})}const Ax=["component"];function Mx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const $x=oe.forwardRef((e,t)=>{let{component:n}=e,r=Mx(e,Ax);const a=Rx(r);return y.jsx(n,Object.assign({ref:t},a))});function jx({in:e,onTransition:t}){const n=p.useRef(null),r=p.useRef(!0),a=ot(t);return Us(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),Us(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Px({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,s]=p.useState(!t);t&&i&&s(!1);const o=jx({in:!!t,onTransition:u=>{const l=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(l,d=>{throw u.in||s(!0),d})}}),c=_n(o,e.ref);return i&&!t?null:p.cloneElement(e,{ref:c})}function Qu(e,t,n){return e?y.jsx($x,Object.assign({},n,{component:e})):t?y.jsx(Px,Object.assign({},n,{transition:t})):y.jsx(Cx,Object.assign({},n))}const Ix=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Nx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let fu;function Dx(e){return fu||(fu=new dd({ownerDocument:e==null?void 0:e.document})),fu}function Fx(e){const t=$o(),n=e||Dx(t),r=p.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:p.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:p.useCallback(a=>{r.current.backdrop=a},[])})}const $0=p.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:s,backdrop:o=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:l,transition:d,runTransition:f,backdropTransition:m,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:h=!0,restoreFocus:w=!0,restoreFocusOptions:x,renderDialog:b,renderBackdrop:T=ue=>y.jsx("div",Object.assign({},ue)),manager:_,container:S,onShow:$,onHide:D=()=>{},onExit:I,onExited:M,onExiting:k,onEnter:Y,onEntering:A,onEntered:R}=e,F=Nx(e,Ix);const B=$o(),L=Ju(S),G=Fx(_),Z=Ql(),j=r0(n),[U,J]=p.useState(!n),te=p.useRef(null);p.useImperativeHandle(t,()=>G,[G]),oa&&!j&&n&&(te.current=lu(B==null?void 0:B.document)),n&&U&&J(!1);const K=ot(()=>{if(G.add(),W.current=ln(document,"keydown",ee),N.current=ln(document,"focus",()=>setTimeout(V),!0),$&&$(),v){var ue,Ae;const ze=lu((ue=(Ae=G.dialog)==null?void 0:Ae.ownerDocument)!=null?ue:B==null?void 0:B.document);G.dialog&&ze&&!ii(G.dialog,ze)&&(te.current=ze,G.dialog.focus())}}),X=ot(()=>{if(G.remove(),W.current==null||W.current(),N.current==null||N.current(),w){var ue;(ue=te.current)==null||ue.focus==null||ue.focus(x),te.current=null}});p.useEffect(()=>{!n||!L||K()},[n,L,K]),p.useEffect(()=>{U&&X()},[U,X]),ed(()=>{X()});const V=ot(()=>{if(!h||!Z()||!G.isTopModal())return;const ue=lu(B==null?void 0:B.document);G.dialog&&ue&&!ii(G.dialog,ue)&&G.dialog.focus()}),Q=ot(ue=>{ue.target===ue.currentTarget&&(u==null||u(ue),o===!0&&D())}),ee=ot(ue=>{c&&M0(ue)&&G.isTopModal()&&(l==null||l(ue),ue.defaultPrevented||D())}),N=p.useRef(),W=p.useRef(),ne=(...ue)=>{J(!0),M==null||M(...ue)};if(!L)return null;const O=Object.assign({role:r,ref:G.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},F,{style:i,className:a,tabIndex:-1});let ge=b?b(O):y.jsx("div",Object.assign({},O,{children:oe.cloneElement(s,{role:"document"})}));ge=Qu(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:I,onExiting:k,onExited:ne,onEnter:Y,onEntering:A,onEntered:R,children:ge});let he=null;return o&&(he=T({ref:G.setBackdropRef,onClick:Q}),he=Qu(m,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:he})),y.jsx(y.Fragment,{children:$n.createPortal(y.jsxs(y.Fragment,{children:[he,ge]}),L)})});$0.displayName="Modal";const j0=Object.assign($0,{Manager:dd});function el(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Lx(e,t){e.classList?e.classList.add(t):el(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function dh(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ux(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=dh(e.className,t):e.setAttribute("class",dh(e.className&&e.className.baseVal||"",t))}const Mr={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class P0 extends dd{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,In(n,{[t]:`${parseFloat(In(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],In(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Lx(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Qn(n,Mr.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),Qn(n,Mr.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),Qn(n,Mr.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Ux(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Qn(n,Mr.FIXED_CONTENT).forEach(i=>this.restore(r,i)),Qn(n,Mr.STICKY_CONTENT).forEach(i=>this.restore(a,i)),Qn(n,Mr.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let hu;function I0(e){return hu||(hu=new P0(e)),hu}const zx=P0,N0=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Ue(t,"modal-body"),y.jsx(n,{ref:a,className:ae(e,t),...r})));N0.displayName="ModalBody";const fd=oe.createContext({onHide(){}}),hd=oe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:a,fullscreen:i,children:s,scrollable:o,...c},u)=>{e=Ue(e,"modal");const l=`${e}-dialog`,d=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return y.jsx("div",{...c,ref:u,className:ae(l,t,a&&`${e}-${a}`,r&&`${l}-centered`,o&&`${l}-scrollable`,i&&d),children:y.jsx("div",{className:ae(`${e}-content`,n),children:s})})});hd.displayName="ModalDialog";const D0=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Ue(t,"modal-footer"),y.jsx(n,{ref:a,className:ae(e,t),...r})));D0.displayName="ModalFooter";const F0=oe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},s)=>{const o=p.useContext(fd),c=ot(()=>{o==null||o.onHide(),r==null||r()});return y.jsxs("div",{ref:s,...i,children:[a,n&&y.jsx(Ao,{"aria-label":e,variant:t,onClick:c})]})}),L0=oe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=Ue(e,"modal-header"),y.jsx(F0,{ref:i,...a,className:ae(t,e),closeLabel:n,closeButton:r})));L0.displayName="ModalHeader";const Bx=n0("h4"),U0=oe.forwardRef(({className:e,bsPrefix:t,as:n=Bx,...r},a)=>(t=Ue(t,"modal-title"),y.jsx(n,{ref:a,className:ae(e,t),...r})));U0.displayName="ModalTitle";function Wx(e){return y.jsx(Yr,{...e,timeout:null})}function qx(e){return y.jsx(Yr,{...e,timeout:null})}const z0=oe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:a,children:i,dialogAs:s=hd,"data-bs-theme":o,"aria-labelledby":c,"aria-describedby":u,"aria-label":l,show:d=!1,animation:f=!0,backdrop:m=!0,keyboard:g=!0,onEscapeKeyDown:v,onShow:h,onHide:w,container:x,autoFocus:b=!0,enforceFocus:T=!0,restoreFocus:_=!0,restoreFocusOptions:S,onEntered:$,onExit:D,onExiting:I,onEnter:M,onEntering:k,onExited:Y,backdropClassName:A,manager:R,...F},B)=>{const[L,G]=p.useState({}),[Z,j]=p.useState(!1),U=p.useRef(!1),J=p.useRef(!1),te=p.useRef(null),[K,X]=Ls(),V=_n(B,X),Q=ot(w),ee=Ro();e=Ue(e,"modal");const N=p.useMemo(()=>({onHide:Q}),[Q]);function W(){return R||I0({isRTL:ee})}function ne(Oe){if(!oa)return;const Xe=W().getScrollbarWidth()>0,rn=Oe.scrollHeight>sa(Oe).documentElement.clientHeight;G({paddingRight:Xe&&!rn?uh():void 0,paddingLeft:!Xe&&rn?uh():void 0})}const O=ot(()=>{K&&ne(K.dialog)});ed(()=>{Zu(window,"resize",O),te.current==null||te.current()});const ge=()=>{U.current=!0},he=Oe=>{U.current&&K&&Oe.target===K.dialog&&(J.current=!0),U.current=!1},ue=()=>{j(!0),te.current=Jm(K.dialog,()=>{j(!1)})},Ae=Oe=>{Oe.target===Oe.currentTarget&&ue()},ze=Oe=>{if(m==="static"){Ae(Oe);return}if(J.current||Oe.target!==Oe.currentTarget){J.current=!1;return}w==null||w()},bt=Oe=>{g?v==null||v(Oe):(Oe.preventDefault(),m==="static"&&ue())},yt=(Oe,Xe)=>{Oe&&ne(Oe),M==null||M(Oe,Xe)},Ve=Oe=>{te.current==null||te.current(),D==null||D(Oe)},st=(Oe,Xe)=>{k==null||k(Oe,Xe),Jl(window,"resize",O)},Ke=Oe=>{Oe&&(Oe.style.display=""),Y==null||Y(Oe),Zu(window,"resize",O)},_t=p.useCallback(Oe=>y.jsx("div",{...Oe,className:ae(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Bt={...n,...L};Bt.display="block";const Wt=Oe=>y.jsx("div",{role:"dialog",...Oe,style:Bt,className:ae(t,e,Z&&`${e}-static`,!f&&"show"),onClick:m?ze:void 0,onMouseUp:he,"data-bs-theme":o,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,children:y.jsx(s,{...F,onMouseDown:ge,className:r,contentClassName:a,children:i})});return y.jsx(fd.Provider,{value:N,children:y.jsx(j0,{show:d,ref:V,backdrop:m,container:x,keyboard:!0,autoFocus:b,enforceFocus:T,restoreFocus:_,restoreFocusOptions:S,onEscapeKeyDown:bt,onShow:h,onHide:w,onEnter:yt,onEntering:st,onEntered:$,onExit:Ve,onExiting:I,onExited:Ke,manager:W(),transition:f?Wx:void 0,backdropTransition:f?qx:void 0,renderBackdrop:_t,renderDialog:Wt})})});z0.displayName="Modal";const ht=Object.assign(z0,{Body:N0,Header:L0,Title:U0,Footer:D0,Dialog:hd,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Hx=()=>{};function Vx(e,t,{disabled:n,clickTrigger:r}={}){const a=t||Hx;b0(e,a,{disabled:n,clickTrigger:r});const i=ot(s=>{M0(s)&&a(s)});p.useEffect(()=>{if(n||e==null)return;const s=sa(Ss(e));let o=(s.defaultView||window).event;const c=ln(s,"keyup",u=>{if(u===o){o=void 0;return}i(u)});return()=>{c()}},[e,n,i])}const B0=oe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:s={},transition:o,runTransition:c}=e,[u,l]=Ls(),[d,f]=Ls(),m=_n(l,t),g=Ju(e.container),v=Ju(e.target),[h,w]=p.useState(!e.show),x=g0(v,u,y0({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&h&&w(!1);const b=(...k)=>{w(!0),e.onExited&&e.onExited(...k)},T=e.show||!h;if(Vx(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:_,onExiting:S,onEnter:$,onEntering:D,onEntered:I}=e;let M=e.children(Object.assign({},x.attributes.popper,{style:x.styles.popper,ref:m}),{popper:x,placement:a,show:!!e.show,arrowProps:Object.assign({},x.attributes.arrow,{style:x.styles.arrow,ref:f})});return M=Qu(o,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:M,onExit:_,onExiting:S,onExited:b,onEnter:$,onEntering:D,onEntered:I}),g?$n.createPortal(M,g):null});B0.displayName="Overlay";const W0=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Ue(t,"popover-header"),y.jsx(n,{ref:a,className:ae(e,t),...r})));W0.displayName="PopoverHeader";const pd=oe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=Ue(t,"popover-body"),y.jsx(n,{ref:a,className:ae(e,t),...r})));pd.displayName="PopoverBody";function q0(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function H0(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Yx=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:s,hasDoneInitialMeasure:o,popper:c,show:u,...l},d)=>{const f=Ue(e,"popover"),m=Ro(),[g]=(t==null?void 0:t.split("-"))||[],v=q0(g,m);let h=r;return u&&!o&&(h={...r,...H0(c==null?void 0:c.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:h,"x-placement":g,className:ae(n,f,g&&`bs-popover-${v}`),...l,children:[y.jsx("div",{className:"popover-arrow",...s}),i?y.jsx(pd,{children:a}):a]})}),V0=Object.assign(Yx,{Header:W0,Body:pd,POPPER_OFFSET:[0,8]}),Y0=oe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:s,popper:o,show:c,...u},l)=>{e=Ue(e,"tooltip");const d=Ro(),[f]=(t==null?void 0:t.split("-"))||[],m=q0(f,d);let g=r;return c&&!s&&(g={...r,...H0(o==null?void 0:o.strategy)}),y.jsxs("div",{ref:l,style:g,role:"tooltip","x-placement":f,className:ae(n,e,`bs-tooltip-${m}`),...u,children:[y.jsx("div",{className:"tooltip-arrow",...i}),y.jsx("div",{className:`${e}-inner`,children:a})]})});Y0.displayName="Tooltip";const md=Object.assign(Y0,{TOOLTIP_OFFSET:[0,6]});function Zx(e){const t=p.useRef(null),n=Ue(void 0,"popover"),r=Ue(void 0,"tooltip"),a=p.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(el(t.current,n))return V0.POPPER_OFFSET;if(el(t.current,r))return md.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function Gx(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Fs(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(Fs(a)))}const Z0=oe.forwardRef(({children:e,transition:t=Yr,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...s},o)=>{const c=p.useRef({}),[u,l]=p.useState(null),[d,f]=Zx(s.offset),m=_n(o,d),g=t===!0?Yr:t||void 0,v=ot(h=>{l(h),n==null||n.onFirstUpdate==null||n.onFirstUpdate(h)});return Us(()=>{u&&s.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[u,s.target]),p.useEffect(()=>{i||l(null)},[i]),y.jsx(B0,{...s,ref:m,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:v},transition:g,rootClose:r,placement:a,show:i,children:(h,{arrowProps:w,popper:x,show:b})=>{var T;Gx(h,w);const _=x==null?void 0:x.placement,S=Object.assign(c.current,{state:x==null?void 0:x.state,scheduleUpdate:x==null?void 0:x.update,placement:_,outOfBoundaries:(x==null||(T=x.state)==null||(T=T.modifiersData.hide)==null?void 0:T.isReferenceHidden)||!1,strategy:n.strategy}),$=!!u;return typeof e=="function"?e({...h,placement:_,show:b,...!t&&b&&{className:"show"},popper:S,arrowProps:w,hasDoneInitialMeasure:$}):oe.cloneElement(e,{...h,placement:_,arrowProps:w,popper:S,hasDoneInitialMeasure:$,className:ae(e.props.className,!t&&b&&"show"),style:{...e.props.style,...h.style}})}})});Z0.displayName="Overlay";function Kx(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function fh(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!ii(a,i)&&e(...t)}E.oneOf(["click","hover","focus"]);const G0=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:s,delay:o,placement:c,flip:u=c&&c.indexOf("auto")!==-1,...l})=>{const d=p.useRef(null),f=_n(d,n.ref),m=n2(),g=p.useRef(""),[v,h]=Zm(a,i,s),w=Kx(o),{onFocus:x,onBlur:b,onClick:T}=typeof n!="function"?oe.Children.only(n).props:{},_=F=>{f(Fs(F))},S=p.useCallback(()=>{if(m.clear(),g.current="show",!w.show){h(!0);return}m.set(()=>{g.current==="show"&&h(!0)},w.show)},[w.show,h,m]),$=p.useCallback(()=>{if(m.clear(),g.current="hide",!w.hide){h(!1);return}m.set(()=>{g.current==="hide"&&h(!1)},w.hide)},[w.hide,h,m]),D=p.useCallback((...F)=>{S(),x==null||x(...F)},[S,x]),I=p.useCallback((...F)=>{$(),b==null||b(...F)},[$,b]),M=p.useCallback((...F)=>{h(!v),T==null||T(...F)},[T,h,v]),k=p.useCallback((...F)=>{fh(S,F,"fromElement")},[S]),Y=p.useCallback((...F)=>{fh($,F,"toElement")},[$]),A=e==null?[]:[].concat(e),R={ref:_};return A.indexOf("click")!==-1&&(R.onClick=M),A.indexOf("focus")!==-1&&(R.onFocus=D,R.onBlur=I),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Ni(A.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),R.onMouseOver=k,R.onMouseOut=Y),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(R):p.cloneElement(n,R),y.jsx(Z0,{...l,show:v,onHide:$,flip:u,placement:c,popperConfig:r,target:d.current,children:t})]})};var K0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hh=p.createContext&&p.createContext(K0),Xx=["attr","size","title"];function Jx(e,t){if(e==null)return{};var n=Qx(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qx(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(this,arguments)}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(r){ew(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ew(e,t,n){return t=tw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){var t=nw(e,"string");return typeof t=="symbol"?t:t+""}function nw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X0(e){return e&&e.map((t,n)=>p.createElement(t.tag,Hs({key:n},t.attr),X0(t.child)))}function Re(e){return t=>p.createElement(rw,qs({attr:Hs({},e.attr)},t),X0(e.child))}function rw(e){var t=n=>{var{attr:r,size:a,title:i}=e,s=Jx(e,Xx),o=a||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),p.createElement("svg",qs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:Hs(Hs({color:e.color||n.color},n.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),i&&p.createElement("title",null,i),e.children)};return hh!==void 0?p.createElement(hh.Consumer,null,n=>t(n)):t(K0)}function aw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Io(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function iw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function sw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 17 5-5-5-5v10z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0h24v24H0z"},child:[]}]})(e)}function ow(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function cw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function uw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function lw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function dw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function fw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function hw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function pw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function mw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function gw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function vw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function bw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function yw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function _w(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function xw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function ww(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function Tw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function J0(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function Ow(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function Cw(e){return Re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Et=p.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),Q0=p.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),eg=p.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),tg=()=>{const{isShown:e,text:t,showPrompt:n,hidePrompt:r,resolveRef:a,setOptions:i}=p.useContext(eg),s=p.useCallback(c=>{r(),a.current(c)},[r,a]),o=p.useCallback(async(c,u)=>(i(l=>({...l,...u})),n(c),new Promise(l=>{a.current=l})),[a,i,n]);return{isShown:e,text:t,prompt:o,onFinish:s}};let Ew={data:""},Sw=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ew,kw=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Rw=/\/\*[^]*?\*\/| +/g,mh=/\n+/g,An=(e,t)=>{let n="",r="",a="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?An(s,i):i+"{"+An(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=An(s,t?t.replace(/([^,])+/g,o=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,o):o?o+" "+c:c)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=An.p?An.p(i,s):i+":"+s+";")}return n+(t&&a?t+"{"+a+"}":a)+r},sn={},ng=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ng(e[n]);return t}return e},Aw=(e,t,n,r,a)=>{let i=ng(e),s=sn[i]||(sn[i]=(c=>{let u=0,l=11;for(;u<c.length;)l=101*l+c.charCodeAt(u++)>>>0;return"go"+l})(i));if(!sn[s]){let c=i!==e?e:(u=>{let l,d,f=[{}];for(;l=kw.exec(u.replace(Rw,""));)l[4]?f.shift():l[3]?(d=l[3].replace(mh," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][l[1]]=l[2].replace(mh," ").trim();return f[0]})(e);sn[s]=An(a?{["@keyframes "+s]:c}:c,n?"":"."+s)}let o=n&&sn.g?sn.g:null;return n&&(sn.g=sn[s]),((c,u,l,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=l?c+u.data:u.data+c)})(sn[s],t,r,o),s},Mw=(e,t,n)=>e.reduce((r,a,i)=>{let s=t[i];if(s&&s.call){let o=s(n),c=o&&o.props&&o.props.className||/^go/.test(o)&&o;s=c?"."+c:o&&typeof o=="object"?o.props?"":An(o,""):o===!1?"":o}return r+a+(s??"")},"");function No(e){let t=this||{},n=e.call?e(t.p):e;return Aw(n.unshift?n.raw?Mw(n,[].slice.call(arguments,1),t.p):n.reduce((r,a)=>Object.assign(r,a&&a.call?a(t.p):a),{}):n,Sw(t.target),t.g,t.o,t.k)}let rg,tl,nl;No.bind({g:1});let gn=No.bind({k:1});function $w(e,t,n,r){An.p=t,rg=e,tl=n,nl=r}function Hn(e,t){let n=this||{};return function(){let r=arguments;function a(i,s){let o=Object.assign({},i),c=o.className||a.className;n.p=Object.assign({theme:tl&&tl()},o),n.o=/ *go\d+/.test(c),o.className=No.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=o.as||e,delete o.as),nl&&u[0]&&nl(o),rg(u,o)}return a}}var jw=e=>typeof e=="function",Vs=(e,t)=>jw(e)?e(t):e,Pw=(()=>{let e=0;return()=>(++e).toString()})(),ag=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Iw=20,ks=new Map,Nw=1e3,gh=e=>{if(ks.has(e))return;let t=setTimeout(()=>{ks.delete(e),wr({type:4,toastId:e})},Nw);ks.set(e,t)},Dw=e=>{let t=ks.get(e);t&&clearTimeout(t)},rl=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Iw)};case 1:return t.toast.id&&Dw(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?rl(e,{type:1,toast:n}):rl(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?gh(r):e.toasts.forEach(i=>{gh(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},Rs=[],As={toasts:[],pausedAt:void 0},wr=e=>{As=rl(As,e),Rs.forEach(t=>{t(As)})},Fw={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Lw=(e={})=>{let[t,n]=p.useState(As);p.useEffect(()=>(Rs.push(n),()=>{let a=Rs.indexOf(n);a>-1&&Rs.splice(a,1)}),[t]);let r=t.toasts.map(a=>{var i,s;return{...e,...e[a.type],...a,duration:a.duration||((i=e[a.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Fw[a.type],style:{...e.style,...(s=e[a.type])==null?void 0:s.style,...a.style}}});return{...t,toasts:r}},Uw=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Pw()}),Di=e=>(t,n)=>{let r=Uw(t,e,n);return wr({type:2,toast:r}),r.id},xt=(e,t)=>Di("blank")(e,t);xt.error=Di("error");xt.success=Di("success");xt.loading=Di("loading");xt.custom=Di("custom");xt.dismiss=e=>{wr({type:3,toastId:e})};xt.remove=e=>wr({type:4,toastId:e});xt.promise=(e,t,n)=>{let r=xt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(a=>(xt.success(Vs(t.success,a),{id:r,...n,...n==null?void 0:n.success}),a)).catch(a=>{xt.error(Vs(t.error,a),{id:r,...n,...n==null?void 0:n.error})}),e};var zw=(e,t)=>{wr({type:1,toast:{id:e,height:t}})},Bw=()=>{wr({type:5,time:Date.now()})},Ww=e=>{let{toasts:t,pausedAt:n}=Lw(e);p.useEffect(()=>{if(n)return;let i=Date.now(),s=t.map(o=>{if(o.duration===1/0)return;let c=(o.duration||0)+o.pauseDuration-(i-o.createdAt);if(c<0){o.visible&&xt.dismiss(o.id);return}return setTimeout(()=>xt.dismiss(o.id),c)});return()=>{s.forEach(o=>o&&clearTimeout(o))}},[t,n]);let r=p.useCallback(()=>{n&&wr({type:6,time:Date.now()})},[n]),a=p.useCallback((i,s)=>{let{reverseOrder:o=!1,gutter:c=8,defaultPosition:u}=s||{},l=t.filter(m=>(m.position||u)===(i.position||u)&&m.height),d=l.findIndex(m=>m.id===i.id),f=l.filter((m,g)=>g<d&&m.visible).length;return l.filter(m=>m.visible).slice(...o?[f+1]:[0,f]).reduce((m,g)=>m+(g.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:zw,startPause:Bw,endPause:r,calculateOffset:a}}},qw=gn`
54
+ from {
55
+ transform: scale(0) rotate(45deg);
56
+ opacity: 0;
57
+ }
58
+ to {
59
+ transform: scale(1) rotate(45deg);
60
+ opacity: 1;
61
+ }`,Hw=gn`
62
+ from {
63
+ transform: scale(0);
64
+ opacity: 0;
65
+ }
66
+ to {
67
+ transform: scale(1);
68
+ opacity: 1;
69
+ }`,Vw=gn`
70
+ from {
71
+ transform: scale(0) rotate(90deg);
72
+ opacity: 0;
73
+ }
74
+ to {
75
+ transform: scale(1) rotate(90deg);
76
+ opacity: 1;
77
+ }`,Yw=Hn("div")`
78
+ width: 20px;
79
+ opacity: 0;
80
+ height: 20px;
81
+ border-radius: 10px;
82
+ background: ${e=>e.primary||"#ff4b4b"};
83
+ position: relative;
84
+ transform: rotate(45deg);
85
+
86
+ animation: ${qw} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
87
+ forwards;
88
+ animation-delay: 100ms;
89
+
90
+ &:after,
91
+ &:before {
92
+ content: '';
93
+ animation: ${Hw} 0.15s ease-out forwards;
94
+ animation-delay: 150ms;
95
+ position: absolute;
96
+ border-radius: 3px;
97
+ opacity: 0;
98
+ background: ${e=>e.secondary||"#fff"};
99
+ bottom: 9px;
100
+ left: 4px;
101
+ height: 2px;
102
+ width: 12px;
103
+ }
104
+
105
+ &:before {
106
+ animation: ${Vw} 0.15s ease-out forwards;
107
+ animation-delay: 180ms;
108
+ transform: rotate(90deg);
109
+ }
110
+ `,Zw=gn`
111
+ from {
112
+ transform: rotate(0deg);
113
+ }
114
+ to {
115
+ transform: rotate(360deg);
116
+ }
117
+ `,Gw=Hn("div")`
118
+ width: 12px;
119
+ height: 12px;
120
+ box-sizing: border-box;
121
+ border: 2px solid;
122
+ border-radius: 100%;
123
+ border-color: ${e=>e.secondary||"#e0e0e0"};
124
+ border-right-color: ${e=>e.primary||"#616161"};
125
+ animation: ${Zw} 1s linear infinite;
126
+ `,Kw=gn`
127
+ from {
128
+ transform: scale(0) rotate(45deg);
129
+ opacity: 0;
130
+ }
131
+ to {
132
+ transform: scale(1) rotate(45deg);
133
+ opacity: 1;
134
+ }`,Xw=gn`
135
+ 0% {
136
+ height: 0;
137
+ width: 0;
138
+ opacity: 0;
139
+ }
140
+ 40% {
141
+ height: 0;
142
+ width: 6px;
143
+ opacity: 1;
144
+ }
145
+ 100% {
146
+ opacity: 1;
147
+ height: 10px;
148
+ }`,Jw=Hn("div")`
149
+ width: 20px;
150
+ opacity: 0;
151
+ height: 20px;
152
+ border-radius: 10px;
153
+ background: ${e=>e.primary||"#61d345"};
154
+ position: relative;
155
+ transform: rotate(45deg);
156
+
157
+ animation: ${Kw} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
158
+ forwards;
159
+ animation-delay: 100ms;
160
+ &:after {
161
+ content: '';
162
+ box-sizing: border-box;
163
+ animation: ${Xw} 0.2s ease-out forwards;
164
+ opacity: 0;
165
+ animation-delay: 200ms;
166
+ position: absolute;
167
+ border-right: 2px solid;
168
+ border-bottom: 2px solid;
169
+ border-color: ${e=>e.secondary||"#fff"};
170
+ bottom: 6px;
171
+ left: 6px;
172
+ height: 10px;
173
+ width: 6px;
174
+ }
175
+ `,Qw=Hn("div")`
176
+ position: absolute;
177
+ `,e4=Hn("div")`
178
+ position: relative;
179
+ display: flex;
180
+ justify-content: center;
181
+ align-items: center;
182
+ min-width: 20px;
183
+ min-height: 20px;
184
+ `,t4=gn`
185
+ from {
186
+ transform: scale(0.6);
187
+ opacity: 0.4;
188
+ }
189
+ to {
190
+ transform: scale(1);
191
+ opacity: 1;
192
+ }`,n4=Hn("div")`
193
+ position: relative;
194
+ transform: scale(0.6);
195
+ opacity: 0.4;
196
+ min-width: 20px;
197
+ animation: ${t4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
198
+ forwards;
199
+ `,r4=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?oe.createElement(n4,null,t):t:n==="blank"?null:oe.createElement(e4,null,oe.createElement(Gw,{...r}),n!=="loading"&&oe.createElement(Qw,null,n==="error"?oe.createElement(Yw,{...r}):oe.createElement(Jw,{...r})))},a4=e=>`
200
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
201
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
202
+ `,i4=e=>`
203
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
204
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
205
+ `,s4="0%{opacity:0;} 100%{opacity:1;}",o4="0%{opacity:1;} 100%{opacity:0;}",c4=Hn("div")`
206
+ display: flex;
207
+ align-items: center;
208
+ background: #fff;
209
+ color: #363636;
210
+ line-height: 1.3;
211
+ will-change: transform;
212
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
213
+ max-width: 350px;
214
+ pointer-events: auto;
215
+ padding: 8px 10px;
216
+ border-radius: 8px;
217
+ `,u4=Hn("div")`
218
+ display: flex;
219
+ justify-content: center;
220
+ margin: 4px 10px;
221
+ color: inherit;
222
+ flex: 1 1 auto;
223
+ white-space: pre-line;
224
+ `,l4=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=ag()?[s4,o4]:[a4(n),i4(n)];return{animation:t?`${gn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${gn(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},d4=oe.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?l4(e.position||t||"top-center",e.visible):{opacity:0},i=oe.createElement(r4,{toast:e}),s=oe.createElement(u4,{...e.ariaProps},Vs(e.message,e));return oe.createElement(c4,{className:e.className,style:{...a,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):oe.createElement(oe.Fragment,null,i,s))});$w(oe.createElement);var f4=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let i=oe.useCallback(s=>{if(s){let o=()=>{let c=s.getBoundingClientRect().height;r(e,c)};o(),new MutationObserver(o).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return oe.createElement("div",{ref:i,className:t,style:n},a)},h4=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},a=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ag()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...a}},p4=No`
225
+ z-index: 9999;
226
+ > * {
227
+ pointer-events: auto;
228
+ }
229
+ `,ds=16,m4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,containerStyle:i,containerClassName:s})=>{let{toasts:o,handlers:c}=Ww(n);return oe.createElement("div",{style:{position:"fixed",zIndex:9999,top:ds,left:ds,right:ds,bottom:ds,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},o.map(u=>{let l=u.position||t,d=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),f=h4(l,d);return oe.createElement(f4,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?p4:"",style:f},u.type==="custom"?Vs(u.message,u):a?a(u):oe.createElement(d4,{toast:u,position:l}))}))},$r=xt;const Do=p.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var al;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})(al||(al={}));const ig=al,g4=p.createContext({user:null,userLoginState:{state:ig.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}});function sg(e,t){return function(){return e.apply(t,arguments)}}const{toString:v4}=Object.prototype,{getPrototypeOf:gd}=Object,Fo=(e=>t=>{const n=v4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zt=e=>(e=e.toLowerCase(),t=>Fo(t)===e),Lo=e=>t=>typeof t===e,{isArray:ca}=Array,si=Lo("undefined");function b4(e){return e!==null&&!si(e)&&e.constructor!==null&&!si(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const og=zt("ArrayBuffer");function y4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&og(e.buffer),t}const _4=Lo("string"),wt=Lo("function"),cg=Lo("number"),Uo=e=>e!==null&&typeof e=="object",x4=e=>e===!0||e===!1,Ms=e=>{if(Fo(e)!=="object")return!1;const t=gd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w4=zt("Date"),T4=zt("File"),O4=zt("Blob"),C4=zt("FileList"),E4=e=>Uo(e)&&wt(e.pipe),S4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=Fo(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},k4=zt("URLSearchParams"),[R4,A4,M4,$4]=["ReadableStream","Request","Response","Headers"].map(zt),j4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ca(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(r=0;r<s;r++)o=i[r],t.call(null,e[o],o,e)}}function ug(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lg=e=>!si(e)&&e!==nr;function il(){const{caseless:e}=lg(this)&&this||{},t={},n=(r,a)=>{const i=e&&ug(t,a)||a;Ms(t[i])&&Ms(r)?t[i]=il(t[i],r):Ms(r)?t[i]=il({},r):ca(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Fi(arguments[r],n);return t}const P4=(e,t,n,{allOwnKeys:r}={})=>(Fi(t,(a,i)=>{n&&wt(a)?e[i]=sg(a,n):e[i]=a},{allOwnKeys:r}),e),I4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),N4=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},D4=(e,t,n,r)=>{let a,i,s;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&gd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},F4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},L4=e=>{if(!e)return null;if(ca(e))return e;let t=e.length;if(!cg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},U4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gd(Uint8Array)),z4=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},B4=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},W4=zt("HTMLFormElement"),q4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),vh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H4=zt("RegExp"),dg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fi(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},V4=e=>{dg(e,(t,n)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(wt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Y4=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ca(e)?r(e):r(String(e).split(t)),n},Z4=()=>{},G4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pu="abcdefghijklmnopqrstuvwxyz",bh="0123456789",fg={DIGIT:bh,ALPHA:pu,ALPHA_DIGIT:pu+pu.toUpperCase()+bh},K4=(e=16,t=fg.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function X4(e){return!!(e&&wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const J4=e=>{const t=new Array(10),n=(r,a)=>{if(Uo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ca(r)?[]:{};return Fi(r,(s,o)=>{const c=n(s,a+1);!si(c)&&(i[o]=c)}),t[a]=void 0,i}}return r};return n(e,0)},Q4=zt("AsyncFunction"),e3=e=>e&&(Uo(e)||wt(e))&&wt(e.then)&&wt(e.catch),hg=((e,t)=>e?setImmediate:t?((n,r)=>(nr.addEventListener("message",({source:a,data:i})=>{a===nr&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),nr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",wt(nr.postMessage)),t3=typeof queueMicrotask<"u"?queueMicrotask.bind(nr):typeof process<"u"&&process.nextTick||hg,P={isArray:ca,isArrayBuffer:og,isBuffer:b4,isFormData:S4,isArrayBufferView:y4,isString:_4,isNumber:cg,isBoolean:x4,isObject:Uo,isPlainObject:Ms,isReadableStream:R4,isRequest:A4,isResponse:M4,isHeaders:$4,isUndefined:si,isDate:w4,isFile:T4,isBlob:O4,isRegExp:H4,isFunction:wt,isStream:E4,isURLSearchParams:k4,isTypedArray:U4,isFileList:C4,forEach:Fi,merge:il,extend:P4,trim:j4,stripBOM:I4,inherits:N4,toFlatObject:D4,kindOf:Fo,kindOfTest:zt,endsWith:F4,toArray:L4,forEachEntry:z4,matchAll:B4,isHTMLForm:W4,hasOwnProperty:vh,hasOwnProp:vh,reduceDescriptors:dg,freezeMethods:V4,toObjectSet:Y4,toCamelCase:q4,noop:Z4,toFiniteNumber:G4,findKey:ug,global:nr,isContextDefined:lg,ALPHABET:fg,generateString:K4,isSpecCompliantForm:X4,toJSONObject:J4,isAsyncFn:Q4,isThenable:e3,setImmediate:hg,asap:t3};function ye(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}P.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pg=ye.prototype,mg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mg[e]={value:e}});Object.defineProperties(ye,mg);Object.defineProperty(pg,"isAxiosError",{value:!0});ye.from=(e,t,n,r,a,i)=>{const s=Object.create(pg);return P.toFlatObject(e,s,function(c){return c!==Error.prototype},o=>o!=="isAxiosError"),ye.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const n3=null;function sl(e){return P.isPlainObject(e)||P.isArray(e)}function gg(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function yh(e,t,n){return e?e.concat(t).map(function(a,i){return a=gg(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function r3(e){return P.isArray(e)&&!e.some(sl)}const a3=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function zo(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,h){return!P.isUndefined(h[v])});const r=n.metaTokens,a=n.visitor||l,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(a))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(P.isDate(g))return g.toISOString();if(!c&&P.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(g)||P.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,v,h){let w=g;if(g&&!h&&typeof g=="object"){if(P.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(P.isArray(g)&&r3(g)||(P.isFileList(g)||P.endsWith(v,"[]"))&&(w=P.toArray(g)))return v=gg(v),w.forEach(function(b,T){!(P.isUndefined(b)||b===null)&&t.append(s===!0?yh([v],T,i):s===null?v:v+"[]",u(b))}),!1}return sl(g)?!0:(t.append(yh(h,v,i),u(g)),!1)}const d=[],f=Object.assign(a3,{defaultVisitor:l,convertValue:u,isVisitable:sl});function m(g,v){if(!P.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),P.forEach(g,function(w,x){(!(P.isUndefined(w)||w===null)&&a.call(t,w,P.isString(x)?x.trim():x,v,f))===!0&&m(w,v?v.concat(x):[x])}),d.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return m(e),t}function _h(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vd(e,t){this._pairs=[],e&&zo(e,this,t)}const vg=vd.prototype;vg.append=function(t,n){this._pairs.push([t,n])};vg.toString=function(t){const n=t?function(r){return t.call(this,r,_h)}:_h;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function i3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bg(e,t,n){if(!t)return e;const r=n&&n.encode||i3,a=n&&n.serialize;let i;if(a?i=a(t,n):i=P.isURLSearchParams(t)?t.toString():new vd(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class xh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},s3=typeof URLSearchParams<"u"?URLSearchParams:vd,o3=typeof FormData<"u"?FormData:null,c3=typeof Blob<"u"?Blob:null,u3={isBrowser:!0,classes:{URLSearchParams:s3,FormData:o3,Blob:c3},protocols:["http","https","file","blob","url","data"]},bd=typeof window<"u"&&typeof document<"u",l3=(e=>bd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),d3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f3=bd&&window.location.href||"http://localhost",h3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bd,hasStandardBrowserEnv:l3,hasStandardBrowserWebWorkerEnv:d3,origin:f3},Symbol.toStringTag,{value:"Module"})),Nt={...h3,...u3};function p3(e,t){return zo(e,new Nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Nt.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function m3(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function g3(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function _g(e){function t(n,r,a,i){let s=n[i++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),c=i>=n.length;return s=!s&&P.isArray(a)?a.length:s,c?(P.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!o):((!a[s]||!P.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&P.isArray(a[s])&&(a[s]=g3(a[s])),!o)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,a)=>{t(m3(r),a,n,0)}),n}return null}function v3(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Li={transitional:yg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return a?JSON.stringify(_g(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return p3(t,this.formSerializer).toString();if((o=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return zo(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),v3(t)):t}],transformResponse:[function(t){const n=this.transitional||Li.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?ye.from(o,ye.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],e=>{Li.headers[e]={}});const b3=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),y3=e=>{const t={};let n,r,a;return e&&e.split(`
230
+ `).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&b3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wh=Symbol("internals");function $a(e){return e&&String(e).trim().toLowerCase()}function $s(e){return e===!1||e==null?e:P.isArray(e)?e.map($s):String(e)}function _3(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const x3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mu(e,t,n,r,a){if(P.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function w3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function T3(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}class gt{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,c,u){const l=$a(c);if(!l)throw new Error("header name must be a non-empty string");const d=P.findKey(a,l);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||c]=$s(o))}const s=(o,c)=>P.forEach(o,(u,l)=>i(u,l,c));if(P.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(P.isString(t)&&(t=t.trim())&&!x3(t))s(y3(t),n);else if(P.isHeaders(t))for(const[o,c]of t.entries())i(c,o,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=$a(t),t){const r=P.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return _3(a);if(P.isFunction(n))return n.call(this,a,r);if(P.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$a(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||mu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=$a(s),s){const o=P.findKey(r,s);o&&(!n||mu(r,r[o],o,n))&&(delete r[o],a=!0)}}return P.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||mu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return P.forEach(this,(a,i)=>{const s=P.findKey(r,i);if(s){n[s]=$s(a),delete n[i];return}const o=t?w3(i):String(i).trim();o!==i&&delete n[i],n[o]=$s(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
231
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[wh]=this[wh]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=$a(s);r[o]||(T3(a,s),r[o]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}}gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(gt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(gt);function gu(e,t){const n=this||Li,r=t||n,a=gt.from(r.headers);let i=r.data;return P.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function xg(e){return!!(e&&e.__CANCEL__)}function ua(e,t,n){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(ua,ye,{__CANCEL__:!0});function wg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function O3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function C3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),l=r[i];s||(s=u),n[a]=c,r[a]=u;let d=i,f=0;for(;d!==a;)f+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-s<t)return;const m=l&&u-l;return m?Math.round(f*1e3/m):void 0}}function E3(e,t){let n=0,r=1e3/t,a,i;const s=(u,l=Date.now())=>{n=l,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?s(u,l):(a=u,i||(i=setTimeout(()=>{i=null,s(a)},r-d)))},()=>a&&s(a)]}const Ys=(e,t,n=3)=>{let r=0;const a=C3(50,250);return E3(i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,c=s-r,u=a(c),l=s<=o;r=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:u||void 0,estimated:u&&o&&l?(o-s)/u:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},Th=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Oh=e=>(...t)=>P.asap(()=>e(...t)),S3=Nt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(s){const o=P.isString(s)?a(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),k3=Nt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const s=[e+"="+encodeURIComponent(t)];P.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),P.isString(r)&&s.push("path="+r),P.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function A3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tg(e,t){return e&&!R3(t)?A3(e,t):t}const Ch=e=>e instanceof gt?{...e}:e;function fr(e,t){t=t||{};const n={};function r(u,l,d){return P.isPlainObject(u)&&P.isPlainObject(l)?P.merge.call({caseless:d},u,l):P.isPlainObject(l)?P.merge({},l):P.isArray(l)?l.slice():l}function a(u,l,d){if(P.isUndefined(l)){if(!P.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function i(u,l){if(!P.isUndefined(l))return r(void 0,l)}function s(u,l){if(P.isUndefined(l)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function o(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,l)=>a(Ch(u),Ch(l),!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=c[l]||a,f=d(e[l],t[l],l);P.isUndefined(f)&&d!==o||(n[l]=f)}),n}const Og=e=>{const t=fr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:o}=t;t.headers=s=gt.from(s),t.url=bg(Tg(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let c;if(P.isFormData(n)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...l]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...l].join("; "))}}if(Nt.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(t)),r||r!==!1&&S3(t.url))){const u=a&&i&&k3.read(i);u&&s.set(a,u)}return t},M3=typeof XMLHttpRequest<"u",$3=M3&&function(e){return new Promise(function(n,r){const a=Og(e);let i=a.data;const s=gt.from(a.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:u}=a,l,d,f,m,g;function v(){m&&m(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout;function w(){if(!h)return;const b=gt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),_={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:b,config:e,request:h};wg(function($){n($),v()},function($){r($),v()},_),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new ye("Request aborted",ye.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new ye("Network Error",ye.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const _=a.transitional||yg;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),r(new ye(T,_.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&P.forEach(s.toJSON(),function(T,_){h.setRequestHeader(_,T)}),P.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),o&&o!=="json"&&(h.responseType=a.responseType),u&&([f,g]=Ys(u,!0),h.addEventListener("progress",f)),c&&h.upload&&([d,m]=Ys(c),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(l=b=>{h&&(r(!b||b.type?new ua(null,e,h):b),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const x=O3(a.url);if(x&&Nt.protocols.indexOf(x)===-1){r(new ye("Unsupported protocol "+x+":",ye.ERR_BAD_REQUEST,e));return}h.send(i||null)})},j3=(e,t)=>{let n=new AbortController,r;const a=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ye?u:new ua(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{a(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=s,[o,()=>{i&&clearTimeout(i),i=null}]},P3=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},I3=async function*(e,t,n){for await(const r of e)yield*P3(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Eh=(e,t,n,r,a)=>{const i=I3(e,t,a);let s=0,o,c=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await i.next();if(l){c(),u.close();return}let f=d.byteLength;if(n){let m=s+=f;n(m)}u.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},Bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Cg=Bo&&typeof ReadableStream=="function",ol=Bo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Eg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},N3=Cg&&Eg(()=>{let e=!1;const t=new Request(Nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Sh=64*1024,cl=Cg&&Eg(()=>P.isReadableStream(new Response("").body)),Zs={stream:cl&&(e=>e.body)};Bo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zs[t]&&(Zs[t]=P.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ye(`Response type '${t}' is not supported`,ye.ERR_NOT_SUPPORT,r)})})})(new Response);const D3=async e=>{if(e==null)return 0;if(P.isBlob(e))return e.size;if(P.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(P.isArrayBufferView(e)||P.isArrayBuffer(e))return e.byteLength;if(P.isURLSearchParams(e)&&(e=e+""),P.isString(e))return(await ol(e)).byteLength},F3=async(e,t)=>{const n=P.toFiniteNumber(e.getContentLength());return n??D3(t)},L3=Bo&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:s,onDownloadProgress:o,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=Og(e);u=u?(u+"").toLowerCase():"text";let[m,g]=a||i||s?j3([a,i],s):[],v,h;const w=()=>{!v&&setTimeout(()=>{m&&m.unsubscribe()}),v=!0};let x;try{if(c&&N3&&n!=="get"&&n!=="head"&&(x=await F3(l,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(P.isFormData(r)&&($=S.headers.get("content-type"))&&l.setContentType($),S.body){const[D,I]=Th(x,Ys(Oh(c)));r=Eh(S.body,Sh,D,I,ol)}}P.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:d});let b=await fetch(h);const T=cl&&(u==="stream"||u==="response");if(cl&&(o||T)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=b[M]});const $=P.toFiniteNumber(b.headers.get("content-length")),[D,I]=o&&Th($,Ys(Oh(o),!0))||[];b=new Response(Eh(b.body,Sh,D,()=>{I&&I(),T&&w()},ol),S)}u=u||"text";let _=await Zs[P.findKey(Zs,u)||"text"](b,e);return!T&&w(),g&&g(),await new Promise((S,$)=>{wg(S,$,{data:_,headers:gt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:h})})}catch(b){throw w(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,h),{cause:b.cause||b}):ye.from(b,b&&b.code,e,h)}}),ul={http:n3,xhr:$3,fetch:L3};P.forEach(ul,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kh=e=>`- ${e}`,U3=e=>P.isFunction(e)||e===null||e===!1,Sg={getAdapter:e=>{e=P.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!U3(n)&&(r=ul[(s=String(n)).toLowerCase()],r===void 0))throw new ye(`Unknown adapter '${s}'`);if(r)break;a[s||"#"+i]=r}if(!r){const i=Object.entries(a).map(([o,c])=>`adapter ${o} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
232
+ `+i.map(kh).join(`
233
+ `):" "+kh(i[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ul};function vu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ua(null,e)}function Rh(e){return vu(e),e.headers=gt.from(e.headers),e.data=gu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sg.getAdapter(e.adapter||Li.adapter)(e).then(function(r){return vu(e),r.data=gu.call(e,e.transformResponse,r),r.headers=gt.from(r.headers),r},function(r){return xg(r)||(vu(e),r&&r.response&&(r.response.data=gu.call(e,e.transformResponse,r.response),r.response.headers=gt.from(r.response.headers))),Promise.reject(r)})}const kg="1.7.3",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ah={};yd.transitional=function(t,n,r){function a(i,s){return"[Axios v"+kg+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new ye(a(s," has been removed"+(n?" in "+n:"")),ye.ERR_DEPRECATED);return n&&!Ah[s]&&(Ah[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,o):!0}};function z3(e,t,n){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=t[i];if(s){const o=e[i],c=o===void 0||s(o,i,e);if(c!==!0)throw new ye("option "+i+" must be "+c,ye.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}const ll={assertOptions:z3,validators:yd},Cn=ll.validators;class or{constructor(t){this.defaults=t,this.interceptors={request:new xh,response:new xh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
234
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fr(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&ll.assertOptions(r,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),a!=null&&(P.isFunction(a)?n.paramsSerializer={serialize:a}:ll.assertOptions(a,{encode:Cn.function,serialize:Cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=gt.concat(s,i);const o=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(c=c&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let l,d=0,f;if(!c){const g=[Rh.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,u),f=g.length,l=Promise.resolve(n);d<f;)l=l.then(g[d++],g[d++]);return l}f=o.length;let m=n;for(d=0;d<f;){const g=o[d++],v=o[d++];try{m=g(m)}catch(h){v.call(this,h);break}}try{l=Rh.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=fr(this.defaults,t);const n=Tg(t.baseURL,t.url);return bg(n,t.params,t.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(t){or.prototype[t]=function(n,r){return this.request(fr(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,o){return this.request(fr(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}or.prototype[t]=n(),or.prototype[t+"Form"]=n(!0)});class _d{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,o){r.reason||(r.reason=new ua(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _d(function(a){t=a}),cancel:t}}}function B3(e){return function(n){return e.apply(null,n)}}function W3(e){return P.isObject(e)&&e.isAxiosError===!0}const dl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dl).forEach(([e,t])=>{dl[t]=e});function Rg(e){const t=new or(e),n=sg(or.prototype.request,t);return P.extend(n,or.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Rg(fr(e,a))},n}const Be=Rg(Li);Be.Axios=or;Be.CanceledError=ua;Be.CancelToken=_d;Be.isCancel=xg;Be.VERSION=kg;Be.toFormData=zo;Be.AxiosError=ye;Be.Cancel=Be.CanceledError;Be.all=function(t){return Promise.all(t)};Be.spread=B3;Be.isAxiosError=W3;Be.mergeConfig=fr;Be.AxiosHeaders=gt;Be.formToJSON=e=>_g(P.isHTMLForm(e)?new FormData(e):e);Be.getAdapter=Sg.getAdapter;Be.HttpStatusCode=dl;Be.default=Be;const Gs=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),Ag=e=>{Gs(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Gs(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:Ag(n)})},Mg=e=>Object.values(e).every(t=>t===null),q3=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&Mg(r)?t[n]=null:t[n]=r}),t},xd=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(i=>`${i.charAt(0).toLowerCase()}${i.slice(1)}`).join("."),errors:r.errors})):[]},H3=(e,t)=>{xd(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Gs(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},$g=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},jg=e=>e.length<300?e:e.substring(0,300)+"...",Wo=e=>e<1024?`${e} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;function wd(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const fl=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),V3=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function Y3(e){return e==null?"":Kl(So(e),"dd.MM.yyyy")}function qo(e){return(e==null?void 0:e.toString().split("T")[0])??""}function Z3(e){return e==null?"":Kl(So(e),"dd.MM.yyyy HH:mm")}function G3(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const K3=(e,t)=>wd(" ",e?`${e},`:void 0,t),X3=(e,t)=>`${t}${e!=null?` (${e})`:""}`,J3=(e,t)=>`[${e??""}] ${t??""}`,Pg=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),Ig=e=>{const t=So(e);return!Number.isNaN(t.getTime())};function Q3(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function e6(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function t6(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function n6(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function r6(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const a=n.getTime()-r.getTime();return Math.floor(a/(1e3*3600*24))}function Ng(e=new Date){const t=new Date(e);return t.setDate(1),t}function Dg(e=new Date){const t=new Date(e);return t.setMonth(t.getMonth()+1),t.setDate(0),t}function a6(e){const t=new Date;return t.setMonth(t.getMonth()+e),Ng(t)}function i6(e){const t=new Date;return t.setMonth(t.getMonth()+e),Dg(t)}function s6(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function o6(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function c6(e){return qo(e.toISOString())}function Fg(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const a=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,i=r.match(a);if(i){const s=i[2].toUpperCase(),o=i[3];try{return s==="B"?r=Pg(o):s==="Q"&&(r=o.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,u)=>String.fromCharCode(parseInt(u,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(s){return console.error("Error decoding filename:",s),r}}return null}function Ks(e,t,n){const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.setAttribute("download",t),a.setAttribute("style","display: none"),n&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}function u6(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const r=e.headers.get("Content-disposition");typeof r=="string"&&r.length>0&&(n=Fg(e.headers.get("Content-disposition"))??n)}Ks(e.data,n,t==null?void 0:t.tryToOpen)}function Td(e,t=Td.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Td.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};/*!
235
+ * cookie
236
+ * Copyright(c) 2012-2014 Roman Shtylman
237
+ * Copyright(c) 2015 Douglas Christopher Wilson
238
+ * MIT Licensed
239
+ */var Lg=d6,Mh=f6,l6=Object.prototype.toString,fs=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d6(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},a=r.decode||h6,i=0;i<e.length;){var s=e.indexOf("=",i);if(s===-1)break;var o=e.indexOf(";",i);if(o===-1)o=e.length;else if(o<s){i=e.lastIndexOf(";",s-1)+1;continue}var c=e.slice(i,s).trim();if(n[c]===void 0){var u=e.slice(s+1,o).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),n[c]=g6(u,a)}i=o+1}return n}function f6(e,t,n){var r=n||{},a=r.encode||p6;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!fs.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!fs.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(r.maxAge!=null){var o=r.maxAge-0;if(isNaN(o)||!isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(o)}if(r.domain){if(!fs.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!fs.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var c=r.expires;if(!m6(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+c.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function h6(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function p6(e){return encodeURIComponent(e)}function m6(e){return l6.call(e)==="[object Date]"||e instanceof Date}function g6(e,t){try{return t(e)}catch{return e}}function v6(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function b6(e){return typeof e=="string"?Lg(e):typeof e=="object"&&e!==null?e:{}}function bu(e,t={}){const n=y6(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function y6(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class _6{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const a=this.cookies;this.cookies=Lg(document.cookie),this._checkChanges(a)};const r=typeof document>"u"?"":document.cookie;this.cookies=b6(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=v6()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:bu(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),bu(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=bu(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const a=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Mh(t,a,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Mh(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const x6=oe.createContext(new _6);var hl={exports:{}},je={};/** @license React v16.13.1
240
+ * react-is.production.min.js
241
+ *
242
+ * Copyright (c) Facebook, Inc. and its affiliates.
243
+ *
244
+ * This source code is licensed under the MIT license found in the
245
+ * LICENSE file in the root directory of this source tree.
246
+ */var $h;function w6(){if($h)return je;$h=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(_){if(typeof _=="object"&&_!==null){var S=_.$$typeof;switch(S){case t:switch(_=_.type,_){case c:case u:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case o:case l:case g:case m:case s:return _;default:return S}}case n:return S}}}function T(_){return b(_)===u}return je.AsyncMode=c,je.ConcurrentMode=u,je.ContextConsumer=o,je.ContextProvider=s,je.Element=t,je.ForwardRef=l,je.Fragment=r,je.Lazy=g,je.Memo=m,je.Portal=n,je.Profiler=i,je.StrictMode=a,je.Suspense=d,je.isAsyncMode=function(_){return T(_)||b(_)===c},je.isConcurrentMode=T,je.isContextConsumer=function(_){return b(_)===o},je.isContextProvider=function(_){return b(_)===s},je.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},je.isForwardRef=function(_){return b(_)===l},je.isFragment=function(_){return b(_)===r},je.isLazy=function(_){return b(_)===g},je.isMemo=function(_){return b(_)===m},je.isPortal=function(_){return b(_)===n},je.isProfiler=function(_){return b(_)===i},je.isStrictMode=function(_){return b(_)===a},je.isSuspense=function(_){return b(_)===d},je.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===s||_.$$typeof===o||_.$$typeof===l||_.$$typeof===h||_.$$typeof===w||_.$$typeof===x||_.$$typeof===v)},je.typeOf=b,je}var Pe={};/** @license React v16.13.1
247
+ * react-is.development.js
248
+ *
249
+ * Copyright (c) Facebook, Inc. and its affiliates.
250
+ *
251
+ * This source code is licensed under the MIT license found in the
252
+ * LICENSE file in the root directory of this source tree.
253
+ */var jh;function T6(){return jh||(jh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===i||O===a||O===d||O===f||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===m||O.$$typeof===s||O.$$typeof===o||O.$$typeof===l||O.$$typeof===h||O.$$typeof===w||O.$$typeof===x||O.$$typeof===v)}function T(O){if(typeof O=="object"&&O!==null){var ge=O.$$typeof;switch(ge){case t:var he=O.type;switch(he){case c:case u:case r:case i:case a:case d:return he;default:var ue=he&&he.$$typeof;switch(ue){case o:case l:case g:case m:case s:return ue;default:return ge}}case n:return ge}}}var _=c,S=u,$=o,D=s,I=t,M=l,k=r,Y=g,A=m,R=n,F=i,B=a,L=d,G=!1;function Z(O){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(O)||T(O)===c}function j(O){return T(O)===u}function U(O){return T(O)===o}function J(O){return T(O)===s}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function K(O){return T(O)===l}function X(O){return T(O)===r}function V(O){return T(O)===g}function Q(O){return T(O)===m}function ee(O){return T(O)===n}function N(O){return T(O)===i}function W(O){return T(O)===a}function ne(O){return T(O)===d}Pe.AsyncMode=_,Pe.ConcurrentMode=S,Pe.ContextConsumer=$,Pe.ContextProvider=D,Pe.Element=I,Pe.ForwardRef=M,Pe.Fragment=k,Pe.Lazy=Y,Pe.Memo=A,Pe.Portal=R,Pe.Profiler=F,Pe.StrictMode=B,Pe.Suspense=L,Pe.isAsyncMode=Z,Pe.isConcurrentMode=j,Pe.isContextConsumer=U,Pe.isContextProvider=J,Pe.isElement=te,Pe.isForwardRef=K,Pe.isFragment=X,Pe.isLazy=V,Pe.isMemo=Q,Pe.isPortal=ee,Pe.isProfiler=N,Pe.isStrictMode=W,Pe.isSuspense=ne,Pe.isValidElementType=b,Pe.typeOf=T}()),Pe}process.env.NODE_ENV==="production"?hl.exports=w6():hl.exports=T6();var O6=hl.exports,Ug=O6,C6={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zg={};zg[Ug.ForwardRef]=C6;zg[Ug.Memo]=E6;function S6(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Od(e,t){const n=p.useContext(x6);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,s]=p.useState(()=>n.getAll(a));S6()&&p.useLayoutEffect(()=>{function l(){const d=n.getAll(a);k6(e||null,d,i)&&s(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const o=p.useMemo(()=>n.set.bind(n),[n]),c=p.useMemo(()=>n.remove.bind(n),[n]),u=p.useMemo(()=>n.update.bind(n),[n]);return[i,o,c,u]}function k6(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const R6=()=>{const{axiosOptions:e,cookieDomain:t}=p.useContext(Et),[,n,r]=Od(["Authorization"]),a=Be.create(e),i=p.useCallback(()=>localStorage.getItem("token")??null,[]),s=p.useCallback(()=>{const u=i();return u!==null&&u.length>0},[i]),o=p.useCallback(async(u,l)=>a.post("/user/login",{kid:u,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:t1(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),c=p.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:s,login:o,logout:c,getToken:i}},A6=()=>{const[,,e]=Od(["Authorization"]),{msalScopes:t}=p.useContext(Sd),{instance:n,inProgress:r}=Af.useMsal(),a=Af.useIsAuthenticated(),i=p.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(m=>m.accessToken).catch(m=>{if(console.error("Error acquiring token",m),m instanceof Rf.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw m})):null},[n,t]),s=p.useCallback(()=>a,[a]),o=p.useCallback(()=>!s()&&r!==Rf.InteractionStatus.None,[s,r]),c=p.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),u=p.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:s,isAuthenticating:o,login:c,logout:u,getToken:i}},Bg=()=>{const{useMsal:e}=p.useContext(Sd),t=R6(),n=A6();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},M6="_toast_1s57i_1",ja={toast:M6},$6=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Cd=()=>({addNotification:p.useCallback((t,n)=>{const r=jg(t),a=$6(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(J0,{onClick:()=>$r.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{$r(i,{id:r,duration:a,position:"top-center",icon:y.jsx(ww,{size:12}),className:ae("luminus-toast-success rounded shadow bg-success",ja.toast)});break}case"danger":{$r(i,{id:r,duration:a,position:"top-center",icon:y.jsx(pw,{size:12}),className:ae("luminus-toast-danger rounded shadow bg-danger",ja.toast)});break}case"warning":{$r(i,{id:r,duration:a,position:"top-center",icon:y.jsx(uw,{size:12}),className:ae("luminus-toast-warning rounded shadow bg-warning",ja.toast)});break}case"info":{$r(i,{id:r,duration:a,position:"top-center",icon:y.jsx(fw,{size:12}),className:ae("luminus-toast-info rounded shadow bg-info",ja.toast)});break}case"prompt":{$r(i,{id:r,duration:a,position:"top-center",icon:y.jsx(hw,{size:12}),className:ae("luminus-toast-prompt rounded shadow bg-light",ja.toast)});break}}},[])}),j6=Be.CancelToken,Ho=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i}={...e},{language:s,axiosOptions:o,texts:{axios:c}}=p.useContext(Et),{delegation:u}=p.useContext(tv),l=p.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:d}=Cd(),{getToken:f}=Bg(),m=p.useMemo(()=>Be.create(o),[o]),g=p.useCallback(async h=>{var w,x,b;if(t&&!h.headers.Authorization){const T=a??await f();if(!T)return Promise.reject(new Error("No bearer token"));h.headers.Authorization=`Bearer ${T}`}return l!==null&&!i&&(h.headers.DelegationId=l.toString()),(w=h.url)!=null&&w.includes("culture=")?h.url=(x=h.url)==null?void 0:x.replace(/culture=[a-z]{2}/,`culture=${s}`):h.url=`${h.url}${(b=h.url)!=null&&b.includes("?")?"&":"?"}culture=${s}`,h},[t,f,s,a,l,i]),v=p.useCallback(h=>{var b;if(console.log(h),Be.isCancel(h))return Promise.reject(h);const w=xd(h);if(w.length>0){const T=w.find(_=>_.name.toLowerCase()==="others");return T?(!r&&d(T.errors,"danger"),Promise.reject(h)):(!r&&d(c.validationError,"warning"),Promise.reject(h))}const x=$g(h);return x!==null?(!r&&d(`${c.permissionError}: ${wd(", ",...x)}`,"danger"),Promise.reject(h)):((b=h.response)==null?void 0:b.status)===403?(!r&&d(c.forbiddenError,"danger"),Promise.reject(h)):h.message&&h.message==="Network Error"?(!r&&d(c.networkError,"danger"),Promise.reject(h)):(Be.isCancel(h)||!r&&d(c.unexpectedError,"danger"),Promise.reject(h))},[d,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r]);return p.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const h=m.interceptors.request.use(g,x=>Promise.reject(x)),w=m.interceptors.response.use(x=>x,v);return()=>{m.interceptors.request.eject(h),m.interceptors.response.eject(w)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,g,v]),m};let yu;const Wg=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=p.useContext(Q0),a=()=>{r()};return{confirm:async c=>(n(c),new Promise(u=>{yu=u})),onConfirm:()=>{a(),yu(!0)},onCancel:()=>{a(),yu(!1)},show:e,text:t}};var Se;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const s of a)i[s]=s;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(const o of i)s[o]=a[o];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},e.find=(a,i)=>{for(const s of a)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Se||(Se={}));var pl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(pl||(pl={}));const se=Se.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mn=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}},H=Se.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),P6=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Tt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,c=0;for(;c<s.path.length;){const u=s.path[c];c===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof Tt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Tt.create=e=>new Tt(e);const Jr=(e,t)=>{let n;switch(e.code){case H.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Se.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${Se.joinValues(e.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Se.joinValues(e.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${Se.joinValues(e.options)}, received '${e.received}'`;break;case H.invalid_arguments:n="Invalid function arguments";break;case H.invalid_return_type:n="Invalid function return type";break;case H.invalid_date:n="Invalid date";break;case H.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Se.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case H.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case H.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case H.custom:n="Invalid input";break;case H.invalid_intersection_types:n="Intersection results could not be merged";break;case H.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=t.defaultError,Se.assertNever(e)}return{message:n}};let qg=Jr;function I6(e){qg=e}function Xs(){return qg}const Js=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],s={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let o="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)o=u(s,{data:t,defaultError:o}).message;return{...a,path:i,message:o}},N6=[];function ie(e,t){const n=Xs(),r=Js({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Jr?void 0:Jr].filter(a=>!!a)});e.common.issues.push(r)}class at{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return me;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,s=await a.value;r.push({key:i,value:s})}return at.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return me;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}}const me=Object.freeze({status:"aborted"}),Dr=e=>({status:"dirty",value:e}),ut=e=>({status:"valid",value:e}),ml=e=>e.status==="aborted",gl=e=>e.status==="dirty",oi=e=>e.status==="valid",ci=e=>typeof Promise<"u"&&e instanceof Promise;function Qs(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Hg(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));var Va,Ya;class Xt{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ph=(e,t)=>{if(oi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Tt(e.common.issues);return this._error=n,this._error}}};function _e(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,o)=>{var c,u;const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(c=l??r)!==null&&c!==void 0?c:o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:(u=l??n)!==null&&u!==void 0?u:o.defaultError}},description:a}}class Te{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Mn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Mn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new at,ctx:{common:t.parent.common,data:t.data,parsedType:Mn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ci(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mn(t)},i=this._parseSync({data:t,path:a.path,parent:a});return Ph(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mn(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ci(a)?a:Promise.resolve(a));return Ph(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const s=t(a),o=()=>i.addIssue({code:H.custom,...r(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Lt({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Gt.create(this,this._def)}nullable(){return zn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dt.create(this,this._def)}promise(){return ea.create(this,this._def)}or(t){return fi.create([this,t],this._def)}and(t){return hi.create(this,t,this._def)}transform(t){return new Lt({..._e(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new bi({..._e(this._def),innerType:this,defaultValue:n,typeName:pe.ZodDefault})}brand(){return new Ed({typeName:pe.ZodBranded,type:this,..._e(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yi({..._e(this._def),innerType:this,catchValue:n,typeName:pe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ui.create(this,t)}readonly(){return _i.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const D6=/^c[^\s-]{8,}$/i,F6=/^[0-9a-z]+$/,L6=/^[0-9A-HJKMNP-TV-Z]{26}$/,U6=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z6=/^[a-z0-9_-]{21}$/i,B6=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,W6=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,q6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let _u;const H6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,V6=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Y6=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Vg="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z6=new RegExp(`^${Vg}$`);function Yg(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function G6(e){return new RegExp(`^${Yg(e)}$`)}function Zg(e){let t=`${Vg}T${Yg(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function K6(e,t){return!!((t==="v4"||!t)&&H6.test(e)||(t==="v6"||!t)&&V6.test(e))}class Pt extends Te{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){const i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:se.string,received:i.parsedType}),me}const r=new at;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:H.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:H.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,o=t.data.length<i.value;(s||o)&&(a=this._getOrReturnCtx(t,a),s?ie(a,{code:H.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&ie(a,{code:H.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")W6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"email",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")_u||(_u=new RegExp(q6,"u")),_u.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"emoji",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")U6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"uuid",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")z6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"nanoid",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")D6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")F6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid2",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")L6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ulid",code:H.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ie(a,{validation:"url",code:H.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"regex",code:H.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Zg(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Z6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?G6(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:H.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?B6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"duration",code:H.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?K6(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ip",code:H.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Y6.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64",code:H.invalid_string,message:i.message}),r.dirty()):Se.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:H.invalid_string,...ce.errToObj(r)})}_addCheck(t){return new Pt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ce.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new Pt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pt.create=e=>{var t;return new Pt({checks:[],typeName:pe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._e(e)})};function X6(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}class Fn extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){const i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:se.number,received:i.parsedType}),me}let r;const a=new at;for(const i of this._def.checks)i.kind==="int"?Se.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?X6(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:H.not_finite,message:i.message}),a.dirty()):Se.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,a){return new Fn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(a)}]})}_addCheck(t){return new Fn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Se.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Fn.create=e=>new Fn({checks:[],typeName:pe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,..._e(e)});class Ln extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==se.bigint){const i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:se.bigint,received:i.parsedType}),me}let r;const a=new at;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:H.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Se.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,r,a){return new Ln({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ce.toString(a)}]})}_addCheck(t){return new Ln({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ln.create=e=>{var t;return new Ln({checks:[],typeName:pe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._e(e)})};class ui extends Te{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.boolean,received:r.parsedType}),me}return ut(t.data)}}ui.create=e=>new ui({typeName:pe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,..._e(e)});class hr extends Te{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){const i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_type,expected:se.date,received:i.parsedType}),me}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ie(i,{code:H.invalid_date}),me}const r=new at;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:H.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:H.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Se.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new hr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}hr.create=e=>new hr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:pe.ZodDate,..._e(e)});class eo extends Te{_parse(t){if(this._getType(t)!==se.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.symbol,received:r.parsedType}),me}return ut(t.data)}}eo.create=e=>new eo({typeName:pe.ZodSymbol,..._e(e)});class li extends Te{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.undefined,received:r.parsedType}),me}return ut(t.data)}}li.create=e=>new li({typeName:pe.ZodUndefined,..._e(e)});class di extends Te{_parse(t){if(this._getType(t)!==se.null){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.null,received:r.parsedType}),me}return ut(t.data)}}di.create=e=>new di({typeName:pe.ZodNull,..._e(e)});class Qr extends Te{constructor(){super(...arguments),this._any=!0}_parse(t){return ut(t.data)}}Qr.create=e=>new Qr({typeName:pe.ZodAny,..._e(e)});class cr extends Te{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ut(t.data)}}cr.create=e=>new cr({typeName:pe.ZodUnknown,..._e(e)});class vn extends Te{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:H.invalid_type,expected:se.never,received:n.parsedType}),me}}vn.create=e=>new vn({typeName:pe.ZodNever,..._e(e)});class to extends Te{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.void,received:r.parsedType}),me}return ut(t.data)}}to.create=e=>new to({typeName:pe.ZodVoid,..._e(e)});class Dt extends Te{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==se.array)return ie(n,{code:H.invalid_type,expected:se.array,received:n.parsedType}),me;if(a.exactLength!==null){const s=n.data.length>a.exactLength.value,o=n.data.length<a.exactLength.value;(s||o)&&(ie(n,{code:s?H.too_big:H.too_small,minimum:o?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ie(n,{code:H.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ie(n,{code:H.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>a.type._parseAsync(new Xt(n,s,n.path,o)))).then(s=>at.mergeArray(r,s));const i=[...n.data].map((s,o)=>a.type._parseSync(new Xt(n,s,n.path,o)));return at.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dt({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Dt({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Dt({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Dt.create=(e,t)=>new Dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,..._e(t)});function Nr(e){if(e instanceof qe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Gt.create(Nr(r))}return new qe({...e._def,shape:()=>t})}else return e instanceof Dt?new Dt({...e._def,type:Nr(e.element)}):e instanceof Gt?Gt.create(Nr(e.unwrap())):e instanceof zn?zn.create(Nr(e.unwrap())):e instanceof Jt?Jt.create(e.items.map(t=>Nr(t))):e}class qe extends Te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Se.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==se.object){const u=this._getOrReturnCtx(t);return ie(u,{code:H.invalid_type,expected:se.object,received:u.parsedType}),me}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||o.push(u);const c=[];for(const u of s){const l=i[u],d=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Xt(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){const u=this._def.unknownKeys;if(u==="passthrough")for(const l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&(ie(a,{code:H.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const l of o){const d=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Xt(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const l of c){const d=await l.key,f=await l.value;u.push({key:d,value:f,alwaysSet:l.alwaysSet})}return u}).then(u=>at.mergeObjectSync(r,u)):at.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new qe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,s,o;const c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=ce.errToObj(t).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new qe({...this._def,unknownKeys:"strip"})}passthrough(){return new qe({...this._def,unknownKeys:"passthrough"})}extend(t){return new qe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new qe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:pe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new qe({...this._def,catchall:t})}pick(t){const n={};return Se.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new qe({...this._def,shape:()=>n})}omit(t){const n={};return Se.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new qe({...this._def,shape:()=>n})}deepPartial(){return Nr(this)}partial(t){const n={};return Se.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new qe({...this._def,shape:()=>n})}required(t){const n={};return Se.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Gt;)i=i._def.innerType;n[r]=i}}),new qe({...this._def,shape:()=>n})}keyof(){return Gg(Se.objectKeys(this.shape))}}qe.create=(e,t)=>new qe({shape:()=>e,unknownKeys:"strip",catchall:vn.create(),typeName:pe.ZodObject,..._e(t)});qe.strictCreate=(e,t)=>new qe({shape:()=>e,unknownKeys:"strict",catchall:vn.create(),typeName:pe.ZodObject,..._e(t)});qe.lazycreate=(e,t)=>new qe({shape:e,unknownKeys:"strip",catchall:vn.create(),typeName:pe.ZodObject,..._e(t)});class fi extends Te{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const o of i)if(o.result.status==="valid")return o.result;for(const o of i)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=i.map(o=>new Tt(o.ctx.common.issues));return ie(n,{code:H.invalid_union,unionErrors:s}),me}if(n.common.async)return Promise.all(r.map(async i=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let i;const s=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},l=c._parseSync({data:n.data,path:n.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const o=s.map(c=>new Tt(c));return ie(n,{code:H.invalid_union,unionErrors:o}),me}}get options(){return this._def.options}}fi.create=(e,t)=>new fi({options:e,typeName:pe.ZodUnion,..._e(t)});const on=e=>e instanceof mi?on(e.schema):e instanceof Lt?on(e.innerType()):e instanceof gi?[e.value]:e instanceof Un?e.options:e instanceof vi?Se.objectValues(e.enum):e instanceof bi?on(e._def.innerType):e instanceof li?[void 0]:e instanceof di?[null]:e instanceof Gt?[void 0,...on(e.unwrap())]:e instanceof zn?[null,...on(e.unwrap())]:e instanceof Ed||e instanceof _i?on(e.unwrap()):e instanceof yi?on(e._def.innerType):[];class Vo extends Te{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return ie(n,{code:H.invalid_type,expected:se.object,received:n.parsedType}),me;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const s=on(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of s){if(a.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);a.set(o,i)}}return new Vo({typeName:pe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,..._e(r)})}}function vl(e,t){const n=Mn(e),r=Mn(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&r===se.object){const a=Se.objectKeys(t),i=Se.objectKeys(e).filter(o=>a.indexOf(o)!==-1),s={...e,...t};for(const o of i){const c=vl(e[o],t[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(n===se.array&&r===se.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const s=e[i],o=t[i],c=vl(s,o);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===se.date&&r===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class hi extends Te{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,s)=>{if(ml(i)||ml(s))return me;const o=vl(i.value,s.value);return o.valid?((gl(i)||gl(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(r,{code:H.invalid_intersection_types}),me)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}hi.create=(e,t,n)=>new hi({left:e,right:t,typeName:pe.ZodIntersection,..._e(n)});class Jt extends Te{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.array)return ie(r,{code:H.invalid_type,expected:se.array,received:r.parsedType}),me;if(r.data.length<this._def.items.length)return ie(r,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((s,o)=>{const c=this._def.items[o]||this._def.rest;return c?c._parse(new Xt(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>at.mergeArray(n,s)):at.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Jt({...this._def,rest:t})}}Jt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jt({items:e,typeName:pe.ZodTuple,rest:null,..._e(t)})};class pi extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.object)return ie(r,{code:H.invalid_type,expected:se.object,received:r.parsedType}),me;const a=[],i=this._def.keyType,s=this._def.valueType;for(const o in r.data)a.push({key:i._parse(new Xt(r,o,r.path,o)),value:s._parse(new Xt(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?at.mergeObjectAsync(n,a):at.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Te?new pi({keyType:t,valueType:n,typeName:pe.ZodRecord,..._e(r)}):new pi({keyType:Pt.create(),valueType:t,typeName:pe.ZodRecord,..._e(n)})}}class no extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.map)return ie(r,{code:H.invalid_type,expected:se.map,received:r.parsedType}),me;const a=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([o,c],u)=>({key:a._parse(new Xt(r,o,r.path,[u,"key"])),value:i._parse(new Xt(r,c,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const c of s){const u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return me;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(u.value,l.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const c of s){const u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return me;(u.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(u.value,l.value)}return{status:n.value,value:o}}}}no.create=(e,t,n)=>new no({valueType:t,keyType:e,typeName:pe.ZodMap,..._e(n)});class pr extends Te{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.set)return ie(r,{code:H.invalid_type,expected:se.set,received:r.parsedType}),me;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ie(r,{code:H.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ie(r,{code:H.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function s(c){const u=new Set;for(const l of c){if(l.status==="aborted")return me;l.status==="dirty"&&n.dirty(),u.add(l.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((c,u)=>i._parse(new Xt(r,c,r.path,u)));return r.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(t,n){return new pr({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new pr({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}pr.create=(e,t)=>new pr({valueType:e,minSize:null,maxSize:null,typeName:pe.ZodSet,..._e(t)});class Ur extends Te{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return ie(n,{code:H.invalid_type,expected:se.function,received:n.parsedType}),me;function r(o,c){return Js({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xs(),Jr].filter(u=>!!u),issueData:{code:H.invalid_arguments,argumentsError:c}})}function a(o,c){return Js({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xs(),Jr].filter(u=>!!u),issueData:{code:H.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof ea){const o=this;return ut(async function(...c){const u=new Tt([]),l=await o._def.args.parseAsync(c,i).catch(m=>{throw u.addIssue(r(c,m)),u}),d=await Reflect.apply(s,this,l);return await o._def.returns._def.type.parseAsync(d,i).catch(m=>{throw u.addIssue(a(d,m)),u})})}else{const o=this;return ut(function(...c){const u=o._def.args.safeParse(c,i);if(!u.success)throw new Tt([r(c,u.error)]);const l=Reflect.apply(s,this,u.data),d=o._def.returns.safeParse(l,i);if(!d.success)throw new Tt([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ur({...this._def,args:Jt.create(t).rest(cr.create())})}returns(t){return new Ur({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ur({args:t||Jt.create([]).rest(cr.create()),returns:n||cr.create(),typeName:pe.ZodFunction,..._e(r)})}}class mi extends Te{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}mi.create=(e,t)=>new mi({getter:e,typeName:pe.ZodLazy,..._e(t)});class gi extends Te{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}}gi.create=(e,t)=>new gi({value:e,typeName:pe.ZodLiteral,..._e(t)});function Gg(e,t){return new Un({values:e,typeName:pe.ZodEnum,..._e(t)})}class Un extends Te{constructor(){super(...arguments),Va.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:Se.joinValues(r),received:n.parsedType,code:H.invalid_type}),me}if(Qs(this,Va)||Hg(this,Va,new Set(this._def.values)),!Qs(this,Va).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:H.invalid_enum_value,options:r}),me}return ut(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Un.create(t,{...this._def,...n})}exclude(t,n=this._def){return Un.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Va=new WeakMap;Un.create=Gg;class vi extends Te{constructor(){super(...arguments),Ya.set(this,void 0)}_parse(t){const n=Se.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==se.string&&r.parsedType!==se.number){const a=Se.objectValues(n);return ie(r,{expected:Se.joinValues(a),received:r.parsedType,code:H.invalid_type}),me}if(Qs(this,Ya)||Hg(this,Ya,new Set(Se.getValidEnumValues(this._def.values))),!Qs(this,Ya).has(t.data)){const a=Se.objectValues(n);return ie(r,{received:r.data,code:H.invalid_enum_value,options:a}),me}return ut(t.data)}get enum(){return this._def.values}}Ya=new WeakMap;vi.create=(e,t)=>new vi({values:e,typeName:pe.ZodNativeEnum,..._e(t)});class ea extends Te{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return ie(n,{code:H.invalid_type,expected:se.promise,received:n.parsedType}),me;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return ut(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ea.create=(e,t)=>new ea({type:e,typeName:pe.ZodPromise,..._e(t)});class Lt extends Te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const s=a.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return me;const c=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return c.status==="aborted"?me:c.status==="dirty"||n.value==="dirty"?Dr(c.value):c});{if(n.value==="aborted")return me;const o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?me:o.status==="dirty"||n.value==="dirty"?Dr(o.value):o}}if(a.type==="refinement"){const s=o=>{const c=a.refinement(o,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?me:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?me:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(a.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!oi(s))return s;const o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>oi(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:n.value,value:o})):s);Se.assertNever(a)}}Lt.create=(e,t,n)=>new Lt({schema:e,typeName:pe.ZodEffects,effect:t,..._e(n)});Lt.createWithPreprocess=(e,t,n)=>new Lt({schema:t,effect:{type:"preprocess",transform:e},typeName:pe.ZodEffects,..._e(n)});class Gt extends Te{_parse(t){return this._getType(t)===se.undefined?ut(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gt.create=(e,t)=>new Gt({innerType:e,typeName:pe.ZodOptional,..._e(t)});class zn extends Te{_parse(t){return this._getType(t)===se.null?ut(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zn.create=(e,t)=>new zn({innerType:e,typeName:pe.ZodNullable,..._e(t)});class bi extends Te{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}bi.create=(e,t)=>new bi({innerType:e,typeName:pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._e(t)});class yi extends Te{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ci(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Tt(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Tt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yi.create=(e,t)=>new yi({innerType:e,typeName:pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._e(t)});class ro extends Te{_parse(t){if(this._getType(t)!==se.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:H.invalid_type,expected:se.nan,received:r.parsedType}),me}return{status:"valid",value:t.data}}}ro.create=e=>new ro({typeName:pe.ZodNaN,..._e(e)});const J6=Symbol("zod_brand");class Ed extends Te{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ui extends Te{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?me:i.status==="dirty"?(n.dirty(),Dr(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?me:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ui({in:t,out:n,typeName:pe.ZodPipeline})}}class _i extends Te{_parse(t){const n=this._def.innerType._parse(t),r=a=>(oi(a)&&(a.value=Object.freeze(a.value)),a);return ci(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}_i.create=(e,t)=>new _i({innerType:e,typeName:pe.ZodReadonly,..._e(t)});function Kg(e,t={},n){return e?Qr.create().superRefine((r,a)=>{var i,s;if(!e(r)){const o=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(s=(i=o.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):Qr.create()}const Q6={object:qe.lazycreate};var pe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(pe||(pe={}));const e5=(e,t={message:`Input not instance of ${e.name}`})=>Kg(n=>n instanceof e,t),Xg=Pt.create,Jg=Fn.create,t5=ro.create,n5=Ln.create,Qg=ui.create,r5=hr.create,a5=eo.create,i5=li.create,s5=di.create,o5=Qr.create,c5=cr.create,u5=vn.create,l5=to.create,d5=Dt.create,f5=qe.create,h5=qe.strictCreate,p5=fi.create,m5=Vo.create,g5=hi.create,v5=Jt.create,b5=pi.create,y5=no.create,_5=pr.create,x5=Ur.create,w5=mi.create,T5=gi.create,O5=Un.create,C5=vi.create,E5=ea.create,Ih=Lt.create,S5=Gt.create,k5=zn.create,R5=Lt.createWithPreprocess,A5=Ui.create,M5=()=>Xg().optional(),$5=()=>Jg().optional(),j5=()=>Qg().optional(),P5={string:e=>Pt.create({...e,coerce:!0}),number:e=>Fn.create({...e,coerce:!0}),boolean:e=>ui.create({...e,coerce:!0}),bigint:e=>Ln.create({...e,coerce:!0}),date:e=>hr.create({...e,coerce:!0})},I5=me;var Qe=Object.freeze({__proto__:null,defaultErrorMap:Jr,setErrorMap:I6,getErrorMap:Xs,makeIssue:Js,EMPTY_PATH:N6,addIssueToContext:ie,ParseStatus:at,INVALID:me,DIRTY:Dr,OK:ut,isAborted:ml,isDirty:gl,isValid:oi,isAsync:ci,get util(){return Se},get objectUtil(){return pl},ZodParsedType:se,getParsedType:Mn,ZodType:Te,datetimeRegex:Zg,ZodString:Pt,ZodNumber:Fn,ZodBigInt:Ln,ZodBoolean:ui,ZodDate:hr,ZodSymbol:eo,ZodUndefined:li,ZodNull:di,ZodAny:Qr,ZodUnknown:cr,ZodNever:vn,ZodVoid:to,ZodArray:Dt,ZodObject:qe,ZodUnion:fi,ZodDiscriminatedUnion:Vo,ZodIntersection:hi,ZodTuple:Jt,ZodRecord:pi,ZodMap:no,ZodSet:pr,ZodFunction:Ur,ZodLazy:mi,ZodLiteral:gi,ZodEnum:Un,ZodNativeEnum:vi,ZodPromise:ea,ZodEffects:Lt,ZodTransformer:Lt,ZodOptional:Gt,ZodNullable:zn,ZodDefault:bi,ZodCatch:yi,ZodNaN:ro,BRAND:J6,ZodBranded:Ed,ZodPipeline:Ui,ZodReadonly:_i,custom:Kg,Schema:Te,ZodSchema:Te,late:Q6,get ZodFirstPartyTypeKind(){return pe},coerce:P5,any:o5,array:d5,bigint:n5,boolean:Qg,date:r5,discriminatedUnion:m5,effect:Ih,enum:O5,function:x5,instanceof:e5,intersection:g5,lazy:w5,literal:T5,map:y5,nan:t5,nativeEnum:C5,never:u5,null:s5,nullable:k5,number:Jg,object:f5,oboolean:j5,onumber:$5,optional:S5,ostring:M5,pipeline:A5,preprocess:R5,promise:E5,record:b5,set:_5,strictObject:h5,string:Xg,symbol:a5,transformer:Ih,tuple:v5,undefined:i5,union:p5,unknown:c5,void:l5,NEVER:I5,ZodIssueCode:H,quotelessJson:P6,ZodError:Tt});const Yo=()=>{const{texts:{formValidation:e}}=p.useContext(Et),t=p.useCallback(v=>(v!=null&&v.useCoerce?Qe.coerce:Qe).string({invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),n=p.useCallback(v=>t(v).nullable().optional().transform(h=>h??null),[t]),r=p.useCallback(v=>{const h=(v==null?void 0:v.min)??Number.MIN_SAFE_INTEGER,w=(v==null?void 0:v.max)??Number.MAX_SAFE_INTEGER,x=(v!=null&&v.useCoerce?Qe.coerce:Qe).number({invalid_type_error:e.required,required_error:e.required}).min(h,e.lessThanMin(h)).max(w,e.moreThanMax(w));return x.transform(b=>b??null),x},[e]),a=p.useCallback(v=>r(v).nullable().optional().transform(h=>h??null),[r]),i=p.useCallback(v=>(v!=null&&v.useCoerce?Qe.coerce:Qe).boolean({invalid_type_error:e.required,required_error:e.required}).transform(h=>h??null),[e.required]),s=p.useCallback(v=>(v!=null&&v.useCoerce?Qe.coerce:Qe).string({invalid_type_error:e.required,required_error:e.required}).refine(Ig,{message:e.invalidDate}).transform(w=>w??null),[e.invalidDate,e.required]),o=p.useCallback(v=>s(v).nullable().transform(h=>h??null),[s]),c=p.useCallback((v,h)=>Qe.enum(v,{invalid_type_error:e.required,required_error:e.required}).transform(x=>x??null),[e.required]),u=p.useCallback((v,h)=>c(v,h).nullable().transform(w=>w??null),[c]),l=p.useCallback(v=>Qe.object({id:a({useCoerce:!0})}).nullable().transform(w=>w??null),[a]),d=p.useCallback(v=>Qe.object({id:r()}).transform(w=>w??null),[r]),f=p.useCallback(v=>Qe.object({id:n({useCoerce:!0})}).nullable().transform(w=>w??null),[n]),m=p.useCallback(v=>Qe.object({id:t()}).transform(w=>w??null),[t]),g=p.useCallback(({required:v,multiple:h,maxFileSize:w})=>Qe.any().transform(b=>Array.from(b??[])).refine(b=>!v||(b==null?void 0:b.length)>0,"File is required.").refine(b=>h||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=w),`Maximum file size is ${Wo(w)}.`).transform(b=>(h?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:o,zDateRequired:s,zEnum:u,zEnumRequired:c,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:m,zFile:g}},ev=(e,t,n)=>p.useMemo(()=>n||e!=="date"&&e!=="datetime-local"||t?e:"text",[t,e,n]),Sd=p.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),tv=p.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),N5="_button_1wjon_1",D5="_filled_1wjon_7",F5="_sm_1wjon_13",L5="_md_1wjon_18",U5="_lg_1wjon_23",jr={button:N5,filled:D5,sm:F5,md:L5,lg:U5},mr=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(Vl.Link,{to:i.href??"/",className:ae(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,jr.button,jr[e],jr[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:ae(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,jr.button,jr[e],jr[n]),...i,children:a}):null,z5="_button_1r3i0_1",bl={button:z5},kd=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(Vl.Link,{to:a.href??"/",className:ae(`luminus-context-button btn text-${e} ${n??""}`,bl.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:ae(`luminus-context-button btn text-${e} ${n??""}`,bl.button),...a,children:[t,r]}):null,B5="_icon-button_15e26_1",W5="_sm_15e26_14",q5="_md_15e26_23",H5="_lg_15e26_32",hs={"icon-button":"_icon-button_15e26_1",iconButton:B5,sm:W5,md:q5,lg:H5},Zo=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(Vl.Link,{to:i.href??"/",className:ae(`luminus-icon-button btn text-${t} ${a??""}`,hs.iconButton,hs[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:ae(`luminus-icon-button btn text-${t} ${a??""}`,hs.iconButton,hs[n]),...i,children:r}):null,V5="_h1_14r4v_1",Y5="_h3_14r4v_8",Z5="_h6_14r4v_15",G5="_subtitle_14r4v_22",K5="_body_14r4v_29",X5="_body2_14r4v_36",J5="_caption_14r4v_43",Q5="_form-label_14r4v_50",En={h1:V5,h3:Y5,h6:Z5,subtitle:G5,body:K5,body2:X5,caption:J5,"form-label":"_form-label_14r4v_50",formLabel:Q5},eT=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:ae("luminus-text-primary luminus-h1",En.h1,t),children:n});case"h3":return y.jsx("h3",{className:ae("luminus-text luminus-h3",En.h3,t),children:n});case"h6":return y.jsx("h6",{className:ae("luminus-text luminus-h6",En.h6,t),children:n});case"subtitle":return y.jsx("div",{className:ae("luminus-text luminus-subtitle",En.subtitle,t),children:n});case"body":return y.jsx("div",{className:ae("luminus-text luminus-body",En.body,t),children:n});case"body2":return y.jsx("div",{className:ae("luminus-text luminus-body2",En.body2,t),children:n});case"caption":return y.jsx("div",{className:ae("luminus-text-muted luminus-caption",En.caption,t),children:n});case"form-label":return y.jsx("div",{className:ae("luminus-text luminus-form-label",En.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},nv=({variant:e,className:t,children:n})=>y.jsx(eT,{variant:e,className:t,children:n}),tT="_avatar-icon_1axl6_1",nT={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:tT},rv=({name:e,fontSize:t,size:n})=>{const r=a=>{let i=0,s;for(s=0;s<a.length;s+=1)i=a.charCodeAt(s)+((i<<5)-i);let o="#";for(s=0;s<3;s+=1){const c=i>>s*8&255;o+=`00${c.toString(16)}`.slice(-2)}return o};return y.jsx(G0,{placement:"bottom",overlay:y.jsx(md,{children:e}),children:y.jsx("div",{className:ae("luminus-avatar-icon",nT.avatarIcon),style:{backgroundColor:r(e),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},rT="_floating-label_19xda_1",aT="_without-label_19xda_21",iT="_floating-label-check_19xda_184",xu={"floating-label":"_floating-label_19xda_1",floatingLabel:rT,"without-label":"_without-label_19xda_21",withoutLabel:aT,"floating-label-check":"_floating-label-check_19xda_184",floatingLabelCheck:iT},av=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:s,...o},c)=>s?y.jsx("div",{className:ae("luminus-floating-label-check",xu.floatingLabelCheck),children:t}):y.jsx(ud,{ref:c,label:o.withoutLabel?"":o.label,hidden:e??!1,className:ae(`luminus-floating-label ${n??""}`,xu.floatingLabel,{[i??""]:i},{[xu.withoutLabel]:o.withoutLabel}),children:t}));av.displayName="FloatingLabelInput";const sT="_row-label-input_13ci8_1",oT="_label_13ci8_4",cT="_input-container_13ci8_9",uT="_invalid-feedback_13ci8_101",lT="_keep-check-label_13ci8_129",dT="_is-invalid_13ci8_157",Pa={"row-label-input":"_row-label-input_13ci8_1",rowLabelInput:sT,label:oT,"input-container":"_input-container_13ci8_9",inputContainer:cT,"invalid-feedback":"_invalid-feedback_13ci8_101",invalidFeedback:uT,"keep-check-label":"_keep-check-label_13ci8_129",keepCheckLabel:lT,"is-invalid":"_is-invalid_13ci8_157",isInvalid:dT},zi=p.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:s,...o},c)=>y.jsxs("div",{ref:c,className:ae("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Pa.isInvalid]:r},{[n??""]:n},{"d-none":e},Pa.rowLabelInput),children:[!o.withoutLabel&&y.jsx("label",{className:ae("label col-6",{"col-12":i},Pa.label),children:y.jsx(nv,{variant:"form-label",className:r?"text-danger":"",children:o.label})}),y.jsx("div",{className:ae("input-container",Pa.inputContainer,{"col-6":!o.withoutLabel&&!i},{"col-12":o.withoutLabel||i},{[Pa.keepCheckLabel]:a},{[s??""]:s}),children:t})]}));zi.displayName="RowLabelInput";const iv=p.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));iv.displayName="NoInputContainer";function fT(e){return Re({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function hT(e){return Re({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function pT(e){return Re({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function mT(e){return Re({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const Rd=({InputContainer:e=zi,formField:t,label:n,resetsFields:r,options:a,isNumber:i,size:s,showClearIcon:o,clearValue:c,noSortOptions:u,required:l,hidden:d,disabled:f,withoutLabel:m,className:g})=>{const{register:v,formState:h,getValues:w,setValue:x,watch:b}=nt.useFormContext(),[T,_]=p.useState(void 0),[S,$]=p.useState(!1),D=p.useMemo(()=>a.sort((k,Y)=>u?0:(k.name??"").localeCompare(Y.name??"")),[a,u]),I=p.useCallback(()=>{const k=c??null;i?x(t,k===null?null:Number(k),{shouldDirty:!0,shouldValidate:S}):x(t,(k==null?void 0:k.toString())??"",{shouldDirty:!0,shouldValidate:S})},[c,i,x,t,S]);p.useEffect(()=>{const k=t.split(".");let Y=h.errors;k.forEach(A=>{Y!==void 0&&(Y=Y[A])}),_(Y)},[h,t]),p.useEffect(()=>{x(t,w(t))},[D,t,w,x]),p.useEffect(()=>{h.isSubmitted&&$(!0)},[h]);const M=T!==void 0;return y.jsx(y.Fragment,{children:y.jsxs(e,{label:`${n}${l?" *":""}`,hidden:d,withoutLabel:m,isInvalid:M,className:g,children:[y.jsxs(xr.Select,{size:s,...v(t,{setValueAs:k=>i?k==null||k===""?null:parseInt(k,10):k==null||k===""?null:k,onChange:()=>{r&&r.forEach(k=>x(k,null,{shouldDirty:!0,shouldValidate:S}))}}),isInvalid:M,hidden:d,disabled:f,className:"w-100",children:[y.jsx("option",{value:""}),D.map(k=>y.jsx("option",{value:k.id??"",children:k.name},k.id))]}),o&&b(t)&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(Zo,{color:"secondary",size:"sm",onClick:I,children:y.jsx(Io,{})})}),T&&y.jsx(Go,{message:T.message})]})})},Ad=({InputContainer:e=zi,formField:t,label:n,resetsFields:r,size:a,showClearIcon:i,clearValue:s,required:o,hidden:c,disabled:u,rows:l,withoutLabel:d,customFormControlProps:f,className:m})=>{const{register:g,formState:v,setValue:h,watch:w}=nt.useFormContext(),[x,b]=p.useState(void 0),[T,_]=p.useState(!1),S=p.useCallback(()=>{const I=s??null;h(t,(I==null?void 0:I.toString())??"",{shouldDirty:!0,shouldValidate:T})},[s,h,t,T]),$=p.useCallback(()=>{const I=t.split(".");let M=v.errors;I.forEach(k=>{M!==void 0&&(M=M[k])}),b(M)},[v,t]);p.useEffect(()=>{$()},[$]),p.useEffect(()=>{v.isSubmitted&&_(!0)},[v]);const D=x!==void 0;return y.jsxs(e,{label:`${n}${o?" *":""}`,hidden:c,withoutLabel:d,isInvalid:D,className:m,isForTextAreaInput:!0,children:[y.jsx(xr.Control,{as:"textarea",size:a,...g(t,{setValueAs:I=>I==null||I===""?null:I,onChange:()=>{r&&r.forEach(I=>h(I,null,{shouldDirty:!0,shouldValidate:T}))}}),isInvalid:D,hidden:c,disabled:u,rows:l??2,className:"w-100",...f}),i&&w(t)&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(Zo,{color:"secondary",size:"sm",onClick:S,children:y.jsx(Io,{})})}),x&&y.jsx(Go,{message:x.message})]})},xi=({InputContainer:e=zi,type:t,formField:n,label:r,placeholder:a,size:i,resetsFields:s,showClearIcon:o,clearValue:c,required:u,hidden:l,disabled:d,withoutLabel:f,list:m,step:g,CustomOnChangeComponent:v,noSelectOnFocus:h,className:w})=>{const{register:x,formState:b,setValue:T,watch:_}=nt.useFormContext(),[S,$]=p.useState(void 0),[D,I]=p.useState(!1),M=p.useCallback(()=>{const L=c??null;t==="number"?T(n,L!==null?Number(L):null,{shouldDirty:!0,shouldValidate:D}):T(n,(L==null?void 0:L.toString())??"",{shouldDirty:!0,shouldValidate:D})},[c,t,T,n,D]),k=p.useCallback(()=>{const L=n.split(".");let G=b.errors;L.forEach(Z=>{G!==void 0&&(G=G[Z])}),$(G)},[b,n]);p.useEffect(()=>{k()},[k]),p.useEffect(()=>{b.isSubmitted&&I(!0)},[b]);const Y=S!==void 0,[A,R]=p.useState(!1),F=_(n),B=ev(t,F??null,A);return y.jsxs(e,{label:`${r}${u?" *":""}`,hidden:l,withoutLabel:f,isInvalid:Y,className:w,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(xr.Control,{type:B,placeholder:a??r,size:i,onFocus:L=>{R(!0),!h&&L.target.select()},...x(n,{setValueAs:L=>t==="number"?L==null||L===""?null:Number(L):L==null||L===""?null:L,onChange:()=>{s&&s.forEach(L=>T(L,null,{shouldDirty:!0,shouldValidate:D}))},onBlur:()=>R(!1)}),isInvalid:Y,hidden:l,disabled:d,list:m,className:"w-100",step:g}),v&&y.jsx("div",{className:"custom-picker-button",children:v})]}),o&&_(n)&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(Zo,{color:"secondary",size:"sm",onClick:M,children:y.jsx(Io,{})})}),S&&y.jsx(Go,{message:S.message})]})},gT="_button_qhwih_1",vT={button:gT},bT=p.forwardRef(({color:e="primary",icon:t=y.jsx(Ow,{size:21}),text:n,onClick:r,className:a,children:i,...s},o)=>y.jsxs("button",{type:"button",ref:o,onClick:c=>{c.preventDefault(),r(c)},"aria-label":"dropdown toggle",className:ae(`btn luminus-context-button text-${e} ${a??""}`,vT.button),...s,children:[t,n]})),yT=p.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(rv,{name:e}),n]})),_T="_wrapper_1j6w2_1",xT="_controls_1j6w2_16",wT="_explorerWindow_1j6w2_20",TT="_folderList_1j6w2_28",OT="_fileList_1j6w2_35",CT="_dndText_1j6w2_61",Gn={wrapper:_T,controls:xT,explorerWindow:wT,folderList:TT,fileList:OT,dndText:CT},it=p.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),ET="_folderIcon_nez54_1",ST="_defaultFolder_nez54_6",Nh={folderIcon:ET,defaultFolder:ST},sv=({isActive:e,isDefault:t,folderName:n})=>{const{ProjectIconComponent:r}=p.useContext(Et);return y.jsxs(y.Fragment,{children:[y.jsx(r,{icon:`folder${e?"-filled":""}`,className:ae("d-inline-block",t?Nh.defaultFolder:"text-primary"),iconProps:{className:Nh.folderIcon}}),y.jsx("span",{className:e?"fw-bold":"",children:n})," "]})},kT=({customText:e})=>{const{reducer:[t,n]}=p.useContext(it),r=p.useCallback(()=>{n({type:"select-folder",folderId:"root"})},[n]);return y.jsx("li",{children:y.jsx("button",{onClick:r,type:"button",className:ae("border-0 bg-transparent"),children:y.jsx(sv,{folderName:e??"root",isActive:t.activeFolder==="root",isDefault:!0})})})};function RT(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const ov=()=>{const e=Ho(),{startLoading:t,stopLoading:n}=p.useContext(Do),{reducer:[,r]}=p.useContext(it),a=p.useCallback(async(s,o)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:s,name:o}),r({type:"update-folders",folderIds:[s],newProperties:{name:o}})}finally{n("documents-renameFolder")}},[e,r,t,n]),i=p.useCallback(async s=>{t("documentsFolderCreate");try{const o=await e.post("/documents/folder",s);r({type:"create-folder",folderData:s,folderId:o.data.id,isOnlyRead:o.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:a,createFolder:i}},Dh=(e,t,n)=>{if(e&&"reportValidity"in e){const r=nt.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cv=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Dh(r.ref,n,e):r.refs&&r.refs.forEach(a=>Dh(a,n,e))}},AT=(e,t)=>{t.shouldUseNativeValidation&&cv(e,t);const n={};for(const r in e){const a=nt.get(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(MT(t.names||Object.keys(e),r)){const s=Object.assign({},nt.get(n,r));nt.set(s,"root",i),nt.set(n,r,s)}else nt.set(n,r,i)}return n},MT=(e,t)=>e.some(n=>n.startsWith(t+"."));var $T=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[s]={message:o.message,type:o.code}}else n[s]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(d){return e.push(d)})}),t){var c=n[s].types,u=c&&c[r.code];n[s]=nt.appendErrors(s,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},Md=function(e,t,n){return n===void 0&&(n={}),function(r,a,i){try{return Promise.resolve(function(s,o){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&cv({},i),{errors:{},values:n.raw?r:u}})}catch(u){return o(u)}return c&&c.then?c.then(void 0,o):c}(0,function(s){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(s))return{values:{},errors:AT($T(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}}};const jT=()=>{const{reducer:[e],entityId:t,entityType:n}=p.useContext(it),{zNumberRequired:r,zStringRequired:a}=Yo(),{createFolder:i}=ov(),s=Qe.object({name:a(),documentTypeId:r()}),o=nt.useForm({resolver:Md(s)}),c=p.useCallback(async u=>{const l={...u,dbObjectId:t.toString(),entity:n,parentFolderId:e.activeFolder==="root"?null:e.activeFolder};await i(l)},[i,t,n,e.activeFolder]);return{formMethods:o,onSubmit:c}},PT=({handleClose:e})=>{var i;const{texts:{documents:t}}=p.useContext(Et),{reducer:[n]}=p.useContext(it);if(RT(n),n.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:r,formMethods:a}=jT();return y.jsx(y.Fragment,{children:y.jsx(nt.FormProvider,{...a,children:y.jsxs(xr,{onSubmit:a.handleSubmit(r),children:[y.jsx(ht.Header,{closeButton:!0,children:y.jsx(ht.Title,{children:t.createFolderInFolder(((i=n.foldersMap.get(n.chosenFolderId))==null?void 0:i.name)??"Root")})}),y.jsxs(ht.Body,{children:[y.jsx(xi,{formField:"name",type:"text",label:t.name,required:!0}),y.jsx(Rd,{options:n.documentTypes,formField:"documentTypeId",label:t.folderType,isNumber:!0,required:!0})]}),y.jsxs(ht.Footer,{children:[y.jsx(mr,{onClick:e,variant:"outlined",color:"secondary",children:t.cancel}),y.jsx(mr,{type:"submit",children:t.createFolder})]})]})})})},uv=100,IT=(e,t)=>{const n=Ho(),{startLoading:r,stopLoading:a}=p.useContext(Do),{loadDocuments:i}=p.useContext(it),{zStringRequired:s,zString:o,zNumberRequired:c,zDateRequired:u}=Yo(),l=Qe.object({name:s(),description:o(),validToDate:u(),documentTypeId:c()}),d=nt.useForm({resolver:Md(l),defaultValues:{...e,validToDate:qo(e.validToDate)}}),f=p.useCallback(async m=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,m),await i(),t()}finally{a("documents-updateProperties")}},[n,e.id,t,i,r,a]);return{formMethods:d,onSubmit:f}},NT=({handleClose:e,file:t})=>{const{texts:{documents:n}}=p.useContext(Et),{reducer:[r]}=p.useContext(it),{formMethods:a,onSubmit:i}=IT(t,e);return y.jsxs(y.Fragment,{children:[y.jsx(ht.Header,{closeButton:!0,children:y.jsx(ht.Title,{children:n.editFileProperties})}),y.jsx(nt.FormProvider,{...a,children:y.jsxs(xr,{onSubmit:a.handleSubmit(i),children:[y.jsxs(ht.Body,{children:[y.jsx(xi,{formField:"name",type:"text",label:n.name,required:!0}),y.jsx(xi,{formField:"validToDate",type:"date",label:n.validSince,required:!0}),y.jsx(Rd,{formField:"documentTypeId",label:n.category,options:r.documentTypes,isNumber:!0,required:!0}),y.jsx(Ad,{formField:"description",label:n.description,customFormControlProps:{maxLength:uv}})]}),y.jsxs(ht.Footer,{children:[y.jsx(mr,{onClick:e,color:"secondary",variant:"outlined",children:n.cancel}),y.jsx(mr,{type:"submit",children:n.save})]})]})})]})},DT=({handleClose:e})=>{const{reducer:[t]}=p.useContext(it),n=p.useMemo(()=>{if(t.markedFiles.length===1)return t.constantFiles.find(r=>r.id===t.markedFiles[0])},[t.constantFiles,t.markedFiles]);return n===void 0?(e(),y.jsx(y.Fragment,{})):y.jsx(NT,{file:n,handleClose:e})},FT=()=>{const{reducer:[e,t]}=p.useContext(it),n=p.useCallback(()=>{t({type:"close-modal"})},[t]),r=p.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(PT,{handleClose:n});case"edit-file-properties":return y.jsx(DT,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(ht,{show:e.state==="openned-modal",onHide:n,children:r})},Fh="documents_drag_image_element",ps="drop-container-highlight-class",Lh="data-drop-container-id",Uh="data-draggable-id",LT=()=>{const e=document.getElementById(Fh);if(e!==null)return e;const t=document.createElement("div");return t.id=Fh,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},$d=()=>{const{apiActions:{moveDocuments:e},reducer:[t]}=p.useContext(it),n=p.useCallback(u=>{var l;if(t.markedFiles.length>0){const d=LT();d.innerHTML=t.markedFiles.length.toString(),u.dataTransfer.setDragImage(d,0,0),u.dataTransfer.clearData(),u.dataTransfer.setData("application/json",JSON.stringify(t.markedFiles)),u.dataTransfer.dropEffect="none",u.dataTransfer.effectAllowed="move"}else u.dataTransfer.setData("application/json",JSON.stringify([parseInt(((l=u.currentTarget.attributes.getNamedItem(Uh))==null?void 0:l.nodeValue)??"",10)])),u.dataTransfer.dropEffect="none",u.dataTransfer.effectAllowed="move"},[t.markedFiles]),r=p.useCallback(u=>({[Uh]:u,draggable:t.markedFiles.length===0||t.markedFiles.includes(u),onDragStart:n}),[n,t.markedFiles]),a=p.useCallback(u=>l=>{var m;l.preventDefault(),l.stopPropagation(),l.currentTarget.classList.remove(ps);const d=l.dataTransfer.files;if(u&&d&&d.length>0){u(d);return}const f=l.dataTransfer.getData("application/json");if(f){const g=JSON.parse(f),v=parseInt(((m=l.currentTarget.attributes.getNamedItem(Lh))==null?void 0:m.value)??"",10);e(v,g)}},[e]),i=p.useCallback(()=>u=>{u.preventDefault(),u.stopPropagation()},[]),s=p.useCallback(u=>l=>{l.preventDefault(),l.stopPropagation(),l.dataTransfer.types.includes("Files")?(l.dataTransfer.dropEffect="copy",l.currentTarget.classList.add(ps)):!u&&l.dataTransfer.types.includes("application/json")?(l.dataTransfer.dropEffect="move",l.currentTarget.classList.add(ps)):l.dataTransfer.dropEffect="none"},[]),o=p.useCallback(u=>{u.preventDefault(),u.stopPropagation(),u.target===u.currentTarget&&(u.dataTransfer.dropEffect="none",u.currentTarget.classList.remove(ps))},[]),c=p.useCallback((u,l)=>({onDrop:a(l==null?void 0:l.onFilesDrop),onDragOver:i(),onDragEnter:s(l==null?void 0:l.ignoreInner),onDragLeave:o,[Lh]:u}),[a,i,s,o]);return{getDraggableProps:r,getDropProps:c}};function lv(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const a=e.childrenIds[r];if(a===t)return!0;const i=n.get(a);if(i&&lv(i,t,n))return!0}return!1}function UT(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}const zT=()=>{const{zString:e,zStringRequired:t,zNumberRequired:n}=Yo();return{formSchema:p.useMemo(()=>Qe.object({validTo:t(),description:e(),documentTypeId:n()}),[n,e,t])}},jd=({handleClose:e,files:t,targetFolderId:n})=>{var f;const{texts:{documents:r}}=p.useContext(Et),{reducer:[a],apiActions:{uploadFiles:i}}=p.useContext(it),s=p.useMemo(()=>[...t],[t]),o=p.useMemo(()=>n??a.activeFolder,[a.activeFolder,n]),c=p.useMemo(()=>o==="root"?void 0:a.foldersMap.get(o),[o,a.foldersMap]),{formSchema:u}=zT(),l=nt.useForm({resolver:Md(u),defaultValues:{validTo:qo(new Date().toISOString()),documentTypeId:(f=a.documentTypes.find(m=>{var g;return m.name===((g=a.foldersMap.get(o))==null?void 0:g.defaultDocType)}))==null?void 0:f.id}}),d=p.useCallback(async m=>{o!=="root"&&(await i(t,{folderId:o,...m}),e())},[t,e,o,i]);return y.jsxs(ht,{show:!0,onHide:e,children:[y.jsx(ht.Header,{closeButton:!0,children:y.jsxs("div",{children:[r.uploadFilesPrompt(t.length,c.name),y.jsx("ul",{children:s.map((m,g)=>y.jsxs("li",{children:[m.name," - ",Wo(m.size)]},`${m.name}-${g}`))})]})}),y.jsx(nt.FormProvider,{...l,children:y.jsxs(xr,{onSubmit:l.handleSubmit(d),children:[y.jsxs(ht.Body,{children:[y.jsx(Rd,{formField:"documentTypeId",label:r.documentType,options:a.documentTypes,isNumber:!0,required:!0}),y.jsx(xi,{formField:"validTo",label:r.validSince,type:"date",required:!0}),y.jsx(Ad,{formField:"description",label:r.description,customFormControlProps:{maxLength:uv}})]}),y.jsxs(ht.Footer,{children:[y.jsx(mr,{variant:"outlined",color:"secondary",onClick:e,children:r.cancel}),y.jsx(mr,{type:"submit",children:r.upload})]})]})})]})},BT="_folder_5v2vd_1",WT="_collapseArrowDiv_5v2vd_8",qT="_button_5v2vd_20",HT="_nestedList_5v2vd_24",VT="_numberOfFiles_5v2vd_31",YT="_collapseArrow_5v2vd_8",Kn={folder:BT,collapseArrowDiv:WT,button:qT,nestedList:HT,numberOfFiles:VT,collapseArrow:YT},dv=({dirId:e})=>{const{ProjectIconComponent:t}=p.useContext(Et),{reducer:[n,r]}=p.useContext(it),{getDropProps:a}=$d(),[i,s]=p.useState(null),[o,c]=p.useState(!0),u=p.useMemo(()=>{const g=n.foldersMap.get(e);if(g===void 0)throw new Error(`tried to get dir with id ${e}`);return g},[e,n.foldersMap]),l=p.useCallback(()=>{n.activeFolder!=="root"&&lv(u,n.activeFolder,n.foldersMap)&&r({type:"select-folder",folderId:e}),c(!0)},[e,u,r,n.activeFolder,n.foldersMap]),d=p.useMemo(()=>u.childrenIds.length>0,[u.childrenIds.length]),f=p.useCallback(()=>{r({type:"select-folder",folderId:e})},[e,r]),m=p.useMemo(()=>n.filteredFiles.filter(g=>g.folderId===e&&g.archive===!1).length,[e,n.filteredFiles]);return y.jsxs(y.Fragment,{children:[y.jsxs("li",{className:Kn.folder,children:[y.jsx("div",{className:Kn.collapseArrowDiv,children:d?o?y.jsx("button",{onClick:()=>c(!1),type:"button",children:y.jsx(t,{icon:"chevron-right",iconProps:{className:Kn.collapseArrow}})}):y.jsx("button",{onClick:l,type:"button",children:y.jsx(t,{icon:"chevron-down",iconProps:{className:Kn.collapseArrow}})}):null}),y.jsxs("button",{className:ae(Kn.button),onClick:f,type:"button",...u.onlyRead?{}:a(e,{onFilesDrop:g=>s(g)}),children:[y.jsx(sv,{isDefault:u.isDefault,folderName:u.name,isActive:e===n.activeFolder}),m>0?y.jsxs("span",{className:Kn.numberOfFiles,children:["[",m,"]"]}):void 0]}),d?o?null:y.jsx("ul",{className:Kn.nestedList,children:u==null?void 0:u.childrenIds.map(g=>y.jsx(dv,{dirId:g},g))}):void 0]}),i!==null?y.jsx(jd,{files:i,handleClose:()=>s(null),targetFolderId:e}):null]})},ZT="_wrapper_1th2u_1",GT="_downloadButton_1th2u_9",fv={wrapper:ZT,downloadButton:GT};function KT(e){return Re({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(e)}function XT(e){return Re({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function JT(e){return Re({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23 1.5q.41 0 .7.3.3.29.3.7v19q0 .41-.3.7-.29.3-.7.3H7q-.41 0-.7-.3-.3-.29-.3-.7V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h5V2.5q0-.41.3-.7.29-.3.7-.3zM6 13.28l1.42 2.66h2.14l-2.38-3.87 2.34-3.8H7.46l-1.3 2.4-.05.08-.04.09-.64-1.28-.66-1.29H2.59l2.27 3.82-2.48 3.85h2.16zM14.25 21v-3H7.5v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3H7.5v3zm8.25 15v-3h-6.75v3zm0-4.5v-3.75h-6.75v3.75zm0-5.25V7.5h-6.75v3.75zm0-5.25V3h-6.75v3Z"},child:[]}]})(e)}function QT(e){return Re({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.004 1.5q.41 0 .703.293t.293.703v19.008q0 .41-.293.703t-.703.293H6.996q-.41 0-.703-.293T6 21.504V18H.996q-.41 0-.703-.293T0 17.004V6.996q0-.41.293-.703T.996 6H6V2.496q0-.41.293-.703t.703-.293zM6.035 11.203l1.442 4.735h1.64l1.57-7.876H9.036l-.937 4.653-1.325-4.5H5.38l-1.406 4.523-.938-4.675H1.312l1.57 7.874h1.641zM22.5 21v-3h-15v3zm0-4.5v-3.75H12v3.75zm0-5.25V7.5H12v3.75zm0-5.25V3h-15v3Z"},child:[]}]})(e)}const e8="_excel_18ggp_1",t8="_word_18ggp_5",n8="_pdf_18ggp_9",r8="_image_18ggp_13",ms={excel:e8,word:t8,pdf:n8,image:r8},hv=({fileExtension:e,className:t,...n})=>{switch(e==null?void 0:e.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":return y.jsx("span",{className:ae(t,ms.image),children:y.jsx(XT,{...n})});case"XLS":case"XLSX":case"CSV":return y.jsx(JT,{className:ae(t,ms.excel),...n});case"DOC":case"DOCM":case"DOCX":return y.jsx(QT,{className:ae(t,ms.word),...n});case"PDF":return y.jsx(mT,{className:ae(t,ms.pdf),...n});default:return y.jsx(KT,{})}},a8=()=>{const{ProjectIconComponent:e,texts:{documents:t}}=p.useContext(Et),{apiActions:{downloadFile:n},reducer:[r]}=p.useContext(it),a=p.useMemo(()=>r.activeFolder==="root",[r.activeFolder]);return{columns:p.useMemo(()=>[{fieldName:"id",caption:"id",type:"number",isVisible:!1},...a?[{fieldName:"folderName",caption:t.folder,type:"string"}]:[],{fieldName:"--icon",caption:"",type:"string",valueFormat:s=>y.jsx(hv,{fileExtension:s.row.original.fileExtension}),width:36,align:"center",filterType:"none",noSort:!0},{fieldName:"name",caption:t.name,type:"string"},{fieldName:"description",caption:t.description,type:"string"},{fieldName:"fileExtension",caption:t.fileExtension,type:"string",filterType:"select",width:50},{fieldName:"--downloadButton",caption:"",type:"number",filterType:"none",width:38,align:"center",noSort:!0,valueFormat:s=>y.jsx(kd,{className:fv.downloadButton,onClick:()=>n(s.row.original.id,!0),children:y.jsx(e,{icon:"file-download"})})},{fieldName:"documentTypeName",caption:t.documentType,type:"string",filterType:"select"},{fieldName:"validToDate",caption:t.validSince,type:"date"},{fieldName:"size",caption:t.size,type:"number",valueFormat:({cell:{value:s}})=>s!==void 0?Wo(s*1024*1024):"",filterType:"none"},{fieldName:"archive",caption:t.archived,type:"boolean",filterType:"select",valueFormat:({cell:{value:s}})=>s?t.yes[0]:t.no[0]}],[e,t.archived,t.description,t.documentType,t.fileExtension,t.folder,t.name,t.no,t.size,t.validSince,t.yes,n,a])}},i8=({BnfTableComponent:e,tableIdentifier:t})=>{const{reducer:[n,r]}=p.useContext(it),{columns:a}=a8(),i=p.useCallback(f=>{r({type:"mark-files-by-action",setStateAction:f})},[r]),s=p.useMemo(()=>n.activeFolder==="root",[n.activeFolder]),o=p.useMemo(()=>{var f;return n.activeFolder==="root"?!1:((f=n.foldersMap.get(n.activeFolder))==null?void 0:f.onlyRead)??!1},[n.activeFolder,n.foldersMap]),c=p.useMemo(()=>({enabled:!s,idField:"id",selectedRows:n.markedFiles,setSelectedRows:i}),[s,i,n.markedFiles]),u=p.useMemo(()=>n.activeFolder==="root"?n.filteredFiles:n.filteredFiles.filter(f=>f.folderId===n.activeFolder),[n.activeFolder,n.filteredFiles]),{getDraggableProps:l}=$d(),d=p.useCallback(f=>o?{}:l(f.id),[l,o]);return y.jsx("div",{className:ae(fv.wrapper),children:y.jsx(e,{data:u,columnsDef:a,rowSelection:c,useScrollableContainer:!0,getRowProps:d,defaultConfig:{defaultFilters:[{id:"archive",value:"false"}]},tableId:t,searchStatePrefix:"docs",useSearchState:!0,hideBottomBar:!0},n.activeFolder)})},s8="_wrapper_1q562_1",o8="_divButtons_1q562_10",wu={wrapper:s8,divButtons:o8},c8="_wrapper_1bpdd_1",u8="_fileInput_1bpdd_5",zh={wrapper:c8,fileInput:u8},l8=({entityId:e,entityType:t,children:n,disabled:r})=>{const a=p.useRef(null),[i,s]=p.useState(null),{reducer:[o]}=p.useContext(it),c=f=>{var m;(((m=f.target.files)==null?void 0:m.length)??0)>0&&s(f.target.files)},u=p.useCallback(()=>{s(null),a.current&&(a.current.value="")},[]),l=p.useMemo(()=>`documents-upload-${t}-${e}`,[e,t]),d=p.useMemo(()=>r||o.activeFolder==="root",[r,o.activeFolder]);return y.jsxs("div",{className:zh.wrapper,children:[y.jsx("label",{htmlFor:l,className:ae("btn btn-context luminus-context-button",d?"disabled":void 0),children:n}),y.jsx("input",{id:l,type:"file",multiple:!0,onChange:c,className:zh.fileInput,ref:a,disabled:d}),i!==null?y.jsx(jd,{handleClose:u,files:i}):void 0]})},qt=({children:e,onClick:t,className:n,disabled:r=!1})=>y.jsx(kd,{onClick:t,className:n,disabled:r,children:e}),d8=({className:e,entityId:t,entityType:n})=>{var $,D;const{texts:{documents:r}}=p.useContext(Et),{prompt:a}=tg(),{confirm:i}=Wg(),{apiActions:s,reducer:[o,c]}=p.useContext(it),{deleteFiles:u,renameFiles:l,downloadAsZip:d,archivateFiles:f,deleteDirectory:m}=s,{renameFolder:g}=ov(),v=p.useMemo(()=>o.markedFiles.length===0,[o.markedFiles.length]),h=p.useMemo(()=>o.markedFiles.length===1,[o.markedFiles.length]),w=p.useCallback(async()=>{if(o.activeFolder==="root")return;const I=await a(r.enterNewFolderName,{input:"input"});I!==null&&g(o.activeFolder,I)},[r.enterNewFolderName,a,g,o.activeFolder]),x=p.useCallback(async()=>{if(o.activeFolder==="root")return;const I=await a(r.enterNewFileName,{input:"input"});I!==null&&l(I)},[r.enterNewFileName,a,l,o.activeFolder]),b=p.useMemo(()=>o.activeFolder==="root",[o.activeFolder]),T=p.useMemo(()=>{var I;return o.activeFolder==="root"?!1:((I=o.foldersMap.get(o.activeFolder))==null?void 0:I.onlyRead)??!1},[o.activeFolder,o.foldersMap]),_=p.useMemo(()=>o.markedFiles.every(I=>{var M;return((M=o.constantFiles.find(k=>k.id===I))==null?void 0:M.archive)===!1}),[o.constantFiles,o.markedFiles]),S=p.useMemo(()=>o.markedFiles.every(I=>{var M;return((M=o.constantFiles.find(k=>k.id===I))==null?void 0:M.archive)===!0}),[o.constantFiles,o.markedFiles]);return y.jsx("div",{className:ae(e,wu.wrapper,o.state==="folder-choosing"?"ignore-dim":void 0,"d-flex justify-content-between"),children:o.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:wu.divButtons,children:[y.jsx(l8,{entityId:t,entityType:n,disabled:T,children:r.uploadFiles}),y.jsx(qt,{onClick:()=>{c({type:"open-modal",modalType:"create-folder",chosenFolderId:o.activeFolder??"root"})},disabled:T,children:r.createFolder}),y.jsx(qt,{disabled:o.activeFolder==="root"||(($=o.foldersMap.get(o.activeFolder))==null?void 0:$.isDefault),onClick:async()=>{var M;await i(`${r.deleteFolder} ${(M=o.foldersMap.get(o.activeFolder))==null?void 0:M.name}?`)&&m(o.activeFolder)},children:r.deleteFolder}),y.jsx(qt,{disabled:o.activeFolder==="root"||((D=o.foldersMap.get(o.activeFolder))==null?void 0:D.isDefault),onClick:w,children:r.renameFolder})]}),!b&&!T?y.jsxs("div",{className:wu.divButtons,children:[y.jsx(qt,{onClick:()=>{c({type:"open-modal",modalType:"edit-file-properties"})},disabled:!h,children:r.editFileProperties}),y.jsx(qt,{onClick:async()=>{await i(r.confirmDeleteFile(o.markedFiles.length))&&u(o.markedFiles)},disabled:v,children:r.delete}),S?y.jsx(qt,{onClick:async()=>{await i(r.confirmDearchiveFile(o.markedFiles.length))&&await f(!0)},disabled:v,children:r.dearchivate}):y.jsx(qt,{onClick:async()=>{await i(r.confirmArchiveFile(o.markedFiles.length))&&await f()},disabled:v||!_,children:r.archivate}),y.jsx(qt,{onClick:x,disabled:v,children:r.rename}),y.jsx(qt,{onClick:d,disabled:v,children:r.downloadZip})]}):null]}):o.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(qt,{onClick:()=>c({type:"return-from-folder-choosing"}),className:ae("ignore-dim","body-background-color"),children:r.back})}):void 0})};function f8(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function h8(e){const t=[],n=new Map,r=new Map;return e.forEach(a=>{n.set(a.id,f8(a)),a.parentId===null?t.push(a.id):r.set(a.id,a.parentId)}),r.forEach((a,i)=>{const s=n.get(a);if(s===void 0)throw new Error(`Did not get folder with ID ${a}, which is supposed to be parent directory of folder with ID ${i}`);s.childrenIds.push(i)}),{dirsMap:n,rootIds:t}}function Bh(e,t){const n=t.toUpperCase();return e.filter(r=>{var i;const a=(i=r.name)==null?void 0:i.toUpperCase();return a==null?void 0:a.includes(n)})}function p8(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const m8=([e,t],n,r)=>{const{texts:{documents:a}}=p.useContext(Et),{startLoading:i,stopLoading:s}=p.useContext(Do),{addNotification:o}=Cd(),c=Ho(),u=p.useCallback(async b=>{i("documentList");try{const _=(await c.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:$}=h8(_.folders),D=p8(_.documents,S);t({type:"load-data",files:D,foldersMap:S,rootFolderIds:$,setActiveFolder:b})}finally{s("documentList")}},[c,t,r,n,i,s]);p.useEffect(()=>{u(!0)},[u]);const l=p.useCallback(async()=>{i("documents-types");try{const b=await c.get(`/documents/types/${n}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"load-document-types",documentTypes:b.data})}finally{s("documents-types")}},[c,t,n,i,s]);p.useEffect(()=>{l()},[l]);const d=p.useCallback(async(b,T)=>{const _=T??e.markedFiles;i("documentsMove");try{await c.put(`/documents/move-to-folder?folderId=${b}`,_),t({type:"update-files",fileIds:_,newProperties:{folderId:b}}),o(a.fileMoveSuccessful(_.length,e.foldersMap.get(b).name),"info")}finally{s("documentsMove")}},[e.markedFiles,e.foldersMap,i,c,t,o,a,s]),f=p.useCallback(async b=>{const T=b??e.markedFiles;i("documentsFilesDelete");try{const _=await c.delete(`/documents/delete?${fl(T,"documentIds")}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-files",fileIds:T}),o(a.fileDeleteSuccessful(T.length),"info")}finally{s("documentsFilesDelete")}},[e.markedFiles,i,c,t,o,a,s]),m=p.useCallback(async b=>{var T;if(!(b==="root"||(T=e.foldersMap.get(b))!=null&&T.isDefault)){i("documentsFolderDelete");try{const _=await c.delete(`/documents/folder/${b}`);if(_.status!==200)throw new Error(`Unexpected status code: ${_.status}`);t({type:"delete-folder",folderId:b}),o(a.folderDeleteSuccessful(e.foldersMap.get(b).name),"info")}finally{s("documentsFolderDelete")}}},[e.foldersMap,i,c,t,o,a,s]),g=p.useCallback(async b=>{i("documentsRename");try{const T=await c.put("/documents/update-name",{documentIds:e.markedFiles,name:b});if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);u()}finally{s("documentsRename")}},[i,c,e.markedFiles,u,s]),v=p.useCallback(async b=>{i("documents-archivate");try{const T=await c.put(`/documents/${b?"dearchive":"archive"}`,e.markedFiles);if(T.status!==200)throw new Error(`Unexpected status code: ${T.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!b}}),o((b?a.archivateSuccessful:a.dearchivateSuccessful)(e.markedFiles.length),"info")}finally{s("documents-archivate")}},[i,c,e.markedFiles,t,o,a.archivateSuccessful,a.dearchivateSuccessful,s]),h=p.useCallback(async()=>{var T;if(e.activeFolder==="root")return;const b=e.markedFiles.length;o(a.downloadAsZip(b),"info"),i("documents-ZIP_download");try{const _=await c.get(`/documents/download-zip?${fl(e.markedFiles,"documentIds")}`,{responseType:"blob"});Ks(_.data,(((T=e.foldersMap.get(e.activeFolder))==null?void 0:T.name)??"")+"_files")}finally{s("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,o,a,i,c,s]),w=p.useCallback(async(b,T)=>{o(a.downloadingFile,"info"),i("documents-downloading_file");try{const _=await c.get(`/documents/${b}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find(D=>D.id===b),$=`${(S==null?void 0:S.name)??b.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;Ks(_.data,$,T)}finally{s("documents-downloading_file")}},[o,a.downloadingFile,i,c,e.constantFiles,s]),x=p.useCallback(async(b,T)=>{i("documents-upload"),o(a.uploadingDocuments,"info");try{await c.postForm("/documents/upload",{files:b,...T}),await u()}finally{s("documents-upload")}},[i,o,a.uploadingDocuments,c,u,s]);return{loadDocuments:u,moveDocuments:d,deleteFiles:f,deleteDirectory:m,renameFiles:g,archivateFiles:v,downloadAsZip:h,downloadFile:w,uploadFiles:x}},g8=(e,t)=>{var n,r;switch(t.type){case"load-data":{const a={...e,constantFiles:t.files,filteredFiles:Bh(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const i=t.rootFolderIds.find(s=>t.files.some(o=>o.archive===!1&&o.folderId===s))??"root";a.activeFolder=i}return a}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const a=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(i=>i!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-files-by-action":{const a=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:a.length>0?"selection-file":"explorer",markedFiles:a}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(a=>a.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(a=>a.folderId===e.activeFolder).map(a=>a.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],constantFiles:[...e.constantFiles.map(a=>t.fileIds.includes(a.id)?{...a,...t.newProperties}:a)],markedFiles:[],state:"explorer"};case"update-folders":{const a=new Map(e.foldersMap);return t.folderIds.forEach(i=>{a.set(i,{...e.foldersMap.get(i),...t.newProperties})}),{...e,foldersMap:a}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(a=>!t.fileIds.includes(a.id))],constantFiles:[...e.constantFiles.filter(a=>!t.fileIds.includes(a.id))],markedFiles:e.markedFiles.filter(a=>!t.fileIds.includes(a)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const a=new Map(e.foldersMap),i=(n=a.get(t.folderId))==null?void 0:n.parentId;let s=[...e.rootFolderIds];if(i){const o=JSON.parse(JSON.stringify(a.get(i)));o.childrenIds=o.childrenIds.filter(c=>c!==t.folderId),a.set(i,o)}else s=s.filter(o=>o!==t.folderId);return a.delete(t.folderId),{...e,rootFolderIds:s,foldersMap:a,activeFolder:"root"}}case"create-folder":{const a=new Map(e.foldersMap);a.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(s=>s.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const i=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)i.push(t.folderId);else{const s=a.get(t.folderData.parentFolderId),o=JSON.parse(JSON.stringify(s));o.childrenIds.push(t.folderId),a.set(t.folderData.parentFolderId,o)}return{...e,state:"explorer",rootFolderIds:i,foldersMap:a}}case"search-files":{const a=Bh(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:a,markedFiles:e.markedFiles.filter(i=>a.map(s=>s.id).includes(i))}}default:throw new Error("Wrong action.type specified.")}},v8=()=>{const e={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},[t,n]=p.useReducer(g8,e);return[t,n]},b8=p.memo(({entityType:e,entityId:t,className:n,BnfTableComponent:r,tableIdentifier:a,...i})=>{const{ProjectIconComponent:s,texts:{documents:o}}=p.useContext(Et),[c,u]=v8(),[l,d]=p.useState(null),{loadDocuments:f,...m}=m8([c,u],e,t),g=p.useMemo(()=>({entityId:t,entityType:e,apiActions:m,loadDocuments:f,reducer:[c,u]}),[t,e,m,f,c,u]),{getDropProps:v}=$d();return y.jsx("div",{...i,className:ae(Gn.wrapper,n),onDragOver:h=>{h.dataTransfer.dropEffect="none",h.stopPropagation(),h.preventDefault()},onDragEnter:h=>{h.dataTransfer.dropEffect="none",h.stopPropagation(),h.preventDefault()},children:y.jsxs(it.Provider,{value:g,children:[y.jsx("div",{className:ae(c.state==="folder-choosing"?"dim-others":void 0,Gn.explorerWindow),children:y.jsxs("ul",{className:Gn.folderList,children:[y.jsx(kT,{customText:e}),c.rootFolderIds.map(h=>y.jsx(dv,{dirId:h},h))]})}),y.jsxs("div",{className:ae(Gn.explorerWindow,Gn.fileList),...UT(c)?v(c.activeFolder,{onFilesDrop:h=>d(h),ignoreInner:!0}):{},children:[y.jsxs("div",{className:Gn.dndText,children:[y.jsx(s,{icon:"file-upload",iconProps:{style:{marginRight:0}}}),y.jsx("span",{children:o.dropToUpload})]}),y.jsx(i8,{tableIdentifier:a,BnfTableComponent:r},(c.activeFolder==="root").toString())]}),y.jsx(d8,{className:Gn.controls,entityType:e,entityId:t}),y.jsx(FT,{}),l!==null?y.jsx(jd,{files:l,handleClose:()=>d(null),targetFolderId:c.activeFolder==="root"?void 0:c.activeFolder}):null]})})}),y8="_feedback_esh1j_1",_8="_feedback-spacer_esh1j_8",Wh={feedback:y8,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:_8},Go=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ae("invalid-feedback luminus-invalid-feedback",Wh.feedback),children:e}),y.jsx("div",{className:ae("invalid-feedback-spacer",Wh.feedbackSpacer),children:e})]}),x8=p.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Pd=Wi(),be=e=>Bi(e,Pd),Id=Wi();be.write=e=>Bi(e,Id);var Ko=Wi();be.onStart=e=>Bi(e,Ko);var Nd=Wi();be.onFrame=e=>Bi(e,Nd);var Dd=Wi();be.onFinish=e=>Bi(e,Dd);var zr=[];be.setTimeout=(e,t)=>{const n=be.now()+t,r=()=>{const i=zr.findIndex(s=>s.cancel==r);~i&&zr.splice(i,1),Pn-=~i?1:0},a={time:n,handler:e,cancel:r};return zr.splice(pv(n),0,a),Pn+=1,mv(),a};var pv=e=>~(~zr.findIndex(t=>t.time>e)||~zr.length);be.cancel=e=>{Ko.delete(e),Nd.delete(e),Dd.delete(e),Pd.delete(e),Id.delete(e)};be.sync=e=>{yl=!0,be.batchedUpdates(e),yl=!1};be.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,be.onStart(n)}return r.handler=e,r.cancel=()=>{Ko.delete(n),t=null},r};var Fd=typeof window<"u"?window.requestAnimationFrame:()=>{};be.use=e=>Fd=e;be.now=typeof performance<"u"?()=>performance.now():Date.now;be.batchedUpdates=e=>e();be.catch=console.error;be.frameLoop="always";be.advance=()=>{be.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):vv()};var jn=-1,Pn=0,yl=!1;function Bi(e,t){yl?(t.delete(e),e(0)):(t.add(e),mv())}function mv(){jn<0&&(jn=0,be.frameLoop!=="demand"&&Fd(gv))}function w8(){jn=-1}function gv(){~jn&&(Fd(gv),be.batchedUpdates(vv))}function vv(){const e=jn;jn=be.now();const t=pv(jn);if(t&&(bv(zr.splice(0,t),n=>n.handler()),Pn-=t),!Pn){w8();return}Ko.flush(),Pd.flush(e?Math.min(64,jn-e):16.667),Nd.flush(),Id.flush(),Dd.flush()}function Wi(){let e=new Set,t=e;return{add(n){Pn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Pn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Pn-=t.size,bv(t,r=>r(n)&&e.add(r)),Pn+=e.size,t=e)}}}function bv(e,t){e.forEach(n=>{try{t(n)}catch(r){be.catch(r)}})}var T8=Object.defineProperty,O8=(e,t)=>{for(var n in t)T8(e,n,{get:t[n],enumerable:!0})},Ut={};O8(Ut,{assign:()=>E8,colors:()=>Nn,createStringInterpolator:()=>Ud,skipAnimation:()=>_v,to:()=>yv,willAdvance:()=>zd});function _l(){}var C8=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),q={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function cn(e,t){if(q.arr(e)){if(!q.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var ve=(e,t)=>e.forEach(t);function Qt(e,t,n){if(q.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ct=e=>q.und(e)?[]:q.arr(e)?e:[e];function Qa(e,t){if(e.size){const n=Array.from(e);e.clear(),ve(n,t)}}var Za=(e,...t)=>Qa(e,n=>n(...t)),Ld=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ud,yv,Nn=null,_v=!1,zd=_l,E8=e=>{e.to&&(yv=e.to),e.now&&(be.now=e.now),e.colors!==void 0&&(Nn=e.colors),e.skipAnimation!=null&&(_v=e.skipAnimation),e.createStringInterpolator&&(Ud=e.createStringInterpolator),e.requestAnimationFrame&&be.use(e.requestAnimationFrame),e.batchedUpdates&&(be.batchedUpdates=e.batchedUpdates),e.willAdvance&&(zd=e.willAdvance),e.frameLoop&&(be.frameLoop=e.frameLoop)},ei=new Set,Rt=[],Tu=[],ao=0,Xo={get idle(){return!ei.size&&!Rt.length},start(e){ao>e.priority?(ei.add(e),be.onStart(S8)):(xv(e),be(xl))},advance:xl,sort(e){if(ao)be.onFrame(()=>Xo.sort(e));else{const t=Rt.indexOf(e);~t&&(Rt.splice(t,1),wv(e))}},clear(){Rt=[],ei.clear()}};function S8(){ei.forEach(xv),ei.clear(),be(xl)}function xv(e){Rt.includes(e)||wv(e)}function wv(e){Rt.splice(k8(Rt,t=>t.priority>e.priority),0,e)}function xl(e){const t=Tu;for(let n=0;n<Rt.length;n++){const r=Rt[n];ao=r.priority,r.idle||(zd(r),r.advance(e),r.idle||t.push(r))}return ao=0,Tu=Rt,Tu.length=0,Rt=t,Rt.length>0}function k8(e,t){const n=e.findIndex(t);return n<0?e.length:n}var R8=(e,t,n)=>Math.min(Math.max(n,e),t),A8={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},It="[-+]?\\d*\\.?\\d+",io=It+"%";function Jo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var M8=new RegExp("rgb"+Jo(It,It,It)),$8=new RegExp("rgba"+Jo(It,It,It,It)),j8=new RegExp("hsl"+Jo(It,io,io)),P8=new RegExp("hsla"+Jo(It,io,io,It)),I8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,N8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,D8=/^#([0-9a-fA-F]{6})$/,F8=/^#([0-9a-fA-F]{8})$/;function L8(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=D8.exec(e))?parseInt(t[1]+"ff",16)>>>0:Nn&&Nn[e]!==void 0?Nn[e]:(t=M8.exec(e))?(Pr(t[1])<<24|Pr(t[2])<<16|Pr(t[3])<<8|255)>>>0:(t=$8.exec(e))?(Pr(t[1])<<24|Pr(t[2])<<16|Pr(t[3])<<8|Vh(t[4]))>>>0:(t=I8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=F8.exec(e))?parseInt(t[1],16)>>>0:(t=N8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=j8.exec(e))?(qh(Hh(t[1]),gs(t[2]),gs(t[3]))|255)>>>0:(t=P8.exec(e))?(qh(Hh(t[1]),gs(t[2]),gs(t[3]))|Vh(t[4]))>>>0:null}function Ou(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qh(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Ou(a,r,e+1/3),s=Ou(a,r,e),o=Ou(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(o*255)<<8}function Pr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Hh(e){return(parseFloat(e)%360+360)%360/360}function Vh(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Yh(e){let t=L8(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var wi=(e,t,n)=>{if(q.fun(e))return e;if(q.arr(e))return wi({range:e,output:t,extrapolate:n});if(q.str(e.output[0]))return Ud(e);const r=e,a=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",o=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const l=z8(u,i);return U8(u,i[l],i[l+1],a[l],a[l+1],c,s,o,r.map)}};function U8(e,t,n,r,a,i,s,o,c){let u=c?c(e):e;if(u<t){if(s==="identity")return u;s==="clamp"&&(u=t)}if(u>n){if(o==="identity")return u;o==="clamp"&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u=u+r:u=u*(a-r)+r,u)}function z8(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var B8=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return R8(0,1,a/e)},so=1.70158,vs=so*1.525,Zh=so+1,Gh=2*Math.PI/3,Kh=2*Math.PI/4.5,bs=e=>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,W8={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Zh*e*e*e-so*e*e,easeOutBack:e=>1+Zh*Math.pow(e-1,3)+so*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vs+1)*2*e-vs)/2:(Math.pow(2*e-2,2)*((vs+1)*(e*2-2)+vs)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Gh),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Gh)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Kh))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Kh)/2+1,easeInBounce:e=>1-bs(1-e),easeOutBounce:bs,easeInOutBounce:e=>e<.5?(1-bs(1-2*e))/2:(1+bs(2*e-1))/2,steps:B8},Ti=Symbol.for("FluidValue.get"),ta=Symbol.for("FluidValue.observers"),kt=e=>!!(e&&e[Ti]),dt=e=>e&&e[Ti]?e[Ti]():e,Xh=e=>e[ta]||null;function q8(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Oi(e,t){const n=e[ta];n&&n.forEach(r=>{q8(r,t)})}var Tv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");H8(this,e)}},H8=(e,t)=>Ov(e,Ti,t);function la(e,t){if(e[Ti]){let n=e[ta];n||Ov(e,ta,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ci(e,t){const n=e[ta];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ta]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ov=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),js=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,V8=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Jh=new RegExp(`(${js.source})(%|[a-z]+)`,"i"),Y8=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Qo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Cv=e=>{const[t,n]=Z8(e);if(!t||Ld())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Qo.test(n))return Cv(n);if(n)return n}return e},Z8=e=>{const t=Qo.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Cu,G8=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Ev=e=>{Cu||(Cu=Nn?new RegExp(`(${Object.keys(Nn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>dt(i).replace(Qo,Cv).replace(V8,Yh).replace(Cu,Yh)),n=t.map(i=>i.match(js).map(Number)),a=n[0].map((i,s)=>n.map(o=>{if(!(s in o))throw Error('The arity of each "output" value must be equal');return o[s]})).map(i=>wi({...e,output:i}));return i=>{var c;const s=!Jh.test(t[0])&&((c=t.find(u=>Jh.test(u)))==null?void 0:c.replace(js,""));let o=0;return t[0].replace(js,()=>`${a[o++](i)}${s||""}`).replace(Y8,G8)}},Bd="react-spring: ",Sv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Bd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},K8=Sv(console.warn);function X8(){K8(`${Bd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var J8=Sv(console.warn);function Q8(){J8(`${Bd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ec(e){return q.str(e)&&(e[0]=="#"||/\d/.test(e)||!Ld()&&Qo.test(e)||e in(Nn||{}))}var rr=Ld()?p.useEffect:p.useLayoutEffect,eO=()=>{const e=p.useRef(!1);return rr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Wd(){const e=p.useState()[1],t=eO();return()=>{t.current&&e(Math.random())}}function tO(e,t){const[n]=p.useState(()=>({inputs:t,result:e()})),r=p.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&nO(t,i.inputs)||(i={inputs:t,result:e()}):i=n,p.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function nO(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var qd=e=>p.useEffect(e,rO),rO=[];function wl(e){const t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var Ei=Symbol.for("Animated:node"),aO=e=>!!e&&e[Ei]===e,Vt=e=>e&&e[Ei],Hd=(e,t)=>C8(e,Ei,t),tc=e=>e&&e[Ei]&&e[Ei].getPayload(),kv=class{constructor(){Hd(this,this)}getPayload(){return this.payload||[]}},qi=class extends kv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,q.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new qi(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return q.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,q.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Si=class extends qi{constructor(e){super(0),this._string=null,this._toString=wi({output:[e,e]})}static create(e){return new Si(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(q.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=wi({output:[this.getValue(),e]})),this._value=0,super.reset()}},oo={dependencies:null},nc=class extends kv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qt(this.source,(n,r)=>{aO(n)?t[r]=n.getValue(e):kt(n)?t[r]=dt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ve(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Qt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){oo.dependencies&&kt(e)&&oo.dependencies.add(e);const t=tc(e);t&&ve(t,n=>this.add(n))}},Rv=class extends nc{constructor(e){super(e)}static create(e){return new Rv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(iO)),!0)}};function iO(e){return(ec(e)?Si:qi).create(e)}function Tl(e){const t=Vt(e);return t?t.constructor:q.arr(e)?Rv:ec(e)?Si:qi}var Qh=(e,t)=>{const n=!q.fun(e)||e.prototype&&e.prototype.isReactComponent;return p.forwardRef((r,a)=>{const i=p.useRef(null),s=n&&p.useCallback(g=>{i.current=cO(a,g)},[a]),[o,c]=oO(r,t),u=Wd(),l=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,o.getValue(!0)):!1)===!1&&u()},d=new sO(l,c),f=p.useRef();rr(()=>(f.current=d,ve(c,g=>la(g,d)),()=>{f.current&&(ve(f.current.deps,g=>Ci(g,f.current)),be.cancel(f.current.update))})),p.useEffect(l,[]),qd(()=>()=>{const g=f.current;ve(g.deps,v=>Ci(v,g))});const m=t.getComponentProps(o.getValue());return oe.createElement(e,{...m,ref:s})})},sO=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&be.write(this.update)}};function oO(e,t){const n=new Set;return oo.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nc(e),oo.dependencies=null,[e,n]}function cO(e,t){return e&&(q.fun(e)?e(t):e.current=t),t}var ep=Symbol.for("AnimatedComponent"),uO=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new nc(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const o=tp(s)||"Anonymous";return q.str(s)?s=i[s]||(i[s]=Qh(s,a)):s=s[ep]||(s[ep]=Qh(s,a)),s.displayName=`Animated(${o})`,s};return Qt(e,(s,o)=>{q.arr(e)&&(o=tp(s)),i[o]=i(s)}),{animated:i}},tp=e=>q.str(e)?e:e&&q.str(e.displayName)?e.displayName:q.fun(e)&&e.name||null;function ft(e,...t){return q.fun(e)?e(...t):e}var ti=(e,t)=>e===!0||!!(t&&e&&(q.fun(e)?e(t):ct(e).includes(t))),Av=(e,t)=>q.obj(e)?t&&e[t]:e,Mv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,lO=e=>e,rc=(e,t=lO)=>{let n=dO;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);q.und(i)||(r[a]=i)}return r},dO=["config","onProps","onStart","onChange","onPause","onResume","onRest"],fO={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function hO(e){const t={};let n=0;if(Qt(e,(r,a)=>{fO[a]||(t[a]=r,n++)}),n)return t}function Vd(e){const t=hO(e);if(t){const n={to:t};return Qt(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function ki(e){return e=dt(e),q.arr(e)?e.map(ki):ec(e)?Ut.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function $v(e){for(const t in e)return!0;return!1}function Ol(e){return q.fun(e)||q.arr(e)&&q.obj(e[0])}function Cl(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function jv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Yd={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},El={...Yd.default,mass:1,damping:1,easing:W8.linear,clamp:!1},pO=class{constructor(){this.velocity=0,Object.assign(this,El)}};function mO(e,t,n){n&&(n={...n},np(n,t),t={...n,...t}),np(e,t),Object.assign(e,t);for(const s in El)e[s]==null&&(e[s]=El[s]);let{frequency:r,damping:a}=e;const{mass:i}=e;return q.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function np(e,t){if(!q.und(t.decay))e.duration=void 0;else{const n=!q.und(t.tension)||!q.und(t.friction);(n||!q.und(t.frequency)||!q.und(t.damping)||!q.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var rp=[],gO=class{constructor(){this.changed=!1,this.values=rp,this.toValues=null,this.fromValues=rp,this.config=new pO,this.immediate=!1}};function Pv(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((s,o)=>{let c,u,l=ti(n.cancel??(r==null?void 0:r.cancel),t);if(l)m();else{q.und(n.pause)||(a.paused=ti(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=a.paused||ti(g,t)),c=ft(n.delay||0,t),g?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(u),u.cancel(),c=u.time-be.now()}function f(){c>0&&!Ut.skipAnimation?(a.delayed=!0,u=be.setTimeout(m,c),a.pauseQueue.add(d),a.timeouts.add(u)):m()}function m(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},s)}catch(g){o(g)}}})}var Zd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Br(e.get()):t.every(n=>n.noop)?Iv(e.get()):$t(e.get(),t.every(n=>n.finished)),Iv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$t=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Br=e=>({value:e,cancelled:!0,finished:!1});function Nv(e,t,n,r){const{callId:a,parentId:i,onRest:s}=t,{asyncTo:o,promise:c}=n;return!i&&e===o&&!t.reset?c:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const u=rc(t,(h,w)=>w==="onRest"?void 0:h);let l,d;const f=new Promise((h,w)=>(l=h,d=w)),m=h=>{const w=a<=(n.cancelId||0)&&Br(r)||a!==n.asyncId&&$t(r,!1);if(w)throw h.result=w,d(h),h},g=(h,w)=>{const x=new ap,b=new ip;return(async()=>{if(Ut.skipAnimation)throw Ri(n),b.result=$t(r,!1),d(b),b;m(x);const T=q.obj(h)?{...h}:{...w,to:h};T.parentId=a,Qt(u,(S,$)=>{q.und(T[$])&&(T[$]=S)});const _=await r.start(T);return m(x),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),_})()};let v;if(Ut.skipAnimation)return Ri(n),$t(r,!1);try{let h;q.arr(e)?h=(async w=>{for(const x of w)await g(x)})(e):h=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([h.then(l),f]),v=$t(r.get(),!0,!1)}catch(h){if(h instanceof ap)v=h.result;else if(h instanceof ip)v=h.result;else throw h}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?o:void 0,n.promise=i?c:void 0)}return q.fun(s)&&be.batchedUpdates(()=>{s(v,r,r.item)}),v})()}function Ri(e,t){Qa(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var ap=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ip=class extends Error{constructor(){super("SkipAnimationSignal")}},Sl=e=>e instanceof Gd,vO=1,Gd=class extends Tv{constructor(){super(...arguments),this.id=vO++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Vt(this);return e&&e.getValue()}to(...e){return Ut.to(this,e)}interpolate(...e){return X8(),Ut.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Oi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xo.sort(this),Oi(this,{type:"priority",parent:this,priority:e})}},gr=Symbol.for("SpringPhase"),Dv=1,kl=2,Rl=4,Eu=e=>(e[gr]&Dv)>0,Sn=e=>(e[gr]&kl)>0,Ia=e=>(e[gr]&Rl)>0,sp=(e,t)=>t?e[gr]|=kl|Dv:e[gr]&=~kl,op=(e,t)=>t?e[gr]|=Rl:e[gr]&=~Rl,bO=class extends Gd{constructor(e,t){if(super(),this.animation=new gO,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!q.und(e)||!q.und(t)){const n=q.obj(e)?{...e}:{...t,from:e};q.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Sn(this)||this._state.asyncTo)||Ia(this)}get goal(){return dt(this.animation.to)}get velocity(){const e=Vt(this);return e instanceof qi?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Eu(this)}get isAnimating(){return Sn(this)}get isPaused(){return Ia(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,s=tc(r.to);!s&&kt(r.to)&&(a=ct(dt(r.to))),r.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==Si?1:s?s[l].lastPosition:a[l];let f=r.immediate,m=d;if(!f){if(m=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const v=r.fromValues[l],h=u.v0!=null?u.v0:u.v0=q.arr(i.velocity)?i.velocity[l]:i.velocity;let w;const x=i.precision||(v==d?.005:Math.min(1,Math.abs(d-v)*.001));if(q.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*g);m=v+h/(1-b)*(1-T),f=Math.abs(u.lastPosition-m)<=x,w=h*T}else{w=u.lastVelocity==null?h:u.lastVelocity;const b=i.restVelocity||x/10,T=i.clamp?0:i.bounce,_=!q.und(T),S=v==d?u.v0>0:v<d;let $,D=!1;const I=1,M=Math.ceil(e/I);for(let k=0;k<M&&($=Math.abs(w)>b,!(!$&&(f=Math.abs(d-m)<=x,f)));++k){_&&(D=m==d||m>d==S,D&&(w=-w*T,m=d));const Y=-i.tension*1e-6*(m-d),A=-i.friction*.001*w,R=(Y+A)/i.mass;w=w+R*I,m=m+w*I}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),b=(i.progress||0)+g/this._memoizedDuration,b=b>1?1:b<0?0:b,u.durationProgress=b),m=v+i.easing(b)*(d-v),w=(m-u.lastPosition)/e,f=b==1}u.lastVelocity=w,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(m,i.round)&&(n=!0)});const o=Vt(this),c=o.getValue();if(t){const u=dt(r.to);(c!==u||n)&&!i.decay?(o.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return be.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Sn(this)){const{to:e,config:t}=this.animation;be.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return q.und(e)?(n=this.queue||[],this.queue=[]):n=[q.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Zd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ri(this._state,e&&this._lastCallId),be.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=q.obj(n)?n[t]:n,(n==null||Ol(n))&&(n=void 0),r=q.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Eu(this)||(e.reverse&&([n,r]=[r,n]),r=dt(r),q.und(r)?Vt(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rc(e,(s,o)=>/^on/.test(o)?Av(s,n):s)),up(this,e,"onProps"),Da(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ia(this)||(op(this,!0),Za(i.pauseQueue),Da(this,"onPause",$t(this,Na(this,this.animation.to)),this))},resume:()=>{Ia(this)&&(op(this,!1),Sn(this)&&this._resume(),Za(i.resumeQueue),Da(this,"onResume",$t(this,Na(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const o=Fv(e);if(o)return this._update(o,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Br(this));const r=!q.und(e.to),a=!q.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Br(this));const{key:i,defaultProps:s,animation:o}=this,{to:c,from:u}=o;let{to:l=c,from:d=u}=e;a&&!r&&(!t.default||q.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!cn(d,u);f&&(o.from=d),d=dt(d);const m=!cn(l,c);m&&this._focus(l);const g=Ol(t.to),{config:v}=o,{decay:h,velocity:w}=v;(r||a)&&(v.velocity=0),t.config&&!g&&mO(v,ft(t.config,i),t.config!==s.config?ft(s.config,i):void 0);let x=Vt(this);if(!x||q.und(l))return n($t(this,!0));const b=q.und(t.reset)?a&&!t.default:!q.und(d)&&ti(t.reset,i),T=b?d:this.get(),_=ki(l),S=q.num(_)||q.arr(_)||ec(_),$=!g&&(!S||ti(s.immediate||t.immediate,i));if(m){const k=Tl(l);if(k!==x.constructor)if($)x=this._set(_);else throw Error(`Cannot animate between ${x.constructor.name} and ${k.name}, as the "to" prop suggests`)}const D=x.constructor;let I=kt(l),M=!1;if(!I){const k=b||!Eu(this)&&f;(m||k)&&(M=cn(ki(T),_),I=!M),(!cn(o.immediate,$)&&!$||!cn(v.decay,h)||!cn(v.velocity,w))&&(I=!0)}if(M&&Sn(this)&&(o.changed&&!b?I=!0:I||this._stop(c)),!g&&((I||kt(c))&&(o.values=x.getPayload(),o.toValues=kt(l)?null:D==Si?[1]:ct(_)),o.immediate!=$&&(o.immediate=$,!$&&!b&&this._set(c)),I)){const{onRest:k}=o;ve(_O,A=>up(this,t,A));const Y=$t(this,Na(this,c));Za(this._pendingCalls,Y),this._pendingCalls.add(n),o.changed&&be.batchedUpdates(()=>{var A;o.changed=!b,k==null||k(Y,this),b?ft(s.onRest,Y):(A=o.onStart)==null||A.call(o,Y,this)})}b&&this._set(T),g?n(Nv(t.to,t,this._state,this)):I?this._start():Sn(this)&&!m?this._pendingCalls.add(n):n(Iv(T))}_focus(e){const t=this.animation;e!==t.to&&(Xh(this)&&this._detach(),t.to=e,Xh(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kt(t)&&(la(t,this),Sl(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kt(e)&&Ci(e,this)}_set(e,t=!0){const n=dt(e);if(!q.und(n)){const r=Vt(this);if(!r||!cn(n,r.getValue())){const a=Tl(n);!r||r.constructor!=a?Hd(this,a.create(n)):r.setValue(n),r&&be.batchedUpdates(()=>{this._onChange(n,t)})}}return Vt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Da(this,"onStart",$t(this,Na(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Vt(this).reset(dt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Sn(this)||(sp(this,!0),Ia(this)||this._resume())}_resume(){Ut.skipAnimation?this.finish():Xo.start(this)}_stop(e,t){if(Sn(this)){sp(this,!1);const n=this.animation;ve(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Oi(this,{type:"idle",parent:this});const r=t?Br(this.get()):$t(this.get(),Na(this,e??n.to));Za(this._pendingCalls,r),n.changed&&(n.changed=!1,Da(this,"onRest",r,this))}}};function Na(e,t){const n=ki(t),r=ki(e.get());return cn(r,n)}function Fv(e,t=e.loop,n=e.to){const r=ft(t);if(r){const a=r!==!0&&Vd(r),i=(a||e).reverse,s=!a||a.reset;return Ai({...e,loop:t,default:!1,pause:void 0,to:!i||Ol(n)?n:void 0,from:s?e.from:void 0,reset:s,...a})}}function Ai(e){const{to:t,from:n}=e=Vd(e),r=new Set;return q.obj(t)&&cp(t,r),q.obj(n)&&cp(n,r),e.keys=r.size?Array.from(r):null,e}function yO(e){const t=Ai(e);return q.und(t.default)&&(t.default=rc(t)),t}function cp(e,t){Qt(e,(n,r)=>n!=null&&t.add(r))}var _O=["onStart","onRest","onChange","onPause","onResume"];function up(e,t,n){e.animation[n]=t[n]!==Mv(t,n)?Av(t[n],e.key):void 0}function Da(e,t,...n){var r,a,i,s;(a=(r=e.animation)[t])==null||a.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var xO=["onStart","onChange","onRest"],wO=1,Lv=class{constructor(e,t){this.id=wO++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];q.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ai(e)),this}start(e){let{queue:t}=this;return e?t=ct(e).map(Ai):this.queue=[],this._flush?this._flush(this,t):(qv(this,t),Al(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ve(ct(t),r=>n[r].stop(!!e))}else Ri(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(q.und(e))this.start({pause:!0});else{const t=this.springs;ve(ct(e),n=>t[n].pause())}return this}resume(e){if(q.und(e))this.start({pause:!1});else{const t=this.springs;ve(ct(e),n=>t[n].resume())}return this}each(e){Qt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Qa(e,([o,c])=>{c.value=this.get(),o(c,this,this._item)}));const i=!r&&this._started,s=a||i&&n.size?this.get():null;a&&t.size&&Qa(t,([o,c])=>{c.value=s,o(c,this,this._item)}),i&&(this._started=!1,Qa(n,([o,c])=>{c.value=s,o(c,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;be.onFrame(this._onFrame)}};function Al(e,t){return Promise.all(t.map(n=>Uv(e,n))).then(n=>Zd(e,n))}async function Uv(e,t,n){const{keys:r,to:a,from:i,loop:s,onRest:o,onResolve:c}=t,u=q.obj(t.default)&&t.default;s&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=q.arr(a)||q.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ve(xO,v=>{const h=t[v];if(q.fun(h)){const w=e._events[v];t[v]=({finished:x,cancelled:b})=>{const T=w.get(h);T?(x||(T.finished=!1),b&&(T.cancelled=!0)):w.set(h,{value:null,finished:x||!1,cancelled:b||!1})},u&&(u[v]=t[v])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Za(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(v=>e.springs[v].start(t)),m=t.cancel===!0||Mv(t,"cancel")===!0;(l||m&&d.asyncId)&&f.push(Pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:_l,resume:_l,start(v,h){m?(Ri(d,e._lastAsyncId),h(Br(e))):(v.onRest=o,h(Nv(l,v,d,e)))}}})),d.paused&&await new Promise(v=>{d.resumeQueue.add(v)});const g=Zd(e,await Promise.all(f));if(s&&g.finished&&!(n&&g.noop)){const v=Fv(t,s,a);if(v)return qv(e,[v]),Uv(e,v,!0)}return c&&be.batchedUpdates(()=>c(g,e,e.item)),g}function Ml(e,t){const n={...e.springs};return t&&ve(ct(t),r=>{q.und(r.keys)&&(r=Ai(r)),q.obj(r.to)||(r={...r,to:void 0}),Wv(n,r,a=>Bv(a))}),zv(e,n),n}function zv(e,t){Qt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,la(n,e))})}function Bv(e,t){const n=new bO;return n.key=e,t&&la(n,t),n}function Wv(e,t,n){t.keys&&ve(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function qv(e,t){ve(t,n=>{Wv(e.springs,n,r=>Bv(r,e))})}var Hi=({children:e,...t})=>{const n=p.useContext(co),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=tO(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=co;return oe.createElement(i,{value:t},e)},co=TO(Hi,{});Hi.Provider=co.Provider;Hi.Consumer=co.Consumer;function TO(e,t){return Object.assign(e,oe.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Hv=()=>{const e=[],t=function(r){Q8();const a=[];return ve(e,(i,s)=>{if(q.und(r))a.push(i.start());else{const o=n(r,i,s);o&&a.push(i.start(o))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return ve(e,r=>r.pause(...arguments)),this},t.resume=function(){return ve(e,r=>r.resume(...arguments)),this},t.set=function(r){ve(e,(a,i)=>{const s=q.fun(r)?r(i,a):r;s&&a.set(s)})},t.start=function(r){const a=[];return ve(e,(i,s)=>{if(q.und(r))a.push(i.start());else{const o=this._getProps(r,i,s);o&&a.push(i.start(o))}}),a},t.stop=function(){return ve(e,r=>r.stop(...arguments)),this},t.update=function(r){return ve(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return q.fun(r)?r(i,a):r};return t._getProps=n,t};function OO(e,t,n){const r=q.fun(t)&&t;r&&!n&&(n=[]);const a=p.useMemo(()=>r||arguments.length==3?Hv():void 0,[]),i=p.useRef(0),s=Wd(),o=p.useMemo(()=>({ctrls:[],queue:[],flush(w,x){const b=Ml(w,x);return i.current>0&&!o.queue.length&&!Object.keys(b).some(_=>!w.springs[_])?Al(w,x):new Promise(_=>{zv(w,b),o.queue.push(()=>{_(Al(w,x))}),s()})}}),[]),c=p.useRef([...o.ctrls]),u=[],l=wl(e)||0;p.useMemo(()=>{ve(c.current.slice(e,l),w=>{Cl(w,a),w.stop(!0)}),c.current.length=e,d(l,e)},[e]),p.useMemo(()=>{d(0,Math.min(l,e))},n);function d(w,x){for(let b=w;b<x;b++){const T=c.current[b]||(c.current[b]=new Lv(null,o.flush)),_=r?r(b,T):t[b];_&&(u[b]=yO(_))}}const f=c.current.map((w,x)=>Ml(w,u[x])),m=p.useContext(Hi),g=wl(m),v=m!==g&&$v(m);rr(()=>{i.current++,o.ctrls=c.current;const{queue:w}=o;w.length&&(o.queue=[],ve(w,x=>x())),ve(c.current,(x,b)=>{a==null||a.add(x),v&&x.start({default:m});const T=u[b];T&&(jv(x,T.ref),x.ref?x.queue.push(T):x.start(T))})}),qd(()=>()=>{ve(o.ctrls,w=>w.stop(!0))});const h=f.map(w=>({...w}));return a?[h,a]:h}function Kd(e,t){const n=q.fun(e),[[r],a]=OO(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function Xd(e,t,n){const r=q.fun(t)&&t,{reset:a,sort:i,trail:s=0,expires:o=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:l,config:d}=r?r():t,f=p.useMemo(()=>r||arguments.length==3?Hv():void 0,[]),m=ct(e),g=[],v=p.useRef(null),h=a?null:v.current;rr(()=>{v.current=g}),qd(()=>(ve(g,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{ve(v.current,R=>{R.expired&&clearTimeout(R.expirationId),Cl(R.ctrl,f),R.ctrl.stop(!0)})}));const w=EO(m,r?r():t,h),x=a&&v.current||[];rr(()=>ve(x,({ctrl:R,item:F,key:B})=>{Cl(R,f),ft(u,F,B)}));const b=[];if(h&&ve(h,(R,F)=>{R.expired?(clearTimeout(R.expirationId),x.push(R)):(F=b[F]=w.indexOf(R.key),~F&&(g[F]=R))}),ve(m,(R,F)=>{g[F]||(g[F]={key:w[F],item:R,phase:"mount",ctrl:new Lv},g[F].ctrl.item=R)}),b.length){let R=-1;const{leave:F}=r?r():t;ve(b,(B,L)=>{const G=h[L];~B?(R=g.indexOf(G),g[R]={...G,item:m[B]}):F&&g.splice(++R,0,G)})}q.fun(i)&&g.sort((R,F)=>i(R.item,F.item));let T=-s;const _=Wd(),S=rc(t),$=new Map,D=p.useRef(new Map),I=p.useRef(!1);ve(g,(R,F)=>{const B=R.key,L=R.phase,G=r?r():t;let Z,j;const U=ft(G.delay||0,B);if(L=="mount")Z=G.enter,j="enter";else{const X=w.indexOf(B)<0;if(L!="leave")if(X)Z=G.leave,j="leave";else if(Z=G.update)j="update";else return;else if(!X)Z=G.enter,j="enter";else return}if(Z=ft(Z,R.item,F),Z=q.obj(Z)?Vd(Z):{to:Z},!Z.config){const X=d||S.config;Z.config=ft(X,R.item,F,j)}T+=s;const J={...S,delay:U+T,ref:l,immediate:G.immediate,reset:!1,...Z};if(j=="enter"&&q.und(J.from)){const X=r?r():t,V=q.und(X.initial)||h?X.from:X.initial;J.from=ft(V,R.item,F)}const{onResolve:te}=J;J.onResolve=X=>{ft(te,X);const V=v.current,Q=V.find(ee=>ee.key===B);if(Q&&!(X.cancelled&&Q.phase!="update")&&Q.ctrl.idle){const ee=V.every(N=>N.ctrl.idle);if(Q.phase=="leave"){const N=ft(o,Q.item);if(N!==!1){const W=N===!0?0:N;if(Q.expired=!0,!ee&&W>0){W<=2147483647&&(Q.expirationId=setTimeout(_,W));return}}}ee&&V.some(N=>N.expired)&&(D.current.delete(Q),c&&(I.current=!0),_())}};const K=Ml(R.ctrl,J);j==="leave"&&c?D.current.set(R,{phase:j,springs:K,payload:J}):$.set(R,{phase:j,springs:K,payload:J})});const M=p.useContext(Hi),k=wl(M),Y=M!==k&&$v(M);rr(()=>{Y&&ve(g,R=>{R.ctrl.start({default:M})})},[M]),ve($,(R,F)=>{if(D.current.size){const B=g.findIndex(L=>L.key===F.key);g.splice(B,1)}}),rr(()=>{ve(D.current.size?D.current:$,({phase:R,payload:F},B)=>{const{ctrl:L}=B;B.phase=R,f==null||f.add(L),Y&&R=="enter"&&L.start({default:M}),F&&(jv(L,F.ref),(L.ref||f)&&!I.current?L.update(F):(L.start(F),I.current&&(I.current=!1)))})},a?void 0:n);const A=R=>oe.createElement(oe.Fragment,null,g.map((F,B)=>{const{springs:L}=$.get(F)||F.ctrl,G=R({...L},F.item,F,B);return G&&G.type?oe.createElement(G.type,{...G.props,key:q.str(F.key)||q.num(F.key)?F.key:F.ctrl.id,ref:G.ref}):G}));return f?[A,f]:A}var CO=1;function EO(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const s=r&&r.find(o=>o.item===i&&o.phase!=="leave"&&!a.has(o));return s?(a.add(s),s.key):CO++})}return q.und(n)?e:q.fun(n)?e.map(n):ct(n)}var Vv=class extends Gd{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=wi(...t);const n=this._get(),r=Tl(n);Hd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();cn(t,n)||(Vt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&lp(this._active)&&Su(this)}_get(){const e=q.arr(this.source)?this.source.map(dt):ct(dt(this.source));return this.calc(...e)}_start(){this.idle&&!lp(this._active)&&(this.idle=!1,ve(tc(this),e=>{e.done=!1}),Ut.skipAnimation?(be.batchedUpdates(()=>this.advance()),Su(this)):Xo.start(this))}_attach(){let e=1;ve(ct(this.source),t=>{kt(t)&&la(t,this),Sl(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ve(ct(this.source),e=>{kt(e)&&Ci(e,this)}),this._active.clear(),Su(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ct(this.source).reduce((t,n)=>Math.max(t,(Sl(n)?n.priority:0)+1),0))}};function SO(e){return e.idle!==!1}function lp(e){return!e.size||Array.from(e).every(SO)}function Su(e){e.idle||(e.idle=!0,ve(tc(e),t=>{t.done=!0}),Oi(e,{type:"idle",parent:e}))}var Vi=(e,...t)=>new Vv(e,t);Ut.assign({createStringInterpolator:Ev,to:(e,t)=>new Vv(e,t)});var Yv=/^--/;function kO(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Yv.test(e)&&!(ni.hasOwnProperty(e)&&ni[e])?t+"px":(""+t).trim()}var dp={};function RO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:s,viewBox:o,...c}=t,u=Object.values(c),l=Object.keys(c).map(d=>n||e.hasAttribute(d)?d:dp[d]||(dp[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=kO(d,r[d]);Yv.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),o!==void 0&&e.setAttribute("viewBox",o)}var ni={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},AO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),MO=["Webkit","Ms","Moz","O"];ni=Object.keys(ni).reduce((e,t)=>(MO.forEach(n=>e[AO(n,t)]=e[t]),e),ni);var $O=/^(matrix|translate|scale|rotate|skew)/,jO=/^(translate)/,PO=/^(rotate|skew)/,ku=(e,t)=>q.num(e)&&e!==0?e+t:e,Ps=(e,t)=>q.arr(e)?e.every(n=>Ps(n,t)):q.num(e)?e===t:parseFloat(e)===t,IO=class extends nc{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(o=>ku(o,"px")).join(",")})`,Ps(s,0)])),Qt(r,(s,o)=>{if(o==="transform")a.push([s||""]),i.push(c=>[c,c===""]);else if($O.test(o)){if(delete r[o],q.und(s))return;const c=jO.test(o)?"px":PO.test(o)?"deg":"";a.push(ct(s)),i.push(o==="rotate3d"?([u,l,d,f])=>[`rotate3d(${u},${l},${d},${ku(f,c)})`,Ps(f,0)]:u=>[`${o}(${u.map(l=>ku(l,c)).join(",")})`,Ps(u,o.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new NO(a,i)),super(r)}},NO=class extends Tv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ve(this.inputs,(n,r)=>{const a=dt(n[0]),[i,s]=this.transforms[r](q.arr(a)?a:n.map(dt));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&ve(this.inputs,t=>ve(t,n=>kt(n)&&la(n,this)))}observerRemoved(e){e==0&&ve(this.inputs,t=>ve(t,n=>kt(n)&&Ci(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Oi(this,e)}},DO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ut.assign({batchedUpdates:$n.unstable_batchedUpdates,createStringInterpolator:Ev,colors:A8});var FO=uO(DO,{applyAnimatedValues:RO,createAnimatedStyle:e=>new IO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),dn=FO.animated;function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vr.apply(this,arguments)}var LO={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},fp=function(e,t){return"translate("+e+"px, "+t+"px)"},Zv=p.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=St(),s=va(),o=s.animate,c=s.config,u=_y(),l=u[0],d=u[1],f=p.useRef(!1),m=void 0,g=!1,v=d.width>0&&d.height>0,h=Math.round(n[0]),w=Math.round(n[1]);v&&(r==="top"?(h-=d.width/2,w-=d.height+14):r==="right"?(h+=14,w-=d.height/2):r==="bottom"?(h-=d.width/2,w+=14):r==="left"?(h-=d.width+14,w-=d.height/2):r==="center"&&(h-=d.width/2,w-=d.height/2),m={transform:fp(h,w)},f.current||(g=!0),f.current=[h,w]);var x=Kd({to:m,config:c,immediate:!o||g}),b=vr({},LO,i.tooltip.wrapper,{transform:(t=x.transform)!=null?t:fp(h,w),opacity:x.transform?1:0});return y.jsx(dn.div,{ref:l,style:b,children:a})});Zv.displayName="TooltipWrapper";var UO=p.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:vr({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),zO=p.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,s=i!==void 0&&i,o=e.color,c=e.renderContent,u=St(),l=xy(a);if(typeof c=="function")t=c();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:u.tooltip.basic,children:[s&&y.jsx(UO,{color:o,style:u.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:u.tooltip.container,children:t})}),BO={width:"100%",borderCollapse:"collapse"},WO=p.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,s=St();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:vr({},BO,s.tooltip.table),children:y.jsx("tbody",{children:a.map(function(o,c){return y.jsx("tr",{children:o.map(function(u,l){return y.jsx("td",{style:s.tooltip.tableCell,children:u},l)})},c)})})})]}),y.jsx("div",{style:s.tooltip.container,children:t})):null});WO.displayName="TableTooltip";var $l=p.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=St(),s=va(),o=s.animate,c=s.config,u=p.useMemo(function(){return vr({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=Kd({x1:t,x2:n,y1:r,y2:a,config:c,immediate:!o});return y.jsx(dn.line,vr({},l,{fill:"none",style:u}))});$l.displayName="CrosshairLine";var qO=p.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,s=e.x,o=e.y;return i==="cross"?(t={x0:s,x1:s,y0:0,y1:a},n={x0:0,x1:r,y0:o,y1:o}):i==="top-left"?(t={x0:s,x1:s,y0:0,y1:o},n={x0:0,x1:s,y0:o,y1:o}):i==="top"?t={x0:s,x1:s,y0:0,y1:o}:i==="top-right"?(t={x0:s,x1:s,y0:0,y1:o},n={x0:s,x1:r,y0:o,y1:o}):i==="right"?n={x0:s,x1:r,y0:o,y1:o}:i==="bottom-right"?(t={x0:s,x1:s,y0:o,y1:a},n={x0:s,x1:r,y0:o,y1:o}):i==="bottom"?t={x0:s,x1:s,y0:o,y1:a}:i==="bottom-left"?(t={x0:s,x1:s,y0:o,y1:a},n={x0:0,x1:s,y0:o,y1:o}):i==="left"?n={x0:0,x1:s,y0:o,y1:o}:i==="x"?t={x0:s,x1:s,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:o,y1:o}),y.jsxs(y.Fragment,{children:[t&&y.jsx($l,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx($l,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});qO.displayName="Crosshair";var Gv=p.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),jl={isVisible:!1,position:[null,null],content:null,anchor:null},Kv=p.createContext(jl),HO=function(e){var t=p.useState(jl),n=t[0],r=t[1],a=p.useCallback(function(o,c,u){var l=c[0],d=c[1];u===void 0&&(u="top"),r({isVisible:!0,position:[l,d],anchor:u,content:o})},[r]),i=p.useCallback(function(o,c,u){u===void 0&&(u="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,m="touches"in c?c.touches[0]:c,g=m.clientX,v=m.clientY,h=(g-l.left)*f,w=(v-l.top)*f;u!=="left"&&u!=="right"||(u=h<l.width/2?"right":"left"),r({isVisible:!0,position:[h,w],anchor:u,content:o})},[e,r]),s=p.useCallback(function(){r(jl)},[r]);return{actions:p.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:s}},[a,i,s]),state:n}},VO=function(){var e=p.useContext(Gv);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},YO=function(){var e=p.useContext(Kv);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},ZO=function(e){return e.isVisible},GO=function(){var e=YO();return ZO(e)?y.jsx(Zv,{position:e.position,anchor:e.anchor,children:e.content}):null},KO=function(e){var t=e.container,n=e.children,r=HO(t),a=r.actions,i=r.state;return y.jsx(Gv.Provider,{value:a,children:y.jsx(Kv.Provider,{value:i,children:n})})};function XO(){this.__data__=[],this.size=0}var JO=XO;function QO(e,t){return e===t||e!==e&&t!==t}var Yi=QO,eC=Yi;function tC(e,t){for(var n=e.length;n--;)if(eC(e[n][0],t))return n;return-1}var ac=tC,nC=ac,rC=Array.prototype,aC=rC.splice;function iC(e){var t=this.__data__,n=nC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aC.call(t,n,1),--this.size,!0}var sC=iC,oC=ac;function cC(e){var t=this.__data__,n=oC(t,e);return n<0?void 0:t[n][1]}var uC=cC,lC=ac;function dC(e){return lC(this.__data__,e)>-1}var fC=dC,hC=ac;function pC(e,t){var n=this.__data__,r=hC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var mC=pC,gC=JO,vC=sC,bC=uC,yC=fC,_C=mC;function da(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}da.prototype.clear=gC;da.prototype.delete=vC;da.prototype.get=bC;da.prototype.has=yC;da.prototype.set=_C;var ic=da,xC=ic;function wC(){this.__data__=new xC,this.size=0}var TC=wC;function OC(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var CC=OC;function EC(e){return this.__data__.get(e)}var SC=EC;function kC(e){return this.__data__.has(e)}var RC=kC,AC=typeof is=="object"&&is&&is.Object===Object&&is,Xv=AC,MC=Xv,$C=typeof self=="object"&&self&&self.Object===Object&&self,jC=MC||$C||Function("return this")(),tn=jC,PC=tn,IC=PC.Symbol,Zi=IC,hp=Zi,Jv=Object.prototype,NC=Jv.hasOwnProperty,DC=Jv.toString,Fa=hp?hp.toStringTag:void 0;function FC(e){var t=NC.call(e,Fa),n=e[Fa];try{e[Fa]=void 0;var r=!0}catch{}var a=DC.call(e);return r&&(t?e[Fa]=n:delete e[Fa]),a}var LC=FC,UC=Object.prototype,zC=UC.toString;function BC(e){return zC.call(e)}var WC=BC,pp=Zi,qC=LC,HC=WC,VC="[object Null]",YC="[object Undefined]",mp=pp?pp.toStringTag:void 0;function ZC(e){return e==null?e===void 0?YC:VC:mp&&mp in Object(e)?qC(e):HC(e)}var Tr=ZC;function GC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vn=GC,KC=Tr,XC=Vn,JC="[object AsyncFunction]",QC="[object Function]",eE="[object GeneratorFunction]",tE="[object Proxy]";function nE(e){if(!XC(e))return!1;var t=KC(e);return t==QC||t==eE||t==JC||t==tE}var sc=nE;const Qv=vt(sc);var rE=tn,aE=rE["__core-js_shared__"],iE=aE,Ru=iE,gp=function(){var e=/[^.]+$/.exec(Ru&&Ru.keys&&Ru.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sE(e){return!!gp&&gp in e}var oE=sE,cE=Function.prototype,uE=cE.toString;function lE(e){if(e!=null){try{return uE.call(e)}catch{}try{return e+""}catch{}}return""}var eb=lE,dE=sc,fE=oE,hE=Vn,pE=eb,mE=/[\\^$.*+?()[\]{}|]/g,gE=/^\[object .+?Constructor\]$/,vE=Function.prototype,bE=Object.prototype,yE=vE.toString,_E=bE.hasOwnProperty,xE=RegExp("^"+yE.call(_E).replace(mE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wE(e){if(!hE(e)||fE(e))return!1;var t=dE(e)?xE:gE;return t.test(pE(e))}var TE=wE;function OE(e,t){return e==null?void 0:e[t]}var CE=OE,EE=TE,SE=CE;function kE(e,t){var n=SE(e,t);return EE(n)?n:void 0}var Or=kE,RE=Or,AE=tn,ME=RE(AE,"Map"),Jd=ME,$E=Or,jE=$E(Object,"create"),oc=jE,vp=oc;function PE(){this.__data__=vp?vp(null):{},this.size=0}var IE=PE;function NE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DE=NE,FE=oc,LE="__lodash_hash_undefined__",UE=Object.prototype,zE=UE.hasOwnProperty;function BE(e){var t=this.__data__;if(FE){var n=t[e];return n===LE?void 0:n}return zE.call(t,e)?t[e]:void 0}var WE=BE,qE=oc,HE=Object.prototype,VE=HE.hasOwnProperty;function YE(e){var t=this.__data__;return qE?t[e]!==void 0:VE.call(t,e)}var ZE=YE,GE=oc,KE="__lodash_hash_undefined__";function XE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=GE&&t===void 0?KE:t,this}var JE=XE,QE=IE,e7=DE,t7=WE,n7=ZE,r7=JE;function fa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fa.prototype.clear=QE;fa.prototype.delete=e7;fa.prototype.get=t7;fa.prototype.has=n7;fa.prototype.set=r7;var a7=fa,bp=a7,i7=ic,s7=Jd;function o7(){this.size=0,this.__data__={hash:new bp,map:new(s7||i7),string:new bp}}var c7=o7;function u7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var l7=u7,d7=l7;function f7(e,t){var n=e.__data__;return d7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var cc=f7,h7=cc;function p7(e){var t=h7(this,e).delete(e);return this.size-=t?1:0,t}var m7=p7,g7=cc;function v7(e){return g7(this,e).get(e)}var b7=v7,y7=cc;function _7(e){return y7(this,e).has(e)}var x7=_7,w7=cc;function T7(e,t){var n=w7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var O7=T7,C7=c7,E7=m7,S7=b7,k7=x7,R7=O7;function ha(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ha.prototype.clear=C7;ha.prototype.delete=E7;ha.prototype.get=S7;ha.prototype.has=k7;ha.prototype.set=R7;var Qd=ha,A7=ic,M7=Jd,$7=Qd,j7=200;function P7(e,t){var n=this.__data__;if(n instanceof A7){var r=n.__data__;if(!M7||r.length<j7-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $7(r)}return n.set(e,t),this.size=n.size,this}var I7=P7,N7=ic,D7=TC,F7=CC,L7=SC,U7=RC,z7=I7;function pa(e){var t=this.__data__=new N7(e);this.size=t.size}pa.prototype.clear=D7;pa.prototype.delete=F7;pa.prototype.get=L7;pa.prototype.has=U7;pa.prototype.set=z7;var tb=pa,B7=Or,W7=function(){try{var e=B7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nb=W7,yp=nb;function q7(e,t,n){t=="__proto__"&&yp?yp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ef=q7,H7=ef,V7=Yi;function Y7(e,t,n){(n!==void 0&&!V7(e[t],n)||n===void 0&&!(t in e))&&H7(e,t,n)}var rb=Y7;function Z7(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var c=s[e?o:++a];if(n(i[c],c,i)===!1)break}return t}}var G7=Z7,K7=G7,X7=K7(),J7=X7,uo={exports:{}};uo.exports;(function(e,t){var n=tn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,o=s?s.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var d=u.length,f=o?o(d):new u.constructor(d);return u.copy(f),f}e.exports=c})(uo,uo.exports);var Q7=uo.exports,eS=tn,tS=eS.Uint8Array,ab=tS,_p=ab;function nS(e){var t=new e.constructor(e.byteLength);return new _p(t).set(new _p(e)),t}var rS=nS,aS=rS;function iS(e,t){var n=t?aS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sS=iS;function oS(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var cS=oS,uS=Vn,xp=Object.create,lS=function(){function e(){}return function(t){if(!uS(t))return{};if(xp)return xp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),dS=lS;function fS(e,t){return function(n){return e(t(n))}}var ib=fS,hS=ib,pS=hS(Object.getPrototypeOf,Object),sb=pS,mS=Object.prototype;function gS(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mS;return e===n}var tf=gS,vS=dS,bS=sb,yS=tf;function _S(e){return typeof e.constructor=="function"&&!yS(e)?vS(bS(e)):{}}var xS=_S;function wS(e){return e!=null&&typeof e=="object"}var Yn=wS,TS=Tr,OS=Yn,CS="[object Arguments]";function ES(e){return OS(e)&&TS(e)==CS}var SS=ES,wp=SS,kS=Yn,ob=Object.prototype,RS=ob.hasOwnProperty,AS=ob.propertyIsEnumerable,MS=wp(function(){return arguments}())?wp:function(e){return kS(e)&&RS.call(e,"callee")&&!AS.call(e,"callee")},uc=MS,$S=Array.isArray,nn=$S,jS=9007199254740991;function PS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jS}var nf=PS,IS=sc,NS=nf;function DS(e){return e!=null&&NS(e.length)&&!IS(e)}var lc=DS,FS=lc,LS=Yn;function US(e){return LS(e)&&FS(e)}var cb=US,lo={exports:{}};function zS(){return!1}var BS=zS;lo.exports;(function(e,t){var n=tn,r=BS,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,o=s?n.Buffer:void 0,c=o?o.isBuffer:void 0,u=c||r;e.exports=u})(lo,lo.exports);var rf=lo.exports,WS=Tr,qS=sb,HS=Yn,VS="[object Object]",YS=Function.prototype,ZS=Object.prototype,ub=YS.toString,GS=ZS.hasOwnProperty,KS=ub.call(Object);function XS(e){if(!HS(e)||WS(e)!=VS)return!1;var t=qS(e);if(t===null)return!0;var n=GS.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ub.call(n)==KS}var lb=XS;const af=vt(lb);var JS=Tr,QS=nf,ek=Yn,tk="[object Arguments]",nk="[object Array]",rk="[object Boolean]",ak="[object Date]",ik="[object Error]",sk="[object Function]",ok="[object Map]",ck="[object Number]",uk="[object Object]",lk="[object RegExp]",dk="[object Set]",fk="[object String]",hk="[object WeakMap]",pk="[object ArrayBuffer]",mk="[object DataView]",gk="[object Float32Array]",vk="[object Float64Array]",bk="[object Int8Array]",yk="[object Int16Array]",_k="[object Int32Array]",xk="[object Uint8Array]",wk="[object Uint8ClampedArray]",Tk="[object Uint16Array]",Ok="[object Uint32Array]",Le={};Le[gk]=Le[vk]=Le[bk]=Le[yk]=Le[_k]=Le[xk]=Le[wk]=Le[Tk]=Le[Ok]=!0;Le[tk]=Le[nk]=Le[pk]=Le[rk]=Le[mk]=Le[ak]=Le[ik]=Le[sk]=Le[ok]=Le[ck]=Le[uk]=Le[lk]=Le[dk]=Le[fk]=Le[hk]=!1;function Ck(e){return ek(e)&&QS(e.length)&&!!Le[JS(e)]}var Ek=Ck;function Sk(e){return function(t){return e(t)}}var db=Sk,fo={exports:{}};fo.exports;(function(e,t){var n=Xv,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,o=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o})(fo,fo.exports);var kk=fo.exports,Rk=Ek,Ak=db,Tp=kk,Op=Tp&&Tp.isTypedArray,Mk=Op?Ak(Op):Rk,sf=Mk;function $k(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var fb=$k,jk=ef,Pk=Yi,Ik=Object.prototype,Nk=Ik.hasOwnProperty;function Dk(e,t,n){var r=e[t];(!(Nk.call(e,t)&&Pk(r,n))||n===void 0&&!(t in e))&&jk(e,t,n)}var hb=Dk,Fk=hb,Lk=ef;function Uk(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var o=t[i],c=r?r(n[o],e[o],o,n,e):void 0;c===void 0&&(c=e[o]),a?Lk(n,o,c):Fk(n,o,c)}return n}var zk=Uk;function Bk(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Wk=Bk,qk=9007199254740991,Hk=/^(?:0|[1-9]\d*)$/;function Vk(e,t){var n=typeof e;return t=t??qk,!!t&&(n=="number"||n!="symbol"&&Hk.test(e))&&e>-1&&e%1==0&&e<t}var dc=Vk,Yk=Wk,Zk=uc,Gk=nn,Kk=rf,Xk=dc,Jk=sf,Qk=Object.prototype,e9=Qk.hasOwnProperty;function t9(e,t){var n=Gk(e),r=!n&&Zk(e),a=!n&&!r&&Kk(e),i=!n&&!r&&!a&&Jk(e),s=n||r||a||i,o=s?Yk(e.length,String):[],c=o.length;for(var u in e)(t||e9.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Xk(u,c)))&&o.push(u);return o}var pb=t9;function n9(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var r9=n9,a9=Vn,i9=tf,s9=r9,o9=Object.prototype,c9=o9.hasOwnProperty;function u9(e){if(!a9(e))return s9(e);var t=i9(e),n=[];for(var r in e)r=="constructor"&&(t||!c9.call(e,r))||n.push(r);return n}var l9=u9,d9=pb,f9=l9,h9=lc;function p9(e){return h9(e)?d9(e,!0):f9(e)}var mb=p9,m9=zk,g9=mb;function v9(e){return m9(e,g9(e))}var b9=v9,Cp=rb,y9=Q7,_9=sS,x9=cS,w9=xS,Ep=uc,Sp=nn,T9=cb,O9=rf,C9=sc,E9=Vn,S9=lb,k9=sf,kp=fb,R9=b9;function A9(e,t,n,r,a,i,s){var o=kp(e,n),c=kp(t,n),u=s.get(c);if(u){Cp(e,n,u);return}var l=i?i(o,c,n+"",e,t,s):void 0,d=l===void 0;if(d){var f=Sp(c),m=!f&&O9(c),g=!f&&!m&&k9(c);l=c,f||m||g?Sp(o)?l=o:T9(o)?l=x9(o):m?(d=!1,l=y9(c,!0)):g?(d=!1,l=_9(c,!0)):l=[]:S9(c)||Ep(c)?(l=o,Ep(o)?l=R9(o):(!E9(o)||C9(o))&&(l=w9(c))):d=!1}d&&(s.set(c,l),a(l,c,r,i,s),s.delete(c)),Cp(e,n,l)}var M9=A9,$9=tb,j9=rb,P9=J7,I9=M9,N9=Vn,D9=mb,F9=fb;function gb(e,t,n,r,a){e!==t&&P9(t,function(i,s){if(a||(a=new $9),N9(i))I9(e,t,s,n,gb,r,a);else{var o=r?r(F9(e,s),i,s+"",e,t,a):void 0;o===void 0&&(o=i),j9(e,s,o)}},D9)}var L9=gb;function U9(e){return e}var vb=U9;function z9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var B9=z9,W9=B9,Rp=Math.max;function q9(e,t,n){return t=Rp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Rp(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(s),W9(e,this,o)}}var bb=q9;function H9(e){return function(){return e}}var V9=H9,Y9=V9,Ap=nb,Z9=vb,G9=Ap?function(e,t){return Ap(e,"toString",{configurable:!0,enumerable:!1,value:Y9(t),writable:!0})}:Z9,K9=G9,X9=800,J9=16,Q9=Date.now;function eR(e){var t=0,n=0;return function(){var r=Q9(),a=J9-(r-n);if(n=r,a>0){if(++t>=X9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var tR=eR,nR=K9,rR=tR,aR=rR(nR),yb=aR,iR=vb,sR=bb,oR=yb;function cR(e,t){return oR(sR(e,t,iR),e+"")}var _b=cR,uR=Yi,lR=lc,dR=dc,fR=Vn;function hR(e,t,n){if(!fR(n))return!1;var r=typeof t;return(r=="number"?lR(n)&&dR(t,n.length):r=="string"&&t in n)?uR(n[t],e):!1}var pR=hR,mR=_b,gR=pR;function vR(e){return mR(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&gR(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var o=n[r];o&&e(t,o,r,i)}return t})}var bR=vR,yR=L9,_R=bR,xR=_R(function(e,t,n){yR(e,t,n)}),wR=xR;const TR=vt(wR);var OR=Tr,CR=Yn,ER="[object Symbol]";function SR(e){return typeof e=="symbol"||CR(e)&&OR(e)==ER}var of=SR,kR=nn,RR=of,AR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MR=/^\w*$/;function $R(e,t){if(kR(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||RR(e)?!0:MR.test(e)||!AR.test(e)||t!=null&&e in Object(t)}var jR=$R,xb=Qd,PR="Expected a function";function cf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(PR);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(cf.Cache||xb),n}cf.Cache=xb;var IR=cf,NR=IR,DR=500;function FR(e){var t=NR(e,function(r){return n.size===DR&&n.clear(),r}),n=t.cache;return t}var LR=FR,UR=LR,zR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BR=/\\(\\)?/g,WR=UR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zR,function(n,r,a,i){t.push(a?i.replace(BR,"$1"):r||n)}),t}),qR=WR;function HR(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var wb=HR,Mp=Zi,VR=wb,YR=nn,ZR=of,GR=1/0,$p=Mp?Mp.prototype:void 0,jp=$p?$p.toString:void 0;function Tb(e){if(typeof e=="string")return e;if(YR(e))return VR(e,Tb)+"";if(ZR(e))return jp?jp.call(e):"";var t=e+"";return t=="0"&&1/e==-GR?"-0":t}var KR=Tb,XR=KR;function JR(e){return e==null?"":XR(e)}var QR=JR,eA=nn,tA=jR,nA=qR,rA=QR;function aA(e,t){return eA(e)?e:tA(e,t)?[e]:nA(rA(e))}var fc=aA,iA=of,sA=1/0;function oA(e){if(typeof e=="string"||iA(e))return e;var t=e+"";return t=="0"&&1/e==-sA?"-0":t}var uf=oA,cA=fc,uA=uf;function lA(e,t){t=cA(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[uA(t[n++])];return n&&n==r?e:void 0}var Ob=lA,dA=Ob;function fA(e,t,n){var r=e==null?void 0:dA(e,t);return r===void 0?n:r}var hA=fA;const bn=vt(hA);var pA=hb,mA=fc,gA=dc,Pp=Vn,vA=uf;function bA(e,t,n,r){if(!Pp(e))return e;t=mA(t,e);for(var a=-1,i=t.length,s=i-1,o=e;o!=null&&++a<i;){var c=vA(t[a]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var l=o[c];u=r?r(l,c,o):void 0,u===void 0&&(u=Pp(l)?l:gA(t[a+1])?[]:{})}pA(o,c,u),o=o[c]}return e}var Cb=bA,yA=Cb;function _A(e,t,n){return e==null?e:yA(e,t,n)}var xA=_A;const Ga=vt(xA);function hc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ma(){}var br=.7,na=1/br,Wr="\\s*([+-]?\\d+)\\s*",Mi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wA=/^#([0-9a-f]{3,8})$/,TA=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),OA=new RegExp(`^rgb\\(${Kt},${Kt},${Kt}\\)$`),CA=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${Mi}\\)$`),EA=new RegExp(`^rgba\\(${Kt},${Kt},${Kt},${Mi}\\)$`),SA=new RegExp(`^hsl\\(${Mi},${Kt},${Kt}\\)$`),kA=new RegExp(`^hsla\\(${Mi},${Kt},${Kt},${Mi}\\)$`),Ip={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};hc(ma,df,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Np,formatHex:Np,formatHex8:RA,formatHsl:AA,formatRgb:Dp,toString:Dp});function Np(){return this.rgb().formatHex()}function RA(){return this.rgb().formatHex8()}function AA(){return Sb(this).formatHsl()}function Dp(){return this.rgb().formatRgb()}function df(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wA.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Fp(t):n===3?new rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ys(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ys(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=TA.exec(e))?new rt(t[1],t[2],t[3],1):(t=OA.exec(e))?new rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CA.exec(e))?ys(t[1],t[2],t[3],t[4]):(t=EA.exec(e))?ys(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=SA.exec(e))?zp(t[1],t[2]/100,t[3]/100,1):(t=kA.exec(e))?zp(t[1],t[2]/100,t[3]/100,t[4]):Ip.hasOwnProperty(e)?Fp(Ip[e]):e==="transparent"?new rt(NaN,NaN,NaN,0):null}function Fp(e){return new rt(e>>16&255,e>>8&255,e&255,1)}function ys(e,t,n,r){return r<=0&&(e=t=n=NaN),new rt(e,t,n,r)}function Eb(e){return e instanceof ma||(e=df(e)),e?(e=e.rgb(),new rt(e.r,e.g,e.b,e.opacity)):new rt}function ra(e,t,n,r){return arguments.length===1?Eb(e):new rt(e,t,n,r??1)}function rt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hc(rt,ra,lf(ma,{brighter(e){return e=e==null?na:Math.pow(na,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?br:Math.pow(br,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rt(ur(this.r),ur(this.g),ur(this.b),ho(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Lp,formatHex:Lp,formatHex8:MA,formatRgb:Up,toString:Up}));function Lp(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}`}function MA(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}${ar((isNaN(this.opacity)?1:this.opacity)*255)}`}function Up(){const e=ho(this.opacity);return`${e===1?"rgb(":"rgba("}${ur(this.r)}, ${ur(this.g)}, ${ur(this.b)}${e===1?")":`, ${e})`}`}function ho(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ur(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ar(e){return e=ur(e),(e<16?"0":"")+e.toString(16)}function zp(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jt(e,t,n,r)}function Sb(e){if(e instanceof jt)return new jt(e.h,e.s,e.l,e.opacity);if(e instanceof ma||(e=df(e)),!e)return new jt;if(e instanceof jt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,o=i-a,c=(i+a)/2;return o?(t===i?s=(n-r)/o+(n<r)*6:n===i?s=(r-t)/o+2:s=(t-n)/o+4,o/=c<.5?i+a:2-i-a,s*=60):o=c>0&&c<1?0:s,new jt(s,o,c,e.opacity)}function $A(e,t,n,r){return arguments.length===1?Sb(e):new jt(e,t,n,r??1)}function jt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hc(jt,$A,lf(ma,{brighter(e){return e=e==null?na:Math.pow(na,e),new jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?br:Math.pow(br,e),new jt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new rt(Au(e>=240?e-240:e+120,a,r),Au(e,a,r),Au(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new jt(Bp(this.h),_s(this.s),_s(this.l),ho(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ho(this.opacity);return`${e===1?"hsl(":"hsla("}${Bp(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Bp(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Au(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const jA=Math.PI/180,PA=180/Math.PI;var kb=-.14861,ff=1.78277,hf=-.29227,pc=-.90649,$i=1.97294,Wp=$i*pc,qp=$i*ff,Hp=ff*hf-pc*kb;function IA(e){if(e instanceof lr)return new lr(e.h,e.s,e.l,e.opacity);e instanceof rt||(e=Eb(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(Hp*r+Wp*t-qp*n)/(Hp+Wp-qp),i=r-a,s=($i*(n-a)-hf*i)/pc,o=Math.sqrt(s*s+i*i)/($i*a*(1-a)),c=o?Math.atan2(s,i)*PA-120:NaN;return new lr(c<0?c+360:c,o,a,e.opacity)}function en(e,t,n,r){return arguments.length===1?IA(e):new lr(e,t,n,r??1)}function lr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hc(lr,en,lf(ma,{brighter(e){return e=e==null?na:Math.pow(na,e),new lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?br:Math.pow(br,e),new lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*jA,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new rt(255*(t+n*(kb*r+ff*a)),255*(t+n*(hf*r+pc*a)),255*(t+n*($i*r)),this.opacity)}}));function NA(e,t,n,r,a){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*r+s*a)/6}function DA(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],s=r>0?e[r-1]:2*a-i,o=r<t-1?e[r+2]:2*i-a;return NA((n-r/t)*t,s,a,i,o)}}const pf=e=>()=>e;function Rb(e,t){return function(n){return e+n*t}}function FA(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function LA(e,t){var n=t-e;return n?Rb(e,n>180||n<-180?n-360*Math.round(n/360):n):pf(isNaN(e)?t:e)}function UA(e){return(e=+e)==1?qr:function(t,n){return n-t?FA(t,n,e):pf(isNaN(t)?n:t)}}function qr(e,t){var n=t-e;return n?Rb(e,n):pf(isNaN(e)?t:e)}(function e(t){var n=UA(t);function r(a,i){var s=n((a=ra(a)).r,(i=ra(i)).r),o=n(a.g,i.g),c=n(a.b,i.b),u=qr(a.opacity,i.opacity);return function(l){return a.r=s(l),a.g=o(l),a.b=c(l),a.opacity=u(l),a+""}}return r.gamma=e,r})(1);function zA(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),s,o;for(s=0;s<n;++s)o=ra(t[s]),r[s]=o.r||0,a[s]=o.g||0,i[s]=o.b||0;return r=e(r),a=e(a),i=e(i),o.opacity=1,function(c){return o.r=r(c),o.g=a(c),o.b=i(c),o+""}}}var BA=zA(DA);function Ab(e){return function t(n){n=+n;function r(a,i){var s=e((a=en(a)).h,(i=en(i)).h),o=qr(a.s,i.s),c=qr(a.l,i.l),u=qr(a.opacity,i.opacity);return function(l){return a.h=s(l),a.s=o(l),a.l=c(Math.pow(l,n)),a.opacity=u(l),a+""}}return r.gamma=t,r}(1)}Ab(LA);var mf=Ab(qr),WA=Tr,qA=nn,HA=Yn,VA="[object String]";function YA(e){return typeof e=="string"||!qA(e)&&HA(e)&&WA(e)==VA}var ZA=YA;const GA=vt(ZA);function KA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var XA=KA;const de=vt(XA);class Vp extends Map{constructor(t,n=eM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(Yp(this,t))}has(t){return super.has(Yp(this,t))}set(t,n){return super.set(JA(this,t),n)}delete(t){return super.delete(QA(this,t))}}function Yp({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function JA({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function QA({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eM(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tM(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Zp=Symbol("implicit");function Fr(){var e=new Vp,t=[],n=[],r=Zp;function a(i){let s=e.get(i);if(s===void 0){if(r!==Zp)return r;e.set(i,s=t.push(i)-1)}return n[s%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Vp;for(const s of i)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Fr(t,n).unknown(r)},tM.apply(a,arguments),a}function nM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function po(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function rM(e){return e=po(Math.abs(e)),e?e[1]:NaN}function aM(e,t){return function(n,r){for(var a=n.length,i=[],s=0,o=e[0],c=0;a>0&&o>0&&(c+o+1>r&&(o=Math.max(1,r-c)),i.push(n.substring(a-=o,a+o)),!((c+=o+1)>r));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function iM(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var sM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pl(e){if(!(t=sM.exec(e)))throw new Error("invalid format: "+e);var t;return new gf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Pl.prototype=gf.prototype;function gf(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}gf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function oM(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var Mb;function cM(e,t){var n=po(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(Mb=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+po(e,Math.max(0,t+i-1))[0]}function Gp(e,t){var n=po(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const Kp={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:nM,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Gp(e*100,t)},r:Gp,s:cM,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Xp(e){return e}var Jp=Array.prototype.map,Qp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uM(e){var t=e.grouping===void 0||e.thousands===void 0?Xp:aM(Jp.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Xp:iM(Jp.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"-":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Pl(d);var f=d.fill,m=d.align,g=d.sign,v=d.symbol,h=d.zero,w=d.width,x=d.comma,b=d.precision,T=d.trim,_=d.type;_==="n"?(x=!0,_="g"):Kp[_]||(b===void 0&&(b=12),T=!0,_="g"),(h||f==="0"&&m==="=")&&(h=!0,f="0",m="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=v==="$"?r:/[%p]/.test(_)?s:"",D=Kp[_],I=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function M(k){var Y=S,A=$,R,F,B;if(_==="c")A=D(k)+A,k="";else{k=+k;var L=k<0||1/k<0;if(k=isNaN(k)?c:D(Math.abs(k),b),T&&(k=oM(k)),L&&+k==0&&g!=="+"&&(L=!1),Y=(L?g==="("?g:o:g==="-"||g==="("?"":g)+Y,A=(_==="s"?Qp[8+Mb/3]:"")+A+(L&&g==="("?")":""),I){for(R=-1,F=k.length;++R<F;)if(B=k.charCodeAt(R),48>B||B>57){A=(B===46?a+k.slice(R+1):k.slice(R))+A,k=k.slice(0,R);break}}}x&&!h&&(k=t(k,1/0));var G=Y.length+k.length+A.length,Z=G<w?new Array(w-G+1).join(f):"";switch(x&&h&&(k=t(Z+k,Z.length?w-A.length:1/0),Z=""),m){case"<":k=Y+k+A+Z;break;case"=":k=Y+Z+k+A;break;case"^":k=Z.slice(0,G=Z.length>>1)+Y+k+A+Z.slice(G);break;default:k=Z+Y+k+A;break}return i(k)}return M.toString=function(){return d+""},M}function l(d,f){var m=u((d=Pl(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(rM(f)/3)))*3,v=Math.pow(10,-g),h=Qp[8+g/3];return function(w){return m(v*w)+h}}return{format:u,formatPrefix:l}}var xs,$b;lM({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function lM(e){return xs=uM(e),$b=xs.format,xs.formatPrefix,xs}var Mu=new Date,$u=new Date;function xn(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var s=a(i),o=a.ceil(i);return i-s<o-i?s:o},a.offset=function(i,s){return t(i=new Date(+i),s==null?1:Math.floor(s)),i},a.range=function(i,s,o){var c=[],u;if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<s)||!(o>0))return c;do c.push(u=new Date(+i)),t(i,o),e(i);while(u<i&&i<s);return c},a.filter=function(i){return xn(function(s){if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},function(s,o){if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!i(s););else for(;--o>=0;)for(;t(s,1),!i(s););})},n&&(a.count=function(i,s){return Mu.setTime(+i),$u.setTime(+s),e(Mu),e($u),Math.floor(n(Mu,$u))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(s){return r(s)%i===0}:function(s){return a.count(0,s)%i===0}):a}),a}const dM=1e3,vf=dM*60,fM=vf*60,bf=fM*24,jb=bf*7;var yf=xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vf)/bf,e=>e.getDate()-1);yf.range;function Cr(e){return xn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*vf)/jb})}var Pb=Cr(0),mo=Cr(1),hM=Cr(2),pM=Cr(3),aa=Cr(4),mM=Cr(5),gM=Cr(6);Pb.range;mo.range;hM.range;pM.range;aa.range;mM.range;gM.range;var yr=xn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});yr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};yr.range;var _f=xn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/bf},function(e){return e.getUTCDate()-1});_f.range;function Er(e){return xn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/jb})}var Ib=Er(0),go=Er(1),vM=Er(2),bM=Er(3),ia=Er(4),yM=Er(5),_M=Er(6);Ib.range;go.range;vM.range;bM.range;ia.range;yM.range;_M.range;var _r=xn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});_r.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};_r.range;function ju(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Pu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function La(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function xM(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,s=e.shortDays,o=e.months,c=e.shortMonths,u=Ua(a),l=za(a),d=Ua(i),f=za(i),m=Ua(s),g=za(s),v=Ua(o),h=za(o),w=Ua(c),x=za(c),b={a:L,A:G,b:Z,B:j,c:null,d:im,e:im,f:qM,g:e$,G:n$,H:zM,I:BM,j:WM,L:Nb,m:HM,M:VM,p:U,q:J,Q:cm,s:um,S:YM,u:ZM,U:GM,V:KM,w:XM,W:JM,x:null,X:null,y:QM,Y:t$,Z:r$,"%":om},T={a:te,A:K,b:X,B:V,c:null,d:sm,e:sm,f:o$,g:v$,G:y$,H:a$,I:i$,j:s$,L:Fb,m:c$,M:u$,p:Q,q:ee,Q:cm,s:um,S:l$,u:d$,U:f$,V:h$,w:p$,W:m$,x:null,X:null,y:g$,Y:b$,Z:_$,"%":om},_={a:M,A:k,b:Y,B:A,c:R,d:rm,e:rm,f:DM,g:nm,G:tm,H:am,I:am,j:jM,L:NM,m:$M,M:PM,p:I,q:MM,Q:LM,s:UM,S:IM,u:EM,U:SM,V:kM,w:CM,W:RM,x:F,X:B,y:nm,Y:tm,Z:AM,"%":FM};b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),T.x=S(n,T),T.X=S(r,T),T.c=S(t,T);function S(N,W){return function(ne){var O=[],ge=-1,he=0,ue=N.length,Ae,ze,bt;for(ne instanceof Date||(ne=new Date(+ne));++ge<ue;)N.charCodeAt(ge)===37&&(O.push(N.slice(he,ge)),(ze=em[Ae=N.charAt(++ge)])!=null?Ae=N.charAt(++ge):ze=Ae==="e"?" ":"0",(bt=W[Ae])&&(Ae=bt(ne,ze)),O.push(Ae),he=ge+1);return O.push(N.slice(he,ge)),O.join("")}}function $(N,W){return function(ne){var O=La(1900,void 0,1),ge=D(O,N,ne+="",0),he,ue;if(ge!=ne.length)return null;if("Q"in O)return new Date(O.Q);if("s"in O)return new Date(O.s*1e3+("L"in O?O.L:0));if(W&&!("Z"in O)&&(O.Z=0),"p"in O&&(O.H=O.H%12+O.p*12),O.m===void 0&&(O.m="q"in O?O.q:0),"V"in O){if(O.V<1||O.V>53)return null;"w"in O||(O.w=1),"Z"in O?(he=Pu(La(O.y,0,1)),ue=he.getUTCDay(),he=ue>4||ue===0?go.ceil(he):go(he),he=_f.offset(he,(O.V-1)*7),O.y=he.getUTCFullYear(),O.m=he.getUTCMonth(),O.d=he.getUTCDate()+(O.w+6)%7):(he=ju(La(O.y,0,1)),ue=he.getDay(),he=ue>4||ue===0?mo.ceil(he):mo(he),he=yf.offset(he,(O.V-1)*7),O.y=he.getFullYear(),O.m=he.getMonth(),O.d=he.getDate()+(O.w+6)%7)}else("W"in O||"U"in O)&&("w"in O||(O.w="u"in O?O.u%7:"W"in O?1:0),ue="Z"in O?Pu(La(O.y,0,1)).getUTCDay():ju(La(O.y,0,1)).getDay(),O.m=0,O.d="W"in O?(O.w+6)%7+O.W*7-(ue+5)%7:O.w+O.U*7-(ue+6)%7);return"Z"in O?(O.H+=O.Z/100|0,O.M+=O.Z%100,Pu(O)):ju(O)}}function D(N,W,ne,O){for(var ge=0,he=W.length,ue=ne.length,Ae,ze;ge<he;){if(O>=ue)return-1;if(Ae=W.charCodeAt(ge++),Ae===37){if(Ae=W.charAt(ge++),ze=_[Ae in em?W.charAt(ge++):Ae],!ze||(O=ze(N,ne,O))<0)return-1}else if(Ae!=ne.charCodeAt(O++))return-1}return O}function I(N,W,ne){var O=u.exec(W.slice(ne));return O?(N.p=l.get(O[0].toLowerCase()),ne+O[0].length):-1}function M(N,W,ne){var O=m.exec(W.slice(ne));return O?(N.w=g.get(O[0].toLowerCase()),ne+O[0].length):-1}function k(N,W,ne){var O=d.exec(W.slice(ne));return O?(N.w=f.get(O[0].toLowerCase()),ne+O[0].length):-1}function Y(N,W,ne){var O=w.exec(W.slice(ne));return O?(N.m=x.get(O[0].toLowerCase()),ne+O[0].length):-1}function A(N,W,ne){var O=v.exec(W.slice(ne));return O?(N.m=h.get(O[0].toLowerCase()),ne+O[0].length):-1}function R(N,W,ne){return D(N,t,W,ne)}function F(N,W,ne){return D(N,n,W,ne)}function B(N,W,ne){return D(N,r,W,ne)}function L(N){return s[N.getDay()]}function G(N){return i[N.getDay()]}function Z(N){return c[N.getMonth()]}function j(N){return o[N.getMonth()]}function U(N){return a[+(N.getHours()>=12)]}function J(N){return 1+~~(N.getMonth()/3)}function te(N){return s[N.getUTCDay()]}function K(N){return i[N.getUTCDay()]}function X(N){return c[N.getUTCMonth()]}function V(N){return o[N.getUTCMonth()]}function Q(N){return a[+(N.getUTCHours()>=12)]}function ee(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var W=S(N+="",b);return W.toString=function(){return N},W},parse:function(N){var W=$(N+="",!1);return W.toString=function(){return N},W},utcFormat:function(N){var W=S(N+="",T);return W.toString=function(){return N},W},utcParse:function(N){var W=$(N+="",!0);return W.toString=function(){return N},W}}}var em={"-":"",_:" ",0:"0"},Je=/^\s*\d+/,wM=/^%/,TM=/[\\^$*+?|[\]().{}]/g;function ke(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function OM(e){return e.replace(TM,"\\$&")}function Ua(e){return new RegExp("^(?:"+e.map(OM).join("|")+")","i")}function za(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function CM(e,t,n){var r=Je.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function EM(e,t,n){var r=Je.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SM(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function kM(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function RM(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tm(e,t,n){var r=Je.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nm(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function MM(e,t,n){var r=Je.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function $M(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rm(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jM(e,t,n){var r=Je.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function am(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function PM(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IM(e,t,n){var r=Je.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NM(e,t,n){var r=Je.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function DM(e,t,n){var r=Je.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function FM(e,t,n){var r=wM.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function LM(e,t,n){var r=Je.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function UM(e,t,n){var r=Je.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function im(e,t){return ke(e.getDate(),t,2)}function zM(e,t){return ke(e.getHours(),t,2)}function BM(e,t){return ke(e.getHours()%12||12,t,2)}function WM(e,t){return ke(1+yf.count(yr(e),e),t,3)}function Nb(e,t){return ke(e.getMilliseconds(),t,3)}function qM(e,t){return Nb(e,t)+"000"}function HM(e,t){return ke(e.getMonth()+1,t,2)}function VM(e,t){return ke(e.getMinutes(),t,2)}function YM(e,t){return ke(e.getSeconds(),t,2)}function ZM(e){var t=e.getDay();return t===0?7:t}function GM(e,t){return ke(Pb.count(yr(e)-1,e),t,2)}function Db(e){var t=e.getDay();return t>=4||t===0?aa(e):aa.ceil(e)}function KM(e,t){return e=Db(e),ke(aa.count(yr(e),e)+(yr(e).getDay()===4),t,2)}function XM(e){return e.getDay()}function JM(e,t){return ke(mo.count(yr(e)-1,e),t,2)}function QM(e,t){return ke(e.getFullYear()%100,t,2)}function e$(e,t){return e=Db(e),ke(e.getFullYear()%100,t,2)}function t$(e,t){return ke(e.getFullYear()%1e4,t,4)}function n$(e,t){var n=e.getDay();return e=n>=4||n===0?aa(e):aa.ceil(e),ke(e.getFullYear()%1e4,t,4)}function r$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ke(t/60|0,"0",2)+ke(t%60,"0",2)}function sm(e,t){return ke(e.getUTCDate(),t,2)}function a$(e,t){return ke(e.getUTCHours(),t,2)}function i$(e,t){return ke(e.getUTCHours()%12||12,t,2)}function s$(e,t){return ke(1+_f.count(_r(e),e),t,3)}function Fb(e,t){return ke(e.getUTCMilliseconds(),t,3)}function o$(e,t){return Fb(e,t)+"000"}function c$(e,t){return ke(e.getUTCMonth()+1,t,2)}function u$(e,t){return ke(e.getUTCMinutes(),t,2)}function l$(e,t){return ke(e.getUTCSeconds(),t,2)}function d$(e){var t=e.getUTCDay();return t===0?7:t}function f$(e,t){return ke(Ib.count(_r(e)-1,e),t,2)}function Lb(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function h$(e,t){return e=Lb(e),ke(ia.count(_r(e),e)+(_r(e).getUTCDay()===4),t,2)}function p$(e){return e.getUTCDay()}function m$(e,t){return ke(go.count(_r(e)-1,e),t,2)}function g$(e,t){return ke(e.getUTCFullYear()%100,t,2)}function v$(e,t){return e=Lb(e),ke(e.getUTCFullYear()%100,t,2)}function b$(e,t){return ke(e.getUTCFullYear()%1e4,t,4)}function y$(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ia(e):ia.ceil(e),ke(e.getUTCFullYear()%1e4,t,4)}function _$(){return"+0000"}function om(){return"%"}function cm(e){return+e}function um(e){return Math.floor(+e/1e3)}var Ir,Ub;x$({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function x$(e){return Ir=xM(e),Ub=Ir.format,Ir.parse,Ir.utcFormat,Ir.utcParse,Ir}function we(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const zb=we("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Bb=we("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Wb=we("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),qb=we("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Hb=we("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Vb=we("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Yb=we("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Zb=we("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),xf=we("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),w$=we("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),De=e=>BA(e[e.length-1]);var mc=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(we);const T$=De(mc);var gc=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(we);const O$=De(gc);var vc=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(we);const C$=De(vc);var bc=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(we);const E$=De(bc);var yc=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(we);const S$=De(yc);var _c=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(we);const k$=De(_c);var xc=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(we);const R$=De(xc);var wc=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(we);const A$=De(wc);var Tc=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(we);const M$=De(Tc);var Oc=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(we);const $$=De(Oc);var Cc=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(we);const j$=De(Cc);var Ec=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(we);const P$=De(Ec);var Sc=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(we);const I$=De(Sc);var kc=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(we);const N$=De(kc);var Rc=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(we);const D$=De(Rc);var Ac=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(we);const F$=De(Ac);var Mc=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(we);const L$=De(Mc);var $c=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(we);const U$=De($c);var jc=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(we);const z$=De(jc);var Pc=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(we);const B$=De(Pc);var Ic=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(we);const W$=De(Ic);var Nc=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(we);const q$=De(Nc);var Dc=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(we);const H$=De(Dc);var Fc=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(we);const V$=De(Fc);var Lc=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(we);const Y$=De(Lc);var Uc=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(we);const Z$=De(Uc);var zc=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(we);const G$=De(zc);function K$(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const X$=mf(en(300,.5,0),en(-240,.5,1));var J$=mf(en(-100,.75,.35),en(80,1.5,.8)),Q$=mf(en(260,.75,.35),en(80,1.5,.8)),ws=en();function ej(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ws.h=360*e-100,ws.s=1.5-1.5*t,ws.l=.8-.9*t,ws+""}var Ts=ra(),tj=Math.PI/3,nj=Math.PI*2/3;function rj(e){var t;return e=(.5-e)*Math.PI,Ts.r=255*(t=Math.sin(e))*t,Ts.g=255*(t=Math.sin(e+tj))*t,Ts.b=255*(t=Math.sin(e+nj))*t,Ts+""}function aj(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Bc(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const ij=Bc(we("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var sj=Bc(we("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),oj=Bc(we("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),cj=Bc(we("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),uj="__lodash_hash_undefined__";function lj(e){return this.__data__.set(e,uj),this}var dj=lj;function fj(e){return this.__data__.has(e)}var hj=fj,pj=Qd,mj=dj,gj=hj;function vo(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new pj;++t<n;)this.add(e[t])}vo.prototype.add=vo.prototype.push=mj;vo.prototype.has=gj;var Gb=vo;function vj(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var bj=vj;function yj(e){return e!==e}var _j=yj;function xj(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var wj=xj,Tj=bj,Oj=_j,Cj=wj;function Ej(e,t,n){return t===t?Cj(e,t,n):Tj(e,Oj,n)}var Sj=Ej,kj=Sj;function Rj(e,t){var n=e==null?0:e.length;return!!n&&kj(e,t,0)>-1}var Aj=Rj;function Mj(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var $j=Mj;function jj(e,t){return e.has(t)}var Kb=jj,Pj=Gb,Ij=Aj,Nj=$j,Dj=wb,Fj=db,Lj=Kb,Uj=200;function zj(e,t,n,r){var a=-1,i=Ij,s=!0,o=e.length,c=[],u=t.length;if(!o)return c;n&&(t=Dj(t,Fj(n))),r?(i=Nj,s=!1):t.length>=Uj&&(i=Lj,s=!1,t=new Pj(t));e:for(;++a<o;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,s&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}var Bj=zj,Wj=Bj,qj=_b,Hj=cb,Vj=qj(function(e,t){return Hj(e)?Wj(e,t):[]}),Yj=Vj;const Xb=vt(Yj);function Ze(e){return function(){return e}}const lm=Math.abs,et=Math.atan2,Xn=Math.cos,Zj=Math.max,Iu=Math.min,Ht=Math.sin,Lr=Math.sqrt,tt=1e-12,ji=Math.PI,bo=ji/2,Is=2*ji;function Gj(e){return e>1?0:e<-1?ji:Math.acos(e)}function dm(e){return e>=1?bo:e<=-1?-bo:Math.asin(e)}const Il=Math.PI,Nl=2*Il,er=1e-6,Kj=Nl-er;function Jb(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Xj(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jb;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class Jj{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Jb:Xj(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,c=r-t,u=a-n,l=s-t,d=o-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>er)if(!(Math.abs(d*c-u*l)>er)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-s,g=a-o,v=c*c+u*u,h=m*m+g*g,w=Math.sqrt(v),x=Math.sqrt(f),b=i*Math.tan((Il-Math.acos((v+f-h)/(2*w*x)))/2),T=b/x,_=b/w;Math.abs(T-1)>er&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*m>l*g)},${this._x1=t+_*c},${this._y1=n+_*u}`}}arc(t,n,r,a,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),c=r*Math.sin(a),u=t+o,l=n+c,d=1^s,f=s?a-i:i-a;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>er||Math.abs(this._y1-l)>er)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Nl+Nl),f>Kj?this._append`A${r},${r},0,1,${d},${t-o},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=l}`:f>er&&this._append`A${r},${r},0,${+(f>=Il)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Qb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Jj(t)}function Qj(e){return e.innerRadius}function eP(e){return e.outerRadius}function tP(e){return e.startAngle}function nP(e){return e.endAngle}function rP(e){return e&&e.padAngle}function aP(e,t,n,r,a,i,s,o){var c=n-e,u=r-t,l=s-a,d=o-i,f=d*c-l*u;if(!(f*f<tt))return f=(l*(t-i)-d*(e-a))/f,[e+f*c,t+f*u]}function Os(e,t,n,r,a,i,s){var o=e-n,c=t-r,u=(s?i:-i)/Lr(o*o+c*c),l=u*c,d=-u*o,f=e+l,m=t+d,g=n+l,v=r+d,h=(f+g)/2,w=(m+v)/2,x=g-f,b=v-m,T=x*x+b*b,_=a-i,S=f*v-g*m,$=(b<0?-1:1)*Lr(Zj(0,_*_*T-S*S)),D=(S*b-x*$)/T,I=(-S*x-b*$)/T,M=(S*b+x*$)/T,k=(-S*x+b*$)/T,Y=D-h,A=I-w,R=M-h,F=k-w;return Y*Y+A*A>R*R+F*F&&(D=M,I=k),{cx:D,cy:I,x01:-l,y01:-d,x11:D*(a/_-1),y11:I*(a/_-1)}}function iP(){var e=Qj,t=eP,n=Ze(0),r=null,a=tP,i=nP,s=rP,o=null,c=Qb(u);function u(){var l,d,f=+e.apply(this,arguments),m=+t.apply(this,arguments),g=a.apply(this,arguments)-bo,v=i.apply(this,arguments)-bo,h=lm(v-g),w=v>g;if(o||(o=l=c()),m<f&&(d=m,m=f,f=d),!(m>tt))o.moveTo(0,0);else if(h>Is-tt)o.moveTo(m*Xn(g),m*Ht(g)),o.arc(0,0,m,g,v,!w),f>tt&&(o.moveTo(f*Xn(v),f*Ht(v)),o.arc(0,0,f,v,g,w));else{var x=g,b=v,T=g,_=v,S=h,$=h,D=s.apply(this,arguments)/2,I=D>tt&&(r?+r.apply(this,arguments):Lr(f*f+m*m)),M=Iu(lm(m-f)/2,+n.apply(this,arguments)),k=M,Y=M,A,R;if(I>tt){var F=dm(I/f*Ht(D)),B=dm(I/m*Ht(D));(S-=F*2)>tt?(F*=w?1:-1,T+=F,_-=F):(S=0,T=_=(g+v)/2),($-=B*2)>tt?(B*=w?1:-1,x+=B,b-=B):($=0,x=b=(g+v)/2)}var L=m*Xn(x),G=m*Ht(x),Z=f*Xn(_),j=f*Ht(_);if(M>tt){var U=m*Xn(b),J=m*Ht(b),te=f*Xn(T),K=f*Ht(T),X;if(h<ji)if(X=aP(L,G,te,K,U,J,Z,j)){var V=L-X[0],Q=G-X[1],ee=U-X[0],N=J-X[1],W=1/Ht(Gj((V*ee+Q*N)/(Lr(V*V+Q*Q)*Lr(ee*ee+N*N)))/2),ne=Lr(X[0]*X[0]+X[1]*X[1]);k=Iu(M,(f-ne)/(W-1)),Y=Iu(M,(m-ne)/(W+1))}else k=Y=0}$>tt?Y>tt?(A=Os(te,K,L,G,m,Y,w),R=Os(U,J,Z,j,m,Y,w),o.moveTo(A.cx+A.x01,A.cy+A.y01),Y<M?o.arc(A.cx,A.cy,Y,et(A.y01,A.x01),et(R.y01,R.x01),!w):(o.arc(A.cx,A.cy,Y,et(A.y01,A.x01),et(A.y11,A.x11),!w),o.arc(0,0,m,et(A.cy+A.y11,A.cx+A.x11),et(R.cy+R.y11,R.cx+R.x11),!w),o.arc(R.cx,R.cy,Y,et(R.y11,R.x11),et(R.y01,R.x01),!w))):(o.moveTo(L,G),o.arc(0,0,m,x,b,!w)):o.moveTo(L,G),!(f>tt)||!(S>tt)?o.lineTo(Z,j):k>tt?(A=Os(Z,j,U,J,f,-k,w),R=Os(L,G,te,K,f,-k,w),o.lineTo(A.cx+A.x01,A.cy+A.y01),k<M?o.arc(A.cx,A.cy,k,et(A.y01,A.x01),et(R.y01,R.x01),!w):(o.arc(A.cx,A.cy,k,et(A.y01,A.x01),et(A.y11,A.x11),!w),o.arc(0,0,f,et(A.cy+A.y11,A.cx+A.x11),et(R.cy+R.y11,R.cx+R.x11),w),o.arc(R.cx,R.cy,k,et(R.y11,R.x11),et(R.y01,R.x01),!w))):o.arc(0,0,f,_,T,w)}if(o.closePath(),l)return o=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-ji/2;return[Xn(d)*l,Ht(d)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:Ze(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:Ze(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:Ze(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:Ze(+l),u):r},u.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Ze(+l),u):a},u.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Ze(+l),u):i},u.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Ze(+l),u):s},u.context=function(l){return arguments.length?(o=l??null,u):o},u}function ey(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ty(e){this._context=e}ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ny(e){return new ty(e)}function sP(e){return e[0]}function oP(e){return e[1]}function cP(e,t){var n=Ze(!0),r=null,a=ny,i=null,s=Qb(o);e=typeof e=="function"?e:e===void 0?sP:Ze(e),t=typeof t=="function"?t:t===void 0?oP:Ze(t);function o(c){var u,l=(c=ey(c)).length,d,f=!1,m;for(r==null&&(i=a(m=s())),u=0;u<=l;++u)!(u<l&&n(d=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,u,c),+t(d,u,c));if(m)return i=null,m+""||null}return o.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ze(+c),o):e},o.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ze(+c),o):t},o.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Ze(!!c),o):n},o.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),o):a},o.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),o):r},o}function uP(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function lP(e){return e}function dP(){var e=lP,t=uP,n=null,r=Ze(0),a=Ze(Is),i=Ze(0);function s(o){var c,u=(o=ey(o)).length,l,d,f=0,m=new Array(u),g=new Array(u),v=+r.apply(this,arguments),h=Math.min(Is,Math.max(-Is,a.apply(this,arguments)-v)),w,x=Math.min(Math.abs(h)/u,i.apply(this,arguments)),b=x*(h<0?-1:1),T;for(c=0;c<u;++c)(T=g[m[c]=c]=+e(o[c],c,o))>0&&(f+=T);for(t!=null?m.sort(function(_,S){return t(g[_],g[S])}):n!=null&&m.sort(function(_,S){return n(o[_],o[S])}),c=0,d=f?(h-u*b)/f:0;c<u;++c,v=w)l=m[c],T=g[l],w=v+(T>0?T*d:0)+b,g[l]={data:o[l],index:c,value:T,startAngle:v,endAngle:w,padAngle:x};return g}return s.value=function(o){return arguments.length?(e=typeof o=="function"?o:Ze(+o),s):e},s.sortValues=function(o){return arguments.length?(t=o,n=null,s):t},s.sort=function(o){return arguments.length?(n=o,t=null,s):n},s.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:Ze(+o),s):r},s.endAngle=function(o){return arguments.length?(a=typeof o=="function"?o:Ze(+o),s):a},s.padAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Ze(+o),s):i},s}function Bn(){}function yo(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Wc(e){this._context=e}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fP(e){return new Wc(e)}function ry(e){this._context=e}ry.prototype={areaStart:Bn,areaEnd:Bn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hP(e){return new ry(e)}function ay(e){this._context=e}ay.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pP(e){return new ay(e)}function iy(e,t){this._basis=new Wc(e),this._beta=t}iy.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,s=t[n]-a,o=-1,c;++o<=n;)c=o/n,this._basis.point(this._beta*e[o]+(1-this._beta)*(r+c*i),this._beta*t[o]+(1-this._beta)*(a+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const mP=function e(t){function n(r){return t===1?new Wc(r):new iy(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function _o(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function wf(e,t){this._context=e,this._k=(1-t)/6}wf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_o(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_o(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gP=function e(t){function n(r){return new wf(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tf(e,t){this._context=e,this._k=(1-t)/6}Tf.prototype={areaStart:Bn,areaEnd:Bn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_o(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vP=function e(t){function n(r){return new Tf(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Of(e,t){this._context=e,this._k=(1-t)/6}Of.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_o(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bP=function e(t){function n(r){return new Of(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Cf(e,t,n){var r=e._x1,a=e._y1,i=e._x2,s=e._y2;if(e._l01_a>tt){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>tt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,s,e._x2,e._y2)}function sy(e,t){this._context=e,this._alpha=t}sy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Cf(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yP=function e(t){function n(r){return t?new sy(r,t):new wf(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oy(e,t){this._context=e,this._alpha=t}oy.prototype={areaStart:Bn,areaEnd:Bn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Cf(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _P=function e(t){function n(r){return t?new oy(r,t):new Tf(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function cy(e,t){this._context=e,this._alpha=t}cy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cf(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xP=function e(t){function n(r){return t?new cy(r,t):new Of(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function uy(e){this._context=e}uy.prototype={areaStart:Bn,areaEnd:Bn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wP(e){return new uy(e)}function fm(e){return e<0?-1:1}function hm(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),o=(i*a+s*r)/(r+a);return(fm(i)+fm(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function pm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nu(e,t,n){var r=e._x0,a=e._y0,i=e._x1,s=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,s-o*n,i,s)}function xo(e){this._context=e}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Nu(this,this._t0,pm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Nu(this,pm(this,n=hm(this,e,t)),n);break;default:Nu(this,this._t0,n=hm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ly(e){this._context=new dy(e)}(ly.prototype=Object.create(xo.prototype)).point=function(e,t){xo.prototype.point.call(this,t,e)};function dy(e){this._context=e}dy.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function TP(e){return new xo(e)}function OP(e){return new ly(e)}function fy(e){this._context=e}fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=mm(e),a=mm(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mm(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),s=new Array(n);for(a[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function CP(e){return new fy(e)}function qc(e,t){this._context=e,this._t=t}qc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function EP(e){return new qc(e,.5)}function SP(e){return new qc(e,0)}function kP(e){return new qc(e,1)}var RP=Ob,AP=Cb,MP=fc;function $P(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],o=RP(e,s);n(o,s)&&AP(i,MP(s,e),o)}return i}var jP=$P;function PP(e,t){return e!=null&&t in Object(e)}var IP=PP,NP=fc,DP=uc,FP=nn,LP=dc,UP=nf,zP=uf;function BP(e,t,n){t=NP(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=zP(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&UP(a)&&LP(s,a)&&(FP(e)||DP(e)))}var WP=BP,qP=IP,HP=WP;function VP(e,t){return e!=null&&HP(e,t,qP)}var YP=VP,ZP=jP,GP=YP;function KP(e,t){return ZP(e,t,function(n,r){return GP(e,r)})}var XP=KP;function JP(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var hy=JP,gm=Zi,QP=uc,eI=nn,vm=gm?gm.isConcatSpreadable:void 0;function tI(e){return eI(e)||QP(e)||!!(vm&&e&&e[vm])}var nI=tI,rI=hy,aI=nI;function py(e,t,n,r,a){var i=-1,s=e.length;for(n||(n=aI),a||(a=[]);++i<s;){var o=e[i];t>0&&n(o)?t>1?py(o,t-1,n,r,a):rI(a,o):r||(a[a.length]=o)}return a}var iI=py,sI=iI;function oI(e){var t=e==null?0:e.length;return t?sI(e,1):[]}var cI=oI,uI=cI,lI=bb,dI=yb;function fI(e){return dI(lI(e,void 0,uI),e+"")}var hI=fI,pI=XP,mI=hI,gI=mI(function(e,t){return e==null?{}:pI(e,t)}),vI=gI;const bI=vt(vI);function yI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var _I=yI,xI=Gb,wI=_I,TI=Kb,OI=1,CI=2;function EI(e,t,n,r,a,i){var s=n&OI,o=e.length,c=t.length;if(o!=c&&!(s&&c>o))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,m=n&CI?new xI:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var g=e[d],v=t[d];if(r)var h=s?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(h!==void 0){if(h)continue;f=!1;break}if(m){if(!wI(t,function(w,x){if(!TI(m,x)&&(g===w||a(g,w,n,r,i)))return m.push(x)})){f=!1;break}}else if(!(g===v||a(g,v,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var my=EI;function SI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var kI=SI;function RI(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var AI=RI,bm=Zi,ym=ab,MI=Yi,$I=my,jI=kI,PI=AI,II=1,NI=2,DI="[object Boolean]",FI="[object Date]",LI="[object Error]",UI="[object Map]",zI="[object Number]",BI="[object RegExp]",WI="[object Set]",qI="[object String]",HI="[object Symbol]",VI="[object ArrayBuffer]",YI="[object DataView]",_m=bm?bm.prototype:void 0,Du=_m?_m.valueOf:void 0;function ZI(e,t,n,r,a,i,s){switch(n){case YI:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VI:return!(e.byteLength!=t.byteLength||!i(new ym(e),new ym(t)));case DI:case FI:case zI:return MI(+e,+t);case LI:return e.name==t.name&&e.message==t.message;case BI:case qI:return e==t+"";case UI:var o=jI;case WI:var c=r&II;if(o||(o=PI),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=NI,s.set(e,t);var l=$I(o(e),o(t),r,a,i,s);return s.delete(e),l;case HI:if(Du)return Du.call(e)==Du.call(t)}return!1}var GI=ZI,KI=hy,XI=nn;function JI(e,t,n){var r=t(e);return XI(e)?r:KI(r,n(e))}var QI=JI;function eN(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var tN=eN;function nN(){return[]}var rN=nN,aN=tN,iN=rN,sN=Object.prototype,oN=sN.propertyIsEnumerable,xm=Object.getOwnPropertySymbols,cN=xm?function(e){return e==null?[]:(e=Object(e),aN(xm(e),function(t){return oN.call(e,t)}))}:iN,uN=cN,lN=ib,dN=lN(Object.keys,Object),fN=dN,hN=tf,pN=fN,mN=Object.prototype,gN=mN.hasOwnProperty;function vN(e){if(!hN(e))return pN(e);var t=[];for(var n in Object(e))gN.call(e,n)&&n!="constructor"&&t.push(n);return t}var bN=vN,yN=pb,_N=bN,xN=lc;function wN(e){return xN(e)?yN(e):_N(e)}var TN=wN,ON=QI,CN=uN,EN=TN;function SN(e){return ON(e,EN,CN)}var kN=SN,wm=kN,RN=1,AN=Object.prototype,MN=AN.hasOwnProperty;function $N(e,t,n,r,a,i){var s=n&RN,o=wm(e),c=o.length,u=wm(t),l=u.length;if(c!=l&&!s)return!1;for(var d=c;d--;){var f=o[d];if(!(s?f in t:MN.call(t,f)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var h=s;++d<c;){f=o[d];var w=e[f],x=t[f];if(r)var b=s?r(x,w,f,t,e,i):r(w,x,f,e,t,i);if(!(b===void 0?w===x||a(w,x,n,r,i):b)){v=!1;break}h||(h=f=="constructor")}if(v&&!h){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(v=!1)}return i.delete(e),i.delete(t),v}var jN=$N,PN=Or,IN=tn,NN=PN(IN,"DataView"),DN=NN,FN=Or,LN=tn,UN=FN(LN,"Promise"),zN=UN,BN=Or,WN=tn,qN=BN(WN,"Set"),HN=qN,VN=Or,YN=tn,ZN=VN(YN,"WeakMap"),GN=ZN,Dl=DN,Fl=Jd,Ll=zN,Ul=HN,zl=GN,gy=Tr,ga=eb,Tm="[object Map]",KN="[object Object]",Om="[object Promise]",Cm="[object Set]",Em="[object WeakMap]",Sm="[object DataView]",XN=ga(Dl),JN=ga(Fl),QN=ga(Ll),eD=ga(Ul),tD=ga(zl),tr=gy;(Dl&&tr(new Dl(new ArrayBuffer(1)))!=Sm||Fl&&tr(new Fl)!=Tm||Ll&&tr(Ll.resolve())!=Om||Ul&&tr(new Ul)!=Cm||zl&&tr(new zl)!=Em)&&(tr=function(e){var t=gy(e),n=t==KN?e.constructor:void 0,r=n?ga(n):"";if(r)switch(r){case XN:return Sm;case JN:return Tm;case QN:return Om;case eD:return Cm;case tD:return Em}return t});var nD=tr,Fu=tb,rD=my,aD=GI,iD=jN,km=nD,Rm=nn,Am=rf,sD=sf,oD=1,Mm="[object Arguments]",$m="[object Array]",Cs="[object Object]",cD=Object.prototype,jm=cD.hasOwnProperty;function uD(e,t,n,r,a,i){var s=Rm(e),o=Rm(t),c=s?$m:km(e),u=o?$m:km(t);c=c==Mm?Cs:c,u=u==Mm?Cs:u;var l=c==Cs,d=u==Cs,f=c==u;if(f&&Am(e)){if(!Am(t))return!1;s=!0,l=!1}if(f&&!l)return i||(i=new Fu),s||sD(e)?rD(e,t,n,r,a,i):aD(e,t,c,n,r,a,i);if(!(n&oD)){var m=l&&jm.call(e,"__wrapped__"),g=d&&jm.call(t,"__wrapped__");if(m||g){var v=m?e.value():e,h=g?t.value():t;return i||(i=new Fu),a(v,h,n,r,i)}}return f?(i||(i=new Fu),iD(e,t,n,r,a,i)):!1}var lD=uD,dD=lD,Pm=Yn;function vy(e,t,n,r,a){return e===t?!0:e==null||t==null||!Pm(e)&&!Pm(t)?e!==e&&t!==t:dD(e,t,n,r,vy,a)}var fD=vy,hD=fD;function pD(e,t){return hD(e,t)}var mD=pD;const gD=vt(mD);var vD={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(this,arguments)}function Ef(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bD=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],yD=function(e,t){return Ft({},t,e)},_D=function(e,t){var n=TR({},e,t);return bD.forEach(function(r){Ga(n,r,yD(bn(n,r),n.text))}),n},by=p.createContext(),yy=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,s=p.useMemo(function(){var o=GA(i)?Yd[i]:i;return{animate:r,config:o}},[r,i]);return y.jsx(by.Provider,{value:s,children:t})},Im={animate:E.bool,motionConfig:E.oneOfType([E.oneOf(Object.keys(Yd)),E.shape({mass:E.number,tension:E.number,friction:E.number,clamp:E.bool,precision:E.number,velocity:E.number,duration:E.number,easing:E.func})])};yy.propTypes={children:E.node.isRequired,animate:Im.animate,config:Im.motionConfig};var va=function(){return p.useContext(by)},xD={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:de(mc),PRGn:de(gc),PiYG:de(vc),PuOr:de(bc),RdBu:de(yc),RdGy:de(_c),RdYlBu:de(xc),RdYlGn:de(wc),spectral:de(Tc),blues:de(Nc),greens:de(Dc),greys:de(Fc),oranges:de(zc),purples:de(Lc),reds:de(Uc),BuGn:de(Oc),BuPu:de(Cc),GnBu:de(Ec),OrRd:de(Sc),PuBuGn:de(kc),PuBu:de(Rc),PuRd:de(Ac),RdPu:de(Mc),YlGnBu:de($c),YlGn:de(jc),YlOrBr:de(Pc),YlOrRd:de(Ic)},wD=Object.keys(xD);de(mc),de(gc),de(vc),de(bc),de(yc),de(_c),de(xc),de(wc),de(Tc),de(Nc),de(Dc),de(Fc),de(zc),de(Lc),de(Uc),de(Oc),de(Cc),de(Ec),de(Sc),de(kc),de(Rc),de(Ac),de(Mc),de($c),de(jc),de(Pc),de(Ic);E.oneOfType([E.oneOf(wD),E.func,E.arrayOf(E.string)]);var TD={basis:fP,basisClosed:hP,basisOpen:pP,bundle:mP,cardinal:gP,cardinalClosed:vP,cardinalOpen:bP,catmullRom:yP,catmullRomClosed:_P,catmullRomOpen:xP,linear:ny,linearClosed:wP,monotoneX:TP,monotoneY:OP,natural:CP,step:EP,stepAfter:kP,stepBefore:SP},Sf=Object.keys(TD);Sf.filter(function(e){return e.endsWith("Closed")});Xb(Sf,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Xb(Sf,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");E.shape({top:E.number,right:E.number,bottom:E.number,left:E.number}).isRequired;var OD=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];E.oneOf(OD);Fr(xf);var CD={top:0,right:0,bottom:0,left:0},ED=function(e,t,n){return n===void 0&&(n={}),p.useMemo(function(){var r=Ft({},CD,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},_y=function(){var e=p.useRef(null),t=p.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=p.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var s=i[0];return r(s.contentRect)})})[0];return p.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},SD=function(e){return p.useMemo(function(){return _D(vD,e)},[e])},kD=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Ub(e.slice("5")):$b(e):function(t){return""+t}},xy=function(e){return p.useMemo(function(){return kD(e)},[e])},wy=p.createContext(),RD={},Ty=function(e){var t=e.theme,n=t===void 0?RD:t,r=e.children,a=SD(n);return y.jsx(wy.Provider,{value:a,children:r})};Ty.propTypes={children:E.node.isRequired,theme:E.object};var St=function(){return p.useContext(wy)},AD=["outlineWidth","outlineColor","outlineOpacity"],Oy=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Ef(e,AD)},Cy=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?p.cloneElement(r,{},t):t};Cy.propTypes={children:E.node.isRequired,condition:E.bool.isRequired,wrapper:E.element.isRequired};var MD={position:"relative"},Ey=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,s=i===void 0||i,o=e.animate,c=e.motionConfig,u=p.useRef(null);return y.jsx(Ty,{theme:n,children:y.jsx(yy,{animate:o,config:c,children:y.jsx(KO,{container:u,children:y.jsxs(Cy,{condition:a,wrapper:y.jsx("div",{style:MD,ref:u}),children:[t,s&&y.jsx(GO,{})]})})})})};Ey.propTypes={children:E.element.isRequired,isInteractive:E.bool,renderWrapper:E.bool,theme:E.object,animate:E.bool,motionConfig:E.string};E.func.isRequired,E.bool,E.bool,E.object.isRequired,E.bool.isRequired,E.string;var Sy=function(e){var t=e.children,n=_y(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};Sy.propTypes={children:E.func.isRequired};var $D=["id","colors"],ky=function(e){var t=e.id,n=e.colors,r=Ef(e,$D);return y.jsx("linearGradient",Ft({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,s=a.color,o=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:s,stopOpacity:o!==void 0?o:1},i)})}))};ky.propTypes={id:E.string.isRequired,colors:E.arrayOf(E.shape({offset:E.number.isRequired,color:E.string.isRequired,opacity:E.number})).isRequired,gradientTransform:E.string};var Ry={linearGradient:ky},Ba={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Bl=p.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Ba.background:n,a=e.color,i=a===void 0?Ba.color:a,s=e.size,o=s===void 0?Ba.size:s,c=e.padding,u=c===void 0?Ba.padding:c,l=e.stagger,d=l===void 0?Ba.stagger:l,f=o+u,m=o/2,g=u/2;return d===!0&&(f=2*o+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:g+m,cy:g+m,r:m,fill:i}),d&&y.jsx("circle",{cx:1.5*u+o+m,cy:1.5*u+o+m,r:m,fill:i})]})});Bl.displayName="PatternDots",Bl.propTypes={id:E.string.isRequired,color:E.string.isRequired,background:E.string.isRequired,size:E.number.isRequired,padding:E.number.isRequired,stagger:E.bool.isRequired};var fn=function(e){return e*Math.PI/180},kf=function(e){return 180*e/Math.PI},jD=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},Hr=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Wa={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Wl=p.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Wa.spacing:n,a=e.rotation,i=a===void 0?Wa.rotation:a,s=e.background,o=s===void 0?Wa.background:s,c=e.color,u=c===void 0?Wa.color:c,l=e.lineWidth,d=l===void 0?Wa.lineWidth:l,f=Math.round(i)%360,m=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var g,v=m,h=m;return f===0?g=`
254
+ M 0 0 L `+v+` 0
255
+ M 0 `+h+" L "+v+" "+h+`
256
+ `:f===90?g=`
257
+ M 0 0 L 0 `+h+`
258
+ M `+v+" 0 L "+v+" "+h+`
259
+ `:(v=Math.abs(m/Math.sin(fn(f))),h=m/Math.sin(fn(90-f)),g=f>0?`
260
+ M 0 `+-h+" L "+2*v+" "+h+`
261
+ M `+-v+" "+-h+" L "+v+" "+h+`
262
+ M `+-v+" 0 L "+v+" "+2*h+`
263
+ `:`
264
+ M `+-v+" "+h+" L "+v+" "+-h+`
265
+ M `+-v+" "+2*h+" L "+2*v+" "+-h+`
266
+ M 0 `+2*h+" L "+2*v+` 0
267
+ `),y.jsxs("pattern",{id:t,width:v,height:h,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:v,height:h,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:g,strokeWidth:d,stroke:u,strokeLinecap:"square"})]})});Wl.displayName="PatternLines",Wl.propTypes={id:E.string.isRequired,spacing:E.number.isRequired,rotation:E.number.isRequired,background:E.string.isRequired,color:E.string.isRequired,lineWidth:E.number.isRequired};var qa={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ql=p.memo(function(e){var t=e.id,n=e.color,r=n===void 0?qa.color:n,a=e.background,i=a===void 0?qa.background:a,s=e.size,o=s===void 0?qa.size:s,c=e.padding,u=c===void 0?qa.padding:c,l=e.stagger,d=l===void 0?qa.stagger:l,f=o+u,m=u/2;return d===!0&&(f=2*o+2*u),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:i}),y.jsx("rect",{x:m,y:m,width:o,height:o,fill:r}),d&&y.jsx("rect",{x:1.5*u+o,y:1.5*u+o,width:o,height:o,fill:r})]})});ql.displayName="PatternSquares",ql.propTypes={id:E.string.isRequired,color:E.string.isRequired,background:E.string.isRequired,size:E.number.isRequired,padding:E.number.isRequired,stagger:E.bool.isRequired};var Ay={patternDots:Bl,patternLines:Wl,patternSquares:ql},PD=["type"],Hl=Ft({},Ry,Ay),My=function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,a=Ef(n,PD);return Hl[r]?p.createElement(Hl[r],Ft({key:a.id},a)):null})})};My.propTypes={defs:E.arrayOf(E.shape({type:E.oneOf(Object.keys(Hl)).isRequired,id:E.string.isRequired}))};var ID=p.memo(My),$y=function(e){var t=e.width,n=e.height,r=e.margin,a=e.defs,i=e.children,s=e.role,o=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,l=e.isFocusable,d=St();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:s,"aria-label":o,"aria-labelledby":c,"aria-describedby":u,focusable:l,tabIndex:l?0:void 0,children:[y.jsx(ID,{defs:a}),y.jsx("rect",{width:t,height:n,fill:d.background}),y.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};$y.propTypes={width:E.number.isRequired,height:E.number.isRequired,margin:E.shape({top:E.number.isRequired,left:E.number.isRequired}).isRequired,defs:E.array,children:E.oneOfType([E.arrayOf(E.node),E.node]).isRequired,role:E.string,isFocusable:E.bool,ariaLabel:E.string,ariaLabelledBy:E.string,ariaDescribedBy:E.string};var jy=function(e){var t=e.size,n=e.color,r=e.borderWidth,a=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:a,strokeWidth:r,style:{pointerEvents:"none"}})};jy.propTypes={size:E.number.isRequired,color:E.string.isRequired,borderWidth:E.number.isRequired,borderColor:E.string.isRequired};var ND=p.memo(jy),Py=function(e){var t=e.x,n=e.y,r=e.symbol,a=r===void 0?ND:r,i=e.size,s=e.datum,o=e.color,c=e.borderWidth,u=e.borderColor,l=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,m=e.labelYOffset,g=m===void 0?-12:m,v=St(),h=va(),w=h.animate,x=h.config,b=Kd({transform:"translate("+t+", "+n+")",config:x,immediate:!w});return y.jsxs(dn.g,{transform:b.transform,style:{pointerEvents:"none"},children:[p.createElement(a,{size:i,color:o,datum:s,borderWidth:c,borderColor:u}),l&&y.jsx("text",{textAnchor:f,y:g,style:Oy(v.dots.text),children:l})]})};Py.propTypes={x:E.number.isRequired,y:E.number.isRequired,datum:E.object.isRequired,size:E.number.isRequired,color:E.string.isRequired,borderWidth:E.number.isRequired,borderColor:E.string.isRequired,symbol:E.oneOfType([E.func,E.object]),label:E.oneOfType([E.string,E.number]),labelTextAnchor:E.oneOf(["start","middle","end"]),labelYOffset:E.number};p.memo(Py);var Iy=function(e){var t=e.width,n=e.height,r=e.axis,a=e.scale,i=e.value,s=e.lineStyle,o=e.textStyle,c=e.legend,u=e.legendPosition,l=u===void 0?"top-right":u,d=e.legendOffsetX,f=d===void 0?14:d,m=e.legendOffsetY,g=m===void 0?14:m,v=e.legendOrientation,h=v===void 0?"horizontal":v,w=St(),x=0,b=0,T=0,_=0;r==="y"?(T=a(i),b=t):(x=a(i),_=n);var S=null;if(c){var $=function(D){var I=D.axis,M=D.width,k=D.height,Y=D.position,A=D.offsetX,R=D.offsetY,F=D.orientation,B=0,L=0,G=F==="vertical"?-90:0,Z="start";if(I==="x")switch(Y){case"top-left":B=-A,L=R,Z="end";break;case"top":L=-R,Z=F==="horizontal"?"middle":"start";break;case"top-right":B=A,L=R,Z=F==="horizontal"?"start":"end";break;case"right":B=A,L=k/2,Z=F==="horizontal"?"start":"middle";break;case"bottom-right":B=A,L=k-R,Z="start";break;case"bottom":L=k+R,Z=F==="horizontal"?"middle":"end";break;case"bottom-left":L=k-R,B=-A,Z=F==="horizontal"?"end":"start";break;case"left":B=-A,L=k/2,Z=F==="horizontal"?"end":"middle"}else switch(Y){case"top-left":B=A,L=-R,Z="start";break;case"top":B=M/2,L=-R,Z=F==="horizontal"?"middle":"start";break;case"top-right":B=M-A,L=-R,Z=F==="horizontal"?"end":"start";break;case"right":B=M+A,Z=F==="horizontal"?"start":"middle";break;case"bottom-right":B=M-A,L=R,Z="end";break;case"bottom":B=M/2,L=R,Z=F==="horizontal"?"middle":"end";break;case"bottom-left":B=A,L=R,Z=F==="horizontal"?"start":"end";break;case"left":B=-A,Z=F==="horizontal"?"end":"middle"}return{x:B,y:L,rotation:G,textAnchor:Z}}({axis:r,width:t,height:n,position:l,offsetX:f,offsetY:g,orientation:h});S=y.jsx("text",{transform:"translate("+$.x+", "+$.y+") rotate("+$.rotation+")",textAnchor:$.textAnchor,dominantBaseline:"central",style:o,children:c})}return y.jsxs("g",{transform:"translate("+x+", "+T+")",children:[y.jsx("line",{x1:0,x2:b,y1:0,y2:_,stroke:w.markers.lineColor,strokeWidth:w.markers.lineStrokeWidth,style:s}),S]})};Iy.propTypes={width:E.number.isRequired,height:E.number.isRequired,axis:E.oneOf(["x","y"]).isRequired,scale:E.func.isRequired,value:E.oneOfType([E.number,E.string,E.instanceOf(Date)]).isRequired,lineStyle:E.object,textStyle:E.object,legend:E.string,legendPosition:E.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:E.number.isRequired,legendOffsetY:E.number.isRequired,legendOrientation:E.oneOf(["horizontal","vertical"]).isRequired};var DD=p.memo(Iy),Ny=function(e){var t=e.markers,n=e.width,r=e.height,a=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(s,o){return y.jsx(DD,Ft({},s,{width:n,height:r,scale:s.axis==="y"?i:a}),o)}):null};Ny.propTypes={width:E.number.isRequired,height:E.number.isRequired,xScale:E.func.isRequired,yScale:E.func.isRequired,markers:E.arrayOf(E.shape({axis:E.oneOf(["x","y"]).isRequired,value:E.oneOfType([E.number,E.string,E.instanceOf(Date)]).isRequired,lineStyle:E.object,textStyle:E.object}))};p.memo(Ny);var FD=function(e){return Qv(e)?e:function(t){return bn(t,e)}},wo=function(e){return p.useMemo(function(){return FD(e)},[e])},LD=Object.keys(Ry),UD=Object.keys(Ay),zD=function(e,t,n){if(e==="*")return!0;if(Qv(e))return e(t);if(af(e)){var r=n?bn(t,n):t;return gD(bI(r,Object.keys(e)),e)}return!1},BD=function(e,t,n,r){var a={},i=a.dataKey,s=a.colorKey,o=s===void 0?"color":s,c=a.targetKey,u=c===void 0?"fill":c,l=[],d={};return e.length&&t.length&&(l=[].concat(e),t.forEach(function(f){for(var m=function(){var v=n[g],h=v.id,w=v.match;if(zD(w,f,i)){var x=e.find(function(M){return M.id===h});if(x){if(UD.includes(x.type))if(x.background==="inherit"||x.color==="inherit"){var b=bn(f,o),T=x.background,_=x.color,S=h;x.background==="inherit"&&(S=S+".bg."+b,T=b),x.color==="inherit"&&(S=S+".fg."+b,_=b),Ga(f,u,"url(#"+S+")"),d[S]||(l.push(Ft({},x,{id:S,background:T,color:_})),d[S]=1)}else Ga(f,u,"url(#"+h+")");else if(LD.includes(x.type))if(x.colors.map(function(M){return M.color}).includes("inherit")){var $=bn(f,o),D=h,I=Ft({},x,{colors:x.colors.map(function(M,k){return M.color!=="inherit"?M:(D=D+"."+k+"."+$,Ft({},M,{color:M.color==="inherit"?$:M.color}))})});I.id=D,Ga(f,u,"url(#"+D+")"),d[D]||(l.push(I),d[D]=1)}else Ga(f,u,"url(#"+h+")")}return"break"}},g=0;g<n.length&&m()!=="break";g++);})),l};function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},To.apply(this,arguments)}function Nm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WD(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(a,i){if(a){if(typeof a=="string")return Nm(a,i);var s=Object.prototype.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Nm(a,i):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
268
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dy={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:zb,accent:Bb,dark2:Wb,paired:qb,pastel1:Hb,pastel2:Vb,set1:Yb,set2:Zb,set3:xf,tableau10:w$},qD=Object.keys(Dy),Fy={brown_blueGreen:mc,purpleRed_green:gc,pink_yellowGreen:vc,purple_orange:bc,red_blue:yc,red_grey:_c,red_yellow_blue:xc,red_yellow_green:wc,spectral:Tc},HD=Object.keys(Fy),VD={brown_blueGreen:T$,purpleRed_green:O$,pink_yellowGreen:C$,purple_orange:E$,red_blue:S$,red_grey:k$,red_yellow_blue:R$,red_yellow_green:A$,spectral:M$},Ly={blues:Nc,greens:Dc,greys:Fc,oranges:zc,purples:Lc,reds:Uc,blue_green:Oc,blue_purple:Cc,green_blue:Ec,orange_red:Sc,purple_blue_green:kc,purple_blue:Rc,purple_red:Ac,red_purple:Mc,yellow_green_blue:$c,yellow_green:jc,yellow_orange_brown:Pc,yellow_orange_red:Ic},YD=Object.keys(Ly),ZD={blues:q$,greens:H$,greys:V$,oranges:G$,purples:Y$,reds:Z$,turbo:aj,viridis:ij,inferno:oj,magma:sj,plasma:cj,cividis:K$,warm:J$,cool:Q$,cubehelixDefault:X$,blue_green:$$,blue_purple:j$,green_blue:P$,orange_red:I$,purple_blue_green:N$,purple_blue:D$,purple_red:F$,red_purple:L$,yellow_green_blue:U$,yellow_green:z$,yellow_orange_brown:B$,yellow_orange_red:W$},Lu=To({},Dy,Fy,Ly),GD=function(e){return qD.includes(e)},KD=function(e){return HD.includes(e)},XD=function(e){return YD.includes(e)},JD={rainbow:ej,sinebow:rj};To({},VD,ZD,JD);var QD=function(e,t){if(typeof e=="function")return e;if(af(e)){if(function(c){return c.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=bn(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(c){return c.from!==void 0}(e)){var r=function(c){return bn(c,e.from)};if(Array.isArray(e.modifiers)){for(var a,i=[],s=function(){var c=a.value,u=c[0],l=c[1];if(u==="brighter")i.push(function(d){return d.brighter(l)});else if(u==="darker")i.push(function(d){return d.darker(l)});else{if(u!=="opacity")throw new Error("Invalid color modifier: '"+u+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(d){return d.opacity=l,d})}},o=WD(e.modifiers);!(a=o()).done;)s();return i.length===0?r:function(c){return i.reduce(function(u,l){return l(u)},ra(r(c))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},Oo=function(e,t){return p.useMemo(function(){return QD(e,t)},[e,t])};E.oneOfType([E.string,E.func,E.shape({theme:E.string.isRequired}),E.shape({from:E.string.isRequired,modifiers:E.arrayOf(E.array)})]);var eF=function(e,t){if(typeof e=="function")return e;var n=function(d){return bn(d,t)};if(Array.isArray(e)){var r=Fr(e),a=function(d){return r(n(d))};return a.scale=r,a}if(af(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return bn(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(GD(e.scheme)){var i=Fr(Lu[e.scheme]),s=function(d){return i(n(d))};return s.scale=i,s}if(KD(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var o=Fr(Lu[e.scheme][e.size||11]),c=function(d){return o(n(d))};return c.scale=o,c}if(XD(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var u=Fr(Lu[e.scheme][e.size||9]),l=function(d){return u(n(d))};return l.scale=u,l}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},tF=function(e,t){return p.useMemo(function(){return eF(e,t)},[e,t])};function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fe.apply(this,arguments)}var nF={pointerEvents:"none"},rF=function(e){var t=e.label,n=e.style,r=St();return y.jsx(dn.g,{transform:n.transform,opacity:n.progress,style:nF,children:y.jsx(dn.text,{textAnchor:"middle",dominantBaseline:"central",style:Fe({},r.labels.text,{fill:n.textColor}),children:t})})},Uy=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},aF=function(e,t){return e.filter(function(n){return Math.abs(kf(n.arc.endAngle-n.arc.startAngle))>=t})},iF={startAngle:{enter:function(e){return Fe({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Fe({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Fe({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Fe({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Fe({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Fe({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Fe({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Fe({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Fe({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Fe({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Fe({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Fe({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Fe({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Fe({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Fe({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Fe({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},zy=function(e,t){return p.useMemo(function(){var n=iF[e];return{enter:function(r){return Fe({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Fe({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Fe({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},sF=function(e,t){var n=jD(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Hr(n,r)},oF=function(e){return function(t,n,r,a){return Vi([t,n,r,a],function(i,s,o,c){var u=sF({startAngle:i,endAngle:s,innerRadius:o,outerRadius:c},e);return"translate("+u.x+","+u.y+")"})}},cF=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var a=va(),i=a.animate,s=a.config,o=zy(n,r);return{transition:Xd(e,{keys:function(c){return c.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:s,immediate:!i}),interpolate:oF(t)}},uF=function(e){var t=e.center,n=e.data,r=e.transitionMode,a=e.label,i=e.radiusOffset,s=e.skipAngle,o=e.textColor,c=e.component,u=c===void 0?rF:c,l=wo(a),d=St(),f=Oo(o,d),m=p.useMemo(function(){return n.filter(function(x){return Math.abs(kf(x.arc.endAngle-x.arc.startAngle))>=s})},[n,s]),g=cF(m,i,r),v=g.transition,h=g.interpolate,w=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(x,b){return p.createElement(w,{key:b.id,datum:b,label:l(b),style:Fe({},x,{transform:h(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius),textColor:f(b)})})})})},lF=function(e){var t=e.label,n=e.style,r=St();return y.jsxs(dn.g,{opacity:n.opacity,children:[y.jsx(dn.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(dn.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Fe({},r.labels.text,{fill:n.textColor}),children:t})]})},dF=function(e){var t=Uy(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},By=function(e,t,n,r){var a,i,s=Uy(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),o=Hr(s,e.outerRadius+t),c=Hr(s,e.outerRadius+t+n);return s<Math.PI/2||s>1.5*Math.PI?(a="after",i={x:c.x+r,y:c.y}):(a="before",i={x:c.x-r,y:c.y}),{side:a,points:[o,c,i]}},fF=cP().x(function(e){return e.x}).y(function(e){return e.y}),hF=function(e,t,n,r,a,i,s){return Vi([e,t,n,r,a,i,s],function(o,c,u,l,d,f,m){var g=By({startAngle:o,endAngle:c,innerRadius:u,outerRadius:l},d,f,m).points;return fF(g)})},pF=function(e,t,n,r){return Vi([e,t,n,r],function(a,i,s,o){return dF({startAngle:a,endAngle:i,innerRadius:s,outerRadius:o})})},mF=function(e,t,n,r,a,i,s,o){return Vi([e,t,n,r,a,i,s,o],function(c,u,l,d,f,m,g,v){var h=By({startAngle:c,endAngle:u,innerRadius:l,outerRadius:d},f,m,g),w=h.points,x=h.side,b=w[2];return x==="before"?b.x-=v:b.x+=v,"translate("+b.x+","+b.y+")"})},gF=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,a=e.diagonalLength,i=e.straightLength,s=e.skipAngle,o=s===void 0?0:s,c=e.textOffset,u=e.linkColor,l=e.textColor,d=va(),f=d.animate,m=d.config,g=St(),v=Oo(u,g),h=Oo(l,g),w=function(b,T){return p.useMemo(function(){return aF(b,T)},[b,T])}(t,o),x=function(b){var T=b.offset,_=b.diagonalLength,S=b.straightLength,$=b.textOffset,D=b.getLinkColor,I=b.getTextColor;return p.useMemo(function(){return{enter:function(M){return{startAngle:M.arc.startAngle,endAngle:M.arc.endAngle,innerRadius:M.arc.innerRadius,outerRadius:M.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:D(M),textColor:I(M),opacity:0}},update:function(M){return{startAngle:M.arc.startAngle,endAngle:M.arc.endAngle,innerRadius:M.arc.innerRadius,outerRadius:M.arc.outerRadius,offset:T,diagonalLength:_,straightLength:S,textOffset:$,linkColor:D(M),textColor:I(M),opacity:1}},leave:function(M){return{startAngle:M.arc.startAngle,endAngle:M.arc.endAngle,innerRadius:M.arc.innerRadius,outerRadius:M.arc.outerRadius,offset:T,diagonalLength:0,straightLength:0,textOffset:$,linkColor:D(M),textColor:I(M),opacity:0}}}},[_,S,$,D,I,T])}({offset:r,diagonalLength:a,straightLength:i,textOffset:c,getLinkColor:v,getTextColor:h});return{transition:Xd(w,{keys:function(b){return b.id},initial:x.update,from:x.enter,enter:x.update,update:x.update,leave:x.leave,config:m,immediate:!f}),interpolateLink:hF,interpolateTextAnchor:pF,interpolateTextPosition:mF}},vF=function(e){var t=e.center,n=e.data,r=e.label,a=e.skipAngle,i=e.offset,s=e.diagonalLength,o=e.straightLength,c=e.strokeWidth,u=e.textOffset,l=e.textColor,d=e.linkColor,f=e.component,m=f===void 0?lF:f,g=wo(r),v=gF({data:n,skipAngle:a,offset:i,diagonalLength:s,straightLength:o,textOffset:u,linkColor:d,textColor:l}),h=v.transition,w=v.interpolateLink,x=v.interpolateTextAnchor,b=v.interpolateTextPosition,T=m;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:h(function(_,S){return p.createElement(T,{key:S.id,datum:S,label:g(S),style:Fe({},_,{thickness:c,path:w(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength),textAnchor:x(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius),textPosition:b(_.startAngle,_.endAngle,_.innerRadius,_.outerRadius,_.offset,_.diagonalLength,_.straightLength,_.textOffset)})})})})},bF=function(e){var t=e.datum,n=e.style,r=e.onClick,a=e.onMouseEnter,i=e.onMouseMove,s=e.onMouseLeave,o=p.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),c=p.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=p.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),l=p.useCallback(function(d){return s==null?void 0:s(t,d)},[s,t]);return y.jsx(dn.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?o:void 0,onMouseEnter:a?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:s?l:void 0})},yF=function(e,t,n,r,a){return Vi([e,t,n,r],function(i,s,o,c){return a({startAngle:i,endAngle:s,innerRadius:Math.max(0,o),outerRadius:Math.max(0,c)})})},_F=function(e,t,n){t===void 0&&(t="innerRadius");var r=va(),a=r.animate,i=r.config,s=zy(t,n);return{transition:Xd(e,{keys:function(o){return o.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:i,immediate:!a}),interpolate:yF}},xF=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,s=e.onClick,o=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,l=e.transitionMode,d=e.component,f=d===void 0?bF:d,m=St(),g=Oo(i,m),v=_F(n,l,{enter:function(b){return{opacity:0,color:b.color,borderColor:g(b)}},update:function(b){return{opacity:1,color:b.color,borderColor:g(b)}},leave:function(b){return{opacity:0,color:b.color,borderColor:g(b)}}}),h=v.transition,w=v.interpolate,x=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:h(function(b,T){return p.createElement(x,{key:T.id,datum:T,style:Fe({},b,{borderWidth:a,path:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,r)}),onClick:s,onMouseEnter:o,onMouseMove:c,onMouseLeave:u})})})},wF=function(e,t,n,r,a,i){i===void 0&&(i=!0);var s=[],o=Hr(fn(r),n);s.push([o.x,o.y]);var c=Hr(fn(a),n);s.push([c.x,c.y]);for(var u=Math.round(Math.min(r,a));u<=Math.round(Math.max(r,a));u++)if(u%90==0){var l=Hr(fn(u),n);s.push([l.x,l.y])}s=s.map(function(h){var w=h[0],x=h[1];return[e+w,t+x]}),i&&s.push([e,t]);var d=s.map(function(h){return h[0]}),f=s.map(function(h){return h[1]}),m=Math.min.apply(Math,d),g=Math.max.apply(Math,d),v=Math.min.apply(Math,f);return{points:s,x:m,y:v,width:g-m,height:Math.max.apply(Math,f)-v}},TF=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,a=t.padAngle,i=a===void 0?0:a;return p.useMemo(function(){return iP().innerRadius(function(s){return s.innerRadius}).outerRadius(function(s){return s.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])},OF=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,s=i===void 0?1:i,o=e.borderWidth,c=o===void 0?0:o,u=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:a,opacity:s,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})},CF=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,s=i===void 0?1:i,o=e.borderWidth,c=o===void 0?0:o,u=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
269
+ M`+r/2+` 0
270
+ L`+.8*r+" "+r/2+`
271
+ L`+r/2+" "+r+`
272
+ L`+.2*r+" "+r/2+`
273
+ L`+r/2+` 0
274
+ `,fill:a,opacity:s,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})},EF=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,s=i===void 0?1:i,o=e.borderWidth,c=o===void 0?0:o,u=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:a,opacity:s,strokeWidth:c,stroke:u===void 0?"transparent":u,width:r,height:r,style:{pointerEvents:"none"}})},SF=function(e){var t=e.x,n=e.y,r=e.size,a=e.fill,i=e.opacity,s=i===void 0?1:i,o=e.borderWidth,c=o===void 0?0:o,u=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
275
+ M`+r/2+` 0
276
+ L`+r+" "+r+`
277
+ L0 `+r+`
278
+ L`+r/2+` 0
279
+ `,fill:a,opacity:s,strokeWidth:c,stroke:u===void 0?"transparent":u,style:{pointerEvents:"none"}})})};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}var kF={top:0,right:0,bottom:0,left:0},Wy=function(e){var t,n=e.direction,r=e.itemsSpacing,a=e.padding,i=e.itemCount,s=e.itemWidth,o=e.itemHeight;if(typeof a!="number"&&(typeof(t=a)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var c=typeof a=="number"?{top:a,right:a,bottom:a,left:a}:ir({},kF,a),u=c.left+c.right,l=c.top+c.bottom,d=s+u,f=o+l,m=(i-1)*r;return n==="row"?d=s*i+m+u:n==="column"&&(f=o*i+m+l),{width:d,height:f,padding:c}},RF=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,a=e.containerWidth,i=e.containerHeight,s=e.width,o=e.height,c=n,u=r;switch(t){case"top":c+=(a-s)/2;break;case"top-right":c+=a-s;break;case"right":c+=a-s,u+=(i-o)/2;break;case"bottom-right":c+=a-s,u+=i-o;break;case"bottom":c+=(a-s)/2,u+=i-o;break;case"bottom-left":u+=i-o;break;case"left":u+=(i-o)/2;break;case"center":c+=(a-s)/2,u+=(i-o)/2}return{x:c,y:u}},AF=function(e){var t,n,r,a,i,s,o=e.direction,c=e.justify,u=e.symbolSize,l=e.symbolSpacing,d=e.width,f=e.height;switch(o){case"left-to-right":t=0,n=(f-u)/2,a=f/2,s="central",c?(r=d,i="end"):(r=u+l,i="start");break;case"right-to-left":t=d-u,n=(f-u)/2,a=f/2,s="central",c?(r=0,i="start"):(r=d-u-l,i="end");break;case"top-to-bottom":t=(d-u)/2,n=0,r=d/2,i="middle",c?(a=f,s="alphabetic"):(a=u+l,s="text-before-edge");break;case"bottom-to-top":t=(d-u)/2,n=f-u,r=d/2,i="middle",c?(a=0,s="text-before-edge"):(a=f-u-l,s="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:a,labelAnchor:i,labelAlignment:s}},MF={circle:OF,diamond:CF,square:EF,triangle:SF},$F=function(e){var t,n,r,a,i,s,o,c,u,l,d,f=e.x,m=e.y,g=e.width,v=e.height,h=e.data,w=e.direction,x=w===void 0?"left-to-right":w,b=e.justify,T=b!==void 0&&b,_=e.textColor,S=e.background,$=S===void 0?"transparent":S,D=e.opacity,I=D===void 0?1:D,M=e.symbolShape,k=M===void 0?"square":M,Y=e.symbolSize,A=Y===void 0?16:Y,R=e.symbolSpacing,F=R===void 0?8:R,B=e.symbolBorderWidth,L=B===void 0?0:B,G=e.symbolBorderColor,Z=G===void 0?"transparent":G,j=e.onClick,U=e.onMouseEnter,J=e.onMouseLeave,te=e.toggleSerie,K=e.effects,X=p.useState({}),V=X[0],Q=X[1],ee=St(),N=p.useCallback(function(Ve){if(K){var st=K.filter(function(Ke){return Ke.on==="hover"}).reduce(function(Ke,_t){return ir({},Ke,_t.style)},{});Q(st)}U==null||U(h,Ve)},[U,h,K]),W=p.useCallback(function(Ve){if(K){var st=K.filter(function(Ke){return Ke.on!=="hover"}).reduce(function(Ke,_t){return ir({},Ke,_t.style)},{});Q(st)}J==null||J(h,Ve)},[J,h,K]),ne=AF({direction:x,justify:T,symbolSize:(t=V.symbolSize)!=null?t:A,symbolSpacing:F,width:g,height:v}),O=ne.symbolX,ge=ne.symbolY,he=ne.labelX,ue=ne.labelY,Ae=ne.labelAnchor,ze=ne.labelAlignment,bt=[j,U,J,te].some(function(Ve){return Ve!==void 0}),yt=typeof k=="function"?k:MF[k];return y.jsxs("g",{transform:"translate("+f+","+m+")",style:{opacity:(n=V.itemOpacity)!=null?n:I},children:[y.jsx("rect",{width:g,height:v,fill:(r=V.itemBackground)!=null?r:$,style:{cursor:bt?"pointer":"auto"},onClick:function(Ve){j==null||j(h,Ve),te==null||te(h.id)},onMouseEnter:N,onMouseLeave:W}),oe.createElement(yt,ir({id:h.id,x:O,y:ge,size:(a=V.symbolSize)!=null?a:A,fill:(i=(s=h.fill)!=null?s:h.color)!=null?i:"black",borderWidth:(o=V.symbolBorderWidth)!=null?o:L,borderColor:(c=V.symbolBorderColor)!=null?c:Z},h.hidden?ee.legends.hidden.symbol:void 0)),y.jsx("text",{textAnchor:Ae,style:ir({},Oy(ee.legends.text),{fill:(u=(l=(d=V.itemTextColor)!=null?d:_)!=null?l:ee.legends.text.fill)!=null?u:"black",dominantBaseline:ze,pointerEvents:"none",userSelect:"none"},h.hidden?ee.legends.hidden.text:void 0),x:he,y:ue,children:h.label})]})},jF=function(e){var t=e.data,n=e.x,r=e.y,a=e.direction,i=e.padding,s=i===void 0?0:i,o=e.justify,c=e.effects,u=e.itemWidth,l=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,m=e.itemsSpacing,g=m===void 0?0:m,v=e.itemTextColor,h=e.itemBackground,w=h===void 0?"transparent":h,x=e.itemOpacity,b=x===void 0?1:x,T=e.symbolShape,_=e.symbolSize,S=e.symbolSpacing,$=e.symbolBorderWidth,D=e.symbolBorderColor,I=e.onClick,M=e.onMouseEnter,k=e.onMouseLeave,Y=e.toggleSerie,A=Wy({itemCount:t.length,itemWidth:u,itemHeight:l,itemsSpacing:g,direction:a,padding:s}).padding,R=a==="row"?u+g:0,F=a==="column"?l+g:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(B,L){return y.jsx($F,{data:B,x:L*R+A.left,y:L*F+A.top,width:u,height:l,direction:f,justify:o,effects:c,textColor:v,background:w,opacity:b,symbolShape:T,symbolSize:_,symbolSpacing:S,symbolBorderWidth:$,symbolBorderColor:D,onClick:I,onMouseEnter:M,onMouseLeave:k,toggleSerie:Y},L)})})},PF=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,a=e.translateX,i=a===void 0?0:a,s=e.translateY,o=s===void 0?0:s,c=e.anchor,u=e.direction,l=e.padding,d=l===void 0?0:l,f=e.justify,m=e.itemsSpacing,g=m===void 0?0:m,v=e.itemWidth,h=e.itemHeight,w=e.itemDirection,x=e.itemTextColor,b=e.itemBackground,T=e.itemOpacity,_=e.symbolShape,S=e.symbolSize,$=e.symbolSpacing,D=e.symbolBorderWidth,I=e.symbolBorderColor,M=e.onClick,k=e.onMouseEnter,Y=e.onMouseLeave,A=e.toggleSerie,R=e.effects,F=Wy({itemCount:t.length,itemsSpacing:g,itemWidth:v,itemHeight:h,direction:u,padding:d}),B=F.width,L=F.height,G=RF({anchor:c,translateX:i,translateY:o,containerWidth:n,containerHeight:r,width:B,height:L}),Z=G.x,j=G.y;return y.jsx(jF,{data:t,x:Z,y:j,direction:u,padding:d,justify:f,effects:R,itemsSpacing:g,itemWidth:v,itemHeight:h,itemDirection:w,itemTextColor:x,itemBackground:b,itemOpacity:T,symbolShape:_,symbolSize:S,symbolSpacing:$,symbolBorderWidth:D,symbolBorderColor:I,onClick:M,onMouseEnter:k,onMouseLeave:Y,toggleSerie:typeof A=="boolean"?void 0:A})};function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(this,arguments)}function qy(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var Dm,IF=function(e){var t=e.width,n=e.height,r=e.legends,a=e.data,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(s,o){var c;return y.jsx(PF,Wn({},s,{containerWidth:t,containerHeight:n,data:(c=s.data)!=null?c:a,toggleSerie:s.toggleSerie?i:void 0}),o)})})},fe={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return y.jsx(zO,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(Dm=window.devicePixelRatio)!=null?Dm:1},NF=["points"],DF=function(e){var t=e.data,n=e.id,r=n===void 0?fe.id:n,a=e.value,i=a===void 0?fe.value:a,s=e.valueFormat,o=e.colors,c=o===void 0?fe.colors:o,u=wo(r),l=wo(i),d=xy(s),f=tF(c,"id");return p.useMemo(function(){return t.map(function(m){var g,v=u(m),h=l(m),w={id:v,label:(g=m.label)!=null?g:v,hidden:!1,value:h,formattedValue:d(h),data:m};return Wn({},w,{color:f(w)})})},[t,u,l,d,f])},FF=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,a=e.innerRadius,i=e.outerRadius,s=e.padAngle,o=e.sortByValue,c=e.activeId,u=e.activeInnerRadiusOffset,l=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,m=p.useMemo(function(){var w=dP().value(function(x){return x.value}).startAngle(fn(n)).endAngle(fn(r)).padAngle(fn(s));return o||w.sortValues(null),w},[n,r,s,o]),g=p.useMemo(function(){var w=t.filter(function(x){return!d.includes(x.id)});return{dataWithArc:m(w).map(function(x){var b=Math.abs(x.endAngle-x.startAngle);return Wn({},x.data,{arc:{index:x.index,startAngle:x.startAngle,endAngle:x.endAngle,innerRadius:c===x.data.id?a-u:a,outerRadius:c===x.data.id?i+l:i,thickness:i-a,padAngle:x.padAngle,angle:b,angleDeg:kf(b)}})}),legendData:t.map(function(x){return{id:x.id,label:x.label,color:x.color,hidden:d.includes(x.id),data:x}})}},[m,t,d,c,a,u,i,l]),v=g.legendData,h=p.useRef(f);return p.useEffect(function(){typeof h.current=="function"&&h.current(v)},[h,v]),g},LF=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,a=t!==void 0,i=p.useState(a||r===void 0?null:r),s=i[0],o=i[1];return{activeId:a?t:s,setActiveId:p.useCallback(function(c){n&&n(c),a||o(c)},[a,n,o])}},UF=function(e){var t=e.data,n=e.width,r=e.height,a=e.innerRadius,i=a===void 0?fe.innerRadius:a,s=e.startAngle,o=s===void 0?fe.startAngle:s,c=e.endAngle,u=c===void 0?fe.endAngle:c,l=e.padAngle,d=l===void 0?fe.padAngle:l,f=e.sortByValue,m=f===void 0?fe.sortByValue:f,g=e.cornerRadius,v=g===void 0?fe.cornerRadius:g,h=e.fit,w=h===void 0?fe.fit:h,x=e.activeInnerRadiusOffset,b=x===void 0?fe.activeInnerRadiusOffset:x,T=e.activeOuterRadiusOffset,_=T===void 0?fe.activeOuterRadiusOffset:T,S=e.activeId,$=e.onActiveIdChange,D=e.defaultActiveId,I=e.forwardLegendData,M=LF({activeId:S,onActiveIdChange:$,defaultActiveId:D}),k=M.activeId,Y=M.setActiveId,A=p.useState([]),R=A[0],F=A[1],B=p.useMemo(function(){var Z,j=Math.min(n,r)/2,U=j*Math.min(i,1),J=n/2,te=r/2;if(w){var K=wF(J,te,j,o-90,u-90),X=K.points,V=qy(K,NF),Q=Math.min(n/V.width,r/V.height),ee={width:V.width*Q,height:V.height*Q};ee.x=(n-ee.width)/2,ee.y=(r-ee.height)/2,J=(J-V.x)/V.width*V.width*Q+ee.x,te=(te-V.y)/V.height*V.height*Q+ee.y,Z={box:V,ratio:Q,points:X},j*=Q,U*=Q}return{centerX:J,centerY:te,radius:j,innerRadius:U,debug:Z}},[n,r,i,o,u,w]),L=FF({data:t,startAngle:o,endAngle:u,innerRadius:B.innerRadius,outerRadius:B.radius,padAngle:d,sortByValue:m,activeId:k,activeInnerRadiusOffset:b,activeOuterRadiusOffset:_,hiddenIds:R,forwardLegendData:I}),G=p.useCallback(function(Z){F(function(j){return j.indexOf(Z)>-1?j.filter(function(U){return U!==Z}):[].concat(j,[Z])})},[]);return Wn({arcGenerator:TF({cornerRadius:v,padAngle:fn(d)}),activeId:k,setActiveId:Y,toggleSerie:G},L,B)},zF=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,a=e.centerY,i=e.radius,s=e.innerRadius;return p.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:a,radius:i,innerRadius:s}},[t,n,r,a,i,s])},BF=function(e){var t=e.center,n=e.data,r=e.arcGenerator,a=e.borderWidth,i=e.borderColor,s=e.isInteractive,o=e.onClick,c=e.onMouseEnter,u=e.onMouseMove,l=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,m=e.transitionMode,g=VO(),v=g.showTooltipFromEvent,h=g.hideTooltip,w=p.useMemo(function(){if(s)return function(_,S){o==null||o(_,S)}},[s,o]),x=p.useMemo(function(){if(s)return function(_,S){v(p.createElement(f,{datum:_}),S),d(_.id),c==null||c(_,S)}},[s,v,d,c,f]),b=p.useMemo(function(){if(s)return function(_,S){v(p.createElement(f,{datum:_}),S),u==null||u(_,S)}},[s,v,u,f]),T=p.useMemo(function(){if(s)return function(_,S){h(),d(null),l==null||l(_,S)}},[s,h,d,l]);return y.jsx(xF,{center:t,data:n,arcGenerator:r,borderWidth:a,borderColor:i,transitionMode:m,onClick:w,onMouseEnter:x,onMouseMove:b,onMouseLeave:T})},WF=["isInteractive","animate","motionConfig","theme","renderWrapper"],qF=function(e){var t=e.data,n=e.id,r=n===void 0?fe.id:n,a=e.value,i=a===void 0?fe.value:a,s=e.valueFormat,o=e.sortByValue,c=o===void 0?fe.sortByValue:o,u=e.layers,l=u===void 0?fe.layers:u,d=e.startAngle,f=d===void 0?fe.startAngle:d,m=e.endAngle,g=m===void 0?fe.endAngle:m,v=e.padAngle,h=v===void 0?fe.padAngle:v,w=e.fit,x=w===void 0?fe.fit:w,b=e.innerRadius,T=b===void 0?fe.innerRadius:b,_=e.cornerRadius,S=_===void 0?fe.cornerRadius:_,$=e.activeInnerRadiusOffset,D=$===void 0?fe.activeInnerRadiusOffset:$,I=e.activeOuterRadiusOffset,M=I===void 0?fe.activeOuterRadiusOffset:I,k=e.width,Y=e.height,A=e.margin,R=e.colors,F=R===void 0?fe.colors:R,B=e.borderWidth,L=B===void 0?fe.borderWidth:B,G=e.borderColor,Z=G===void 0?fe.borderColor:G,j=e.enableArcLabels,U=j===void 0?fe.enableArcLabels:j,J=e.arcLabel,te=J===void 0?fe.arcLabel:J,K=e.arcLabelsSkipAngle,X=K===void 0?fe.arcLabelsSkipAngle:K,V=e.arcLabelsTextColor,Q=V===void 0?fe.arcLabelsTextColor:V,ee=e.arcLabelsRadiusOffset,N=ee===void 0?fe.arcLabelsRadiusOffset:ee,W=e.arcLabelsComponent,ne=e.enableArcLinkLabels,O=ne===void 0?fe.enableArcLinkLabels:ne,ge=e.arcLinkLabel,he=ge===void 0?fe.arcLinkLabel:ge,ue=e.arcLinkLabelsSkipAngle,Ae=ue===void 0?fe.arcLinkLabelsSkipAngle:ue,ze=e.arcLinkLabelsOffset,bt=ze===void 0?fe.arcLinkLabelsOffset:ze,yt=e.arcLinkLabelsDiagonalLength,Ve=yt===void 0?fe.arcLinkLabelsDiagonalLength:yt,st=e.arcLinkLabelsStraightLength,Ke=st===void 0?fe.arcLinkLabelsStraightLength:st,_t=e.arcLinkLabelsThickness,Bt=_t===void 0?fe.arcLinkLabelsThickness:_t,Wt=e.arcLinkLabelsTextOffset,Oe=Wt===void 0?fe.arcLinkLabelsTextOffset:Wt,Xe=e.arcLinkLabelsTextColor,rn=Xe===void 0?fe.arcLinkLabelsTextColor:Xe,ba=e.arcLinkLabelsColor,Gi=ba===void 0?fe.arcLinkLabelsColor:ba,ya=e.arcLinkLabelComponent,Ki=e.defs,Hc=Ki===void 0?fe.defs:Ki,Xi=e.fill,Vc=Xi===void 0?fe.fill:Xi,Ji=e.isInteractive,Yc=Ji===void 0?fe.isInteractive:Ji,Zc=e.onClick,_a=e.onMouseEnter,Qi=e.onMouseMove,wn=e.onMouseLeave,Sr=e.tooltip,xa=Sr===void 0?fe.tooltip:Sr,es=e.activeId,Gc=e.onActiveIdChange,ts=e.defaultActiveId,ns=e.transitionMode,wa=ns===void 0?fe.transitionMode:ns,Ta=e.legends,rs=Ta===void 0?fe.legends:Ta,Kc=e.forwardLegendData,Oa=e.role,as=Oa===void 0?fe.role:Oa,Zn=ED(k,Y,A),Xc=Zn.outerWidth,Jc=Zn.outerHeight,Qc=Zn.margin,C=Zn.innerWidth,z=Zn.innerHeight,re=DF({data:t,id:r,value:i,valueFormat:s,colors:F}),le=UF({data:re,width:C,height:z,fit:x,innerRadius:T,startAngle:f,endAngle:g,padAngle:h,sortByValue:c,cornerRadius:S,activeInnerRadiusOffset:D,activeOuterRadiusOffset:M,activeId:es,onActiveIdChange:Gc,defaultActiveId:ts,forwardLegendData:Kc}),Ee=le.dataWithArc,Ne=le.legendData,Ce=le.arcGenerator,xe=le.centerX,Ge=le.centerY,We=le.radius,He=le.innerRadius,lt=le.setActiveId,Tn=le.toggleSerie,an=BD(Hc,Ee,Vc),Ye={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};l.includes("arcs")&&(Ye.arcs=y.jsx(BF,{center:[xe,Ge],data:Ee,arcGenerator:Ce,borderWidth:L,borderColor:Z,isInteractive:Yc,onClick:Zc,onMouseEnter:_a,onMouseMove:Qi,onMouseLeave:wn,setActiveId:lt,tooltip:xa,transitionMode:wa},"arcs")),O&&l.includes("arcLinkLabels")&&(Ye.arcLinkLabels=y.jsx(vF,{center:[xe,Ge],data:Ee,label:he,skipAngle:Ae,offset:bt,diagonalLength:Ve,straightLength:Ke,strokeWidth:Bt,textOffset:Oe,textColor:rn,linkColor:Gi,component:ya},"arcLinkLabels")),U&&l.includes("arcLabels")&&(Ye.arcLabels=y.jsx(uF,{center:[xe,Ge],data:Ee,label:te,radiusOffset:N,skipAngle:X,textColor:Q,transitionMode:wa,component:W},"arcLabels")),rs.length>0&&l.includes("legends")&&(Ye.legends=y.jsx(IF,{width:C,height:z,data:Ne,legends:rs,toggleSerie:Tn},"legends"));var Ca=zF({dataWithArc:Ee,arcGenerator:Ce,centerX:xe,centerY:Ge,radius:We,innerRadius:He});return y.jsx($y,{width:Xc,height:Jc,margin:Qc,defs:an,role:as,children:l.map(function(kr,eu){return Ye[kr]!==void 0?Ye[kr]:typeof kr=="function"?y.jsx(p.Fragment,{children:p.createElement(kr,Ca)},eu):null})})},HF=function(e){var t=e.isInteractive,n=t===void 0?fe.isInteractive:t,r=e.animate,a=r===void 0?fe.animate:r,i=e.motionConfig,s=i===void 0?fe.motionConfig:i,o=e.theme,c=e.renderWrapper,u=qy(e,WF);return y.jsx(Ey,{animate:a,isInteractive:n,motionConfig:s,renderWrapper:c,theme:o,children:y.jsx(qF,Wn({isInteractive:n},u))})},VF=function(e){return y.jsx(Sy,{children:function(t){var n=t.width,r=t.height;return y.jsx(HF,Wn({width:n,height:r},e))}})};exports.AbstractModalHeader=F0;exports.AuthContext=Sd;exports.AvatarIcon=rv;exports.BaseModal=j0;exports.BootstrapModalManager=zx;exports.CloseButton=Ao;exports.ConfirmContext=Q0;exports.ContextButton=kd;exports.DelegationContext=tv;exports.Documents=b8;exports.ENTERED=Rn;exports.ENTERING=un;exports.EXITED=kn;exports.EXITING=Ds;exports.FaMinus=fT;exports.FaPlus=hT;exports.FaSearch=pT;exports.Fade=Yr;exports.FileExtensionIcon=hv;exports.FloatingLabelInput=av;exports.Form=xr;exports.FormCheckInput=Po;exports.FormControl=O0;exports.FromToDatePickerDropdownToggle=x8;exports.HookFormTextAreaInput=Ad;exports.HookFormTextInput=xi;exports.IconButton=Zo;exports.Ie=m4;exports.InvalidFeedback=Go;exports.LoadingContext=Do;exports.LoginState=ig;exports.LuminusComponentsContext=Et;exports.MdArrowRight=sw;exports.MdCheck=ow;exports.MdCircle=iw;exports.MdClear=Io;exports.MdOutlineAddCircleOutline=mw;exports.MdOutlineArrowOutward=cw;exports.MdOutlineCameraAlt=_w;exports.MdOutlineChevronRight=Tw;exports.MdOutlineClose=J0;exports.MdOutlineContentCopy=gw;exports.MdOutlineDelete=lw;exports.MdOutlineEdit=xw;exports.MdOutlineExpand=dw;exports.MdOutlineFileUpload=vw;exports.MdOutlineKeyboardArrowLeft=bw;exports.MdOutlineKeyboardArrowRight=yw;exports.MdOutlineStar=Cw;exports.MdSearch=aw;exports.Modal=ht;exports.ModalContext=fd;exports.NoInputContainer=iv;exports.Oe=E;exports.OverlayTrigger=G0;exports.Popover=V0;exports.PrimaryButton=mr;exports.PromptContext=eg;exports.RowLabelInput=zi;exports.SimpleDropdownToggle=bT;exports.Tooltip=md;exports.TransitionWrapper=t0;exports.Typography=nv;exports.UserAvatarToggle=yT;exports.UserContext=g4;exports._=VF;exports.addEventListener=Jl;exports.addLeadingZeros=Ie;exports.atobUtf8=Pg;exports.buildEmployeeNameString=X3;exports.buildOrgUnitString=J3;exports.buildVehicleNameString=K3;exports.cancelToken=j6;exports.capitalizeFirstLetter=G3;exports.classNames=ae;exports.classes=bl;exports.compareDate=t6;exports.compareDateTime=n6;exports.constructFrom=hn;exports.dataAttr=_0;exports.differenceInCalendarDays=Wm;exports.divWithClassName=n0;exports.extractErrorsFromResponse=xd;exports.extractFilename=Fg;exports.extractPermissionsFromResponse=$g;exports.fixNameIdNulls=Ag;exports.format=Kl;exports.formatDate=Y3;exports.formatDateTime=Z3;exports.formatFileSize=Wo;exports.getDateString=c6;exports.getDaysDifference=r6;exports.getDefaultExportFromCjs=vt;exports.getFirstDayOfMonth=Ng;exports.getFirstDayOfOffsetMonth=a6;exports.getFirstDayOfYear=s6;exports.getLastDayOfMonth=Dg;exports.getLastDayOfOffsetMonth=i6;exports.getLastDayOfYear=o6;exports.getSharedManager=I0;exports.getTimezoneOffsetInMilliseconds=Bu;exports.hasOnlyNullValues=Mg;exports.hookFormSetServerErrors=H3;exports.isISODate=Ig;exports.isPrimitive=Gs;exports.isValidDate=e6;exports.joinStrings=wd;exports.jsxRuntimeExports=y;exports.latinize=Td;exports.mergeOptionsWithPopperConfig=y0;exports.millisecondsInHour=Co;exports.millisecondsInMinute=Zl;exports.millisecondsInWeek=Yl;exports.msToStartOfNextDay=Q3;exports.parseISO=So;exports.qsa=Qn;exports.replaceNullValuesOnlyObjectsWithNulls=q3;exports.saveFile=Ks;exports.saveFileFromResponse=u6;exports.secondsInDay=Gl;exports.secondsInHour=Lm;exports.secondsInMinute=Jy;exports.secondsInMonth=zm;exports.secondsInQuarter=e1;exports.secondsInWeek=Qy;exports.secondsInYear=Um;exports.shortenText=V3;exports.startOfDay=zu;exports.startOfWeek=Vr;exports.style=In;exports.toDate=Ct;exports.transitionEndListener=Qm;exports.triggerBrowserReflow=e0;exports.trimIsoDate=qo;exports.truncateText=jg;exports.urlfyArray=fl;exports.useAuth=Bg;exports.useAxios=Ho;exports.useBootstrapPrefix=Ue;exports.useCallbackRef=Ls;exports.useClickOutside=b0;exports.useCol=i0;exports.useConfirm=Wg;exports.useCookies=Od;exports.useEventCallback=ot;exports.useFormControlType=ev;exports.useIsRTL=Ro;exports.useIsomorphicEffect=Us;exports.useMergedRefs=_n;exports.useNotifications=Cd;exports.usePopper=g0;exports.usePrevious=r0;exports.usePrompt=tg;exports.useUncontrolled=w_;exports.useWindow=$o;exports.useZodSchemaTypes=Yo;exports.warning=Ni;