@lax-wp/design-system 0.1.0 → 0.1.2

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 (35) hide show
  1. package/README.md +526 -16
  2. package/dist/components/data-display/badge/Badge.d.ts +44 -0
  3. package/dist/components/data-display/banner/Banner.d.ts +41 -0
  4. package/dist/components/data-display/code-editor/CodeEditor.d.ts +4 -0
  5. package/dist/components/data-display/code-editor/JsonGrid.d.ts +14 -0
  6. package/dist/components/data-display/code-editor/Tabs.d.ts +12 -0
  7. package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +45 -0
  8. package/dist/components/data-display/popper/Popper.d.ts +57 -0
  9. package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +29 -0
  10. package/dist/components/data-display/typography/Typography.d.ts +15 -0
  11. package/dist/components/feedback/toast/Toast.d.ts +29 -0
  12. package/dist/components/forms/checkbox/Checkbox.d.ts +55 -0
  13. package/dist/components/forms/color-picker/ColorPicker.d.ts +60 -0
  14. package/dist/components/forms/creatable-select/CreatableSelect.d.ts +92 -0
  15. package/dist/components/forms/currency-input/CurrencyInputField.d.ts +73 -0
  16. package/dist/components/forms/currency-input/currency.constant.d.ts +6 -0
  17. package/dist/components/forms/date-range/DateRange.d.ts +72 -0
  18. package/dist/components/forms/debounce-input/DebounceInputField.d.ts +76 -0
  19. package/dist/components/forms/input-field/InputField.d.ts +62 -0
  20. package/dist/components/forms/percentage-input/PercentageInputField.d.ts +75 -0
  21. package/dist/components/forms/text-field/TextField.d.ts +48 -0
  22. package/dist/components/forms/toggle/Toggle.d.ts +71 -0
  23. package/dist/components/tooltip/Tooltip.d.ts +13 -0
  24. package/dist/design-system.css +1 -0
  25. package/dist/hooks/useOutsideClick.d.ts +28 -0
  26. package/dist/hooks/usePythonSyntax.d.ts +28 -0
  27. package/dist/hooks/useTheme.d.ts +6 -0
  28. package/dist/index.d.ts +48 -0
  29. package/dist/index.es.js +25703 -4806
  30. package/dist/index.umd.js +225 -31
  31. package/dist/services/monacoManager.d.ts +28 -0
  32. package/dist/types/index.d.ts +66 -0
  33. package/dist/utils/messageConstants.d.ts +16 -0
  34. package/dist/utils/utilities.d.ts +13 -0
  35. package/package.json +40 -13
package/dist/index.umd.js CHANGED
@@ -1,46 +1,240 @@
1
- (function(ft,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(ft=typeof globalThis<"u"?globalThis:ft||self,x(ft.LaxDesignSystem={},ft.React))})(this,function(ft,x){"use strict";function Fr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ve=Fr(x);var te={exports:{}},Ot={};/**
1
+ (function(he,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","react-dom"],O):(he=typeof globalThis<"u"?globalThis:he||self,O(he.LaxDesignSystem={},he.React,he.FramerMotion,he.ReactDOM))})(this,function(he,O,He,Sn){"use strict";function Wc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const R=Wc(O),Rs=Wc(Sn);var No=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ro={exports:{}},pi={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-runtime.production.min.js
4
4
  *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Un;function Ir(){if(Un)return Ot;Un=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,o){var r=null;if(o!==void 0&&(r=""+o),i.key!==void 0&&(r=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:s,key:r,ref:i!==void 0?i:null,props:o}}return Ot.Fragment=e,Ot.jsx=n,Ot.jsxs=n,Ot}var Ft={};/**
9
+ */var zc;function uv(){if(zc)return pi;zc=1;var e=O,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(u,s,l){var c,d={},f=null,g=null;l!==void 0&&(f=""+l),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(g=s.ref);for(c in s)i.call(s,c)&&!o.hasOwnProperty(c)&&(d[c]=s[c]);if(u&&u.defaultProps)for(c in s=u.defaultProps,s)d[c]===void 0&&(d[c]=s[c]);return{$$typeof:t,type:u,key:f,ref:g,props:d,_owner:n.current}}return pi.Fragment=r,pi.jsx=a,pi.jsxs=a,pi}var mi={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $n;function Br(){return $n||($n=1,process.env.NODE_ENV!=="production"&&function(){function t(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===B?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case y:return"Fragment";case g:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case V:return"SuspenseList";case L:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case p:return"Portal";case v:return(m.displayName||"Context")+".Provider";case T:return(m._context.displayName||"Context")+".Consumer";case A:var C=m.render;return m=m.displayName,m||(m=C.displayName||C.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case E:return C=m.displayName||null,C!==null?C:t(m.type)||"Memo";case S:C=m._payload,m=m._init;try{return t(m(C))}catch{}}return null}function e(m){return""+m}function n(m){try{e(m);var C=!1}catch{C=!0}if(C){C=console;var j=C.error,U=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return j.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",U),e(m)}}function s(m){if(m===y)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===S)return"<...>";try{var C=t(m);return C?"<"+C+">":"<...>"}catch{return"<...>"}}function i(){var m=Y.A;return m===null?null:m.getOwner()}function o(){return Error("react-stack-top-frame")}function r(m){if(xt.call(m,"key")){var C=Object.getOwnPropertyDescriptor(m,"key").get;if(C&&C.isReactWarning)return!1}return m.key!==void 0}function a(m,C){function j(){Tt||(Tt=!0,console.error("%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://react.dev/link/special-props)",C))}j.isReactWarning=!0,Object.defineProperty(m,"key",{get:j,configurable:!0})}function l(){var m=t(this.type);return rt[m]||(rt[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function c(m,C,j,U,ht,et,Bn,Nn){return j=et.ref,m={$$typeof:d,type:m,key:C,props:et,_owner:ht},(j!==void 0?j:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:l}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Bn}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Nn}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function u(m,C,j,U,ht,et,Bn,Nn){var $=C.children;if($!==void 0)if(U)if(Qt($)){for(U=0;U<$.length;U++)h($[U]);Object.freeze&&Object.freeze($)}else console.error("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 h($);if(xt.call(C,"key")){$=t(m);var jt=Object.keys(C).filter(function(yc){return yc!=="key"});U=0<jt.length?"{key: someKey, "+jt.join(": ..., ")+": ...}":"{key: someKey}",tt[$+U]||(jt=0<jt.length?"{"+jt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Xc;function lv(){return Xc||(Xc=1,process.env.NODE_ENV!=="production"&&function(){var e=O,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function m(M){if(M===null||typeof M!="object")return null;var J=h&&M[h]||M[p];return typeof J=="function"?J:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(M){{for(var J=arguments.length,ie=new Array(J>1?J-1:0),ue=1;ue<J;ue++)ie[ue-1]=arguments[ue];I("error",M,ie)}}function I(M,J,ie){{var ue=b.ReactDebugCurrentFrame,xe=ue.getStackAddendum();xe!==""&&(J+="%s",ie=ie.concat([xe]));var je=ie.map(function(be){return String(be)});je.unshift("Warning: "+J),Function.prototype.apply.call(console[M],console,je)}}var x=!1,v=!1,S=!1,E=!1,w=!1,T;T=Symbol.for("react.module.reference");function k(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===o||w||M===n||M===l||M===c||E||M===g||x||v||S||typeof M=="object"&&M!==null&&(M.$$typeof===f||M.$$typeof===d||M.$$typeof===a||M.$$typeof===u||M.$$typeof===s||M.$$typeof===T||M.getModuleId!==void 0))}function V(M,J,ie){var ue=M.displayName;if(ue)return ue;var xe=J.displayName||J.name||"";return xe!==""?ie+"("+xe+")":ie}function C(M){return M.displayName||"Context"}function N(M){if(M==null)return null;if(typeof M.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case u:var J=M;return C(J)+".Consumer";case a:var ie=M;return C(ie._context)+".Provider";case s:return V(M,M.render,"ForwardRef");case d:var ue=M.displayName||null;return ue!==null?ue:N(M.type)||"Memo";case f:{var xe=M,je=xe._payload,be=xe._init;try{return N(be(je))}catch{return null}}}return null}var F=Object.assign,P=0,j,B,U,Q,$,L,G;function _(){}_.__reactDisabledLog=!0;function X(){{if(P===0){j=console.log,B=console.info,U=console.warn,Q=console.error,$=console.group,L=console.groupCollapsed,G=console.groupEnd;var M={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}P++}}function K(){{if(P--,P===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},M,{value:j}),info:F({},M,{value:B}),warn:F({},M,{value:U}),error:F({},M,{value:Q}),group:F({},M,{value:$}),groupCollapsed:F({},M,{value:L}),groupEnd:F({},M,{value:G})})}P<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=b.ReactCurrentDispatcher,D;function Z(M,J,ie){{if(D===void 0)try{throw Error()}catch(xe){var ue=xe.stack.trim().match(/\n( *(at )?)/);D=ue&&ue[1]||""}return`
18
+ `+D+M}}var ne=!1,ce;{var Ee=typeof WeakMap=="function"?WeakMap:Map;ce=new Ee}function z(M,J){if(!M||ne)return"";{var ie=ce.get(M);if(ie!==void 0)return ie}var ue;ne=!0;var xe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var je;je=ee.current,ee.current=null,X();try{if(J){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(Ot){ue=Ot}Reflect.construct(M,[],be)}else{try{be.call()}catch(Ot){ue=Ot}M.call(be.prototype)}}else{try{throw Error()}catch(Ot){ue=Ot}M()}}catch(Ot){if(Ot&&ue&&typeof Ot.stack=="string"){for(var ge=Ot.stack.split(`
19
+ `),ct=ue.stack.split(`
20
+ `),Ue=ge.length-1,Ke=ct.length-1;Ue>=1&&Ke>=0&&ge[Ue]!==ct[Ke];)Ke--;for(;Ue>=1&&Ke>=0;Ue--,Ke--)if(ge[Ue]!==ct[Ke]){if(Ue!==1||Ke!==1)do if(Ue--,Ke--,Ke<0||ge[Ue]!==ct[Ke]){var et=`
21
+ `+ge[Ue].replace(" at new "," at ");return M.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",M.displayName)),typeof M=="function"&&ce.set(M,et),et}while(Ue>=1&&Ke>=0);break}}}finally{ne=!1,ee.current=je,K(),Error.prepareStackTrace=xe}var fi=M?M.displayName||M.name:"",In=fi?Z(fi):"";return typeof M=="function"&&ce.set(M,In),In}function Re(M,J,ie){return z(M,!1)}function ae(M){var J=M.prototype;return!!(J&&J.isReactComponent)}function Qe(M,J,ie){if(M==null)return"";if(typeof M=="function")return z(M,ae(M));if(typeof M=="string")return Z(M);switch(M){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case s:return Re(M.render);case d:return Qe(M.type,J,ie);case f:{var ue=M,xe=ue._payload,je=ue._init;try{return Qe(je(xe),J,ie)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,Zt={},_r=b.ReactDebugCurrentFrame;function qt(M){if(M){var J=M._owner,ie=Qe(M.type,M._source,J?J.type:null);_r.setExtraStackFrame(ie)}else _r.setExtraStackFrame(null)}function xt(M,J,ie,ue,xe){{var je=Function.call.bind(ze);for(var be in M)if(je(M,be)){var ge=void 0;try{if(typeof M[be]!="function"){var ct=Error((ue||"React class")+": "+ie+" type `"+be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ct.name="Invariant Violation",ct}ge=M[be](J,be,ue,ie,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ue){ge=Ue}ge&&!(ge instanceof Error)&&(qt(xe),y("%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).",ue||"React class",ie,be,typeof ge),qt(null)),ge instanceof Error&&!(ge.message in Zt)&&(Zt[ge.message]=!0,qt(xe),y("Failed %s type: %s",ie,ge.message),qt(null))}}}var Xe=Array.isArray;function Ge(M){return Xe(M)}function mt(M){{var J=typeof Symbol=="function"&&Symbol.toStringTag,ie=J&&M[Symbol.toStringTag]||M.constructor.name||"Object";return ie}}function Qt(M){try{return Kt(M),!1}catch{return!0}}function Kt(M){return""+M}function yn(M){if(Qt(M))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mt(M)),Kt(M)}var Cn=b.ReactCurrentOwner,ci={key:!0,ref:!0,__self:!0,__source:!0},Os,ks;function Rc(M){if(ze.call(M,"ref")){var J=Object.getOwnPropertyDescriptor(M,"ref").get;if(J&&J.isReactWarning)return!1}return M.ref!==void 0}function Mc(M){if(ze.call(M,"key")){var J=Object.getOwnPropertyDescriptor(M,"key").get;if(J&&J.isReactWarning)return!1}return M.key!==void 0}function Vc(M,J){typeof M.ref=="string"&&Cn.current}function jc(M,J){{var ie=function(){Os||(Os=!0,y("%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)",J))};ie.isReactWarning=!0,Object.defineProperty(M,"key",{get:ie,configurable:!0})}}function Lc(M,J){{var ie=function(){ks||(ks=!0,y("%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)",J))};ie.isReactWarning=!0,Object.defineProperty(M,"ref",{get:ie,configurable:!0})}}var Bc=function(M,J,ie,ue,xe,je,be){var ge={$$typeof:t,type:M,key:J,ref:ie,props:be,_owner:je};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:xe}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function $c(M,J,ie,ue,xe){{var je,be={},ge=null,ct=null;ie!==void 0&&(yn(ie),ge=""+ie),Mc(J)&&(yn(J.key),ge=""+J.key),Rc(J)&&(ct=J.ref,Vc(J,xe));for(je in J)ze.call(J,je)&&!ci.hasOwnProperty(je)&&(be[je]=J[je]);if(M&&M.defaultProps){var Ue=M.defaultProps;for(je in Ue)be[je]===void 0&&(be[je]=Ue[je])}if(ge||ct){var Ke=typeof M=="function"?M.displayName||M.name||"Unknown":M;ge&&jc(be,Ke),ct&&Lc(be,Ke)}return Bc(M,ge,ct,xe,ue,Cn.current,be)}}var Io=b.ReactCurrentOwner,Ps=b.ReactDebugCurrentFrame;function tn(M){if(M){var J=M._owner,ie=Qe(M.type,M._source,J?J.type:null);Ps.setExtraStackFrame(ie)}else Ps.setExtraStackFrame(null)}var So;So=!1;function wo(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Ns(){{if(Io.current){var M=N(Io.current.type);if(M)return`
22
+
23
+ Check the render method of \``+M+"`."}return""}}function Dc(M){return""}var Ao={};function di(M){{var J=Ns();if(!J){var ie=typeof M=="string"?M:M.displayName||M.name;ie&&(J=`
24
+
25
+ Check the top-level render call using <`+ie+">.")}return J}}function xn(M,J){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var ie=di(J);if(Ao[ie])return;Ao[ie]=!0;var ue="";M&&M._owner&&M._owner!==Io.current&&(ue=" It was passed a child from "+N(M._owner.type)+"."),tn(M),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ie,ue),tn(null)}}function En(M,J){{if(typeof M!="object")return;if(Ge(M))for(var ie=0;ie<M.length;ie++){var ue=M[ie];wo(ue)&&xn(ue,J)}else if(wo(M))M._store&&(M._store.validated=!0);else if(M){var xe=m(M);if(typeof xe=="function"&&xe!==M.entries)for(var je=xe.call(M),be;!(be=je.next()).done;)wo(be.value)&&xn(be.value,J)}}}function To(M){{var J=M.type;if(J==null||typeof J=="string")return;var ie;if(typeof J=="function")ie=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===s||J.$$typeof===d))ie=J.propTypes;else return;if(ie){var ue=N(J);xt(ie,M.props,"prop",ue,M)}else if(J.PropTypes!==void 0&&!So){So=!0;var xe=N(J);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",xe||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(M){{for(var J=Object.keys(M.props),ie=0;ie<J.length;ie++){var ue=J[ie];if(ue!=="children"&&ue!=="key"){tn(M),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),tn(null);break}}M.ref!==null&&(tn(M),y("Invalid attribute `ref` supplied to `React.Fragment`."),tn(null))}}var Gr={};function Oo(M,J,ie,ue,xe,je){{var be=k(M);if(!be){var ge="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(ge+=" 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 ct=Dc();ct?ge+=ct:ge+=Ns();var Ue;M===null?Ue="null":Ge(M)?Ue="array":M!==void 0&&M.$$typeof===t?(Ue="<"+(N(M.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof M,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,ge)}var Ke=$c(M,J,ie,xe,je);if(Ke==null)return Ke;if(be){var et=J.children;if(et!==void 0)if(ue)if(Ge(et)){for(var fi=0;fi<et.length;fi++)En(et[fi],M);Object.freeze&&Object.freeze(et)}else y("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 En(et,M)}if(ze.call(J,"key")){var In=N(M),Ot=Object.keys(J).filter(function(nk){return nk!=="key"}),Hc=Ot.length>0?"{key: someKey, "+Ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Gr[In+Hc]){var rk=Ot.length>0?"{"+Ot.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
18
26
  let props = %s;
19
27
  <%s {...props} />
20
28
  React keys must be passed directly to JSX without using spread:
21
29
  let props = %s;
22
- <%s key={someKey} {...props} />`,U,$,jt,$),tt[$+U]=!0)}if($=null,j!==void 0&&(n(j),$=""+j),r(C)&&(n(C.key),$=""+C.key),"key"in C){j={};for(var _n in C)_n!=="key"&&(j[_n]=C[_n])}else j=C;return $&&a(j,typeof m=="function"?m.displayName||m.name||"Unknown":m),c(m,$,et,ht,i(),j,Bn,Nn)}function h(m){typeof m=="object"&&m!==null&&m.$$typeof===d&&m._store&&(m._store.validated=1)}var f=x,d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),v=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),Y=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xt=Object.prototype.hasOwnProperty,Qt=Array.isArray,ct=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(m){return m()}};var Tt,rt={},I=f.react_stack_bottom_frame.bind(f,o)(),K=ct(s(o)),tt={};Ft.Fragment=y,Ft.jsx=function(m,C,j,U,ht){var et=1e4>Y.recentlyCreatedOwnerStacks++;return u(m,C,j,!1,U,ht,et?Error("react-stack-top-frame"):I,et?ct(s(m)):K)},Ft.jsxs=function(m,C,j,U,ht){var et=1e4>Y.recentlyCreatedOwnerStacks++;return u(m,C,j,!0,U,ht,et?Error("react-stack-top-frame"):I,et?ct(s(m)):K)}}()),Ft}var Wn;function Nr(){return Wn||(Wn=1,process.env.NODE_ENV==="production"?te.exports=Ir():te.exports=Br()),te.exports}var M=Nr();const xe=x.createContext({});function Te(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const be=typeof window<"u",Kn=be?x.useLayoutEffect:x.useEffect,ee=x.createContext(null);function Pe(t,e){t.indexOf(e)===-1&&t.push(e)}function we(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const nt=(t,e,n)=>n>e?e:n<t?t:n;function Se(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let bt=()=>{},st=()=>{};process.env.NODE_ENV!=="production"&&(bt=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(Se(e,n))},st=(t,e,n)=>{if(!t)throw new Error(Se(e,n))});const it={},zn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Yn(t){return typeof t=="object"&&t!==null}const Gn=t=>/^0[^.\s]+$/u.test(t);function Ae(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,_r=(t,e)=>n=>e(t(n)),It=(...t)=>t.reduce(_r),Bt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Ve{constructor(){this.subscriptions=[]}add(e){return Pe(this.subscriptions,e),()=>we(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const q=t=>t*1e3,J=t=>t/1e3;function Hn(t,e){return e?t*(1e3/e):0}const Xn=new Set;function Ce(t,e,n){t||Xn.has(e)||(console.warn(Se(e,n)),Xn.add(e))}const qn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ur=1e-7,$r=12;function Wr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=qn(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ur&&++a<$r);return r}function Nt(t,e,n,s){if(t===e&&n===s)return G;const i=o=>Wr(o,0,1,t,n);return o=>o===0||o===1?o:qn(i(o),e,s)}const Zn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Jn=t=>e=>1-t(1-e),Qn=Nt(.33,1.53,.69,.99),Ee=Jn(Qn),ts=Zn(Ee),es=t=>(t*=2)<1?.5*Ee(t):.5*(2-Math.pow(2,-10*(t-1))),De=t=>1-Math.sin(Math.acos(t)),ns=Jn(De),ss=Zn(De),Kr=Nt(.42,0,1,1),zr=Nt(0,0,.58,1),is=Nt(.42,0,.58,1),Yr=t=>Array.isArray(t)&&typeof t[0]!="number",rs=t=>Array.isArray(t)&&typeof t[0]=="number",os={linear:G,easeIn:Kr,easeInOut:is,easeOut:zr,circIn:De,circInOut:ss,circOut:ns,backIn:Ee,backInOut:ts,backOut:Qn,anticipate:es},Gr=t=>typeof t=="string",as=t=>{if(rs(t)){st(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return Nt(e,n,s,i)}else if(Gr(t))return st(os[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),os[t];return t},ne=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Hr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&r.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const Xr=40;function ls(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ne.reduce((v,A)=>(v[A]=Hr(o),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:p}=r,y=()=>{const v=it.useManualTiming?i.timestamp:performance.now();n=!1,it.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Xr),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},b=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:ne.reduce((v,A)=>{const P=r[A];return v[A]=(V,E=!1,S=!1)=>(n||b(),P.schedule(V,E,S)),v},{}),cancel:v=>{for(let A=0;A<ne.length;A++)r[ne[A]].cancel(v)},state:i,steps:r}}const{schedule:D,cancel:ot,state:N,steps:Me}=ls(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let se;function qr(){se=void 0}const z={now:()=>(se===void 0&&z.set(N.isProcessing||it.useManualTiming?N.timestamp:performance.now()),se),set:t=>{se=t,queueMicrotask(qr)}},us=t=>e=>typeof e=="string"&&e.startsWith(t),Re=us("--"),Zr=us("var(--"),ke=t=>Zr(t)?Jr.test(t.split("/*")[0].trim()):!1,Jr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},_t={...Pt,transform:t=>nt(0,1,t)},ie={...Pt,default:1},Ut=t=>Math.round(t*1e5)/1e5,Le=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qr(t){return t==null}const to=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,je=(t,e)=>n=>!!(typeof n=="string"&&to.test(n)&&n.startsWith(t)||e&&!Qr(n)&&Object.prototype.hasOwnProperty.call(n,e)),cs=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Le);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},eo=t=>nt(0,255,t),Oe={...Pt,transform:t=>Math.round(eo(t))},dt={test:je("rgb","red"),parse:cs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Oe.transform(t)+", "+Oe.transform(e)+", "+Oe.transform(n)+", "+Ut(_t.transform(s))+")"};function no(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Fe={test:je("#"),parse:no,transform:dt.transform},$t=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),at=$t("deg"),Q=$t("%"),w=$t("px"),so=$t("vh"),io=$t("vw"),hs={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},wt={test:je("hsl","hue"),parse:cs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Ut(e))+", "+Q.transform(Ut(n))+", "+Ut(_t.transform(s))+")"},F={test:t=>dt.test(t)||Fe.test(t)||wt.test(t),parse:t=>dt.test(t)?dt.parse(t):wt.test(t)?wt.parse(t):Fe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?dt.transform(t):wt.transform(t),getAnimatableNone:t=>{const e=F.parse(t);return e.alpha=0,F.transform(e)}},ro=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function oo(t){return isNaN(t)&&typeof t=="string"&&(t.match(Le)?.length||0)+(t.match(ro)?.length||0)>0}const fs="number",ds="color",ao="var",lo="var(",ms="${}",uo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(uo,l=>(F.test(l)?(s.color.push(o),i.push(ds),n.push(F.parse(l))):l.startsWith(lo)?(s.var.push(o),i.push(ao),n.push(l)):(s.number.push(o),i.push(fs),n.push(parseFloat(l))),++o,ms)).split(ms);return{values:n,split:a,indexes:s,types:i}}function ps(t){return Wt(t).values}function gs(t){const{split:e,types:n}=Wt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===fs?o+=Ut(i[r]):a===ds?o+=F.transform(i[r]):o+=i[r]}return o}}const co=t=>typeof t=="number"?0:F.test(t)?F.getAnimatableNone(t):t;function ho(t){const e=ps(t);return gs(t)(e.map(co))}const lt={test:oo,parse:ps,createTransformer:gs,getAnimatableNone:ho};function Ie(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Ie(l,a,t+1/3),o=Ie(l,a,t),r=Ie(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const R=(t,e,n)=>t+(e-t)*n,Be=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},mo=[Fe,dt,wt],po=t=>mo.find(e=>e.test(t));function ys(t){const e=po(t);if(bt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===wt&&(n=fo(n)),n}const vs=(t,e)=>{const n=ys(t),s=ys(e);if(!n||!s)return re(t,e);const i={...n};return o=>(i.red=Be(n.red,s.red,o),i.green=Be(n.green,s.green,o),i.blue=Be(n.blue,s.blue,o),i.alpha=R(n.alpha,s.alpha,o),dt.transform(i))},Ne=new Set(["none","hidden"]);function go(t,e){return Ne.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function yo(t,e){return n=>R(t,e,n)}function _e(t){return typeof t=="number"?yo:typeof t=="string"?ke(t)?re:F.test(t)?vs:To:Array.isArray(t)?xs:typeof t=="object"?F.test(t)?vs:vo:re}function xs(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>_e(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function vo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=_e(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function xo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const To=(t,e)=>{const n=lt.createTransformer(e),s=Wt(t),i=Wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ne.has(t)&&!i.values.length||Ne.has(e)&&!s.values.length?go(t,e):It(xs(xo(s,i),i.values),n):(bt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),re(t,e))};function Ts(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):_e(t)(t,e)}const bo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>ot(e),now:()=>N.isProcessing?N.timestamp:z.now()}},bs=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},oe=2e4;function Ue(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<oe;)e+=n,s=t.next(e);return e>=oe?1/0:e}function Po(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Ue(s),oe);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:J(i)}}const wo=5;function Ps(t,e,n){const s=Math.max(e-wo,0);return Hn(n-t(s),e-s)}const k={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},$e=.001;function So({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,o;bt(t<=q(k.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=nt(k.minDamping,k.maxDamping,r),t=nt(k.minDuration,k.maxDuration,J(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=We(c,r),p=Math.exp(-h);return $e-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),y=We(Math.pow(c,2),r);return(-i(c)+$e>0?-1:1)*((f-d)*p)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-$e+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Vo(i,o,a);if(t=q(t),isNaN(l))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Ao=12;function Vo(t,e,n){let s=n;for(let i=1;i<Ao;i++)s=s-t(s)/e(s);return s}function We(t,e){return t*Math.sqrt(1-e*e)}const Co=["duration","bounce"],Eo=["stiffness","damping","mass"];function ws(t,e){return e.some(n=>t[n]!==void 0)}function Do(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!ws(t,Eo)&&ws(t,Co))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*nt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:o}}else{const n=So(t);e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function ae(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Do({...n,velocity:-J(n.velocity||0)}),p=f||0,y=c/(2*Math.sqrt(l*u)),b=r-o,g=J(Math.sqrt(l/u)),T=Math.abs(b)<5;s||(s=T?k.restSpeed.granular:k.restSpeed.default),i||(i=T?k.restDelta.granular:k.restDelta.default);let v;if(y<1){const P=We(g,y);v=V=>{const E=Math.exp(-y*g*V);return r-E*((p+y*g*b)/P*Math.sin(P*V)+b*Math.cos(P*V))}}else if(y===1)v=P=>r-Math.exp(-g*P)*(b+(p+g*b)*P);else{const P=g*Math.sqrt(y*y-1);v=V=>{const E=Math.exp(-y*g*V),S=Math.min(P*V,300);return r-E*((p+y*g*b)*Math.sinh(S)+P*b*Math.cosh(S))/P}}const A={calculatedDuration:d&&h||null,next:P=>{const V=v(P);if(d)a.done=P>=h;else{let E=P===0?p:0;y<1&&(E=P===0?q(p):Ps(v,P,V));const S=Math.abs(E)<=s,L=Math.abs(r-V)<=i;a.done=S&&L}return a.value=a.done?r:V,a},toString:()=>{const P=Math.min(Ue(A),oe),V=bs(E=>A.next(P*E).value,P,30);return P+"ms "+V},toTransition:()=>{}};return A}ae.applyToOptions=t=>{const e=Po(t,100,ae);return t.ease=e.ease,t.duration=q(e.duration),t.type="keyframes",t};function Ke({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let y=n*e;const b=h+y,g=r===void 0?b:r(b);g!==b&&(y=g-h);const T=S=>-y*Math.exp(-S/s),v=S=>g+T(S),A=S=>{const L=T(S),B=v(S);f.done=Math.abs(L)<=c,f.value=f.done?g:B};let P,V;const E=S=>{d(f.value)&&(P=S,V=ae({keyframes:[f.value,p(f.value)],velocity:Ps(v,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:S=>{let L=!1;return!V&&P===void 0&&(L=!0,A(S),E(S)),P!==void 0&&S>=P?V.next(S-P):(!L&&A(S),f)}}}function Mo(t,e,n){const s=[],i=n||it.mix||Ts,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||G:e;a=It(l,a)}s.push(a)}return s}function Ro(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(st(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Mo(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Bt(t[h],t[h+1],u);return a[h](f)};return n?u=>c(nt(t[0],t[o-1],u)):c}function ko(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Bt(0,e,s);t.push(R(n,1,i))}}function Lo(t){const e=[0];return ko(e,t.length-1),e}function jo(t,e){return t.map(n=>n*e)}function Oo(t,e){return t.map(()=>e||is).splice(0,t.length-1)}function St({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Yr(s)?s.map(as):as(s),o={done:!1,value:e[0]},r=jo(n&&n.length===e.length?n:Lo(e),t),a=Ro(r,e,{ease:Array.isArray(i)?i:Oo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Fo=t=>t!==null;function ze(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Fo),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Io={decay:Ke,inertia:Ke,tween:St,keyframes:St,spring:ae};function Ss(t){typeof t.type=="string"&&(t.type=Io[t.type])}class Ye{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Bo=t=>t/100;class Ge extends Ye{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==z.now()&&this.tick(z.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ss(e);const{type:n=St,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||St;process.env.NODE_ENV!=="production"&&l!==St&&st(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=It(Bo,Ts(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Ue(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,A=s;if(h){const S=Math.min(this.currentTime,i)/a;let L=Math.floor(S),B=S%1;!B&&S>=1&&(B=1),B===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(f==="reverse"?(B=1-B,d&&(B-=d/a)):f==="mirror"&&(A=r)),v=nt(0,1,B)*a}const P=T?{done:!1,value:u[0]}:A.next(v);o&&(P.value=o(P.value));let{done:V}=P;!T&&l!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return E&&p!==Ke&&(P.value=ze(u,this.options,b,this.speed)),y&&y(P.value),E&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return J(this.calculatedDuration)}get time(){return J(this.currentTime)}set time(e){e=q(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(z.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=J(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=bo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(z.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function No(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const mt=t=>t*180/Math.PI,He=t=>{const e=mt(Math.atan2(t[1],t[0]));return Xe(e)},_o={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:He,rotateZ:He,skewX:t=>mt(Math.atan(t[1])),skewY:t=>mt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Xe=t=>(t=t%360,t<0&&(t+=360),t),As=He,Vs=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Cs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Uo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Vs,scaleY:Cs,scale:t=>(Vs(t)+Cs(t))/2,rotateX:t=>Xe(mt(Math.atan2(t[6],t[5]))),rotateY:t=>Xe(mt(Math.atan2(-t[2],t[0]))),rotateZ:As,rotate:As,skewX:t=>mt(Math.atan(t[4])),skewY:t=>mt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function qe(t){return t.includes("scale")?1:0}function Ze(t,e){if(!t||t==="none")return qe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Uo,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=_o,i=a}if(!i)return qe(e);const o=s[e],r=i[1].split(",").map(Wo);return typeof o=="function"?o(r):r[o]}const $o=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ze(n,e)};function Wo(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set(At),Es=t=>t===Pt||t===w,Ko=new Set(["x","y","z"]),zo=At.filter(t=>!Ko.has(t));function Yo(t){const e=[];return zo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const pt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ze(e,"x"),y:(t,{transform:e})=>Ze(e,"y")};pt.translateX=pt.x,pt.translateY=pt.y;const gt=new Set;let Je=!1,Qe=!1,tn=!1;function Ds(){if(Qe){const t=Array.from(gt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Yo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Qe=!1,Je=!1,gt.forEach(t=>t.complete(tn)),gt.clear()}function Ms(){gt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qe=!0)})}function Go(){tn=!0,Ms(),Ds(),tn=!1}class en{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(gt.add(this),Je||(Je=!0,D.read(Ms),D.resolveKeyframes(Ds))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}No(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),gt.delete(this)}cancel(){this.state==="scheduled"&&(gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ho=t=>t.startsWith("--");function Xo(t,e,n){Ho(e)?t.style.setProperty(e,n):t.style[e]=n}const qo=Ae(()=>window.ScrollTimeline!==void 0),Zo={};function Jo(t,e){const n=Ae(t);return()=>Zo[e]??n()}const Rs=Jo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ks={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kt([0,.65,.55,1]),circOut:Kt([.55,0,1,.45]),backIn:Kt([.31,.01,.66,-.59]),backOut:Kt([.33,1.53,.69,.99])};function Ls(t,e){if(t)return typeof t=="function"?Rs()?bs(t,e):"ease-out":rs(t)?Kt(t):Array.isArray(t)?t.map(n=>Ls(n,e)||ks.easeOut):ks[t]}function Qo(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Ls(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function js(t){return typeof t=="function"&&"applyToOptions"in t}function ta({type:t,...e}){return js(t)&&Rs()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ea extends Ye{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,st(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=ta(e);this.animation=Qo(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=ze(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Xo(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return J(Number(e))}get time(){return J(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=q(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&qo()?(this.animation.timeline=e,G):n(this)}}const Os={anticipate:es,backInOut:ts,circInOut:ss};function na(t){return t in Os}function sa(t){typeof t.ease=="string"&&na(t.ease)&&(t.ease=Os[t.ease])}const Fs=10;class ia extends ea{constructor(e){sa(e),Ss(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ge({...r,autoplay:!1}),l=q(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Fs).value,a.sample(l).value,Fs),a.stop()}}const Is=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(lt.test(t)||t==="0")&&!t.startsWith("url("));function ra(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function oa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Is(i,e),a=Is(o,e);return bt(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:ra(t)||(n==="spring"||js(n))&&s}function nn(t){t.duration=0,t.type}const aa=new Set(["opacity","clipPath","filter","transform"]),la=Ae(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ua(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return la()&&n&&aa.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ca=40;class ha extends Ye{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},d=u?.KeyframeResolver||en;this.keyframeResolver=new d(a,(p,y,b)=>this.onKeyframesResolved(p,y,f,!b),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=z.now(),oa(e,o,r,a)||((it.instantAnimations||!l)&&u?.(ze(e,s,n)),e[0]=e[e.length-1],nn(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ca?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&ua(f)?new ia({...f,element:f.motionValue.owner.current}):new Ge(f);d.finished.then(()=>this.notifyFinished()).catch(G),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Go()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const fa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function da(t){const e=fa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const ma=4;function Bs(t,e,n=1){st(n<=ma,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=da(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return zn(r)?parseFloat(r):r}return ke(i)?Bs(i,e,n+1):i}function sn(t,e){return t?.[e]??t?.default??t}const Ns=new Set(["width","height","top","left","right","bottom",...At]),pa={test:t=>t==="auto",parse:t=>t},_s=t=>e=>e.test(t),Us=[Pt,w,Q,at,io,so,pa],$s=t=>Us.find(_s(t));function ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gn(t):!0}const ya=new Set(["brightness","contrast","saturate","opacity"]);function va(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Le)||[];if(!s)return t;const i=n.replace(s,"");let o=ya.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const xa=/\b([a-z-]*)\(.*?\)/gu,rn={...lt,getAnimatableNone:t=>{const e=t.match(xa);return e?e.map(va).join(" "):t}},Ws={...Pt,transform:Math.round},on={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w,...{rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:ie,scaleX:ie,scaleY:ie,scaleZ:ie,skew:at,skewX:at,skewY:at,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:_t,originX:hs,originY:hs,originZ:w},zIndex:Ws,fillOpacity:_t,strokeOpacity:_t,numOctaves:Ws},Ta={...on,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:rn,WebkitFilter:rn},Ks=t=>Ta[t];function zs(t,e){let n=Ks(t);return n!==rn&&(n=lt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ba=new Set(["auto","none","0"]);function Pa(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!ba.has(o)&&Wt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=zs(n,i)}class wa extends en{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),ke(c))){const u=Bs(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ns.has(s)||e.length!==2)return;const[i,o]=e,r=$s(i),a=$s(o);if(r!==a)if(Es(r)&&Es(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else pt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ga(e[i]))&&s.push(i);s.length&&Pa(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=pt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Sa(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Ys=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Gs(t){return Yn(t)&&"offsetHeight"in t}const Hs=30,Aa=t=>!isNaN(parseFloat(t));class Va{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=z.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Aa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Ce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ve);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hs);return Hn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ct(t,e){return new Va(t,e)}const{schedule:an}=ls(queueMicrotask,!1),Z={x:!1,y:!1};function Xs(){return Z.x||Z.y}function Ca(t){return t==="x"||t==="y"?Z[t]?null:(Z[t]=!0,()=>{Z[t]=!1}):Z.x||Z.y?null:(Z.x=Z.y=!0,()=>{Z.x=Z.y=!1})}function qs(t,e){const n=Sa(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Zs(t){return!(t.pointerType==="touch"||Xs())}function Ea(t,e,n={}){const[s,i,o]=qs(t,n),r=a=>{if(!Zs(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{Zs(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Js=(t,e)=>e?t===e?!0:Js(t,e.parentElement):!1,ln=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Da=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ma(t){return Da.has(t.tagName)||t.tabIndex!==-1}const le=new WeakSet;function Qs(t){return e=>{e.key==="Enter"&&t(e)}}function un(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ra=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Qs(()=>{if(le.has(n))return;un(n,"down");const i=Qs(()=>{un(n,"up")}),o=()=>un(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ti(t){return ln(t)&&!Xs()}function ka(t,e,n={}){const[s,i,o]=qs(t,n),r=a=>{const l=a.currentTarget;if(!ti(a))return;le.add(l);const c=e(l,a),u=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),le.has(l)&&le.delete(l),ti(d)&&typeof c=="function"&&c(d,{success:p})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||Js(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Gs(a)&&(a.addEventListener("focus",c=>Ra(c,i)),!Ma(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ei(t){return Yn(t)&&"ownerSVGElement"in t}function La(t){return ei(t)&&t.tagName==="svg"}const _=t=>!!(t&&t.getVelocity),ja=[...Us,F,lt],Oa=t=>ja.find(_s(t)),cn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Fa extends ve.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Gs(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ia({children:t,isPresent:e,anchorX:n,root:s}){const i=x.useId(),o=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=x.useContext(cn);return x.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:h,right:f}=r.current;if(e||!o.current||!l||!c)return;const d=n==="left"?`left: ${h}`:`right: ${f}`;o.current.dataset.motionPopId=i;const p=document.createElement("style");a&&(p.nonce=a);const y=s??document.head;return y.appendChild(p),p.sheet&&p.sheet.insertRule(`
23
- [data-motion-pop-id="${i}"] {
24
- position: absolute !important;
25
- width: ${l}px !important;
26
- height: ${c}px !important;
27
- ${d}px !important;
28
- top: ${u}px !important;
29
- }
30
- `),()=>{y.contains(p)&&y.removeChild(p)}},[e]),M.jsx(Fa,{isPresent:e,childRef:o,sizeRef:r,children:ve.cloneElement(t,{ref:o})})}const Ba=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:l})=>{const c=Te(Na),u=x.useId();let h=!0,f=x.useMemo(()=>(h=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:d=>{c.set(d,!0);for(const p of c.values())if(!p)return;s&&s()},register:d=>(c.set(d,!1),()=>c.delete(d))}),[n,c,s]);return o&&h&&(f={...f}),x.useMemo(()=>{c.forEach((d,p)=>c.set(p,!1))},[n]),ve.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),r==="popLayout"&&(t=M.jsx(Ia,{isPresent:n,anchorX:a,root:l,children:t})),M.jsx(ee.Provider,{value:f,children:t})};function Na(){return new Map}function ni(t=!0){const e=x.useContext(ee);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=x.useId();x.useEffect(()=>{if(t)return i(o)},[t]);const r=x.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const ue=t=>t.key||"";function si(t){const e=[];return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const _a=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[c,u]=ni(r),h=x.useMemo(()=>si(t),[t]),f=r&&!c?[]:h.map(ue),d=x.useRef(!0),p=x.useRef(h),y=Te(()=>new Map),[b,g]=x.useState(h),[T,v]=x.useState(h);Kn(()=>{d.current=!1,p.current=h;for(let V=0;V<T.length;V++){const E=ue(T[V]);f.includes(E)?y.delete(E):y.get(E)!==!0&&y.set(E,!1)}},[T,f.length,f.join("-")]);const A=[];if(h!==b){let V=[...h];for(let E=0;E<T.length;E++){const S=T[E],L=ue(S);f.includes(L)||(V.splice(E,0,S),A.push(S))}return o==="wait"&&A.length&&(V=A),v(si(V)),g(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&T.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:P}=x.useContext(xe);return M.jsx(M.Fragment,{children:T.map(V=>{const E=ue(V),S=r&&!c?!1:h===T||f.includes(E),L=()=>{if(y.has(E))y.set(E,!0);else return;let B=!0;y.forEach(Y=>{Y||(B=!1)}),B&&(P?.(),v(p.current),r&&u?.(),s&&s())};return M.jsx(Ba,{isPresent:S,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:S?void 0:L,anchorX:a,children:V},E)})})},ii=x.createContext({strict:!1}),ri={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Et={};for(const t in ri)Et[t]={isEnabled:e=>ri[t].some(n=>!!e[n])};function Ua(t){for(const e in t)Et[e]={...Et[e],...t[e]}}const $a=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ce(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$a.has(t)}let oi=t=>!ce(t);function Wa(t){typeof t=="function"&&(oi=e=>e.startsWith("on")?!ce(e):t(e))}try{Wa(require("@emotion/is-prop-valid").default)}catch{}function Ka(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(oi(i)||n===!0&&ce(i)||!e&&!ce(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const he=x.createContext({});function fe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function zt(t){return typeof t=="string"||Array.isArray(t)}const hn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fn=["initial",...hn];function de(t){return fe(t.animate)||fn.some(e=>zt(t[e]))}function ai(t){return!!(de(t)||t.variants)}function za(t,e){if(de(t)){const{initial:n,animate:s}=t;return{initial:n===!1||zt(n)?n:void 0,animate:zt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ya(t){const{initial:e,animate:n}=za(t,x.useContext(he));return x.useMemo(()=>({initial:e,animate:n}),[li(e),li(n)])}function li(t){return Array.isArray(t)?t.join(" "):t}const Yt={};function Ga(t){for(const e in t)Yt[e]=t[e],Re(e)&&(Yt[e].isCSSVariable=!0)}function ui(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Yt[t]||t==="opacity")}const Ha={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xa=At.length;function qa(t,e,n){let s="",i=!0;for(let o=0;o<Xa;o++){const r=At[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Ys(a,on[r]);if(!l){i=!1;const u=Ha[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function dn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(Vt.has(l)){r=!0;continue}else if(Re(l)){i[l]=c;continue}else{const u=Ys(c,on[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=qa(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}const mn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ci(t,e,n){for(const s in e)!_(e[s])&&!ui(s,n)&&(t[s]=e[s])}function Za({transformTemplate:t},e){return x.useMemo(()=>{const n=mn();return dn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Ja(t,e){const n=t.style||{},s={};return ci(s,n,t),Object.assign(s,Za(t,e)),s}function Qa(t,e){const n={},s=Ja(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const tl={offset:"stroke-dashoffset",array:"stroke-dasharray"},el={offset:"strokeDashoffset",array:"strokeDasharray"};function nl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?tl:el;t[o.offset]=w.transform(-s);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function hi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(dn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&nl(h,i,o,r,!1)}const fi=()=>({...mn(),attrs:{}}),di=t=>typeof t=="string"&&t.toLowerCase()==="svg";function sl(t,e,n,s){const i=x.useMemo(()=>{const o=fi();return hi(o,e,di(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ci(o,t.style,t),i.style={...o,...i.style}}return i}const il=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function pn(t){return typeof t!="string"||t.includes("-")?!1:!!(il.indexOf(t)>-1||/[A-Z]/u.test(t))}function rl(t,e,n,{latestValues:s},i,o=!1){const a=(pn(t)?sl:Qa)(e,s,i,t),l=Ka(e,typeof t=="string",o),c=t!==x.Fragment?{...l,...a,ref:n}:{},{children:u}=e,h=x.useMemo(()=>_(u)?u.get():u,[u]);return x.createElement(t,{...c,children:h})}function mi(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gn(t,e,n,s){if(typeof e=="function"){const[i,o]=mi(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=mi(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function me(t){return _(t)?t.get():t}function ol({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:al(n,s,i,t),renderState:e()}}function al(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=me(o[f]);let{initial:r,animate:a}=t;const l=de(t),c=ai(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!fe(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=gn(t,f[d]);if(p){const{transitionEnd:y,transition:b,...g}=p;for(const T in g){let v=g[T];if(Array.isArray(v)){const A=u?v.length-1:0;v=v[A]}v!==null&&(i[T]=v)}for(const T in y)i[T]=y[T]}}}return i}const pi=t=>(e,n)=>{const s=x.useContext(he),i=x.useContext(ee),o=()=>ol(t,e,s,i);return n?o():Te(o)};function yn(t,e,n){const{style:s}=t,i={};for(const o in s)(_(s[o])||e.style&&_(e.style[o])||ui(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const ll=pi({scrapeMotionValuesFromProps:yn,createRenderState:mn});function gi(t,e,n){const s=yn(t,e,n);for(const i in t)if(_(t[i])||_(e[i])){const o=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const ul=pi({scrapeMotionValuesFromProps:gi,createRenderState:fi}),cl=Symbol.for("motionComponentSymbol");function Dt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function hl(t,e,n){return x.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Dt(n)&&(n.current=s))},[e])}const vn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),yi="data-"+vn("framerAppearId"),vi=x.createContext({});function fl(t,e,n,s,i){const{visualElement:o}=x.useContext(he),r=x.useContext(ii),a=x.useContext(ee),l=x.useContext(cn).reducedMotion,c=x.useRef(null);s=s||r.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,h=x.useContext(vi);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&dl(c.current,n,i,h);const f=x.useRef(!1);x.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const d=n[yi],p=x.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return Kn(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),p.current=!1),u.enteringChildren=void 0)}),u}function dl(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xi(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Dt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function xi(t){if(t)return t.options.allowProjection!==!1?t.projection:xi(t.parent)}function xn(t,{forwardMotionProps:e=!1}={},n,s){n&&Ua(n);const i=pn(t)?ul:ll;function o(a,l){let c;const u={...x.useContext(cn),...a,layoutId:ml(a)},{isStatic:h}=u,f=Ya(a),d=i(a,h);if(!h&&be){pl(u,n);const p=gl(u);c=p.MeasureLayout,f.visualElement=fl(t,d,u,s,p.ProjectionNode)}return M.jsxs(he.Provider,{value:f,children:[c&&f.visualElement?M.jsx(c,{visualElement:f.visualElement,...u}):null,rl(t,a,hl(d,f.visualElement,l),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=x.forwardRef(o);return r[cl]=t,r}function ml({layoutId:t}){const e=x.useContext(xe).id;return e&&t!==void 0?e+"-"+t:t}function pl(t,e){const n=x.useContext(ii).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?bt(!1,s,"lazy-strict-mode"):st(!1,s,"lazy-strict-mode")}}function gl(t){const{drag:e,layout:n}=Et;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function yl(t,e){if(typeof Proxy>"u")return xn;const n=new Map,s=(o,r)=>xn(o,r,t,e),i=(o,r)=>(process.env.NODE_ENV!=="production"&&Ce(!1,"motion() is deprecated. Use motion.create() instead."),s(o,r));return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,xn(r,void 0,t,e)),n.get(r))})}function Ti({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function vl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Tn(t){return t===void 0||t===1}function bn({scale:t,scaleX:e,scaleY:n}){return!Tn(t)||!Tn(e)||!Tn(n)}function yt(t){return bn(t)||bi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function bi(t){return Pi(t.x)||Pi(t.y)}function Pi(t){return t&&t!=="0%"}function pe(t,e,n){const s=t-n,i=e*s;return n+i}function wi(t,e,n,s,i){return i!==void 0&&(t=pe(t,i,s)),pe(t,n,s)+e}function Pn(t,e=0,n=1,s,i){t.min=wi(t.min,e,n,s,i),t.max=wi(t.max,e,n,s,i)}function Si(t,{x:e,y:n}){Pn(t.x,e.translate,e.scale,e.originPoint),Pn(t.y,n.translate,n.scale,n.originPoint)}const Ai=.999999999999,Vi=1.0000000000001;function Tl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Rt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Si(t,r)),s&&yt(o.latestValues)&&Rt(t,o.latestValues))}e.x<Vi&&e.x>Ai&&(e.x=1),e.y<Vi&&e.y>Ai&&(e.y=1)}function Mt(t,e){t.min=t.min+e,t.max=t.max+e}function Ci(t,e,n,s,i=.5){const o=R(t.min,t.max,i);Pn(t,e,n,o,s)}function Rt(t,e){Ci(t.x,e.x,e.scaleX,e.scale,e.originX),Ci(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ei(t,e){return Ti(xl(t.getBoundingClientRect(),e))}function bl(t,e,n){const s=Ei(t,n),{scroll:i}=e;return i&&(Mt(s.x,i.offset.x),Mt(s.y,i.offset.y)),s}const Di=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:Di(),y:Di()}),Mi=()=>({min:0,max:0}),O=()=>({x:Mi(),y:Mi()}),wn={current:null},Ri={current:!1};function Pl(){if(Ri.current=!0,!!be)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>wn.current=t.matches;t.addEventListener("change",e),e()}else wn.current=!1}const wl=new WeakMap;function Sl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(_(i))t.addValue(s,i);else if(_(o))t.addValue(s,Ct(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Ct(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ki=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Al{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=en,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=z.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,D.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=de(n),this.isVariantNode=ai(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&_(d)&&d.set(l[f])}}mount(e){this.current=e,wl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Ri.current||Pl(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wn.current,process.env.NODE_ENV!=="production"&&Ce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ot(this.notifyUpdate),ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Vt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Et){const n=Et[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ki.length;s++){const i=ki[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Sl(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Ct(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(zn(s)||Gn(s))?s=parseFloat(s):!Oa(s)&&lt.test(n)&&(s=zs(e,n)),this.setBaseTarget(e,_(s)?s.get():s)),_(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!_(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ve),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){an.render(this.render)}}class Li extends Al{constructor(){super(...arguments),this.KeyframeResolver=wa}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;_(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ji(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Vl(t){return window.getComputedStyle(t)}class Cl extends Li{constructor(){super(...arguments),this.type="html",this.renderInstance=ji}readValueFromInstance(e,n){if(Vt.has(n))return this.projection?.isProjecting?qe(n):$o(e,n);{const s=Vl(e),i=(Re(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ei(e,n)}build(e,n,s){dn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return yn(e,n,s)}}const Oi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function El(t,e,n,s){ji(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Oi.has(i)?i:vn(i),e.attrs[i])}class Dl extends Li{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=O}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const s=Ks(n);return s&&s.default||0}return n=Oi.has(n)?n:vn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return gi(e,n,s)}build(e,n,s){hi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){El(e,n,s,i)}mount(e){this.isSVGTag=di(e.tagName),super.mount(e)}}const Ml=(t,e)=>pn(t)?new Dl(e):new Cl(e,{allowProjection:t!==x.Fragment});function Lt(t,e,n){const s=t.getProps();return gn(s,e,n!==void 0?n:s.custom,t)}const Sn=t=>Array.isArray(t);function Rl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ct(n))}function kl(t){return Sn(t)?t[t.length-1]||0:t}function Ll(t,e){const n=Lt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=kl(o[r]);Rl(t,r,a)}}function jl(t){return!!(_(t)&&t.add)}function An(t,e){const n=t.getValue("willChange");if(jl(n))return n.add(e);if(!n&&it.WillChange){const s=new it.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Fi(t){return t.props[yi]}const Ol=t=>t!==null;function Fl(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Ol),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Il={type:"spring",stiffness:500,damping:25,restSpeed:10},Bl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Nl={type:"keyframes",duration:.8},_l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ul=(t,{keyframes:e})=>e.length>2?Nl:Vt.has(t)?t.startsWith("scale")?Bl(e[1]):Il:_l;function $l({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Vn=(t,e,n,s={},i,o)=>r=>{const a=sn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-q(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};$l(a)||Object.assign(u,Ul(t,u)),u.duration&&(u.duration=q(u.duration)),u.repeatDelay&&(u.repeatDelay=q(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(nn(u),u.delay===0&&(h=!0)),(it.instantAnimations||it.skipAnimations)&&(h=!0,nn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Fl(u.keyframes,a);if(f!==void 0){D.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new Ge(u):new ha(u)};function Wl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ii(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),f=a[u];if(f===void 0||c&&Wl(c,u))continue;const d={delay:n,...sn(o||{},u)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const g=Fi(t);if(g){const T=window.MotionHandoffAnimation(g,u,D);T!==null&&(d.startTime=T,y=!0)}}An(t,u),h.start(Vn(u,h,f,t.shouldReduceMotion&&Ns.has(u)?{type:!1}:d,t,y));const b=h.animation;b&&l.push(b)}return r&&Promise.all(l).then(()=>{D.update(()=>{r&&Ll(t,r)})}),l}function Bi(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function Cn(t,e,n={}){const s=Lt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Ii(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Kl(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Kl(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Cn(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Bi(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function zl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Cn(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Cn(t,e,n);else{const i=typeof e=="function"?Lt(t,e,n.custom):e;s=Promise.all(Ii(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Ni(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Yl=fn.length;function _i(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?_i(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Yl;n++){const s=fn[n],i=t.props[s];(zt(i)||i===!1)&&(e[s]=i)}return e}const Gl=[...hn].reverse(),Hl=hn.length;function Xl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>zl(t,n,s)))}function ql(t){let e=Xl(t),n=Ui(),s=!0;const i=l=>(c,u)=>{const h=Lt(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...p}=h;c={...c,...p,...d}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=_i(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let b=0;b<Hl;b++){const g=Gl[b],T=n[g],v=c[g]!==void 0?c[g]:u[g],A=zt(v),P=g===l?T.isActive:null;P===!1&&(p=b);let V=v===u[g]&&v!==c[g]&&A;if(V&&s&&t.manuallyAnimateOnMount&&(V=!1),T.protectedKeys={...d},!T.isActive&&P===null||!v&&!T.prevProp||fe(v)||typeof v=="boolean")continue;const E=Zl(T.prevProp,v);let S=E||g===l&&T.isActive&&!V&&A||b>p&&A,L=!1;const B=Array.isArray(v)?v:[v];let Y=B.reduce(i(g),{});P===!1&&(Y={});const{prevResolvedValues:xt={}}=T,Qt={...xt,...Y},ct=I=>{S=!0,f.has(I)&&(L=!0,f.delete(I)),T.needsAnimating[I]=!0;const K=t.getValue(I);K&&(K.liveStyle=!1)};for(const I in Qt){const K=Y[I],tt=xt[I];if(d.hasOwnProperty(I))continue;let m=!1;Sn(K)&&Sn(tt)?m=!Ni(K,tt):m=K!==tt,m?K!=null?ct(I):f.add(I):K!==void 0&&f.has(I)?ct(I):T.protectedKeys[I]=!0}T.prevProp=v,T.prevResolvedValues=Y,T.isActive&&(d={...d,...Y}),s&&t.blockInitialAnimation&&(S=!1);const Tt=V&&E;S&&(!Tt||L)&&h.push(...B.map(I=>{const K={type:g};if(typeof I=="string"&&s&&!Tt&&t.manuallyAnimateOnMount&&t.parent){const{parent:tt}=t,m=Lt(tt,I);if(tt.enteringChildren&&m){const{delayChildren:C}=m.transition||{};K.delay=Bi(tt.enteringChildren,t,C)}}return{animation:I,options:K}}))}if(f.size){const b={};if(typeof c.initial!="boolean"){const g=Lt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(b.transition=g.transition)}f.forEach(g=>{const T=t.getBaseTarget(g),v=t.getValue(g);v&&(v.liveStyle=!0),b[g]=T??null}),h.push({animation:b})}let y=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const u=r(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ui(),s=!0}}}function Zl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ni(e,t):!1}function vt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ui(){return{animate:vt(!0),whileInView:vt(),whileHover:vt(),whileTap:vt(),whileDrag:vt(),whileFocus:vt(),exit:vt()}}class ut{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Jl extends ut{constructor(e){super(e),e.animationState||(e.animationState=ql(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();fe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ql=0;class tu extends ut{constructor(){super(...arguments),this.id=Ql++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const eu={animation:{Feature:Jl},exit:{Feature:tu}};function Gt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Ht(t){return{point:{x:t.pageX,y:t.pageY}}}const nu=t=>e=>ln(e)&&t(e,Ht(e));function Xt(t,e,n,s){return Gt(t,e,nu(n),s)}const $i=1e-4,su=1-$i,iu=1+$i,Wi=.01,ru=0-Wi,ou=0+Wi;function W(t){return t.max-t.min}function au(t,e,n){return Math.abs(t-e)<=n}function Ki(t,e,n,s=.5){t.origin=s,t.originPoint=R(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=R(n.min,n.max,t.origin)-t.originPoint,(t.scale>=su&&t.scale<=iu||isNaN(t.scale))&&(t.scale=1),(t.translate>=ru&&t.translate<=ou||isNaN(t.translate))&&(t.translate=0)}function qt(t,e,n,s){Ki(t.x,e.x,n.x,s?s.originX:void 0),Ki(t.y,e.y,n.y,s?s.originY:void 0)}function zi(t,e,n){t.min=n.min+e.min,t.max=t.min+W(e)}function lu(t,e,n){zi(t.x,e.x,n.x),zi(t.y,e.y,n.y)}function Yi(t,e,n){t.min=e.min-n.min,t.max=t.min+W(e)}function Zt(t,e,n){Yi(t.x,e.x,n.x),Yi(t.y,e.y,n.y)}function H(t){return[t("x"),t("y")]}const Gi=({current:t})=>t?t.ownerDocument.defaultView:null,Hi=(t,e)=>Math.abs(t-e);function uu(t,e){const n=Hi(t.x,e.x),s=Hi(t.y,e.y);return Math.sqrt(n**2+s**2)}class Xi{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Dn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=uu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:y}=f,{timestamp:b}=N;this.history.push({...y,timestamp:b});const{onStart:g,onMove:T}=this.handlers;d||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=En(d,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Dn(f.type==="pointercancel"?this.lastMoveEventInfo:En(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,g),y&&y(f,g)},!ln(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=Ht(e),l=En(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=N;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,Dn(l,this.history)),this.removeListeners=It(Xt(this.contextWindow,"pointermove",this.handlePointerMove),Xt(this.contextWindow,"pointerup",this.handlePointerUp),Xt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ot(this.updatePoint)}}function En(t,e){return e?{point:e(t.point)}:t}function qi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Dn({point:t},e){return{point:t,delta:qi(t,Zi(e)),offset:qi(t,cu(e)),velocity:hu(e,.1)}}function cu(t){return t[0]}function Zi(t){return t[t.length-1]}function hu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Zi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>q(e)));)n--;if(!s)return{x:0,y:0};const o=J(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function fu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?R(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?R(n,t,s.max):Math.min(t,n)),t}function Ji(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function du(t,{top:e,left:n,bottom:s,right:i}){return{x:Ji(t.x,n,i),y:Ji(t.y,e,s)}}function Qi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function mu(t,e){return{x:Qi(t.x,e.x),y:Qi(t.y,e.y)}}function pu(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=Bt(e.min,e.max-s,t.min):s>i&&(n=Bt(t.min,t.max-i,e.min)),nt(0,1,n)}function gu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Mn=.35;function yu(t=Mn){return t===!1?t=0:t===!0&&(t=Mn),{x:tr(t,"left","right"),y:tr(t,"top","bottom")}}function tr(t,e,n){return{min:er(t,e),max:er(t,n)}}function er(t,e){return typeof t=="number"?t:t[e]||0}const vu=new WeakMap;class xu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ht(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ca(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),H(g=>{let T=this.getAxisMotionValue(g).get()||0;if(Q.test(T)){const{projection:v}=this.visualElement;if(v&&v.layout){const A=v.layout.layoutBox[g];A&&(T=W(A)*(parseFloat(T)/100))}}this.originPoint[g]=T}),y&&D.postRender(()=>y(h,f)),An(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:y,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(p&&this.currentDirection===null){this.currentDirection=Tu(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),b&&b(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>H(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xi(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Gi(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&D.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!ge(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=fu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Dt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=du(s.layoutBox,e):this.constraints=!1,this.elastic=yu(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&H(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=gu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Dt(e))return!1;const s=e.current;st(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bl(s,i.root,this.visualElement.getTransformPagePoint());let r=mu(i.layout.layoutBox,o);if(n){const a=n(vl(r));this.hasMutatedConstraints=!!a,a&&(r=Ti(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=H(u=>{if(!ge(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return An(this.visualElement,e),s.start(Vn(e,s,0,n,this.visualElement,!1))}stopAnimation(){H(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){H(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){H(n=>{const{drag:s}=this.getProps();if(!ge(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-R(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Dt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};H(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=pu({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),H(r=>{if(!ge(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(R(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;vu.set(this.visualElement,this);const e=this.visualElement.current,n=Xt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Dt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const r=Gt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(H(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Mn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Tu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class bu extends ut{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new xu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}unmount(){this.removeGroupControls(),this.removeListeners()}}const nr=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class Pu extends ut{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new Xi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:nr(e),onStart:nr(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Xt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ye={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Jt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=sr(t,e.target.x),s=sr(t,e.target.y);return`${n}% ${s}%`}},wu={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=lt.parse(t);if(i.length>5)return s;const o=lt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=R(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};let Rn=!1;class Su extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Ga(Au),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Rn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ye.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Rn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),an.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Rn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ir(t){const[e,n]=ni(),s=x.useContext(xe);return M.jsx(Su,{...t,layoutGroup:s,switchLayoutGroup:x.useContext(vi),isPresent:e,safeToRemove:n})}const Au={borderRadius:{...Jt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jt,borderTopRightRadius:Jt,borderBottomLeftRadius:Jt,borderBottomRightRadius:Jt,boxShadow:wu};function Vu(t,e,n){const s=_(t)?t:Ct(t);return s.start(Vn("",s,e,n)),s.animation}const Cu=(t,e)=>t.depth-e.depth;class Eu{constructor(){this.children=[],this.isDirty=!1}add(e){Pe(this.children,e),this.isDirty=!0}remove(e){we(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cu),this.isDirty=!1,this.children.forEach(e)}}function Du(t,e){const n=z.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(ot(s),t(o-e))};return D.setup(s,!0),()=>ot(s)}const rr=["TopLeft","TopRight","BottomLeft","BottomRight"],Mu=rr.length,or=t=>typeof t=="string"?parseFloat(t):t,ar=t=>typeof t=="number"||w.test(t);function Ru(t,e,n,s,i,o){i?(t.opacity=R(0,n.opacity??1,ku(s)),t.opacityExit=R(e.opacity??1,0,Lu(s))):o&&(t.opacity=R(e.opacity??1,n.opacity??1,s));for(let r=0;r<Mu;r++){const a=`border${rr[r]}Radius`;let l=lr(e,a),c=lr(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ar(l)===ar(c)?(t[a]=Math.max(R(or(l),or(c),s),0),(Q.test(c)||Q.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=R(e.rotate||0,n.rotate||0,s))}function lr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ku=ur(0,.5,ns),Lu=ur(.5,.95,G);function ur(t,e,n){return s=>s<t?0:s>e?1:n(Bt(t,e,s))}function cr(t,e){t.min=e.min,t.max=e.max}function X(t,e){cr(t.x,e.x),cr(t.y,e.y)}function hr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function fr(t,e,n,s,i){return t-=e,t=pe(t,1/n,s),i!==void 0&&(t=pe(t,1/i,s)),t}function ju(t,e=0,n=1,s=.5,i,o=t,r=t){if(Q.test(e)&&(e=parseFloat(e),e=R(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=R(o.min,o.max,s);t===o&&(a-=e),t.min=fr(t.min,e,n,a,i),t.max=fr(t.max,e,n,a,i)}function dr(t,e,[n,s,i],o,r){ju(t,e[n],e[s],e[i],e.scale,o,r)}const Ou=["x","scaleX","originX"],Fu=["y","scaleY","originY"];function mr(t,e,n,s){dr(t.x,e,Ou,n?n.x:void 0,s?s.x:void 0),dr(t.y,e,Fu,n?n.y:void 0,s?s.y:void 0)}function pr(t){return t.translate===0&&t.scale===1}function gr(t){return pr(t.x)&&pr(t.y)}function yr(t,e){return t.min===e.min&&t.max===e.max}function Iu(t,e){return yr(t.x,e.x)&&yr(t.y,e.y)}function vr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function xr(t,e){return vr(t.x,e.x)&&vr(t.y,e.y)}function Tr(t){return W(t.x)/W(t.y)}function br(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Bu{constructor(){this.members=[]}add(e){Pe(this.members,e),e.scheduleRender()}remove(e){if(we(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nu(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const kn=["","X","Y","Z"],_u=1e3;let Uu=0;function Ln(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Pr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Fi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Pr(s)}function wr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Uu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ku),this.nodes.forEach(Hu),this.nodes.forEach(Xu),this.nodes.forEach(zu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Eu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ve),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ei(r)&&!La(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=Du(f,250),ye.hasAnimatedSinceResize&&(ye.hasAnimatedSinceResize=!1,this.nodes.forEach(Vr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||tc,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=c.getProps(),g=!this.targetLayout||!xr(this.targetLayout,d),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...sn(p,"layout"),onPlay:y,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,T)}else h||Vr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ot(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ar);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gu),this.nodes.forEach($u),this.nodes.forEach(Wu)):this.nodes.forEach(Ar),this.clearAllSnapshots();const a=z.now();N.delta=nt(0,1e3/60,a-N.timestamp),N.timestamp=a,N.isProcessing=!0,Me.update.process(N),Me.preRender.process(N),Me.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,an.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Yu),this.sharedNodes.forEach(Zu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!gr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||yt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),ec(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return O();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nc))){const{scroll:c}=this.root;c&&(Mt(a.x,c.offset.x),Mt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=O();if(X(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&X(a,r),Mt(a.x,u.offset.x),Mt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=O();X(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Rt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),yt(u.latestValues)&&Rt(l,u.latestValues)}return yt(this.latestValues)&&Rt(l,this.latestValues),l}removeTransform(r){const a=O();X(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!yt(c.latestValues))continue;bn(c.latestValues)&&c.updateSnapshot();const u=O(),h=c.measurePageBox();X(u,h),mr(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return yt(this.latestValues)&&mr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=N.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Zt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):X(this.target,this.layout.layoutBox),Si(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Zt(this.relativeTargetOrigin,this.target,f.target),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||bn(this.parent.latestValues)||bi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===N.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;X(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Tl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=O());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hr(this.prevProjectionDelta.x,this.projectionDelta.x),hr(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!br(this.projectionDelta.x,this.prevProjectionDelta.x)||!br(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kt(),this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=O(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,y=d!==p,b=this.getStack(),g=!b||b.members.length<=1,T=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(Qu));this.animationProgress=0;let v;this.mixTargetDelta=A=>{const P=A/1e3;Cr(h.x,r.x,P),Cr(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ju(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&Iu(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=O()),X(v,this.relativeTarget)),y&&(this.animationValues=u,Ru(u,c,this.latestValues,P,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{ye.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ct(0)),this.currentAnimation=Vu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_u),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&kr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||O();const h=W(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=W(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}X(a,l),Rt(a,u),qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Bu),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ln("z",r,c,this.animationValues);for(let u=0;u<kn.length;u++)Ln(`rotate${kn[u]}`,r,c,this.animationValues),Ln(`skew${kn[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=me(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=me(a?.pointerEvents)||""),this.hasProjected&&!yt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Nu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in Yt){if(u[p]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:g}=Yt[p],T=h==="none"?u[p]:y(u[p],c);if(b){const v=b.length;for(let A=0;A<v;A++)r[b[A]]=T}else g?this.options.visualElement.renderState.vars[p]=T:r[p]=T}this.options.layoutId&&(r.pointerEvents=c===this?me(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Sr),this.root.sharedNodes.clear()}}}function $u(t){t.updateLayout()}function Wu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?H(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=W(h);h.min=n[u].min,h.max=h.min+f}):kr(i,e.layoutBox,n)&&H(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=W(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const r=kt();qt(r,n,e.layoutBox);const a=kt();o?qt(a,t.applyTransform(s,!0),e.measuredBox):qt(a,n,e.layoutBox);const l=!gr(r);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=O();Zt(d,e.layoutBox,h.layoutBox);const p=O();Zt(p,n,f.layoutBox),xr(d,p)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Ku(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function zu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Yu(t){t.clearSnapshot()}function Sr(t){t.clearMeasurements()}function Ar(t){t.isLayoutDirty=!1}function Gu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Hu(t){t.resolveTargetDelta()}function Xu(t){t.calcProjection()}function qu(t){t.resetSkewAndRotation()}function Zu(t){t.removeLeadSnapshot()}function Cr(t,e,n){t.translate=R(e.translate,0,n),t.scale=R(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Er(t,e,n,s){t.min=R(e.min,n.min,s),t.max=R(e.max,n.max,s)}function Ju(t,e,n,s){Er(t.x,e.x,n.x,s),Er(t.y,e.y,n.y,s)}function Qu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const tc={duration:.45,ease:[.4,0,.1,1]},Dr=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Mr=Dr("applewebkit/")&&!Dr("chrome/")?Math.round:G;function Rr(t){t.min=Mr(t.min),t.max=Mr(t.max)}function ec(t){Rr(t.x),Rr(t.y)}function kr(t,e,n){return t==="position"||t==="preserve-aspect"&&!au(Tr(e),Tr(n),.2)}function nc(t){return t!==t.root&&t.scroll?.wasRoot}const sc=wr({attachResizeListener:(t,e)=>Gt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jn={current:void 0},Lr=wr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!jn.current){const t=new sc({});t.mount(window),t.setOptions({layoutScroll:!0}),jn.current=t}return jn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ic={pan:{Feature:Pu},drag:{Feature:bu,ProjectionNode:Lr,MeasureLayout:ir}};function jr(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,Ht(e)))}class rc extends ut{mount(){const{current:e}=this.node;e&&(this.unmount=Ea(e,(n,s)=>(jr(this.node,s,"Start"),i=>jr(this.node,i,"End"))))}unmount(){}}class oc extends ut{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=It(Gt(this.node.current,"focus",()=>this.onFocus()),Gt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Or(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&D.postRender(()=>o(e,Ht(e)))}class ac extends ut{mount(){const{current:e}=this.node;e&&(this.unmount=ka(e,(n,s)=>(Or(this.node,s,"Start"),(i,{success:o})=>Or(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const On=new WeakMap,Fn=new WeakMap,lc=t=>{const e=On.get(t.target);e&&e(t)},uc=t=>{t.forEach(lc)};function cc({root:t,...e}){const n=t||document;Fn.has(n)||Fn.set(n,{});const s=Fn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(uc,{root:t,...e})),s[i]}function hc(t,e,n){const s=cc(e);return On.set(t,n),s.observe(t),()=>{On.delete(t),s.unobserve(t)}}const fc={some:0,all:1};class dc extends ut{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:fc[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return hc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(mc(e,n))&&this.startObserver()}unmount(){}}function mc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const pc={...eu,...{inView:{Feature:dc},tap:{Feature:ac},focus:{Feature:oc},hover:{Feature:rc}},...ic,...{layout:{ProjectionNode:Lr,MeasureLayout:ir}}},In=yl(pc,Ml),gc=({label:t,placeholder:e,value:n,type:s="text",name:i,id:o,disabled:r=!1,required:a=!1,readonly:l=!1,error:c,successMessage:u,helperText:h,size:f="md",variant:d="default",className:p="",inputClassName:y="",inputStyle:b={},originalCase:g=!1,max:T,min:v,onChange:A,onFocus:P,onBlur:V,onKeyDown:E,...S})=>{const L=o||i||t?.toLowerCase().replace(/\s+/g,"-"),B={sm:"h-8 px-3 py-1.5 text-sm",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},Y={default:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800",filled:"border-0 bg-gray-100 dark:bg-gray-700",outlined:"border-2 border-gray-300 dark:border-gray-600 bg-transparent"},xt=["w-full rounded-md transition-all duration-200 outline-none font-medium","text-gray-900 dark:text-gray-100","placeholder:text-gray-400 dark:placeholder:text-gray-500",B[f],Y[d],!c&&!u&&"focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 dark:focus:border-blue-400",c&&"border-red-300 dark:border-red-600 focus:ring-2 focus:ring-red-500/20 focus:border-red-500",u&&"border-green-300 dark:border-green-600 focus:ring-2 focus:ring-green-500/20 focus:border-green-500",r&&"opacity-70 cursor-not-allowed bg-gray-50 dark:bg-gray-800",y].filter(Boolean).join(" "),Qt=rt=>{A&&A(rt.target.value)},ct=rt=>{P&&P(rt)},Tt=rt=>{V&&V(rt)};return M.jsxs("div",{className:`flex flex-col w-full ${p}`,children:[M.jsx("style",{children:`
31
- .dark input:-webkit-autofill,
32
- .dark input:-webkit-autofill:hover,
33
- .dark input:-webkit-autofill:focus {
34
- -webkit-text-fill-color: rgb(243 244 246) !important;
35
- -webkit-box-shadow: 0 0 0px 1000px rgb(31 41 55) inset !important;
36
- transition: background-color 5000s ease-in-out 0s;
37
- }
38
-
39
- input:-webkit-autofill,
40
- input:-webkit-autofill:hover,
41
- input:-webkit-autofill:focus {
42
- -webkit-text-fill-color: rgb(17 24 39) !important;
43
- -webkit-box-shadow: 0 0 0px 1000px white inset !important;
44
- transition: background-color 5000s ease-in-out 0s;
45
- }
46
- `}),t&&M.jsx("label",{htmlFor:L,className:`mb-1 text-sm font-medium text-gray-700 dark:text-gray-300 inline-flex items-center gap-1 ${g?"":"capitalize"}`,children:M.jsxs("span",{children:[t,a&&M.jsx("span",{className:"text-red-500 ml-1","aria-label":"required",children:"*"})]})}),M.jsx("div",{className:"relative",children:M.jsx("input",{...S,type:s,id:L,name:i,value:n,placeholder:e,disabled:r,required:a,readOnly:l,max:T,min:v,className:xt,style:b,onChange:Qt,onFocus:ct,onBlur:Tt,onKeyDown:E})}),M.jsxs(_a,{mode:"wait",children:[c&&M.jsx(In.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"mt-1",children:M.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:c})}),u&&!c&&M.jsx(In.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"mt-1",children:M.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:u})}),h&&!c&&!u&&M.jsx(In.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"mt-1",children:M.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:h})})]})]})};ft.InputField=gc,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,Hc,In,rk,In),Gr[In+Hc]=!0}}return M===i?rn(Ke):To(Ke),Ke}}function _c(M,J,ie){return Oo(M,J,ie,!0)}function ut(M,J,ie){return Oo(M,J,ie,!1)}var Fs=ut,Gc=_c;mi.Fragment=i,mi.jsx=Fs,mi.jsxs=Gc}()),mi}var Uc;function cv(){return Uc||(Uc=1,process.env.NODE_ENV==="production"?Ro.exports=uv():Ro.exports=lv()),Ro.exports}var A=cv(),Ms={exports:{}};/*!
31
+ Copyright (c) 2018 Jed Watson.
32
+ Licensed under the MIT License (MIT), see
33
+ http://jedwatson.github.io/classnames
34
+ */var Yc;function dv(){return Yc||(Yc=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=n(o,i(u)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=n(a,u));return a}function n(o,a){return a?o?o+" "+a:o+a:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ms)),Ms.exports}var fv=dv();const re=Fo(fv),Ce=({children:e,variant:t="regular",size:r="medium",onClick:i,className:n,highlight:o,appearance:a="title",style:u})=>{const s=()=>{switch(r){case"extra-small":return"text-xs";case"small":return"text-sm";case"display-small":return"text-xl";case"medium":return"text-base";case"display-medium":return"text-2xl";case"large":return"text-lg";case"extra-large":return"text-4xl";default:return"text-base"}},l=()=>{switch(a){case"title":return"text-neutral-900 dark:text-white";case"body":return"text-neutral-600 dark:text-black-100";case"subtitle":return"text-neutral-400 dark:text-black-300";case"custom":return""}},c=()=>{switch(t){case"regular":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";case"extrablack":return"font-black";default:return"font-normal"}},d=`${s()} ${c()} ${l()}`,f=re(d,n,o?"bg-yellow-100 dark:bg-yellow-900":"");return A.jsx("div",{className:f,onClick:i,style:u,children:e})};Ce.displayName="Typography";const Jc=O.forwardRef(({id:e,value:t,onChange:r,onKeyDown:i,message:n,messageType:o="default",defaultValue:a,disabled:u=!1,max:s,min:l,required:c=!1,label:d,type:f="text",placeholder:g,fieldSuffix:h,wrapperClassNames:p,inputClassNames:m,inputStyle:b={},inputProps:y},I)=>{const x=O.useRef(null),[v,S]=O.useState(0),E=()=>o==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200":o==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200":o==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200":"border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",w=()=>o==="error"?"text-red-500 dark:text-red-400":o==="success"?"text-green-500 dark:text-green-400":o==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-black-100",T=e||`input-${d?.replace(/\s+/g,"-").toLowerCase()}`;O.useEffect(()=>{if(h&&x.current){const V=new ResizeObserver(N=>{const F=N[0];if(F){const P=Math.ceil(F.contentRect.width)+24;S(P)}});V.observe(x.current);const C=Math.ceil(x.current.offsetWidth)+12;return S(C),()=>{V.disconnect()}}else S(0)},[h]);const k=()=>({"--input-bg-color":"var(--tw-bg-opacity, 1) rgb(var(--bg-color))","--text-color":"#111827",paddingRight:`${h?Math.max(12,v):12}px`,...b});return A.jsxs("div",{className:re("flex flex-col w-full",p),children:[A.jsx("style",{children:`
35
+ .input-field input:-webkit-autofill,
36
+ .input-field input:-webkit-autofill:hover,
37
+ .input-field input:-webkit-autofill:focus {
38
+ -webkit-text-fill-color: var(--text-color) !important;
39
+ -webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
40
+ transition: background-color 5000s ease-in-out 0s;
41
+ }
42
+
43
+ .dark .input-field input:-webkit-autofill,
44
+ .dark .input-field input:-webkit-autofill:hover,
45
+ .dark .input-field input:-webkit-autofill:focus {
46
+ -webkit-text-fill-color: white !important;
47
+ -webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
48
+ }
49
+ `}),d?A.jsx("label",{htmlFor:T,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[d,c&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,A.jsxs("div",{className:"relative input-field",children:[A.jsx("input",{...y,ref:I,id:T,type:f,value:t,defaultValue:a,placeholder:g,required:c,disabled:u,max:s,min:l,onKeyDown:i,style:k(),className:re("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",E(),u&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",m),onChange:V=>r(V.target.value),onClick:V=>V.stopPropagation()}),h&&A.jsx("div",{ref:x,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:h})]}),A.jsx(He.AnimatePresence,{children:n&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:A.jsx(Ce,{className:re("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:n})})})]})});Jc.displayName="InputField";const pv=O.forwardRef(({label:e,placeholder:t,value:r,onChange:i,rows:n=4,message:o,messageType:a="default",defaultValue:u,required:s=!1,disabled:l=!1,className:c,inputRef:d,maxLength:f,originalCase:g=!1,noBorder:h=!1,id:p,inputStyle:m,...b},y)=>{const I=p||`textarea-${Math.random().toString(36).substr(2,9)}`,x=r?.length||0,v=f&&x>f-Math.min(50,f/5),S=f&&x>=f,E=()=>a==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":a==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":a==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",w=()=>a==="error"?"text-red-500 dark:text-red-400":a==="success"?"text-green-500 dark:text-green-400":a==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return A.jsxs("div",{className:re("flex flex-col gap-0.5 relative",c),children:[e&&A.jsx("label",{htmlFor:I,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!g}),children:A.jsxs(Ce,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,s&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),A.jsx("textarea",{...b,id:I,ref:y||d,onChange:T=>i(T.target.value),defaultValue:u,value:r,required:s,disabled:l,rows:n,placeholder:t,maxLength:f||void 0,style:m,className:re("border rounded-lg bg-white dark:bg-gray-800 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!h&&E(),{"border-none focus:border-none focus:ring-0":h,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":l,"placeholder:text-gray-400 dark:placeholder:text-gray-500":l,"text-gray-900 dark:text-gray-100":!l,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!l}),onClick:T=>T.stopPropagation(),"aria-invalid":o&&a==="error"?"true":"false","aria-describedby":o?`${I}-message`:void 0}),f&&A.jsxs(Ce,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[A.jsx("span",{className:re({"text-red-500 dark:text-red-400":S,"text-yellow-500 dark:text-yellow-400":v&&!S}),children:x}),A.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",f]})]}),A.jsx(He.AnimatePresence,{children:o&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${I}-message`,role:a==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:o})})})]})});function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},se.apply(null,arguments)}function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(e)}var mv=Symbol.for("react.element"),gv=Symbol.for("react.transitional.element"),hv=Symbol.for("react.fragment");function Zc(e){return e&&pe(e)==="object"&&(e.$$typeof===mv||e.$$typeof===gv)&&e.type===hv}function Vs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return O.Children.forEach(e,function(i){i==null&&!t.keepEmpty||(Array.isArray(i)?r=r.concat(Vs(i)):Zc(i)&&i.props?r=r.concat(Vs(i.props.children,t)):r.push(i))}),r}var js={},Ls=[],vv=function(t){Ls.push(t)};function Bs(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ls.reduce(function(i,n){return n(i??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function bv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ls.reduce(function(i,n){return n(i??"","note")},t);r&&console.warn("Note: ".concat(r))}}function qc(){js={}}function Qc(e,t,r){!t&&!js[r]&&(e(!1,r),js[r]=!0)}function Ye(e,t){Qc(Bs,e,t)}function yv(e,t){Qc(bv,e,t)}Ye.preMessage=vv,Ye.resetWarned=qc,Ye.noteOnce=yv;function Cv(e,t){if(pe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(pe(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kc(e){var t=Cv(e,"string");return pe(t)=="symbol"?t:t+""}function H(e,t,r){return(t=Kc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ed(Object(r),!0).forEach(function(i){H(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function td(e){return e instanceof HTMLElement||e instanceof SVGElement}function xv(e){return e&&pe(e)==="object"&&td(e.nativeElement)?e.nativeElement:td(e)?e:null}function Ev(e){var t=xv(e);if(t)return t;if(e instanceof O.Component){var r;return(r=Sn.findDOMNode)===null||r===void 0?void 0:r.call(Sn,e)}return null}var Mo={exports:{}},Te={};/**
50
+ * @license React
51
+ * react-is.production.min.js
52
+ *
53
+ * Copyright (c) Facebook, Inc. and its affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var rd;function Iv(){if(rd)return Te;rd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case r:case n:case i:case l:case c:return m;default:switch(m=m&&m.$$typeof,m){case u:case a:case s:case f:case d:case o:return m;default:return b}}case t:return b}}}return Te.ContextConsumer=a,Te.ContextProvider=o,Te.Element=e,Te.ForwardRef=s,Te.Fragment=r,Te.Lazy=f,Te.Memo=d,Te.Portal=t,Te.Profiler=n,Te.StrictMode=i,Te.Suspense=l,Te.SuspenseList=c,Te.isAsyncMode=function(){return!1},Te.isConcurrentMode=function(){return!1},Te.isContextConsumer=function(m){return p(m)===a},Te.isContextProvider=function(m){return p(m)===o},Te.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Te.isForwardRef=function(m){return p(m)===s},Te.isFragment=function(m){return p(m)===r},Te.isLazy=function(m){return p(m)===f},Te.isMemo=function(m){return p(m)===d},Te.isPortal=function(m){return p(m)===t},Te.isProfiler=function(m){return p(m)===n},Te.isStrictMode=function(m){return p(m)===i},Te.isSuspense=function(m){return p(m)===l},Te.isSuspenseList=function(m){return p(m)===c},Te.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===n||m===i||m===l||m===c||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===o||m.$$typeof===a||m.$$typeof===s||m.$$typeof===h||m.getModuleId!==void 0)},Te.typeOf=p,Te}var Oe={};/**
58
+ * @license React
59
+ * react-is.development.js
60
+ *
61
+ * Copyright (c) Facebook, Inc. and its affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var nd;function Sv(){return nd||(nd=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,p=!1,m=!1,b=!1,y=!1,I;I=Symbol.for("react.module.reference");function x(ae){return!!(typeof ae=="string"||typeof ae=="function"||ae===r||ae===n||y||ae===i||ae===l||ae===c||b||ae===g||h||p||m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===f||ae.$$typeof===d||ae.$$typeof===o||ae.$$typeof===a||ae.$$typeof===s||ae.$$typeof===I||ae.getModuleId!==void 0))}function v(ae){if(typeof ae=="object"&&ae!==null){var Qe=ae.$$typeof;switch(Qe){case e:var ze=ae.type;switch(ze){case r:case n:case i:case l:case c:return ze;default:var Zt=ze&&ze.$$typeof;switch(Zt){case u:case a:case s:case f:case d:case o:return Zt;default:return Qe}}case t:return Qe}}}var S=a,E=o,w=e,T=s,k=r,V=f,C=d,N=t,F=n,P=i,j=l,B=c,U=!1,Q=!1;function $(ae){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(ae){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ae){return v(ae)===a}function _(ae){return v(ae)===o}function X(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function K(ae){return v(ae)===s}function ee(ae){return v(ae)===r}function D(ae){return v(ae)===f}function Z(ae){return v(ae)===d}function ne(ae){return v(ae)===t}function ce(ae){return v(ae)===n}function Ee(ae){return v(ae)===i}function z(ae){return v(ae)===l}function Re(ae){return v(ae)===c}Oe.ContextConsumer=S,Oe.ContextProvider=E,Oe.Element=w,Oe.ForwardRef=T,Oe.Fragment=k,Oe.Lazy=V,Oe.Memo=C,Oe.Portal=N,Oe.Profiler=F,Oe.StrictMode=P,Oe.Suspense=j,Oe.SuspenseList=B,Oe.isAsyncMode=$,Oe.isConcurrentMode=L,Oe.isContextConsumer=G,Oe.isContextProvider=_,Oe.isElement=X,Oe.isForwardRef=K,Oe.isFragment=ee,Oe.isLazy=D,Oe.isMemo=Z,Oe.isPortal=ne,Oe.isProfiler=ce,Oe.isStrictMode=Ee,Oe.isSuspense=z,Oe.isSuspenseList=Re,Oe.isValidElementType=x,Oe.typeOf=v}()),Oe}var id;function wv(){return id||(id=1,process.env.NODE_ENV==="production"?Mo.exports=Iv():Mo.exports=Sv()),Mo.exports}var $s=wv();function od(e,t,r){var i=R.useRef({});return(!("value"in i.current)||r(i.current.condition,t))&&(i.current.value=e(),i.current.condition=t),i.current.value}var Av=Number(O.version.split(".")[0]),ad=function(t,r){typeof t=="function"?t(r):pe(t)==="object"&&t&&"current"in t&&(t.current=r)},Ds=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r.filter(Boolean);return n.length<=1?n[0]:function(o){r.forEach(function(a){ad(a,o)})}},sd=function(t){var r,i;if(!t)return!1;if(ud(t)&&Av>=19)return!0;var n=$s.isMemo(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==$s.ForwardRef||typeof t=="function"&&!((i=t.prototype)!==null&&i!==void 0&&i.render)&&t.$$typeof!==$s.ForwardRef)};function ud(e){return O.isValidElement(e)&&!Zc(e)}var ld=function(t){if(t&&ud(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Kc(i.key),i)}}function yt(e,t,r){return t&&cd(e.prototype,t),r&&cd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gi(e,t){return gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gi(e,t)}function nn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gi(e,t)}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(e)}function _s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_s=function(){return!!e})()}function ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tv(e,t){if(t&&(pe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ve(e)}function on(e){var t=_s();return function(){var r,i=hi(e);if(t){var n=hi(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return Tv(this,r)}}function Gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Ov(e){if(Array.isArray(e))return Gs(e)}function dd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hs(e,t){if(e){if(typeof e=="string")return Gs(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gs(e,t):void 0}}function kv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(e){return Ov(e)||dd(e)||Hs(e)||kv()}var fd=function(t){return+setTimeout(t,16)},pd=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(fd=function(t){return window.requestAnimationFrame(t)},pd=function(t){return window.cancelAnimationFrame(t)});var md=0,Vo=new Map;function gd(e){Vo.delete(e)}var ar=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;md+=1;var i=md;function n(o){if(o===0)gd(i),t();else{var a=fd(function(){n(o-1)});Vo.set(i,a)}}return n(r),i};ar.cancel=function(e){var t=Vo.get(e);return gd(e),pd(t)},process.env.NODE_ENV!=="production"&&(ar.ids=function(){return Vo});function hd(e){if(Array.isArray(e))return e}function Pv(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,o,a,u=[],s=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(i=o.call(r)).done)&&(u.push(i.value),u.length!==t);s=!0);}catch(c){l=!0,n=c}finally{try{if(!s&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw n}}return u}}function vd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return hd(e)||Pv(e,t)||Hs(e,t)||vd()}function vi(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function yr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nv(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var bd="data-rc-order",yd="data-rc-priority",Fv="rc-util-key",Ws=new Map;function Cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Fv}function jo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Rv(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zs(e){return Array.from((Ws.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yr())return null;var r=t.csp,i=t.prepend,n=t.priority,o=n===void 0?0:n,a=Rv(i),u=a==="prependQueue",s=document.createElement("style");s.setAttribute(bd,a),u&&o&&s.setAttribute(yd,"".concat(o)),r!=null&&r.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;var l=jo(t),c=l.firstChild;if(i){if(u){var d=(t.styles||zs(l)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(bd)))return!1;var g=Number(f.getAttribute(yd)||0);return o>=g});if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jo(t);return(t.styles||zs(r)).find(function(i){return i.getAttribute(Cd(t))===e})}function Id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ed(e,t);if(r){var i=jo(t);i.removeChild(r)}}function Mv(e,t){var r=Ws.get(e);if(!r||!Nv(document,r)){var i=xd("",t),n=i.parentNode;Ws.set(e,n),e.removeChild(i)}}function wn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=jo(r),n=zs(i),o=W(W({},r),{},{styles:n});Mv(i,o);var a=Ed(t,o);if(a){var u,s;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&a.nonce!==((s=o.csp)===null||s===void 0?void 0:s.nonce)){var l;a.nonce=(l=o.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var c=xd(e,o);return c.setAttribute(Cd(o),t),c}function Sd(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function dt(e,t){if(e==null)return{};var r,i,n=Sd(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=i.has(o);if(Ye(!s,"Warning: There may be circular references"),s)return!1;if(o===a)return!0;if(r&&u>1)return!1;i.add(o);var l=u+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var c=0;c<o.length;c++)if(!n(o[c],a[c],l))return!1;return!0}if(o&&a&&pe(o)==="object"&&pe(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return n(o[f],a[f],l)})}return!1}return n(e,t)}var Vv="%";function Us(e){return e.join(Vv)}var jv=function(){function e(t){bt(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return yt(e,[{key:"get",value:function(r){return this.opGet(Us(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,i){return this.opUpdate(Us(r),i)}},{key:"opUpdate",value:function(r,i){var n=this.cache.get(r),o=i(n);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),An="data-token-hash",er="data-css-hash",Lv="data-cache-path",Hr="__cssinjs_instance__";function Bv(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(er,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(n){n[Hr]=n[Hr]||e,n[Hr]===e&&document.head.insertBefore(n,r)});var i={};Array.from(document.querySelectorAll("style[".concat(er,"]"))).forEach(function(n){var o=n.getAttribute(er);if(i[o]){if(n[Hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new jv(e)}var bi=R.createContext({hashPriority:"low",cache:Bv(),defaultCache:!0});function $v(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){bt(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return yt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(u){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(u)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(r){var i;return(i=this.internalGet(r,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,i){var n=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var d=fe(l,2),f=d[1];return n.internalGet(c)[1]<f?[c,n.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=fe(o,1),u=a[0];this.delete(u)}this.keys.push(r)}var s=this.cache;r.forEach(function(l,c){if(c===r.length-1)s.set(l,{value:[i,n.cacheCallTimes++]});else{var d=s.get(l);d?d.map||(d.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(r,i){var n=r.get(i[0]);if(i.length===1){var o;return n.map?r.set(i[0],{map:n.map}):r.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&r.delete(i[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(i){return!$v(i,r)}),this.deleteByPath(this.cache,r)}}]),e}();H(Ys,"MAX_CACHE_SIZE",20),H(Ys,"MAX_CACHE_OFFSET",5);var wd=0,Ad=function(){function e(t){bt(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=wd,t.length===0&&Bs(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),wd+=1}return yt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(i,n){return n(r,i)},void 0)}}]),e}(),Js=new Ys;function Zs(e){var t=Array.isArray(e)?e:[e];return Js.has(t)||Js.set(t,new Ad(t)),Js.get(t)}var Dv=new WeakMap,qs={};function _v(e,t){for(var r=Dv,i=0;i<t.length;i+=1){var n=t[i];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(qs)||r.set(qs,e()),r.get(qs)}var Td=new WeakMap;function yi(e){var t=Td.get(e)||"";return t||(Object.keys(e).forEach(function(r){var i=e[r];t+=r,i instanceof Ad?t+=i.id:i&&pe(i)==="object"?t+=yi(i):t+=i}),t=vi(t),Td.set(e,t)),t}function Od(e,t){return vi("".concat(t,"_").concat(yi(e)))}var Qs=yr();function Ci(e){return typeof e=="number"?"".concat(e,"px"):e}function Lo(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=W(W({},i),{},H(H({},An,t),er,r)),a=Object.keys(o).map(function(u){var s=o[u];return s?"".concat(u,'="').concat(s,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Bo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Gv=function(t,r,i){return Object.keys(t).length?".".concat(r).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(t).map(function(n){var o=fe(n,2),a=o[0],u=o[1];return"".concat(a,":").concat(u,";")}).join(""),"}"):""},kd=function(t,r,i){var n={},o={};return Object.entries(t).forEach(function(a){var u,s,l=fe(a,2),c=l[0],d=l[1];if(i!=null&&(u=i.preserve)!==null&&u!==void 0&&u[c])o[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(i!=null&&(s=i.ignore)!==null&&s!==void 0&&s[c])){var f,g=Bo(c,i?.prefix);n[g]=typeof d=="number"&&!(i!=null&&(f=i.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),o[c]="var(".concat(g,")")}}),[o,Gv(n,r,{scope:i?.scope})]},Pd=process.env.NODE_ENV!=="test"&&yr()?R.useLayoutEffect:R.useEffect,Nd=function(t,r){var i=R.useRef(!0);Pd(function(){return t(i.current)},r),Pd(function(){return i.current=!1,function(){i.current=!0}},[])},Fd=function(t,r){Nd(function(i){if(!i)return t()},r)},Hv=W({},R),Rd=Hv.useInsertionEffect,Wv=function(t,r,i){R.useMemo(t,i),Nd(function(){return r(!0)},i)},zv=Rd?function(e,t,r){return Rd(function(){return e(),t()},r)}:Wv,Xv=W({},R),Uv=Xv.useInsertionEffect,Yv=function(t){var r=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Bs(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return R.useEffect(function(){return i=!1,function(){i=!0,r.length&&r.forEach(function(o){return o()})}},t),n},Jv=function(){return function(t){t()}},Zv=typeof Uv<"u"?Yv:Jv;function qv(){return!1}var Ks=!1;function Qv(){return Ks}const Kv=process.env.NODE_ENV==="production"?qv:Qv;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if($o&&typeof $o.webpackHotUpdate=="function"){var eb=$o.webpackHotUpdate;$o.webpackHotUpdate=function(){return Ks=!0,setTimeout(function(){Ks=!1},0),eb.apply(void 0,arguments)}}}function eu(e,t,r,i,n){var o=R.useContext(bi),a=o.cache,u=[e].concat(de(t)),s=Us(u),l=Zv([s]),c=Kv(),d=function(p){a.opUpdate(s,function(m){var b=m||[void 0,void 0],y=fe(b,2),I=y[0],x=I===void 0?0:I,v=y[1],S=v;process.env.NODE_ENV!=="production"&&v&&c&&(i?.(S,c),S=null);var E=S||r(),w=[x,E];return p?p(w):w})};R.useMemo(function(){d()},[s]);var f=a.opGet(s);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(s));var g=f[1];return zv(function(){n?.(g)},function(h){return d(function(p){var m=fe(p,2),b=m[0],y=m[1];return h&&b===0&&n?.(g),[b+1,y]}),function(){a.opUpdate(s,function(p){var m=p||[],b=fe(m,2),y=b[0],I=y===void 0?0:y,x=b[1],v=I-1;return v===0?(l(function(){(h||!a.opGet(s))&&i?.(x,!1)}),null):[I-1,x]})}},[s]),g}var tb={},rb=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",an=new Map;function nb(e){an.set(e,(an.get(e)||0)+1)}function ib(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(An,'="').concat(e,'"]'));r.forEach(function(i){if(i[Hr]===t){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var ob=0;function ab(e,t){an.set(e,(an.get(e)||0)-1);var r=new Set;an.forEach(function(i,n){i<=0&&r.add(n)}),an.size-r.size>ob&&r.forEach(function(i){ib(i,t),an.delete(i)})}var sb=function(t,r,i,n){var o=i.getDerivativeToken(t),a=W(W({},o),r);return n&&(a=n(a)),a},Md="token";function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=O.useContext(bi),n=i.cache.instanceId,o=i.container,a=r.salt,u=a===void 0?"":a,s=r.override,l=s===void 0?tb:s,c=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=_v(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),h=yi(g),p=yi(l),m=f?yi(f):"",b=eu(Md,[u,e.id,h,p,m],function(){var y,I=d?d(g,l,e):sb(g,l,e,c),x=W({},I),v="";if(f){var S=kd(I,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),E=fe(S,2);I=E[0],v=E[1]}var w=Od(I,u);I._tokenKey=w,x._tokenKey=Od(x,u);var T=(y=f?.key)!==null&&y!==void 0?y:w;I._themeKey=T,nb(T);var k="".concat(rb,"-").concat(vi(w));return I._hashId=k,[I,k,x,v,f?.key||""]},function(y){ab(y[0]._themeKey,n)},function(y){var I=fe(y,4),x=I[0],v=I[3];if(f&&v){var S=wn(v,vi("css-variables-".concat(x._themeKey)),{mark:er,prepend:"queue",attachTo:o,priority:-999});S[Hr]=n,S.setAttribute(An,x._themeKey)}});return b}var lb=function(t,r,i){var n=fe(t,5),o=n[2],a=n[3],u=n[4],s=i||{},l=s.plain;if(!a)return null;var c=o._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Lo(a,u,c,f,l);return[d,c,g]},cb={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vd="comm",jd="rule",Ld="decl",db="@import",fb="@namespace",pb="@keyframes",mb="@layer",Bd=Math.abs,tu=String.fromCharCode;function $d(e){return e.trim()}function Do(e,t,r){return e.replace(t,r)}function gb(e,t,r){return e.indexOf(t,r)}function Tn(e,t){return e.charCodeAt(t)|0}function On(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function hb(e){return e.length}function _o(e,t){return t.push(e),e}var Go=1,kn=1,Dd=0,Dt=0,ot=0,Pn="";function ru(e,t,r,i,n,o,a,u){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:Go,column:kn,length:a,return:"",siblings:u}}function vb(){return ot}function bb(){return ot=Dt>0?Tn(Pn,--Dt):0,kn--,ot===10&&(kn=1,Go--),ot}function tr(){return ot=Dt<Dd?Tn(Pn,Dt++):0,kn++,ot===10&&(kn=1,Go++),ot}function Wr(){return Tn(Pn,Dt)}function Ho(){return Dt}function Wo(e,t){return On(Pn,e,t)}function xi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yb(e){return Go=kn=1,Dd=sr(Pn=e),Dt=0,[]}function Cb(e){return Pn="",e}function nu(e){return $d(Wo(Dt-1,iu(e===91?e+2:e===40?e+1:e)))}function xb(e){for(;(ot=Wr())&&ot<33;)tr();return xi(e)>2||xi(ot)>3?"":" "}function Eb(e,t){for(;--t&&tr()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Wo(e,Ho()+(t<6&&Wr()==32&&tr()==32))}function iu(e){for(;tr();)switch(ot){case e:return Dt;case 34:case 39:e!==34&&e!==39&&iu(ot);break;case 40:e===41&&iu(e);break;case 92:tr();break}return Dt}function Ib(e,t){for(;tr()&&e+ot!==57;)if(e+ot===84&&Wr()===47)break;return"/*"+Wo(t,Dt-1)+"*"+tu(e===47?e:tr())}function Sb(e){for(;!xi(Wr());)tr();return Wo(e,Dt)}function wb(e){return Cb(zo("",null,null,null,[""],e=yb(e),0,[0],e))}function zo(e,t,r,i,n,o,a,u,s){for(var l=0,c=0,d=a,f=0,g=0,h=0,p=1,m=1,b=1,y=0,I="",x=n,v=o,S=i,E=I;m;)switch(h=y,y=tr()){case 40:if(h!=108&&Tn(E,d-1)==58){gb(E+=Do(nu(y),"&","&\f"),"&\f",Bd(l?u[l-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=nu(y);break;case 9:case 10:case 13:case 32:E+=xb(h);break;case 92:E+=Eb(Ho()-1,7);continue;case 47:switch(Wr()){case 42:case 47:_o(Ab(Ib(tr(),Ho()),t,r,s),s),(xi(h||1)==5||xi(Wr()||1)==5)&&sr(E)&&On(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*p:u[l++]=sr(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:b==-1&&(E=Do(E,/\f/g,"")),g>0&&(sr(E)-d||p===0&&h===47)&&_o(g>32?Gd(E+";",i,r,d-1,s):Gd(Do(E," ","")+";",i,r,d-2,s),s);break;case 59:E+=";";default:if(_o(S=_d(E,t,r,l,c,n,u,I,x=[],v=[],d,o),o),y===123)if(c===0)zo(E,t,S,S,x,o,d,u,v);else{switch(f){case 99:if(Tn(E,3)===110)break;case 108:if(Tn(E,2)===97)break;default:c=0;case 100:case 109:case 115:}c?zo(e,S,S,i&&_o(_d(e,S,S,0,0,n,u,I,n,x=[],d,v),v),n,v,d,u,i?x:v):zo(E,S,S,S,[""],v,0,u,v)}}l=c=g=0,p=b=1,I=E="",d=a;break;case 58:d=1+sr(E),g=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&bb()==125)continue}switch(E+=tu(y),y*p){case 38:b=c>0?1:(E+="\f",-1);break;case 44:u[l++]=(sr(E)-1)*b,b=1;break;case 64:Wr()===45&&(E+=nu(tr())),f=Wr(),c=d=sr(I=E+=Sb(Ho())),y++;break;case 45:h===45&&sr(E)==2&&(p=0)}}return o}function _d(e,t,r,i,n,o,a,u,s,l,c,d){for(var f=n-1,g=n===0?o:[""],h=hb(g),p=0,m=0,b=0;p<i;++p)for(var y=0,I=On(e,f+1,f=Bd(m=a[p])),x=e;y<h;++y)(x=$d(m>0?g[y]+" "+I:Do(I,/&\f/g,g[y])))&&(s[b++]=x);return ru(e,t,r,n===0?jd:u,s,l,c,d)}function Ab(e,t,r,i){return ru(e,t,r,Vd,tu(vb()),On(e,2,-2),0,i)}function Gd(e,t,r,i,n){return ru(e,t,r,Ld,On(e,0,i),On(e,i+1,-1),i,n)}function ou(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Tb(e,t,r,i){switch(e.type){case mb:if(e.children.length)break;case db:case fb:case Ld:return e.return=e.return||e.value;case Vd:return"";case pb:return e.return=e.value+"{"+ou(e.children,i)+"}";case jd:if(!sr(e.value=e.props.join(",")))return""}return sr(r=ou(e.children,i))?e.return=e.value+"{"+r+"}":""}function Hd(e,t){var r=t.path,i=t.parentSelectors;Ye(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var Ob=function(t,r,i){if(t==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!n.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Hd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),i)}},kb=function(t,r,i){t==="animation"&&i.hashId&&r!=="none"&&Hd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Wd="data-ant-cssinjs-cache-path",zd="_FILE_STYLE__",sn,Xd=!0;function Pb(){if(!sn&&(sn={},yr())){var e=document.createElement("div");e.className=Wd,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(n){var o=n.split(":"),a=fe(o,2),u=a[0],s=a[1];sn[u]=s});var r=document.querySelector("style[".concat(Wd,"]"));if(r){var i;Xd=!1,(i=r.parentNode)===null||i===void 0||i.removeChild(r)}document.body.removeChild(e)}}function Nb(e){return Pb(),!!sn[e]}function Fb(e){var t=sn[e],r=null;if(t&&yr())if(Xd)r=zd;else{var i=document.querySelector("style[".concat(er,'="').concat(sn[e],'"]'));i?r=i.innerHTML:delete sn[e]}return[r,t]}var Ud="_skip_check_",Yd="_multi_value_";function Xo(e){var t=ou(wb(e),Tb);return t.replace(/\{%%%\:[^;];}/g,";")}function Rb(e){return pe(e)==="object"&&e&&(Ud in e||Yd in e)}function Jd(e,t,r){if(!t)return e;var i=".".concat(t),n=r==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var u,s=a.trim().split(/\s+/),l=s[0]||"",c=((u=l.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return l="".concat(c).concat(n).concat(l.slice(c.length)),[l].concat(de(s.slice(1))).join(" ")});return o.join(",")}var Mb=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,u=r.hashId,s=r.layer,l=r.path,c=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,h=g===void 0?[]:g,p="",m={};function b(x){var v=x.getName(u);if(!m[v]){var S=e(x.style,r,{root:!1,parentSelectors:a}),E=fe(S,1),w=E[0];m[v]="@keyframes ".concat(x.getName(u)).concat(w)}}function y(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(S){Array.isArray(S)?y(S,v):S&&v.push(S)}),v}var I=y(Array.isArray(t)?t:[t]);return I.forEach(function(x){var v=typeof x=="string"&&!n?{}:x;if(typeof v=="string")p+="".concat(v,`
68
+ `);else if(v._keyframe)b(v);else{var S=f.reduce(function(E,w){var T;return(w==null||(T=w.visit)===null||T===void 0?void 0:T.call(w,E))||E},v);Object.keys(S).forEach(function(E){var w=S[E];if(pe(w)==="object"&&w&&(E!=="animationName"||!w._keyframe)&&!Rb(w)){var T=!1,k=E.trim(),V=!1;(n||o)&&u?k.startsWith("@")?T=!0:k==="&"?k=Jd("",u,c):k=Jd(E,u,c):n&&!u&&(k==="&"||k==="")&&(k="",V=!0);var C=e(w,r,{root:V,injectHash:T,parentSelectors:[].concat(de(a),[k])}),N=fe(C,2),F=N[0],P=N[1];m=W(W({},m),P),p+="".concat(k).concat(F)}else{let U=function(Q,$){process.env.NODE_ENV!=="production"&&(pe(w)!=="object"||!(w!=null&&w[Ud]))&&[Ob,kb].concat(de(h)).forEach(function(_){return _(Q,$,{path:l,hashId:u,parentSelectors:a})});var L=Q.replace(/[A-Z]/g,function(_){return"-".concat(_.toLowerCase())}),G=$;!cb[Q]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),Q==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(b($),G=$.getName(u)),p+="".concat(L,":").concat(G,";")};var j,B=(j=w?.value)!==null&&j!==void 0?j:w;pe(w)==="object"&&w!==null&&w!==void 0&&w[Yd]&&Array.isArray(B)?B.forEach(function(Q){U(E,Q)}):U(E,B)}})}}),n?s&&(p&&(p="@layer ".concat(s.name," {").concat(p,"}")),s.dependencies&&(m["@layer ".concat(s.name)]=s.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(s.name,";")}).join(`
69
+ `))):p="{".concat(p,"}"),[p,m]};function Zd(e,t){return vi("".concat(e.join("%")).concat(t))}function Vb(){return null}var qd="style";function au(e,t){var r=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,u=e.clientOnly,s=e.order,l=s===void 0?0:s,c=R.useContext(bi),d=c.autoClear,f=c.mock,g=c.defaultCache,h=c.hashPriority,p=c.container,m=c.ssrInline,b=c.transformers,y=c.linters,I=c.cache,x=c.layer,v=r._tokenKey,S=[v];x&&S.push("layer"),S.push.apply(S,de(i));var E=Qs;process.env.NODE_ENV!=="production"&&f!==void 0&&(E=f==="client");var w=eu(qd,S,function(){var N=S.join("|");if(Nb(N)){var F=Fb(N),P=fe(F,2),j=P[0],B=P[1];if(j)return[j,v,B,{},u,l]}var U=t(),Q=Mb(U,{hashId:n,hashPriority:h,layer:x?o:void 0,path:i.join("-"),transformers:b,linters:y}),$=fe(Q,2),L=$[0],G=$[1],_=Xo(L),X=Zd(S,_);return[_,v,X,G,u,l]},function(N,F){var P=fe(N,3),j=P[2];(F||d)&&Qs&&Id(j,{mark:er,attachTo:p})},function(N){var F=fe(N,4),P=F[0];F[1];var j=F[2],B=F[3];if(E&&P!==zd){var U={mark:er,prepend:x?!1:"queue",attachTo:p,priority:l},Q=typeof a=="function"?a():a;Q&&(U.csp={nonce:Q});var $=[],L=[];Object.keys(B).forEach(function(_){_.startsWith("@layer")?$.push(_):L.push(_)}),$.forEach(function(_){wn(Xo(B[_]),"_layer-".concat(_),W(W({},U),{},{prepend:!0}))});var G=wn(P,j,U);G[Hr]=I.instanceId,G.setAttribute(An,v),process.env.NODE_ENV!=="production"&&G.setAttribute(Lv,S.join("|")),L.forEach(function(_){wn(Xo(B[_]),"_effect-".concat(_),U)})}}),T=fe(w,3),k=T[0],V=T[1],C=T[2];return function(N){var F;return!m||E||!g?F=R.createElement(Vb,null):F=R.createElement("style",se({},H(H({},An,V),er,C),{dangerouslySetInnerHTML:{__html:k}})),R.createElement(R.Fragment,null,F,N)}}var jb=function(t,r,i){var n=fe(t,6),o=n[0],a=n[1],u=n[2],s=n[3],l=n[4],c=n[5],d=i||{},f=d.plain;if(l)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return g=Lo(o,a,u,h,f),s&&Object.keys(s).forEach(function(p){if(!r[p]){r[p]=!0;var m=Xo(s[p]),b=Lo(m,a,"_effect-".concat(p),h,f);p.startsWith("@layer")?g=b+g:g+=b}}),[c,u,g]},Qd="cssVar",Lb=function(t,r){var i=t.key,n=t.prefix,o=t.unitless,a=t.ignore,u=t.token,s=t.scope,l=s===void 0?"":s,c=O.useContext(bi),d=c.cache.instanceId,f=c.container,g=u._tokenKey,h=[].concat(de(t.path),[i,l,g]),p=eu(Qd,h,function(){var m=r(),b=kd(m,i,{prefix:n,unitless:o,ignore:a,scope:l}),y=fe(b,2),I=y[0],x=y[1],v=Zd(h,x);return[I,x,v,i]},function(m){var b=fe(m,3),y=b[2];Qs&&Id(y,{mark:er,attachTo:f})},function(m){var b=fe(m,3),y=b[1],I=b[2];if(y){var x=wn(y,I,{mark:er,prepend:"queue",attachTo:f,priority:-999});x[Hr]=d,x.setAttribute(An,i)}});return p},Bb=function(t,r,i){var n=fe(t,4),o=n[1],a=n[2],u=n[3],s=i||{},l=s.plain;if(!o)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},f=Lo(o,u,a,d,l);return[c,a,f]};H(H(H({},qd,jb),Md,lb),Qd,Bb);function Nn(e){return e.notSplit=!0,e}Nn(["borderTop","borderBottom"]),Nn(["borderTop"]),Nn(["borderBottom"]),Nn(["borderLeft","borderRight"]),Nn(["borderLeft"]),Nn(["borderRight"]);var $b=O.createContext({});function Db(e){return hd(e)||dd(e)||Hs(e)||vd()}function ur(e,t){for(var r=e,i=0;i<t.length;i+=1){if(r==null)return;r=r[t[i]]}return r}function Kd(e,t,r,i){if(!t.length)return r;var n=Db(t),o=n[0],a=n.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=de(e):u=W({},e),i&&r===void 0&&a.length===1?delete u[o][a[0]]:u[o]=Kd(u[o],a,r,i),u}function rr(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&i&&r===void 0&&!ur(e,t.slice(0,-1))?e:Kd(e,t,r,i)}function _b(e){return pe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ef(e){return Array.isArray(e)?[]:{}}var Gb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Fn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=ef(t[0]);return t.forEach(function(n){function o(a,u){var s=new Set(u),l=ur(n,a),c=Array.isArray(l);if(c||_b(l)){if(!s.has(l)){s.add(l);var d=ur(i,a);c?i=rr(i,a,[]):(!d||pe(d)!=="object")&&(i=rr(i,a,ef(l))),Gb(l).forEach(function(f){o([].concat(de(a),[f]),s)})}}else i=rr(i,a,l)}o([])}),i}function tf(){}let Cr=null;function Hb(){Cr=null,qc()}let rf=tf;process.env.NODE_ENV!=="production"&&(rf=(e,t,r)=>{Ye(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Hb()});const Rn=rf,nf=R.createContext({}),Ei=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=R.useContext(nf),r=(i,n,o)=>{if(!i)if(t===!1&&n==="deprecated"){const a=Cr;Cr||(Cr={}),Cr[e]=Cr[e]||[],Cr[e].includes(o||"")||Cr[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Cr)}else process.env.NODE_ENV!=="production"&&Rn(i,e,o)};return r.deprecated=(i,n,o,a)=>{r(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=tf,e},Wb=O.createContext(void 0);var zb={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Xb=W(W({},zb),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Ub={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Xb),Object.assign({},Ub);const kt="${label} is not a valid ${type}",Uo={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:kt,method:kt,array:kt,object:kt,number:kt,date:kt,boolean:kt,integer:kt,float:kt,regexp:kt,email:kt,url:kt,hex:kt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},Uo.Modal);let Yo=[];const of=()=>Yo.reduce((e,t)=>Object.assign(Object.assign({},e),t),Uo.Modal);function Yb(e){if(e){const t=Object.assign({},e);return Yo.push(t),of(),()=>{Yo=Yo.filter(r=>r!==t),of()}}Object.assign({},Uo.Modal)}const af=O.createContext(void 0),sf="internalMark",uf=e=>{const{locale:t={},children:r,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Ei("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===sf,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}R.useEffect(()=>Yb(t?.Modal),[t]);const n=R.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return R.createElement(af.Provider,{value:n},r)};process.env.NODE_ENV!=="production"&&(uf.displayName="LocaleProvider");const lf={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ii=Object.assign(Object.assign({},lf),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
70
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
71
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),lt=Math.round;function su(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=t(i[n]||0,r[n]||"",n);return r[3]?i[3]=r[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const cf=(e,t,r)=>r===0?e:e/100;function Si(e,t){const r=t||255;return e>r?r:e<0?0:e}class tt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let n=function(o){return i.startsWith(o)};const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(t instanceof tt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Si(t.r),this.g=Si(t.g),this.b=Si(t.b),this.a=typeof t.a=="number"?Si(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),i=t(this.g),n=t(this.b);return .2126*r+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),i=this.getSaturation();let n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:i,l:n,a:this.a})}lighten(t=10){const r=this.getHue(),i=this.getSaturation();let n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:i,l:n,a:this.a})}mix(t,r=50){const i=this._c(t),n=r/100,o=u=>(i[u]-this[u])*n+this[u],a={r:lt(o("r")),g:lt(o("g")),b:lt(o("b")),a:lt(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),i=this.a+r.a*(1-this.a),n=o=>lt((this[o]*this.a+r[o]*r.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.g||0).toString(16);t+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(t+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=lt(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=lt(this.getSaturation()*100),i=lt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${i}%,${this.a})`:`hsl(${t},${r}%,${i}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,i){const n=this.clone();return n[t]=Si(r,i),n}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function i(n,o){return parseInt(r[n]+r[o||n],16)}r.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=r[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=r[6]?i(6,7)/255:1)}fromHsl({h:t,s:r,l:i,a:n}){if(this._h=t%360,this._s=r,this._l=i,this.a=typeof n=="number"?n:1,r<=0){const f=lt(i*255);this.r=f,this.g=f,this.b=f}let o=0,a=0,u=0;const s=t/60,l=(1-Math.abs(2*i-1))*r,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,a=c):s>=1&&s<2?(o=c,a=l):s>=2&&s<3?(a=l,u=c):s>=3&&s<4?(a=c,u=l):s>=4&&s<5?(o=c,u=l):s>=5&&s<6&&(o=l,u=c);const d=i-l/2;this.r=lt((o+d)*255),this.g=lt((a+d)*255),this.b=lt((u+d)*255)}fromHsv({h:t,s:r,v:i,a:n}){this._h=t%360,this._s=r,this._v=i,this.a=typeof n=="number"?n:1;const o=lt(i*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const a=t/60,u=Math.floor(a),s=a-u,l=lt(i*(1-r)*255),c=lt(i*(1-r*s)*255),d=lt(i*(1-r*(1-s))*255);switch(u){case 0:this.g=d,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=c;break;case 4:this.r=d,this.g=l;break;case 5:default:this.g=l,this.b=c;break}}fromHsvString(t){const r=su(t,cf);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=su(t,cf);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=su(t,(i,n)=>n.includes("%")?lt(i/100*255):i);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Jo=2,df=.16,Jb=.05,Zb=.05,qb=.15,ff=5,pf=4,Qb=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function mf(e,t,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-Jo*t:Math.round(e.h)+Jo*t:i=r?Math.round(e.h)+Jo*t:Math.round(e.h)-Jo*t,i<0?i+=360:i>=360&&(i-=360),i}function gf(e,t,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-df*t:t===pf?i=e.s+df:i=e.s+Jb*t,i>1&&(i=1),r&&t===ff&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function hf(e,t,r){var i;return r?i=e.v+Zb*t:i=e.v-qb*t,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function Zo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=new tt(e),n=i.toHsv(),o=ff;o>0;o-=1){var a=new tt({h:mf(n,o,!0),s:gf(n,o,!0),v:hf(n,o,!0)});r.push(a)}r.push(i);for(var u=1;u<=pf;u+=1){var s=new tt({h:mf(n,u),s:gf(n,u),v:hf(n,u)});r.push(s)}return t.theme==="dark"?Qb.map(function(l){var c=l.index,d=l.amount;return new tt(t.backgroundColor||"#141414").mix(r[c],d).toHexString()}):r.map(function(l){return l.toHexString()})}var uu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},lu=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];lu.primary=lu[5];var cu=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];cu.primary=cu[5];var du=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];du.primary=du[5];var fu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fu.primary=fu[5];var pu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];pu.primary=pu[5];var mu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];mu.primary=mu[5];var gu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gu.primary=gu[5];var hu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hu.primary=hu[5];var vu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];vu.primary=vu[5];var bu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bu.primary=bu[5];var yu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];yu.primary=yu[5];var Cu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Cu.primary=Cu[5];var xu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];xu.primary=xu[5];var Eu={red:lu,volcano:cu,orange:du,gold:fu,yellow:pu,lime:mu,green:gu,cyan:hu,blue:vu,geekblue:bu,purple:yu,magenta:Cu,grey:xu};function Kb(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:i,colorWarning:n,colorError:o,colorInfo:a,colorPrimary:u,colorBgBase:s,colorTextBase:l}=e,c=t(u),d=t(i),f=t(n),g=t(o),h=t(a),p=r(s,l),m=e.colorLink||e.colorInfo,b=t(m),y=new tt(g[1]).mix(new tt(g[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new tt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const e1=e=>{let t=e,r=e,i=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:n}};function t1(e){const{motionUnit:t,motionBase:r,borderRadius:i,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:n+1},e1(i))}const r1=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function n1(e){return(e+8)/e}function i1(e){const t=Array.from({length:10}).map((r,i)=>{const n=i-1,o=e*Math.pow(Math.E,n/5),a=i>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:n1(r)}))}const o1=e=>{const t=i1(e),r=t.map(c=>c.size),i=t.map(c=>c.lineHeight),n=r[1],o=r[0],a=r[2],u=i[1],s=i[0],l=i[2];return{fontSizeSM:o,fontSize:n,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(u*n),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(s*o),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function a1(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const _t=(e,t)=>new tt(e).setA(t).toRgbString(),wi=(e,t)=>new tt(e).darken(t).toHexString(),s1=e=>{const t=Zo(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},u1=(e,t)=>{const r=e||"#fff",i=t||"#000";return{colorBgBase:r,colorTextBase:i,colorText:_t(i,.88),colorTextSecondary:_t(i,.65),colorTextTertiary:_t(i,.45),colorTextQuaternary:_t(i,.25),colorFill:_t(i,.15),colorFillSecondary:_t(i,.06),colorFillTertiary:_t(i,.04),colorFillQuaternary:_t(i,.02),colorBgSolid:_t(i,1),colorBgSolidHover:_t(i,.75),colorBgSolidActive:_t(i,.95),colorBgLayout:wi(r,4),colorBgContainer:wi(r,0),colorBgElevated:wi(r,0),colorBgSpotlight:_t(i,.85),colorBgBlur:"transparent",colorBorder:wi(r,15),colorBorderSecondary:wi(r,6)}};function l1(e){uu.pink=uu.magenta,Eu.pink=Eu.magenta;const t=Object.keys(lf).map(r=>{const i=e[r]===uu[r]?Eu[r]:Zo(e[r]);return Array.from({length:10},()=>1).reduce((n,o,a)=>(n[`${r}-${a+1}`]=i[a],n[`${r}${a+1}`]=i[a],n),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Kb(e,{generateColorPalettes:s1,generateNeutralColorPalettes:u1})),o1(e.fontSize)),a1(e)),r1(e)),t1(e))}const vf=Zs(l1),Iu={token:Ii,override:{override:Ii},hashed:!0},bf=O.createContext(Iu),qo="ant",Su="anticon",c1=(e,t)=>t||(e?`${qo}-${e}`:qo),lr=R.createContext({getPrefixCls:c1,iconPrefixCls:Su}),{Consumer:ik}=lr,d1=`-ant-${Date.now()}-${Math.random()}`;function f1(e,t){const r={},i=(a,u)=>{let s=a.clone();return s=u?.(s)||s,s.toRgbString()},n=(a,u)=>{const s=new tt(a),l=Zo(s.toRgbString());r[`${u}-color`]=i(s),r[`${u}-color-disabled`]=l[1],r[`${u}-color-hover`]=l[4],r[`${u}-color-active`]=l[6],r[`${u}-color-outline`]=s.clone().setA(.2).toRgbString(),r[`${u}-color-deprecated-bg`]=l[0],r[`${u}-color-deprecated-border`]=l[2]};if(t.primaryColor){n(t.primaryColor,"primary");const a=new tt(t.primaryColor),u=Zo(a.toRgbString());u.forEach((l,c)=>{r[`primary-${c+1}`]=l}),r["primary-color-deprecated-l-35"]=i(a,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=i(a,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=i(a,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=i(a,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=i(a,l=>l.setA(l.a*.12));const s=new tt(u[0]);r["primary-color-active-deprecated-f-30"]=i(s,l=>l.setA(l.a*.3)),r["primary-color-active-deprecated-d-02"]=i(s,l=>l.darken(2))}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
72
+ :root {
73
+ ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
74
+ `)}
75
+ }
76
+ `.trim()}function p1(e,t){const r=f1(e,t);yr()?wn(r,`${d1}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Qo=R.createContext(!1),m1=({children:e,disabled:t})=>{const r=R.useContext(Qo);return R.createElement(Qo.Provider,{value:t??r},e)},Ai=R.createContext(void 0),g1=({children:e,size:t})=>{const r=R.useContext(Ai);return R.createElement(Ai.Provider,{value:t||r},e)};function h1(){const e=O.useContext(Qo),t=O.useContext(Ai);return{componentDisabled:e,componentSize:t}}var yf=yt(function e(){bt(this,e)}),Cf="CALC_UNIT",v1=new RegExp(Cf,"g");function wu(e){return typeof e=="number"?"".concat(e).concat(Cf):e}var b1=function(e){nn(r,e);var t=on(r);function r(i,n){var o;bt(this,r),o=t.call(this),H(ve(o),"result",""),H(ve(o),"unitlessCssVar",void 0),H(ve(o),"lowPriority",void 0);var a=pe(i);return o.unitlessCssVar=n,i instanceof r?o.result="(".concat(i.result,")"):a==="number"?o.result=wu(i):a==="string"&&(o.result=i),o}return yt(r,[{key:"add",value:function(n){return n instanceof r?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(wu(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof r?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(wu(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},u=a.unit,s=!0;return typeof u=="boolean"?s=u:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(v1,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(yf),y1=function(e){nn(r,e);var t=on(r);function r(i){var n;return bt(this,r),n=t.call(this),H(ve(n),"result",0),i instanceof r?n.result=i.result:typeof i=="number"&&(n.result=i),n}return yt(r,[{key:"add",value:function(n){return n instanceof r?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof r?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof r?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof r?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),r}(yf),C1=function(t,r){var i=t==="css"?b1:y1;return function(n){return new i(n,r)}},xf=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Mn(e){var t=R.useRef();t.current=e;var r=R.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=t.current)===null||i===void 0?void 0:i.call.apply(i,[t].concat(o))},[]);return r}function Ti(e){var t=R.useRef(!1),r=R.useState(e),i=fe(r,2),n=i[0],o=i[1];R.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(u,s){s&&t.current||o(u)}return[n,a]}function Au(e){return e!==void 0}function x1(e,t){var r=t||{},i=r.defaultValue,n=r.value,o=r.onChange,a=r.postState,u=Ti(function(){return Au(n)?n:Au(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),s=fe(u,2),l=s[0],c=s[1],d=n!==void 0?n:l,f=a?a(d):d,g=Mn(o),h=Ti([d]),p=fe(h,2),m=p[0],b=p[1];Fd(function(){var I=m[0];l!==I&&g(l,I)},[m]),Fd(function(){Au(n)||c(n)},[n]);var y=Mn(function(I,x){c(I,x),b([d],x)});return[f,y]}function Ef(e,t,r,i){var n=W({},t[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(u){var s=fe(u,2),l=s[0],c=s[1];if(process.env.NODE_ENV!=="production"&&Ye(!(n!=null&&n[l]),"Component Token `".concat(String(l),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(c),"` instead.")),n!=null&&n[l]||n!=null&&n[c]){var d;(d=n[c])!==null&&d!==void 0||(n[c]=n?.[l])}})}var a=W(W({},r),n);return Object.keys(a).forEach(function(u){a[u]===t[u]&&delete a[u]}),a}var If=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Tu=!0;function Ou(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!If)return Object.assign.apply(Object,[{}].concat(t));Tu=!1;var i={};return t.forEach(function(n){if(pe(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),Tu=!0,i}var Sf={};function E1(){}var I1=function(t){var r,i=t,n=E1;return If&&typeof Proxy<"u"&&(r=new Set,i=new Proxy(t,{get:function(a,u){if(Tu){var s;(s=r)===null||s===void 0||s.add(u)}return a[u]}}),n=function(a,u){var s;Sf[a]={global:Array.from(r),component:W(W({},(s=Sf[a])===null||s===void 0?void 0:s.component),u)}}),{token:i,keys:r,flush:n}};function wf(e,t,r){if(typeof r=="function"){var i;return r(Ou(t,(i=t[e])!==null&&i!==void 0?i:{}))}return r??{}}function S1(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return Ci(o)}).join(","),")")},min:function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return Ci(o)}).join(","),")")}}}var w1=1e3*60*10,A1=function(){function e(){bt(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return yt(e,[{key:"set",value:function(r,i){this.clear();var n=this.getCompositeKey(r);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(r){var i=this.getCompositeKey(r),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(r){var i=this,n=r.map(function(o){return o&&pe(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(pe(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var i=this.nextID;return this.objectIDMap.set(r,i),this.nextID+=1,i}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>w1&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Af=new A1;function T1(e,t){return O.useMemo(function(){var r=Af.get(t);if(r)return r;var i=e();return Af.set(t,i),i},t)}var O1=function(){return{}};function k1(e){var t=e.useCSP,r=t===void 0?O1:t,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,u=e.getCompUnitless;function s(f,g,h,p){var m=Array.isArray(f)?f[0]:f;function b(w){return"".concat(String(m)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var y=p?.unitless||{},I=typeof u=="function"?u(f):{},x=W(W({},I),{},H({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(w){x[b(w)]=y[w]});var v=W(W({},p),{},{unitless:x,prefixToken:b}),S=c(f,g,h,v),E=l(m,h,v);return function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,k=S(w,T),V=fe(k,2),C=V[1],N=E(T),F=fe(N,2),P=F[0],j=F[1];return[P,C,j]}}function l(f,g,h){var p=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,I=h.ignore,x=function(E){var w=E.rootCls,T=E.cssVar,k=T===void 0?{}:T,V=i(),C=V.realToken;return Lb({path:[f],prefix:k.prefix,key:k.key,unitless:p,ignore:I,token:C,scope:w},function(){var N=wf(f,C,g),F=Ef(f,C,N,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(N).forEach(function(P){F[y(P)]=F[P],delete F[P]}),F}),null},v=function(E){var w=i(),T=w.cssVar;return[function(k){return b&&T?O.createElement(O.Fragment,null,O.createElement(x,{rootCls:E,cssVar:T,component:f}),k):k},T?.key]};return v}function c(f,g,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(f)?f:[f,f],b=fe(m,1),y=b[0],I=m.join("-"),x=e.layer||{name:"antd"};return function(v){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,E=i(),w=E.theme,T=E.realToken,k=E.hashId,V=E.token,C=E.cssVar,N=n(),F=N.rootPrefixCls,P=N.iconPrefixCls,j=r(),B=C?"css":"js",U=T1(function(){var X=new Set;return C&&Object.keys(p.unitless||{}).forEach(function(K){X.add(Bo(K,C.prefix)),X.add(Bo(K,xf(y,C.prefix)))}),C1(B,X)},[B,y,C?.prefix]),Q=S1(B),$=Q.max,L=Q.min,G={theme:w,token:V,hashId:k,nonce:function(){return j.nonce},clientOnly:p.clientOnly,layer:x,order:p.order||-999};typeof o=="function"&&au(W(W({},G),{},{clientOnly:!1,path:["Shared",F]}),function(){return o(V,{prefix:{rootPrefixCls:F,iconPrefixCls:P},csp:j})});var _=au(W(W({},G),{},{path:[I,v,P]}),function(){if(p.injectStyle===!1)return[];var X=I1(V),K=X.token,ee=X.flush,D=wf(y,T,h),Z=".".concat(v),ne=Ef(y,T,D,{deprecatedTokens:p.deprecatedTokens});C&&D&&pe(D)==="object"&&Object.keys(D).forEach(function(Re){D[Re]="var(".concat(Bo(Re,xf(y,C.prefix)),")")});var ce=Ou(K,{componentCls:Z,prefixCls:v,iconCls:".".concat(P),antCls:".".concat(F),calc:U,max:$,min:L},C?D:ne),Ee=g(ce,{hashId:k,prefixCls:v,rootPrefixCls:F,iconPrefixCls:P});ee(y,ne);var z=typeof a=="function"?a(ce,v,S,p.resetFont):null;return[p.resetStyle===!1?null:z,Ee]});return[_,k]}}function d(f,g,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=c(f,g,h,W({resetStyle:!1,order:-998},p)),b=function(I){var x=I.prefixCls,v=I.rootCls,S=v===void 0?x:v;return m(x,S),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:s,genSubStyleComponent:d,genComponentStyleHook:c}}const P1="5.27.0";function ku(e){return e>=0&&e<=255}function Ko(e,t){const{r,g:i,b:n,a:o}=new tt(e).toRgb();if(o<1)return e;const{r:a,g:u,b:s}=new tt(t).toRgb();for(let l=.01;l<=1;l+=.01){const c=Math.round((r-a*(1-l))/l),d=Math.round((i-u*(1-l))/l),f=Math.round((n-s*(1-l))/l);if(ku(c)&&ku(d)&&ku(f))return new tt({r:c,g:d,b:f,a:Math.round(l*100)/100}).toRgbString()}return new tt({r,g:i,b:n,a:1}).toRgbString()}var N1=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};function Tf(e){const{override:t}=e,r=N1(e,["override"]),i=Object.assign({},t);Object.keys(Ii).forEach(f=>{delete i[f]});const n=Object.assign(Object.assign({},r),i),o=480,a=576,u=768,s=992,l=1200,c=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Ko(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Ko(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Ko(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Ko(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
77
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
78
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
79
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
80
+ `,boxShadowSecondary:`
81
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
82
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
83
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
84
+ `,boxShadowTertiary:`
85
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
86
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
87
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
88
+ `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
89
+ 0 1px 2px -2px ${new tt("rgba(0, 0, 0, 0.16)").toRgbString()},
90
+ 0 3px 6px 0 ${new tt("rgba(0, 0, 0, 0.12)").toRgbString()},
91
+ 0 5px 12px 4px ${new tt("rgba(0, 0, 0, 0.09)").toRgbString()}
92
+ `,boxShadowDrawerRight:`
93
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
94
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
95
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
96
+ `,boxShadowDrawerLeft:`
97
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
98
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
99
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
100
+ `,boxShadowDrawerUp:`
101
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
102
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
103
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
104
+ `,boxShadowDrawerDown:`
105
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
106
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
107
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
108
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i)}var Of=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const kf={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},F1={motionBase:!0,motionUnit:!0},R1={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pf=(e,t,r)=>{const i=r.getDerivativeToken(e),{override:n}=t,o=Of(t,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=Tf(a),o&&Object.entries(o).forEach(([u,s])=>{const{theme:l}=s,c=Of(s,["theme"]);let d=c;l&&(d=Pf(Object.assign(Object.assign({},a),c),{override:c},l)),a[u]=d}),a};function Oi(){const{token:e,hashed:t,theme:r,override:i,cssVar:n}=O.useContext(bf),o=`${P1}-${t||""}`,a=r||vf,[u,s,l]=ub(a,[Ii,e],{salt:o,override:i,getComputedToken:Pf,formatToken:Tf,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:kf,ignore:F1,preserve:R1}});return[a,l,t?s:"",u,n]}const Pu=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),M1=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),V1=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),j1=(e,t,r,i)=>{const n=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return i!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),a),{[n]:a})}},L1=(e,t)=>({outline:`${Ci(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Nf=e=>({[`.${e}`]:Object.assign(Object.assign({},M1()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:B1,genComponentStyleHook:$1}=k1({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=O.useContext(lr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,i,n]=Oi();return{theme:e,realToken:t,hashId:r,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=O.useContext(lr);return e??{}},getResetStyles:(e,t)=>{var r;const i=V1(e);return[i,{"&":i},Nf((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Su)]},getCommonStyle:j1,getCompUnitless:()=>kf}),D1=(e,t)=>{const[r,i]=Oi();return au({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Nf(e))},_1=Object.assign({},R),{useId:Ff}=_1,G1=typeof Ff>"u"?()=>"":Ff;function H1(e,t,r){var i,n;const o=Ei("ConfigProvider"),a=e||{},u=a.inherit===!1||!t?Object.assign(Object.assign({},Iu),{hashed:(i=t?.hashed)!==null&&i!==void 0?i:Iu.hashed,cssVar:t?.cssVar}):t,s=G1();if(process.env.NODE_ENV!=="production"){const l=a.cssVar||u.cssVar,c=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||s);process.env.NODE_ENV!=="production"&&o(!l||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return od(()=>{var l,c;if(!e)return t;const d=Object.assign({},u.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});const f=`css-var-${s.replace(/:/g,"")}`,g=((l=a.cssVar)!==null&&l!==void 0?l:u.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof u.cssVar=="object"?u.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||f});return Object.assign(Object.assign(Object.assign({},u),a),{token:Object.assign(Object.assign({},u.token),a.token),components:d,cssVar:g})},[a,u],(l,c)=>l.some((d,f)=>{const g=c[f];return!Xs(d,g,!0)}))}var W1=["children"],Rf=R.createContext({});function z1(e){var t=e.children,r=dt(e,W1);return R.createElement(Rf.Provider,{value:r},t)}var X1=function(e){nn(r,e);var t=on(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r}(R.Component);function U1(e){var t=R.useReducer(function(u){return u+1},0),r=fe(t,2),i=r[1],n=R.useRef(e),o=Mn(function(){return n.current}),a=Mn(function(u){n.current=typeof u=="function"?u(n.current):u,i()});return[o,a]}var zr="none",ea="appear",ta="enter",ra="leave",Mf="none",nr="prepare",Vn="start",jn="active",Nu="end",Vf="prepared";function jf(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Y1(e,t){var r={animationend:jf("Animation","AnimationEnd"),transitionend:jf("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var J1=Y1(yr(),typeof window<"u"?window:{}),Lf={};if(yr()){var Z1=document.createElement("div");Lf=Z1.style}var na={};function Bf(e){if(na[e])return na[e];var t=J1[e];if(t)for(var r=Object.keys(t),i=r.length,n=0;n<i;n+=1){var o=r[n];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Lf)return na[e]=t[o],na[e]}return""}var $f=Bf("animationend"),Df=Bf("transitionend"),_f=!!($f&&Df),Gf=$f||"animationend",Hf=Df||"transitionend";function Wf(e,t){if(!e)return null;if(pe(e)==="object"){var r=t.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const q1=function(e){var t=O.useRef();function r(n){n&&(n.removeEventListener(Hf,e),n.removeEventListener(Gf,e))}function i(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(Hf,e),n.addEventListener(Gf,e),t.current=n)}return R.useEffect(function(){return function(){r(t.current)}},[]),[i,r]};var zf=yr()?O.useLayoutEffect:O.useEffect;const Q1=function(){var e=R.useRef(null);function t(){ar.cancel(e.current)}function r(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=ar(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):r(i,n-1)});e.current=o}return R.useEffect(function(){return function(){t()}},[]),[r,t]};var K1=[nr,Vn,jn,Nu],ey=[nr,Vf],Xf=!1,ty=!0;function Uf(e){return e===jn||e===Nu}const ry=function(e,t,r){var i=Ti(Mf),n=fe(i,2),o=n[0],a=n[1],u=Q1(),s=fe(u,2),l=s[0],c=s[1];function d(){a(nr,!0)}var f=t?ey:K1;return zf(function(){if(o!==Mf&&o!==Nu){var g=f.indexOf(o),h=f[g+1],p=r(o);p===Xf?a(h,!0):h&&l(function(m){function b(){m.isCanceled()||a(h,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,o]),R.useEffect(function(){return function(){c()}},[]),[d,o]};function ny(e,t,r,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,u=a===void 0?!0:a,s=i.motionLeave,l=s===void 0?!0:s,c=i.motionDeadline,d=i.motionLeaveImmediately,f=i.onAppearPrepare,g=i.onEnterPrepare,h=i.onLeavePrepare,p=i.onAppearStart,m=i.onEnterStart,b=i.onLeaveStart,y=i.onAppearActive,I=i.onEnterActive,x=i.onLeaveActive,v=i.onAppearEnd,S=i.onEnterEnd,E=i.onLeaveEnd,w=i.onVisibleChanged,T=Ti(),k=fe(T,2),V=k[0],C=k[1],N=U1(zr),F=fe(N,2),P=F[0],j=F[1],B=Ti(null),U=fe(B,2),Q=U[0],$=U[1],L=P(),G=O.useRef(!1),_=O.useRef(null);function X(){return r()}var K=O.useRef(!1);function ee(){j(zr),$(null,!0)}var D=Mn(function(Xe){var Ge=P();if(Ge!==zr){var mt=X();if(!(Xe&&!Xe.deadline&&Xe.target!==mt)){var Qt=K.current,Kt;Ge===ea&&Qt?Kt=v?.(mt,Xe):Ge===ta&&Qt?Kt=S?.(mt,Xe):Ge===ra&&Qt&&(Kt=E?.(mt,Xe)),Qt&&Kt!==!1&&ee()}}}),Z=q1(D),ne=fe(Z,1),ce=ne[0],Ee=function(Ge){switch(Ge){case ea:return H(H(H({},nr,f),Vn,p),jn,y);case ta:return H(H(H({},nr,g),Vn,m),jn,I);case ra:return H(H(H({},nr,h),Vn,b),jn,x);default:return{}}},z=R.useMemo(function(){return Ee(L)},[L]),Re=ry(L,!e,function(Xe){if(Xe===nr){var Ge=z[nr];return Ge?Ge(X()):Xf}if(ze in z){var mt;$(((mt=z[ze])===null||mt===void 0?void 0:mt.call(z,X(),null))||null)}return ze===jn&&L!==zr&&(ce(X()),c>0&&(clearTimeout(_.current),_.current=setTimeout(function(){D({deadline:!0})},c))),ze===Vf&&ee(),ty}),ae=fe(Re,2),Qe=ae[0],ze=ae[1],Zt=Uf(ze);K.current=Zt;var _r=O.useRef(null);zf(function(){if(!(G.current&&_r.current===t)){C(t);var Xe=G.current;G.current=!0;var Ge;!Xe&&t&&u&&(Ge=ea),Xe&&t&&o&&(Ge=ta),(Xe&&!t&&l||!Xe&&d&&!t&&l)&&(Ge=ra);var mt=Ee(Ge);Ge&&(e||mt[nr])?(j(Ge),Qe()):j(zr),_r.current=t}},[t]),O.useEffect(function(){(L===ea&&!u||L===ta&&!o||L===ra&&!l)&&j(zr)},[u,o,l]),O.useEffect(function(){return function(){G.current=!1,clearTimeout(_.current)}},[]);var qt=R.useRef(!1);O.useEffect(function(){V&&(qt.current=!0),V!==void 0&&L===zr&&((qt.current||V)&&w?.(V),qt.current=!0)},[V,L]);var xt=Q;return z[nr]&&ze===Vn&&(xt=W({transition:"none"},xt)),[L,ze,xt,V??t]}function iy(e){var t=e;pe(e)==="object"&&(t=e.transitionSupport);function r(n,o){return!!(n.motionName&&t&&o!==!1)}var i=R.forwardRef(function(n,o){var a=n.visible,u=a===void 0?!0:a,s=n.removeOnLeave,l=s===void 0?!0:s,c=n.forceRender,d=n.children,f=n.motionName,g=n.leavedClassName,h=n.eventProps,p=R.useContext(Rf),m=p.motion,b=r(n,m),y=O.useRef(),I=O.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:Ev(I.current)}catch{return null}}var v=ny(b,u,x,n),S=fe(v,4),E=S[0],w=S[1],T=S[2],k=S[3],V=R.useRef(k);k&&(V.current=!0);var C=R.useCallback(function(U){y.current=U,ad(o,U)},[o]),N,F=W(W({},h),{},{visible:u});if(!d)N=null;else if(E===zr)k?N=d(W({},F),C):!l&&V.current&&g?N=d(W(W({},F),{},{className:g}),C):c||!l&&!g?N=d(W(W({},F),{},{style:{display:"none"}}),C):N=null;else{var P;w===nr?P="prepare":Uf(w)?P="active":w===Vn&&(P="start");var j=Wf(f,"".concat(E,"-").concat(P));N=d(W(W({},F),{},{className:re(Wf(f,E),H(H({},j,j&&P),f,typeof f=="string")),style:T}),C)}if(R.isValidElement(N)&&sd(N)){var B=ld(N);B||(N=R.cloneElement(N,{ref:C}))}return R.createElement(X1,{ref:I},N)});return i.displayName="CSSMotion",i}const Yf=iy(_f);var Fu="add",Ru="keep",Mu="remove",Vu="removed";function oy(e){var t;return e&&pe(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(oy)}function ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],i=0,n=t.length,o=ju(e),a=ju(t);o.forEach(function(l){for(var c=!1,d=i;d<n;d+=1){var f=a[d];if(f.key===l.key){i<d&&(r=r.concat(a.slice(i,d).map(function(g){return W(W({},g),{},{status:Fu})})),i=d),r.push(W(W({},f),{},{status:Ru})),i+=1,c=!0;break}}c||r.push(W(W({},l),{},{status:Mu}))}),i<n&&(r=r.concat(a.slice(i).map(function(l){return W(W({},l),{},{status:Fu})})));var u={};r.forEach(function(l){var c=l.key;u[c]=(u[c]||0)+1});var s=Object.keys(u).filter(function(l){return u[l]>1});return s.forEach(function(l){r=r.filter(function(c){var d=c.key,f=c.status;return d!==l||f!==Mu}),r.forEach(function(c){c.key===l&&(c.status=Ru)})}),r}var sy=["component","children","onVisibleChanged","onAllRemoved"],uy=["status"],ly=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yf,r=function(i){nn(o,i);var n=on(o);function o(){var a;bt(this,o);for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];return a=n.call.apply(n,[this].concat(s)),H(ve(a),"state",{keyEntities:[]}),H(ve(a),"removeKey",function(c){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==c?g:W(W({},g),{},{status:Vu})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var h=g.status;return h!==Vu}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return yt(o,[{key:"render",value:function(){var u=this,s=this.state.keyEntities,l=this.props,c=l.component,d=l.children,f=l.onVisibleChanged;l.onAllRemoved;var g=dt(l,sy),h=c||R.Fragment,p={};return ly.forEach(function(m){p[m]=g[m],delete g[m]}),delete g.keys,R.createElement(h,g,s.map(function(m,b){var y=m.status,I=dt(m,uy),x=y===Fu||y===Ru;return R.createElement(t,se({},p,{key:I.key,visible:x,eventProps:I,onVisibleChanged:function(S){f?.(S,{key:I.key}),S||u.removeKey(I.key)}}),function(v,S){return d(W(W({},v),{},{index:b}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,s){var l=u.keys,c=s.keyEntities,d=ju(l),f=ay(c,d);return{keyEntities:f.filter(function(g){var h=c.find(function(p){var m=p.key;return g.key===m});return!(h&&h.status===Vu&&g.status===Mu)})}}}]),o}(R.Component);return H(r,"defaultProps",{component:"div"}),r}cy(_f);const Lu=R.createContext(!0);process.env.NODE_ENV!=="production"&&(Lu.displayName="MotionCacheContext");function dy(e){const t=R.useContext(Lu),{children:r}=e,[,i]=Oi(),{motion:n}=i,o=R.useRef(!1);return o.current||(o.current=t!==n),o.current?R.createElement(Lu.Provider,{value:n},R.createElement(z1,{motion:n},r)):r}const Jf=R.memo(({dropdownMatchSelectWidth:e})=>(Ei("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Jf.displayName="PropWarning");const fy=process.env.NODE_ENV!=="production"?Jf:()=>null;var py=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};let Bu=!1;process.env.NODE_ENV;const my=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Zf;function gy(){return Zf||qo}function hy(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const vy=e=>{const{prefixCls:t,iconPrefixCls:r,theme:i,holderRender:n}=e;t!==void 0&&(Zf=t),i&&hy(i)&&(process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),p1(gy(),i))},by=e=>{const{children:t,csp:r,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:u,componentSize:s,direction:l,space:c,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:p,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:I,componentDisabled:x,segmented:v,statistic:S,spin:E,calendar:w,carousel:T,cascader:k,collapse:V,typography:C,checkbox:N,descriptions:F,divider:P,drawer:j,skeleton:B,steps:U,image:Q,layout:$,list:L,mentions:G,modal:_,progress:X,result:K,slider:ee,breadcrumb:D,menu:Z,pagination:ne,input:ce,textArea:Ee,empty:z,badge:Re,radio:ae,rate:Qe,switch:ze,transfer:Zt,avatar:_r,message:qt,tag:xt,table:Xe,card:Ge,tabs:mt,timeline:Qt,timePicker:Kt,upload:yn,notification:Cn,tree:ci,colorPicker:Os,datePicker:ks,rangePicker:Rc,flex:Mc,wave:Vc,dropdown:jc,warning:Lc,tour:Bc,tooltip:$c,popover:Io,popconfirm:Ps,floatButton:tn,floatButtonGroup:So,variant:wo,inputNumber:Ns,treeSelect:Dc}=e,Ao=R.useCallback((M,J)=>{const{prefixCls:ie}=e;if(J)return J;const ue=ie||b.getPrefixCls("");return M?`${ue}-${M}`:ue},[b.getPrefixCls,e.prefixCls]),di=y||b.iconPrefixCls||Su,xn=r||b.csp;D1(di,xn);const En=H1(I,b.theme,{prefixCls:Ao("")});process.env.NODE_ENV!=="production"&&(Bu=Bu||!!En);const To={csp:xn,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:u||m,direction:l,space:c,splitter:d,virtual:f,popupMatchSelectWidth:h??g,popupOverflow:p,getPrefixCls:Ao,iconPrefixCls:di,theme:En,segmented:v,statistic:S,spin:E,calendar:w,carousel:T,cascader:k,collapse:V,typography:C,checkbox:N,descriptions:F,divider:P,drawer:j,skeleton:B,steps:U,image:Q,input:ce,textArea:Ee,layout:$,list:L,mentions:G,modal:_,progress:X,result:K,slider:ee,breadcrumb:D,menu:Z,pagination:ne,empty:z,badge:Re,radio:ae,rate:Qe,switch:ze,transfer:Zt,avatar:_r,message:qt,tag:xt,table:Xe,card:Ge,tabs:mt,timeline:Qt,timePicker:Kt,upload:yn,notification:Cn,tree:ci,colorPicker:Os,datePicker:ks,rangePicker:Rc,flex:Mc,wave:Vc,dropdown:jc,warning:Lc,tour:Bc,tooltip:$c,popover:Io,popconfirm:Ps,floatButton:tn,floatButtonGroup:So,variant:wo,inputNumber:Ns,treeSelect:Dc};process.env.NODE_ENV!=="production"&&Ei("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const rn=Object.assign({},b);Object.keys(To).forEach(M=>{To[M]!==void 0&&(rn[M]=To[M])}),my.forEach(M=>{const J=e[M];J&&(rn[M]=J)}),typeof i<"u"&&(rn.button=Object.assign({autoInsertSpace:i},rn.button));const Gr=od(()=>rn,rn,(M,J)=>{const ie=Object.keys(M),ue=Object.keys(J);return ie.length!==ue.length||ie.some(xe=>M[xe]!==J[xe])}),{layer:Oo}=R.useContext(bi),_c=R.useMemo(()=>({prefixCls:di,csp:xn,layer:Oo?"antd":void 0}),[di,xn,Oo]);let ut=R.createElement(R.Fragment,null,R.createElement(fy,{dropdownMatchSelectWidth:g}),t);const Fs=R.useMemo(()=>{var M,J,ie,ue;return Fn(((M=Uo.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((ie=(J=Gr.locale)===null||J===void 0?void 0:J.Form)===null||ie===void 0?void 0:ie.defaultValidateMessages)||{},((ue=Gr.form)===null||ue===void 0?void 0:ue.validateMessages)||{},a?.validateMessages||{})},[Gr,a?.validateMessages]);Object.keys(Fs).length>0&&(ut=R.createElement(Wb.Provider,{value:Fs},ut)),u&&(ut=R.createElement(uf,{locale:u,_ANT_MARK__:sf},ut)),ut=R.createElement($b.Provider,{value:_c},ut),s&&(ut=R.createElement(g1,{size:s},ut)),ut=R.createElement(dy,null,ut);const Gc=R.useMemo(()=>{const M=En||{},{algorithm:J,token:ie,components:ue,cssVar:xe}=M,je=py(M,["algorithm","token","components","cssVar"]),be=J&&(!Array.isArray(J)||J.length>0)?Zs(J):vf,ge={};Object.entries(ue||{}).forEach(([Ue,Ke])=>{const et=Object.assign({},Ke);"algorithm"in et&&(et.algorithm===!0?et.theme=be:(Array.isArray(et.algorithm)||typeof et.algorithm=="function")&&(et.theme=Zs(et.algorithm)),delete et.algorithm),ge[Ue]=et});const ct=Object.assign(Object.assign({},Ii),ie);return Object.assign(Object.assign({},je),{theme:be,token:ct,components:ge,override:Object.assign({override:ct},ge),cssVar:xe})},[En]);return I&&(ut=R.createElement(bf.Provider,{value:Gc},ut)),Gr.warning&&(ut=R.createElement(nf.Provider,{value:Gr.warning},ut)),x!==void 0&&(ut=R.createElement(m1,{disabled:x},ut)),R.createElement(lr.Provider,{value:Gr},ut)},Ln=e=>{const t=R.useContext(lr),r=R.useContext(af);return R.createElement(by,Object.assign({parentContext:t,legacyLocale:r},e))};Ln.ConfigContext=lr,Ln.SizeContext=Ai,Ln.config=vy,Ln.useConfig=h1,Object.defineProperty(Ln,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ai)}),process.env.NODE_ENV!=="production"&&(Ln.displayName="ConfigProvider");const yy=(e,t,r)=>O.isValidElement(e)?O.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Cy(e,t){return yy(e,e,t)}const qf=e=>{const[,,,,t]=Oi();return t?`${e}-css-var`:""};function Qf(e,t){this.v=e,this.k=t}function gt(e,t,r,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}gt=function(a,u,s,l){function c(d,f){gt(a,d,function(g){return this._invoke(d,f,g)})}u?n?n(a,u,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[u]=s:(c("next",0),c("throw",1),c("return",2))},gt(e,t,r,i)}function $u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},i=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function o(g,h,p,m){var b=h&&h.prototype instanceof u?h:u,y=Object.create(b.prototype);return gt(y,"_invoke",function(I,x,v){var S,E,w,T=0,k=v||[],V=!1,C={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(P,j){return S=P,E=0,w=e,C.n=j,a}};function N(F,P){for(E=F,w=P,t=0;!V&&T&&!j&&t<k.length;t++){var j,B=k[t],U=C.p,Q=B[2];F>3?(j=Q===P)&&(w=B[(E=B[4])?5:(E=3,3)],B[4]=B[5]=e):B[0]<=U&&((j=F<2&&U<B[1])?(E=0,C.v=P,C.n=B[1]):U<Q&&(j=F<3||B[0]>P||P>Q)&&(B[4]=F,B[5]=P,C.n=Q,E=0))}if(j||F>1)return a;throw V=!0,P}return function(F,P,j){if(T>1)throw TypeError("Generator is already running");for(V&&P===1&&N(P,j),E=P,w=j;(t=E<2?e:w)||!V;){S||(E?E<3?(E>1&&(C.n=-1),N(E,w)):C.n=w:C.v=w);try{if(T=2,S){if(E||(F="next"),t=S[F]){if(!(t=t.call(S,w)))throw TypeError("iterator result is not an object");if(!t.done)return t;w=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&(w=TypeError("The iterator does not provide a '"+F+"' method"),E=1);S=e}else if((t=(V=C.n<0)?w:I.call(x,C))!==a)break}catch(B){S=e,E=1,w=B}finally{T=1}}return{value:t,done:V}}}(g,p,m),!0),y}var a={};function u(){}function s(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(gt(t={},i,function(){return this}),t),d=l.prototype=u.prototype=Object.create(c);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,l):(g.__proto__=l,gt(g,n,"GeneratorFunction")),g.prototype=Object.create(d),g}return s.prototype=l,gt(d,"constructor",l),gt(l,"constructor",s),s.displayName="GeneratorFunction",gt(l,n,"GeneratorFunction"),gt(d),gt(d,n,"Generator"),gt(d,i,function(){return this}),gt(d,"toString",function(){return"[object Generator]"}),($u=function(){return{w:o,m:f}})()}function ia(e,t){function r(n,o,a,u){try{var s=e[n](o),l=s.value;return l instanceof Qf?t.resolve(l.v).then(function(c){r("next",c,a,u)},function(c){r("throw",c,a,u)}):t.resolve(l).then(function(c){s.value=c,a(s)},function(c){return r("throw",c,a,u)})}catch(c){u(c)}}var i;this.next||(gt(ia.prototype),gt(ia.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),gt(this,"_invoke",function(n,o,a){function u(){return new t(function(s,l){r(n,a,s,l)})}return i=i?i.then(u,u):u()},!0)}function Kf(e,t,r,i,n){return new ia($u().w(e,t,r,i),n||Promise)}function xy(e,t,r,i,n){var o=Kf(e,t,r,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function Ey(e){var t=Object(e),r=[];for(var i in t)r.unshift(i);return function n(){for(;r.length;)if((i=r.pop())in t)return n.value=i,n.done=!1,n;return n.done=!0,n}}function ep(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(pe(e)+" is not iterable")}function ht(){var e=$u(),t=e.m(ht),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function i(a){var u=typeof a=="function"&&a.constructor;return!!u&&(u===r||(u.displayName||u.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var u,s;return function(l){u||(u={stop:function(){return s(l.a,2)},catch:function(){return l.v},abrupt:function(d,f){return s(l.a,n[d],f)},delegateYield:function(d,f,g){return u.resultName=f,s(l.d,ep(d),g)},finish:function(d){return s(l.f,d)}},s=function(d,f,g){l.p=u.prev,l.n=u.next;try{return d(f,g)}finally{u.next=l.n}}),u.resultName&&(u[u.resultName]=l.v,u.resultName=void 0),u.sent=l.v,u.next=l.n;try{return a.call(this,u)}finally{l.p=u.prev,l.n=u.next}}}return(ht=function(){return{wrap:function(s,l,c,d){return e.w(o(s),l,c,d&&d.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(s,l){return new Qf(s,l)},AsyncIterator:ia,async:function(s,l,c,d,f){return(i(l)?Kf:xy)(o(s),l,c,d,f)},keys:Ey,values:ep}})()}function tp(e,t,r,i,n,o,a){try{var u=e[o](a),s=u.value}catch(l){return void r(l)}u.done?t(s):Promise.resolve(s).then(i,n)}function un(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var o=e.apply(t,r);function a(s){tp(o,i,n,a,u,"next",s)}function u(s){tp(o,i,n,a,u,"throw",s)}a(void 0)})}}var ki=W({},Rs),Iy=ki.version,Du=ki.render,Sy=ki.unmountComponentAtNode,oa;try{var wy=Number((Iy||"").split(".")[0]);wy>=18&&(oa=ki.createRoot)}catch{}function rp(e){var t=ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pe(t)==="object"&&(t.usingClientEntryPoint=e)}var aa="__rc_react_root__";function Ay(e,t){rp(!0);var r=t[aa]||oa(t);rp(!1),r.render(e),t[aa]=r}function Ty(e,t){Du?.(e,t)}function Oy(e,t){if(oa){Ay(e,t);return}Ty(e,t)}function ky(e){return _u.apply(this,arguments)}function _u(){return _u=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.resolve().then(function(){var n;(n=t[aa])===null||n===void 0||n.unmount(),delete t[aa]}));case 1:case"end":return i.stop()}},e)})),_u.apply(this,arguments)}function Py(e){Sy(e)}function Ny(e){return Gu.apply(this,arguments)}function Gu(){return Gu=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(oa===void 0){i.next=2;break}return i.abrupt("return",ky(t));case 2:Py(t);case 3:case"end":return i.stop()}},e)})),Gu.apply(this,arguments)}let Fy=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(R.version.split(".")[0],10),i=Object.keys(Rs);process.env.NODE_ENV!=="production"&&Rn(r<19||i.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return Oy(e,t),()=>Ny(t)};function Ry(e){return Fy}function My(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(i){delete r[i]}),r}const Vy=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,i=t.height;if(r||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1},jy=$1("Wave",e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Hu=`${qo}-wave-target`;function Wu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function Ly(e){const{borderTopColor:t,borderColor:r,backgroundColor:i}=getComputedStyle(e);return Wu(t)?t:Wu(r)?r:Wu(i)?i:null}function zu(e){return Number.isNaN(e)?0:e}const By=e=>{const{className:t,target:r,component:i,registerUnmount:n}=e,o=R.useRef(null),a=R.useRef(null);R.useEffect(()=>{a.current=n()},[]);const[u,s]=R.useState(null),[l,c]=R.useState([]),[d,f]=R.useState(0),[g,h]=R.useState(0),[p,m]=R.useState(0),[b,y]=R.useState(0),[I,x]=R.useState(!1),v={left:d,top:g,width:p,height:b,borderRadius:l.map(w=>`${w}px`).join(" ")};u&&(v["--wave-color"]=u);function S(){const w=getComputedStyle(r);s(Ly(r));const T=w.position==="static",{borderLeftWidth:k,borderTopWidth:V}=w;f(T?r.offsetLeft:zu(-parseFloat(k))),h(T?r.offsetTop:zu(-parseFloat(V))),m(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:C,borderTopRightRadius:N,borderBottomLeftRadius:F,borderBottomRightRadius:P}=w;c([C,N,P,F].map(j=>zu(parseFloat(j))))}if(R.useEffect(()=>{if(r){const w=ar(()=>{S(),x(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(S),T.observe(r)),()=>{ar.cancel(w),T?.disconnect()}}},[]),!I)return null;const E=(i==="Checkbox"||i==="Radio")&&r?.classList.contains(Hu);return R.createElement(Yf,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,T)=>{var k,V;if(T.deadline||T.propertyName==="opacity"){const C=(k=o.current)===null||k===void 0?void 0:k.parentElement;(V=a.current)===null||V===void 0||V.call(a).then(()=>{C?.remove()})}return!1}},({className:w},T)=>R.createElement("div",{ref:Ds(o,T),className:re(t,w,{"wave-quick":E}),style:v}))},$y=(e,t)=>{var r;const{component:i}=t;if(i==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);const o=Ry();let a=null;function u(){return a}a=o(R.createElement(By,Object.assign({},t,{target:e,registerUnmount:u})),n)},Dy=(e,t,r)=>{const{wave:i}=R.useContext(lr),[,n,o]=Oi(),a=Mn(l=>{const c=e.current;if(i?.disabled||!c)return;const d=c.querySelector(`.${Hu}`)||c,{showEffect:f}=i||{};(f||$y)(d,{className:t,token:n,component:r,event:l,hashId:o})}),u=R.useRef(null);return l=>{ar.cancel(u.current),u.current=ar(()=>{a(l)})}},np=e=>{const{children:t,disabled:r,component:i}=e,{getPrefixCls:n}=O.useContext(lr),o=O.useRef(null),a=n("wave"),[,u]=jy(a),s=Dy(o,re(a,u),i);if(O.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||r)return;const d=f=>{!Vy(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(f)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[r]),!O.isValidElement(t))return t??null;const l=sd(t)?Ds(ld(t),o):o;return Cy(t,{ref:l})};process.env.NODE_ENV!=="production"&&(np.displayName="Wave");var ln="RC_FORM_INTERNAL_HOOKS",Le=function(){Ye(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Bn=R.createContext({getFieldValue:Le,getFieldsValue:Le,getFieldError:Le,getFieldWarning:Le,getFieldsError:Le,isFieldsTouched:Le,isFieldTouched:Le,isFieldValidating:Le,isFieldsValidating:Le,resetFields:Le,setFields:Le,setFieldValue:Le,setFieldsValue:Le,validateFields:Le,submit:Le,getInternalHooks:function(){return Le(),{dispatch:Le,initEntityValue:Le,registerField:Le,useSubscribe:Le,setInitialValues:Le,destroyForm:Le,setCallbacks:Le,registerWatch:Le,getFields:Le,setValidateMessages:Le,setPreserve:Le,getInitialValue:Le}}}),sa=R.createContext(null);function Xu(e){return e==null?[]:Array.isArray(e)?e:[e]}function _y(e){return e&&!!e._init}function Uu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Yu=Uu();function Gy(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Hy(e,t,r){if(_s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var n=new(e.bind.apply(e,i));return r&&gi(n,r.prototype),n}function Ju(e){var t=typeof Map=="function"?new Map:void 0;return Ju=function(i){if(i===null||!Gy(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return Hy(i,arguments,hi(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gi(n,i)},Ju(e)}var Wy=/%[sdj%]/g,ip=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(ip=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(i){return typeof i=="string"})&&console.warn(t,r)});function Zu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var i=r.field;t[i]=t[i]||[],t[i].push(r)}),t}function Pt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var n=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(Wy,function(u){if(u==="%%")return"%";if(n>=o)return u;switch(u){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return u}});return a}return e}function zy(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function st(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||zy(t)&&typeof e=="string"&&!e)}function Xy(e,t,r){var i=[],n=0,o=e.length;function a(u){i.push.apply(i,de(u||[])),n++,n===o&&r(i)}e.forEach(function(u){t(u,a)})}function op(e,t,r){var i=0,n=e.length;function o(a){if(a&&a.length){r(a);return}var u=i;i=i+1,u<n?t(e[u],o):r([])}o([])}function Uy(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,de(e[r]||[]))}),t}var ap=function(e){nn(r,e);var t=on(r);function r(i,n){var o;return bt(this,r),o=t.call(this,"Async Validation Error"),H(ve(o),"errors",void 0),H(ve(o),"fields",void 0),o.errors=i,o.fields=n,o}return yt(r)}(Ju(Error));function Yy(e,t,r,i,n){if(t.first){var o=new Promise(function(f,g){var h=function(b){return i(b),b.length?g(new ap(b,Zu(b))):f(n)},p=Uy(e);op(p,r,h)});return o.catch(function(f){return f}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),s=u.length,l=0,c=[],d=new Promise(function(f,g){var h=function(m){if(c.push.apply(c,m),l++,l===s)return i(c),c.length?g(new ap(c,Zu(c))):f(n)};u.length||(i(c),f(n)),u.forEach(function(p){var m=e[p];a.indexOf(p)!==-1?op(m,r,h):Xy(m,r,h)})});return d.catch(function(f){return f}),d}function Jy(e){return!!(e&&e.message!==void 0)}function Zy(e,t){for(var r=e,i=0;i<t.length;i++){if(r==null)return r;r=r[t[i]]}return r}function sp(e,t){return function(r){var i;return e.fullFields?i=Zy(t,e.fullFields):i=t[r.field||e.fullField],Jy(r)?(r.field=r.field||e.fullField,r.fieldValue=i,r):{message:typeof r=="function"?r():r,fieldValue:i,field:r.field||e.fullField}}}function up(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];pe(i)==="object"&&pe(e[r])==="object"?e[r]=W(W({},e[r]),i):e[r]=i}}return e}var $n="enum",qy=function(t,r,i,n,o){t[$n]=Array.isArray(t[$n])?t[$n]:[],t[$n].indexOf(r)===-1&&n.push(Pt(o.messages[$n],t.fullField,t[$n].join(", ")))},Qy=function(t,r,i,n,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Pt(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(Pt(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ky=function(t,r,i,n,o){var a=typeof t.len=="number",u=typeof t.min=="number",s=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,d=null,f=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(f?d="number":g?d="string":h&&(d="array"),!d)return!1;h&&(c=r.length),g&&(c=r.replace(l,"_").length),a?c!==t.len&&n.push(Pt(o.messages[d].len,t.fullField,t.len)):u&&!s&&c<t.min?n.push(Pt(o.messages[d].min,t.fullField,t.min)):s&&!u&&c>t.max?n.push(Pt(o.messages[d].max,t.fullField,t.max)):u&&s&&(c<t.min||c>t.max)&&n.push(Pt(o.messages[d].range,t.fullField,t.min,t.max))},lp=function(t,r,i,n,o,a){t.required&&(!i.hasOwnProperty(t.field)||st(r,a||t.type))&&n.push(Pt(o.messages.required,t.fullField))},ua;const eC=function(){if(ua)return ua;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(r,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(r,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(r,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(r,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(r,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(r,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(r,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(r,"$")),l=new RegExp("^".concat(a,"$")),c=function(S){return S&&S.exact?u:new RegExp("(?:".concat(t(S)).concat(r).concat(t(S),")|(?:").concat(t(S)).concat(a).concat(t(S),")"),"g")};c.v4=function(v){return v&&v.exact?s:new RegExp("".concat(t(v)).concat(r).concat(t(v)),"g")},c.v6=function(v){return v&&v.exact?l:new RegExp("".concat(t(v)).concat(a).concat(t(v)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=c.v4().source,h=c.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",I='(?:[/?#][^\\s"]*)?',x="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(h,"|").concat(p).concat(m).concat(b,")").concat(y).concat(I);return ua=new RegExp("(?:^".concat(x,"$)"),"i"),ua};var cp={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pi={integer:function(t){return Pi.number(t)&&parseInt(t,10)===t},float:function(t){return Pi.number(t)&&!Pi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return pe(t)==="object"&&!Pi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cp.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(eC())},hex:function(t){return typeof t=="string"&&!!t.match(cp.hex)}},tC=function(t,r,i,n,o){if(t.required&&r===void 0){lp(t,r,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;a.indexOf(u)>-1?Pi[u](r)||n.push(Pt(o.messages.types[u],t.fullField,t.type)):u&&pe(r)!==t.type&&n.push(Pt(o.messages.types[u],t.fullField,t.type))},rC=function(t,r,i,n,o){(/^\s+$/.test(r)||r==="")&&n.push(Pt(o.messages.whitespace,t.fullField))};const ye={required:lp,whitespace:rC,type:tC,range:Ky,enum:qy,pattern:Qy};var nC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o)}i(a)},iC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(r==null&&!t.required)return i();ye.required(t,r,n,a,o,"array"),r!=null&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},oC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},aC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"date")&&!t.required)return i();if(ye.required(t,r,n,a,o),!st(r,"date")){var s;r instanceof Date?s=r:s=new Date(r),ye.type(t,s,n,a,o),s&&ye.range(t,s.getTime(),n,a,o)}}i(a)},sC="enum",uC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye[sC](t,r,n,a,o)}i(a)},lC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},cC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},dC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},fC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(r===""&&(r=void 0),st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},pC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},mC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"string")&&!t.required)return i();ye.required(t,r,n,a,o),st(r,"string")||ye.pattern(t,r,n,a,o)}i(a)},gC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),st(r)||ye.type(t,r,n,a,o)}i(a)},hC=function(t,r,i,n,o){var a=[],u=Array.isArray(r)?"array":pe(r);ye.required(t,r,n,a,o,u),i(a)},vC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"string")&&!t.required)return i();ye.required(t,r,n,a,o,"string"),st(r,"string")||(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o),ye.pattern(t,r,n,a,o),t.whitespace===!0&&ye.whitespace(t,r,n,a,o))}i(a)},qu=function(t,r,i,n,o){var a=t.type,u=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(st(r,a)&&!t.required)return i();ye.required(t,r,n,u,o,a),st(r,a)||ye.type(t,r,n,u,o)}i(u)};const Ni={string:vC,method:dC,number:fC,boolean:oC,regexp:gC,integer:cC,float:lC,array:iC,object:pC,enum:uC,pattern:mC,date:aC,url:qu,hex:qu,email:qu,required:hC,any:nC};var Fi=function(){function e(t){bt(this,e),H(this,"rules",null),H(this,"_messages",Yu),this.define(t)}return yt(e,[{key:"define",value:function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(pe(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var o=r[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=up(Uu(),r)),this._messages}},{key:"validate",value:function(r){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,u=n,s=o;if(typeof u=="function"&&(s=u,u={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(h){var p=[],m={};function b(I){if(Array.isArray(I)){var x;p=(x=p).concat.apply(x,de(I))}else p.push(I)}for(var y=0;y<h.length;y++)b(h[y]);p.length?(m=Zu(p),s(p,m)):s(null,a)}if(u.messages){var c=this.messages();c===Yu&&(c=Uu()),up(c,u.messages),u.messages=c}else u.messages=this.messages();var d={},f=u.keys||Object.keys(this.rules);f.forEach(function(h){var p=i.rules[h],m=a[h];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===r&&(a=W({},a)),m=a[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":pe(m)))),typeof y=="function"?y={validator:y}:y=W({},y),y.validator=i.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=i.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:m,source:a,field:h}))})});var g={};return Yy(d,u,function(h,p){var m=h.rule,b=(m.type==="object"||m.type==="array")&&(pe(m.fields)==="object"||pe(m.defaultField)==="object");b=b&&(m.required||!m.required&&h.value),m.field=h.field;function y(E,w){return W(W({},w),{},{fullField:"".concat(m.fullField,".").concat(E),fullFields:m.fullFields?[].concat(de(m.fullFields),[E]):[E]})}function I(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(E)?E:[E];!u.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var T=w.map(sp(m,a));if(u.first&&T.length)return g[m.field]=1,p(T);if(!b)p(T);else{if(m.required&&!h.value)return m.message!==void 0?T=[].concat(m.message).map(sp(m,a)):u.error&&(T=[u.error(m,Pt(u.messages.required,m.field))]),p(T);var k={};m.defaultField&&Object.keys(h.value).map(function(N){k[N]=m.defaultField}),k=W(W({},k),h.rule.fields);var V={};Object.keys(k).forEach(function(N){var F=k[N],P=Array.isArray(F)?F:[F];V[N]=P.map(y.bind(null,N))});var C=new e(V);C.messages(u.messages),h.rule.options&&(h.rule.options.messages=u.messages,h.rule.options.error=u.error),C.validate(h.value,h.rule.options||u,function(N){var F=[];T&&T.length&&F.push.apply(F,de(T)),N&&N.length&&F.push.apply(F,de(N)),p(F.length?F:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,h.value,I,h.source,u);else if(m.validator){try{x=m.validator(m,h.value,I,h.source,u)}catch(E){var v,S;(v=(S=console).error)===null||v===void 0||v.call(S,E),u.suppressValidatorError||setTimeout(function(){throw E},0),I(E.message)}x===!0?I():x===!1?I(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):x instanceof Array?I(x):x instanceof Error&&I(x.message)}x&&x.then&&x.then(function(){return I()},function(E){return I(E)})},function(h){l(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ni.hasOwnProperty(r.type))throw new Error(Pt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Ni.required:Ni[this.getType(r)]||void 0}}]),e}();H(Fi,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ni[t]=r}),H(Fi,"warning",ip),H(Fi,"messages",Yu),H(Fi,"validators",Ni);var Nt="'${name}' is not a valid ${type}",dp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Nt,method:Nt,array:Nt,object:Nt,number:Nt,date:Nt,boolean:Nt,integer:Nt,float:Nt,regexp:Nt,email:Nt,url:Nt,hex:Nt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},fp=Fi;function bC(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var i=r.slice(2,-1);return t[i]})}var pp="CODE_LOGIC_ERROR";function Qu(e,t,r,i,n){return Ku.apply(this,arguments)}function Ku(){return Ku=un(ht().mark(function e(t,r,i,n,o){var a,u,s,l,c,d,f,g,h;return ht().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return a=W({},i),delete a.ruleIndex,fp.warning=function(){},a.validator&&(u=a.validator,a.validator=function(){try{return u.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(pp)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),l=new fp(H({},t,[a])),c=Fn(dp,n.validateMessages),l.messages(c),d=[],m.prev=10,m.next=13,Promise.resolve(l.validate(H({},t,r),W({},n)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(d=m.t0.errors.map(function(b,y){var I=b.message,x=I===pp?c.default:I;return R.isValidElement(x)?R.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!d.length&&s)){m.next=23;break}return m.next=21,Promise.all(r.map(function(b,y){return Qu("".concat(t,".").concat(y),b,s,n,o)}));case 21:return f=m.sent,m.abrupt("return",f.reduce(function(b,y){return[].concat(de(b),de(y))},[]));case 23:return g=W(W({},i),{},{name:t,enum:(i.enum||[]).join(", ")},o),h=d.map(function(b){return typeof b=="string"?bC(b,g):b}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),Ku.apply(this,arguments)}function yC(e,t,r,i,n,o){var a=e.join("."),u=r.map(function(c,d){var f=c.validator,g=W(W({},c),{},{ruleIndex:d});return f&&(g.validator=function(h,p,m){var b=!1,y=function(){for(var v=arguments.length,S=new Array(v),E=0;E<v;E++)S[E]=arguments[E];Promise.resolve().then(function(){Ye(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,S)})},I=f(h,p,y);b=I&&typeof I.then=="function"&&typeof I.catch=="function",Ye(b,"`callback` is deprecated. Please return a promise instead."),b&&I.then(function(){m()}).catch(function(x){m(x||" ")})}),g}).sort(function(c,d){var f=c.warningOnly,g=c.ruleIndex,h=d.warningOnly,p=d.ruleIndex;return!!f==!!h?g-p:f?1:-1}),s;if(n===!0)s=new Promise(function(){var c=un(ht().mark(function d(f,g){var h,p,m;return ht().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<u.length)){y.next=12;break}return p=u[h],y.next=5,Qu(a,t,p,i,o);case 5:if(m=y.sent,!m.length){y.next=9;break}return g([{errors:m,rule:p}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return c.apply(this,arguments)}}());else{var l=u.map(function(c){return Qu(a,t,c,i,o).then(function(d){return{errors:d,rule:c}})});s=(n?xC(l):CC(l)).then(function(c){return Promise.reject(c)})}return s.catch(function(c){return c}),s}function CC(e){return el.apply(this,arguments)}function el(){return el=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(t).then(function(n){var o,a=(o=[]).concat.apply(o,de(n));return a}));case 1:case"end":return i.stop()}},e)})),el.apply(this,arguments)}function xC(e){return tl.apply(this,arguments)}function tl(){return tl=un(ht().mark(function e(t){var r;return ht().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=0,n.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(u){u.errors.length&&o([u]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),tl.apply(this,arguments)}function rt(e){return Xu(e)}function mp(e,t){var r={};return t.forEach(function(i){var n=ur(e,i);r=rr(r,i,n)}),r}function Dn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return gp(t,i,r)})}function gp(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(i,n){return e[n]===i})}function EC(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pe(e)!=="object"||pe(t)!=="object")return!1;var r=Object.keys(e),i=Object.keys(t),n=new Set([].concat(r,i));return de(n).every(function(o){var a=e[o],u=t[o];return typeof a=="function"&&typeof u=="function"?!0:a===u})}function IC(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pe(t.target)==="object"&&e in t.target?t.target[e]:t}function hp(e,t,r){var i=e.length;if(t<0||t>=i||r<0||r>=i)return e;var n=e[t],o=t-r;return o>0?[].concat(de(e.slice(0,r)),[n],de(e.slice(r,t)),de(e.slice(t+1,i))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,r+1)),[n],de(e.slice(r+1,i))):e}var SC=["name"],Gt=[];function rl(e,t,r,i,n,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):i!==n}var nl=function(e){nn(r,e);var t=on(r);function r(i){var n;if(bt(this,r),n=t.call(this,i),H(ve(n),"state",{resetCount:0}),H(ve(n),"cancelRegisterFunc",null),H(ve(n),"mounted",!1),H(ve(n),"touched",!1),H(ve(n),"dirty",!1),H(ve(n),"validatePromise",void 0),H(ve(n),"prevValidating",void 0),H(ve(n),"errors",Gt),H(ve(n),"warnings",Gt),H(ve(n),"cancelRegister",function(){var s=n.props,l=s.preserve,c=s.isListField,d=s.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(c,l,rt(d)),n.cancelRegisterFunc=null}),H(ve(n),"getNamePath",function(){var s=n.props,l=s.name,c=s.fieldContext,d=c.prefixName,f=d===void 0?[]:d;return l!==void 0?[].concat(de(f),de(l)):[]}),H(ve(n),"getRules",function(){var s=n.props,l=s.rules,c=l===void 0?[]:l,d=s.fieldContext;return c.map(function(f){return typeof f=="function"?f(d):f})}),H(ve(n),"refresh",function(){n.mounted&&n.setState(function(s){var l=s.resetCount;return{resetCount:l+1}})}),H(ve(n),"metaCache",null),H(ve(n),"triggerMetaEvent",function(s){var l=n.props.onMetaChange;if(l){var c=W(W({},n.getMeta()),{},{destroy:s});Xs(n.metaCache,c)||l(c),n.metaCache=c}else n.metaCache=null}),H(ve(n),"onStoreChange",function(s,l,c){var d=n.props,f=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,p=d.onReset,m=c.store,b=n.getNamePath(),y=n.getValue(s),I=n.getValue(m),x=l&&Dn(l,b);switch(c.type==="valueUpdate"&&c.source==="external"&&!Xs(y,I)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent()),c.type){case"reset":if(!l||x){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent(),p?.(),n.refresh();return}break;case"remove":{if(f&&rl(f,s,m,y,I,c)){n.reRender();return}break}case"setField":{var v=c.data;if(x){"touched"in v&&(n.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(n.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(n.errors=v.errors||Gt),"warnings"in v&&(n.warnings=v.warnings||Gt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in v&&Dn(l,b,!0)){n.reRender();return}if(f&&!b.length&&rl(f,s,m,y,I,c)){n.reRender();return}break}case"dependenciesUpdate":{var S=h.map(rt);if(S.some(function(E){return Dn(c.relatedFields,E)})){n.reRender();return}break}default:if(x||(!h.length||b.length||f)&&rl(f,s,m,y,I,c)){n.reRender();return}break}f===!0&&n.reRender()}),H(ve(n),"validateRules",function(s){var l=n.getNamePath(),c=n.getValue(),d=s||{},f=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,p=Promise.resolve().then(un(ht().mark(function m(){var b,y,I,x,v,S,E;return ht().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(n.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=n.props,y=b.validateFirst,I=y===void 0?!1:y,x=b.messageVariables,v=b.validateDebounce,S=n.getRules(),f&&(S=S.filter(function(k){return k}).filter(function(k){var V=k.validateTrigger;if(!V)return!0;var C=Xu(V);return C.includes(f)})),!(v&&f)){T.next=10;break}return T.next=8,new Promise(function(k){setTimeout(k,v)});case 8:if(n.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return E=yC(l,c,S,s,I,x),E.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gt;if(n.validatePromise===p){var V;n.validatePromise=null;var C=[],N=[];(V=k.forEach)===null||V===void 0||V.call(k,function(F){var P=F.rule.warningOnly,j=F.errors,B=j===void 0?Gt:j;P?N.push.apply(N,de(B)):C.push.apply(C,de(B))}),n.errors=C,n.warnings=N,n.triggerMetaEvent(),n.reRender()}}),T.abrupt("return",E);case 13:case"end":return T.stop()}},m)})));return h||(n.validatePromise=p,n.dirty=!0,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent(),n.reRender()),p}),H(ve(n),"isFieldValidating",function(){return!!n.validatePromise}),H(ve(n),"isFieldTouched",function(){return n.touched}),H(ve(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var s=n.props.fieldContext,l=s.getInternalHooks(ln),c=l.getInitialValue;return c(n.getNamePath())!==void 0}),H(ve(n),"getErrors",function(){return n.errors}),H(ve(n),"getWarnings",function(){return n.warnings}),H(ve(n),"isListField",function(){return n.props.isListField}),H(ve(n),"isList",function(){return n.props.isList}),H(ve(n),"isPreserve",function(){return n.props.preserve}),H(ve(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var s={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return s}),H(ve(n),"getOnlyChild",function(s){if(typeof s=="function"){var l=n.getMeta();return W(W({},n.getOnlyChild(s(n.getControlled(),l,n.props.fieldContext))),{},{isFunction:!0})}var c=Vs(s);return c.length!==1||!R.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),H(ve(n),"getValue",function(s){var l=n.props.fieldContext.getFieldsValue,c=n.getNamePath();return ur(s||l(!0),c)}),H(ve(n),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=n.props,c=l.name,d=l.trigger,f=l.validateTrigger,g=l.getValueFromEvent,h=l.normalize,p=l.valuePropName,m=l.getValueProps,b=l.fieldContext,y=f!==void 0?f:b.validateTrigger,I=n.getNamePath(),x=b.getInternalHooks,v=b.getFieldsValue,S=x(ln),E=S.dispatch,w=n.getValue(),T=m||function(F){return H({},p,F)},k=s[d],V=c!==void 0?T(w):{};process.env.NODE_ENV!=="production"&&V&&Object.keys(V).forEach(function(F){Ye(typeof V[F]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(F,")"))});var C=W(W({},s),V);C[d]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var F,P=arguments.length,j=new Array(P),B=0;B<P;B++)j[B]=arguments[B];g?F=g.apply(void 0,j):F=IC.apply(void 0,[p].concat(j)),h&&(F=h(F,w,v(!0))),F!==w&&E({type:"updateValue",namePath:I,value:F}),k&&k.apply(void 0,j)};var N=Xu(y||[]);return N.forEach(function(F){var P=C[F];C[F]=function(){P&&P.apply(void 0,arguments);var j=n.props.rules;j&&j.length&&E({type:"validateField",namePath:I,triggerName:F})}}),C}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(ln),u=a.initEntityValue;u(ve(n))}return n}return yt(r,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var u=a.getInternalHooks,s=u(ln),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),u=a.child,s=a.isFunction,l;return s?l=u:R.isValidElement(u)?l=R.cloneElement(u,this.getControlled(u.props)):(Ye(!u,"`children` of Field is not validate ReactElement."),l=u),R.createElement(R.Fragment,{key:n},l)}}]),r}(R.Component);H(nl,"contextType",Bn),H(nl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function vp(e){var t,r=e.name,i=dt(e,SC),n=R.useContext(Bn),o=R.useContext(sa),a=r!==void 0?rt(r):void 0,u=(t=i.isListField)!==null&&t!==void 0?t:!!o,s="keep";return u||(s="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&u&&a.length<=1&&Ye(!1,"`preserve` should not apply on Form.List fields."),R.createElement(nl,se({key:s,name:a,isListField:u},i,{fieldContext:n}))}function wC(e){var t=e.name,r=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,u=R.useContext(Bn),s=R.useContext(sa),l=R.useRef({keys:[],id:0}),c=l.current,d=R.useMemo(function(){var p=rt(u.prefixName)||[];return[].concat(de(p),de(rt(t)))},[u.prefixName,t]),f=R.useMemo(function(){return W(W({},u),{},{prefixName:d})},[u,d]),g=R.useMemo(function(){return{getKey:function(m){var b=d.length,y=m[b];return[c.keys[y],m.slice(b+1)]}}},[d]);if(typeof i!="function")return Ye(!1,"Form.List only accepts function as children."),null;var h=function(m,b,y){var I=y.source;return I==="internal"?!1:m!==b};return R.createElement(sa.Provider,{value:g},R.createElement(Bn.Provider,{value:f},R.createElement(vp,{name:[],shouldUpdate:h,rules:n,validateTrigger:o,initialValue:r,isList:!0,isListField:a??!!s},function(p,m){var b=p.value,y=b===void 0?[]:b,I=p.onChange,x=u.getFieldValue,v=function(){var T=x(d||[]);return T||[]},S={add:function(T,k){var V=v();k>=0&&k<=V.length?(c.keys=[].concat(de(c.keys.slice(0,k)),[c.id],de(c.keys.slice(k))),I([].concat(de(V.slice(0,k)),[T],de(V.slice(k))))):(process.env.NODE_ENV!=="production"&&(k<0||k>V.length)&&Ye(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(de(c.keys),[c.id]),I([].concat(de(V),[T]))),c.id+=1},remove:function(T){var k=v(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(C,N){return!V.has(N)}),I(k.filter(function(C,N){return!V.has(N)})))},move:function(T,k){if(T!==k){var V=v();T<0||T>=V.length||k<0||k>=V.length||(c.keys=hp(c.keys,T,k),I(hp(V,T,k)))}}},E=y||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&Ye(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),i(E.map(function(w,T){var k=c.keys[T];return k===void 0&&(c.keys[T]=c.id,k=c.keys[T],c.id+=1),{name:T,key:k,isListField:!0}}),S,m)})))}function AC(e){var t=!1,r=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,u){a.catch(function(s){return t=!0,s}).then(function(s){r-=1,i[u]=s,!(r>0)&&(t&&o(i),n(i))})})}):Promise.resolve([])}var bp="__@field_split__";function il(e){return e.map(function(t){return"".concat(pe(t),":").concat(t)}).join(bp)}var _n=function(){function e(){bt(this,e),H(this,"kvs",new Map)}return yt(e,[{key:"set",value:function(r,i){this.kvs.set(il(r),i)}},{key:"get",value:function(r){return this.kvs.get(il(r))}},{key:"update",value:function(r,i){var n=this.get(r),o=i(n);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(il(r))}},{key:"map",value:function(r){return de(this.kvs.entries()).map(function(i){var n=fe(i,2),o=n[0],a=n[1],u=o.split(bp);return r({key:u.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=fe(l,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(i){var n=i.key,o=i.value;return r[n.join(".")]=o,null}),r}}]),e}(),TC=["name"],OC=yt(function e(t){var r=this;bt(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),H(this,"getInternalHooks",function(i){return i===ln?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ye(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(i){r.subscribable=i}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(i,n){if(r.initialValues=i||{},n){var o,a=Fn(i,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var s=u.key;a=rr(a,s,ur(i,s))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),H(this,"destroyForm",function(i){if(i)r.updateStore({});else{var n=new _n;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),H(this,"getInitialValue",function(i){var n=ur(r.initialValues,i);return i.length?Fn(n):n}),H(this,"setCallbacks",function(i){r.callbacks=i}),H(this,"setValidateMessages",function(i){r.validateMessages=i}),H(this,"setPreserve",function(i){r.preserve=i}),H(this,"watchList",[]),H(this,"registerWatch",function(i){return r.watchList.push(i),function(){r.watchList=r.watchList.filter(function(n){return n!==i})}}),H(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var n=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(n,o,i)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||Ye(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),H(this,"updateStore",function(i){r.store=i}),H(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?r.fieldEntities.filter(function(n){return n.getNamePath().length}):r.fieldEntities}),H(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new _n;return r.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),H(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return r.getFieldEntities(!0);var n=r.getFieldsMap(!0);return i.map(function(o){var a=rt(o);return n.get(a)||{INVALIDATE_NAME_PATH:rt(o)}})}),H(this,"getFieldsValue",function(i,n){r.warningUnhooked();var o,a,u;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&pe(i)==="object"&&(u=i.strict,a=i.filter),o===!0&&!a)return r.store;var s=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return s.forEach(function(c){var d,f,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(u){var h,p;if((h=(p=c).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(d=(f=c).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)l.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&l.push(g)}}),mp(r.store,l.map(rt))}),H(this,"getFieldValue",function(i){r.warningUnhooked();var n=rt(i);return ur(r.store,n)}),H(this,"getFieldsError",function(i){r.warningUnhooked();var n=r.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:rt(i[a]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(i){r.warningUnhooked();var n=rt(i),o=r.getFieldsError([n])[0];return o.errors}),H(this,"getFieldWarning",function(i){r.warningUnhooked();var n=rt(i),o=r.getFieldsError([n])[0];return o.warnings}),H(this,"isFieldsTouched",function(){r.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],u=n[1],s,l=!1;n.length===0?s=null:n.length===1?Array.isArray(a)?(s=a.map(rt),l=!1):(s=null,l=a):(s=a.map(rt),l=u);var c=r.getFieldEntities(!0),d=function(m){return m.isFieldTouched()};if(!s)return l?c.every(function(p){return d(p)||p.isList()}):c.some(d);var f=new _n;s.forEach(function(p){f.set(p,[])}),c.forEach(function(p){var m=p.getNamePath();s.forEach(function(b){b.every(function(y,I){return m[I]===y})&&f.update(b,function(y){return[].concat(de(y),[p])})})});var g=function(m){return m.some(d)},h=f.map(function(p){var m=p.value;return m});return l?h.every(g):h.some(g)}),H(this,"isFieldTouched",function(i){return r.warningUnhooked(),r.isFieldsTouched([i])}),H(this,"isFieldsValidating",function(i){r.warningUnhooked();var n=r.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(rt);return n.some(function(a){var u=a.getNamePath();return Dn(o,u)&&a.isFieldValidating()})}),H(this,"isFieldValidating",function(i){return r.warningUnhooked(),r.isFieldsValidating([i])}),H(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new _n,o=r.getFieldEntities(!0);o.forEach(function(s){var l=s.props.initialValue,c=s.getNamePath();if(l!==void 0){var d=n.get(c)||new Set;d.add({entity:s,value:l}),n.set(c,d)}});var a=function(l){l.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)Ye(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=n.get(f);if(h&&h.size>1)Ye(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(f),m=c.isListField();!m&&(!i.skipExist||p===void 0)&&r.updateStore(rr(r.store,f,de(h)[0].value))}}}})},u;i.entities?u=i.entities:i.namePathList?(u=[],i.namePathList.forEach(function(s){var l=n.get(s);if(l){var c;(c=u).push.apply(c,de(de(l).map(function(d){return d.entity})))}})):u=o,a(u)}),H(this,"resetFields",function(i){r.warningUnhooked();var n=r.store;if(!i){r.updateStore(Fn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(n,null,{type:"reset"}),r.notifyWatch();return}var o=i.map(rt);o.forEach(function(a){var u=r.getInitialValue(a);r.updateStore(rr(r.store,a,u))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(n,o,{type:"reset"}),r.notifyWatch(o)}),H(this,"setFields",function(i){r.warningUnhooked();var n=r.store,o=[];i.forEach(function(a){var u=a.name,s=dt(a,TC),l=rt(u);o.push(l),"value"in s&&r.updateStore(rr(r.store,l,s.value)),r.notifyObservers(n,[l],{type:"setField",data:a})}),r.notifyWatch(o)}),H(this,"getFields",function(){var i=r.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),u=o.getMeta(),s=W(W({},u),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return n}),H(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=ur(r.store,o);a===void 0&&r.updateStore(rr(r.store,o,n))}}),H(this,"isMergedPreserve",function(i){var n=i!==void 0?i:r.preserve;return n??!0}),H(this,"registerField",function(i){r.fieldEntities.push(i);var n=i.getNamePath();if(r.notifyWatch([n]),i.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[i],skipExist:!0}),r.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,u){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==i}),!r.isMergedPreserve(u)&&(!a||s.length>1)){var l=a?void 0:r.getInitialValue(n);if(n.length&&r.getFieldValue(n)!==l&&r.fieldEntities.every(function(d){return!gp(d.getNamePath(),n)})){var c=r.store;r.updateStore(rr(c,n,l,!0)),r.notifyObservers(c,[n],{type:"remove"}),r.triggerDependenciesUpdate(c,n)}}r.notifyWatch([n])}}),H(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;r.updateValue(n,o);break}case"validateField":{var a=i.namePath,u=i.triggerName;r.validateFields([a],{triggerName:u});break}}}),H(this,"notifyObservers",function(i,n,o){if(r.subscribable){var a=W(W({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var s=u.onStoreChange;s(i,n,a)})}else r.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(i,n){var o=r.getDependencyChildrenFields(n);return o.length&&r.validateFields(o),r.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(de(o))}),o}),H(this,"updateValue",function(i,n){var o=rt(i),a=r.store;r.updateStore(rr(r.store,o,n)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var u=r.triggerDependenciesUpdate(a,o),s=r.callbacks.onValuesChange;if(s){var l=mp(r.store,[o]);s(l,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(de(u)))}),H(this,"setFieldsValue",function(i){r.warningUnhooked();var n=r.store;if(i){var o=Fn(r.store,i);r.updateStore(o)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),H(this,"setFieldValue",function(i,n){r.setFields([{name:i,value:n,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new _n;r.getFieldEntities().forEach(function(s){var l=s.props.dependencies;(l||[]).forEach(function(c){var d=rt(c);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(s),f})})});var u=function s(l){var c=a.get(l)||new Set;c.forEach(function(d){if(!n.has(d)){n.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),s(f))}})};return u(i),o}),H(this,"triggerOnFieldsChange",function(i,n){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(n){var u=new _n;n.forEach(function(l){var c=l.name,d=l.errors;u.set(c,d)}),a.forEach(function(l){l.errors=u.get(l.name)||l.errors})}var s=a.filter(function(l){var c=l.name;return Dn(i,c)});s.length&&o(s,a)}}),H(this,"validateFields",function(i,n){r.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var u=!!o,s=u?o.map(rt):[],l=[],c=String(Date.now()),d=new Set,f=a||{},g=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(u||s.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var I=y.getNamePath();if(d.add(I.join(c)),!u||Dn(s,I,g)){var x=y.validateRules(W({validateMessages:W(W({},dp),r.validateMessages)},a));l.push(x.then(function(){return{name:I,errors:[],warnings:[]}}).catch(function(v){var S,E=[],w=[];return(S=v.forEach)===null||S===void 0||S.call(v,function(T){var k=T.rule.warningOnly,V=T.errors;k?w.push.apply(w,de(V)):E.push.apply(E,de(V))}),E.length?Promise.reject({name:I,errors:E,warnings:w}):{name:I,errors:E,warnings:w}}))}}});var p=AC(l);r.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var I=y.map(function(x){var v=x.name;return v});r.notifyObservers(r.store,I,{type:"validateFinish"}),r.triggerOnFieldsChange(I,y)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(s)):Promise.reject([])}).catch(function(y){var I=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(s),errorFields:I,outOfDate:r.lastValidatePromise!==p})});m.catch(function(y){return y});var b=s.filter(function(y){return d.has(y.join(c))});return r.triggerOnFieldsChange(b),m}),H(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(i){var n=r.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=r.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=t});function yp(e){var t=R.useRef(),r=R.useState({}),i=fe(r,2),n=i[1];if(!t.current)if(e)t.current=e;else{var o=function(){n({})},a=new OC(o);t.current=a.getForm()}return[t.current]}var ol=R.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),kC=function(t){var r=t.validateMessages,i=t.onFormChange,n=t.onFormFinish,o=t.children,a=R.useContext(ol),u=R.useRef({});return R.createElement(ol.Provider,{value:W(W({},a),{},{validateMessages:W(W({},a.validateMessages),r),triggerFormChange:function(l,c){i&&i(l,{changedFields:c,forms:u.current}),a.triggerFormChange(l,c)},triggerFormFinish:function(l,c){n&&n(l,{values:c,forms:u.current}),a.triggerFormFinish(l,c)},registerForm:function(l,c){l&&(u.current=W(W({},u.current),{},H({},l,c))),a.registerForm(l,c)},unregisterForm:function(l){var c=W({},u.current);delete c[l],u.current=c,a.unregisterForm(l)}})},o)},PC=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],NC=function(t,r){var i=t.name,n=t.initialValues,o=t.fields,a=t.form,u=t.preserve,s=t.children,l=t.component,c=l===void 0?"form":l,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,h=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,I=dt(t,PC),x=R.useRef(null),v=R.useContext(ol),S=yp(a),E=fe(S,1),w=E[0],T=w.getInternalHooks(ln),k=T.useSubscribe,V=T.setInitialValues,C=T.setCallbacks,N=T.setValidateMessages,F=T.setPreserve,P=T.destroyForm;R.useImperativeHandle(r,function(){return W(W({},w),{},{nativeElement:x.current})}),R.useEffect(function(){return v.registerForm(i,w),function(){v.unregisterForm(i)}},[v,w,i]),N(W(W({},v.validateMessages),d)),C({onValuesChange:h,onFieldsChange:function(X){if(v.triggerFormChange(i,X),p){for(var K=arguments.length,ee=new Array(K>1?K-1:0),D=1;D<K;D++)ee[D-1]=arguments[D];p.apply(void 0,[X].concat(ee))}},onFinish:function(X){v.triggerFormFinish(i,X),m&&m(X)},onFinishFailed:b}),F(u);var j=R.useRef(null);V(n,!j.current),j.current||(j.current=!0),R.useEffect(function(){return function(){return P(y)}},[]);var B,U=typeof s=="function";if(U){var Q=w.getFieldsValue(!0);B=s(Q,w)}else B=s;k(!U);var $=R.useRef();R.useEffect(function(){EC($.current||[],o||[])||w.setFields(o||[]),$.current=o},[o,w]);var L=R.useMemo(function(){return W(W({},w),{},{validateTrigger:g})},[w,g]),G=R.createElement(sa.Provider,{value:null},R.createElement(Bn.Provider,{value:L},B));return c===!1?G:R.createElement(c,se({},I,{ref:x,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),w.submit()},onReset:function(X){var K;X.preventDefault(),w.resetFields(),(K=I.onReset)===null||K===void 0||K.call(I,X)}}),G)};function Cp(e){try{return JSON.stringify(e)}catch{return Math.random()}}var FC=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=O.useRef(t);Ye(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function RC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],n=t[1],o=n===void 0?{}:n,a=_y(o)?{form:o}:o,u=a.form,s=O.useState(),l=fe(s,2),c=l[0],d=l[1],f=O.useMemo(function(){return Cp(c)},[c]),g=O.useRef(f);g.current=f;var h=O.useContext(Bn),p=u||h,m=p&&p._init;process.env.NODE_ENV!=="production"&&Ye(t.length===2?u?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var b=rt(i),y=O.useRef(b);return y.current=b,FC(b),O.useEffect(function(){if(m){var I=p.getFieldsValue,x=p.getInternalHooks,v=x(ln),S=v.registerWatch,E=function(V,C){var N=a.preserve?C:V;return typeof i=="function"?i(N):ur(N,y.current)},w=S(function(k,V){var C=E(k,V),N=Cp(C);g.current!==N&&(g.current=N,d(C))}),T=E(I(),I(!0));return c!==T&&d(T),w}},[m]),c}var MC=R.forwardRef(NC),Ri=MC;Ri.FormProvider=kC,Ri.Field=vp,Ri.List=wC,Ri.useForm=yp,Ri.useWatch=RC;const xp=R.createContext({});process.env.NODE_ENV!=="production"&&(xp.displayName="FormItemInputContext");var VC=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],jC=O.forwardRef(function(e,t){var r=e.prefixCls,i=r===void 0?"rc-checkbox":r,n=e.className,o=e.style,a=e.checked,u=e.disabled,s=e.defaultChecked,l=s===void 0?!1:s,c=e.type,d=c===void 0?"checkbox":c,f=e.title,g=e.onChange,h=dt(e,VC),p=O.useRef(null),m=O.useRef(null),b=x1(l,{value:a}),y=fe(b,2),I=y[0],x=y[1];O.useImperativeHandle(t,function(){return{focus:function(w){var T;(T=p.current)===null||T===void 0||T.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:m.current}});var v=re(i,n,H(H({},"".concat(i,"-checked"),I),"".concat(i,"-disabled"),u)),S=function(w){u||("checked"in e||x(w.target.checked),g?.({target:W(W({},e),{},{type:d,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return R.createElement("span",{className:v,title:f,style:o,ref:m},R.createElement("input",se({},h,{className:"".concat(i,"-input"),ref:p,onChange:S,disabled:u,checked:!!I,type:d})),R.createElement("span",{className:"".concat(i,"-inner")}))});function LC(e){const t=O.useRef(null),r=()=>{ar.cancel(t.current),t.current=null};return[()=>{r(),t.current=ar(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),r()),e?.(o)}]}const BC=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Pu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Pu(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Pu(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:L1(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ci(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ci(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
109
+ ${r}:not(${r}-disabled),
110
+ ${t}:not(${t}-disabled)
111
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
112
+ ${r}-checked:not(${r}-disabled),
113
+ ${t}-checked:not(${t}-disabled)
114
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function $C(e,t){const r=Ou(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return BC(r)}const Ep=B1("Checkbox",(e,{prefixCls:t})=>[$C(t,e)]),Ip=O.createContext(null);var DC=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const _C=(e,t)=>{var r;const{prefixCls:i,className:n,rootClassName:o,children:a,indeterminate:u=!1,style:s,onMouseEnter:l,onMouseLeave:c,skipGroup:d=!1,disabled:f}=e,g=DC(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:p,checkbox:m}=R.useContext(lr),b=R.useContext(Ip),{isFormItemInput:y}=R.useContext(xp),I=R.useContext(Qo),x=(r=b?.disabled||f)!==null&&r!==void 0?r:I,v=R.useRef(g.value),S=R.useRef(null),E=Ds(t,S);if(process.env.NODE_ENV!=="production"){const U=Ei("Checkbox");process.env.NODE_ENV!=="production"&&U("checked"in g||!!b||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}R.useEffect(()=>{b?.registerValue(g.value)},[]),R.useEffect(()=>{if(!d)return g.value!==v.current&&(b?.cancelValue(v.current),b?.registerValue(g.value),v.current=g.value),()=>b?.cancelValue(g.value)},[g.value]),R.useEffect(()=>{var U;!((U=S.current)===null||U===void 0)&&U.input&&(S.current.input.indeterminate=u)},[u]);const w=h("checkbox",i),T=qf(w),[k,V,C]=Ep(w,T),N=Object.assign({},g);b&&!d&&(N.onChange=(...U)=>{g.onChange&&g.onChange.apply(g,U),b.toggleOption&&b.toggleOption({label:a,value:g.value})},N.name=b.name,N.checked=b.value.includes(g.value));const F=re(`${w}-wrapper`,{[`${w}-rtl`]:p==="rtl",[`${w}-wrapper-checked`]:N.checked,[`${w}-wrapper-disabled`]:x,[`${w}-wrapper-in-form-item`]:y},m?.className,n,o,C,T,V),P=re({[`${w}-indeterminate`]:u},Hu,V),[j,B]=LC(N.onClick);return k(R.createElement(np,{component:"Checkbox",disabled:x},R.createElement("label",{className:F,style:Object.assign(Object.assign({},m?.style),s),onMouseEnter:l,onMouseLeave:c,onClick:j},R.createElement(jC,Object.assign({},N,{onClick:B,prefixCls:w,className:P,disabled:x,ref:E})),a!=null&&R.createElement("span",{className:`${w}-label`},a))))},al=R.forwardRef(_C);process.env.NODE_ENV!=="production"&&(al.displayName="Checkbox");var GC=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const HC=R.forwardRef((e,t)=>{const{defaultValue:r,children:i,options:n=[],prefixCls:o,className:a,rootClassName:u,style:s,onChange:l}=e,c=GC(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=R.useContext(lr),[g,h]=R.useState(c.value||r||[]),[p,m]=R.useState([]);R.useEffect(()=>{"value"in c&&h(c.value||[])},[c.value]);const b=R.useMemo(()=>n.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[n]),y=P=>{m(j=>j.filter(B=>B!==P))},I=P=>{m(j=>[].concat(de(j),[P]))},x=P=>{const j=g.indexOf(P.value),B=de(g);j===-1?B.push(P.value):B.splice(j,1),"value"in c||h(B),l?.(B.filter(U=>p.includes(U)).sort((U,Q)=>{const $=b.findIndex(G=>G.value===U),L=b.findIndex(G=>G.value===Q);return $-L}))},v=d("checkbox",o),S=`${v}-group`,E=qf(v),[w,T,k]=Ep(v,E),V=My(c,["value","disabled"]),C=n.length?b.map(P=>R.createElement(al,{prefixCls:v,key:P.value.toString(),disabled:"disabled"in P?P.disabled:c.disabled,value:P.value,checked:g.includes(P.value),onChange:P.onChange,className:re(`${S}-item`,P.className),style:P.style,title:P.title,id:P.id,required:P.required},P.label)):i,N=R.useMemo(()=>({toggleOption:x,value:g,disabled:c.disabled,name:c.name,registerValue:I,cancelValue:y}),[x,g,c.disabled,c.name,I,y]),F=re(S,{[`${S}-rtl`]:f==="rtl"},a,u,k,E,T);return w(R.createElement("div",Object.assign({className:F,style:s},V,{ref:t}),R.createElement(Ip.Provider,{value:N},C)))}),la=al;la.Group=HC,la.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(la.displayName="Checkbox");const Sp=O.forwardRef(({id:e,label:t,checked:r,isChecked:i,onChange:n,disabled:o=!1,required:a=!1,message:u,messageType:s="default",wrapperClassName:l,checkboxClassName:c,labelClassName:d,size:f="medium",variant:g="default",labelPosition:h="right",checkboxProps:p},m)=>{const b=r!==void 0?r:i||!1,y=()=>{switch(f){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},I=()=>{if(s==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(s==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(s==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(g){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},x=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",v=()=>{switch(f){case"small":return"extra-small";case"large":return"medium";default:return"small"}},S=T=>{n(T.target.checked,T)},E=A.jsx(la,{...p,ref:m,id:e,checked:b,onChange:S,disabled:o,className:re("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",y(),I(),o&&"opacity-50 cursor-not-allowed",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u?`${e}-message`:void 0}),w=t?A.jsx("label",{htmlFor:e,className:re("font-medium cursor-pointer transition-colors duration-200",o?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",h==="right"?"ml-2":"mr-2",d),children:A.jsxs(Ce,{variant:"medium",size:v(),appearance:"body",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return A.jsxs("div",{className:re("flex flex-col",l),children:[A.jsx("div",{className:re("flex items-center",h==="left"&&"flex-row-reverse justify-end"),children:h==="left"?A.jsxs(A.Fragment,{children:[E,w]}):A.jsxs(A.Fragment,{children:[E,w]})}),A.jsx(He.AnimatePresence,{children:u&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:s==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",x()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})})]})});Sp.displayName="Checkbox";const wp=O.forwardRef(({id:e,label:t,value:r,defaultValue:i="#000000",onChange:n,onColorChange:o,disabled:a=!1,required:u=!1,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,size:g="medium",showValue:h=!1,valueFormat:p="hex",inputProps:m,helpText:b},y)=>{const I=r!==void 0?r:i,x=()=>{switch(g){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},v=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",S=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",E=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},w=C=>{const N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(C);if(!N)return C;const F=parseInt(N[1],16),P=parseInt(N[2],16),j=parseInt(N[3],16);return`rgb(${F}, ${P}, ${j})`},T=C=>{const N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(C);if(!N)return C;const F=parseInt(N[1],16)/255,P=parseInt(N[2],16)/255,j=parseInt(N[3],16)/255,B=Math.max(F,P,j),U=Math.min(F,P,j);let Q=0,$=0;const L=(B+U)/2;if(B!==U){const G=B-U;switch($=L>.5?G/(2-B-U):G/(B+U),B){case F:Q=(P-j)/G+(P<j?6:0);break;case P:Q=(j-F)/G+2;break;case j:Q=(F-P)/G+4;break}Q/=6}return`hsl(${Math.round(Q*360)}, ${Math.round($*100)}%, ${Math.round(L*100)}%)`},k=()=>{switch(p){case"rgb":return w(I);case"hsl":return T(I);default:return I.toUpperCase()}},V=C=>{const N=C.target.value;n(N,C),o?.(N)};return A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:E(),appearance:"subtitle",children:[t,u&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),b&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:b}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"relative",children:A.jsx("input",{...m,ref:y,type:"color",id:e,value:I,onChange:V,disabled:a,required:u,className:re("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",x(),S(),a&&"opacity-50 cursor-not-allowed",d),style:{backgroundColor:I},"aria-required":u,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||b?`${e}-description`:void 0})}),h&&A.jsx("div",{className:"flex-1",children:A.jsx(Ce,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:k()})})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",v()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),b&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:b})]})});wp.displayName="ColorPicker";function WC(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zC(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var XC=function(){function e(r){var i=this;this._insertTag=function(n){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,o),i.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zC(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=WC(n);try{o.insertRule(i,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var n;return(n=i.parentNode)==null?void 0:n.removeChild(i)}),this.tags=[],this.ctr=0},e}(),vt="-ms-",ca="-moz-",Se="-webkit-",Ap="comm",sl="rule",ul="decl",UC="@import",Tp="@keyframes",YC="@layer",JC=Math.abs,da=String.fromCharCode,ZC=Object.assign;function qC(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Op(e){return e.trim()}function QC(e,t){return(e=t.exec(e))?e[0]:e}function we(e,t,r){return e.replace(t,r)}function ll(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function Mi(e,t,r){return e.slice(t,r)}function cr(e){return e.length}function cl(e){return e.length}function fa(e,t){return t.push(e),e}function KC(e,t){return e.map(t).join("")}var pa=1,Gn=1,kp=0,Et=0,at=0,Hn="";function ma(e,t,r,i,n,o,a){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:pa,column:Gn,length:a,return:""}}function Vi(e,t){return ZC(ma("",null,null,"",null,null,0),e,{length:-e.length},t)}function ex(){return at}function tx(){return at=Et>0?ft(Hn,--Et):0,Gn--,at===10&&(Gn=1,pa--),at}function Ft(){return at=Et<kp?ft(Hn,Et++):0,Gn++,at===10&&(Gn=1,pa++),at}function dr(){return ft(Hn,Et)}function ga(){return Et}function ji(e,t){return Mi(Hn,e,t)}function Li(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pp(e){return pa=Gn=1,kp=cr(Hn=e),Et=0,[]}function Np(e){return Hn="",e}function ha(e){return Op(ji(Et-1,dl(e===91?e+2:e===40?e+1:e)))}function rx(e){for(;(at=dr())&&at<33;)Ft();return Li(e)>2||Li(at)>3?"":" "}function nx(e,t){for(;--t&&Ft()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return ji(e,ga()+(t<6&&dr()==32&&Ft()==32))}function dl(e){for(;Ft();)switch(at){case e:return Et;case 34:case 39:e!==34&&e!==39&&dl(at);break;case 40:e===41&&dl(e);break;case 92:Ft();break}return Et}function ix(e,t){for(;Ft()&&e+at!==57;)if(e+at===84&&dr()===47)break;return"/*"+ji(t,Et-1)+"*"+da(e===47?e:Ft())}function ox(e){for(;!Li(dr());)Ft();return ji(e,Et)}function ax(e){return Np(va("",null,null,null,[""],e=Pp(e),0,[0],e))}function va(e,t,r,i,n,o,a,u,s){for(var l=0,c=0,d=a,f=0,g=0,h=0,p=1,m=1,b=1,y=0,I="",x=n,v=o,S=i,E=I;m;)switch(h=y,y=Ft()){case 40:if(h!=108&&ft(E,d-1)==58){ll(E+=we(ha(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=ha(y);break;case 9:case 10:case 13:case 32:E+=rx(h);break;case 92:E+=nx(ga()-1,7);continue;case 47:switch(dr()){case 42:case 47:fa(sx(ix(Ft(),ga()),t,r),s);break;default:E+="/"}break;case 123*p:u[l++]=cr(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:b==-1&&(E=we(E,/\f/g,"")),g>0&&cr(E)-d&&fa(g>32?Rp(E+";",i,r,d-1):Rp(we(E," ","")+";",i,r,d-2),s);break;case 59:E+=";";default:if(fa(S=Fp(E,t,r,l,c,n,u,I,x=[],v=[],d),o),y===123)if(c===0)va(E,t,S,S,x,o,d,u,v);else switch(f===99&&ft(E,3)===110?100:f){case 100:case 108:case 109:case 115:va(e,S,S,i&&fa(Fp(e,S,S,0,0,n,u,I,n,x=[],d),v),n,v,d,u,i?x:v);break;default:va(E,S,S,S,[""],v,0,u,v)}}l=c=g=0,p=b=1,I=E="",d=a;break;case 58:d=1+cr(E),g=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&tx()==125)continue}switch(E+=da(y),y*p){case 38:b=c>0?1:(E+="\f",-1);break;case 44:u[l++]=(cr(E)-1)*b,b=1;break;case 64:dr()===45&&(E+=ha(Ft())),f=dr(),c=d=cr(I=E+=ox(ga())),y++;break;case 45:h===45&&cr(E)==2&&(p=0)}}return o}function Fp(e,t,r,i,n,o,a,u,s,l,c){for(var d=n-1,f=n===0?o:[""],g=cl(f),h=0,p=0,m=0;h<i;++h)for(var b=0,y=Mi(e,d+1,d=JC(p=a[h])),I=e;b<g;++b)(I=Op(p>0?f[b]+" "+y:we(y,/&\f/g,f[b])))&&(s[m++]=I);return ma(e,t,r,n===0?sl:u,s,l,c)}function sx(e,t,r){return ma(e,t,r,Ap,da(ex()),Mi(e,2,-2),0)}function Rp(e,t,r,i){return ma(e,t,r,ul,Mi(e,0,i),Mi(e,i+1,-1),i)}function Wn(e,t){for(var r="",i=cl(e),n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function ux(e,t,r,i){switch(e.type){case YC:if(e.children.length)break;case UC:case ul:return e.return=e.return||e.value;case Ap:return"";case Tp:return e.return=e.value+"{"+Wn(e.children,i)+"}";case sl:e.value=e.props.join(",")}return cr(r=Wn(e.children,i))?e.return=e.value+"{"+r+"}":""}function lx(e){var t=cl(e);return function(r,i,n,o){for(var a="",u=0;u<t;u++)a+=e[u](r,i,n,o)||"";return a}}function cx(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dx=function(t,r,i){for(var n=0,o=0;n=o,o=dr(),n===38&&o===12&&(r[i]=1),!Li(o);)Ft();return ji(t,Et)},fx=function(t,r){var i=-1,n=44;do switch(Li(n)){case 0:n===38&&dr()===12&&(r[i]=1),t[i]+=dx(Et-1,r,i);break;case 2:t[i]+=ha(n);break;case 4:if(n===44){t[++i]=dr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=da(n)}while(n=Ft());return t},px=function(t,r){return Np(fx(Pp(t),r))},Vp=new WeakMap,mx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,n=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Vp.get(i))&&!n){Vp.set(t,!0);for(var o=[],a=px(r,o),u=i.props,s=0,l=0;s<a.length;s++)for(var c=0;c<u.length;c++,l++)t.props[l]=o[s]?a[s].replace(/&\f/g,u[c]):u[c]+" "+a[s]}}},gx=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function jp(e,t){switch(qC(e,t)){case 5103:return Se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+ca+e+vt+e+e;case 6828:case 4268:return Se+e+vt+e+e;case 6165:return Se+e+vt+"flex-"+e+e;case 5187:return Se+e+we(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return Se+e+vt+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return Se+e+vt+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+vt+we(e,"shrink","negative")+e;case 5292:return Se+e+vt+we(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+we(e,"-grow","")+Se+e+vt+we(e,"grow","positive")+e;case 4554:return Se+we(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,Se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cr(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+ca+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ll(e,"stretch")?jp(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,cr(e)-3-(~ll(e,"!important")&&10))){case 107:return we(e,":",":"+Se)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(ft(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+vt+e+e}return e}var hx=function(t,r,i,n){if(t.length>-1&&!t.return)switch(t.type){case ul:t.return=jp(t.value,t.length);break;case Tp:return Wn([Vi(t,{value:we(t.value,"@","@"+Se)})],n);case sl:if(t.length)return KC(t.props,function(o){switch(QC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([Vi(t,{props:[we(o,/:(read-\w+)/,":"+ca+"$1")]})],n);case"::placeholder":return Wn([Vi(t,{props:[we(o,/:(plac\w+)/,":"+Se+"input-$1")]}),Vi(t,{props:[we(o,/:(plac\w+)/,":"+ca+"$1")]}),Vi(t,{props:[we(o,/:(plac\w+)/,vt+"input-$1")]})],n)}return""})}},vx=[hx],bx=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var n=t.stylisPlugins||vx,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)o[m[b]]=!0;u.push(p)});var s,l=[mx,gx];{var c,d=[ux,cx(function(p){c.insert(p)})],f=lx(l.concat(n,d)),g=function(m){return Wn(ax(m),f)};s=function(m,b,y,I){c=y,g(m?m+"{"+b.styles+"}":b.styles),I&&(h.inserted[b.name]=!0)}}var h={key:r,sheet:new XC({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return h.sheet.hydrate(u),h},ba={exports:{}},ke={};/** @license React v16.13.1
115
+ * react-is.production.min.js
116
+ *
117
+ * Copyright (c) Facebook, Inc. and its affiliates.
118
+ *
119
+ * This source code is licensed under the MIT license found in the
120
+ * LICENSE file in the root directory of this source tree.
121
+ */var Lp;function yx(){if(Lp)return ke;Lp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case t:switch(v=v.type,v){case s:case l:case i:case o:case n:case d:return v;default:switch(v=v&&v.$$typeof,v){case u:case c:case h:case g:case a:return v;default:return S}}case r:return S}}}function x(v){return I(v)===l}return ke.AsyncMode=s,ke.ConcurrentMode=l,ke.ContextConsumer=u,ke.ContextProvider=a,ke.Element=t,ke.ForwardRef=c,ke.Fragment=i,ke.Lazy=h,ke.Memo=g,ke.Portal=r,ke.Profiler=o,ke.StrictMode=n,ke.Suspense=d,ke.isAsyncMode=function(v){return x(v)||I(v)===s},ke.isConcurrentMode=x,ke.isContextConsumer=function(v){return I(v)===u},ke.isContextProvider=function(v){return I(v)===a},ke.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},ke.isForwardRef=function(v){return I(v)===c},ke.isFragment=function(v){return I(v)===i},ke.isLazy=function(v){return I(v)===h},ke.isMemo=function(v){return I(v)===g},ke.isPortal=function(v){return I(v)===r},ke.isProfiler=function(v){return I(v)===o},ke.isStrictMode=function(v){return I(v)===n},ke.isSuspense=function(v){return I(v)===d},ke.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===i||v===l||v===o||v===n||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===g||v.$$typeof===a||v.$$typeof===u||v.$$typeof===c||v.$$typeof===m||v.$$typeof===b||v.$$typeof===y||v.$$typeof===p)},ke.typeOf=I,ke}var Pe={};/** @license React v16.13.1
122
+ * react-is.development.js
123
+ *
124
+ * Copyright (c) Facebook, Inc. and its affiliates.
125
+ *
126
+ * This source code is licensed under the MIT license found in the
127
+ * LICENSE file in the root directory of this source tree.
128
+ */var Bp;function Cx(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(z){return typeof z=="string"||typeof z=="function"||z===i||z===l||z===o||z===n||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===g||z.$$typeof===a||z.$$typeof===u||z.$$typeof===c||z.$$typeof===m||z.$$typeof===b||z.$$typeof===y||z.$$typeof===p)}function x(z){if(typeof z=="object"&&z!==null){var Re=z.$$typeof;switch(Re){case t:var ae=z.type;switch(ae){case s:case l:case i:case o:case n:case d:return ae;default:var Qe=ae&&ae.$$typeof;switch(Qe){case u:case c:case h:case g:case a:return Qe;default:return Re}}case r:return Re}}}var v=s,S=l,E=u,w=a,T=t,k=c,V=i,C=h,N=g,F=r,P=o,j=n,B=d,U=!1;function Q(z){return U||(U=!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.")),$(z)||x(z)===s}function $(z){return x(z)===l}function L(z){return x(z)===u}function G(z){return x(z)===a}function _(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function X(z){return x(z)===c}function K(z){return x(z)===i}function ee(z){return x(z)===h}function D(z){return x(z)===g}function Z(z){return x(z)===r}function ne(z){return x(z)===o}function ce(z){return x(z)===n}function Ee(z){return x(z)===d}Pe.AsyncMode=v,Pe.ConcurrentMode=S,Pe.ContextConsumer=E,Pe.ContextProvider=w,Pe.Element=T,Pe.ForwardRef=k,Pe.Fragment=V,Pe.Lazy=C,Pe.Memo=N,Pe.Portal=F,Pe.Profiler=P,Pe.StrictMode=j,Pe.Suspense=B,Pe.isAsyncMode=Q,Pe.isConcurrentMode=$,Pe.isContextConsumer=L,Pe.isContextProvider=G,Pe.isElement=_,Pe.isForwardRef=X,Pe.isFragment=K,Pe.isLazy=ee,Pe.isMemo=D,Pe.isPortal=Z,Pe.isProfiler=ne,Pe.isStrictMode=ce,Pe.isSuspense=Ee,Pe.isValidElementType=I,Pe.typeOf=x}()),Pe}var $p;function xx(){return $p||($p=1,process.env.NODE_ENV==="production"?ba.exports=yx():ba.exports=Cx()),ba.exports}var fl,Dp;function Ex(){if(Dp)return fl;Dp=1;var e=xx(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=i,o[e.Memo]=n;function a(h){return e.isMemo(h)?n:o[h.$$typeof]||t}var u=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(h,p,m){if(typeof p!="string"){if(f){var b=d(p);b&&b!==f&&g(h,b,m)}var y=s(p);l&&(y=y.concat(l(p)));for(var I=a(h),x=a(p),v=0;v<y.length;++v){var S=y[v];if(!r[S]&&!(m&&m[S])&&!(x&&x[S])&&!(I&&I[S])){var E=c(p,S);try{u(h,S,E)}catch{}}}}return h}return fl=g,fl}Ex();var Ix=!0;function _p(e,t,r){var i="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(i+=n+" ")}),i}var pl=function(t,r,i){var n=t.key+"-"+r.name;(i===!1||Ix===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Gp=function(t,r,i){pl(t,r,i);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Sx(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ax=/[A-Z]|^ms/g,Tx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(t){return t.charCodeAt(1)===45},Wp=function(t){return t!=null&&typeof t!="boolean"},ml=Mp(function(e){return Hp(e)?e:e.replace(Ax,"-$&").toLowerCase()}),zp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Tx,function(i,n,o){return fr={name:n,styles:o,next:fr},n})}return wx[t]!==1&&!Hp(t)&&typeof r=="number"&&r!==0?r+"px":r};function Bi(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return fr={name:n.name,styles:n.styles,next:fr},n.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fr={name:a.name,styles:a.styles,next:fr},a=a.next;var u=o.styles+";";return u}return Ox(e,t,r)}case"function":{if(e!==void 0){var s=fr,l=r(e);return fr=s,Bi(e,t,l)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function Ox(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=Bi(e,t,r[n])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var u=a;t!=null&&t[u]!==void 0?i+=o+"{"+t[u]+"}":Wp(u)&&(i+=ml(o)+":"+zp(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Wp(a[s])&&(i+=ml(o)+":"+zp(o,a[s])+";");else{var l=Bi(e,t,a);switch(o){case"animation":case"animationName":{i+=ml(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}return i}var Xp=/label:\s*([^\s;{]+)\s*(;|$)/g,fr;function ya(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";fr=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,n+=Bi(r,t,o);else{var a=o;n+=a[0]}for(var u=1;u<e.length;u++)if(n+=Bi(r,t,e[u]),i){var s=o;n+=s[u]}Xp.lastIndex=0;for(var l="",c;(c=Xp.exec(n))!==null;)l+="-"+c[1];var d=Sx(n)+l;return{name:d,styles:n,next:fr}}var kx=function(t){return t()},Px=R.useInsertionEffect?R.useInsertionEffect:!1,Up=Px||kx,Yp=R.createContext(typeof HTMLElement<"u"?bx({key:"css"}):null);Yp.Provider;var Jp=function(t){return O.forwardRef(function(r,i){var n=O.useContext(Yp);return t(r,n,i)})},Zp=R.createContext({}),gl={}.hasOwnProperty,hl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Nx=function(t,r){var i={};for(var n in r)gl.call(r,n)&&(i[n]=r[n]);return i[hl]=t,i},Fx=function(t){var r=t.cache,i=t.serialized,n=t.isStringTag;return pl(r,i,n),Up(function(){return Gp(r,i,n)}),null},Rx=Jp(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var n=e[hl],o=[i],a="";typeof e.className=="string"?a=_p(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=ya(o,void 0,R.useContext(Zp));a+=t.key+"-"+u.name;var s={};for(var l in e)gl.call(e,l)&&l!=="css"&&l!==hl&&(s[l]=e[l]);return s.className=a,r&&(s.ref=r),R.createElement(R.Fragment,null,R.createElement(Fx,{cache:t,serialized:u,isStringTag:typeof n=="string"}),R.createElement(n,s))}),Mx=Rx,le=function(t,r){var i=arguments;if(r==null||!gl.call(r,"css"))return R.createElement.apply(void 0,i);var n=i.length,o=new Array(n);o[0]=Mx,o[1]=Nx(t,r);for(var a=2;a<n;a++)o[a]=i[a];return R.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(le||(le={}));function vl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ya(t)}function Vx(){var e=vl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function jx(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Lx=Math.min,Bx=Math.max,Ca=Math.round,xa=Math.floor,Ea=e=>({x:e,y:e});function $x(e){const{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function Ia(){return typeof window<"u"}function qp(e){return Kp(e)?(e.nodeName||"").toLowerCase():"#document"}function xr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qp(e){var t;return(t=(Kp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kp(e){return Ia()?e instanceof Node||e instanceof xr(e).Node:!1}function Dx(e){return Ia()?e instanceof Element||e instanceof xr(e).Element:!1}function bl(e){return Ia()?e instanceof HTMLElement||e instanceof xr(e).HTMLElement:!1}function em(e){return!Ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xr(e).ShadowRoot}const _x=new Set(["inline","contents"]);function tm(e){const{overflow:t,overflowX:r,overflowY:i,display:n}=yl(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!_x.has(n)}function Gx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hx=new Set(["html","body","#document"]);function Wx(e){return Hx.has(qp(e))}function yl(e){return xr(e).getComputedStyle(e)}function zx(e){if(qp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||em(e)&&e.host||Qp(e);return em(t)?t.host:t}function rm(e){const t=zx(e);return Wx(t)?e.ownerDocument?e.ownerDocument.body:e.body:bl(t)&&tm(t)?t:rm(t)}function Sa(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=rm(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),a=xr(n);if(o){const u=Cl(a);return t.concat(a,a.visualViewport||[],tm(n)?n:[],u&&r?Sa(u):[])}return t.concat(n,Sa(n,[],r))}function Cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xx(e){const t=yl(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=bl(e),o=n?e.offsetWidth:r,a=n?e.offsetHeight:i,u=Ca(r)!==o||Ca(i)!==a;return u&&(r=o,i=a),{width:r,height:i,$:u}}function xl(e){return Dx(e)?e:e.contextElement}function nm(e){const t=xl(e);if(!bl(t))return Ea(1);const r=t.getBoundingClientRect(),{width:i,height:n,$:o}=Xx(t);let a=(o?Ca(r.width):r.width)/i,u=(o?Ca(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const Ux=Ea(0);function Yx(e){const t=xr(e);return!Gx()||!t.visualViewport?Ux:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jx(e,t,r){return!1}function im(e,t,r,i){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=xl(e);let a=Ea(1);t&&(a=nm(e));const u=Jx()?Yx(o):Ea(0);let s=(n.left+u.x)/a.x,l=(n.top+u.y)/a.y,c=n.width/a.x,d=n.height/a.y;if(o){const f=xr(o),g=i;let h=f,p=Cl(h);for(;p&&i&&g!==h;){const m=nm(p),b=p.getBoundingClientRect(),y=yl(p),I=b.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,x=b.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;s*=m.x,l*=m.y,c*=m.x,d*=m.y,s+=I,l+=x,h=xr(p),p=Cl(h)}}return $x({width:c,height:d,x:s,y:l})}function om(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zx(e,t){let r=null,i;const n=Qp(e);function o(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function a(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),o();const l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:g}=l;if(u||t(),!f||!g)return;const h=xa(d),p=xa(n.clientWidth-(c+f)),m=xa(n.clientHeight-(d+g)),b=xa(c),I={rootMargin:-h+"px "+-p+"px "+-m+"px "+-b+"px",threshold:Bx(0,Lx(1,s))||1};let x=!0;function v(S){const E=S[0].intersectionRatio;if(E!==s){if(!x)return a();E?a(!1,E):i=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!om(l,e.getBoundingClientRect())&&a(),x=!1}try{r=new IntersectionObserver(v,{...I,root:n.ownerDocument})}catch{r=new IntersectionObserver(v,I)}r.observe(e)}return a(!0),o}function qx(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,l=xl(e),c=n||o?[...l?Sa(l):[],...Sa(t)]:[];c.forEach(b=>{n&&b.addEventListener("scroll",r,{passive:!0}),o&&b.addEventListener("resize",r)});const d=l&&u?Zx(l,r):null;let f=-1,g=null;a&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=g)==null||I.observe(t)})),r()}),l&&!s&&g.observe(l),g.observe(t));let h,p=s?im(e):null;s&&m();function m(){const b=im(e);p&&!om(p,b)&&r(),p=b,h=requestAnimationFrame(m)}return r(),()=>{var b;c.forEach(y=>{n&&y.removeEventListener("scroll",r),o&&y.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,s&&cancelAnimationFrame(h)}}var El=O.useLayoutEffect,Qx=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],wa=function(){};function Kx(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function e2(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];var o=[].concat(i);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Kx(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Aa=function(t){return l2(t)?t.filter(Boolean):pe(t)==="object"&&t!==null?[t]:[]},am=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=dt(t,Qx);return W({},r)},Je=function(t,r,i){var n=t.cx,o=t.getStyles,a=t.getClassNames,u=t.className;return{css:o(r,t),className:n(i??{},a(r,t),u)}};function Ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function t2(e){return Ta(e)?window.innerHeight:e.clientHeight}function sm(e){return Ta(e)?window.pageYOffset:e.scrollTop}function Oa(e,t){if(Ta(e)){window.scrollTo(0,t);return}e.scrollTop=t}function r2(e){var t=getComputedStyle(e),r=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function n2(e,t,r,i){return r*((e=e/i-1)*e*e+1)+t}function ka(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wa,n=sm(e),o=t-n,a=10,u=0;function s(){u+=a;var l=n2(u,n,o,r);Oa(e,l),u<r?window.requestAnimationFrame(s):i(e)}s()}function um(e,t){var r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),n=t.offsetHeight/3;i.bottom+n>r.bottom?Oa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):i.top-n<r.top&&Oa(e,Math.max(t.offsetTop-n,0))}function i2(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function lm(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function o2(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cm=!1,a2={get passive(){return cm=!0}},Pa=typeof window<"u"?window:{};Pa.addEventListener&&Pa.removeEventListener&&(Pa.addEventListener("p",wa,a2),Pa.removeEventListener("p",wa,!1));var s2=cm;function u2(e){return e!=null}function l2(e){return Array.isArray(e)}function $i(e,t,r){return e?t:r}function uk(e){return e}function lk(e){return e}var c2=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];var o=Object.entries(t).filter(function(a){var u=fe(a,1),s=u[0];return!i.includes(s)});return o.reduce(function(a,u){var s=fe(u,2),l=s[0],c=s[1];return a[l]=c,a},{})},d2=["children","innerProps"],f2=["children","innerProps"];function p2(e){var t=e.maxHeight,r=e.menuEl,i=e.minHeight,n=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=r2(r),l={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return l;var c=s.getBoundingClientRect(),d=c.height,f=r.getBoundingClientRect(),g=f.bottom,h=f.height,p=f.top,m=r.offsetParent.getBoundingClientRect(),b=m.top,y=a?window.innerHeight:t2(s),I=sm(s),x=parseInt(getComputedStyle(r).marginBottom,10),v=parseInt(getComputedStyle(r).marginTop,10),S=b-v,E=y-p,w=S+I,T=d-I-p,k=g-y+I+x,V=I+p-v,C=160;switch(n){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return o&&ka(s,k,C),{placement:"bottom",maxHeight:t};if(!a&&T>=i||a&&E>=i){o&&ka(s,k,C);var N=a?E-x:T-x;return{placement:"bottom",maxHeight:N}}if(n==="auto"||a){var F=t,P=a?S:w;return P>=i&&(F=Math.min(P-x-u,t)),{placement:"top",maxHeight:F}}if(n==="bottom")return o&&Oa(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(S>=h)return{placement:"top",maxHeight:t};if(w>=h&&!a)return o&&ka(s,V,C),{placement:"top",maxHeight:t};if(!a&&w>=i||a&&S>=i){var j=t;return(!a&&w>=i||a&&S>=i)&&(j=a?S-v:w-v),o&&ka(s,V,C),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return l}function m2(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dm=function(t){return t==="auto"?"bottom":t},g2=function(t,r){var i,n=t.placement,o=t.theme,a=o.borderRadius,u=o.spacing,s=o.colors;return W((i={label:"menu"},H(i,m2(n),"100%"),H(i,"position","absolute"),H(i,"width","100%"),H(i,"zIndex",1),i),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},fm=O.createContext(null),h2=function(t){var r=t.children,i=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,s=t.theme,l=O.useContext(fm)||{},c=l.setPortalPlacement,d=O.useRef(null),f=O.useState(n),g=fe(f,2),h=g[0],p=g[1],m=O.useState(null),b=fe(m,2),y=b[0],I=b[1],x=s.spacing.controlHeight;return El(function(){var v=d.current;if(v){var S=a==="fixed",E=u&&!S,w=p2({maxHeight:n,menuEl:v,minHeight:i,placement:o,shouldScroll:E,isFixedPosition:S,controlHeight:x});p(w.maxHeight),I(w.placement),c?.(w.placement)}},[n,o,a,u,i,c,x]),r({ref:d,placerProps:W(W({},t),{},{placement:y||dm(o),maxHeight:h})})},v2=function(t){var r=t.children,i=t.innerRef,n=t.innerProps;return le("div",se({},Je(t,"menu",{menu:!0}),{ref:i},n),r)},b2=v2,y2=function(t,r){var i=t.maxHeight,n=t.theme.spacing.baseUnit;return W({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},C2=function(t){var r=t.children,i=t.innerProps,n=t.innerRef,o=t.isMulti;return le("div",se({},Je(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},i),r)},pm=function(t,r){var i=t.theme,n=i.spacing.baseUnit,o=i.colors;return W({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},x2=pm,E2=pm,I2=function(t){var r=t.children,i=r===void 0?"No options":r,n=t.innerProps,o=dt(t,d2);return le("div",se({},Je(W(W({},o),{},{children:i,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),i)},S2=function(t){var r=t.children,i=r===void 0?"Loading...":r,n=t.innerProps,o=dt(t,f2);return le("div",se({},Je(W(W({},o),{},{children:i,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),i)},w2=function(t){var r=t.rect,i=t.offset,n=t.position;return{left:r.left,position:n,top:i,width:r.width,zIndex:1}},A2=function(t){var r=t.appendTo,i=t.children,n=t.controlElement,o=t.innerProps,a=t.menuPlacement,u=t.menuPosition,s=O.useRef(null),l=O.useRef(null),c=O.useState(dm(a)),d=fe(c,2),f=d[0],g=d[1],h=O.useMemo(function(){return{setPortalPlacement:g}},[]),p=O.useState(null),m=fe(p,2),b=m[0],y=m[1],I=O.useCallback(function(){if(n){var E=i2(n),w=u==="fixed"?0:window.pageYOffset,T=E[f]+w;(T!==b?.offset||E.left!==b?.rect.left||E.width!==b?.rect.width)&&y({offset:T,rect:E})}},[n,u,f,b?.offset,b?.rect.left,b?.rect.width]);El(function(){I()},[I]);var x=O.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),n&&s.current&&(l.current=qx(n,s.current,I,{elementResize:"ResizeObserver"in window}))},[n,I]);El(function(){x()},[x]);var v=O.useCallback(function(E){s.current=E,x()},[x]);if(!r&&u!=="fixed"||!b)return null;var S=le("div",se({ref:v},Je(W(W({},t),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),i);return le(fm.Provider,{value:h},r?Sn.createPortal(S,r):S)},T2=function(t){var r=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},O2=function(t){var r=t.children,i=t.innerProps,n=t.isDisabled,o=t.isRtl;return le("div",se({},Je(t,"container",{"--is-disabled":n,"--is-rtl":o}),i),r)},k2=function(t,r){var i=t.theme.spacing,n=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return W({alignItems:"center",display:n&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},P2=function(t){var r=t.children,i=t.innerProps,n=t.isMulti,o=t.hasValue;return le("div",se({},Je(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),i),r)},N2=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},F2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"indicatorsContainer",{indicators:!0}),i),r)},mm,R2=["size"],M2=["innerProps","isRtl","size"];function V2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var j2=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:V2},gm=function(t){var r=t.size,i=dt(t,R2);return le("svg",se({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:j2},i))},Il=function(t){return le(gm,se({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hm=function(t){return le(gm,se({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vm=function(t,r){var i=t.isFocused,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return W({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:i?a.neutral60:a.neutral20,padding:o*2,":hover":{color:i?a.neutral80:a.neutral40}})},L2=vm,B2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),r||le(hm,null))},$2=vm,D2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),r||le(Il,null))},_2=function(t,r){var i=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return W({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},G2=function(t){var r=t.innerProps;return le("span",se({},r,Je(t,"indicatorSeparator",{"indicator-separator":!0})))},H2=Vx(mm||(mm=jx([`
129
+ 0%, 80%, 100% { opacity: 0; }
130
+ 40% { opacity: 1; }
131
+ `]))),W2=function(t,r){var i=t.isFocused,n=t.size,o=t.theme,a=o.colors,u=o.spacing.baseUnit;return W({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:i?a.neutral60:a.neutral20,padding:u*2})},Sl=function(t){var r=t.delay,i=t.offset;return le("span",{css:vl({animation:"".concat(H2," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},z2=function(t){var r=t.innerProps,i=t.isRtl,n=t.size,o=n===void 0?4:n,a=dt(t,M2);return le("div",se({},Je(W(W({},a),{},{innerProps:r,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),le(Sl,{delay:0,offset:i}),le(Sl,{delay:160,offset:!0}),le(Sl,{delay:320,offset:!i}))},X2=function(t,r){var i=t.isDisabled,n=t.isFocused,o=t.theme,a=o.colors,u=o.borderRadius,s=o.spacing;return W({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:n?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:n?a.primary:a.neutral30}})},U2=function(t){var r=t.children,i=t.isDisabled,n=t.isFocused,o=t.innerRef,a=t.innerProps,u=t.menuIsOpen;return le("div",se({ref:o},Je(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":n,"control--menu-is-open":u}),a,{"aria-disabled":i||void 0}),r)},Y2=U2,J2=["data"],Z2=function(t,r){var i=t.theme.spacing;return r?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},q2=function(t){var r=t.children,i=t.cx,n=t.getStyles,o=t.getClassNames,a=t.Heading,u=t.headingProps,s=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return le("div",se({},Je(t,"group",{group:!0}),s),le(a,se({},u,{selectProps:d,theme:c,getStyles:n,getClassNames:o,cx:i}),l),le("div",null,r))},Q2=function(t,r){var i=t.theme,n=i.colors,o=i.spacing;return W({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},K2=function(t){var r=am(t);r.data;var i=dt(r,J2);return le("div",se({},Je(t,"groupHeading",{"group-heading":!0}),i))},eE=q2,tE=["innerRef","isDisabled","isHidden","inputClassName"],rE=function(t,r){var i=t.isDisabled,n=t.value,o=t.theme,a=o.spacing,u=o.colors;return W(W({visibility:i?"hidden":"visible",transform:n?"translateZ(0)":""},nE),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},bm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":W({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bm)},iE=function(t){return W({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},bm)},oE=function(t){var r=t.cx,i=t.value,n=am(t),o=n.innerRef,a=n.isDisabled,u=n.isHidden,s=n.inputClassName,l=dt(n,tE);return le("div",se({},Je(t,"input",{"input-container":!0}),{"data-value":i||""}),le("input",se({className:r({input:!0},s),ref:o,style:iE(u),disabled:a},l)))},aE=oE,sE=function(t,r){var i=t.theme,n=i.spacing,o=i.borderRadius,a=i.colors;return W({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},uE=function(t,r){var i=t.theme,n=i.borderRadius,o=i.colors,a=t.cropWithEllipsis;return W({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},lE=function(t,r){var i=t.theme,n=i.spacing,o=i.borderRadius,a=i.colors,u=t.isFocused;return W({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ym=function(t){var r=t.children,i=t.innerProps;return le("div",i,r)},cE=ym,dE=ym;function fE(e){var t=e.children,r=e.innerProps;return le("div",se({role:"button"},r),t||le(Il,{size:14}))}var pE=function(t){var r=t.children,i=t.components,n=t.data,o=t.innerProps,a=t.isDisabled,u=t.removeProps,s=t.selectProps,l=i.Container,c=i.Label,d=i.Remove;return le(l,{data:n,innerProps:W(W({},Je(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},le(c,{data:n,innerProps:W({},Je(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),le(d,{data:n,innerProps:W(W({},Je(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},u),selectProps:s}))},mE=pE,gE=function(t,r){var i=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.theme,u=a.spacing,s=a.colors;return W({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},hE=function(t){var r=t.children,i=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.innerRef,u=t.innerProps;return le("div",se({},Je(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":n,"option--is-selected":o}),{ref:a,"aria-disabled":i},u),r)},vE=hE,bE=function(t,r){var i=t.theme,n=i.spacing,o=i.colors;return W({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},yE=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"placeholder",{placeholder:!0}),i),r)},CE=yE,xE=function(t,r){var i=t.isDisabled,n=t.theme,o=n.spacing,a=n.colors;return W({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},EE=function(t){var r=t.children,i=t.isDisabled,n=t.innerProps;return le("div",se({},Je(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),n),r)},IE=EE,SE={ClearIndicator:D2,Control:Y2,DropdownIndicator:B2,DownChevron:hm,CrossIcon:Il,Group:eE,GroupHeading:K2,IndicatorsContainer:F2,IndicatorSeparator:G2,Input:aE,LoadingIndicator:z2,Menu:b2,MenuList:C2,MenuPortal:A2,LoadingMessage:S2,NoOptionsMessage:I2,MultiValue:mE,MultiValueContainer:cE,MultiValueLabel:dE,MultiValueRemove:fE,Option:vE,Placeholder:CE,SelectContainer:O2,SingleValue:IE,ValueContainer:P2},wE=function(t){return W(W({},SE),t.components)},Cm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function AE(e,t){return!!(e===t||Cm(e)&&Cm(t))}function TE(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!AE(e[r],t[r]))return!1;return!0}function OE(e,t){t===void 0&&(t=TE);var r=null;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a}return i.clear=function(){r=null},i}function kE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var PE=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:kE},NE=function(t){return le("span",se({css:PE},t))},xm=NE,FE={guidance:function(t){var r=t.isSearchable,i=t.isMulti,n=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,i=t.label,n=i===void 0?"":i,o=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,i=t.focused,n=t.options,o=t.label,a=o===void 0?"":o,u=t.selectValue,s=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(r==="value"&&u)return"value ".concat(a," focused, ").concat(d(u,i),".");if(r==="menu"&&c){var f=s?" disabled":"",g="".concat(l?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(d(n,i),".")}return""},onFilter:function(t){var r=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(r?" for search term "+r:"",".")}},RE=function(t){var r=t.ariaSelection,i=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,a=t.isFocused,u=t.selectValue,s=t.selectProps,l=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,g=s.inputValue,h=s.isMulti,p=s.isOptionDisabled,m=s.isSearchable,b=s.menuIsOpen,y=s.options,I=s.screenReaderStatus,x=s.tabSelectsValue,v=s.isLoading,S=s["aria-label"],E=s["aria-live"],w=O.useMemo(function(){return W(W({},FE),d||{})},[d]),T=O.useMemo(function(){var P="";if(r&&w.onChange){var j=r.option,B=r.options,U=r.removedValue,Q=r.removedValues,$=r.value,L=function(Z){return Array.isArray(Z)?null:Z},G=U||j||L($),_=G?f(G):"",X=B||Q||void 0,K=X?X.map(f):[],ee=W({isDisabled:G&&p(G,u),label:_,labels:K},r);P=w.onChange(ee)}return P},[r,w,p,u,f]),k=O.useMemo(function(){var P="",j=i||n,B=!!(i&&u&&u.includes(i));if(j&&w.onFocus){var U={focused:j,label:f(j),isDisabled:p(j,u),isSelected:B,options:o,context:j===i?"menu":"value",selectValue:u,isAppleDevice:c};P=w.onFocus(U)}return P},[i,n,f,p,w,o,u,c]),V=O.useMemo(function(){var P="";if(b&&y.length&&!v&&w.onFilter){var j=I({count:o.length});P=w.onFilter({inputValue:g,resultsMessage:j})}return P},[o,g,b,w,y,I,v]),C=r?.action==="initial-input-focus",N=O.useMemo(function(){var P="";if(w.guidance){var j=n?"value":b?"menu":"input";P=w.guidance({"aria-label":S,context:j,isDisabled:i&&p(i,u),isMulti:h,isSearchable:m,tabSelectsValue:x,isInitialFocus:C})}return P},[S,i,n,h,p,m,b,w,u,x,C]),F=le(O.Fragment,null,le("span",{id:"aria-selection"},T),le("span",{id:"aria-focused"},k),le("span",{id:"aria-results"},V),le("span",{id:"aria-guidance"},N));return le(O.Fragment,null,le(xm,{id:l},C&&F),le(xm,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!C&&F))},ME=RE,wl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],VE=new RegExp("["+wl.map(function(e){return e.letters}).join("")+"]","g"),Em={},Al=0;Al<wl.length;Al++)for(var Tl=wl[Al],Ol=0;Ol<Tl.letters.length;Ol++)Em[Tl.letters[Ol]]=Tl.base;var Im=function(t){return t.replace(VE,function(r){return Em[r]})},jE=OE(Im),Sm=function(t){return t.replace(/^\s+|\s+$/g,"")},LE=function(t){return"".concat(t.label," ").concat(t.value)},BE=function(t){return function(r,i){if(r.data.__isNew__)return!0;var n=W({ignoreCase:!0,ignoreAccents:!0,stringify:LE,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,a=n.ignoreAccents,u=n.stringify,s=n.trim,l=n.matchFrom,c=s?Sm(i):i,d=s?Sm(u(r)):u(r);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=jE(c),d=Im(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},$E=["innerRef"];function DE(e){var t=e.innerRef,r=dt(e,$E),i=c2(r,"onExited","in","enter","exit","appear");return le("input",se({ref:t},i,{css:vl({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var _E=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GE(e){var t=e.isEnabled,r=e.onBottomArrive,i=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,a=O.useRef(!1),u=O.useRef(!1),s=O.useRef(0),l=O.useRef(null),c=O.useCallback(function(m,b){if(l.current!==null){var y=l.current,I=y.scrollTop,x=y.scrollHeight,v=y.clientHeight,S=l.current,E=b>0,w=x-v-I,T=!1;w>b&&a.current&&(i&&i(m),a.current=!1),E&&u.current&&(o&&o(m),u.current=!1),E&&b>w?(r&&!a.current&&r(m),S.scrollTop=x,T=!0,a.current=!0):!E&&-b>I&&(n&&!u.current&&n(m),S.scrollTop=0,T=!0,u.current=!0),T&&_E(m)}},[r,i,n,o]),d=O.useCallback(function(m){c(m,m.deltaY)},[c]),f=O.useCallback(function(m){s.current=m.changedTouches[0].clientY},[]),g=O.useCallback(function(m){var b=s.current-m.changedTouches[0].clientY;c(m,b)},[c]),h=O.useCallback(function(m){if(m){var b=s2?{passive:!1}:!1;m.addEventListener("wheel",d,b),m.addEventListener("touchstart",f,b),m.addEventListener("touchmove",g,b)}},[g,f,d]),p=O.useCallback(function(m){m&&(m.removeEventListener("wheel",d,!1),m.removeEventListener("touchstart",f,!1),m.removeEventListener("touchmove",g,!1))},[g,f,d]);return O.useEffect(function(){if(t){var m=l.current;return h(m),function(){p(m)}}},[t,h,p]),function(m){l.current=m}}var wm=["boxSizing","height","overflow","paddingRight","position"],Am={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tm(e){e.cancelable&&e.preventDefault()}function Om(e){e.stopPropagation()}function km(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Pm(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nm=!!(typeof window<"u"&&window.document&&window.document.createElement),Di=0,zn={capture:!1,passive:!1};function HE(e){var t=e.isEnabled,r=e.accountForScrollbars,i=r===void 0?!0:r,n=O.useRef({}),o=O.useRef(null),a=O.useCallback(function(s){if(Nm){var l=document.body,c=l&&l.style;if(i&&wm.forEach(function(h){var p=c&&c[h];n.current[h]=p}),i&&Di<1){var d=parseInt(n.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(Am).forEach(function(h){var p=Am[h];c&&(c[h]=p)}),c&&(c.paddingRight="".concat(g,"px"))}l&&Pm()&&(l.addEventListener("touchmove",Tm,zn),s&&(s.addEventListener("touchstart",km,zn),s.addEventListener("touchmove",Om,zn))),Di+=1}},[i]),u=O.useCallback(function(s){if(Nm){var l=document.body,c=l&&l.style;Di=Math.max(Di-1,0),i&&Di<1&&wm.forEach(function(d){var f=n.current[d];c&&(c[d]=f)}),l&&Pm()&&(l.removeEventListener("touchmove",Tm,zn),s&&(s.removeEventListener("touchstart",km,zn),s.removeEventListener("touchmove",Om,zn)))}},[i]);return O.useEffect(function(){if(t){var s=o.current;return a(s),function(){u(s)}}},[t,a,u]),function(s){o.current=s}}function WE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var zE=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},XE=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:WE};function UE(e){var t=e.children,r=e.lockEnabled,i=e.captureEnabled,n=i===void 0?!0:i,o=e.onBottomArrive,a=e.onBottomLeave,u=e.onTopArrive,s=e.onTopLeave,l=GE({isEnabled:n,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:s}),c=HE({isEnabled:r}),d=function(g){l(g),c(g)};return le(O.Fragment,null,r&&le("div",{onClick:zE,css:XE}),t(d))}function YE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var JE=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:YE},ZE=function(t){var r=t.name,i=t.onFocus;return le("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:JE,value:"",onChange:function(){}})},qE=ZE;function kl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function QE(){return kl(/^iPhone/i)}function Fm(){return kl(/^Mac/i)}function KE(){return kl(/^iPad/i)||Fm()&&navigator.maxTouchPoints>1}function eI(){return QE()||KE()}function tI(){return Fm()||eI()}var rI=function(t){return t.label},Rm=function(t){return t.label},Mm=function(t){return t.value},nI=function(t){return!!t.isDisabled},iI={clearIndicator:$2,container:T2,control:X2,dropdownIndicator:L2,group:Z2,groupHeading:Q2,indicatorsContainer:N2,indicatorSeparator:_2,input:rE,loadingIndicator:W2,loadingMessage:E2,menu:g2,menuList:y2,menuPortal:w2,multiValue:sE,multiValueLabel:uE,multiValueRemove:lE,noOptionsMessage:x2,option:gE,placeholder:bE,singleValue:xE,valueContainer:k2},oI={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},aI=4,Vm=4,sI=38,uI=Vm*2,lI={baseUnit:Vm,controlHeight:sI,menuGutter:uI},Pl={borderRadius:aI,colors:oI,spacing:lI},cI={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:lm(),captureMenuScroll:!lm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:BE(),formatGroupLabel:rI,getOptionLabel:Rm,getOptionValue:Mm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nI,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!o2(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jm(e,t,r,i){var n=_m(e,t,r),o=Gm(e,t,r),a=Dm(e,t),u=Fa(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:a,value:u,index:i}}function Na(e,t){return e.options.map(function(r,i){if("options"in r){var n=r.options.map(function(a,u){return jm(e,a,t,u)}).filter(function(a){return $m(e,a)});return n.length>0?{type:"group",data:r,options:n,index:i}:void 0}var o=jm(e,r,t,i);return $m(e,o)?o:void 0}).filter(u2)}function Lm(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,de(r.options.map(function(i){return i.data}))):t.push(r.data),t},[])}function Bm(e,t){return e.reduce(function(r,i){return i.type==="group"?r.push.apply(r,de(i.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(i.index,"-").concat(n.index)}}))):r.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),r},[])}function dI(e,t){return Lm(Na(e,t))}function $m(e,t){var r=e.inputValue,i=r===void 0?"":r,n=t.data,o=t.isSelected,a=t.label,u=t.value;return(!Wm(e)||!o)&&Hm(e,{label:a,value:u,data:n},i)}function fI(e,t){var r=e.focusedValue,i=e.selectValue,n=i.indexOf(r);if(n>-1){var o=t.indexOf(r);if(o>-1)return r;if(n<t.length)return t[n]}return null}function pI(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Nl=function(t,r){var i,n=(i=t.find(function(o){return o.data===r}))===null||i===void 0?void 0:i.id;return n||null},Dm=function(t,r){return t.getOptionLabel(r)},Fa=function(t,r){return t.getOptionValue(r)};function _m(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Gm(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var i=Fa(e,t);return r.some(function(n){return Fa(e,n)===i})}function Hm(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Wm=function(t){var r=t.hideSelectedOptions,i=t.isMulti;return r===void 0?i:r},mI=1,zm=function(e){nn(r,e);var t=on(r);function r(i){var n;if(bt(this,r),n=t.call(this,i),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,l){var c=n.props,d=c.onChange,f=c.name;l.name=f,n.ariaOnChange(s,l),d(s,l)},n.setValue=function(s,l,c){var d=n.props,f=d.closeMenuOnSelect,g=d.isMulti,h=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(n.setState({inputIsHiddenAfterUpdate:!g}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:l,option:c})},n.selectOption=function(s){var l=n.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,g=n.state.selectValue,h=d&&n.isOptionSelected(s,g),p=n.isOptionDisabled(s,g);if(h){var m=n.getOptionValue(s);n.setValue(g.filter(function(b){return n.getOptionValue(b)!==m}),"deselect-option",s)}else if(!p)d?n.setValue([].concat(de(g),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&n.blurInput()},n.removeValue=function(s){var l=n.props.isMulti,c=n.state.selectValue,d=n.getOptionValue(s),f=c.filter(function(h){return n.getOptionValue(h)!==d}),g=$i(l,f,f[0]||null);n.onChange(g,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange($i(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,l=n.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=$i(s,d,d[0]||null);c&&n.onChange(f,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(s){return Nl(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return Bm(Na(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return e2.apply(void 0,[n.props.classNamePrefix].concat(l))},n.getOptionLabel=function(s){return Dm(n.props,s)},n.getOptionValue=function(s){return Fa(n.props,s)},n.getStyles=function(s,l){var c=n.props.unstyled,d=iI[s](l,c);d.boxSizing="border-box";var f=n.props.styles[s];return f?f(d,l):d},n.getClassNames=function(s,l){var c,d;return(c=(d=n.props.classNames)[s])===null||c===void 0?void 0:c.call(d,l)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return wE(n.props)},n.buildCategorizedOptions=function(){return Na(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Lm(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,l){n.setState({ariaSelection:W({value:s},l)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var l=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():l&&n.openMenu("first"):(l&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var l=n.props,c=l.isMulti,d=l.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!c}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ta(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var l=s.touches,c=l&&l.item(0);c&&(n.initialTouchX=c.clientX,n.initialTouchY=c.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var l=s.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-n.initialTouchX),f=Math.abs(c.clientY-n.initialTouchY),g=5;n.userIsDragging=d>g||f>g}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var l=n.props.inputValue,c=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:l}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var l=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:l}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var l=n.getFocusableOptions(),c=l.indexOf(s);n.setState({focusedOption:s,focusedOptionId:c>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return Wm(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var l=n.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,g=l.inputValue,h=l.isClearable,p=l.isDisabled,m=l.menuIsOpen,b=l.onKeyDown,y=l.tabSelectsValue,I=l.openMenuOnFocus,x=n.state,v=x.focusedOption,S=x.focusedValue,E=x.selectValue;if(!p&&!(typeof b=="function"&&(b(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||g)return;n.focusValue("previous");break;case"ArrowRight":if(!c||g)return;n.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(S)n.removeValue(S);else{if(!d)return;c?n.popValue():h&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!m||!y||!v||I&&n.isOptionSelected(v,E))return;n.selectOption(v);break;case"Enter":if(s.keyCode===229)break;if(m){if(!v||n.isComposing)return;n.selectOption(v);break}return;case"Escape":m?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:g}),n.onMenuClose()):h&&f&&n.clearValue();break;case" ":if(g)return;if(!m){n.openMenu("first");break}if(!v)return;n.selectOption(v);break;case"ArrowUp":m?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":m?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!m)return;n.focusOption("pageup");break;case"PageDown":if(!m)return;n.focusOption("pagedown");break;case"Home":if(!m)return;n.focusOption("first");break;case"End":if(!m)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++mI),n.state.selectValue=Aa(i.value),i.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),a=n.buildFocusableOptions(),u=a.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=a[u],n.state.focusedOptionId=Nl(o,a[u])}return n}return yt(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&um(this.menuListRef,this.focusedOptionRef),tI()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var o=this.props,a=o.isDisabled,u=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&n.isDisabled||s&&u&&!n.menuIsOpen)&&this.focusInput(),s&&a&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(um(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,a=this.state,u=a.selectValue,s=a.isFocused,l=this.buildFocusableOptions(),c=n==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,a=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(u);u||(s=-1);var l=a.length-1,c=-1;if(a.length){switch(n){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var s=0,l=u.indexOf(a);a||(l=-1),n==="up"?s=l>0?l-1:u.length-1:n==="down"?s=(l+1)%u.length:n==="pageup"?(s=l-o,s<0&&(s=0)):n==="pagedown"?(s=l+o,s>u.length-1&&(s=u.length-1)):n==="last"&&(s=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Pl):W(W({},Pl),this.props.theme):Pl}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,a=this.getStyles,u=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,h=d.options,p=this.hasValue();return{clearValue:n,cx:o,getStyles:a,getClassNames:u,getValue:s,hasValue:p,isMulti:f,isRtl:g,options:h,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,a=n.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(n,o){return _m(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return Gm(this.props,n,o)}},{key:"filterOption",value:function(n,o){return Hm(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:a,selectValue:u})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,a=n.isSearchable,u=n.inputId,s=n.inputValue,l=n.tabIndex,c=n.form,d=n.menuIsOpen,f=n.required,g=this.getComponents(),h=g.Input,p=this.state,m=p.inputIsHidden,b=p.ariaSelection,y=this.commonProps,I=u||this.getElementId("input"),x=W(W(W({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?R.createElement(h,se({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):R.createElement(DE,se({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:wa,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),a=o.MultiValue,u=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,g=this.props,h=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,b=g.inputValue,y=g.placeholder,I=this.state,x=I.selectValue,v=I.focusedValue,S=I.isFocused;if(!this.hasValue()||!h)return b?null:R.createElement(d,se({},f,{key:"placeholder",isDisabled:p,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(w,T){var k=w===v,V="".concat(n.getOptionLabel(w),"-").concat(n.getOptionValue(w));return R.createElement(a,se({},f,{components:{Container:u,Label:s,Remove:l},isFocused:k,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return n.removeValue(w)},onTouchEnd:function(){return n.removeValue(w)},onMouseDown:function(N){N.preventDefault()}},data:w}),n.formatOptionLabel(w,"value"))});if(b)return null;var E=x[0];return R.createElement(c,se({},f,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,a=this.commonProps,u=this.props,s=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,a=this.commonProps,u=this.props,s=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,a=n.IndicatorSeparator;if(!o||!a)return null;var u=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return R.createElement(a,se({},u,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var a=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:l,isDisabled:u,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),a=o.Group,u=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,g=o.Option,h=this.commonProps,p=this.state.focusedOption,m=this.props,b=m.captureMenuScroll,y=m.inputValue,I=m.isLoading,x=m.loadingMessage,v=m.minMenuHeight,S=m.maxMenuHeight,E=m.menuIsOpen,w=m.menuPlacement,T=m.menuPosition,k=m.menuPortalTarget,V=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,N=m.noOptionsMessage,F=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!E)return null;var j=function(_,X){var K=_.type,ee=_.data,D=_.isDisabled,Z=_.isSelected,ne=_.label,ce=_.value,Ee=p===ee,z=D?void 0:function(){return n.onOptionHover(ee)},Re=D?void 0:function(){return n.selectOption(ee)},ae="".concat(n.getElementId("option"),"-").concat(X),Qe={id:ae,onClick:Re,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:Z};return R.createElement(g,se({},h,{innerProps:Qe,data:ee,isDisabled:D,isSelected:Z,key:ae,label:ne,type:K,value:ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(_.data,"menu"))},B;if(this.hasOptions())B=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var _=G.data,X=G.options,K=G.index,ee="".concat(n.getElementId("group"),"-").concat(K),D="".concat(ee,"-heading");return R.createElement(a,se({},h,{key:ee,data:_,options:X,Heading:u,headingProps:{id:D,data:G.data},label:n.formatGroupLabel(G.data)}),G.options.map(function(Z){return j(Z,"".concat(K,"-").concat(Z.index))}))}else if(G.type==="option")return j(G,"".concat(G.index))});else if(I){var U=x({inputValue:y});if(U===null)return null;B=R.createElement(d,h,U)}else{var Q=N({inputValue:y});if(Q===null)return null;B=R.createElement(f,h,Q)}var $={minMenuHeight:v,maxMenuHeight:S,menuPlacement:w,menuPosition:T,menuShouldScrollIntoView:C},L=R.createElement(h2,se({},h,$),function(G){var _=G.ref,X=G.placerProps,K=X.placement,ee=X.maxHeight;return R.createElement(s,se({},h,$,{innerRef:_,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:I,placement:K}),R.createElement(UE,{captureEnabled:b,onTopArrive:F,onBottomArrive:P,lockEnabled:V},function(D){return R.createElement(l,se({},h,{innerRef:function(ne){n.getMenuListRef(ne),D(ne)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:n.getElementId("listbox")},isLoading:I,maxHeight:ee,focusedOption:p}),B)}))});return k||T==="fixed"?R.createElement(c,se({},h,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:T}),L):L}},{key:"renderFormField",value:function(){var n=this,o=this.props,a=o.delimiter,u=o.isDisabled,s=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return R.createElement(qE,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(s)if(a){var f=d.map(function(p){return n.getOptionValue(p)}).join(a);return R.createElement("input",{name:l,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(p,m){return R.createElement("input",{key:"i-".concat(m),name:l,type:"hidden",value:n.getOptionValue(p)})}):R.createElement("input",{name:l,type:"hidden",value:""});return R.createElement("div",null,g)}else{var h=d[0]?this.getOptionValue(d[0]):"";return R.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,a=o.ariaSelection,u=o.focusedOption,s=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return R.createElement(ME,se({},n,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:u,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,a=n.IndicatorsContainer,u=n.SelectContainer,s=n.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,g=l.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return R.createElement(u,se({},p,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),R.createElement(o,se({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:g}),R.createElement(s,se({},p,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(a,se({},p,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var a=o.prevProps,u=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,g=n.options,h=n.value,p=n.menuIsOpen,m=n.inputValue,b=n.isMulti,y=Aa(h),I={};if(a&&(h!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?dI(n,y):[],v=p?Bm(Na(n,y),"".concat(f,"-option")):[],S=u?fI(o,y):null,E=pI(o,x),w=Nl(v,E);I={selectValue:y,focusedOption:E,focusedOptionId:w,focusableOptionsWithIds:v,focusedValue:S,clearFocusValueOnUpdate:!1}}var T=s!=null&&n!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},k=l,V=c&&d;return c&&!V&&(k={value:$i(b,y,y[0]||null),options:y,action:"initial-input-focus"},V=!d),l?.action==="initial-input-focus"&&(k=null),W(W(W({},I),T),{},{prevProps:n,ariaSelection:k,prevWasFocused:V})}}]),r}(O.Component);zm.defaultProps=cI;var gI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function hI(e){var t=e.defaultInputValue,r=t===void 0?"":t,i=e.defaultMenuIsOpen,n=i===void 0?!1:i,o=e.defaultValue,a=o===void 0?null:o,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=dt(e,gI),p=O.useState(u!==void 0?u:r),m=fe(p,2),b=m[0],y=m[1],I=O.useState(s!==void 0?s:n),x=fe(I,2),v=x[0],S=x[1],E=O.useState(g!==void 0?g:a),w=fe(E,2),T=w[0],k=w[1],V=O.useCallback(function(U,Q){typeof l=="function"&&l(U,Q),k(U)},[l]),C=O.useCallback(function(U,Q){var $;typeof c=="function"&&($=c(U,Q)),y($!==void 0?$:U)},[c]),N=O.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),F=O.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),P=u!==void 0?u:b,j=s!==void 0?s:v,B=g!==void 0?g:T;return W(W({},h),{},{inputValue:P,menuIsOpen:j,onChange:V,onInputChange:C,onMenuClose:F,onMenuOpen:N,value:B})}var vI=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Xm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=String(t).toLowerCase(),o=String(i.getOptionValue(r)).toLowerCase(),a=String(i.getOptionLabel(r)).toLowerCase();return o===n||a===n},Fl={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,i,n){return!(!t||r.some(function(o){return Xm(t,o,n)})||i.some(function(o){return Xm(t,o,n)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function bI(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,i=e.createOptionPosition,n=i===void 0?"last":i,o=e.formatCreateLabel,a=o===void 0?Fl.formatCreateLabel:o,u=e.isValidNewOption,s=u===void 0?Fl.isValidNewOption:u,l=e.getNewOptionData,c=l===void 0?Fl.getNewOptionData:l,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,h=e.onChange,p=dt(e,vI),m=p.getOptionValue,b=m===void 0?Mm:m,y=p.getOptionLabel,I=y===void 0?Rm:y,x=p.inputValue,v=p.isLoading,S=p.isMulti,E=p.value,w=p.name,T=O.useMemo(function(){return s(x,Aa(E),g,{getOptionValue:b,getOptionLabel:I})?c(x,a(x)):void 0},[a,c,I,b,x,s,g,E]),k=O.useMemo(function(){return(r||!v)&&T?n==="first"?[T].concat(de(g)):[].concat(de(g),[T]):g},[r,n,v,T,g]),V=O.useCallback(function(C,N){if(N.action!=="select-option")return h(C,N);var F=Array.isArray(C)?C:[C];if(F[F.length-1]===T){if(d)d(x);else{var P=c(x,x),j={action:"create-option",name:w,option:P};h($i(S,[].concat(de(Aa(E)),[P]),P),j)}return}h(C,N)},[c,x,S,w,T,d,h,E]);return W(W({},p),{},{options:k,onChange:V})}var yI=O.forwardRef(function(e,t){var r=hI(e),i=bI(r);return R.createElement(zm,se({ref:t},i))}),CI=yI;const Um=e=>e,xI=(()=>{let e=Um;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Um}}})();function Xr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function cn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Xr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ra={exports:{}},Ma={exports:{}},Ne={};/** @license React v16.13.1
132
+ * react-is.production.min.js
133
+ *
134
+ * Copyright (c) Facebook, Inc. and its affiliates.
135
+ *
136
+ * This source code is licensed under the MIT license found in the
137
+ * LICENSE file in the root directory of this source tree.
138
+ */var Ym;function EI(){if(Ym)return Ne;Ym=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case t:switch(v=v.type,v){case s:case l:case i:case o:case n:case d:return v;default:switch(v=v&&v.$$typeof,v){case u:case c:case h:case g:case a:return v;default:return S}}case r:return S}}}function x(v){return I(v)===l}return Ne.AsyncMode=s,Ne.ConcurrentMode=l,Ne.ContextConsumer=u,Ne.ContextProvider=a,Ne.Element=t,Ne.ForwardRef=c,Ne.Fragment=i,Ne.Lazy=h,Ne.Memo=g,Ne.Portal=r,Ne.Profiler=o,Ne.StrictMode=n,Ne.Suspense=d,Ne.isAsyncMode=function(v){return x(v)||I(v)===s},Ne.isConcurrentMode=x,Ne.isContextConsumer=function(v){return I(v)===u},Ne.isContextProvider=function(v){return I(v)===a},Ne.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Ne.isForwardRef=function(v){return I(v)===c},Ne.isFragment=function(v){return I(v)===i},Ne.isLazy=function(v){return I(v)===h},Ne.isMemo=function(v){return I(v)===g},Ne.isPortal=function(v){return I(v)===r},Ne.isProfiler=function(v){return I(v)===o},Ne.isStrictMode=function(v){return I(v)===n},Ne.isSuspense=function(v){return I(v)===d},Ne.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===i||v===l||v===o||v===n||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===g||v.$$typeof===a||v.$$typeof===u||v.$$typeof===c||v.$$typeof===m||v.$$typeof===b||v.$$typeof===y||v.$$typeof===p)},Ne.typeOf=I,Ne}var Fe={};/** @license React v16.13.1
139
+ * react-is.development.js
140
+ *
141
+ * Copyright (c) Facebook, Inc. and its affiliates.
142
+ *
143
+ * This source code is licensed under the MIT license found in the
144
+ * LICENSE file in the root directory of this source tree.
145
+ */var Jm;function II(){return Jm||(Jm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(z){return typeof z=="string"||typeof z=="function"||z===i||z===l||z===o||z===n||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===g||z.$$typeof===a||z.$$typeof===u||z.$$typeof===c||z.$$typeof===m||z.$$typeof===b||z.$$typeof===y||z.$$typeof===p)}function x(z){if(typeof z=="object"&&z!==null){var Re=z.$$typeof;switch(Re){case t:var ae=z.type;switch(ae){case s:case l:case i:case o:case n:case d:return ae;default:var Qe=ae&&ae.$$typeof;switch(Qe){case u:case c:case h:case g:case a:return Qe;default:return Re}}case r:return Re}}}var v=s,S=l,E=u,w=a,T=t,k=c,V=i,C=h,N=g,F=r,P=o,j=n,B=d,U=!1;function Q(z){return U||(U=!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.")),$(z)||x(z)===s}function $(z){return x(z)===l}function L(z){return x(z)===u}function G(z){return x(z)===a}function _(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function X(z){return x(z)===c}function K(z){return x(z)===i}function ee(z){return x(z)===h}function D(z){return x(z)===g}function Z(z){return x(z)===r}function ne(z){return x(z)===o}function ce(z){return x(z)===n}function Ee(z){return x(z)===d}Fe.AsyncMode=v,Fe.ConcurrentMode=S,Fe.ContextConsumer=E,Fe.ContextProvider=w,Fe.Element=T,Fe.ForwardRef=k,Fe.Fragment=V,Fe.Lazy=C,Fe.Memo=N,Fe.Portal=F,Fe.Profiler=P,Fe.StrictMode=j,Fe.Suspense=B,Fe.isAsyncMode=Q,Fe.isConcurrentMode=$,Fe.isContextConsumer=L,Fe.isContextProvider=G,Fe.isElement=_,Fe.isForwardRef=X,Fe.isFragment=K,Fe.isLazy=ee,Fe.isMemo=D,Fe.isPortal=Z,Fe.isProfiler=ne,Fe.isStrictMode=ce,Fe.isSuspense=Ee,Fe.isValidElementType=I,Fe.typeOf=x}()),Fe}var Zm;function qm(){return Zm||(Zm=1,process.env.NODE_ENV==="production"?Ma.exports=EI():Ma.exports=II()),Ma.exports}/*
146
+ object-assign
147
+ (c) Sindre Sorhus
148
+ @license MIT
149
+ */var Rl,Qm;function SI(){if(Qm)return Rl;Qm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(s.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rl=n()?Object.assign:function(o,a){for(var u,s=i(o),l,c=1;c<arguments.length;c++){u=Object(arguments[c]);for(var d in u)t.call(u,d)&&(s[d]=u[d]);if(e){l=e(u);for(var f=0;f<l.length;f++)r.call(u,l[f])&&(s[l[f]]=u[l[f]])}}return s},Rl}var Ml,Km;function Vl(){if(Km)return Ml;Km=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ml=e,Ml}var jl,eg;function tg(){return eg||(eg=1,jl=Function.call.bind(Object.prototype.hasOwnProperty)),jl}var Ll,rg;function wI(){if(rg)return Ll;rg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vl(),r={},i=tg();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function n(o,a,u,s,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(i(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((s||"React class")+": "+u+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](a,c,s,u,null,t)}catch(h){d=h}if(d&&!(d instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+c+"` 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 r)){r[d.message]=!0;var g=l?l():"";e("Failed "+u+" type: "+d.message+(g??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ll=n,Ll}var Bl,ng;function AI(){if(ng)return Bl;ng=1;var e=qm(),t=SI(),r=Vl(),i=tg(),n=wI(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function a(){return null}return Bl=function(u,s){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d($){var L=$&&(l&&$[l]||$[c]);if(typeof L=="function")return L}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:y(),arrayOf:I,element:x(),elementType:v(),instanceOf:S,node:k(),objectOf:w,oneOf:E,oneOfType:T,shape:C,exact:N};function h($,L){return $===L?$!==0||1/$===1/L:$!==$&&L!==L}function p($,L){this.message=$,this.data=L&&typeof L=="object"?L:{},this.stack=""}p.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var L={},G=0;function _(K,ee,D,Z,ne,ce,Ee){if(Z=Z||f,ce=ce||D,Ee!==r){if(s){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=Z+":"+D;!L[Re]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ce+"` prop on `"+Z+"`. 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."),L[Re]=!0,G++)}}return ee[D]==null?K?ee[D]===null?new p("The "+ne+" `"+ce+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+ne+" `"+ce+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:$(ee,D,Z,ne,ce)}var X=_.bind(null,!1);return X.isRequired=_.bind(null,!0),X}function b($){function L(G,_,X,K,ee,D){var Z=G[_],ne=j(Z);if(ne!==$){var ce=B(Z);return new p("Invalid "+K+" `"+ee+"` of type "+("`"+ce+"` supplied to `"+X+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(L)}function y(){return m(a)}function I($){function L(G,_,X,K,ee){if(typeof $!="function")return new p("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var D=G[_];if(!Array.isArray(D)){var Z=j(D);return new p("Invalid "+K+" `"+ee+"` of type "+("`"+Z+"` supplied to `"+X+"`, expected an array."))}for(var ne=0;ne<D.length;ne++){var ce=$(D,ne,X,K,ee+"["+ne+"]",r);if(ce instanceof Error)return ce}return null}return m(L)}function x(){function $(L,G,_,X,K){var ee=L[G];if(!u(ee)){var D=j(ee);return new p("Invalid "+X+" `"+K+"` of type "+("`"+D+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return m($)}function v(){function $(L,G,_,X,K){var ee=L[G];if(!e.isValidElementType(ee)){var D=j(ee);return new p("Invalid "+X+" `"+K+"` of type "+("`"+D+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return m($)}function S($){function L(G,_,X,K,ee){if(!(G[_]instanceof $)){var D=$.name||f,Z=Q(G[_]);return new p("Invalid "+K+" `"+ee+"` of type "+("`"+Z+"` supplied to `"+X+"`, expected ")+("instance of `"+D+"`."))}return null}return m(L)}function E($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function L(G,_,X,K,ee){for(var D=G[_],Z=0;Z<$.length;Z++)if(h(D,$[Z]))return null;var ne=JSON.stringify($,function(Ee,z){var Re=B(z);return Re==="symbol"?String(z):z});return new p("Invalid "+K+" `"+ee+"` of value `"+String(D)+"` "+("supplied to `"+X+"`, expected one of "+ne+"."))}return m(L)}function w($){function L(G,_,X,K,ee){if(typeof $!="function")return new p("Property `"+ee+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var D=G[_],Z=j(D);if(Z!=="object")return new p("Invalid "+K+" `"+ee+"` of type "+("`"+Z+"` supplied to `"+X+"`, expected an object."));for(var ne in D)if(i(D,ne)){var ce=$(D,ne,X,K,ee+"."+ne,r);if(ce instanceof Error)return ce}return null}return m(L)}function T($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<$.length;L++){var G=$[L];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(G)+" at index "+L+"."),a}function _(X,K,ee,D,Z){for(var ne=[],ce=0;ce<$.length;ce++){var Ee=$[ce],z=Ee(X,K,ee,D,Z,r);if(z==null)return null;z.data&&i(z.data,"expectedType")&&ne.push(z.data.expectedType)}var Re=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+D+" `"+Z+"` supplied to "+("`"+ee+"`"+Re+"."))}return m(_)}function k(){function $(L,G,_,X,K){return F(L[G])?null:new p("Invalid "+X+" `"+K+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return m($)}function V($,L,G,_,X){return new p(($||"React class")+": "+L+" type `"+G+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function C($){function L(G,_,X,K,ee){var D=G[_],Z=j(D);if(Z!=="object")return new p("Invalid "+K+" `"+ee+"` of type `"+Z+"` "+("supplied to `"+X+"`, expected `object`."));for(var ne in $){var ce=$[ne];if(typeof ce!="function")return V(X,K,ee,ne,B(ce));var Ee=ce(D,ne,X,K,ee+"."+ne,r);if(Ee)return Ee}return null}return m(L)}function N($){function L(G,_,X,K,ee){var D=G[_],Z=j(D);if(Z!=="object")return new p("Invalid "+K+" `"+ee+"` of type `"+Z+"` "+("supplied to `"+X+"`, expected `object`."));var ne=t({},G[_],$);for(var ce in ne){var Ee=$[ce];if(i($,ce)&&typeof Ee!="function")return V(X,K,ee,ce,B(Ee));if(!Ee)return new p("Invalid "+K+" `"+ee+"` key `"+ce+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(G[_],null," ")+`
150
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var z=Ee(D,ce,X,K,ee+"."+ce,r);if(z)return z}return null}return m(L)}function F($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(F);if($===null||u($))return!0;var L=d($);if(L){var G=L.call($),_;if(L!==$.entries){for(;!(_=G.next()).done;)if(!F(_.value))return!1}else for(;!(_=G.next()).done;){var X=_.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function P($,L){return $==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function j($){var L=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":P(L,$)?"symbol":L}function B($){if(typeof $>"u"||$===null)return""+$;var L=j($);if(L==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return L}function U($){var L=B($);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function Q($){return!$.constructor||!$.constructor.name?f:$.constructor.name}return g.checkPropTypes=n,g.resetWarningCache=n.resetWarningCache,g.PropTypes=g,g},Bl}var $l,ig;function TI(){if(ig)return $l;ig=1;var e=Vl();function t(){}function r(){}return r.resetWarningCache=t,$l=function(){function i(a,u,s,l,c,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}}i.isRequired=i;function n(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},$l}var og;function OI(){if(og)return Ra.exports;if(og=1,process.env.NODE_ENV!=="production"){var e=qm(),t=!0;Ra.exports=AI()(e.isElement,t)}else Ra.exports=TI()();return Ra.exports}var kI=OI();const Ie=Fo(kI);function ag(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ag(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function pr(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ag(e))&&(i&&(i+=" "),i+=t);return i}function PI(e,t,r=void 0){const i={};for(const n in e){const o=e[n];let a="",u=!0;for(let s=0;s<o.length;s+=1){const l=o[s];l&&(a+=(u===!0?"":" ")+t(l),u=!1,r&&r[l]&&(a+=" "+r[l]))}i[n]=a}return i}var Va={exports:{}},Be={};/**
151
+ * @license React
152
+ * react-is.production.js
153
+ *
154
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
155
+ *
156
+ * This source code is licensed under the MIT license found in the
157
+ * LICENSE file in the root directory of this source tree.
158
+ */var sg;function NI(){if(sg)return Be;sg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function h(p){if(typeof p=="object"&&p!==null){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case r:case n:case i:case s:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case u:case d:case c:return p;case o:return p;default:return m}}case t:return m}}}return Be.ContextConsumer=o,Be.ContextProvider=a,Be.Element=e,Be.ForwardRef=u,Be.Fragment=r,Be.Lazy=d,Be.Memo=c,Be.Portal=t,Be.Profiler=n,Be.StrictMode=i,Be.Suspense=s,Be.SuspenseList=l,Be.isContextConsumer=function(p){return h(p)===o},Be.isContextProvider=function(p){return h(p)===a},Be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Be.isForwardRef=function(p){return h(p)===u},Be.isFragment=function(p){return h(p)===r},Be.isLazy=function(p){return h(p)===d},Be.isMemo=function(p){return h(p)===c},Be.isPortal=function(p){return h(p)===t},Be.isProfiler=function(p){return h(p)===n},Be.isStrictMode=function(p){return h(p)===i},Be.isSuspense=function(p){return h(p)===s},Be.isSuspenseList=function(p){return h(p)===l},Be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===n||p===i||p===s||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===c||p.$$typeof===a||p.$$typeof===o||p.$$typeof===u||p.$$typeof===g||p.getModuleId!==void 0)},Be.typeOf=h,Be}var $e={};/**
159
+ * @license React
160
+ * react-is.development.js
161
+ *
162
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
163
+ *
164
+ * This source code is licensed under the MIT license found in the
165
+ * LICENSE file in the root directory of this source tree.
166
+ */var ug;function FI(){return ug||(ug=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var m=p.$$typeof;switch(m){case t:switch(p=p.type,p){case i:case o:case n:case l:case c:case g:return p;default:switch(p=p&&p.$$typeof,p){case u:case s:case f:case d:return p;case a:return p;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");$e.ContextConsumer=a,$e.ContextProvider=u,$e.Element=t,$e.ForwardRef=s,$e.Fragment=i,$e.Lazy=f,$e.Memo=d,$e.Portal=r,$e.Profiler=o,$e.StrictMode=n,$e.Suspense=l,$e.SuspenseList=c,$e.isContextConsumer=function(p){return e(p)===a},$e.isContextProvider=function(p){return e(p)===u},$e.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},$e.isForwardRef=function(p){return e(p)===s},$e.isFragment=function(p){return e(p)===i},$e.isLazy=function(p){return e(p)===f},$e.isMemo=function(p){return e(p)===d},$e.isPortal=function(p){return e(p)===r},$e.isProfiler=function(p){return e(p)===o},$e.isStrictMode=function(p){return e(p)===n},$e.isSuspense=function(p){return e(p)===l},$e.isSuspenseList=function(p){return e(p)===c},$e.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===i||p===o||p===n||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===u||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},$e.typeOf=e}()),$e}var lg;function RI(){return lg||(lg=1,process.env.NODE_ENV==="production"?Va.exports=NI():Va.exports=FI()),Va.exports}var ja=RI();function Er(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function cg(e){if(R.isValidElement(e)||ja.isValidElementType(e)||!Er(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=cg(e[r])}),t}function Rt(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Er(e)&&Er(t)&&Object.keys(t).forEach(n=>{R.isValidElement(t[n])||ja.isValidElementType(t[n])?i[n]=t[n]:Er(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Er(e[n])?i[n]=Rt(e[n],t[n],r):r.clone?i[n]=Er(t[n])?cg(t[n]):t[n]:i[n]=t[n]}),i}function _i(e,t){return t?Rt(e,t,{clone:!1}):e}const Ur=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.string,Ie.object,Ie.array]):{};function dg(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,n)=>{const o=/min-width:\s*([0-9.]+)/;return+(i.match(o)?.[1]||0)-+(n.match(o)?.[1]||0)});return r.length?r.reduce((i,n)=>{const o=t[n];return delete i[n],i[n]=o,i},{...t}):t}function MI(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function VI(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
167
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Xr(18,`(${t})`));return null}const[,i,n]=r,o=Number.isNaN(+i)?i||0:+i;return e.containerQueries(n).up(o)}function jI(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function r(o,a){o.up=(...u)=>t(e.breakpoints.up(...u),a),o.down=(...u)=>t(e.breakpoints.down(...u),a),o.between=(...u)=>t(e.breakpoints.between(...u),a),o.only=(...u)=>t(e.breakpoints.only(...u),a),o.not=(...u)=>{const s=t(e.breakpoints.not(...u),a);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const i={},n=o=>(r(i,o),i);return r(n),{...e,containerQueries:n}}const La={xs:0,sm:600,md:900,lg:1200,xl:1536},fg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${La[e]}px)`},LI={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:La[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ir(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||fg;return t.reduce((a,u,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=i.breakpoints||fg;return Object.keys(t).reduce((a,u)=>{if(MI(o.keys,u)){const s=VI(i.containerQueries?i:LI,u);s&&(a[s]=r(t[u],u))}else if(Object.keys(o.values||La).includes(u)){const s=o.up(u);a[s]=r(t[u],u)}else{const s=u;a[s]=t[s]}return a},{})}return r(t)}function BI(e={}){return e.keys?.reduce((r,i)=>{const n=e.up(i);return r[n]={},r},{})||{}}function pg(e,t){return e.reduce((r,i)=>{const n=r[i];return(!n||Object.keys(n).length===0)&&delete r[i],r},t)}function Ba(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((n,o)=>n&&n[o]?n[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,n)=>i&&i[n]!=null?i[n]:null,e)}function $a(e,t,r,i=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||i:n=Ba(e,r)||i,t&&(n=t(n,i,e)),n}function nt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:n}=e,o=a=>{if(a[t]==null)return null;const u=a[t],s=a.theme,l=Ba(s,i)||{};return Ir(a,u,d=>{let f=$a(l,n,d);return d===f&&typeof d=="string"&&(f=$a(l,n,`${t}${d==="default"?"":cn(d)}`,d)),r===!1?f:{[r]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ur}:{},o.filterProps=[t],o}function $I(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const DI={m:"margin",p:"padding"},_I={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GI=$I(e=>{if(e.length>2)if(mg[e])e=mg[e];else return[e];const[t,r]=e.split(""),i=DI[t],n=_I[r]||"";return Array.isArray(n)?n.map(o=>i+o):[i+n]}),Da=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_a=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],HI=[...Da,..._a];function Gi(e,t,r,i){const n=Ba(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${o}.`),typeof n=="string"?n.startsWith("var(")&&o===0?0:n.startsWith("var(")&&o===1?n:`calc(${o} * ${n})`:n*o):Array.isArray(n)?o=>{if(typeof o=="string")return o;const a=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>n.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${a} > ${n.length-1}, you need to add the missing values.`].join(`
168
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
169
+ `)));const u=n[a];return o>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
170
+ `)),()=>{})}function Dl(e){return Gi(e,"spacing",8,"spacing")}function Hi(e,t){return typeof t=="string"||t==null?t:e(t)}function WI(e,t){return r=>e.reduce((i,n)=>(i[n]=Hi(t,r),i),{})}function zI(e,t,r,i){if(!t.includes(r))return null;const n=GI(r),o=WI(n,i),a=e[r];return Ir(e,a,o)}function gg(e,t){const r=Dl(e.theme);return Object.keys(e).map(i=>zI(e,t,i,r)).reduce(_i,{})}function Ze(e){return gg(e,Da)}Ze.propTypes=process.env.NODE_ENV!=="production"?Da.reduce((e,t)=>(e[t]=Ur,e),{}):{},Ze.filterProps=Da;function qe(e){return gg(e,_a)}qe.propTypes=process.env.NODE_ENV!=="production"?_a.reduce((e,t)=>(e[t]=Ur,e),{}):{},qe.filterProps=_a,process.env.NODE_ENV!=="production"&&HI.reduce((e,t)=>(e[t]=Ur,e),{});function Ga(...e){const t=e.reduce((i,n)=>(n.filterProps.forEach(o=>{i[o]=n}),i),{}),r=i=>Object.keys(i).reduce((n,o)=>t[o]?_i(n,t[o](i)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,n)=>Object.assign(i,n.propTypes),{}):{},r.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),r}function Ht(e){return typeof e!="number"?e:`${e}px solid`}function Wt(e,t){return nt({prop:e,themeKey:"borders",transform:t})}const XI=Wt("border",Ht),UI=Wt("borderTop",Ht),YI=Wt("borderRight",Ht),JI=Wt("borderBottom",Ht),ZI=Wt("borderLeft",Ht),qI=Wt("borderColor"),QI=Wt("borderTopColor"),KI=Wt("borderRightColor"),eS=Wt("borderBottomColor"),tS=Wt("borderLeftColor"),rS=Wt("outline",Ht),nS=Wt("outlineColor"),Ha=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gi(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Hi(t,i)});return Ir(e,e.borderRadius,r)}return null};Ha.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ur}:{},Ha.filterProps=["borderRadius"],Ga(XI,UI,YI,JI,ZI,qI,QI,KI,eS,tS,Ha,rS,nS);const Wa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gi(e.theme,"spacing",8,"gap"),r=i=>({gap:Hi(t,i)});return Ir(e,e.gap,r)}return null};Wa.propTypes=process.env.NODE_ENV!=="production"?{gap:Ur}:{},Wa.filterProps=["gap"];const za=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gi(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Hi(t,i)});return Ir(e,e.columnGap,r)}return null};za.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ur}:{},za.filterProps=["columnGap"];const Xa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gi(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Hi(t,i)});return Ir(e,e.rowGap,r)}return null};Xa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ur}:{},Xa.filterProps=["rowGap"];const iS=nt({prop:"gridColumn"}),oS=nt({prop:"gridRow"}),aS=nt({prop:"gridAutoFlow"}),sS=nt({prop:"gridAutoColumns"}),uS=nt({prop:"gridAutoRows"}),lS=nt({prop:"gridTemplateColumns"}),cS=nt({prop:"gridTemplateRows"}),dS=nt({prop:"gridTemplateAreas"}),fS=nt({prop:"gridArea"});Ga(Wa,za,Xa,iS,oS,aS,sS,uS,lS,cS,dS,fS);function Xn(e,t){return t==="grey"?t:e}const pS=nt({prop:"color",themeKey:"palette",transform:Xn}),mS=nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xn}),gS=nt({prop:"backgroundColor",themeKey:"palette",transform:Xn});Ga(pS,mS,gS);function Mt(e){return e<=1&&e!==0?`${e*100}%`:e}const hS=nt({prop:"width",transform:Mt}),_l=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||La[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Mt(r)}};return Ir(e,e.maxWidth,t)}return null};_l.filterProps=["maxWidth"];const vS=nt({prop:"minWidth",transform:Mt}),bS=nt({prop:"height",transform:Mt}),yS=nt({prop:"maxHeight",transform:Mt}),CS=nt({prop:"minHeight",transform:Mt});nt({prop:"size",cssProperty:"width",transform:Mt}),nt({prop:"size",cssProperty:"height",transform:Mt});const xS=nt({prop:"boxSizing"});Ga(hS,_l,vS,bS,yS,CS,xS);const Ua={border:{themeKey:"borders",transform:Ht},borderTop:{themeKey:"borders",transform:Ht},borderRight:{themeKey:"borders",transform:Ht},borderBottom:{themeKey:"borders",transform:Ht},borderLeft:{themeKey:"borders",transform:Ht},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ht},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ha},color:{themeKey:"palette",transform:Xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xn},backgroundColor:{themeKey:"palette",transform:Xn},p:{style:qe},pt:{style:qe},pr:{style:qe},pb:{style:qe},pl:{style:qe},px:{style:qe},py:{style:qe},padding:{style:qe},paddingTop:{style:qe},paddingRight:{style:qe},paddingBottom:{style:qe},paddingLeft:{style:qe},paddingX:{style:qe},paddingY:{style:qe},paddingInline:{style:qe},paddingInlineStart:{style:qe},paddingInlineEnd:{style:qe},paddingBlock:{style:qe},paddingBlockStart:{style:qe},paddingBlockEnd:{style:qe},m:{style:Ze},mt:{style:Ze},mr:{style:Ze},mb:{style:Ze},ml:{style:Ze},mx:{style:Ze},my:{style:Ze},margin:{style:Ze},marginTop:{style:Ze},marginRight:{style:Ze},marginBottom:{style:Ze},marginLeft:{style:Ze},marginX:{style:Ze},marginY:{style:Ze},marginInline:{style:Ze},marginInlineStart:{style:Ze},marginInlineEnd:{style:Ze},marginBlock:{style:Ze},marginBlockStart:{style:Ze},marginBlockEnd:{style:Ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wa},rowGap:{style:Xa},columnGap:{style:za},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mt},maxWidth:{style:_l},minWidth:{transform:Mt},height:{transform:Mt},maxHeight:{transform:Mt},minHeight:{transform:Mt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ES(...e){const t=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function IS(e,t){return typeof e=="function"?e(t):e}function SS(){function e(r,i,n,o){const a={[r]:i,theme:n},u=o[r];if(!u)return{[r]:i};const{cssProperty:s=r,themeKey:l,transform:c,style:d}=u;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[r]:i};const f=Ba(n,l)||{};return d?d(a):Ir(a,i,h=>{let p=$a(f,c,h);return h===p&&typeof h=="string"&&(p=$a(f,c,`${r}${h==="default"?"":cn(h)}`,h)),s===!1?p:{[s]:p}})}function t(r){const{sx:i,theme:n={},nested:o}=r||{};if(!i)return null;const a=n.unstable_sxConfig??Ua;function u(s){let l=s;if(typeof s=="function")l=s(n);else if(typeof s!="object")return s;if(!l)return null;const c=BI(n.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(g=>{const h=IS(l[g],n);if(h!=null)if(typeof h=="object")if(a[g])f=_i(f,e(g,h,n,a));else{const p=Ir({theme:n},h,m=>({[g]:m}));ES(p,h)?f[g]=t({sx:h,theme:n,nested:!0}):f=_i(f,p)}else f=_i(f,e(g,h,n,a))}),!o&&n.modularCssLayers?{"@layer sx":dg(n,pg(d,f))}:dg(n,pg(d,f))}return Array.isArray(i)?i.map(u):u(i)}return t}const Un=SS();Un.filterProps=["sx"];var wS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AS=Mp(function(e){return wS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),TS=AS,OS=function(t){return t!=="theme"},hg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?TS:OS},vg=function(t,r,i){var n;if(r){var o=r.shouldForwardProp;n=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&i&&(n=t.__emotion_forwardProp),n},kS=function(t){var r=t.cache,i=t.serialized,n=t.isStringTag;return pl(r,i,n),Up(function(){return Gp(r,i,n)}),null},PS=function e(t,r){var i=t.__emotion_real===t,n=i&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var u=vg(t,r,i),s=u||hg(n),l=!s("as");return function(){var c=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,h=1;h<g;h++)d.push(c[h],f[h])}var p=Jp(function(m,b,y){var I=l&&m.as||n,x="",v=[],S=m;if(m.theme==null){S={};for(var E in m)S[E]=m[E];S.theme=R.useContext(Zp)}typeof m.className=="string"?x=_p(b.registered,v,m.className):m.className!=null&&(x=m.className+" ");var w=ya(d.concat(v),b.registered,S);x+=b.key+"-"+w.name,a!==void 0&&(x+=" "+a);var T=l&&u===void 0?hg(I):s,k={};for(var V in m)l&&V==="as"||T(V)&&(k[V]=m[V]);return k.className=x,y&&(k.ref=y),R.createElement(R.Fragment,null,R.createElement(kS,{cache:b,serialized:w,isStringTag:typeof I=="string"}),R.createElement(I,k))});return p.displayName=o!==void 0?o:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=n,p.__emotion_styles=d,p.__emotion_forwardProp=u,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(m,b){var y=e(m,se({},r,b,{shouldForwardProp:vg(p,b,!0)}));return y.apply(void 0,d)},p}},NS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Gl=PS.bind(null);NS.forEach(function(e){Gl[e]=Gl(e)});/**
171
+ * @mui/styled-engine v7.3.1
172
+ *
173
+ * @license MIT
174
+ * This source code is licensed under the MIT license found in the
175
+ * LICENSE file in the root directory of this source tree.
176
+ */function FS(e,t){const r=Gl(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const n=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
177
+ `)):i.some(o=>o===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...i)}:r}function RS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const bg=[];function dn(e){return bg[0]=e,ya(bg)}const MS=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function VS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...n}=e,o=MS(t),a=Object.keys(o);function u(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-i/100}${r})`}function l(f,g){const h=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:g)-i/100}${r})`}function c(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):u(f)}function d(f){const g=a.indexOf(f);return g===0?u(a[1]):g===a.length-1?s(a[g]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:u,down:s,between:l,only:c,not:d,unit:r,...n}}const jS={borderRadius:4};function yg(e=8,t=Dl({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function LS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Cg(e={},...t){const{breakpoints:r={},palette:i={},spacing:n,shape:o={},...a}=e,u=VS(r),s=yg(n);let l=Rt({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:s,shape:{...jS,...o}},a);return l=jI(l),l.applyStyles=LS,l=t.reduce((c,d)=>Rt(c,d),l),l.unstable_sxConfig={...Ua,...a?.unstable_sxConfig},l.unstable_sx=function(d){return Un({sx:d,theme:this})},l}const BS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Hl(e,t,r="Mui"){const i=BS[t];return i?`${r}-${i}`:`${xI.generate(e)}-${t}`}function $S(e,t,r="Mui"){const i={};return t.forEach(n=>{i[n]=Hl(e,n,r)}),i}function xg(e,t=""){return e.displayName||e.name||t}function Eg(e,t,r){const i=xg(t);return e.displayName||(i!==""?`${r}(${i})`:r)}function DS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ja.ForwardRef:return Eg(e,e.render,"ForwardRef");case ja.Memo:return Eg(e,e.type,"memo");default:return}}}function Ig(e){const{variants:t,...r}=e,i={variants:t,style:dn(r),isProcessed:!0};return i.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=dn(n.style))}),i}const _S=Cg();function Wl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function GS(e){return e?(t,r)=>r[e]:null}function HS(e,t,r){e.theme=US(e.theme)?r:e.theme[t]||e.theme}function Ya(e,t,r){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(n=>Ya(e,n,r));if(Array.isArray(i?.variants)){let n;if(i.isProcessed)n=r?fn(i.style,r):i.style;else{const{variants:o,...a}=i;n=r?fn(dn(a),r):a}return Sg(e,i.variants,[n],r)}return i?.isProcessed?r?fn(dn(i.style),r):i.style:r?fn(dn(i),r):i}function Sg(e,t,r=[],i=void 0){let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(n))continue}else for(const u in a.props)if(e[u]!==a.props[u]&&e.ownerState?.[u]!==a.props[u])continue e;typeof a.style=="function"?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?fn(dn(a.style(n)),i):a.style(n))):r.push(i?fn(dn(a.style),i):a.style)}return r}function WS(e={}){const{themeId:t,defaultTheme:r=_S,rootShouldForwardProp:i=Wl,slotShouldForwardProp:n=Wl}=e;function o(u){HS(u,t,r)}return(u,s={})=>{RS(u,S=>S.filter(E=>E!==Un));const{name:l,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:g=GS(wg(c)),...h}=s,p=l&&l.startsWith("Mui")||c?"components":"custom",m=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,b=f||!1;let y=Wl;c==="Root"||c==="root"?y=i:c?y=n:YS(u)&&(y=void 0);const I=FS(u,{shouldForwardProp:y,label:XS(l,c),...h}),x=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(w){return Ya(w,S,w.theme.modularCssLayers?p:void 0)};if(Er(S)){const E=Ig(S);return function(T){return E.variants?Ya(T,E,T.theme.modularCssLayers?p:void 0):T.theme.modularCssLayers?fn(E.style,p):E.style}}return S},v=(...S)=>{const E=[],w=S.map(x),T=[];if(E.push(o),l&&g&&T.push(function(N){const P=N.theme.components?.[l]?.styleOverrides;if(!P)return null;const j={};for(const B in P)j[B]=Ya(N,P[B],N.theme.modularCssLayers?"theme":void 0);return g(N,j)}),l&&!m&&T.push(function(N){const P=N.theme?.components?.[l]?.variants;return P?Sg(N,P,[],N.theme.modularCssLayers?"theme":void 0):null}),b||T.push(Un),Array.isArray(w[0])){const C=w.shift(),N=new Array(E.length).fill(""),F=new Array(T.length).fill("");let P;P=[...N,...C,...F],P.raw=[...N,...C.raw,...F],E.unshift(P)}const k=[...E,...w,...T],V=I(...k);return u.muiName&&(V.muiName=u.muiName),process.env.NODE_ENV!=="production"&&(V.displayName=zS(l,c,u)),V};return I.withConfig&&(v.withConfig=I.withConfig),v}}function zS(e,t,r){return e?`${e}${cn(t||"")}`:`Styled(${DS(r)})`}function XS(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${wg(t||"Root")}`),r}function US(e){for(const t in e)return!1;return!0}function YS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function zl(e,t,r=!1){const i={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")i[o]={...e[o],...i[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],u=t[o];if(!u)i[o]=a||{};else if(!a)i[o]=u;else{i[o]={...u};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;i[o][l]=zl(a[l],u[l],r)}}}else o==="className"&&r&&t.className?i.className=pr(e?.className,t?.className):o==="style"&&r&&t.style?i.style={...e?.style,...t?.style}:i[o]===void 0&&(i[o]=e[o])}return i}function JS(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Xl(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),JS(e,t,r)}function ZS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Yr(e){if(e.type)return e;if(e.charAt(0)==="#")return Yr(ZS(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
178
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Xr(9,e));let i=e.substring(t+1,e.length-1),n;if(r==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${n}\` color space.
179
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Xr(10,n))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:r,values:i,colorSpace:n}}const qS=e=>{const t=Yr(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Wi=(e,t)=>{try{return qS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ja(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((n,o)=>o<3?parseInt(n,10):n):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Ag(e){e=Yr(e);const{values:t}=e,r=t[0],i=t[1]/100,n=t[2]/100,o=i*Math.min(n,1-n),a=(l,c=(l+r/30)%12)=>n-o*Math.max(Math.min(c-3,9-c,1),-1);let u="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(u+="a",s.push(t[3])),Ja({type:u,values:s})}function Ul(e){e=Yr(e);let t=e.type==="hsl"||e.type==="hsla"?Yr(Ag(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Tg(e,t){const r=Ul(e),i=Ul(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Og(e,t){return e=Yr(e),t=Xl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ja(e)}function pn(e,t,r){try{return Og(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Za(e,t){if(e=Yr(e),t=Xl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ja(e)}function Me(e,t,r){try{return Za(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function qa(e,t){if(e=Yr(e),t=Xl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ja(e)}function Ve(e,t,r){try{return qa(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function QS(e,t=.15){return Ul(e)>.5?Za(e,t):qa(e,t)}function Qa(e,t,r){try{return QS(e,t)}catch{return e}}const KS=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ie.node,Ie.object);function ew(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const n=t.components[r];return n.defaultProps?zl(n.defaultProps,i,t.components.mergeClassNameAndStyle):!n.styleOverrides&&!n.variants?zl(n,i,t.components.mergeClassNameAndStyle):i}function tw({props:e,name:t}){const r=R.useContext(KS);return ew({props:e,name:t,theme:{components:r}})}const kg={theme:void 0};function rw(e){let t,r;return function(n){let o=t;return(o===void 0||n.theme!==r)&&(kg.theme=n.theme,o=Ig(e(kg)),t=o,r=n.theme),o}}function nw(e=""){function t(...i){if(!i.length)return"";const n=i[0];return typeof n=="string"&&!n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${n}${t(...i.slice(1))})`:`, ${n}`}return(i,...n)=>`var(--${e?`${e}-`:""}${i}${t(...n)})`}const Pg=(e,t,r,i=[])=>{let n=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(n)?n[Number(o)]=r:n&&typeof n=="object"&&(n[o]=r):n&&typeof n=="object"&&(n[o]||(n[o]=i.includes(o)?[]:{}),n=n[o])})},iw=(e,t,r)=>{function i(n,o=[],a=[]){Object.entries(n).forEach(([u,s])=>{(!r||r&&!r([...o,u]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?i(s,[...o,u],Array.isArray(s)?[...a,u]:a):t([...o,u],s,a))})}i(e)},ow=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Yl(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},n={},o={},a={};return iw(e,(u,s,l)=>{if((typeof s=="string"||typeof s=="number")&&(!i||!i(u,s))){const c=`--${r?`${r}-`:""}${u.join("-")}`,d=ow(u,s);Object.assign(n,{[c]:d}),Pg(o,u,`var(${c})`,l),Pg(a,u,`var(${c}, ${d})`,l)}},u=>u[0]==="vars"),{css:n,vars:o,varsWithDefaults:a}}function aw(e,t={}){const{getSelector:r=b,disableCssColorScheme:i,colorSchemeSelector:n,enableContrastVars:o}=t,{colorSchemes:a={},components:u,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:f}=Yl(l,t);let g=f;const h={},{[s]:p,...m}=a;if(Object.entries(m||{}).forEach(([x,v])=>{const{vars:S,css:E,varsWithDefaults:w}=Yl(v,t);g=Rt(g,w),h[x]={css:E,vars:S}}),p){const{css:x,vars:v,varsWithDefaults:S}=Yl(p,t);g=Rt(g,S),h[s]={css:x,vars:v}}function b(x,v){let S=n;if(n==="class"&&(S=".%s"),n==="data"&&(S="[data-%s]"),n?.startsWith("data-")&&!n.includes("%s")&&(S=`[${n}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":v}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:g,generateThemeVars:()=>{let x={...c};return Object.entries(h).forEach(([,{vars:v}])=>{x=Rt(x,v)}),x},generateStyleSheets:()=>{const x=[],v=e.defaultColorScheme||"light";function S(T,k){Object.keys(k).length&&x.push(typeof T=="string"?{[T]:{...k}}:T)}S(r(void 0,{...d}),d);const{[v]:E,...w}=h;if(E){const{css:T}=E,k=a[v]?.palette?.mode,V=!i&&k?{colorScheme:k,...T}:{...T};S(r(v,{...V}),V)}return Object.entries(w).forEach(([T,{css:k}])=>{const V=a[T]?.palette?.mode,C=!i&&V?{colorScheme:V,...k}:{...k};S(r(T,{...C}),C)}),o&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function sw(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const zi={black:"#000",white:"#fff"},uw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},qn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ng(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zi.white,default:zi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Fg=Ng();function Rg(){return{text:{primary:zi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Jl=Rg();function Mg(e,t,r,i){const n=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=qa(e.main,n):t==="dark"&&(e.dark=Za(e.main,o)))}function Vg(e,t,r,i,n){const o=n.light||n,a=n.dark||n*1.5;t[r]||(t.hasOwnProperty(i)?t[r]=t[i]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function lw(e="light"){return e==="dark"?{main:Zn[200],light:Zn[50],dark:Zn[400]}:{main:Zn[700],light:Zn[400],dark:Zn[800]}}function cw(e="light"){return e==="dark"?{main:Yn[200],light:Yn[50],dark:Yn[400]}:{main:Yn[500],light:Yn[300],dark:Yn[700]}}function dw(e="light"){return e==="dark"?{main:Jn[500],light:Jn[300],dark:Jn[700]}:{main:Jn[700],light:Jn[400],dark:Jn[800]}}function fw(e="light"){return e==="dark"?{main:qn[400],light:qn[300],dark:qn[700]}:{main:qn[700],light:qn[500],dark:qn[900]}}function pw(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:Qn[800],light:Qn[500],dark:Qn[900]}}function mw(e="light"){return e==="dark"?{main:Xi[400],light:Xi[300],dark:Xi[700]}:{main:"#ed6c02",light:Xi[500],dark:Xi[900]}}function gw(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,colorSpace:n,...o}=e,a=e.primary||lw(t),u=e.secondary||cw(t),s=e.error||dw(t),l=e.info||fw(t),c=e.success||pw(t),d=e.warning||mw(t);function f(m){if(n)return gw(m);const b=Tg(m,Jl.text.primary)>=r?Jl.text.primary:Fg.text.primary;if(process.env.NODE_ENV!=="production"){const y=Tg(m,b);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${b} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
180
+ `))}return b}const g=({color:m,name:b,mainShade:y=500,lightShade:I=300,darkShade:x=700})=>{if(m={...m},!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
181
+ The color object needs to have a \`main\` property or a \`${y}\` property.`:Xr(11,b?` (${b})`:"",y));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
182
+ \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
183
+
184
+ Did you intend to use one of the following approaches?
185
+
186
+ import { green } from "@mui/material/colors";
187
+
188
+ const theme1 = createTheme({ palette: {
189
+ primary: green,
190
+ } });
191
+
192
+ const theme2 = createTheme({ palette: {
193
+ primary: { main: green[500] },
194
+ } });`:Xr(12,b?` (${b})`:"",JSON.stringify(m.main)));return n?(Vg(n,m,"light",I,i),Vg(n,m,"dark",x,i)):(Mg(m,"light",I,i),Mg(m,"dark",x,i)),m.contrastText||(m.contrastText=f(m.main)),m};let h;return t==="light"?h=Ng():t==="dark"&&(h=Rg()),process.env.NODE_ENV!=="production"&&(h||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Rt({common:{...zi},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:s,name:"error"}),warning:g({color:d,name:"warning"}),info:g({color:l,name:"info"}),success:g({color:c,name:"success"}),grey:uw,contrastThreshold:r,getContrastText:f,augmentColor:g,tonalOffset:i,...h},o)}function hw(e){const t={};return Object.entries(e).forEach(i=>{const[n,o]=i;typeof o=="object"&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function vw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bw(e){return Math.round(e*1e5)/1e5}const jg={textTransform:"uppercase"},Lg='"Roboto", "Helvetica", "Arial", sans-serif';function yw(e,t){const{fontFamily:r=Lg,fontSize:i=14,fontWeightLight:n=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:u=700,htmlFontSize:s=16,allVariants:l,pxToRem:c,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof s!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=i/14,g=c||(m=>`${m/s*f}rem`),h=(m,b,y,I,x)=>({fontFamily:r,fontWeight:m,fontSize:g(b),lineHeight:y,...r===Lg?{letterSpacing:`${bw(I/b)}em`}:{},...x,...l}),p={h1:h(n,96,1.167,-1.5),h2:h(n,60,1.2,-.5),h3:h(o,48,1.167,0),h4:h(o,34,1.235,.25),h5:h(o,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(o,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(o,16,1.5,.15),body2:h(o,14,1.43,.15),button:h(a,14,1.75,.4,jg),caption:h(o,12,1.66,.4),overline:h(o,12,2.66,1,jg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rt({htmlFontSize:s,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:n,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:u,...p},d,{clone:!1})}const Cw=.2,xw=.14,Ew=.12;function We(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ew})`].join(",")}const Iw=["none",We(0,2,1,-1,0,1,1,0,0,1,3,0),We(0,3,1,-2,0,2,2,0,0,1,5,0),We(0,3,3,-2,0,3,4,0,0,1,8,0),We(0,2,4,-1,0,4,5,0,0,1,10,0),We(0,3,5,-1,0,5,8,0,0,1,14,0),We(0,3,5,-1,0,6,10,0,0,1,18,0),We(0,4,5,-2,0,7,10,1,0,2,16,1),We(0,5,5,-3,0,8,10,1,0,3,14,2),We(0,5,6,-3,0,9,12,1,0,3,16,2),We(0,6,6,-3,0,10,14,1,0,4,18,3),We(0,6,7,-4,0,11,15,1,0,4,20,3),We(0,7,8,-4,0,12,17,2,0,5,22,4),We(0,7,8,-4,0,13,19,2,0,5,24,4),We(0,7,9,-4,0,14,21,2,0,5,26,4),We(0,8,9,-5,0,15,22,2,0,6,28,5),We(0,8,10,-5,0,16,24,2,0,6,30,5),We(0,8,11,-5,0,17,26,2,0,6,32,5),We(0,9,11,-5,0,18,28,2,0,7,34,6),We(0,9,12,-6,0,19,29,2,0,7,36,6),We(0,10,13,-6,0,20,31,3,0,8,38,7),We(0,10,13,-6,0,21,33,3,0,8,40,7),We(0,10,14,-6,0,22,35,3,0,8,42,7),We(0,11,14,-7,0,23,36,3,0,9,44,8),We(0,11,15,-7,0,24,38,3,0,9,46,8)],Sw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ww={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bg(e){return`${Math.round(e)}ms`}function Aw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tw(e){const t={...Sw,...e.easing},r={...ww,...e.duration};return{getAutoHeightDuration:Aw,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:u=t.easeInOut,delay:s=0,...l}=o;if(process.env.NODE_ENV!=="production"){const c=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!c(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(u)||console.error('MUI: Argument "easing" must be a string.'),!d(s)&&!c(s)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
195
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:Bg(a)} ${u} ${typeof s=="string"?s:Bg(s)}`).join(",")},...e,easing:t,duration:r}}const Ow={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kw(e){return Er(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $g(e={}){const t={...e};function r(i){const n=Object.entries(i);for(let o=0;o<n.length;o++){const[a,u]=n[o];!kw(u)||a.startsWith("unstable_")?delete i[a]:Er(u)&&(i[a]={...u},r(i[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
196
+
197
+ const theme = ${JSON.stringify(t,null,2)};
198
+
199
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
200
+ theme.transitions = createTransitions(theme.transitions || {});
201
+
202
+ export default theme;`}function Dg(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Pw=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let i=0;i<t.length;i+=1)r+=+t[i];return r};function Nw(e){Object.assign(e,{alpha(t,r){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Og(t,Pw(r))},lighten(t,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${Dg(r)})`:qa(t,r)},darken(t,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${Dg(r)})`:Za(t,r)}})}function ql(e={},...t){const{breakpoints:r,mixins:i={},spacing:n,palette:o={},transitions:a={},typography:u={},shape:s,colorSpace:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Xr(20));const d=Zl({...o,colorSpace:l}),f=Cg(e);let g=Rt(f,{mixins:vw(f.breakpoints,i),palette:d,shadows:Iw.slice(),typography:yw(d,u),transitions:Tw(a),zIndex:{...Ow}});if(g=Rt(g,c),g=t.reduce((h,p)=>Rt(h,p),g),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(m,b)=>{let y;for(y in m){const I=m[y];if(h.includes(y)&&Object.keys(I).length>0){if(process.env.NODE_ENV!=="production"){const x=Hl("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:I}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
203
+ `))}m[y]={}}}};Object.keys(g.components).forEach(m=>{const b=g.components[m].styleOverrides;b&&m.startsWith("Mui")&&p(b,m)})}return g.unstable_sxConfig={...Ua,...c?.unstable_sxConfig},g.unstable_sx=function(p){return Un({sx:p,theme:this})},g.toRuntimeSource=$g,Nw(g),g}function Fw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Rw=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Fw(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function _g(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gg(e){return e==="dark"?Rw:[]}function Mw(e){const{palette:t={mode:"light"},opacity:r,overlays:i,colorSpace:n,...o}=e,a=Zl({...t,colorSpace:n});return{palette:a,opacity:{..._g(a.mode),...r},overlays:i||Gg(a.mode),...o}}function Vw(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const jw=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lw=e=>(t,r)=>{const i=e.rootSelector||":root",n=e.colorSchemeSelector;let o=n;if(n==="class"&&(o=".%s"),n==="data"&&(o="[data-%s]"),n?.startsWith("data-")&&!n.includes("%s")&&(o=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return jw(e.cssVarPrefix).forEach(u=>{a[u]=r[u],delete r[u]}),o==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:a}}:o?{[o.replace("%s",t)]:a,[`${i}, ${o.replace("%s",t)}`]:r}:{[i]:{...r,...a}}}if(o&&o!=="media")return`${i}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(o)return o.replace("%s",String(t))}return i};function Bw(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Y(e,t,r){!e[t]&&r&&(e[t]=r)}function Ui(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ag(e)}function Sr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wi(Ui(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
204
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function $w(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mr=e=>{try{return e()}catch{}},Dw=(e="mui")=>nw(e);function Ql(e,t,r,i,n){if(!r)return;r=r===!0?{}:r;const o=n==="dark"?"dark":"light";if(!i){t[n]=Mw({...r,palette:{mode:o,...r?.palette},colorSpace:e});return}const{palette:a,...u}=ql({...i,palette:{mode:o,...r?.palette},colorSpace:e});return t[n]={...r,palette:a,opacity:{..._g(o),...r?.opacity},overlays:r?.overlays||Gg(o)},u}function _w(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:n=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:u=Vw,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],f=i||(r.light&&d!=="light"?"light":d),g=Dw(o),{[f]:h,light:p,dark:m,...b}=r,y={...b};let I=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Xr(21,f));let x;a&&(x="oklch");const v=Ql(x,y,I,c,f);p&&!y.light&&Ql(x,y,p,void 0,"light"),m&&!y.dark&&Ql(x,y,m,void 0,"dark");let S={defaultColorScheme:f,...v,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:g,colorSchemes:y,font:{...hw(v.typography),...v.font},spacing:$w(c.spacing)};Object.keys(S.colorSchemes).forEach(V=>{const C=S.colorSchemes[V].palette,N=P=>{const j=P.split("-"),B=j[1],U=j[2];return g(P,C[B][U])};C.mode==="light"&&(Y(C.common,"background","#fff"),Y(C.common,"onBackground","#000")),C.mode==="dark"&&(Y(C.common,"background","#000"),Y(C.common,"onBackground","#fff"));function F(P,j,B){if(x){let U;return P===pn&&(U=`transparent ${((1-B)*100).toFixed(0)}%`),P===Me&&(U=`#000 ${(B*100).toFixed(0)}%`),P===Ve&&(U=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${x}, ${j}, ${U})`}return P(j,B)}if(Bw(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Y(C.Alert,"errorColor",F(Me,C.error.light,.6)),Y(C.Alert,"infoColor",F(Me,C.info.light,.6)),Y(C.Alert,"successColor",F(Me,C.success.light,.6)),Y(C.Alert,"warningColor",F(Me,C.warning.light,.6)),Y(C.Alert,"errorFilledBg",N("palette-error-main")),Y(C.Alert,"infoFilledBg",N("palette-info-main")),Y(C.Alert,"successFilledBg",N("palette-success-main")),Y(C.Alert,"warningFilledBg",N("palette-warning-main")),Y(C.Alert,"errorFilledColor",mr(()=>C.getContrastText(C.error.main))),Y(C.Alert,"infoFilledColor",mr(()=>C.getContrastText(C.info.main))),Y(C.Alert,"successFilledColor",mr(()=>C.getContrastText(C.success.main))),Y(C.Alert,"warningFilledColor",mr(()=>C.getContrastText(C.warning.main))),Y(C.Alert,"errorStandardBg",F(Ve,C.error.light,.9)),Y(C.Alert,"infoStandardBg",F(Ve,C.info.light,.9)),Y(C.Alert,"successStandardBg",F(Ve,C.success.light,.9)),Y(C.Alert,"warningStandardBg",F(Ve,C.warning.light,.9)),Y(C.Alert,"errorIconColor",N("palette-error-main")),Y(C.Alert,"infoIconColor",N("palette-info-main")),Y(C.Alert,"successIconColor",N("palette-success-main")),Y(C.Alert,"warningIconColor",N("palette-warning-main")),Y(C.AppBar,"defaultBg",N("palette-grey-100")),Y(C.Avatar,"defaultBg",N("palette-grey-400")),Y(C.Button,"inheritContainedBg",N("palette-grey-300")),Y(C.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Y(C.Chip,"defaultBorder",N("palette-grey-400")),Y(C.Chip,"defaultAvatarColor",N("palette-grey-700")),Y(C.Chip,"defaultIconColor",N("palette-grey-700")),Y(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(C.LinearProgress,"primaryBg",F(Ve,C.primary.main,.62)),Y(C.LinearProgress,"secondaryBg",F(Ve,C.secondary.main,.62)),Y(C.LinearProgress,"errorBg",F(Ve,C.error.main,.62)),Y(C.LinearProgress,"infoBg",F(Ve,C.info.main,.62)),Y(C.LinearProgress,"successBg",F(Ve,C.success.main,.62)),Y(C.LinearProgress,"warningBg",F(Ve,C.warning.main,.62)),Y(C.Skeleton,"bg",x?F(pn,C.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Y(C.Slider,"primaryTrack",F(Ve,C.primary.main,.62)),Y(C.Slider,"secondaryTrack",F(Ve,C.secondary.main,.62)),Y(C.Slider,"errorTrack",F(Ve,C.error.main,.62)),Y(C.Slider,"infoTrack",F(Ve,C.info.main,.62)),Y(C.Slider,"successTrack",F(Ve,C.success.main,.62)),Y(C.Slider,"warningTrack",F(Ve,C.warning.main,.62));const P=x?F(Me,C.background.default,.6825):Qa(C.background.default,.8);Y(C.SnackbarContent,"bg",P),Y(C.SnackbarContent,"color",mr(()=>x?Jl.text.primary:C.getContrastText(P))),Y(C.SpeedDialAction,"fabHoverBg",Qa(C.background.paper,.15)),Y(C.StepConnector,"border",N("palette-grey-400")),Y(C.StepContent,"border",N("palette-grey-400")),Y(C.Switch,"defaultColor",N("palette-common-white")),Y(C.Switch,"defaultDisabledColor",N("palette-grey-100")),Y(C.Switch,"primaryDisabledColor",F(Ve,C.primary.main,.62)),Y(C.Switch,"secondaryDisabledColor",F(Ve,C.secondary.main,.62)),Y(C.Switch,"errorDisabledColor",F(Ve,C.error.main,.62)),Y(C.Switch,"infoDisabledColor",F(Ve,C.info.main,.62)),Y(C.Switch,"successDisabledColor",F(Ve,C.success.main,.62)),Y(C.Switch,"warningDisabledColor",F(Ve,C.warning.main,.62)),Y(C.TableCell,"border",F(Ve,F(pn,C.divider,1),.88)),Y(C.Tooltip,"bg",F(pn,C.grey[700],.92))}if(C.mode==="dark"){Y(C.Alert,"errorColor",F(Ve,C.error.light,.6)),Y(C.Alert,"infoColor",F(Ve,C.info.light,.6)),Y(C.Alert,"successColor",F(Ve,C.success.light,.6)),Y(C.Alert,"warningColor",F(Ve,C.warning.light,.6)),Y(C.Alert,"errorFilledBg",N("palette-error-dark")),Y(C.Alert,"infoFilledBg",N("palette-info-dark")),Y(C.Alert,"successFilledBg",N("palette-success-dark")),Y(C.Alert,"warningFilledBg",N("palette-warning-dark")),Y(C.Alert,"errorFilledColor",mr(()=>C.getContrastText(C.error.dark))),Y(C.Alert,"infoFilledColor",mr(()=>C.getContrastText(C.info.dark))),Y(C.Alert,"successFilledColor",mr(()=>C.getContrastText(C.success.dark))),Y(C.Alert,"warningFilledColor",mr(()=>C.getContrastText(C.warning.dark))),Y(C.Alert,"errorStandardBg",F(Me,C.error.light,.9)),Y(C.Alert,"infoStandardBg",F(Me,C.info.light,.9)),Y(C.Alert,"successStandardBg",F(Me,C.success.light,.9)),Y(C.Alert,"warningStandardBg",F(Me,C.warning.light,.9)),Y(C.Alert,"errorIconColor",N("palette-error-main")),Y(C.Alert,"infoIconColor",N("palette-info-main")),Y(C.Alert,"successIconColor",N("palette-success-main")),Y(C.Alert,"warningIconColor",N("palette-warning-main")),Y(C.AppBar,"defaultBg",N("palette-grey-900")),Y(C.AppBar,"darkBg",N("palette-background-paper")),Y(C.AppBar,"darkColor",N("palette-text-primary")),Y(C.Avatar,"defaultBg",N("palette-grey-600")),Y(C.Button,"inheritContainedBg",N("palette-grey-800")),Y(C.Button,"inheritContainedHoverBg",N("palette-grey-700")),Y(C.Chip,"defaultBorder",N("palette-grey-700")),Y(C.Chip,"defaultAvatarColor",N("palette-grey-300")),Y(C.Chip,"defaultIconColor",N("palette-grey-300")),Y(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(C.LinearProgress,"primaryBg",F(Me,C.primary.main,.5)),Y(C.LinearProgress,"secondaryBg",F(Me,C.secondary.main,.5)),Y(C.LinearProgress,"errorBg",F(Me,C.error.main,.5)),Y(C.LinearProgress,"infoBg",F(Me,C.info.main,.5)),Y(C.LinearProgress,"successBg",F(Me,C.success.main,.5)),Y(C.LinearProgress,"warningBg",F(Me,C.warning.main,.5)),Y(C.Skeleton,"bg",x?F(pn,C.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Y(C.Slider,"primaryTrack",F(Me,C.primary.main,.5)),Y(C.Slider,"secondaryTrack",F(Me,C.secondary.main,.5)),Y(C.Slider,"errorTrack",F(Me,C.error.main,.5)),Y(C.Slider,"infoTrack",F(Me,C.info.main,.5)),Y(C.Slider,"successTrack",F(Me,C.success.main,.5)),Y(C.Slider,"warningTrack",F(Me,C.warning.main,.5));const P=x?F(Ve,C.background.default,.985):Qa(C.background.default,.98);Y(C.SnackbarContent,"bg",P),Y(C.SnackbarContent,"color",mr(()=>x?Fg.text.primary:C.getContrastText(P))),Y(C.SpeedDialAction,"fabHoverBg",Qa(C.background.paper,.15)),Y(C.StepConnector,"border",N("palette-grey-600")),Y(C.StepContent,"border",N("palette-grey-600")),Y(C.Switch,"defaultColor",N("palette-grey-300")),Y(C.Switch,"defaultDisabledColor",N("palette-grey-600")),Y(C.Switch,"primaryDisabledColor",F(Me,C.primary.main,.55)),Y(C.Switch,"secondaryDisabledColor",F(Me,C.secondary.main,.55)),Y(C.Switch,"errorDisabledColor",F(Me,C.error.main,.55)),Y(C.Switch,"infoDisabledColor",F(Me,C.info.main,.55)),Y(C.Switch,"successDisabledColor",F(Me,C.success.main,.55)),Y(C.Switch,"warningDisabledColor",F(Me,C.warning.main,.55)),Y(C.TableCell,"border",F(Me,F(pn,C.divider,1),.68)),Y(C.Tooltip,"bg",F(pn,C.grey[700],.92))}Sr(C.background,"default"),Sr(C.background,"paper"),Sr(C.common,"background"),Sr(C.common,"onBackground"),Sr(C,"divider"),Object.keys(C).forEach(P=>{const j=C[P];P!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&Y(C[P],"mainChannel",Wi(Ui(j.main))),j.light&&Y(C[P],"lightChannel",Wi(Ui(j.light))),j.dark&&Y(C[P],"darkChannel",Wi(Ui(j.dark))),j.contrastText&&Y(C[P],"contrastTextChannel",Wi(Ui(j.contrastText))),P==="text"&&(Sr(C[P],"primary"),Sr(C[P],"secondary")),P==="action"&&(j.active&&Sr(C[P],"active"),j.selected&&Sr(C[P],"selected")))})}),S=t.reduce((V,C)=>Rt(V,C),S);const E={prefix:o,disableCssColorScheme:n,shouldSkipGeneratingVar:u,getSelector:Lw(S),enableContrastVars:a},{vars:w,generateThemeVars:T,generateStyleSheets:k}=aw(S,E);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([V,C])=>{S[V]=C}),S.generateThemeVars=T,S.generateStyleSheets=k,S.generateSpacing=function(){return yg(c.spacing,Dl(this))},S.getColorSchemeSelector=sw(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=u,S.unstable_sxConfig={...Ua,...c?.unstable_sxConfig},S.unstable_sx=function(C){return Un({sx:C,theme:this})},S.toRuntimeSource=$g,S}function Hg(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Zl({...r===!0?{}:r.palette,mode:t})})}function Gw(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:o=r?.mode,...a}=e,u=o||"light",s=n?.[u],l={...n,...r?{[u]:{...typeof s!="boolean"&&s,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return ql(e,...t);let c=r;"palette"in e||l[u]&&(l[u]!==!0?c=l[u].palette:u==="dark"&&(c={mode:"dark"}));const d=ql({...e,palette:c},...t);return d.defaultColorScheme=u,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},Hg(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},Hg(d,"light",l.light)),d}return!r&&!("light"in l)&&u==="light"&&(l.light=!0),_w({...a,colorSchemes:l,defaultColorScheme:u,...typeof i!="boolean"&&i},...t)}const Hw=Gw(),Ww="$$material";function zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xw=WS({themeId:Ww,defaultTheme:Hw,rootShouldForwardProp:e=>zw(e)&&e!=="classes"}),Uw=rw;process.env.NODE_ENV!=="production"&&(Ie.node,Ie.object.isRequired);function Yw(e){return tw(e)}function Jw(e){return Hl("MuiSvgIcon",e)}$S("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zw=e=>{const{color:t,fontSize:r,classes:i}=e,n={root:["root",t!=="inherit"&&`color${cn(t)}`,`fontSize${cn(r)}`]};return PI(n,Jw,i)},qw=Xw("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${cn(r.color)}`],t[`fontSize${cn(r.fontSize)}`]]}})(Uw(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ka=R.forwardRef(function(t,r){const i=Yw({props:t,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:u="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=i,h=R.isValidElement(n)&&n.type==="svg",p={...i,color:a,component:u,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const b=Zw(p);return A.jsxs(qw,{as:u,className:pr(b.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...m,...g,...h&&n.props,ownerState:p,children:[h?n.props.children:n,d?A.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:Ie.node,classes:Ie.object,className:Ie.string,color:Ie.oneOfType([Ie.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ie.string]),component:Ie.elementType,fontSize:Ie.oneOfType([Ie.oneOf(["inherit","large","medium","small"]),Ie.string]),htmlColor:Ie.string,inheritViewBox:Ie.bool,shapeRendering:Ie.string,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object]),titleAccess:Ie.string,viewBox:Ie.string}),Ka.muiName="SvgIcon";function Qw(e,t){function r(i,n){return A.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:n,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ka.muiName,R.memo(R.forwardRef(r))}const Kw=Qw(A.jsx("path",{d:"M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}),"ChevronLeftRounded"),Wg=O.forwardRef(({id:e,label:t,placeholder:r="Select...",value:i,selectedValues:n,onChange:o,onColorChange:a,selectOptions:u,loading:s=!1,multiSelect:l=!1,disabled:c=!1,isClearable:d=!0,required:f=!1,message:g,messageType:h="default",originalCase:p=!1,wrapperClassName:m,selectClassName:b,labelClassName:y,helpText:I,size:x="medium",filterOption:v,selectProps:S,components:E,tags:w,tooltip:T},k)=>{const V=()=>{switch(x){case"small":return{height:"28px",minHeight:"28px",fontSize:"12px",padding:"2px 8px"};case"large":return{height:"40px",minHeight:"40px",fontSize:"16px",padding:"8px 12px"};default:return{height:"32px",minHeight:"32px",fontSize:"14px",padding:"4px 10px"}}},C=_=>g&&h==="error"?"rgb(253 164 155)":g&&h==="success"?"rgb(34 197 94)":g&&h==="info"?"rgb(59 130 246)":_.isFocused?"rgb(0 108 207)":"rgb(229 229 229)",N=V(),F={control:(_,X)=>({..._,borderColor:C(X),backgroundColor:X.isDisabled?"rgb(245 245 245)":"rgb(255 255 255)",borderRadius:"6px",...N,opacity:X.isDisabled?.6:1,cursor:X.isDisabled?"not-allowed":"default",boxShadow:X.isFocused?"0 0 0 2px rgba(59, 130, 246, 0.1)":"none","&:hover":{borderColor:C(X)},transition:"all 0.2s ease-in-out"}),valueContainer:_=>({..._,fontSize:N.fontSize,padding:0,height:"auto",minHeight:"20px"}),input:_=>({..._,margin:"0",padding:"0",color:"inherit"}),indicatorsContainer:_=>({..._,fontSize:N.fontSize,padding:0,height:"20px"}),option:(_,X)=>({..._,fontFamily:"Inter",fontWeight:500,fontSize:N.fontSize,lineHeight:"1.2",borderBottom:"1px solid rgb(229 229 229)",backgroundColor:X.isSelected?"rgb(59 130 246)":X.isFocused?"rgb(245 245 245)":"rgb(255 255 255)",color:X.isSelected?"white":X.isDisabled?"rgb(163 163 163)":"inherit",cursor:X.isDisabled?"not-allowed":"pointer",opacity:X.isDisabled?.6:1,"&:hover":{backgroundColor:X.isSelected?"rgb(59 130 246)":X.isDisabled?"rgb(255 255 255)":"rgb(245 245 245)"}}),singleValue:(_,X)=>({..._,fontFamily:"Inter",fontWeight:500,fontSize:N.fontSize,lineHeight:"1.25rem",display:"block",color:X.isDisabled?"rgb(163 163 163)":"inherit"}),placeholder:(_,X)=>({..._,fontFamily:"Inter",fontSize:N.fontSize,fontWeight:500,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:X.isDisabled?"rgb(163 163 163)":"rgb(115 115 115)"}),multiValue:_=>({..._,backgroundColor:"rgb(230 241 252)",border:"1px solid rgb(198 225 249)",borderRadius:"4px",fontFamily:"Inter"}),multiValueLabel:_=>({..._,color:"rgb(0 108 207)",fontSize:"12px"}),multiValueRemove:_=>({..._,color:"rgb(0 108 207)",":hover":{backgroundColor:"rgb(230 241 252)",color:"rgb(220 38 38)"}}),menu:_=>({..._,backgroundColor:"rgb(255 255 255)",border:"1px solid rgb(229 229 229)",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),loadingIndicator:_=>({..._,color:"rgb(99 102 241)"}),noOptionsMessage:_=>({..._,color:"rgb(107 114 128)",fontSize:N.fontSize})},P=()=>h==="error"?"text-red-500 dark:text-red-400":h==="success"?"text-green-500 dark:text-green-400":h==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",j=()=>{switch(x){case"small":return"extra-small";case"large":return"medium";default:return"small"}},B=()=>A.jsx("div",{className:"flex items-center",children:A.jsx(Kw,{className:"-rotate-90 transition-transform duration-200",sx:{fontSize:x==="small"?"14px":x==="large"?"18px":"16px"}})}),U=_=>A.jsx("div",{className:"absolute top-0 left-0 h-full flex items-center dark:text-neutral-100",children:_.data.label}),Q=!!n?.length,L=d&&(Q||!!i),G=(_,X)=>{o(_,X),a?.(_)};return A.jsxs("div",{className:re("flex flex-col w-full",m),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!p&&"capitalize",y),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:j(),appearance:"subtitle",children:[t,f&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),I&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:I}),A.jsx(CI,{...S,ref:k,id:e,required:f,options:u,isClearable:L,isLoading:s,isDisabled:c,styles:F,isMulti:l,value:l?n:i,placeholder:r,filterOption:v,onChange:G,className:re("react-select-container",b),classNamePrefix:"react-select",components:{IndicatorsContainer:B,SingleValue:U,...E},"aria-required":f,"aria-invalid":g&&h==="error"?"true":"false","aria-describedby":g||I?`${e}-description`:void 0}),A.jsx(He.AnimatePresence,{children:g&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:h==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",P()),appearance:"custom",size:"extra-small",variant:"medium",children:g})})}),I&&!g&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:I})]})});Wg.displayName="CreatableSelectField";const Kl=[{value:"USD",label:"United States Dollar",symbol:"$"},{value:"EUR",label:"Euro",symbol:"€"},{value:"GBP",label:"British Pound",symbol:"£"},{value:"JPY",label:"Japanese Yen",symbol:"¥"},{value:"CAD",label:"Canadian Dollar",symbol:"C$"},{value:"AUD",label:"Australian Dollar",symbol:"A$"},{value:"CHF",label:"Swiss Franc",symbol:"CHF"},{value:"CNY",label:"Chinese Yuan",symbol:"¥"},{value:"SEK",label:"Swedish Krona",symbol:"kr"},{value:"NZD",label:"New Zealand Dollar",symbol:"NZ$"}],zg={USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NZD:"NZ$"},Xg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,placeholder:u,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",currencyCode:p="USD",allowCurrencyChange:m=!1,availableCurrencies:b,showSymbol:y=!0,formatValue:I=!0,min:x,max:v,decimalPlaces:S=2,inputProps:E,inputStyle:w},T)=>{const[k,V]=O.useState(!1),[C,N]=O.useState(p),[F,P]=O.useState(!1),j=b?Kl.filter(D=>b.includes(D.value)):Kl,B=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pl-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pl-12"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pl-10"}}},U=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",Q=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",$=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},L=D=>{if(D==null)return"";const Z=Number(D);return isNaN(Z)?String(D):I?Z.toLocaleString("en-US",{minimumFractionDigits:S,maximumFractionDigits:S}):String(Z)},G=D=>{const Z=D.target.value;if(Z===""||Z===null||Z===void 0)n(null,C);else{const ne=Number(Z);isNaN(ne)||n(ne,C)}},_=D=>{N(D),P(!1),n(r??null,D)},X=()=>{V(!0)},K=()=>{V(!1)},ee=B();return O.useEffect(()=>{N(p)},[p]),A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:$(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),A.jsxs("div",{className:"relative",children:[y&&A.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:zg[C]||C}),A.jsx("input",{...E,ref:T,id:e,type:k?"number":"text",value:k?r??"":L(r),defaultValue:i!==void 0?k?i??"":L(i):void 0,placeholder:u,required:a,disabled:o,min:x,max:v,step:1/Math.pow(10,S),onFocus:X,onBlur:K,onChange:G,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",ee.height,ee.padding,ee.fontSize,y?ee.symbolPadding:"",U(),m?"pr-20":"",o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:w,"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||g?`${e}-description`:void 0}),m&&A.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center",children:A.jsxs("div",{className:"relative",children:[A.jsxs("button",{type:"button",onClick:()=>P(!F),disabled:o,className:re("px-3 py-1 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-r-md border-l border-gray-300 dark:border-gray-600 transition-colors",o&&"opacity-50 cursor-not-allowed"),children:[C,A.jsx("svg",{className:"w-4 h-4 ml-1 inline-block",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),F&&A.jsx("div",{className:"absolute top-full right-0 mt-1 w-64 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-lg z-50 max-h-60 overflow-y-auto",children:j.map(D=>A.jsxs("button",{type:"button",onClick:()=>_(D.value),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 flex justify-between items-center",children:[A.jsxs("span",{children:[D.value," - ",D.label]}),A.jsx("span",{className:"text-gray-500",children:D.symbol})]},D.value))})]})}),F&&A.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>P(!1)})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",Q()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),g&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Xg.displayName="CurrencyInputField";const Ug=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,message:u,messageType:s="default",wrapperClassName:l,inputClassName:c,labelClassName:d,helpText:f,size:g="medium",minDate:h,maxDate:p,startPlaceholder:m="Start date",endPlaceholder:b="End date",allowClear:y=!0,inputProps:I},x)=>{const v=r!==void 0?r:i||{startDate:null,endDate:null},S=()=>{switch(g){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},E=()=>s==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":s==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":s==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",w=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",T=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},k=B=>{if(!B)return"";const U=B.getFullYear(),Q=String(B.getMonth()+1).padStart(2,"0"),$=String(B.getDate()).padStart(2,"0");return`${U}-${Q}-${$}`},V=B=>{if(!B)return null;const U=new Date(B);return isNaN(U.getTime())?null:U},C=B=>{const U=V(B.target.value);n({startDate:U,endDate:v.endDate})},N=B=>{const U=V(B.target.value);n({startDate:v.startDate,endDate:U})},F=()=>{n({startDate:null,endDate:null})},P=B=>B?k(B):void 0,j=S();return A.jsxs("div",{className:re("flex flex-col w-full",l),ref:x,children:[t&&A.jsx("label",{htmlFor:`${e}-start`,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",d),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:T(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),f&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:f}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:"flex-1",children:A.jsx("input",{...I,id:`${e}-start`,type:"date",value:k(v.startDate),onChange:C,disabled:o,required:a,min:P(h),max:P(p),placeholder:m,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,E(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u||f?`${e}-description`:void 0})}),A.jsx("div",{className:"flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 12H6"})})}),A.jsx("div",{className:"flex-1",children:A.jsx("input",{...I,id:`${e}-end`,type:"date",value:k(v.endDate),onChange:N,disabled:o,required:a,min:P(v.startDate||h),max:P(p),placeholder:b,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,E(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u||f?`${e}-description`:void 0})}),y&&(v.startDate||v.endDate)&&!o&&A.jsx("button",{type:"button",onClick:F,className:"flex-shrink-0 p-1 text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200 transition-colors","aria-label":"Clear date range",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),A.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-neutral-400 dark:text-neutral-500",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),A.jsx(He.AnimatePresence,{children:u&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:s==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})}),f&&!u&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:f})]})});Ug.displayName="DateRange";const Yg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,onImmediateChange:o,disabled:a=!1,required:u=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:d,inputClassName:f,labelClassName:g,helpText:h,size:p="medium",type:m="text",debounceTimeout:b=300,min:y,max:I,maxLength:x,pattern:v,inputProps:S,inputStyle:E,onKeyDown:w,onFocus:T,onBlur:k},V)=>{const[C,N]=O.useState(r||i||""),[F,P]=O.useState(r||i||""),j=()=>{switch(p){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},B=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",U=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",Q=()=>{switch(p){case"small":return"extra-small";case"large":return"medium";default:return"small"}};O.useEffect(()=>{const G=setTimeout(()=>{F!==C&&(P(C),n(C))},b);return()=>clearTimeout(G)},[C,b,n,F]),O.useEffect(()=>{r!==void 0&&r!==C&&(N(r),P(r))},[r,C]);const $=O.useCallback(G=>{const _=G.target.value;N(_),o?.(_)},[o]),L=j();return A.jsxs("div",{className:re("flex flex-col w-full",d),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",g),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:Q(),appearance:"subtitle",children:[t,u&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),h&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:h}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{...S,ref:V,id:e,type:m,value:C,defaultValue:i,placeholder:s,required:u,disabled:a,min:y,max:I,maxLength:x,pattern:v,onChange:$,onKeyDown:w,onFocus:T,onBlur:k,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",L.height,L.padding,L.fontSize,B(),a&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",f),style:E,"aria-required":u,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||h?`${e}-description`:void 0}),C!==F&&A.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:A.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"})})]}),x&&A.jsx("div",{className:"mt-1 text-right",children:A.jsxs(Ce,{className:re("text-xs",C.length>x*.9?"text-orange-500":C.length===x?"text-red-500":"text-neutral-400 dark:text-neutral-500"),appearance:"custom",size:"extra-small",children:[C.length,"/",x]})}),A.jsx(He.AnimatePresence,{children:l&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",U()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),h&&!l&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:h})]})});Yg.displayName="DebounceInputField";const Jg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,placeholder:u,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",min:p=0,max:m=100,step:b=.01,decimalPlaces:y=2,showSymbol:I=!0,allowNegative:x=!1,inputProps:v,inputStyle:S,onKeyDown:E,onFocus:w,onBlur:T},k)=>{const V=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pr-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pr-10"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pr-9"}}},C=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",F=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},P=Q=>{const $=Q.target.value;if($===""||$===null||$===void 0)n(null);else{const L=Number($);if(!isNaN(L)){let G=L;!x&&G<0&&(G=0),p!==void 0&&G<p&&(G=p),m!==void 0&&G>m&&(G=m);const _=Math.pow(10,y);G=Math.round(G*_)/_,n(G)}}},j=Q=>{w?.(Q)},B=Q=>{T?.(Q)},U=V();return A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:F(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{...v,ref:k,id:e,type:"number",value:r??"",defaultValue:i??"",placeholder:u,required:a,disabled:o,min:x?void 0:p,max:m,step:b,onChange:P,onKeyDown:E,onFocus:j,onBlur:B,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",U.height,U.padding,U.fontSize,I?U.symbolPadding:"",C(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:S,"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||g?`${e}-description`:void 0}),I&&A.jsx("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:"%"})]}),r!=null&&A.jsxs("div",{className:"mt-1 flex justify-between items-center text-xs",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[r<p&&A.jsxs("span",{className:"text-orange-500",children:["Below minimum (",p,"%)"]}),r>m&&A.jsxs("span",{className:"text-orange-500",children:["Above maximum (",m,"%)"]}),r>=p&&r<=m&&A.jsx("span",{className:"text-green-500",children:"Valid range"})]}),A.jsxs("span",{className:"text-neutral-400 dark:text-neutral-500",children:[r.toFixed(y),"%"]})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),g&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Jg.displayName="PercentageInputField";const e5=(e,t,r,i,n)=>{const o={small:"w-7 h-4 after:h-3 after:w-3 after:top-0.5 after:left-0.5",medium:"w-9 h-5 after:h-4 after:w-4 after:top-0.5 after:left-0.5",large:"w-11 h-6 after:h-5 after:w-5 after:top-0.5 after:left-0.5"},a={small:"peer-checked:after:translate-x-3",medium:"peer-checked:after:translate-x-4",large:"peer-checked:after:translate-x-5"};return re("p-0.5 rounded-full peer after:content-[''] after:absolute after:rounded-full after:transition-all bg-gray-200",o[n],a[n],{"dark:bg-neutral-400 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-500":r==="secondary"&&!e,"dark:bg-neutral-500 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-700":r==="primary"&&!e,"peer-checked:bg-blue-600 dark:peer-checked:bg-primary-900 after:bg-white dark:after:bg-primary-500":e,"after:bg-white dark:after:bg-neutral-700":!e,"text-white dark:text-neutral-900":t,"cursor-not-allowed opacity-70":i})},Zg=O.forwardRef(({id:e,checked:t,onChange:r,label:i,required:n=!1,disabled:o=!1,message:a,messageType:u="default",wrapperClassName:s,toggleClassName:l,labelClassName:c,helpText:d,size:f="medium",labelDirection:g="top",hideStatus:h=!1,statusText:p,withIcon:m=!1,icon:b,variant:y="primary",originalCase:I=!1,stopClickPropagation:x=!0},v)=>{const S=g==="top",E=g==="left",w=g==="right",T=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",k=N=>{o||r(N.target.checked)},V=()=>A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),C=()=>A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})});return A.jsxs("div",{className:re("flex flex-col w-full",s),onClick:N=>{x&&N.stopPropagation()},children:[S&&i&&A.jsx("div",{className:"w-full flex justify-between flex-wrap mb-1",children:A.jsx("label",{htmlFor:e,className:re("text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!I&&"capitalize",c),children:A.jsxs(Ce,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[i,n&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})}),d&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:d}),A.jsxs("div",{className:"flex items-center",children:[E&&i&&A.jsx(Ce,{size:"small",variant:"medium",className:re("mr-2 text-neutral-700 dark:text-neutral-200",c),appearance:"custom",children:i}),A.jsxs("label",{className:re("relative inline-flex items-center",w||p?"":"w-min",o?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:N=>N.stopPropagation(),children:[A.jsx("input",{ref:v,type:"checkbox",id:e,onChange:k,disabled:o,checked:t,className:re("sr-only peer w-full",l),"aria-required":n,"aria-invalid":a&&u==="error"?"true":"false","aria-describedby":a||d?`${e}-description`:void 0}),A.jsx("div",{className:e5(t,m,y,o,f),children:m&&A.jsx("div",{className:"flex items-center justify-center h-full",children:A.jsx("div",{className:re("z-10 transition-all transform",f==="small"&&(t?"translate-x-2 translate-y-[-2px]":"translate-x-[-6px] translate-y-[-2px]"),f==="medium"&&(t?"translate-x-[8.5px] translate-y-[-2px]":"translate-x-[-8px] translate-y-[-2px]"),f==="large"&&(t?"translate-x-3 translate-y-[-2px]":"translate-x-[-10px] translate-y-[-2px]")),children:t?b?.checkedIcon?b.checkedIcon:A.jsx(V,{}):b?.uncheckedIcon?b.uncheckedIcon:A.jsx(C,{})})})}),w&&i&&A.jsx(Ce,{size:"small",variant:"medium",className:re("ml-2 text-neutral-700 dark:text-neutral-300",c),appearance:"custom",children:i}),!h&&A.jsx(Ce,{size:"small",variant:"medium",className:"ml-2 text-neutral-900 dark:text-neutral-100",appearance:"custom",children:p||(t?"Yes":"No")})]})]}),A.jsx(He.AnimatePresence,{children:a&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:u==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",T()),appearance:"custom",size:"extra-small",variant:"medium",children:a})})}),d&&!a&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:d})]})});Zg.displayName="Toggle";const qg=O.forwardRef(({status:e,children:t,className:r,size:i="medium","aria-label":n},o)=>{const a=()=>{switch(i){case"small":return"text-xs px-1.5 py-0.5";case"large":return"text-base px-3 py-1.5";default:return"text-sm px-2 py-1"}},u=()=>{switch(e?.toLowerCase()){case"purple":return"bg-purple-50 text-purple-500 border border-purple-100 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800";case"blue":return"bg-blue-50 text-blue-500 border border-blue-100 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800";case"teal":return"bg-teal-50 text-teal-500 border border-teal-100 dark:bg-teal-950 dark:text-teal-400 dark:border-teal-800";case"green":return"bg-green-50 text-green-500 border border-green-100 dark:bg-green-950 dark:text-green-400 dark:border-green-800";case"yellow":return"bg-yellow-50 text-yellow-600 border border-yellow-100 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800";case"orange":return"bg-orange-50 text-orange-500 border border-orange-100 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800";case"peach":return"bg-orange-50 text-orange-400 border border-orange-100 dark:bg-orange-950 dark:text-orange-300 dark:border-orange-800";case"red":return"bg-red-50 text-red-500 border border-red-100 dark:bg-red-950 dark:text-red-400 dark:border-red-800";case"navy":return"bg-slate-50 text-slate-700 border border-slate-100 dark:bg-slate-950 dark:text-slate-400 dark:border-slate-800";case"grey":return"bg-neutral-50 text-neutral-500 border border-neutral-100 dark:bg-neutral-950 dark:text-neutral-400 dark:border-neutral-800";default:return"bg-blue-50 text-blue-600 border border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800"}};return A.jsx("span",{ref:o,className:re("inline-flex items-center justify-center font-medium rounded-md transition-colors",a(),u(),r),"aria-label":n||`Status: ${e||"default"}`,role:"status",children:t})});qg.displayName="StatusColorMapping";const Qg=O.forwardRef(({status:e="default",children:t,appearance:r="outline",size:i="md",className:n,isRounded:o=!1,capitalize:a=!0,"aria-label":u},s)=>{const l=h=>!h||!a?h:h.replace(/\w\S*/g,p=>p.charAt(0).toUpperCase()+p.substr(1).toLowerCase()),c=()=>{switch(i){case"sm":return"text-xs px-1.5 py-0.5";case"lg":return"text-sm px-3 py-1.5";default:return"text-xs px-2 py-1"}},d=()=>{switch(e){case"primary":case"default":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-600 dark:text-yellow-300 border border-yellow-300 dark:border-yellow-700";case"error":return"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-300 border border-red-300 dark:border-red-700";case"neutral":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-600 dark:text-neutral-300 border border-neutral-300 dark:border-neutral-700";case"success":return"bg-green-50 dark:bg-green-950 text-green-600 dark:text-green-300 border border-green-300 dark:border-green-700";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";default:return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700"}},f=()=>{switch(e){case"primary":case"default":return"bg-blue-600 dark:bg-blue-700 text-white";case"warning":return"bg-yellow-600 dark:bg-yellow-700 text-white";case"success":return"bg-green-600 dark:bg-green-700 text-white";case"error":return"bg-red-600 dark:bg-red-700 text-white";case"neutral":return"bg-neutral-600 dark:bg-neutral-700 text-white";case"info":return"bg-blue-600 dark:bg-blue-700 text-white";default:return"bg-blue-600 dark:bg-blue-700 text-white"}},g=()=>r==="filled"?f():d();return A.jsx("span",{ref:s,className:re("inline-flex items-center justify-center font-medium transition-colors",o?"rounded-full":"rounded",c(),g(),n),"aria-label":u||`Badge: ${e}`,role:"status",children:l(t)})});Qg.displayName="Badge";const Kg=O.forwardRef(({status:e,children:t,additionalChildren:r,ExpandedComponent:i,expandable:n=!1,icon:o,className:a,onClick:u,"aria-label":s},l)=>{const[c,d]=O.useState(!1),f=()=>{switch(e){case"success":return"bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-300 border-l-4 border-green-400 dark:border-green-600";case"error":return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-l-4 border-red-400 dark:border-red-600";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300 border-l-4 border-yellow-400 dark:border-yellow-600";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"archived":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-700 dark:text-neutral-300 border-l-4 border-neutral-400 dark:border-neutral-600";case"canceled":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"queued":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"paused":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"awaiting_action":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"skipped":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"pending":return"bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 border-l-4 border-purple-400 dark:border-purple-600";default:return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600"}},g=()=>{if(o)return o;const m="w-5 h-5 flex-shrink-0";switch(e){case"success":return A.jsx("svg",{className:re(m,"text-green-600 dark:text-green-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.236 4.53L7.53 10.06a.75.75 0 00-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"error":return A.jsx("svg",{className:re(m,"text-red-600 dark:text-red-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"warning":return A.jsx("svg",{className:re(m,"text-yellow-600 dark:text-yellow-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"info":case"queued":case"pending":return A.jsx("svg",{className:re(m,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"paused":return A.jsx("svg",{className:re(m,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"})});case"archived":case"canceled":case"skipped":return A.jsx("svg",{className:re(m,"text-gray-600 dark:text-gray-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"awaiting_action":return A.jsx("svg",{className:re(m,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z",clipRule:"evenodd"})});default:return A.jsx("svg",{className:re(m,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})}},h=()=>{(n||e==="error")&&(d(!c),u?.())},p=n||e==="error";return A.jsxs("div",{ref:l,className:re("w-full",a),children:[A.jsxs("div",{className:re("flex items-center justify-between p-4 rounded-lg font-medium text-sm transition-all duration-200",f(),p&&["cursor-pointer select-none","hover:shadow-md","active:scale-[0.99]"]),onClick:h,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:m=>{p&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},"aria-label":s||`Banner: ${e}`,"aria-expanded":p?c:void 0,children:[A.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[g(),A.jsx("span",{className:"flex-1",children:t})]}),A.jsxs("div",{className:"flex items-center gap-2",children:[r&&A.jsx("div",{className:"flex items-center",children:r}),p&&A.jsx("div",{className:"flex items-center",children:A.jsx("svg",{className:re("w-5 h-5 transition-transform duration-200",c?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),A.jsx(He.AnimatePresence,{children:c&&i&&A.jsx(He.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:A.jsx("div",{className:"pt-2",children:A.jsx(i,{children:t})})})})]})});Kg.displayName="Banner";const e0=O.forwardRef(({pdfUrl:e,width:t="100%",height:r="100vh",className:i,iframeClassName:n,title:o="PDF Viewer",showLoading:a=!0,loadingComponent:u,errorComponent:s,onError:l,onLoad:c,allowFullScreen:d=!0,"aria-label":f},g)=>{const[h,p]=O.useState(!0),[m,b]=O.useState(!1),y=()=>{p(!1),b(!1),c?.()},I=()=>{p(!1),b(!0),l?.()},x=A.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:A.jsxs("div",{className:"text-center",children:[A.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),A.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm",children:"Loading PDF..."})]})}),v=A.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:A.jsxs("div",{className:"text-center p-6",children:[A.jsx("svg",{className:"mx-auto h-12 w-12 text-red-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.998-.833-2.768 0L3.046 16.5c-.77.833.192 2.5 1.732 2.5z"})}),A.jsx("h3",{className:"text-lg font-medium text-neutral-900 dark:text-neutral-100 mb-2",children:"Failed to load PDF"}),A.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm mb-4",children:"The PDF document could not be displayed. Please check the URL or try again later."}),A.jsx("button",{onClick:()=>{b(!1),p(!0);const E=document.querySelector(`iframe[src="${e}"]`);E&&(E.src=E.src)},className:"bg-blue-600 text-white px-4 py-2 rounded-md text-sm hover:bg-blue-700 transition-colors",children:"Retry"})]})});return!e||!(E=>{try{return new URL(E,window.location.href).pathname.toLowerCase().endsWith(".pdf")||E.includes("pdf")}catch{return!1}})(e)?A.jsx("div",{ref:g,className:re("relative overflow-hidden",i),style:{width:t,height:r},children:s||v}):A.jsxs("div",{ref:g,className:re("relative overflow-hidden",i),style:{width:t,height:r},"aria-label":f||`PDF Viewer: ${o}`,children:[h&&a&&A.jsx("div",{className:"absolute inset-0 z-10",children:u||x}),m&&A.jsx("div",{className:"absolute inset-0 z-10",children:s||v}),!m&&A.jsx("iframe",{src:e,title:o,className:re("w-full h-full border-none",h&&"opacity-0",n),onLoad:y,onError:I,allowFullScreen:d,loading:"lazy",sandbox:"allow-same-origin allow-scripts allow-forms","aria-label":f||`PDF document: ${o}`}),A.jsx("div",{className:"sr-only",children:"PDF document viewer. Use your browser's PDF controls to navigate, zoom, or download the document."})]})});e0.displayName="PdfViewer";const t0=({ref:e,handler:t,enabled:r=!0})=>{O.useEffect(()=>{if(!r)return;const i=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t,r])},r0=O.forwardRef(({children:e,component:t,placement:r="bottom",isOpen:i,toggleMenu:n,parentContainer:o,noSpacing:a=!1,triggerClassName:u,containerClassName:s,className:l,showArrow:c=!1,offset:d=8,disableOutsideClick:f=!1,"aria-label":g,disabled:h=!1},p)=>{const m=O.useRef(null),b=O.useRef(null);t0({ref:b,handler:()=>{!f&&i&&n?.()},enabled:i&&!f}),O.useEffect(()=>{if(!i||!m.current||!b.current)return;const S=m.current,E=b.current,w=S.getBoundingClientRect(),T=E.getBoundingClientRect(),k={width:window.innerWidth,height:window.innerHeight};let V=0,C=0;switch(r){case"top":V=w.top-T.height-d,C=w.left+(w.width-T.width)/2;break;case"top-start":V=w.top-T.height-d,C=w.left;break;case"top-end":V=w.top-T.height-d,C=w.right-T.width;break;case"bottom":V=w.bottom+d,C=w.left+(w.width-T.width)/2;break;case"bottom-start":V=w.bottom+d,C=w.left;break;case"bottom-end":V=w.bottom+d,C=w.right-T.width;break;case"left":V=w.top+(w.height-T.height)/2,C=w.left-T.width-d;break;case"left-start":V=w.top,C=w.left-T.width-d;break;case"left-end":V=w.bottom-T.height,C=w.left-T.width-d;break;case"right":V=w.top+(w.height-T.height)/2,C=w.right+d;break;case"right-start":V=w.top,C=w.right+d;break;case"right-end":V=w.bottom-T.height,C=w.right+d;break}C<0&&(C=8),C+T.width>k.width&&(C=k.width-T.width-8),V<0&&(V=8),V+T.height>k.height&&(V=k.height-T.height-8),E.style.top=`${V}px`,E.style.left=`${C}px`},[i,r,d]);const y=S=>{h||n?.(S)},I=S=>{S.key==="Escape"&&i&&n?.()},x=()=>{const S="absolute w-2 h-2 bg-white dark:bg-neutral-800 transform rotate-45 border";switch(r){case"top":case"top-start":case"top-end":return re(S,"bottom-[-4px] border-t-0 border-l-0");case"bottom":case"bottom-start":case"bottom-end":return re(S,"top-[-4px] border-b-0 border-r-0");case"left":case"left-start":case"left-end":return re(S,"right-[-4px] border-l-0 border-b-0");case"right":case"right-start":case"right-end":return re(S,"left-[-4px] border-r-0 border-t-0");default:return re(S,"top-[-4px] border-b-0 border-r-0")}},v=()=>{switch(r){case"top":case"bottom":return{left:"50%",transform:"translateX(-50%)"};case"top-start":case"bottom-start":return{left:"12px"};case"top-end":case"bottom-end":return{right:"12px"};case"left":case"right":return{top:"50%",transform:"translateY(-50%)"};case"left-start":case"right-start":return{top:"12px"};case"left-end":case"right-end":return{bottom:"12px"};default:return{left:"50%",transform:"translateX(-50%)"}}};return A.jsxs("div",{ref:p,className:re("relative inline-block",l),children:[A.jsx("button",{ref:m,onClick:y,onKeyDown:I,className:re("flex items-center justify-center outline-none focus:outline-none transition-colors",!a&&"p-2",h&&"opacity-50 cursor-not-allowed",u),"aria-label":g,"aria-expanded":i,"aria-haspopup":"true",disabled:h,type:"button",children:e}),i&&Sn.createPortal(A.jsx(He.AnimatePresence,{children:A.jsxs(He.motion.div,{ref:b,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:re("fixed z-[9999] bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-neutral-200 dark:border-neutral-700","focus:outline-none",s),style:{minWidth:"120px"},role:"menu","aria-orientation":"vertical",tabIndex:-1,children:[c&&A.jsx("div",{className:x(),style:v()}),A.jsx("div",{className:"relative",children:t})]})}),document.getElementById(o)||document.body)]})});r0.displayName="Popper";const Yi=e=>typeof e=="number"&&!isNaN(e),mn=e=>typeof e=="string",Vt=e=>typeof e=="function",es=e=>mn(e)||Vt(e)?e:null,ec=e=>O.isValidElement(e)||mn(e)||Vt(e)||Yi(e);function t5(e,t,r){r===void 0&&(r=300);const{scrollHeight:i,style:n}=e;requestAnimationFrame(()=>{n.minHeight="initial",n.height=i+"px",n.transition=`all ${r}ms`,requestAnimationFrame(()=>{n.height="0",n.padding="0",n.margin="0",setTimeout(t,r)})})}function ts(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:n=!0,collapseDuration:o=300}=e;return function(a){let{children:u,position:s,preventExitTransition:l,done:c,nodeRef:d,isIn:f,playToast:g}=a;const h=i?`${t}--${s}`:t,p=i?`${r}--${s}`:r,m=O.useRef(0);return O.useLayoutEffect(()=>{const b=d.current,y=h.split(" "),I=x=>{x.target===d.current&&(g(),b.removeEventListener("animationend",I),b.removeEventListener("animationcancel",I),m.current===0&&x.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",I),b.addEventListener("animationcancel",I)},[]),O.useEffect(()=>{const b=d.current,y=()=>{b.removeEventListener("animationend",y),n?t5(b,c,o):c()};f||(l?y():(m.current=1,b.className+=` ${p}`,b.addEventListener("animationend",y)))},[f]),O.createElement(O.Fragment,null,u)}}function n0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ct=new Map;let Ji=[];const tc=new Set,r5=e=>tc.forEach(t=>t(e)),i0=()=>Ct.size>0;function o0(e,t){var r;if(t)return!((r=Ct.get(t))==null||!r.isToastActive(e));let i=!1;return Ct.forEach(n=>{n.isToastActive(e)&&(i=!0)}),i}function a0(e,t){ec(e)&&(i0()||Ji.push({content:e,options:t}),Ct.forEach(r=>{r.buildToast(e,t)}))}function s0(e,t){Ct.forEach(r=>{t!=null&&t!=null&&t.containerId?t?.containerId===r.id&&r.toggle(e,t?.id):r.toggle(e,t?.id)})}function n5(e){const{subscribe:t,getSnapshot:r,setProps:i}=O.useRef(function(o){const a=o.containerId||1;return{subscribe(u){const s=function(c,d,f){let g=1,h=0,p=[],m=[],b=[],y=d;const I=new Map,x=new Set,v=()=>{b=Array.from(I.values()),x.forEach(w=>w())},S=w=>{m=w==null?[]:m.filter(T=>T!==w),v()},E=w=>{const{toastId:T,onOpen:k,updateId:V,children:C}=w.props,N=V==null;w.staleId&&I.delete(w.staleId),I.set(T,w),m=[...m,w.props.toastId].filter(F=>F!==w.staleId),v(),f(n0(w,N?"added":"updated")),N&&Vt(k)&&k(O.isValidElement(C)&&C.props)};return{id:c,props:y,observe:w=>(x.add(w),()=>x.delete(w)),toggle:(w,T)=>{I.forEach(k=>{T!=null&&T!==k.props.toastId||Vt(k.toggle)&&k.toggle(w)})},removeToast:S,toasts:I,clearQueue:()=>{h-=p.length,p=[]},buildToast:(w,T)=>{if((G=>{let{containerId:_,toastId:X,updateId:K}=G;const ee=_?_!==c:c!==1,D=I.has(X)&&K==null;return ee||D})(T))return;const{toastId:k,updateId:V,data:C,staleId:N,delay:F}=T,P=()=>{S(k)},j=V==null;j&&h++;const B={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(T).filter(G=>{let[_,X]=G;return X!=null})),toastId:k,updateId:V,data:C,closeToast:P,isIn:!1,className:es(T.className||y.toastClassName),bodyClassName:es(T.bodyClassName||y.bodyClassName),progressClassName:es(T.progressClassName||y.progressClassName),autoClose:!T.isLoading&&(U=T.autoClose,Q=y.autoClose,U===!1||Yi(U)&&U>0?U:Q),deleteToast(){const G=I.get(k),{onClose:_,children:X}=G.props;Vt(_)&&_(O.isValidElement(X)&&X.props),f(n0(G,"removed")),I.delete(k),h--,h<0&&(h=0),p.length>0?E(p.shift()):v()}};var U,Q;B.closeButton=y.closeButton,T.closeButton===!1||ec(T.closeButton)?B.closeButton=T.closeButton:T.closeButton===!0&&(B.closeButton=!ec(y.closeButton)||y.closeButton);let $=w;O.isValidElement(w)&&!mn(w.type)?$=O.cloneElement(w,{closeToast:P,toastProps:B,data:C}):Vt(w)&&($=w({closeToast:P,toastProps:B,data:C}));const L={content:$,props:B,staleId:N};y.limit&&y.limit>0&&h>y.limit&&j?p.push(L):Yi(F)?setTimeout(()=>{E(L)},F):E(L)},setProps(w){y=w},setToggle:(w,T)=>{I.get(w).toggle=T},isToastActive:w=>m.some(T=>T===w),getSnapshot:()=>b}}(a,o,r5);Ct.set(a,s);const l=s.observe(u);return Ji.forEach(c=>a0(c.content,c.options)),Ji=[],()=>{l(),Ct.delete(a)}},setProps(u){var s;(s=Ct.get(a))==null||s.setProps(u)},getSnapshot(){var u;return(u=Ct.get(a))==null?void 0:u.getSnapshot()}}}(e)).current;i(e);const n=O.useSyncExternalStore(t,r,r);return{getToastToRender:function(o){if(!n)return[];const a=new Map;return e.newestOnTop&&n.reverse(),n.forEach(u=>{const{position:s}=u.props;a.has(s)||a.set(s,[]),a.get(s).push(u)}),Array.from(a,u=>o(u[0],u[1]))},isToastActive:o0,count:n?.length}}function i5(e){const[t,r]=O.useState(!1),[i,n]=O.useState(!1),o=O.useRef(null),a=O.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:s,closeToast:l,onClick:c,closeOnClick:d}=e;var f,g;function h(){r(!0)}function p(){r(!1)}function m(I){const x=o.current;a.canDrag&&x&&(a.didMove=!0,t&&p(),a.delta=e.draggableDirection==="x"?I.clientX-a.start:I.clientY-a.start,a.start!==I.clientX&&(a.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",b);const I=o.current;if(a.canDrag&&a.didMove&&I){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return n(!0),e.closeToast(),void e.collapseAll();I.style.transition="transform 0.2s, opacity 0.2s",I.style.removeProperty("transform"),I.style.removeProperty("opacity")}}(g=Ct.get((f={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||g.setToggle(f.id,f.fn),O.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(I){if(e.draggable===!0||e.draggable===I.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",b);const x=o.current;a.canCloseOnClick=!0,a.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(a.start=I.clientX,a.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(a.start=I.clientY,a.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(I){const{top:x,bottom:v,left:S,right:E}=o.current.getBoundingClientRect();I.nativeEvent.type!=="touchend"&&e.pauseOnHover&&I.clientX>=S&&I.clientX<=E&&I.clientY>=x&&I.clientY<=v?p():h()}};return u&&s&&(y.onMouseEnter=p,e.stacked||(y.onMouseLeave=h)),d&&(y.onClick=I=>{c&&c(I),a.canCloseOnClick&&l()}),{playToast:h,pauseToast:p,isRunning:t,preventExitTransition:i,toastRef:o,eventHandlers:y}}function o5(e){let{delay:t,isRunning:r,closeToast:i,type:n="default",hide:o,className:a,style:u,controlledProgress:s,progress:l,rtl:c,isIn:d,theme:f}=e;const g=o||s&&l===0,h={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};s&&(h.transform=`scaleX(${l})`);const p=pr("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${n}`,{"Toastify__progress-bar--rtl":c}),m=Vt(a)?a({rtl:c,type:n,defaultClassName:p}):pr(p,a),b={[s&&l>=1?"onTransitionEnd":"onAnimationEnd"]:s&&l<1?null:()=>{d&&i()}};return O.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},O.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${n}`}),O.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:m,style:h,...b}))}let a5=1;const u0=()=>""+a5++;function s5(e){return e&&(mn(e.toastId)||Yi(e.toastId))?e.toastId:u0()}function Zi(e,t){return a0(e,t),t.toastId}function rs(e,t){return{...t,type:t&&t.type||e,toastId:s5(t)}}function ns(e){return(t,r)=>Zi(t,rs(e,r))}function me(e,t){return Zi(e,rs("default",t))}me.loading=(e,t)=>Zi(e,rs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),me.promise=function(e,t,r){let i,{pending:n,error:o,success:a}=t;n&&(i=mn(n)?me.loading(n,r):me.loading(n.render,{...r,...n}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(c,d,f)=>{if(d==null)return void me.dismiss(i);const g={type:c,...u,...r,data:f},h=mn(d)?{render:d}:d;return i?me.update(i,{...g,...h}):me(h.render,{...g,...h}),f},l=Vt(e)?e():e;return l.then(c=>s("success",a,c)).catch(c=>s("error",o,c)),l},me.success=ns("success"),me.info=ns("info"),me.error=ns("error"),me.warning=ns("warning"),me.warn=me.warning,me.dark=(e,t)=>Zi(e,rs("default",{theme:"dark",...t})),me.dismiss=function(e){(function(t){var r;if(i0()){if(t==null||mn(r=t)||Yi(r))Ct.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const i=Ct.get(t.containerId);i?i.removeToast(t.id):Ct.forEach(n=>{n.removeToast(t.id)})}}else Ji=Ji.filter(i=>t!=null&&i.options.toastId!==t)})(e)},me.clearWaitingQueue=function(e){e===void 0&&(e={}),Ct.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},me.isActive=o0,me.update=function(e,t){t===void 0&&(t={});const r=((i,n)=>{var o;let{containerId:a}=n;return(o=Ct.get(a||1))==null?void 0:o.toasts.get(i)})(e,t);if(r){const{props:i,content:n}=r,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:u0()};o.toastId!==e&&(o.staleId=e);const a=o.render||n;delete o.render,Zi(a,o)}},me.done=e=>{me.update(e,{progress:1})},me.onChange=function(e){return tc.add(e),()=>{tc.delete(e)}},me.play=e=>s0(!0,e),me.pause=e=>s0(!1,e);const u5=typeof window<"u"?O.useLayoutEffect:O.useEffect,is=e=>{let{theme:t,type:r,isLoading:i,...n}=e;return O.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},rc={info:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return O.createElement("div",{className:"Toastify__spinner"})}},l5=e=>{const{isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:n,playToast:o}=i5(e),{closeButton:a,children:u,autoClose:s,onClick:l,type:c,hideProgressBar:d,closeToast:f,transition:g,position:h,className:p,style:m,bodyClassName:b,bodyStyle:y,progressClassName:I,progressStyle:x,updateId:v,role:S,progress:E,rtl:w,toastId:T,deleteToast:k,isIn:V,isLoading:C,closeOnClick:N,theme:F}=e,P=pr("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":N}),j=Vt(p)?p({rtl:w,position:h,type:c,defaultClassName:P}):pr(P,p),B=function(L){let{theme:G,type:_,isLoading:X,icon:K}=L,ee=null;const D={theme:G,type:_};return K===!1||(Vt(K)?ee=K({...D,isLoading:X}):O.isValidElement(K)?ee=O.cloneElement(K,D):X?ee=rc.spinner():(Z=>Z in rc)(_)&&(ee=rc[_](D))),ee}(e),U=!!E||!s,Q={closeToast:f,type:c,theme:F};let $=null;return a===!1||($=Vt(a)?a(Q):O.isValidElement(a)?O.cloneElement(a,Q):function(L){let{closeToast:G,theme:_,ariaLabel:X="close"}=L;return O.createElement("button",{className:`Toastify__close-button Toastify__close-button--${_}`,type:"button",onClick:K=>{K.stopPropagation(),G(K)},"aria-label":X},O.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},O.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Q)),O.createElement(g,{isIn:V,done:k,position:h,preventExitTransition:r,nodeRef:i,playToast:o},O.createElement("div",{id:T,onClick:l,"data-in":V,className:j,...n,style:m,ref:i},O.createElement("div",{...V&&{role:S},className:Vt(b)?b({type:c}):pr("Toastify__toast-body",b),style:y},B!=null&&O.createElement("div",{className:pr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},B),O.createElement("div",null,u)),$,O.createElement(o5,{...v&&!U?{key:`pb-${v}`}:{},rtl:w,theme:F,delay:s,isRunning:t,isIn:V,closeToast:f,hide:d,type:c,style:x,className:I,controlledProgress:U,progress:E||0})))},os=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},c5=ts(os("bounce",!0)),d5=ts(os("slide",!0));ts(os("zoom")),ts(os("flip"));const f5={position:"top-right",transition:c5,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function p5(e){let t={...f5,...e};const r=e.stacked,[i,n]=O.useState(!0),o=O.useRef(null),{getToastToRender:a,isToastActive:u,count:s}=n5(t),{className:l,style:c,rtl:d,containerId:f}=t;function g(p){const m=pr("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":d});return Vt(l)?l({position:p,rtl:d,defaultClassName:m}):pr(m,es(l))}function h(){r&&(n(!0),me.play())}return u5(()=>{if(r){var p;const m=o.current.querySelectorAll('[data-in="true"]'),b=12,y=(p=t.position)==null?void 0:p.includes("top");let I=0,x=0;Array.from(m).reverse().forEach((v,S)=>{const E=v;E.classList.add("Toastify__toast--stacked"),S>0&&(E.dataset.collapsed=`${i}`),E.dataset.pos||(E.dataset.pos=y?"top":"bot");const w=I*(i?.2:1)+(i?0:b*S);E.style.setProperty("--y",`${y?w:-1*w}px`),E.style.setProperty("--g",`${b}`),E.style.setProperty("--s",""+(1-(i?x:0))),I+=E.offsetHeight,x+=.025})}},[i,s,r]),O.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{r&&(n(!1),me.pause())},onMouseLeave:h},a((p,m)=>{const b=m.length?{...c}:{...c,pointerEvents:"none"};return O.createElement("div",{className:g(p),style:b,key:`container-${p}`},m.map(y=>{let{content:I,props:x}=y;return O.createElement(l5,{...x,stacked:r,collapseAll:h,isIn:u(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},I)}))}))}const m5=({size:e=24,fill:t="#12B76A"})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,xmlns:"http://www.w3.org/2000/svg",children:A.jsx("g",{mask:"url(#mask0_4874_46615)",children:A.jsx("path",{d:"M10.6 13.8L8.425 11.625C8.24167 11.4417 8.01267 11.3543 7.738 11.363C7.46267 11.371 7.23333 11.4667 7.05 11.65C6.86667 11.8333 6.775 12.0667 6.775 12.35C6.775 12.6333 6.86667 12.8667 7.05 13.05L9.9 15.9C10.0833 16.0833 10.3167 16.175 10.6 16.175C10.8833 16.175 11.1167 16.0833 11.3 15.9L16.975 10.225C17.1583 10.0417 17.246 9.81233 17.238 9.537C17.2293 9.26233 17.1333 9.03333 16.95 8.85C16.7667 8.66667 16.5333 8.575 16.25 8.575C15.9667 8.575 15.7333 8.66667 15.55 8.85L10.6 13.8ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:t})})}),g5=({size:e=24,fill:t="#F04438"})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("g",{id:"error",children:A.jsx("g",{mask:"url(#mask0_4874_46622)",children:A.jsx("path",{id:"error_2",d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})})}),h5=({size:e=24,fill:t="#F79009"})=>A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99ZM2.74 18C1.97 19.33 2.93 21 4.47 21H19.53C21.07 21 22.03 19.33 21.26 18L13.73 4.99C12.96 3.66 11.04 3.66 10.27 4.99L2.74 18ZM11 11V13C11 13.55 11.45 14 12 14C12.55 14 13 13.55 13 13V11C13 10.45 12.55 10 12 10C11.45 10 11 10.45 11 11ZM11 16H13V18H11V16Z",fill:t})}),v5=({size:e=24,fill:t="#016DCF"})=>A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[A.jsx("mask",{id:"mask0_32271_5688",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:A.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),A.jsx("g",{mask:"url(#mask0_32271_5688)",children:A.jsx("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})]}),b5=({size:e=24,fill:t="#016DCF"})=>A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[A.jsx("mask",{id:"mask0_35096_2621",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:A.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),A.jsx("g",{mask:"url(#mask0_35096_2621)",children:A.jsx("path",{d:"M8 20H16V17C16 15.9 15.6083 14.9583 14.825 14.175C14.0417 13.3917 13.1 13 12 13C10.9 13 9.95833 13.3917 9.175 14.175C8.39167 14.9583 8 15.9 8 17V20ZM12 11C13.1 11 14.0417 10.6083 14.825 9.825C15.6083 9.04167 16 8.1 16 7V4H8V7C8 8.1 8.39167 9.04167 9.175 9.825C9.95833 10.6083 10.9 11 12 11ZM5 22C4.71667 22 4.47917 21.9042 4.2875 21.7125C4.09583 21.5208 4 21.2833 4 21C4 20.7167 4.09583 20.4792 4.2875 20.2875C4.47917 20.0958 4.71667 20 5 20H6V17C6 15.9833 6.2375 15.0292 6.7125 14.1375C7.1875 13.2458 7.85 12.5333 8.7 12C7.85 11.4667 7.1875 10.7542 6.7125 9.8625C6.2375 8.97083 6 8.01667 6 7V4H5C4.71667 4 4.47917 3.90417 4.2875 3.7125C4.09583 3.52083 4 3.28333 4 3C4 2.71667 4.09583 2.47917 4.2875 2.2875C4.47917 2.09583 4.71667 2 5 2H19C19.2833 2 19.5208 2.09583 19.7125 2.2875C19.9042 2.47917 20 2.71667 20 3C20 3.28333 19.9042 3.52083 19.7125 3.7125C19.5208 3.90417 19.2833 4 19 4H18V7C18 8.01667 17.7625 8.97083 17.2875 9.8625C16.8125 10.7542 16.15 11.4667 15.3 12C16.15 12.5333 16.8125 13.2458 17.2875 14.1375C17.7625 15.0292 18 15.9833 18 17V20H19C19.2833 20 19.5208 20.0958 19.7125 20.2875C19.9042 20.4792 20 20.7167 20 21C20 21.2833 19.9042 21.5208 19.7125 21.7125C19.5208 21.9042 19.2833 22 19 22H5Z",fill:t})})]}),y5=({size:e=16})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})}),C5=e=>{switch(e){case"success":return A.jsx("div",{className:"w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(m5,{size:24,fill:"#12B76A"})});case"error":return A.jsx("div",{className:"w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(g5,{fill:"#F04438",size:24})});case"warning":return A.jsx("div",{className:"w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(h5,{fill:"#F79009",size:24})});case"info":return A.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(v5,{})});case"in-progress":return A.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(b5,{})});default:return null}},x5={success:"border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",error:"border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",warning:"border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",info:"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600","in-progress":"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"},E5=({closeToast:e})=>A.jsx("button",{onClick:e,className:"text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors",children:A.jsx(y5,{size:16})}),I5=({position:e="bottom-right",autoClose:t=3e3,hideProgressBar:r=!0,newestOnTop:i=!0,closeOnClick:n=!0,pauseOnFocusLoss:o=!1,draggable:a=!0,pauseOnHover:u=!0,rtl:s=!1,className:l,style:c={zIndex:1e5},...d})=>A.jsx(p5,{position:e,transition:d5,autoClose:t,hideProgressBar:r,newestOnTop:i,closeOnClick:n,rtl:s,pauseOnFocusLoss:o,draggable:a,pauseOnHover:u,icon:({type:f})=>C5(f),bodyStyle:{gap:"4px"},style:c,toastClassName:f=>{const{type:g="",defaultClassName:h=""}=f||{};return`w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${x5[g]} ${l||""}`},closeButton:E5,...d}),S5={success:(e,t)=>me.success(e,t),error:(e,t)=>me.error(e,t),warning:(e,t)=>me.warning(e,t),info:(e,t)=>me.info(e,t),inProgress:(e,t)=>me(e,{...t,type:"in-progress"}),dismiss:e=>me.dismiss(e),isActive:e=>me.isActive(e)};typeof window<"u"&&(window.CODEIUM_REACT_CODE_VERSION="1.0.12");function l0(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function nc(e,t,r,i){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(c){try{l(i.next(c))}catch(d){a(d)}}function s(c){try{l(i.throw(c))}catch(d){a(d)}}function l(c){c.done?o(c.value):n(c.value).then(u,s)}l((i=i.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function It(e,t){if(!e)throw new Error(t)}const w5=34028234663852886e22,A5=-34028234663852886e22,T5=4294967295,O5=2147483647,k5=-2147483648;function as(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>O5||e<k5)throw new Error("invalid int 32: "+e)}function ic(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>T5||e<0)throw new Error("invalid uint 32: "+e)}function c0(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>w5||e<A5))throw new Error("invalid float 32: "+e)}const d0=Symbol("@bufbuild/protobuf/enum-type");function P5(e){const t=e[d0];return It(t,"missing enum type on enum object"),t}function f0(e,t,r,i){e[d0]=p0(t,r.map(n=>({no:n.no,name:n.name,localName:e[n.no]})))}function p0(e,t,r){const i=Object.create(null),n=Object.create(null),o=[];for(const a of t){const u=m0(a);o.push(u),i[a.name]=u,n[a.no]=u}return{typeName:e,values:o,findName(a){return i[a]},findNumber(a){return n[a]}}}function N5(e,t,r){const i={};for(const n of t){const o=m0(n);i[o.localName]=o.no,i[o.no]=o.localName}return f0(i,e,t),i}function m0(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class _e{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){const i=this.getType(),n=i.runtime.bin,o=n.makeReadOptions(r);return n.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,r){const i=this.getType(),n=i.runtime.json,o=n.makeReadOptions(r);return n.readMessage(i,t,o,this),this}fromJsonString(t,r){let i;try{i=JSON.parse(t)}catch(n){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${n instanceof Error?n.message:String(n)}`)}return this.fromJson(i,r)}toBinary(t){const r=this.getType(),i=r.runtime.bin,n=i.makeWriteOptions(t),o=n.writerFactory();return i.writeMessage(this,o,n),o.finish()}toJson(t){const r=this.getType(),i=r.runtime.json,n=i.makeWriteOptions(t);return i.writeMessage(this,n)}toJsonString(t){var r;const i=this.toJson(t);return JSON.stringify(i,null,(r=t?.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function F5(e,t,r,i){var n;const o=(n=i?.localName)!==null&&n!==void 0?n:t.substring(t.lastIndexOf(".")+1),a={[o]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[o];return Object.setPrototypeOf(a.prototype,new _e),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(u,s){return new a().fromBinary(u,s)},fromJson(u,s){return new a().fromJson(u,s)},fromJsonString(u,s){return new a().fromJsonString(u,s)},equals(u,s){return e.util.equals(a,u,s)}}),a}function R5(e,t,r,i){return{syntax:e,json:t,bin:r,util:i,makeMessageType(n,o,a){return F5(this,n,o,a)},makeEnum:N5,makeEnumType:p0,getEnumType:P5}}var q;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(q||(q={}));var gn;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(gn||(gn={}));function M5(){let e=0,t=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function oc(e,t,r){for(let o=0;o<28;o=o+7){const a=e>>>o,u=!(!(a>>>7)&&t==0),s=(u?a|128:a)&255;if(r.push(s),!u)return}const i=e>>>28&15|(t&7)<<4,n=t>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let o=3;o<31;o=o+7){const a=t>>>o,u=!!(a>>>7),s=(u?a|128:a)&255;if(r.push(s),!u)return}r.push(t>>>31&1)}}const ss=4294967296;function g0(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let i=0,n=0;function o(a,u){const s=Number(e.slice(a,u));n*=r,i=i*r+s,i>=ss&&(n=n+(i/ss|0),i=i%ss)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?v0(i,n):ac(i,n)}function V5(e,t){let r=ac(e,t);const i=r.hi&2147483648;i&&(r=v0(r.lo,r.hi));const n=h0(r.lo,r.hi);return i?"-"+n:n}function h0(e,t){if({lo:e,hi:t}=j5(e,t),t<=2097151)return String(ss*t+e);const r=e&16777215,i=(e>>>24|t<<8)&16777215,n=t>>16&65535;let o=r+i*6777216+n*6710656,a=i+n*8147497,u=n*2;const s=1e7;return o>=s&&(a+=Math.floor(o/s),o%=s),a>=s&&(u+=Math.floor(a/s),a%=s),u.toString()+b0(a)+b0(o)}function j5(e,t){return{lo:e>>>0,hi:t>>>0}}function ac(e,t){return{lo:e|0,hi:t|0}}function v0(e,t){return t=~t,e?e=~e+1:t+=1,ac(e,t)}const b0=e=>{const t=String(e);return"0000000".slice(t.length)+t};function y0(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function L5(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function B5(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),a=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(s){const l=typeof s=="bigint"?s:BigInt(s);if(l>o||l<n)throw new Error(`int64 invalid: ${s}`);return l},uParse(s){const l=typeof s=="bigint"?s:BigInt(s);if(l>u||l<a)throw new Error(`uint64 invalid: ${s}`);return l},enc(s){return e.setBigInt64(0,this.parse(s),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(s){return e.setBigInt64(0,this.uParse(s),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(s,l){return e.setInt32(0,s,!0),e.setInt32(4,l,!0),e.getBigInt64(0,!0)},uDec(s,l){return e.setInt32(0,s,!0),e.setInt32(4,l,!0),e.getBigUint64(0,!0)}}}const r=n=>It(/^-?[0-9]+$/.test(n),`int64 invalid: ${n}`),i=n=>It(/^[0-9]+$/.test(n),`uint64 invalid: ${n}`);return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),r(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),i(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),r(n),g0(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),i(n),g0(n)},dec(n,o){return V5(n,o)},uDec(n,o){return h0(n,o)}}}const De=B5();var it;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(it||(it={}));class $5{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let n=0;n<this.chunks.length;n++)t+=this.chunks[n].length;let r=new Uint8Array(t),i=0;for(let n=0;n<this.chunks.length;n++)r.set(this.chunks[n],i),i+=this.chunks[n].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(ic(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return as(t),y0(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){c0(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){ic(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){as(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return as(t),t=(t<<1^t>>31)>>>0,y0(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),i=new DataView(r.buffer),n=De.enc(t);return i.setInt32(0,n.lo,!0),i.setInt32(4,n.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),i=new DataView(r.buffer),n=De.uEnc(t);return i.setInt32(0,n.lo,!0),i.setInt32(4,n.hi,!0),this.raw(r)}int64(t){let r=De.enc(t);return oc(r.lo,r.hi,this.buf),this}sint64(t){let r=De.enc(t),i=r.hi>>31,n=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return oc(n,o,this.buf),this}uint64(t){let r=De.uEnc(t);return oc(r.lo,r.hi,this.buf),this}}class D5{constructor(t,r){this.varint64=M5,this.uint32=L5,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r??new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,i=t&7;if(r<=0||i<0||i>5)throw new Error("illegal tag: field no "+r+" wire type "+i);return[r,i]}skip(t){let r=this.pos;switch(t){case it.Varint:for(;this.buf[this.pos++]&128;);break;case it.Bit64:this.pos+=4;case it.Bit32:this.pos+=4;break;case it.LengthDelimited:let i=this.uint32();this.pos+=i;break;case it.StartGroup:let n;for(;(n=this.tag()[1])!==it.EndGroup;)this.skip(n);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return De.dec(...this.varint64())}uint64(){return De.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),i=-(t&1);return t=(t>>>1|(r&1)<<31)^i,r=r>>>1^i,De.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return De.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return De.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}}function sc(e,t){return t instanceof _e||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}q.DOUBLE,q.FLOAT,q.INT64,q.UINT64,q.INT32,q.UINT32,q.BOOL,q.STRING,q.BYTES;function Jr(e,t,r){if(t===r)return!0;if(e==q.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==r[i])return!1;return!0}switch(e){case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return t==r}return!1}function uc(e,t){switch(e){case q.BOOL:return!1;case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return t==0?De.zero:"0";case q.DOUBLE:case q.FLOAT:return 0;case q.BYTES:return new Uint8Array(0);case q.STRING:return"";default:return 0}}function C0(e,t){const r=t===void 0;let i=it.Varint,n=t===0;switch(e){case q.STRING:n=r||!t.length,i=it.LengthDelimited;break;case q.BOOL:n=t===!1;break;case q.DOUBLE:i=it.Bit64;break;case q.FLOAT:i=it.Bit32;break;case q.INT64:n=r||t==0;break;case q.UINT64:n=r||t==0;break;case q.FIXED64:n=r||t==0,i=it.Bit64;break;case q.BYTES:n=r||!t.byteLength,i=it.LengthDelimited;break;case q.FIXED32:i=it.Bit32;break;case q.SFIXED32:i=it.Bit32;break;case q.SFIXED64:n=r||t==0,i=it.Bit64;break;case q.SINT64:n=r||t==0;break}const o=q[e].toLowerCase();return[i,o,r||n]}const Kn=Symbol("@bufbuild/protobuf/unknown-fields"),x0={readUnknownFields:!0,readerFactory:e=>new D5(e)},E0={writeUnknownFields:!0,writerFactory:()=>new $5};function _5(e){return e?Object.assign(Object.assign({},x0),e):x0}function G5(e){return e?Object.assign(Object.assign({},E0),e):E0}function H5(){return{makeReadOptions:_5,makeWriteOptions:G5,listUnknownFields(e){var t;return(t=e[Kn])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Kn]},writeUnknownFields(e,t){const i=e[Kn];if(i)for(const n of i)t.tag(n.no,n.wireType).raw(n.data)},onUnknownField(e,t,r,i){const n=e;Array.isArray(n[Kn])||(n[Kn]=[]),n[Kn].push({no:t,wireType:r,data:i})},readMessage(e,t,r,i){const n=e.getType(),o=r===void 0?t.len:t.pos+r;for(;t.pos<o;){const[a,u]=t.tag(),s=n.fields.find(a);if(!s){const f=t.skip(u);i.readUnknownFields&&this.onUnknownField(e,a,u,f);continue}let l=e,c=s.repeated,d=s.localName;switch(s.oneof&&(l=l[s.oneof.localName],l.case!=d&&delete l.value,l.case=d,d="value"),s.kind){case"scalar":case"enum":const f=s.kind=="enum"?q.INT32:s.T;let g=ls;if(s.kind=="scalar"&&s.L>0&&(g=z5),c){let b=l[d];if(u==it.LengthDelimited&&f!=q.STRING&&f!=q.BYTES){let y=t.uint32()+t.pos;for(;t.pos<y;)b.push(g(t,f))}else b.push(g(t,f))}else l[d]=g(t,f);break;case"message":const h=s.T;c?l[d].push(us(t,new h,i)):l[d]instanceof _e?us(t,l[d],i):(l[d]=us(t,new h,i),h.fieldWrapper&&!s.oneof&&!s.repeated&&(l[d]=h.fieldWrapper.unwrapField(l[d])));break;case"map":let[p,m]=W5(s,t,i);l[d][p]=m;break}}}}}function us(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function W5(e,t,r){const i=t.uint32(),n=t.pos+i;let o,a;for(;t.pos<n;){let[u]=t.tag();switch(u){case 1:o=ls(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=ls(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=us(t,new e.V.T,r);break}break}}if(o===void 0){let u=uc(e.K,gn.BIGINT);o=e.K==q.BOOL?u.toString():u}if(typeof o!="string"&&typeof o!="number"&&(o=o.toString()),a===void 0)switch(e.V.kind){case"scalar":a=uc(e.V.T,gn.BIGINT);break;case"enum":a=0;break;case"message":a=new e.V.T;break}return[o,a]}function z5(e,t){const r=ls(e,t);return typeof r=="bigint"?r.toString():r}function ls(e,t){switch(t){case q.STRING:return e.string();case q.BOOL:return e.bool();case q.DOUBLE:return e.double();case q.FLOAT:return e.float();case q.INT32:return e.int32();case q.INT64:return e.int64();case q.UINT64:return e.uint64();case q.FIXED64:return e.fixed64();case q.BYTES:return e.bytes();case q.FIXED32:return e.fixed32();case q.SFIXED32:return e.sfixed32();case q.SFIXED64:return e.sfixed64();case q.SINT64:return e.sint64();case q.UINT32:return e.uint32();case q.SINT32:return e.sint32()}}function X5(e,t,r,i,n){e.tag(r.no,it.LengthDelimited),e.fork();let o=i;switch(r.K){case q.INT32:case q.FIXED32:case q.UINT32:case q.SFIXED32:case q.SINT32:o=Number.parseInt(i);break;case q.BOOL:It(i=="true"||i=="false"),o=i=="true";break}switch(qi(e,r.K,1,o,!0),r.V.kind){case"scalar":qi(e,r.V.T,2,n,!0);break;case"enum":qi(e,q.INT32,2,n,!0);break;case"message":lc(e,t,r.V.T,2,n);break}e.join()}function lc(e,t,r,i,n){if(n!==void 0){const o=sc(r,n);e.tag(i,it.LengthDelimited).bytes(o.toBinary(t))}}function qi(e,t,r,i,n){let[o,a,u]=C0(t,i);(!u||n)&&e.tag(r,o)[a](i)}function U5(e,t,r,i){if(!i.length)return;e.tag(r,it.LengthDelimited).fork();let[,n]=C0(t);for(let o=0;o<i.length;o++)e[n](i[o]);e.join()}function Y5(){return Object.assign(Object.assign({},H5()),{writeMessage(e,t,r){const i=e.getType();for(const n of i.fields.byNumber()){let o,a=n.repeated,u=n.localName;if(n.oneof){const s=e[n.oneof.localName];if(s.case!==u)continue;o=s.value}else o=e[u];switch(n.kind){case"scalar":case"enum":let s=n.kind=="enum"?q.INT32:n.T;if(a)if(n.packed)U5(t,s,n.no,o);else for(const l of o)qi(t,s,n.no,l,!0);else o!==void 0&&qi(t,s,n.no,o,!!n.oneof||n.opt);break;case"message":if(a)for(const l of o)lc(t,r,n.T,n.no,l);else lc(t,r,n.T,n.no,o);break;case"map":for(const[l,c]of Object.entries(o))X5(t,r,n,l,c);break}}return r.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let wr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),cs=[];for(let e=0;e<wr.length;e++)cs[wr[e].charCodeAt(0)]=e;cs[45]=wr.indexOf("+"),cs[95]=wr.indexOf("/");const ds={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let r=new Uint8Array(t),i=0,n=0,o,a=0;for(let u=0;u<e.length;u++){if(o=cs[e.charCodeAt(u)],o===void 0)switch(e[u]){case"=":n=0;case`
205
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=o,n=1;break;case 1:r[i++]=a<<2|(o&48)>>4,a=o,n=2;break;case 2:r[i++]=(a&15)<<4|(o&60)>>2,a=o,n=3;break;case 3:r[i++]=(a&3)<<6|o,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)},enc(e){let t="",r=0,i,n=0;for(let o=0;o<e.length;o++)switch(i=e[o],r){case 0:t+=wr[i>>2],n=(i&3)<<4,r=1;break;case 1:t+=wr[n|i>>4],n=(i&15)<<2,r=2;break;case 2:t+=wr[n|i>>6],t+=wr[i&63],r=0;break}return r&&(t+=wr[n],t+="=",r==1&&(t+="=")),t}},I0={ignoreUnknownFields:!1},S0={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function J5(e){return e?Object.assign(Object.assign({},I0),e):I0}function Z5(e){return e?Object.assign(Object.assign({},S0),e):S0}function q5(e){const t=e(Q5,A0);return{makeReadOptions:J5,makeWriteOptions:Z5,readMessage(r,i,n,o){if(i==null||Array.isArray(i)||typeof i!="object")throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(i)}`);o=o??new r;const a={};for(const[u,s]of Object.entries(i)){const l=r.fields.findJsonName(u);if(!l){if(!n.ignoreUnknownFields)throw new Error(`cannot decode message ${r.typeName} from JSON: key "${u}" is unknown`);continue}let c=l.localName,d=o;if(l.oneof){if(s===null&&l.kind=="scalar")continue;const f=a[l.oneof.localName];if(f)throw new Error(`cannot decode message ${r.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${f}", "${u}"`);a[l.oneof.localName]=u,d=d[l.oneof.localName]={case:c},c="value"}if(l.repeated){if(s===null)continue;if(!Array.isArray(s))throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`);const f=d[c];for(const g of s){if(g===null)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(g)}`);let h;switch(l.kind){case"message":h=l.T.fromJson(g,n);break;case"enum":if(h=cc(l.T,g,n.ignoreUnknownFields),h===void 0)continue;break;case"scalar":try{h=Qi(l.T,g,l.L)}catch(p){let m=`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(g)}`;throw p instanceof Error&&p.message.length>0&&(m+=`: ${p.message}`),new Error(m)}break}f.push(h)}}else if(l.kind=="map"){if(s===null)continue;if(Array.isArray(s)||typeof s!="object")throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`);const f=d[c];for(const[g,h]of Object.entries(s)){if(h===null)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: map value null`);let p;switch(l.V.kind){case"message":p=l.V.T.fromJson(h,n);break;case"enum":if(p=cc(l.V.T,h,n.ignoreUnknownFields),p===void 0)continue;break;case"scalar":try{p=Qi(l.V.T,h,gn.BIGINT)}catch(m){let b=`cannot decode map value for field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw m instanceof Error&&m.message.length>0&&(b+=`: ${m.message}`),new Error(b)}break}try{f[Qi(l.K,l.K==q.BOOL?g=="true"?!0:g=="false"?!1:g:g,gn.BIGINT).toString()]=p}catch(m){let b=`cannot decode map key for field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw m instanceof Error&&m.message.length>0&&(b+=`: ${m.message}`),new Error(b)}}}else switch(l.kind){case"message":const f=l.T;if(s===null&&f.typeName!="google.protobuf.Value"){if(l.oneof)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: null is invalid for oneof field "${u}"`);continue}d[c]instanceof _e?d[c].fromJson(s,n):(d[c]=f.fromJson(s,n),f.fieldWrapper&&!l.oneof&&(d[c]=f.fieldWrapper.unwrapField(d[c])));break;case"enum":const g=cc(l.T,s,n.ignoreUnknownFields);g!==void 0&&(d[c]=g);break;case"scalar":try{d[c]=Qi(l.T,s,l.L)}catch(h){let p=`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw h instanceof Error&&h.message.length>0&&(p+=`: ${h.message}`),new Error(p)}break}}return o},writeMessage(r,i){const n=r.getType(),o={};let a;try{for(const u of n.fields.byMember()){let s;if(u.kind=="oneof"){const l=r[u.localName];if(l.value===void 0)continue;if(a=u.findField(l.case),!a)throw"oneof case not found: "+l.case;s=t(a,l.value,i)}else a=u,s=t(a,r[a.localName],i);s!==void 0&&(o[i.useProtoFieldName?a.name:a.jsonName]=s)}}catch(u){const s=a?`cannot encode field ${n.typeName}.${a.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,l=u instanceof Error?u.message:String(u);throw new Error(s+(l.length>0?`: ${l}`:""))}return o},readScalar:Qi,writeScalar:A0,debug:w0}}function w0(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function Qi(e,t,r){switch(e){case q.DOUBLE:case q.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==q.FLOAT&&c0(i),i;case q.INT32:case q.FIXED32:case q.SFIXED32:case q.SINT32:case q.UINT32:if(t===null)return 0;let n;if(typeof t=="number"?n=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(n=Number(t)),n===void 0)break;return e==q.UINT32?ic(n):as(n),n;case q.INT64:case q.SFIXED64:case q.SINT64:if(t===null)return De.zero;if(typeof t!="number"&&typeof t!="string")break;const o=De.parse(t);return r?o.toString():o;case q.FIXED64:case q.UINT64:if(t===null)return De.zero;if(typeof t!="number"&&typeof t!="string")break;const a=De.uParse(t);return r?a.toString():a;case q.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case q.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case q.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return ds.dec(t)}throw new Error}function cc(e,t,r){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const i=e.findName(t);if(i||r)return i?.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${w0(t)}`)}function Q5(e,t,r,i){var n;if(t===void 0)return t;if(t===0&&!r)return;if(i)return t;if(e.typeName=="google.protobuf.NullValue")return null;const o=e.findNumber(t);return(n=o?.name)!==null&&n!==void 0?n:t}function A0(e,t,r){if(t!==void 0)switch(e){case q.INT32:case q.SFIXED32:case q.SINT32:case q.FIXED32:case q.UINT32:return It(typeof t=="number"),t!=0||r?t:void 0;case q.FLOAT:case q.DOUBLE:return It(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||r?t:void 0;case q.STRING:return It(typeof t=="string"),t.length>0||r?t:void 0;case q.BOOL:return It(typeof t=="boolean"),t||r?t:void 0;case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return It(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),r||t!=0?t.toString(10):void 0;case q.BYTES:return It(t instanceof Uint8Array),r||t.byteLength>0?ds.enc(t):void 0}}function K5(){return q5((e,t)=>function(i,n,o){if(i.kind=="map"){const a={};switch(i.V.kind){case"scalar":for(const[s,l]of Object.entries(n)){const c=t(i.V.T,l,!0);It(c!==void 0),a[s.toString()]=c}break;case"message":for(const[s,l]of Object.entries(n))a[s.toString()]=l.toJson(o);break;case"enum":const u=i.V.T;for(const[s,l]of Object.entries(n)){It(l===void 0||typeof l=="number");const c=e(u,l,!0,o.enumAsInteger);It(c!==void 0),a[s.toString()]=c}break}return o.emitDefaultValues||Object.keys(a).length>0?a:void 0}else if(i.repeated){const a=[];switch(i.kind){case"scalar":for(let u=0;u<n.length;u++)a.push(t(i.T,n[u],!0));break;case"enum":for(let u=0;u<n.length;u++)a.push(e(i.T,n[u],!0,o.enumAsInteger));break;case"message":for(let u=0;u<n.length;u++)a.push(sc(i.T,n[u]).toJson(o));break}return o.emitDefaultValues||a.length>0?a:void 0}else switch(i.kind){case"scalar":return t(i.T,n,!!i.oneof||i.opt||o.emitDefaultValues);case"enum":return e(i.T,n,!!i.oneof||i.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return n!==void 0?sc(i.T,n).toJson(o):void 0}})}function eA(){return{setEnumType:f0,initPartial(e,t){if(e===void 0)return;const r=t.getType();for(const i of r.fields.byMember()){const n=i.localName,o=t,a=e;if(a[n]!==void 0)switch(i.kind){case"oneof":const u=a[n].case;if(u===void 0)continue;const s=i.findField(u);let l=a[n].value;s&&s.kind=="message"&&!(l instanceof s.T)?l=new s.T(l):s&&s.kind==="scalar"&&s.T===q.BYTES&&(l=Ki(l)),o[n]={case:u,value:l};break;case"scalar":case"enum":let c=a[n];i.T===q.BYTES&&(c=i.repeated?c.map(Ki):Ki(c)),o[n]=c;break;case"map":switch(i.V.kind){case"scalar":case"enum":if(i.V.T===q.BYTES)for(const[g,h]of Object.entries(a[n]))o[n][g]=Ki(h);else Object.assign(o[n],a[n]);break;case"message":const f=i.V.T;for(const g of Object.keys(a[n])){let h=a[n][g];f.fieldWrapper||(h=new f(h)),o[n][g]=h}break}break;case"message":const d=i.T;if(i.repeated)o[n]=a[n].map(f=>f instanceof d?f:new d(f));else if(a[n]!==void 0){const f=a[n];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?o[n]=Ki(f):o[n]=f:o[n]=f instanceof d?f:new d(f)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(i=>{const n=t[i.localName],o=r[i.localName];if(i.repeated){if(n.length!==o.length)return!1;switch(i.kind){case"message":return n.every((a,u)=>i.T.equals(a,o[u]));case"scalar":return n.every((a,u)=>Jr(i.T,a,o[u]));case"enum":return n.every((a,u)=>Jr(q.INT32,a,o[u]))}throw new Error(`repeated cannot contain ${i.kind}`)}switch(i.kind){case"message":return i.T.equals(n,o);case"enum":return Jr(q.INT32,n,o);case"scalar":return Jr(i.T,n,o);case"oneof":if(n.case!==o.case)return!1;const a=i.findField(n.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(n.value,o.value);case"enum":return Jr(q.INT32,n.value,o.value);case"scalar":return Jr(a.T,n.value,o.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":const u=Object.keys(n).concat(Object.keys(o));switch(i.V.kind){case"message":const s=i.V.T;return u.every(c=>s.equals(n[c],o[c]));case"enum":return u.every(c=>Jr(q.INT32,n[c],o[c]));case"scalar":const l=i.V.T;return u.every(c=>Jr(l,n[c],o[c]))}break}})},clone(e){const t=e.getType(),r=new t,i=r;for(const n of t.fields.byMember()){const o=e[n.localName];let a;if(n.repeated)a=o.map(fs);else if(n.kind=="map"){a=i[n.localName];for(const[u,s]of Object.entries(o))a[u]=fs(s)}else n.kind=="oneof"?a=n.findField(o.case)?{case:o.case,value:fs(o.value)}:{case:void 0}:a=fs(o);i[n.localName]=a}return r}}}function fs(e){if(e===void 0)return e;if(e instanceof _e)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ki(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class tA{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){const r={};for(const i of this.list())r[i.jsonName]=r[i.name]=i;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){const r={};for(const i of this.list())r[i.no]=i;this.numbers=r}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let r;for(const i of this.list())i.oneof?i.oneof!==r&&(r=i.oneof,t.push(r)):t.push(i)}return this.members}}function T0(e,t){const r=O0(e);return t?r:sA(aA(r))}function rA(e){return T0(e,!1)}const nA=O0;function O0(e){let t=!1;const r=[];for(let i=0;i<e.length;i++){let n=e.charAt(i);switch(n){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(n),t=!1;break;default:t&&(t=!1,n=n.toUpperCase()),r.push(n);break}}return r.join("")}const iA=new Set(["constructor","toString","toJSON","valueOf"]),oA=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k0=e=>`${e}$`,aA=e=>oA.has(e)?k0(e):e,sA=e=>iA.has(e)?k0(e):e;class uA{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=rA(t)}addField(t){It(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let r=0;r<this.fields.length;r++)this._lookup[this.fields[r].localName]=this.fields[r]}return this._lookup[t]}}const te=R5("proto3",K5(),Y5(),Object.assign(Object.assign({},eA()),{newFieldList(e){return new tA(e,lA)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,i=e;if(t.repeated){i[r]=[];continue}switch(t.kind){case"oneof":i[r]={case:void 0};break;case"enum":i[r]=0;break;case"map":i[r]={};break;case"scalar":i[r]=uc(t.T,t.L);break}}}}));function lA(e){var t,r,i,n;const o=[];let a;for(const u of typeof e=="function"?e():e){const s=u;if(s.localName=T0(u.name,u.oneof!==void 0),s.jsonName=(t=u.jsonName)!==null&&t!==void 0?t:nA(u.name),s.repeated=(r=u.repeated)!==null&&r!==void 0?r:!1,u.kind=="scalar"&&(s.L=(i=u.L)!==null&&i!==void 0?i:gn.BIGINT),s.packed=(n=u.packed)!==null&&n!==void 0?n:u.kind=="enum"||u.kind=="scalar"&&u.T!=q.BYTES&&u.T!=q.STRING,u.oneof!==void 0){const l=typeof u.oneof=="string"?u.oneof:u.oneof.name;(!a||a.name!=l)&&(a=new uA(l)),s.oneof=a,a.addField(s)}o.push(s)}return o}var zt;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(zt||(zt={}));var dc;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(dc||(dc={}));var Ae;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Ae||(Ae={}));function fc(e){const t=Ae[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,r=>"_"+r.toLowerCase())}let ps;function cA(e){if(!ps){ps={};for(const t of Object.values(Ae))typeof t!="string"&&(ps[fc(t)]=t)}return ps[e]}class pt extends Error{constructor(t,r=Ae.Unknown,i,n,o){super(dA(t,r)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=r,this.metadata=new Headers(i??{}),this.details=n??[],this.cause=o}static from(t,r=Ae.Unknown){return t instanceof pt?t:t instanceof Error?t.name=="AbortError"?new pt(t.message,Ae.Canceled):new pt(t.message,r,void 0,void 0,t):new pt(String(t),r,void 0,void 0,t)}findDetails(t){const r="typeName"in t?{findMessage:n=>n===t.typeName?t:void 0}:t,i=[];for(const n of this.details){if(n instanceof _e){r.findMessage(n.getType().typeName)&&i.push(n);continue}const o=r.findMessage(n.type);if(o)try{i.push(o.fromBinary(n.value))}catch{}}return i}}function dA(e,t){return e.length?`[${fc(t)}] ${e}`:`[${fc(t)}]`}function fA(...e){const t=new Headers;for(const r of e)r.forEach((i,n)=>{t.append(n,i)});return t}function pA(e,t){const r={};for(const[i,n]of Object.entries(e.methods)){const o=t(Object.assign(Object.assign({},n),{localName:i,service:e}));o!=null&&(r[i]=o)}return r}function mA(e){let t,r=new Uint8Array(0);function i(n){const o=new Uint8Array(r.length+n.length);o.set(r),o.set(n,r.length),r=o}return new ReadableStream({start(){t=e.getReader()},async pull(n){let o;for(;;){if(o===void 0&&r.byteLength>=5){let s=0;for(let l=1;l<5;l++)s=(s<<8)+r[l];o={flags:r[0],length:s}}if(o!==void 0&&r.byteLength>=o.length+5)break;const u=await t.read();if(u.done)break;i(u.value)}if(o===void 0){if(r.byteLength==0){n.close();return}n.error(new pt("premature end of stream",Ae.DataLoss));return}const a=r.subarray(5,5+o.length);r=r.subarray(5+o.length),n.enqueue({flags:o.flags,data:a})}})}function gA(e,t){const r=new Uint8Array(t.length+5);r.set(t,5);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.setUint8(0,e),i.setUint32(1,t.length),r}var hA=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),n(u,s,a.done,a.value)})}}function n(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}},eo=function(e){return this instanceof eo?(this.v=e,this):new eo(e)},vA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof eo?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}},bA=function(e){var t,r;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,o){t[n]=e[n]?function(a){return(r=!r)?{value:eo(e[n](a)),done:!1}:o?o(a):a}:o}};function yA(e){return vA(this,arguments,function*(){yield eo(yield*bA(hA(e)))})}var P0=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),n(u,s,a.done,a.value)})}}function n(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}},ei=function(e){return this instanceof ei?(this.v=e,this):new ei(e)},CA=function(e){var t,r;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,o){t[n]=e[n]?function(a){return(r=!r)?{value:ei(e[n](a)),done:!1}:o?o(a):a}:o}},xA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof ei?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}};function EA(e,t){return pA(e,r=>{switch(r.kind){case zt.Unary:return IA(t,e,r);case zt.ServerStreaming:return SA(t,e,r);case zt.ClientStreaming:return wA(t,e,r);case zt.BiDiStreaming:return AA(t,e,r);default:return null}})}function IA(e,t,r){return async function(i,n){var o,a;const u=await e.unary(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues);return(o=n?.onHeader)===null||o===void 0||o.call(n,u.header),(a=n?.onTrailer)===null||a===void 0||a.call(n,u.trailer),u.message}}function SA(e,t,r){return function(i,n){return N0(e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,yA([i]),n?.contextValues),n)}}function wA(e,t,r){return async function(i,n){var o,a,u,s,l,c;const d=await e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues);(l=n?.onHeader)===null||l===void 0||l.call(n,d.header);let f;try{for(var g=!0,h=P0(d.message),p;p=await h.next(),o=p.done,!o;g=!0)s=p.value,g=!1,f=s}catch(m){a={error:m}}finally{try{!g&&!o&&(u=h.return)&&await u.call(h)}finally{if(a)throw a.error}}if(!f)throw new pt("protocol error: missing response message",Ae.Internal);return(c=n?.onTrailer)===null||c===void 0||c.call(n,d.trailer),f}}function AA(e,t,r){return function(i,n){return N0(e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues),n)}}function N0(e,t){const r=function(){var i,n;return xA(this,arguments,function*(){const o=yield ei(e);(i=t?.onHeader)===null||i===void 0||i.call(t,o.header),yield ei(yield*CA(P0(o.message))),(n=t?.onTrailer)===null||n===void 0||n.call(t,o.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>r.next()})}}function TA(...e){const t=new AbortController,r=e.filter(n=>n!==void 0).concat(t.signal);for(const n of r){if(n.aborted){i.apply(n);break}n.addEventListener("abort",i)}function i(){t.signal.aborted||t.abort(F0(this));for(const n of r)n.removeEventListener("abort",i)}return t}function OA(e){const t=new AbortController,r=()=>{t.abort(new pt("the operation timed out",Ae.DeadlineExceeded))};let i;return e!==void 0&&(e<=0?r():i=setTimeout(r,e)),{signal:t.signal,cleanup:()=>clearTimeout(i)}}function F0(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function R0(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function M0(e,t,r){const i=typeof t=="string"?t:t.typeName,n=typeof r=="string"?r:r.name;return e.toString().replace(/\/?$/,`/${i}/${n}`)}function V0(e,t){return t instanceof _e?t:new e(t)}function kA(e,t){function r(i){return i.done===!0?i:{done:i.done,value:V0(e,i.value)}}return{[Symbol.asyncIterator](){const i=t[Symbol.asyncIterator](),n={next:()=>i.next().then(r)};return i.throw!==void 0&&(n.throw=o=>i.throw(o).then(r)),i.return!==void 0&&(n.return=o=>i.return(o).then(r)),n}}}function j0(e){var t;const r=Object.assign({},e);return(t=r.ignoreUnknownFields)!==null&&t!==void 0||(r.ignoreUnknownFields=!0),r}function L0(e,t,r,i){const n=t?B0(e.I,i):$0(e.I,r);return{parse:(t?B0(e.O,i):$0(e.O,r)).parse,serialize:n.serialize}}function B0(e,t){return{parse(r){try{return e.fromBinary(r,t)}catch(i){const n=i instanceof Error?i.message:String(i);throw new pt(`parse binary: ${n}`,Ae.InvalidArgument)}},serialize(r){try{return r.toBinary(t)}catch(i){const n=i instanceof Error?i.message:String(i);throw new pt(`serialize binary: ${n}`,Ae.Internal)}}}}function $0(e,t){var r,i;const n=(r=t?.textEncoder)!==null&&r!==void 0?r:new TextEncoder,o=(i=t?.textDecoder)!==null&&i!==void 0?i:new TextDecoder,a=j0(t);return{parse(u){try{const s=o.decode(u);return e.fromJsonString(s,a)}catch(s){throw pt.from(s,Ae.InvalidArgument)}},serialize(u){try{const s=u.toJsonString(a);return n.encode(s)}catch(s){throw pt.from(s,Ae.Internal)}}}}const PA=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,NA="application/proto",FA="application/json",RA="application/connect+proto",MA="application/connect+json";function VA(e){const t=e?.match(PA);if(!t)return;const r=!!t[1],i=!!t[3];return{stream:r,binary:i}}function D0(e,t,r){if(t&&new Headers(t).forEach((a,u)=>r.metadata.append(u,a)),typeof e!="object"||e==null||Array.isArray(e)||!("code"in e)||typeof e.code!="string")throw r;const i=cA(e.code);if(i===void 0)throw r;const n=e.message;if(n!=null&&typeof n!="string")throw r;const o=new pt(n??"",i,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string"||"debug"in a&&typeof a.debug!="object")throw r;try{o.details.push({type:a.type,value:ds.dec(a.value),debug:a.debug})}catch{throw r}}return o}const _0=2;function jA(e){const t=new pt("invalid end stream",Ae.InvalidArgument);let r;try{r=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof r!="object"||r==null||Array.isArray(r))throw t;const i=new Headers;if("metadata"in r){if(typeof r.metadata!="object"||r.metadata==null||Array.isArray(r.metadata))throw t;for(const[o,a]of Object.entries(r.metadata)){if(!Array.isArray(a)||a.some(u=>typeof u!="string"))throw t;for(const u of a)i.append(o,u)}}const n="error"in r?D0(r.error,i,t):void 0;return{metadata:i,error:n}}const pc="Content-Type",LA="Content-Length",G0="Content-Encoding",BA="Accept-Encoding",$A="Connect-Timeout-Ms",H0="Connect-Protocol-Version",DA="User-Agent";function _A(e){switch(e){case 400:return Ae.InvalidArgument;case 401:return Ae.Unauthenticated;case 403:return Ae.PermissionDenied;case 404:return Ae.Unimplemented;case 408:return Ae.DeadlineExceeded;case 409:return Ae.Aborted;case 412:return Ae.FailedPrecondition;case 413:return Ae.ResourceExhausted;case 415:return Ae.Internal;case 429:return Ae.Unavailable;case 431:return Ae.ResourceExhausted;case 502:return Ae.Unavailable;case 503:return Ae.Unavailable;case 504:return Ae.Unavailable;default:return Ae.Unknown}}function W0(e){const t=new Headers,r=new Headers;return e.forEach((i,n)=>{n.toLowerCase().startsWith("trailer-")?r.set(n.substring(8),i):t.set(n,i)}),[t,r]}const z0="1";function X0(e,t,r,i){const n=new Headers(i??{});return r!==void 0&&n.set($A,`${r}`),n.set(pc,e==zt.Unary?t?NA:FA:t?RA:MA),n.set(H0,z0),n.set(DA,"connect-es/1.1.3"),n}function U0(e,t,r){const i=r.get("Content-Type"),n=VA(i);if(t!==200){const o=new pt(`HTTP ${t}`,_A(t),r);if(e==zt.Unary&&n&&!n.binary)return{isUnaryError:!0,unaryError:o};throw o}return{isUnaryError:!1}}const Y0="application/";function GA(e,t){return t?ds.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function HA(e,t,r){let i=`?connect=v${z0}`;const n=e.header.get(pc);n?.indexOf(Y0)===0&&(i+="&encoding="+encodeURIComponent(n.slice(Y0.length)));const o=e.header.get(G0);o!==null&&o!=="identity"&&(i+="&compression="+encodeURIComponent(o),r=!0),r&&(i+="&base64=1"),i+="&message="+GA(t,r);const a=e.url+i,u=new Headers(e.header);return[H0,pc,LA,G0,BA].forEach(s=>u.delete(s)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:a,header:u})}function WA(e){const t=Z0(e.next,e.interceptors),[r,i,n]=J0(e),o=Object.assign(Object.assign({},e.req),{message:V0(e.req.method.I,e.req.message),signal:r});return t(o).then(a=>(n(),a),i)}function zA(e){const t=Z0(e.next,e.interceptors),[r,i,n]=J0(e),o=Object.assign(Object.assign({},e.req),{message:kA(e.req.method.I,e.req.message),signal:r});let a=!1;return r.addEventListener("abort",function(){var u,s;const l=e.req.message[Symbol.asyncIterator]();a||(u=l.throw)===null||u===void 0||u.call(l,this.reason).catch(()=>{}),(s=l.return)===null||s===void 0||s.call(l).catch(()=>{})}),t(o).then(u=>Object.assign(Object.assign({},u),{message:{[Symbol.asyncIterator](){const s=u.message[Symbol.asyncIterator]();return{next(){return s.next().then(l=>(l.done==!0&&(a=!0,n()),l),i)}}}}}),i)}function J0(e){const{signal:t,cleanup:r}=OA(e.timeoutMs),i=TA(e.signal,t);return[i.signal,function(o){const a=pt.from(t.aborted?F0(t):o);return i.abort(a),r(),Promise.reject(a)},function(){r(),i.abort()}]}function Z0(e,t){var r;return(r=t?.concat().reverse().reduce((i,n)=>n(i),e))!==null&&r!==void 0?r:e}function XA(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var to=function(e){return this instanceof to?(this.v=e,this):new to(e)},UA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof to?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}};function YA(e){var t;XA();const r=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(i,n,o,a,u,s,l){var c;const{serialize:d,parse:f}=L0(n,r,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await WA({interceptors:e.interceptors,signal:o,timeoutMs:a,req:{stream:!1,service:i,method:n,url:M0(e.baseUrl,i,n),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:X0(n.kind,r,a,u),contextValues:l??R0(),message:s},next:async g=>{var h;const p=e.useHttpGet===!0&&n.idempotency===dc.NoSideEffects;let m=null;p?g=HA(g,d(g.message),r):m=d(g.message);const y=await((h=e.fetch)!==null&&h!==void 0?h:globalThis.fetch)(g.url,Object.assign(Object.assign({},g.init),{headers:g.header,signal:g.signal,body:m})),{isUnaryError:I,unaryError:x}=U0(n.kind,y.status,y.headers);if(I)throw D0(await y.json(),fA(...W0(y.headers)),x);const[v,S]=W0(y.headers);return{stream:!1,service:i,method:n,header:v,message:r?f(new Uint8Array(await y.arrayBuffer())):n.O.fromJson(await y.json(),j0(e.jsonOptions)),trailer:S}}})},async stream(i,n,o,a,u,s,l){var c;const{serialize:d,parse:f}=L0(n,r,e.jsonOptions,e.binaryOptions);function g(p,m){return UA(this,arguments,function*(){const y=mA(p).getReader();let I=!1;for(;;){const x=yield to(y.read());if(x.done)break;const{flags:v,data:S}=x.value;if((v&_0)===_0){I=!0;const E=jA(S);if(E.error)throw E.error;E.metadata.forEach((w,T)=>m.set(T,w));continue}yield yield to(f(S))}if(!I)throw"missing EndStreamResponse"})}async function h(p){if(n.kind!=zt.ServerStreaming)throw"The fetch API does not support streaming request bodies";const m=await p[Symbol.asyncIterator]().next();if(m.done==!0)throw"missing request message";return gA(0,d(m.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await zA({interceptors:e.interceptors,timeoutMs:a,signal:o,req:{stream:!0,service:i,method:n,url:M0(e.baseUrl,i,n),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:X0(n.kind,r,a,u),contextValues:l??R0(),message:s},next:async p=>{var m;const y=await((m=e.fetch)!==null&&m!==void 0?m:globalThis.fetch)(p.url,Object.assign(Object.assign({},p.init),{headers:p.header,signal:p.signal,body:await h(p.message)}));if(U0(n.kind,y.status,y.headers),y.body===null)throw"missing response body";const I=new Headers;return Object.assign(Object.assign({},p),{header:y.headers,trailer:I,message:g(y.body,I)})}})}}}var hn;(function(e){e.INACTIVE="inactive",e.PROCESSING="processing",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"})(hn||(hn={}));function JA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(i){JA(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ZA(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,o;for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function qA(e,t){if(e==null)return{};var r=ZA(e,t),i,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function QA(e,t){return KA(e)||e4(e,t)||t4(e,t)||r4()}function KA(e){if(Array.isArray(e))return e}function e4(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],i=!0,n=!1,o=void 0;try{for(var a=e[Symbol.iterator](),u;!(i=(u=a.next()).done)&&(r.push(u.value),!(t&&r.length===t));i=!0);}catch(s){n=!0,o=s}finally{try{!i&&a.return!=null&&a.return()}finally{if(n)throw o}}return r}}function t4(e,t){if(e){if(typeof e=="string")return K0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K0(e,t)}}function K0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function r4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
206
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function th(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(r),!0).forEach(function(i){n4(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function i4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(n,o){return o(n)},i)}}function ro(e){return function t(){for(var r=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(n,u))}}}function ms(e){return{}.toString.call(e).includes("Object")}function o4(e){return!Object.keys(e).length}function no(e){return typeof e=="function"}function a4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s4(e,t){return ms(t)||Zr("changeType"),Object.keys(t).some(function(r){return!a4(e,r)})&&Zr("changeField"),t}function u4(e){no(e)||Zr("selectorType")}function l4(e){no(e)||ms(e)||Zr("handlerType"),ms(e)&&Object.values(e).some(function(t){return!no(t)})&&Zr("handlersType")}function c4(e){e||Zr("initialIsRequired"),ms(e)||Zr("initialType"),o4(e)&&Zr("initialContent")}function d4(e,t){throw new Error(e[t]||e.default)}var f4={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Zr=ro(d4)(f4),gs={changes:s4,selector:u4,handler:l4,initial:c4};function p4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gs.initial(e),gs.handler(t);var r={current:e},i=ro(h4)(r,t),n=ro(g4)(r),o=ro(gs.changes)(e),a=ro(m4)(r);function u(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return gs.selector(l),l(r.current)}function s(l){i4(i,n,o,a)(l)}return[u,s]}function m4(e,t){return no(t)?t(e.current):t}function g4(e,t){return e.current=th(th({},e.current),t),t}function h4(e,t,r){return no(t)?t(e.current):Object.keys(r).forEach(function(i){var n;return(n=t[i])===null||n===void 0?void 0:n.call(t,e.current[i])}),r}var v4={create:p4},b4={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function y4(e){return function t(){for(var r=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(n,u))}}}function C4(e){return{}.toString.call(e).includes("Object")}function x4(e){return e||nh("configIsRequired"),C4(e)||nh("configType"),e.urls?(E4(),{paths:{vs:e.urls.monacoBase}}):e}function E4(){console.warn(rh.deprecation)}function I4(e,t){throw new Error(e[t]||e.default)}var rh={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
207
+ You are using deprecated way of configuration.
208
+
209
+ Instead of using
210
+ monaco.config({ urls: { monacoBase: '...' } })
211
+ use
212
+ monaco.config({ paths: { vs: '...' } })
213
+
214
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
215
+ `},nh=y4(I4)(rh),S4={config:x4},w4=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(n){return r.reduceRight(function(o,a){return a(o)},n)}};function ih(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],ih(e[r],t[r]))}),Q0(Q0({},e),t)}var A4={type:"cancelation",msg:"operation is manually canceled"};function mc(e){var t=!1,r=new Promise(function(i,n){e.then(function(o){return t?n(A4):i(o)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var T4=v4.create({config:b4,isInitialized:!1,resolve:null,reject:null,monaco:null}),oh=QA(T4,2),io=oh[0],hs=oh[1];function O4(e){var t=S4.config(e),r=t.monaco,i=qA(t,["monaco"]);hs(function(n){return{config:ih(n.config,i),monaco:r}})}function k4(){var e=io(function(t){var r=t.monaco,i=t.isInitialized,n=t.resolve;return{monaco:r,isInitialized:i,resolve:n}});if(!e.isInitialized){if(hs({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),mc(gc);if(window.monaco&&window.monaco.editor)return ah(window.monaco),e.resolve(window.monaco),mc(gc);w4(P4,F4)(R4)}return mc(gc)}function P4(e){return document.body.appendChild(e)}function N4(e){var t=document.createElement("script");return e&&(t.src=e),t}function F4(e){var t=io(function(i){var n=i.config,o=i.reject;return{config:n,reject:o}}),r=N4("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function R4(){var e=io(function(r){var i=r.config,n=r.resolve,o=r.reject;return{config:i,resolve:n,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){ah(r),e.resolve(r)},function(r){e.reject(r)})}function ah(e){io().monaco||hs({monaco:e})}function M4(){return io(function(e){var t=e.monaco;return t})}var gc=new Promise(function(e,t){return hs({resolve:e,reject:t})}),sh={config:O4,init:k4,__getMonacoInstance:M4},V4={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},hc=V4,j4={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},L4=j4;function B4({children:e}){return O.createElement("div",{style:L4.container},e)}var $4=B4,D4=$4;function _4({width:e,height:t,isEditorReady:r,loading:i,_ref:n,className:o,wrapperProps:a}){return O.createElement("section",{style:{...hc.wrapper,width:e,height:t},...a},!r&&O.createElement(D4,null,i),O.createElement("div",{ref:n,style:{...hc.fullWidth,...!r&&hc.hide},className:o}))}var G4=_4,uh=O.memo(G4);function H4(e){O.useEffect(e,[])}var lh=H4;function W4(e,t,r=!0){let i=O.useRef(!0);O.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var jt=W4;function oo(){}function ti(e,t,r,i){return z4(e,i)||X4(e,t,r,i)}function z4(e,t){return e.editor.getModel(ch(e,t))}function X4(e,t,r,i){return e.editor.createModel(t,r,i?ch(e,i):void 0)}function ch(e,t){return e.Uri.parse(t)}function U4({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:n,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:s=!1,theme:l="light",loading:c="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:p={},beforeMount:m=oo,onMount:b=oo}){let[y,I]=O.useState(!1),[x,v]=O.useState(!0),S=O.useRef(null),E=O.useRef(null),w=O.useRef(null),T=O.useRef(b),k=O.useRef(m),V=O.useRef(!1);lh(()=>{let P=sh.init();return P.then(j=>(E.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>S.current?F():P.cancel()}),jt(()=>{if(S.current&&E.current){let P=S.current.getOriginalEditor(),j=ti(E.current,e||"",i||r||"text",o||"");j!==P.getModel()&&P.setModel(j)}},[o],y),jt(()=>{if(S.current&&E.current){let P=S.current.getModifiedEditor(),j=ti(E.current,t||"",n||r||"text",a||"");j!==P.getModel()&&P.setModel(j)}},[a],y),jt(()=>{let P=S.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],y),jt(()=>{S.current?.getModel()?.original.setValue(e||"")},[e],y),jt(()=>{let{original:P,modified:j}=S.current.getModel();E.current.editor.setModelLanguage(P,i||r||"text"),E.current.editor.setModelLanguage(j,n||r||"text")},[r,i,n],y),jt(()=>{E.current?.editor.setTheme(l)},[l],y),jt(()=>{S.current?.updateOptions(d)},[d],y);let C=O.useCallback(()=>{if(!E.current)return;k.current(E.current);let P=ti(E.current,e||"",i||r||"text",o||""),j=ti(E.current,t||"",n||r||"text",a||"");S.current?.setModel({original:P,modified:j})},[r,t,n,e,i,o,a]),N=O.useCallback(()=>{!V.current&&w.current&&(S.current=E.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...d}),C(),E.current?.editor.setTheme(l),I(!0),V.current=!0)},[d,l,C]);O.useEffect(()=>{y&&T.current(S.current,E.current)},[y]),O.useEffect(()=>{!x&&!y&&N()},[x,y,N]);function F(){let P=S.current?.getModel();u||P?.original?.dispose(),s||P?.modified?.dispose(),S.current?.dispose()}return O.createElement(uh,{width:g,height:f,isEditorReady:y,loading:c,_ref:w,className:h,wrapperProps:p})}var Y4=U4;O.memo(Y4);function J4(e){let t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}var Z4=J4,vs=new Map;function q4({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:n,path:o,theme:a="light",line:u,loading:s="Loading...",options:l={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:p,wrapperProps:m={},beforeMount:b=oo,onMount:y=oo,onChange:I,onValidate:x=oo}){let[v,S]=O.useState(!1),[E,w]=O.useState(!0),T=O.useRef(null),k=O.useRef(null),V=O.useRef(null),C=O.useRef(y),N=O.useRef(b),F=O.useRef(),P=O.useRef(i),j=Z4(o),B=O.useRef(!1),U=O.useRef(!1);lh(()=>{let L=sh.init();return L.then(G=>(T.current=G)&&w(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>k.current?$():L.cancel()}),jt(()=>{let L=ti(T.current,e||i||"",t||n||"",o||r||"");L!==k.current?.getModel()&&(d&&vs.set(j,k.current?.saveViewState()),k.current?.setModel(L),d&&k.current?.restoreViewState(vs.get(o)))},[o],v),jt(()=>{k.current?.updateOptions(l)},[l],v),jt(()=>{!k.current||i===void 0||(k.current.getOption(T.current.editor.EditorOption.readOnly)?k.current.setValue(i):i!==k.current.getValue()&&(U.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),k.current.pushUndoStop(),U.current=!1))},[i],v),jt(()=>{let L=k.current?.getModel();L&&n&&T.current?.editor.setModelLanguage(L,n)},[n],v),jt(()=>{u!==void 0&&k.current?.revealLine(u)},[u],v),jt(()=>{T.current?.editor.setTheme(a)},[a],v);let Q=O.useCallback(()=>{if(!(!V.current||!T.current)&&!B.current){N.current(T.current);let L=o||r,G=ti(T.current,i||e||"",t||n||"",L||"");k.current=T.current?.editor.create(V.current,{model:G,automaticLayout:!0,...l},c),d&&k.current.restoreViewState(vs.get(L)),T.current.editor.setTheme(a),u!==void 0&&k.current.revealLine(u),S(!0),B.current=!0}},[e,t,r,i,n,o,l,c,d,a,u]);O.useEffect(()=>{v&&C.current(k.current,T.current)},[v]),O.useEffect(()=>{!E&&!v&&Q()},[E,v,Q]),P.current=i,O.useEffect(()=>{v&&I&&(F.current?.dispose(),F.current=k.current?.onDidChangeModelContent(L=>{U.current||I(k.current.getValue(),L)}))},[v,I]),O.useEffect(()=>{if(v){let L=T.current.editor.onDidChangeMarkers(G=>{let _=k.current.getModel()?.uri;if(_&&G.find(X=>X.path===_.path)){let X=T.current.editor.getModelMarkers({resource:_});x?.(X)}});return()=>{L?.dispose()}}return()=>{}},[v,x]);function $(){F.current?.dispose(),f?d&&vs.set(o,k.current.saveViewState()):k.current.getModel()?.dispose(),k.current.dispose()}return O.createElement(uh,{width:g,height:h,isEditorReady:v,loading:s,_ref:V,className:p,wrapperProps:m})}var Q4=q4,K4=O.memo(Q4),e3=K4;const t3=e=>{switch(e){case"typescript":case"tsx":case"javascript":case"java":return`// Welcome to Codeium Editor!
216
+ // Press Enter and use Tab to accept AI suggestions. Here's an example:
217
+
218
+ // fib(n) function to calculate the n-th fibonacci number`;case"python":return`# Welcome to Codeium Editor!
219
+ # Press Enter and use Tab to accept AI suggestions. Here's an example:
220
+
221
+ # fib(n) function to calculate the n-th fibonacci number`;case"css":return`/* Welcome to Codeium Editor!
222
+ Press Enter and use Tab to accept AI suggestions. Here's an example:*/
223
+
224
+ /* .action-button class with a hover effect. */`;default:return""}};var bs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(bs||(bs={})),te.util.setEnumType(bs,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var ao;(function(e){e[e.CODEIUM=0]="CODEIUM"})(ao||(ao={})),te.util.setEnumType(ao,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var so;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(so||(so={})),te.util.setEnumType(so,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var uo;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(uo||(uo={})),te.util.setEnumType(uo,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var oe;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(oe||(oe={})),te.util.setEnumType(oe,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);class Ar extends _e{constructor(t){super(),this.completionId="",this.text="",this.prefix="",this.stop="",this.score=0,this.tokens=[],this.decodedTokens=[],this.probabilities=[],this.adjustedProbabilities=[],this.generatedLength=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Ar().fromBinary(t,r)}static fromJson(t,r){return new Ar().fromJson(t,r)}static fromJsonString(t,r){return new Ar().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Ar,t,r)}}Ar.runtime=te,Ar.typeName="exa.codeium_common_pb.Completion",Ar.fields=te.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}]);class ir extends _e{constructor(t){super(),this.ideName="",this.ideVersion="",this.extensionName="",this.extensionVersion="",this.apiKey="",this.locale="",this.sessionId="",this.requestId=De.zero,this.userAgent="",this.url="",this.authSource=ao.CODEIUM,te.util.initPartial(t,this)}static fromBinary(t,r){return new ir().fromBinary(t,r)}static fromJson(t,r){return new ir().fromJson(t,r)}static fromJsonString(t,r){return new ir().fromJsonString(t,r)}static equals(t,r){return te.util.equals(ir,t,r)}}ir.runtime=te,ir.typeName="exa.codeium_common_pb.Metadata",ir.fields=te.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:te.getEnumType(ao)}]);class Tr extends _e{constructor(t){super(),this.tabSize=De.zero,this.insertSpaces=!1,te.util.initPartial(t,this)}static fromBinary(t,r){return new Tr().fromBinary(t,r)}static fromJson(t,r){return new Tr().fromJson(t,r)}static fromJsonString(t,r){return new Tr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Tr,t,r)}}Tr.runtime=te,Tr.typeName="exa.codeium_common_pb.EditorOptions",Tr.fields=te.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}]);class qr extends _e{constructor(t){super(),this.eventType=so.UNSPECIFIED,this.eventJson="",this.timestampUnixMs=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new qr().fromBinary(t,r)}static fromJson(t,r){return new qr().fromJson(t,r)}static fromJsonString(t,r){return new qr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(qr,t,r)}}qr.runtime=te,qr.typeName="exa.codeium_common_pb.Event",qr.fields=te.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:te.getEnumType(so)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]);var lo;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(lo||(lo={})),te.util.setEnumType(lo,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var vc;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(vc||(vc={})),te.util.setEnumType(vc,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var co;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(co||(co={})),te.util.setEnumType(co,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);class gr extends _e{constructor(t){super(),this.threshold=0,te.util.initPartial(t,this)}static fromBinary(t,r){return new gr().fromBinary(t,r)}static fromJson(t,r){return new gr().fromJson(t,r)}static fromJsonString(t,r){return new gr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(gr,t,r)}}gr.runtime=te,gr.typeName="exa.language_server_pb.MultilineConfig",gr.fields=te.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}]);class Or extends _e{constructor(t){super(),this.otherDocuments=[],this.modelName="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Or().fromBinary(t,r)}static fromJson(t,r){return new Or().fromJson(t,r)}static fromJsonString(t,r){return new Or().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Or,t,r)}}Or.runtime=te,Or.typeName="exa.language_server_pb.GetCompletionsRequest",Or.fields=te.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:ir},{no:2,name:"document",kind:"message",T:ri},{no:3,name:"editor_options",kind:"message",T:Tr},{no:5,name:"other_documents",kind:"message",T:ri,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:Mr},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:gr}]);class kr extends _e{constructor(t){super(),this.completionItems=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new kr().fromBinary(t,r)}static fromJson(t,r){return new kr().fromJson(t,r)}static fromJsonString(t,r){return new kr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(kr,t,r)}}kr.runtime=te,kr.typeName="exa.language_server_pb.GetCompletionsResponse",kr.fields=te.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Vr},{no:2,name:"completion_items",kind:"message",T:Br,repeated:!0}]);class Pr extends _e{constructor(t){super(),this.completionId="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Pr().fromBinary(t,r)}static fromJson(t,r){return new Pr().fromJson(t,r)}static fromJsonString(t,r){return new Pr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Pr,t,r)}}Pr.runtime=te,Pr.typeName="exa.language_server_pb.AcceptCompletionRequest",Pr.fields=te.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:ir},{no:2,name:"completion_id",kind:"scalar",T:9}]);class Nr extends _e{constructor(t){super(),te.util.initPartial(t,this)}static fromBinary(t,r){return new Nr().fromBinary(t,r)}static fromJson(t,r){return new Nr().fromJson(t,r)}static fromJsonString(t,r){return new Nr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Nr,t,r)}}Nr.runtime=te,Nr.typeName="exa.language_server_pb.AcceptCompletionResponse",Nr.fields=te.util.newFieldList(()=>[]);class Fr extends _e{constructor(t){super(),te.util.initPartial(t,this)}static fromBinary(t,r){return new Fr().fromBinary(t,r)}static fromJson(t,r){return new Fr().fromJson(t,r)}static fromJsonString(t,r){return new Fr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Fr,t,r)}}Fr.runtime=te,Fr.typeName="exa.language_server_pb.GetAuthTokenRequest",Fr.fields=te.util.newFieldList(()=>[]);class Rr extends _e{constructor(t){super(),this.authToken="",this.uuid="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Rr().fromBinary(t,r)}static fromJson(t,r){return new Rr().fromJson(t,r)}static fromJsonString(t,r){return new Rr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Rr,t,r)}}Rr.runtime=te,Rr.typeName="exa.language_server_pb.GetAuthTokenResponse",Rr.fields=te.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]);class or extends _e{constructor(t){super(),this.row=De.zero,this.col=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new or().fromBinary(t,r)}static fromJson(t,r){return new or().fromJson(t,r)}static fromJsonString(t,r){return new or().fromJsonString(t,r)}static equals(t,r){return te.util.equals(or,t,r)}}or.runtime=te,or.typeName="exa.language_server_pb.DocumentPosition",or.fields=te.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}]);let ri=class ko extends _e{constructor(t){super(),this.absolutePath="",this.relativePath="",this.text="",this.editorLanguage="",this.language=oe.UNSPECIFIED,this.cursorOffset=De.zero,this.lineEnding="",te.util.initPartial(t,this)}static fromBinary(t,r){return new ko().fromBinary(t,r)}static fromJson(t,r){return new ko().fromJson(t,r)}static fromJsonString(t,r){return new ko().fromJsonString(t,r)}static equals(t,r){return te.util.equals(ko,t,r)}};ri.runtime=te,ri.typeName="exa.language_server_pb.Document",ri.fields=te.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:te.getEnumType(oe)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:or},{no:7,name:"line_ending",kind:"scalar",T:9}]);class Mr extends _e{constructor(t){super(),this.forceEnableExperiments=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new Mr().fromBinary(t,r)}static fromJson(t,r){return new Mr().fromJson(t,r)}static fromJsonString(t,r){return new Mr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Mr,t,r)}}Mr.runtime=te,Mr.typeName="exa.language_server_pb.ExperimentConfig",Mr.fields=te.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:te.getEnumType(bs),repeated:!0}]);class Vr extends _e{constructor(t){super(),this.state=lo.UNSPECIFIED,this.message="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Vr().fromBinary(t,r)}static fromJson(t,r){return new Vr().fromJson(t,r)}static fromJsonString(t,r){return new Vr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Vr,t,r)}}Vr.runtime=te,Vr.typeName="exa.language_server_pb.State",Vr.fields=te.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:te.getEnumType(lo)},{no:2,name:"message",kind:"scalar",T:9}]);let ys=class Po extends _e{constructor(t){super(),this.startOffset=De.zero,this.endOffset=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Po().fromBinary(t,r)}static fromJson(t,r){return new Po().fromJson(t,r)}static fromJsonString(t,r){return new Po().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Po,t,r)}};ys.runtime=te,ys.typeName="exa.language_server_pb.Range",ys.fields=te.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:or},{no:4,name:"end_position",kind:"message",T:or}]);class jr extends _e{constructor(t){super(),this.text="",this.deltaCursorOffset=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new jr().fromBinary(t,r)}static fromJson(t,r){return new jr().fromJson(t,r)}static fromJsonString(t,r){return new jr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(jr,t,r)}}jr.runtime=te,jr.typeName="exa.language_server_pb.Suffix",jr.fields=te.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}]);class Lr extends _e{constructor(t){super(),this.text="",this.offset=De.zero,this.type=co.UNSPECIFIED,this.prefix="",this.line=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Lr().fromBinary(t,r)}static fromJson(t,r){return new Lr().fromJson(t,r)}static fromJsonString(t,r){return new Lr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Lr,t,r)}}Lr.runtime=te,Lr.typeName="exa.language_server_pb.CompletionPart",Lr.fields=te.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:te.getEnumType(co)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}]);class Br extends _e{constructor(t){super(),this.source=uo.UNSPECIFIED,this.completionParts=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new Br().fromBinary(t,r)}static fromJson(t,r){return new Br().fromJson(t,r)}static fromJsonString(t,r){return new Br().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Br,t,r)}}Br.runtime=te,Br.typeName="exa.language_server_pb.CompletionItem",Br.fields=te.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:Ar},{no:5,name:"suffix",kind:"message",T:jr},{no:2,name:"range",kind:"message",T:ys},{no:3,name:"source",kind:"enum",T:te.getEnumType(uo)},{no:8,name:"completion_parts",kind:"message",T:Lr,repeated:!0}]);const r3={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:Or,O:kr,kind:zt.Unary},acceptCompletion:{name:"AcceptCompletion",I:Pr,O:Nr,kind:zt.Unary},getAuthToken:{name:"GetAuthToken",I:Fr,O:Rr,kind:zt.Unary}}};class hr{constructor(t,r){this.line=t,this.character=r,this.lineNumber=t+1,this.column=r+1}static fromMonaco(t){return new hr(t.lineNumber-1,t.column-1)}static fromPosition(t){return new hr(t.line,t.character)}}class ni{constructor(t,r){this.start=t,this.end=r,this.startLineNumber=t.line+1,this.startColumn=t.character+1,this.endLineNumber=r.line+1,this.endColumn=r.character+1}static fromMonaco(t){return new ni(new hr(t.startLineNumber-1,t.startColumn-1),new hr(t.endLineNumber-1,t.endColumn-1))}static fromRange(t){return new ni(t.start,t.end)}}class n3{constructor(t,r){this.text=t,this.range=r}}class i3{constructor(t){this.model=t,this.uri=t.uri,this.languageId=t.getLanguageId()}get lineCount(){return this.model.getLineCount()}lineAt(t){return typeof t!="number"&&(t=t.line),new n3(this.model.getLineContent(t+1),new ni(new hr(t,0),new hr(t,this.model.getLineLength(t+1))))}offsetAt(t){return this.model.getOffsetAt(hr.fromPosition(t))}positionAt(t){return hr.fromMonaco(this.model.getPositionAt(t))}getText(t){return t?this.model.getValueInRange(ni.fromRange(t)):this.model.getValue()}}function dh(e){return e<128?1:e<2048?2:e<65536?3:4}function o3(e,t){if(t===0)return 0;let r=0,i=0;for(const n of e)if(i+=n.length,r+=dh(n.codePointAt(0)),t!==void 0&&i>=t)break;return r}function fh(e,t){if(t===0)return 0;let r=0,i=0;for(const n of e)if(i+=dh(n.codePointAt(0)),r+=n.length,t!==void 0&&i>=t)break;return r}const a3=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),s3=()=>{try{return window.location.href}catch{return null}},u3=()=>{try{return window.CODEIUM_REACT_CODE_VERSION?window.CODEIUM_REACT_CODE_VERSION:null}catch{return null}},l3=e=>{switch(e.toLowerCase()){case"c":return oe.C;case"clojure":return oe.CLOJURE;case"coffeescript":return oe.COFFEESCRIPT;case"cpp":return oe.CPP;case"csharp":return oe.CSHARP;case"css":return oe.CSS;case"cudacpp":return oe.CUDACPP;case"dockerfile":return oe.DOCKERFILE;case"go":return oe.GO;case"groovy":return oe.GROOVY;case"handlebars":return oe.HANDLEBARS;case"haskell":return oe.HASKELL;case"hcl":return oe.HCL;case"html":return oe.HTML;case"ini":return oe.INI;case"java":return oe.JAVA;case"javascript":return oe.JAVASCRIPT;case"json":return oe.JSON;case"julia":return oe.JULIA;case"kotlin":return oe.KOTLIN;case"latex":return oe.LATEX;case"less":return oe.LESS;case"lua":return oe.LUA;case"makefile":return oe.MAKEFILE;case"markdown":return oe.MARKDOWN;case"objectivec":return oe.OBJECTIVEC;case"objectivecpp":return oe.OBJECTIVECPP;case"perl":return oe.PERL;case"php":return oe.PHP;case"plaintext":return oe.PLAINTEXT;case"protobuf":return oe.PROTOBUF;case"pbtxt":return oe.PBTXT;case"python":return oe.PYTHON;case"r":return oe.R;case"ruby":return oe.RUBY;case"rust":return oe.RUST;case"sass":return oe.SASS;case"scala":return oe.SCALA;case"scss":return oe.SCSS;case"shell":return oe.SHELL;case"sql":return oe.SQL;case"starlark":return oe.STARLARK;case"swift":return oe.SWIFT;case"tsx":return oe.TSX;case"typescript":return oe.TYPESCRIPT;case"visualbasic":return oe.VISUALBASIC;case"vue":return oe.VUE;case"xml":return oe.XML;case"xsl":return oe.XSL;case"yaml":return oe.YAML;case"svelte":return oe.SVELTE;case"toml":return oe.TOML;case"dart":return oe.DART;case"rst":return oe.RST;case"ocaml":return oe.OCAML;case"cmake":return oe.CMAKE;case"pascal":return oe.PASCAL;case"elixir":return oe.ELIXIR;case"fsharp":return oe.FSHARP;case"lisp":return oe.LISP;case"matlab":return oe.MATLAB;case"powershell":return oe.POWERSHELL;case"solidity":return oe.SOLIDITY;case"ada":return oe.ADA;case"ocaml_interface":return oe.OCAML_INTERFACE;default:return oe.UNSPECIFIED}};class c3{constructor(t,r,i){this.insertText=t,this.text=t,this.range=r,this.command={id:"codeium.acceptCompletion",title:"Accept Completion",arguments:[i,t]}}}const d3="d49954eb-cfba-4992-980f-d8fb37f0e942";class f3{constructor(t,r,i,n,o){this.setStatus=r,this.setMessage=i,this.apiKey=n,this.multilineModelThreshold=o,this.otherDocuments=[],this.sessionId=`react-editor-${a3()}`,this.client=t}getAuthHeader(){const t=this.getMetadata();return{Authorization:`Basic ${t.apiKey}-${t.sessionId}`}}getMetadata(){var t,r,i;return new ir({ideName:"web",ideVersion:(t=s3())!==null&&t!==void 0?t:"unknown",extensionName:"@codeium/react-code-editor",extensionVersion:(r=u3())!==null&&r!==void 0?r:"unknown",apiKey:(i=this.apiKey)!==null&&i!==void 0?i:d3,sessionId:this.sessionId})}provideInlineCompletions(t,r,i){return nc(this,void 0,void 0,function*(){const n=new i3(t),o=hr.fromMonaco(r);i.onCancellationRequested(()=>{var m;return(m=i.cancellationCallback)===null||m===void 0?void 0:m.call(i)});const a=new AbortController;i.onCancellationRequested(()=>{a.abort()});const u=a.signal;this.setStatus(hn.PROCESSING),this.setMessage("Generating completions...");const s=this.getDocumentInfo(n,o),l={tabSize:BigInt(t.getOptions().tabSize),insertSpaces:t.getOptions().insertSpaces};let c=this.otherDocuments;c.length>10&&(console.warn(`Too many other documents: ${c.length} (max 10)`),c=c.slice(0,10));let d;this.multilineModelThreshold!==void 0&&(d=new gr({threshold:this.multilineModelThreshold}));let f;try{f=yield this.client.getCompletions({metadata:this.getMetadata(),document:s,editorOptions:l,otherDocuments:c,multilineConfig:d},{signal:u,headers:this.getAuthHeader()})}catch(m){m instanceof pt&&m.code===Ae.Canceled||(this.setStatus(hn.ERROR),this.setMessage("Something went wrong; please try again."));return}if(!f.completionItems){const m=" No completions were generated";this.setStatus(hn.SUCCESS),this.setMessage(m);return}const h=f.completionItems.map(m=>this.createInlineCompletionItem(m,n)).filter(m=>!!m);this.setStatus(hn.SUCCESS);let p=`Generated ${h.length} completions`;return h.length===1&&(p="Generated 1 completion"),this.setMessage(p),{items:h}})}acceptedLastCompletion(t){new Promise((r,i)=>{this.client.acceptCompletion({metadata:this.getMetadata(),completionId:t},{headers:this.getAuthHeader()}).then(r).catch(n=>{console.log("Error: ",n)})})}getDocumentInfo(t,r){const i=t.getText(),n=t.offsetAt(r),o=o3(i,n),a=l3(t.languageId);return a===oe.UNSPECIFIED&&console.warn(`Unknown language: ${t.languageId}`),new ri({text:i,editorLanguage:t.languageId,language:a,cursorOffset:BigInt(o),lineEnding:`
225
+ `})}createInlineCompletionItem(t,r){if(!t.completion||!t.range)return;const i=r.getText(),n=r.positionAt(fh(i,Number(t.range.startOffset))),o=r.positionAt(fh(i,Number(t.range.endOffset))),a=new ni(n,o);return new c3(t.completion.text,a,t.completion.completionId)}}class p3{constructor(t,r,i,n,o,a){this.setCompletionCount=r,this.numCompletionsProvided=0,this.completionProvider=new f3(t,i,n,o,a)}freeInlineCompletions(){}provideInlineCompletions(t,r,i,n){return nc(this,void 0,void 0,function*(){const o=yield this.completionProvider.provideInlineCompletions(t,r,n);return o&&(this.numCompletionsProvided+=1,this.setCompletionCount(this.numCompletionsProvided)),o})}acceptedLastCompletion(t){this.completionProvider.acceptedLastCompletion(t)}updateOtherDocuments(t){this.completionProvider.otherDocuments=t}}const m3=e=>{var{className:t,loading:r=!1}=e,i=l0(e,["className","loading"]);return O.createElement("svg",Object.assign({viewBox:"0 0 124 124","aria-label":"Codeium Logo",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{className:t}),O.createElement("mask",{id:"mask0_306_96",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"124",height:"124"},O.createElement("path",{d:"M0 10C0 4.47715 4.47715 0 10 0H114C119.523 0 124 4.47715 124 10V114C124 119.523 119.523 124 114 124H10C4.47715 124 0 119.523 0 114V10Z",fill:"#D9D9D9"})),O.createElement("g",{mask:"url(#mask0_306_96)"},O.createElement("path",{d:"M62 62L0 124V0L62 62Z",fill:"#60D5C4"}),O.createElement("path",{d:"M62 62L124 124V0L62 62Z",fill:"#60D5C4"}),O.createElement("path",{d:"M62 62L124 124L0 124L62 62Z",fill:"#71E9D8"}),O.createElement("path",{d:"M62 62L124 0L0 0L62 62Z",fill:"#71E9D8"}),O.createElement("path",{d:"M107.387 16H16.6133C16.2746 16 16 16.2746 16 16.6133V107.387C16 107.725 16.2746 108 16.6133 108H107.387C107.725 108 108 107.725 108 107.387V16.6133C108 16.2746 107.725 16 107.387 16Z",fill:"#09B6A2"}),O.createElement("path",{d:"M75.196 77.1134C74.1902 77.1134 73.3102 76.7612 72.5559 76.0566C71.8375 75.3169 71.4783 74.4538 71.4783 73.4675C71.4783 72.4459 71.8375 71.5828 72.5559 70.8783C73.3102 70.1386 74.1902 69.7687 75.196 69.7687C76.2377 69.7687 77.1177 70.1386 77.8361 70.8783C78.5545 71.5828 78.9137 72.4459 78.9137 73.4675C78.9137 74.4538 78.5545 75.3169 77.8361 76.0566C77.1177 76.7612 76.2377 77.1134 75.196 77.1134Z",fill:"white","aria-label":"right-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"666ms"}}),O.createElement("path",{d:"M62.3573 77.1134C61.3516 77.1134 60.4715 76.7612 59.7172 76.0566C58.9988 75.3169 58.6396 74.4538 58.6396 73.4675C58.6396 72.4459 58.9988 71.5828 59.7172 70.8783C60.4715 70.1386 61.3516 69.7687 62.3573 69.7687C63.399 69.7687 64.2791 70.1386 64.9974 70.8783C65.7158 71.5828 66.075 72.4459 66.075 73.4675C66.075 74.4538 65.7158 75.3169 64.9974 76.0566C64.2791 76.7612 63.399 77.1134 62.3573 77.1134Z",fill:"white","aria-label":"middle-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"333ms"}}),O.createElement("path",{d:"M49.519 77.1134C48.5132 77.1134 47.6332 76.7612 46.8789 76.0566C46.1605 75.3169 45.8013 74.4538 45.8013 73.4675C45.8013 72.4459 46.1605 71.5828 46.8789 70.8783C47.6332 70.1386 48.5132 69.7687 49.519 69.7687C50.5607 69.7687 51.4407 70.1386 52.1591 70.8783C52.8775 71.5828 53.2367 72.4459 53.2367 73.4675C53.2367 74.4538 52.8775 75.3169 52.1591 76.0566C51.4407 76.7612 50.5607 77.1134 49.519 77.1134Z",fill:"white","aria-label":"left-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"0ms"}}),O.createElement("path",{d:"M85.9869 88.6325C85.1967 88.6325 84.5501 88.3683 84.0473 87.8399C83.5444 87.3468 83.2929 86.7127 83.2929 85.9377C83.2929 85.1275 83.5444 84.4758 84.0473 83.9826C84.5501 83.4894 85.1967 83.2429 85.9869 83.2429C88.178 83.2429 89.2736 82.1684 89.2736 80.0196V67.7079C89.2736 65.2421 89.8483 63.287 90.9977 61.8427C90.423 61.1029 89.992 60.2399 89.7046 59.2535C89.4173 58.2672 89.2736 57.1575 89.2736 55.9246V43.6129C89.2736 41.4641 88.178 40.3897 85.9869 40.3897C85.1967 40.3897 84.5501 40.1431 84.0473 39.6499C83.5444 39.1567 83.2929 38.5227 83.2929 37.7477C83.2929 36.9727 83.5444 36.321 84.0473 35.7926C84.5501 35.2642 85.1967 35 85.9869 35C91.8419 35 94.7693 37.871 94.7693 43.6129V55.9246C94.7693 58.0734 95.8469 59.1478 98.0021 59.1478C98.7924 59.1478 99.4389 59.3944 99.9418 59.8876C100.481 60.3808 100.75 61.0325 100.75 61.8427C100.75 62.6177 100.481 63.2517 99.9418 63.7449C99.4389 64.2381 98.7924 64.4847 98.0021 64.4847C95.8469 64.4847 94.7693 65.5591 94.7693 67.7079V80.0196C94.7693 85.7616 91.8419 88.6325 85.9869 88.6325Z",fill:"white","aria-label":"open-bracket"}),O.createElement("path",{d:"M38.7631 88.6325C32.9081 88.6325 29.9807 85.7616 29.9807 80.0196V67.7079C29.9807 65.5591 28.9031 64.4847 26.7479 64.4847C25.9576 64.4847 25.2931 64.2381 24.7543 63.7449C24.2514 63.2517 24 62.6177 24 61.8427C24 61.0325 24.2514 60.3808 24.7543 59.8876C25.2931 59.3944 25.9576 59.1478 26.7479 59.1478C28.9031 59.1478 29.9807 58.0734 29.9807 55.9246V43.6129C29.9807 37.871 32.9081 35 38.7631 35C39.5533 35 40.1999 35.2642 40.7027 35.7926C41.2056 36.321 41.4571 36.9727 41.4571 37.7477C41.4571 38.5227 41.2056 39.1567 40.7027 39.6499C40.1999 40.1431 39.5533 40.3897 38.7631 40.3897C36.572 40.3897 35.4764 41.4641 35.4764 43.6129V55.9246C35.4764 57.1575 35.3327 58.2672 35.0454 59.2535C34.758 60.2399 34.327 61.1029 33.7522 61.8427C34.9017 63.287 35.4764 65.2421 35.4764 67.7079V80.0196C35.4764 82.1684 36.572 83.2429 38.7631 83.2429C39.5533 83.2429 40.1999 83.4894 40.7027 83.9826C41.2056 84.4758 41.4571 85.1275 41.4571 85.9377C41.4571 86.7127 41.2056 87.3468 40.7027 87.8399C40.1999 88.3683 39.5533 88.6325 38.7631 88.6325Z",fill:"white","aria-label":"close-bracket"})))};function ph(e,t){const r=Object.assign({},t);for(const i in e)typeof e[i]=="object"&&!Array.isArray(e[i])?t[i]&&typeof t[i]=="object"&&!Array.isArray(t[i])?r[i]=ph(e[i],t[i]):r[i]=Object.assign({},e[i]):r[i]=e[i];return r}const g3=e=>{var{languageServerAddress:t="https://web-backend.codeium.com",otherDocuments:r=[],containerClassName:i="",containerStyle:n={}}=e,o=l0(e,["languageServerAddress","otherDocuments","containerClassName","containerStyle"]);const a=O.useRef(null),u=O.useRef(null),s=O.useRef(null),[l,c]=O.useState(-1),[d,f]=O.useState(0),[g,h]=O.useState(hn.INACTIVE),[p,m]=O.useState(""),[b,y]=O.useState(!1),I=O.useMemo(()=>YA({baseUrl:t,useBinaryFormat:!0}),[t]),x=O.useMemo(()=>EA(r3,I),[I]);s.current=O.useMemo(()=>new p3(x,f,h,m,o.apiKey,o.multilineModelThreshold),[]),O.useEffect(()=>{if(!a?.current||!u.current||!s.current)return;const w=u.current,T=w.languages.registerInlineCompletionsProvider({pattern:"**"},s.current),k=w.editor.registerCommand("codeium.acceptCompletion",(V,C,N)=>{var F;try{o.onAutocomplete&&o.onAutocomplete(N),c(l+1),(F=s.current)===null||F===void 0||F.acceptedLastCompletion(C)}catch{console.log("Err")}});return()=>{T.dispose(),k.dispose()}},[a?.current,u?.current,s?.current,l,b]);const v=(w,T)=>nc(void 0,void 0,void 0,function*(){a.current=w,u.current=T,y(!0);try{yield x.getCompletions({})}catch{}o.onMount&&o.onMount(w,T)});O.useEffect(()=>{var w;(w=s.current)===null||w===void 0||w.updateOtherDocuments(r)},[r]);let S={defaultLanguage:o.language,defaultValue:t3(o.language)};const E={width:o.width||"100%",height:o.height||"300px"};return O.createElement("div",{style:Object.assign(Object.assign(Object.assign({},E),{position:"relative"}),n),className:i},O.createElement("a",{href:"https://codeium.com?referrer=codeium-editor",target:"_blank",rel:"noreferrer noopener"},O.createElement(m3,{width:30,height:30,style:{position:"absolute",top:12,right:12,zIndex:1}})),O.createElement(e3,Object.assign({},S,o,{width:E.width,height:E.height,onMount:v,options:ph(o.options,{scrollBeyondLastColumn:0,scrollbar:{alwaysConsumeMouseWheel:!1},codeLens:!1,minimap:{enabled:!1},quickSuggestions:!1,folding:!1,foldingHighlight:!1,foldingImportsByDefault:!1,links:!1,fontSize:14,wordWrap:"on"})})))};function h3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function gh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(r),!0).forEach(function(i){h3(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function v3(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,o;for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function b3(e,t){if(e==null)return{};var r=v3(e,t),i,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function y3(e,t){return C3(e)||x3(e,t)||E3(e,t)||I3()}function C3(e){if(Array.isArray(e))return e}function x3(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],i=!0,n=!1,o=void 0;try{for(var a=e[Symbol.iterator](),u;!(i=(u=a.next()).done)&&(r.push(u.value),!(t&&r.length===t));i=!0);}catch(s){n=!0,o=s}finally{try{!i&&a.return!=null&&a.return()}finally{if(n)throw o}}return r}}function E3(e,t){if(e){if(typeof e=="string")return hh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hh(e,t)}}function hh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function I3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(i){S3(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function w3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(n,o){return o(n)},i)}}function fo(e){return function t(){for(var r=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(n,u))}}}function Cs(e){return{}.toString.call(e).includes("Object")}function A3(e){return!Object.keys(e).length}function po(e){return typeof e=="function"}function T3(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O3(e,t){return Cs(t)||Qr("changeType"),Object.keys(t).some(function(r){return!T3(e,r)})&&Qr("changeField"),t}function k3(e){po(e)||Qr("selectorType")}function P3(e){po(e)||Cs(e)||Qr("handlerType"),Cs(e)&&Object.values(e).some(function(t){return!po(t)})&&Qr("handlersType")}function N3(e){e||Qr("initialIsRequired"),Cs(e)||Qr("initialType"),A3(e)&&Qr("initialContent")}function F3(e,t){throw new Error(e[t]||e.default)}var R3={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Qr=fo(F3)(R3),xs={changes:O3,selector:k3,handler:P3,initial:N3};function M3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xs.initial(e),xs.handler(t);var r={current:e},i=fo(L3)(r,t),n=fo(j3)(r),o=fo(xs.changes)(e),a=fo(V3)(r);function u(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return xs.selector(l),l(r.current)}function s(l){w3(i,n,o,a)(l)}return[u,s]}function V3(e,t){return po(t)?t(e.current):t}function j3(e,t){return e.current=bh(bh({},e.current),t),t}function L3(e,t,r){return po(t)?t(e.current):Object.keys(r).forEach(function(i){var n;return(n=t[i])===null||n===void 0?void 0:n.call(t,e.current[i])}),r}var B3={create:M3},$3={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function D3(e){return function t(){for(var r=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(n,u))}}}function _3(e){return{}.toString.call(e).includes("Object")}function G3(e){return e||Ch("configIsRequired"),_3(e)||Ch("configType"),e.urls?(H3(),{paths:{vs:e.urls.monacoBase}}):e}function H3(){console.warn(yh.deprecation)}function W3(e,t){throw new Error(e[t]||e.default)}var yh={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
227
+ You are using deprecated way of configuration.
228
+
229
+ Instead of using
230
+ monaco.config({ urls: { monacoBase: '...' } })
231
+ use
232
+ monaco.config({ paths: { vs: '...' } })
233
+
234
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
235
+ `},Ch=D3(W3)(yh),z3={config:G3},X3=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(n){return r.reduceRight(function(o,a){return a(o)},n)}};function xh(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],xh(e[r],t[r]))}),gh(gh({},e),t)}var U3={type:"cancelation",msg:"operation is manually canceled"};function bc(e){var t=!1,r=new Promise(function(i,n){e.then(function(o){return t?n(U3):i(o)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var Y3=B3.create({config:$3,isInitialized:!1,resolve:null,reject:null,monaco:null}),Eh=y3(Y3,2),mo=Eh[0],Es=Eh[1];function J3(e){var t=z3.config(e),r=t.monaco,i=b3(t,["monaco"]);Es(function(n){return{config:xh(n.config,i),monaco:r}})}function Z3(){var e=mo(function(t){var r=t.monaco,i=t.isInitialized,n=t.resolve;return{monaco:r,isInitialized:i,resolve:n}});if(!e.isInitialized){if(Es({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),bc(yc);if(window.monaco&&window.monaco.editor)return Ih(window.monaco),e.resolve(window.monaco),bc(yc);X3(q3,K3)(eT)}return bc(yc)}function q3(e){return document.body.appendChild(e)}function Q3(e){var t=document.createElement("script");return e&&(t.src=e),t}function K3(e){var t=mo(function(i){var n=i.config,o=i.reject;return{config:n,reject:o}}),r=Q3("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function eT(){var e=mo(function(r){var i=r.config,n=r.resolve,o=r.reject;return{config:i,resolve:n,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Ih(r),e.resolve(r)},function(r){e.reject(r)})}function Ih(e){mo().monaco||Es({monaco:e})}function tT(){return mo(function(e){var t=e.monaco;return t})}var yc=new Promise(function(e,t){return Es({resolve:e,reject:t})}),Cc={config:J3,init:Z3,__getMonacoInstance:tT},rT={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},xc=rT,nT={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},iT=nT;function oT({children:e}){return O.createElement("div",{style:iT.container},e)}var aT=oT,sT=aT;function uT({width:e,height:t,isEditorReady:r,loading:i,_ref:n,className:o,wrapperProps:a}){return O.createElement("section",{style:{...xc.wrapper,width:e,height:t},...a},!r&&O.createElement(sT,null,i),O.createElement("div",{ref:n,style:{...xc.fullWidth,...!r&&xc.hide},className:o}))}var lT=uT,Sh=O.memo(lT);function cT(e){O.useEffect(e,[])}var wh=cT;function dT(e,t,r=!0){let i=O.useRef(!0);O.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var Lt=dT;function go(){}function ii(e,t,r,i){return fT(e,i)||pT(e,t,r,i)}function fT(e,t){return e.editor.getModel(Ah(e,t))}function pT(e,t,r,i){return e.editor.createModel(t,r,i?Ah(e,i):void 0)}function Ah(e,t){return e.Uri.parse(t)}function mT({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:n,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:s=!1,theme:l="light",loading:c="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:p={},beforeMount:m=go,onMount:b=go}){let[y,I]=O.useState(!1),[x,v]=O.useState(!0),S=O.useRef(null),E=O.useRef(null),w=O.useRef(null),T=O.useRef(b),k=O.useRef(m),V=O.useRef(!1);wh(()=>{let P=Cc.init();return P.then(j=>(E.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>S.current?F():P.cancel()}),Lt(()=>{if(S.current&&E.current){let P=S.current.getOriginalEditor(),j=ii(E.current,e||"",i||r||"text",o||"");j!==P.getModel()&&P.setModel(j)}},[o],y),Lt(()=>{if(S.current&&E.current){let P=S.current.getModifiedEditor(),j=ii(E.current,t||"",n||r||"text",a||"");j!==P.getModel()&&P.setModel(j)}},[a],y),Lt(()=>{let P=S.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],y),Lt(()=>{S.current?.getModel()?.original.setValue(e||"")},[e],y),Lt(()=>{let{original:P,modified:j}=S.current.getModel();E.current.editor.setModelLanguage(P,i||r||"text"),E.current.editor.setModelLanguage(j,n||r||"text")},[r,i,n],y),Lt(()=>{E.current?.editor.setTheme(l)},[l],y),Lt(()=>{S.current?.updateOptions(d)},[d],y);let C=O.useCallback(()=>{if(!E.current)return;k.current(E.current);let P=ii(E.current,e||"",i||r||"text",o||""),j=ii(E.current,t||"",n||r||"text",a||"");S.current?.setModel({original:P,modified:j})},[r,t,n,e,i,o,a]),N=O.useCallback(()=>{!V.current&&w.current&&(S.current=E.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...d}),C(),E.current?.editor.setTheme(l),I(!0),V.current=!0)},[d,l,C]);O.useEffect(()=>{y&&T.current(S.current,E.current)},[y]),O.useEffect(()=>{!x&&!y&&N()},[x,y,N]);function F(){let P=S.current?.getModel();u||P?.original?.dispose(),s||P?.modified?.dispose(),S.current?.dispose()}return O.createElement(Sh,{width:g,height:f,isEditorReady:y,loading:c,_ref:w,className:h,wrapperProps:p})}var gT=mT;O.memo(gT);function hT(e){let t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}var vT=hT,Is=new Map;function bT({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:n,path:o,theme:a="light",line:u,loading:s="Loading...",options:l={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:p,wrapperProps:m={},beforeMount:b=go,onMount:y=go,onChange:I,onValidate:x=go}){let[v,S]=O.useState(!1),[E,w]=O.useState(!0),T=O.useRef(null),k=O.useRef(null),V=O.useRef(null),C=O.useRef(y),N=O.useRef(b),F=O.useRef(),P=O.useRef(i),j=vT(o),B=O.useRef(!1),U=O.useRef(!1);wh(()=>{let L=Cc.init();return L.then(G=>(T.current=G)&&w(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>k.current?$():L.cancel()}),Lt(()=>{let L=ii(T.current,e||i||"",t||n||"",o||r||"");L!==k.current?.getModel()&&(d&&Is.set(j,k.current?.saveViewState()),k.current?.setModel(L),d&&k.current?.restoreViewState(Is.get(o)))},[o],v),Lt(()=>{k.current?.updateOptions(l)},[l],v),Lt(()=>{!k.current||i===void 0||(k.current.getOption(T.current.editor.EditorOption.readOnly)?k.current.setValue(i):i!==k.current.getValue()&&(U.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),k.current.pushUndoStop(),U.current=!1))},[i],v),Lt(()=>{let L=k.current?.getModel();L&&n&&T.current?.editor.setModelLanguage(L,n)},[n],v),Lt(()=>{u!==void 0&&k.current?.revealLine(u)},[u],v),Lt(()=>{T.current?.editor.setTheme(a)},[a],v);let Q=O.useCallback(()=>{if(!(!V.current||!T.current)&&!B.current){N.current(T.current);let L=o||r,G=ii(T.current,i||e||"",t||n||"",L||"");k.current=T.current?.editor.create(V.current,{model:G,automaticLayout:!0,...l},c),d&&k.current.restoreViewState(Is.get(L)),T.current.editor.setTheme(a),u!==void 0&&k.current.revealLine(u),S(!0),B.current=!0}},[e,t,r,i,n,o,l,c,d,a,u]);O.useEffect(()=>{v&&C.current(k.current,T.current)},[v]),O.useEffect(()=>{!E&&!v&&Q()},[E,v,Q]),P.current=i,O.useEffect(()=>{v&&I&&(F.current?.dispose(),F.current=k.current?.onDidChangeModelContent(L=>{U.current||I(k.current.getValue(),L)}))},[v,I]),O.useEffect(()=>{if(v){let L=T.current.editor.onDidChangeMarkers(G=>{let _=k.current.getModel()?.uri;if(_&&G.find(X=>X.path===_.path)){let X=T.current.editor.getModelMarkers({resource:_});x?.(X)}});return()=>{L?.dispose()}}return()=>{}},[v,x]);function $(){F.current?.dispose(),f?d&&Is.set(o,k.current.saveViewState()):k.current.getModel()?.dispose(),k.current.dispose()}return O.createElement(Sh,{width:g,height:h,isEditorReady:v,loading:s,_ref:V,className:p,wrapperProps:m})}var yT=bT;O.memo(yT);var Bt={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},Th=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],Oh=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],kh=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],St=typeof window<"u"&&typeof window.document<"u"?window.document:{},Xt="fullscreenEnabled"in St&&Object.keys(Bt)||Th[0]in St&&Th||Oh[0]in St&&Oh||kh[0]in St&&kh||[],$r={requestFullscreen:function(e){return e[Xt[Bt.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[Xt[Bt.requestFullscreen]]},get exitFullscreen(){return St[Xt[Bt.exitFullscreen]].bind(St)},get fullscreenPseudoClass(){return":"+Xt[Bt.fullscreen]},addEventListener:function(e,t,r){return St.addEventListener(Xt[Bt[e]],t,r)},removeEventListener:function(e,t,r){return St.removeEventListener(Xt[Bt[e]],t,r)},get fullscreenEnabled(){return!!St[Xt[Bt.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return St[Xt[Bt.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return St[("on"+Xt[Bt.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return St[("on"+Xt[Bt.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return St[("on"+Xt[Bt.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return St[("on"+Xt[Bt.fullscreenerror]).toLowerCase()]=e}};function CT(){var e=O.useState(!1),t=e[0],r=e[1],i=O.useRef(null);O.useEffect(function(){var a=function(){r($r.fullscreenElement===i.current)};return $r.addEventListener("fullscreenchange",a),function(){return $r.removeEventListener("fullscreenchange",a)}},[]);var n=O.useCallback(function(){if($r.fullscreenElement)return $r.exitFullscreen().then(function(){return $r.requestFullscreen(i.current)});if(i.current)return $r.requestFullscreen(i.current)},[]),o=O.useCallback(function(){return $r.fullscreenElement===i.current?$r.exitFullscreen():Promise.resolve()},[]);return O.useMemo(function(){return{active:t,enter:n,exit:o,node:i}},[t,n,o])}var xT=function(t){var r=t.handle,i=t.onChange,n=t.children,o=t.className,a=[];return o&&a.push(o),a.push("fullscreen"),r.active&&a.push("fullscreen-enabled"),O.useEffect(function(){i&&i(r.active,r)},[r.active]),O.createElement("div",{className:a.join(" "),ref:r.node,style:r.active?{height:"100%",width:"100%"}:void 0},n)},Ph=function(t){return t.reduce(function(r,i){var n=i[0],o=i[1];return r[n]=o,r},{})},Nh=typeof window<"u"&&window.document&&window.document.createElement?R.useLayoutEffect:R.useEffect,wt="top",Ut="bottom",Yt="right",At="left",Ec="auto",ho=[wt,Ut,Yt,At],oi="start",vo="end",ET="clippingParents",Fh="viewport",bo="popper",IT="reference",Rh=ho.reduce(function(e,t){return e.concat([t+"-"+oi,t+"-"+vo])},[]),Mh=[].concat(ho,[Ec]).reduce(function(e,t){return e.concat([t,t+"-"+oi,t+"-"+vo])},[]),ST="beforeRead",wT="read",AT="afterRead",TT="beforeMain",OT="main",kT="afterMain",PT="beforeWrite",NT="write",FT="afterWrite",RT=[ST,wT,AT,TT,OT,kT,PT,NT,FT];function vr(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vn(e){var t=$t(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=$t(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ic(e){if(typeof ShadowRoot>"u")return!1;var t=$t(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},n=t.attributes[r]||{},o=t.elements[r];!Jt(o)||!vr(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(a){var u=n[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function VT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),u=a.reduce(function(s,l){return s[l]="",s},{});!Jt(n)||!vr(n)||(Object.assign(n.style,u),Object.keys(o).forEach(function(s){n.removeAttribute(s)}))})}}const jT={name:"applyStyles",enabled:!0,phase:"write",fn:MT,effect:VT,requires:["computeStyles"]};function br(e){return e.split("-")[0]}var bn=Math.max,Ss=Math.min,ai=Math.round;function Sc(){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 Vh(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function si(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),n=1,o=1;t&&Jt(e)&&(n=e.offsetWidth>0&&ai(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ai(i.height)/e.offsetHeight||1);var a=vn(e)?$t(e):window,u=a.visualViewport,s=!Vh()&&r,l=(i.left+(s&&u?u.offsetLeft:0))/n,c=(i.top+(s&&u?u.offsetTop:0))/o,d=i.width/n,f=i.height/o;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l,x:l,y:c}}function wc(e){var t=si(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function jh(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ic(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Dr(e){return $t(e).getComputedStyle(e)}function LT(e){return["table","td","th"].indexOf(vr(e))>=0}function Kr(e){return((vn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ws(e){return vr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ic(e)?e.host:null)||Kr(e)}function Lh(e){return!Jt(e)||Dr(e).position==="fixed"?null:e.offsetParent}function BT(e){var t=/firefox/i.test(Sc()),r=/Trident/i.test(Sc());if(r&&Jt(e)){var i=Dr(e);if(i.position==="fixed")return null}var n=ws(e);for(Ic(n)&&(n=n.host);Jt(n)&&["html","body"].indexOf(vr(n))<0;){var o=Dr(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function yo(e){for(var t=$t(e),r=Lh(e);r&&LT(r)&&Dr(r).position==="static";)r=Lh(r);return r&&(vr(r)==="html"||vr(r)==="body"&&Dr(r).position==="static")?t:r||BT(e)||t}function Ac(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Co(e,t,r){return bn(e,Ss(t,r))}function $T(e,t,r){var i=Co(e,t,r);return i>r?r:i}function Bh(){return{top:0,right:0,bottom:0,left:0}}function $h(e){return Object.assign({},Bh(),e)}function Dh(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var DT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$h(typeof t!="number"?t:Dh(t,ho))};function _T(e){var t,r=e.state,i=e.name,n=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,u=br(r.placement),s=Ac(u),l=[At,Yt].indexOf(u)>=0,c=l?"height":"width";if(!(!o||!a)){var d=DT(n.padding,r),f=wc(o),g=s==="y"?wt:At,h=s==="y"?Ut:Yt,p=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],m=a[s]-r.rects.reference[s],b=yo(o),y=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,I=p/2-m/2,x=d[g],v=y-f[c]-d[h],S=y/2-f[c]/2+I,E=Co(x,S,v),w=s;r.modifiersData[i]=(t={},t[w]=E,t.centerOffset=E-S,t)}}function GT(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||jh(t.elements.popper,n)&&(t.elements.arrow=n))}const HT={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:GT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zT(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:ai(r*n)/n||0,y:ai(i*n)/n||0}}function _h(e){var t,r=e.popper,i=e.popperRect,n=e.placement,o=e.variation,a=e.offsets,u=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,g=f===void 0?0:f,h=a.y,p=h===void 0?0:h,m=typeof c=="function"?c({x:g,y:p}):{x:g,y:p};g=m.x,p=m.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),I=At,x=wt,v=window;if(l){var S=yo(r),E="clientHeight",w="clientWidth";if(S===$t(r)&&(S=Kr(r),Dr(S).position!=="static"&&u==="absolute"&&(E="scrollHeight",w="scrollWidth")),S=S,n===wt||(n===At||n===Yt)&&o===vo){x=Ut;var T=d&&S===v&&v.visualViewport?v.visualViewport.height:S[E];p-=T-i.height,p*=s?1:-1}if(n===At||(n===wt||n===Ut)&&o===vo){I=Yt;var k=d&&S===v&&v.visualViewport?v.visualViewport.width:S[w];g-=k-i.width,g*=s?1:-1}}var V=Object.assign({position:u},l&&WT),C=c===!0?zT({x:g,y:p},$t(r)):{x:g,y:p};if(g=C.x,p=C.y,s){var N;return Object.assign({},V,(N={},N[x]=y?"0":"",N[I]=b?"0":"",N.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",N))}return Object.assign({},V,(t={},t[x]=y?p+"px":"",t[I]=b?g+"px":"",t.transform="",t))}function XT(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,o=r.adaptive,a=o===void 0?!0:o,u=r.roundOffsets,s=u===void 0?!0:u,l={placement:br(t.placement),variation:ui(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_h(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_h(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XT,data:{}};var As={passive:!0};function YT(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,o=n===void 0?!0:n,a=i.resize,u=a===void 0?!0:a,s=$t(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,As)}),u&&s.addEventListener("resize",r.update,As),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,As)}),u&&s.removeEventListener("resize",r.update,As)}}const JT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YT,data:{}};var ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ts(e){return e.replace(/left|right|bottom|top/g,function(t){return ZT[t]})}var qT={start:"end",end:"start"};function Gh(e){return e.replace(/start|end/g,function(t){return qT[t]})}function Tc(e){var t=$t(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Oc(e){return si(Kr(e)).left+Tc(e).scrollLeft}function QT(e,t){var r=$t(e),i=Kr(e),n=r.visualViewport,o=i.clientWidth,a=i.clientHeight,u=0,s=0;if(n){o=n.width,a=n.height;var l=Vh();(l||!l&&t==="fixed")&&(u=n.offsetLeft,s=n.offsetTop)}return{width:o,height:a,x:u+Oc(e),y:s}}function KT(e){var t,r=Kr(e),i=Tc(e),n=(t=e.ownerDocument)==null?void 0:t.body,o=bn(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=bn(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),u=-i.scrollLeft+Oc(e),s=-i.scrollTop;return Dr(n||r).direction==="rtl"&&(u+=bn(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:u,y:s}}function kc(e){var t=Dr(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function Hh(e){return["html","body","#document"].indexOf(vr(e))>=0?e.ownerDocument.body:Jt(e)&&kc(e)?e:Hh(ws(e))}function xo(e,t){var r;t===void 0&&(t=[]);var i=Hh(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),o=$t(i),a=n?[o].concat(o.visualViewport||[],kc(i)?i:[]):i,u=t.concat(a);return n?u:u.concat(xo(ws(a)))}function Pc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eO(e,t){var r=si(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wh(e,t,r){return t===Fh?Pc(QT(e,r)):vn(t)?eO(t,r):Pc(KT(Kr(e)))}function tO(e){var t=xo(ws(e)),r=["absolute","fixed"].indexOf(Dr(e).position)>=0,i=r&&Jt(e)?yo(e):e;return vn(i)?t.filter(function(n){return vn(n)&&jh(n,i)&&vr(n)!=="body"}):[]}function rO(e,t,r,i){var n=t==="clippingParents"?tO(e):[].concat(t),o=[].concat(n,[r]),a=o[0],u=o.reduce(function(s,l){var c=Wh(e,l,i);return s.top=bn(c.top,s.top),s.right=Ss(c.right,s.right),s.bottom=Ss(c.bottom,s.bottom),s.left=bn(c.left,s.left),s},Wh(e,a,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function zh(e){var t=e.reference,r=e.element,i=e.placement,n=i?br(i):null,o=i?ui(i):null,a=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,s;switch(n){case wt:s={x:a,y:t.y-r.height};break;case Ut:s={x:a,y:t.y+t.height};break;case Yt:s={x:t.x+t.width,y:u};break;case At:s={x:t.x-r.width,y:u};break;default:s={x:t.x,y:t.y}}var l=n?Ac(n):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case oi:s[l]=s[l]-(t[c]/2-r[c]/2);break;case vo:s[l]=s[l]+(t[c]/2-r[c]/2);break}}return s}function Eo(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,o=r.strategy,a=o===void 0?e.strategy:o,u=r.boundary,s=u===void 0?ET:u,l=r.rootBoundary,c=l===void 0?Fh:l,d=r.elementContext,f=d===void 0?bo:d,g=r.altBoundary,h=g===void 0?!1:g,p=r.padding,m=p===void 0?0:p,b=$h(typeof m!="number"?m:Dh(m,ho)),y=f===bo?IT:bo,I=e.rects.popper,x=e.elements[h?y:f],v=rO(vn(x)?x:x.contextElement||Kr(e.elements.popper),s,c,a),S=si(e.elements.reference),E=zh({reference:S,element:I,placement:n}),w=Pc(Object.assign({},I,E)),T=f===bo?w:S,k={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},V=e.modifiersData.offset;if(f===bo&&V){var C=V[n];Object.keys(k).forEach(function(N){var F=[Yt,Ut].indexOf(N)>=0?1:-1,P=[wt,Ut].indexOf(N)>=0?"y":"x";k[N]+=C[P]*F})}return k}function nO(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=r.boundary,o=r.rootBoundary,a=r.padding,u=r.flipVariations,s=r.allowedAutoPlacements,l=s===void 0?Mh:s,c=ui(i),d=c?u?Rh:Rh.filter(function(h){return ui(h)===c}):ho,f=d.filter(function(h){return l.indexOf(h)>=0});f.length===0&&(f=d);var g=f.reduce(function(h,p){return h[p]=Eo(e,{placement:p,boundary:n,rootBoundary:o,padding:a})[br(p)],h},{});return Object.keys(g).sort(function(h,p){return g[h]-g[p]})}function iO(e){if(br(e)===Ec)return[];var t=Ts(e);return[Gh(e),t,Gh(t)]}function oO(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,o=n===void 0?!0:n,a=r.altAxis,u=a===void 0?!0:a,s=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,g=r.flipVariations,h=g===void 0?!0:g,p=r.allowedAutoPlacements,m=t.options.placement,b=br(m),y=b===m,I=s||(y||!h?[Ts(m)]:iO(m)),x=[m].concat(I).reduce(function(X,K){return X.concat(br(K)===Ec?nO(t,{placement:K,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:p}):K)},[]),v=t.rects.reference,S=t.rects.popper,E=new Map,w=!0,T=x[0],k=0;k<x.length;k++){var V=x[k],C=br(V),N=ui(V)===oi,F=[wt,Ut].indexOf(C)>=0,P=F?"width":"height",j=Eo(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),B=F?N?Yt:At:N?Ut:wt;v[P]>S[P]&&(B=Ts(B));var U=Ts(B),Q=[];if(o&&Q.push(j[C]<=0),u&&Q.push(j[B]<=0,j[U]<=0),Q.every(function(X){return X})){T=V,w=!1;break}E.set(V,Q)}if(w)for(var $=h?3:1,L=function(K){var ee=x.find(function(D){var Z=E.get(D);if(Z)return Z.slice(0,K).every(function(ne){return ne})});if(ee)return T=ee,"break"},G=$;G>0;G--){var _=L(G);if(_==="break")break}t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}}const aO={name:"flip",enabled:!0,phase:"main",fn:oO,requiresIfExists:["offset"],data:{_skip:!1}};function Xh(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Uh(e){return[wt,Yt,Ut,At].some(function(t){return e[t]>=0})}function sO(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,a=Eo(t,{elementContext:"reference"}),u=Eo(t,{altBoundary:!0}),s=Xh(a,i),l=Xh(u,n,o),c=Uh(s),d=Uh(l);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const uO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sO};function lO(e,t,r){var i=br(e),n=[At,wt].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],u=o[1];return a=a||0,u=(u||0)*n,[At,Yt].indexOf(i)>=0?{x:u,y:a}:{x:a,y:u}}function cO(e){var t=e.state,r=e.options,i=e.name,n=r.offset,o=n===void 0?[0,0]:n,a=Mh.reduce(function(c,d){return c[d]=lO(d,t.rects,o),c},{}),u=a[t.placement],s=u.x,l=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}const dO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cO};function fO(e){var t=e.state,r=e.name;t.modifiersData[r]=zh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pO={name:"popperOffsets",enabled:!0,phase:"read",fn:fO,data:{}};function mO(e){return e==="x"?"y":"x"}function gO(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,o=n===void 0?!0:n,a=r.altAxis,u=a===void 0?!1:a,s=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,g=f===void 0?!0:f,h=r.tetherOffset,p=h===void 0?0:h,m=Eo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),b=br(t.placement),y=ui(t.placement),I=!y,x=Ac(b),v=mO(x),S=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,k=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(S){if(o){var N,F=x==="y"?wt:At,P=x==="y"?Ut:Yt,j=x==="y"?"height":"width",B=S[x],U=B+m[F],Q=B-m[P],$=g?-w[j]/2:0,L=y===oi?E[j]:w[j],G=y===oi?-w[j]:-E[j],_=t.elements.arrow,X=g&&_?wc(_):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bh(),ee=K[F],D=K[P],Z=Co(0,E[j],X[j]),ne=I?E[j]/2-$-Z-ee-k.mainAxis:L-Z-ee-k.mainAxis,ce=I?-E[j]/2+$+Z+D+k.mainAxis:G+Z+D+k.mainAxis,Ee=t.elements.arrow&&yo(t.elements.arrow),z=Ee?x==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Re=(N=V?.[x])!=null?N:0,ae=B+ne-Re-z,Qe=B+ce-Re,ze=Co(g?Ss(U,ae):U,B,g?bn(Q,Qe):Q);S[x]=ze,C[x]=ze-B}if(u){var Zt,_r=x==="x"?wt:At,qt=x==="x"?Ut:Yt,xt=S[v],Xe=v==="y"?"height":"width",Ge=xt+m[_r],mt=xt-m[qt],Qt=[wt,At].indexOf(b)!==-1,Kt=(Zt=V?.[v])!=null?Zt:0,yn=Qt?Ge:xt-E[Xe]-w[Xe]-Kt+k.altAxis,Cn=Qt?xt+E[Xe]+w[Xe]-Kt-k.altAxis:mt,ci=g&&Qt?$T(yn,xt,Cn):Co(g?yn:Ge,xt,g?Cn:mt);S[v]=ci,C[v]=ci-xt}t.modifiersData[i]=C}}const hO={name:"preventOverflow",enabled:!0,phase:"main",fn:gO,requiresIfExists:["offset"]};function vO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bO(e){return e===$t(e)||!Jt(e)?Tc(e):vO(e)}function yO(e){var t=e.getBoundingClientRect(),r=ai(t.width)/e.offsetWidth||1,i=ai(t.height)/e.offsetHeight||1;return r!==1||i!==1}function CO(e,t,r){r===void 0&&(r=!1);var i=Jt(t),n=Jt(t)&&yO(t),o=Kr(t),a=si(e,n,r),u={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&((vr(t)!=="body"||kc(o))&&(u=bO(t)),Jt(t)?(s=si(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Oc(o))),{x:a.left+u.scrollLeft-s.x,y:a.top+u.scrollTop-s.y,width:a.width,height:a.height}}function xO(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function n(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!r.has(u)){var s=t.get(u);s&&n(s)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||n(o)}),i}function EO(e){var t=xO(e);return RT.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function IO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function SO(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Yh={placement:"bottom",modifiers:[],strategy:"absolute"};function Jh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function wO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,o=n===void 0?Yh:n;return function(u,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yh,o),modifiersData:{},elements:{reference:u,popper:s},attributes:{},styles:{}},d=[],f=!1,g={state:c,setOptions:function(b){var y=typeof b=="function"?b(c.options):b;p(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:vn(u)?xo(u):u.contextElement?xo(u.contextElement):[],popper:xo(s)};var I=EO(SO([].concat(i,c.options.modifiers)));return c.orderedModifiers=I.filter(function(x){return x.enabled}),h(),g.update()},forceUpdate:function(){if(!f){var b=c.elements,y=b.reference,I=b.popper;if(Jh(y,I)){c.rects={reference:CO(y,yo(I),c.options.strategy==="fixed"),popper:wc(I)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var v=c.orderedModifiers[x],S=v.fn,E=v.options,w=E===void 0?{}:E,T=v.name;typeof S=="function"&&(c=S({state:c,options:w,name:T,instance:g})||c)}}}},update:IO(function(){return new Promise(function(m){g.forceUpdate(),m(c)})}),destroy:function(){p(),f=!0}};if(!Jh(u,s))return g;g.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function h(){c.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,I=y===void 0?{}:y,x=m.effect;if(typeof x=="function"){var v=x({state:c,name:b,instance:g,options:I}),S=function(){};d.push(v||S)}})}function p(){d.forEach(function(m){return m()}),d=[]}return g}}var AO=[JT,pO,UT,jT,dO,aO,hO,HT,uO],TO=wO({defaultModifiers:AO}),Nc,Zh;function OO(){if(Zh)return Nc;Zh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function n(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,s,l;if(Array.isArray(o)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(!n(o[s],a[s]))return!1;return!0}var c;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;for(c=o.entries();!(s=c.next()).done;)if(!n(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(l=Object.keys(o),u=l.length,u!==Object.keys(a).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((l[s]==="_owner"||l[s]==="__v"||l[s]==="__o")&&o.$$typeof)&&!n(o[l[s]],a[l[s]]))return!1;return!0}return o!==o&&a!==a}return Nc=function(a,u){try{return n(a,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},Nc}var kO=OO();const PO=Fo(kO);var NO=[],FO=function(t,r,i){i===void 0&&(i={});var n=R.useRef(null),o={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||NO},a=R.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=a[0],s=a[1],l=R.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var h=g.state,p=Object.keys(h.elements);Rs.flushSync(function(){s({styles:Ph(p.map(function(m){return[m,h.styles[m]||{}]})),attributes:Ph(p.map(function(m){return[m,h.attributes[m]]}))})})},requires:["computeStyles"]}},[]),c=R.useMemo(function(){var f={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return PO(n.current,f)?n.current||f:(n.current=f,f)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=R.useRef();return Nh(function(){d.current&&d.current.setOptions(c)},[c]),Nh(function(){if(!(t==null||r==null)){var f=i.createPopper||TO,g=f(t,r,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,r,i.createPopper]),{state:d.current?d.current.state:null,styles:u.styles,attributes:u.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};function qh(e){var t=R.useRef(e);return t.current=e,R.useCallback(function(){return t.current},[])}var RO=function(){};function MO(e){var t=e.initial,r=e.value,i=e.onChange,n=i===void 0?RO:i;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=R.useState(t),a=o[0],u=o[1],s=qh(a),l=R.useCallback(function(d){var f=s(),g=typeof d=="function"?d(f):d;typeof g.persist=="function"&&g.persist(),u(g),typeof n=="function"&&n(g)},[s,n]),c=r!==void 0;return[c?r:a,c?n:l]}function Qh(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var VO=["styles","attributes"],Kh={getBoundingClientRect:Qh()},ev={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function jO(e,t){var r,i,n;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(ev).reduce(function(P,j){var B;return se({},P,(B={},B[j]=P[j]!==void 0?P[j]:ev[j],B))},e),a=R.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),u=se({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||a}),s=R.useState(null),l=s[0],c=s[1],d=R.useState(null),f=d[0],g=d[1],h=MO({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),p=h[0],m=h[1],b=R.useRef();R.useEffect(function(){return function(){return clearTimeout(b.current)}},[]);var y=FO(o.followCursor?Kh:l,f,u),I=y.styles,x=y.attributes,v=Sd(y,VO),S=v.update,E=qh({visible:p,triggerRef:l,tooltipRef:f,finalConfig:o}),w=R.useCallback(function(P){return Array.isArray(o.trigger)?o.trigger.includes(P):o.trigger===P},Array.isArray(o.trigger)?o.trigger:[o.trigger]),T=R.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return m(!1)},o.delayHide)},[o.delayHide,m]),k=R.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return m(!0)},o.delayShow)},[o.delayShow,m]),V=R.useCallback(function(){E().visible?T():k()},[E,T,k]);R.useEffect(function(){if(E().finalConfig.closeOnOutsideClick){var P=function(B){var U,Q=E(),$=Q.tooltipRef,L=Q.triggerRef,G=(B.composedPath==null||(U=B.composedPath())==null?void 0:U[0])||B.target;G instanceof Node&&$!=null&&L!=null&&!$.contains(G)&&!L.contains(G)&&T()};return document.addEventListener("mousedown",P),function(){return document.removeEventListener("mousedown",P)}}},[E,T]),R.useEffect(function(){if(!(l==null||!w("click")))return l.addEventListener("click",V),function(){return l.removeEventListener("click",V)}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("double-click")))return l.addEventListener("dblclick",V),function(){return l.removeEventListener("dblclick",V)}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("right-click"))){var P=function(B){B.preventDefault(),V()};return l.addEventListener("contextmenu",P),function(){return l.removeEventListener("contextmenu",P)}}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("focus")))return l.addEventListener("focus",k),l.addEventListener("blur",T),function(){l.removeEventListener("focus",k),l.removeEventListener("blur",T)}},[l,w,k,T]),R.useEffect(function(){if(!(l==null||!w("hover")))return l.addEventListener("mouseenter",k),l.addEventListener("mouseleave",T),function(){l.removeEventListener("mouseenter",k),l.removeEventListener("mouseleave",T)}},[l,w,k,T]),R.useEffect(function(){if(!(f==null||!w("hover")||!E().finalConfig.interactive))return f.addEventListener("mouseenter",k),f.addEventListener("mouseleave",T),function(){f.removeEventListener("mouseenter",k),f.removeEventListener("mouseleave",T)}},[f,w,k,T,E]);var C=v==null||(r=v.state)==null||(i=r.modifiersData)==null||(n=i.hide)==null?void 0:n.isReferenceHidden;R.useEffect(function(){o.closeOnTriggerHidden&&C&&T()},[o.closeOnTriggerHidden,T,C]),R.useEffect(function(){if(!o.followCursor||l==null)return;function P(j){var B=j.clientX,U=j.clientY;Kh.getBoundingClientRect=Qh(B,U),S?.()}return l.addEventListener("mousemove",P),function(){return l.removeEventListener("mousemove",P)}},[o.followCursor,l,S]),R.useEffect(function(){if(!(f==null||S==null||o.mutationObserverOptions==null)){var P=new MutationObserver(S);return P.observe(f,o.mutationObserverOptions),function(){return P.disconnect()}}},[o.mutationObserverOptions,f,S]);var N=function(j){return j===void 0&&(j={}),se({},j,{style:se({},j.style,I.popper)},x.popper,{"data-popper-interactive":o.interactive})},F=function(j){return j===void 0&&(j={}),se({},j,x.arrow,{style:se({},j.style,I.arrow),"data-popper-arrow":!0})};return se({getArrowProps:F,getTooltipProps:N,setTooltipRef:g,setTriggerRef:c,tooltipRef:f,triggerRef:l,visible:p},v)}const en=({children:e,title:t,hideTooltip:r=!1,delayShow:i=!1,whiteSpace:n="initial",...o})=>{const{getArrowProps:a,getTooltipProps:u,setTooltipRef:s,setTriggerRef:l,visible:c}=jO({placement:o.placement||"top"}),[d,f]=O.useState(!i),[g,h]=O.useState(null),p=()=>{if(i){const b=setTimeout(()=>{f(!0)},1e3);h(b)}else f(!0)},m=()=>{g&&(clearTimeout(g),h(null)),i&&f(!1)};return A.jsxs(A.Fragment,{children:[A.jsx("div",{ref:l,className:o?.className,onMouseEnter:p,onMouseLeave:m,children:e}),c&&(i?d&&t:t)&&!r&&Sn.createPortal(A.jsxs("div",{ref:s,...u({className:"tooltip-container",style:{whiteSpace:n}}),children:[t,A.jsx("div",{...a({className:"tooltip-arrow"})})]}),document.body)]})};var Fc,tv;function LO(){if(tv)return Fc;tv=1;var e="Expected a function",t=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s=typeof No=="object"&&No&&No.Object===Object&&No,l=typeof self=="object"&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,h=Math.min,p=function(){return c.Date.now()};function m(v,S,E){var w,T,k,V,C,N,F=0,P=!1,j=!1,B=!0;if(typeof v!="function")throw new TypeError(e);S=x(S)||0,b(E)&&(P=!!E.leading,j="maxWait"in E,k=j?g(x(E.maxWait)||0,S):k,B="trailing"in E?!!E.trailing:B);function U(D){var Z=w,ne=T;return w=T=void 0,F=D,V=v.apply(ne,Z),V}function Q(D){return F=D,C=setTimeout(G,S),P?U(D):V}function $(D){var Z=D-N,ne=D-F,ce=S-Z;return j?h(ce,k-ne):ce}function L(D){var Z=D-N,ne=D-F;return N===void 0||Z>=S||Z<0||j&&ne>=k}function G(){var D=p();if(L(D))return _(D);C=setTimeout(G,$(D))}function _(D){return C=void 0,B&&w?U(D):(w=T=void 0,V)}function X(){C!==void 0&&clearTimeout(C),F=0,w=N=T=C=void 0}function K(){return C===void 0?V:_(p())}function ee(){var D=p(),Z=L(D);if(w=arguments,T=this,N=D,Z){if(C===void 0)return Q(N);if(j)return C=setTimeout(G,S),U(N)}return C===void 0&&(C=setTimeout(G,S)),V}return ee.cancel=X,ee.flush=K,ee}function b(v){var S=typeof v;return!!v&&(S=="object"||S=="function")}function y(v){return!!v&&typeof v=="object"}function I(v){return typeof v=="symbol"||y(v)&&f.call(v)==r}function x(v){if(typeof v=="number")return v;if(I(v))return t;if(b(v)){var S=typeof v.valueOf=="function"?v.valueOf():v;v=b(S)?S+"":S}if(typeof v!="string")return v===0?v:+v;v=v.replace(i,"");var E=o.test(v);return E||a.test(v)?u(v.slice(2),E?2:8):n.test(v)?t:+v}return Fc=m,Fc}var BO=LO();const $O=Fo(BO),Tt={createSuccess:function(e){return`${e} created successfully.`},createFailure:function(e){return`${e} creation failed. Please retry.`},updateSuccess:function(e){return`${e} updated successfully.`},updateFailure:function(e){return`${e} update failed. Please retry.`},copySuccess:function(e){return`${e} copied successfully.`},copyFailure:function(e){return`${e} copy failed. Please retry.`},copyToClipboard:function(e){return`${e} copied to clipboard.`},deleteSuccess:function(e){return`${e} deleted successfully.`},deleteFailure:function(e){return`${e} delete failed. Please retry.`},errorMessage:"Something went wrong.",requiredFieldError:"Please fill out all mandatory fields.",noItemSelected:"No item selected.",invalidFileType:"Non acceptable file type.",formatFailed:"Failed to format."},rv=({monacoEditor:e,currentEditorModel:t,code:r,setCode:i,enable:n,checkSyntaxAPI:o,formatCodeAPI:a})=>{const[u,s]=O.useState(null),[l,c]=O.useState(!1);function d(p){const m={};let b=0;return{result:p.replace(/{{(.*?)}}/g,(I,x,v,S)=>{const E=S.slice(0,v),w=S.slice(v+I.length),T=E.endsWith('"')&&w.startsWith('"'),k=E.endsWith("'")&&w.startsWith("'");return T||k?I:(m[`__dynamic_value_${b}`]=I,`"__dynamic_value_${b++}"`)}),originalValues:m}}function f(p,m){return p.replace(/"__dynamic_value_\d+"/g,b=>{const y=b.slice(1,-1);return m[y]||b})}const g=async()=>{if(!e||!t||!o){console.warn("Monaco editor, model, or syntax check API not available");return}c(!0);try{const{result:p}=d(r),b=(await o(p))?.data?.error;if(b?.message){s(b);const y=[{startLineNumber:b.line||1,endLineNumber:b.line||1,startColumn:b.column||1,endColumn:b.column||1,message:b.message,severity:e.MarkerSeverity?.Error||8}];try{e.editor.setModelMarkers(t,"owner",y)}catch(I){console.warn("Failed to set error markers:",I)}}else{s(null);try{e.editor.setModelMarkers(t,"owner",[])}catch(y){console.warn("Failed to clear error markers:",y)}}}catch(p){if(console.warn("Syntax check failed:",p),s(null),e&&t)try{e.editor.setModelMarkers(t,"owner",[])}catch(m){console.warn("Failed to clear error markers after error:",m)}}finally{c(!1)}},h=async()=>{if(!e||!t||!a){console.warn("Monaco editor, model, or format API not available");return}c(!0);try{const{result:p,originalValues:m}=d(r),b=await a(p);if(b?.data?.formatted_code){const y=f(b.data.formatted_code,m);i(y)}else console.warn("No formatted code received from service")}catch(p){const m=p?.message||Tt.formatFailed;console.warn("Code formatting failed:",m),me.error(m,{toastId:m})}finally{c(!1)}};return O.useEffect(()=>{if(e&&n&&o){const p=$O(g,500);return p(),()=>{p.cancel()}}},[r,e]),{pythonError:u,pythonLoading:l,handleCheckSyntax:g,handleFormatCode:h}},nv=()=>{const[e,t]=O.useState("light"),[r,i]=O.useState("vs"),n=O.useCallback(o=>{i(o),t(o==="vs-dark"?"dark":"light")},[]);return{theme:e,editorTheme:r,setEditorTheme:n}};class li{static instance;monaco=null;initialized=!1;initializationPromise=null;static getInstance(){return li.instance||(li.instance=new li),li.instance}async initialize(){return this.initialized&&this.monaco?this.monaco:this.initializationPromise?this.initializationPromise:(this.initializationPromise=this.performInitialization(),this.initializationPromise)}async performInitialization(){try{return this.monaco=await Cc.init(),this.initialized=!0,this.initializationPromise=null,this.monaco}catch(t){throw this.initializationPromise=null,console.error("Failed to initialize Monaco Editor:",t),new Error(`Monaco Editor initialization failed: ${t instanceof Error?t.message:"Unknown error"}`)}}getMonaco(){return this.monaco}isInitialized(){return this.initialized}getEditorInstance(t=0){if(!this.monaco)return console.warn("Monaco Editor not initialized"),null;const r=this.monaco.editor.getEditors();return r.length<=t?(console.warn(`No editor found at index ${t}. Available editors: ${r.length}`),null):r[t]}getFirstEditorInstance(){return this.getEditorInstance(0)}static safeDispose(t){t.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch(i){console.warn("Error disposing Monaco resource:",i)}})}}const iv=li.getInstance(),ov=e=>{try{return JSON.parse(e)}catch(t){throw new Error(`Invalid JSON: ${t.message}`)}},DO=e=>{if(!e.length)return[];const t=[...e].sort((i,n)=>i.length-n.length),r=[];for(const i of t)!r.some(o=>i.startsWith(o+".")||i===o)&&r.push(i);return r},_O=e=>{const t="0123456789abcdef";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r},av=({style:e,value:t,onChange:r,isEditMode:i,isDarkMode:n,allExpanded:o})=>{const[a,u]=O.useState({}),[s,l]=O.useState(null);O.useEffect(()=>{try{const d=ov(t);u(d),l(null)}catch(d){l("Invalid JSON: "+d.message)}},[t]);const c=(d,f,g=0)=>{const h=g*20;if(d===null)return A.jsxs("div",{style:{marginLeft:h},className:"text-neutral-500",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{children:"null"})]});if(typeof d=="boolean"||typeof d=="number")return A.jsxs("div",{style:{marginLeft:h},className:"text-orange-600",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{children:String(d)})]});if(typeof d=="string")return A.jsxs("div",{style:{marginLeft:h},className:"text-green-600",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsxs("span",{children:['"',d,'"']})]});if(Array.isArray(d))return A.jsxs("div",{style:{marginLeft:h},children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{className:"text-neutral-600",children:"["}),d.length>0&&A.jsx("div",{className:"ml-4",children:d.map((p,m)=>A.jsxs("div",{children:[c(p,void 0,g+1),m<d.length-1&&A.jsx("span",{className:"text-neutral-600",children:","})]},m))}),A.jsx("span",{className:"text-neutral-600",children:"]"})]});if(typeof d=="object"&&d!==null){const p=Object.entries(d);return A.jsxs("div",{style:{marginLeft:h},children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{className:"text-neutral-600",children:"{"}),p.length>0&&A.jsx("div",{className:"ml-4",children:p.map(([m,b],y)=>A.jsxs("div",{children:[c(b,m,g+1),y<p.length-1&&A.jsx("span",{className:"text-neutral-600",children:","})]},m))}),A.jsx("span",{className:"text-neutral-600",children:"}"})]})}return null};return A.jsx("div",{className:`bg-white dark:bg-neutral-800 rounded-b-lg p-4 overflow-auto font-mono text-sm ${n?"text-white":"text-neutral-900"}`,style:e,children:s?A.jsx("div",{className:"text-red-600 font-medium",children:s}):A.jsx("div",{className:"whitespace-pre-wrap",children:c(a)})})},sv=({variant:e="default",tabs:t,activeTab:r,onTabClick:i,size:n="md",tabIcons:o={},height:a="h-6",className:u})=>e==="switch"?A.jsx("div",{className:re("inline",u),children:A.jsx("ul",{className:"inline-flex grow-0 p-1 rounded-lg bg-neutral-100 dark:bg-neutral-700 w-auto",children:t.map(s=>{const l=r===s,c=o?.[s];return A.jsx("li",{className:"inline-flex w-auto",children:A.jsxs("button",{onClick:()=>i(s),className:re("relative py-0.5 px-3 border-gray-200",a,"w-auto flex items-center justify-center","relative text-xs font-semibold font-sans whitespace-nowrap",l?"text-neutral-900 dark:text-neutral-100":"text-neutral-700 dark:text-neutral-100"),children:[l&&A.jsx("span",{className:"absolute inset-0 bg-white dark:bg-neutral-800 rounded-md z-0"}),A.jsxs("span",{className:"relative z-10 flex items-center gap-1",children:[c,s]})]})},s)})})}):A.jsx("div",{className:re("w-full",u),children:A.jsx("ul",{className:re("flex items-center w-full",n==="sm"?"gap-1":"gap-2"),children:t.map(s=>{const l=r===s,c=o?.[s];return A.jsx("li",{className:"sm:mr-2",children:A.jsxs("button",{onClick:()=>i(s),className:re("relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group","relative uppercase font-sans font-semibold text-sm whitespace-nowrap",l?"text-blue-600 dark:text-blue-500":"text-neutral-400 hover:text-neutral-500 dark:text-neutral-100 dark:hover:text-white"),children:[A.jsxs("span",{className:"flex items-center gap-1",children:[c,s]}),l&&A.jsx("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-blue-600"})]})},s)})})}),GO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),HO=()=>A.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"})}),WO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"})}),zO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z"})}),XO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})}),UO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})}),YO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12"})}),JO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"})}),ZO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),qO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z"})}),QO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})}),KO={JSON:A.jsx(GO,{}),Grid:A.jsx(HO,{})},ek=["JSON","Grid"],tk=({value:e,onChange:t=()=>!1,withFullScreen:r=!0,withTheme:i=!0,isEditMode:n=!1,height:o="55vh",language:a="json",monacoEditor:u,isShowCopy:s=!0,isShowDownload:l=!0,setIsDisableSave:c,withJsonGrid:d=!0})=>{const f=O.useRef(null),{editorTheme:g,setEditorTheme:h,theme:p}=nv(),[m,b]=O.useState(!1),[y,I]=O.useState(null),[x,v]=O.useState(null),[S,E]=O.useState(!1);O.useEffect(()=>{(async()=>{try{const Z=await iv.initialize();v(Z),E(!0)}catch(Z){console.error("Failed to initialize Monaco Editor:",Z),E(!1)}})()},[]);const w=u||x,{handleFormatCode:T,pythonError:k,pythonLoading:V}=rv({code:e,setCode:t,currentEditorModel:y,monacoEditor:w,enable:n===!0&&a==="python"}),C=CT(),[N,F]=O.useState("JSON"),[P,j]=O.useState(!1),B=a==="json",U=()=>{C?.active?C.exit():C.enter()},Q=D=>{f.current=D;const Z=()=>{try{if(a==="python"){const ne=D.getModel();ne&&I(ne)}a==="json"&&requestAnimationFrame(()=>{L()}),D.updateOptions({fontSize:14})}catch(ne){console.warn("Failed to initialize editor:",ne)}};if(D.getModel())Z();else{const ne=D.onDidChangeModel(()=>{Z(),ne.dispose()})}},$=()=>{try{const D=JSON.parse(e),Z=JSON.stringify(D,null,4);t(Z),y&&w&&w.editor.setModelMarkers(y,"json",[])}catch(D){if(y&&w){const Z=D instanceof Error?D.message:"Invalid JSON";try{w.editor.setModelMarkers(y,"json",[{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1,message:`Cannot format: ${Z}`,severity:w.MarkerSeverity.Error}])}catch(ne){console.warn("Failed to set JSON error markers:",ne)}}}},L=()=>{if(a==="python"){T();return}if(a==="json"){$();return}if(f.current)try{const D=f.current.getAction("editor.action.formatDocument");D&&D.run()}catch(D){console.warn("Failed to format document:",D)}},G=D=>{typeof D=="string"&&t(D)};if(O.useEffect(()=>{c&&c(k||V)},[k,V,c]),!u&&!S)return A.jsx("div",{className:"flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:A.jsx("div",{className:"text-neutral-600 dark:text-neutral-400",children:"Loading editor..."})});const _=re("hover:bg-neutral-300 hover:dark:bg-neutral-700 p-0.5 rounded-md flex items-center justify-center"),X=()=>{if(a==="python")try{let D=e;D&&(D=D.replace(/\r\n/g,`
236
+ `).replace(/\r/g,`
237
+ `),D=D.split(`
238
+ `).map(Z=>Z.trimEnd()).join(`
239
+ `),D=D.replace(/\n+$/,"")+`
240
+ `),navigator?.clipboard?.writeText(D).then(()=>{me.success(Tt.copySuccess("Python Code"))}).catch(Z=>{const ne=Z;me.error(ne?.message||Tt.copyFailure("Python Code"),{toastId:Tt.copyFailure("Python Code")})})}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("Python Code"),{toastId:Tt.copyFailure("Python Code")})}else if(a==="json")try{const D=JSON.parse(e),Z=JSON.stringify(D,null,4);navigator?.clipboard?.writeText(Z),me.success(Tt.copySuccess("JSON Code"))}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("JSON Code"),{toastId:Tt.copyFailure("JSON Code")})}else navigator?.clipboard?.writeText(e),me.success(Tt.copySuccess("Code"))},K=D=>D==="python"?{type:"text/x-python",extension:"py"}:D==="json"?{type:"application/json",extension:"json"}:{type:"text/plain",extension:"txt"},ee=()=>{try{const D=new Blob([e],{type:K(a)?.type}),Z=URL.createObjectURL(D),ne=document.createElement("a");ne.href=Z,ne.download=`code_${Date.now()}.${K(a)?.extension}`,document.body.appendChild(ne),ne.click(),document.body.removeChild(ne),URL.revokeObjectURL(Z),me.success(Tt.copySuccess("Code download"))}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("Code download"),{toastId:Tt.copyFailure("Code download")})}};return A.jsx(xT,{handle:C,className:"h-full",children:A.jsxs("div",{className:"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full",id:"code-editor-container-with-json-grid",children:[A.jsxs("div",{className:re(`px-3 py-2 flex items-center bg-white rounded-t-lg dark:bg-neutral-800 ${d?"border-none":"border-b border-neutral-200 dark:border-neutral-700"} `,B?"justify-between":"justify-end"),children:[B&&d&&A.jsx(sv,{variant:"switch",tabs:ek,activeTab:N,size:"sm",onTabClick:D=>F(D),tabIcons:KO,height:"h-[20px]"}),A.jsxs("div",{className:"flex items-center gap-0.5",children:[N==="Grid"&&n&&d&&A.jsx("span",{className:"flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5",children:A.jsx(en,{title:"Add key",children:A.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>j(!0),className:re("p-0.5 rounded-md flex items-center justify-center","hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"),children:A.jsx(QO,{})})})}),N==="Grid"?A.jsxs(A.Fragment,{children:[A.jsx(en,{title:"Collapse all",children:A.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>b(!1),className:_,children:A.jsx(ZO,{})})}),A.jsx(en,{title:"Expand all",children:A.jsx("button",{id:"btn-code-editor-json-grid-down",onClick:()=>b(!0),className:_,children:A.jsx(qO,{})})})]}):null,N==="JSON"&&d?A.jsx(en,{title:"Format",children:A.jsx("button",{id:"btn-code-editor-format-code",onClick:L,className:_,children:A.jsx(JO,{})})}):null,i&&N==="JSON"&&d?A.jsx(en,{title:g==="vs"?"Dark mode":"Light mode",children:A.jsx("button",{id:"btn-code-editor-with-theme",onClick:()=>h(g==="vs"?"vs-dark":"vs"),className:_,children:g==="vs"?A.jsx(WO,{}):A.jsx(zO,{})})}):null,(a==="python"||a==="json")&&s?A.jsx(en,{title:"Copy",children:A.jsx("button",{id:"btn-code-editor-copy-code",onClick:X,className:_,children:A.jsx(XO,{})})}):null,(a==="python"||a==="json")&&l?A.jsx(en,{title:"Download",children:A.jsx("button",{id:"btn-code-editor-download-code",onClick:ee,className:_,children:A.jsx(UO,{})})}):null,r?A.jsx(en,{title:"Fullscreen",children:A.jsx("button",{onClick:U,id:"btn-code-editor-fullscreen",className:_,children:A.jsx(YO,{})})}):null]})]}),N==="Grid"&&a==="json"?A.jsx("div",{children:A.jsx(av,{isFullScreen:C?.active,allExpanded:m,toggleAll:()=>b(D=>!D),isEditMode:!!n,isDarkMode:p==="dark",style:{height:C?.active?"100vh":o},value:e,onChange:t,setIsAddKeyModalOpen:j,isAddKeyModalOpen:P})}):A.jsx(g3,{height:C?.active?"100vh":o,containerStyle:{height:o},language:a,value:e,onChange:G,theme:g,onMount:Q,options:{fontSize:16,folding:!0,fontFamily:"Menlo, Monaco, 'Courier New', monospace",fontLigatures:!0,readOnly:!n}})]})})};he.Badge=Qg,he.Banner=Kg,he.CURRENCIES=Kl,he.CURRENCY_SYMBOLS=zg,he.Checkbox=Sp,he.CodeEditor=tk,he.ColorPicker=wp,he.CreatableSelectField=Wg,he.CurrencyInputField=Xg,he.DateRange=Ug,he.DebounceInputField=Yg,he.InputField=Jc,he.JsonGrid=av,he.PdfViewer=e0,he.PercentageInputField=Jg,he.Popper=r0,he.StatusColorMapping=qg,he.Tabs=sv,he.TextField=pv,he.Toast=I5,he.Toggle=Zg,he.Typography=Ce,he.filterTopLevelPaths=DO,he.monacoManager=iv,he.parseJson=ov,he.randomHexString=_O,he.systemMessages=Tt,he.toast=S5,he.useOutsideClick=t0,he.usePythonSyntax=rv,he.useTheme=nv,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});