react-luminus-components 1.3.25 → 1.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +89 -74
- package/dist/PrimaryButton-C3toFFlE.cjs +1 -0
- package/dist/{PrimaryButton-Bewa28m7.js → PrimaryButton-CToGCd5i.js} +31 -25
- package/dist/{SimpleTooltip-B7H1sJLN.js → SimpleTooltip-0rNY6uR5.js} +1 -1
- package/dist/{SimpleTooltip-Cssc2MLs.cjs → SimpleTooltip-E2QIyvNE.cjs} +1 -1
- package/dist/{UserAvatarToggle-C1CRXpP2.js → UserAvatarToggle-CIpmuTVE.js} +66 -62
- package/dist/{UserAvatarToggle-DYIBvTYX.cjs → UserAvatarToggle-J8ZQDJ2r.cjs} +2 -2
- package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +14 -0
- package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +12 -0
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +7 -0
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +11 -0
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/index.d.ts +2 -0
- package/dist/components/Layout/MessageBoard/components/index.d.ts +1 -0
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/common/AlertItem/AlertItem.d.ts +9 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +17 -5
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +10 -3
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.d.ts +248 -1
- package/dist/contexts.es.js +161 -152
- package/dist/dateUtils-C47nO5qP.js +13 -0
- package/dist/dateUtils-Dy3knMZB.cjs +1 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +162 -1
- package/dist/hooks.es.js +73 -2944
- package/dist/{latinize-BQrinury.js → latinize-B-UfS78J.js} +41 -34
- package/dist/{latinize-DaqzUOla.cjs → latinize-Dl6DAk4g.cjs} +1 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.d.ts +56 -1
- package/dist/layout.es.js +13 -12
- package/dist/main.cjs.js +28 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.es.js +3298 -2021
- package/dist/models/index.d.ts +3 -0
- package/dist/models/luminus-context-types/CommonLuminusIcons.d.ts +2 -0
- package/dist/models/luminus-context-types/ILocalizationContext.d.ts +7 -0
- package/dist/models/texts/MessageBoardTexts.d.ts +4 -0
- package/dist/models/types/BaseMessageBoardModel.d.ts +8 -0
- package/dist/parseISO-DTRVS-Fr.cjs +1 -0
- package/dist/{dateUtils-C7tHbjab.js → parseISO-DxNDV6y0.js} +37 -46
- package/dist/{searchUtils-Do20vjZW.cjs → searchUtils-CYFu8LBz.cjs} +1 -1
- package/dist/searchUtils-Dxbvcicv.js +7 -0
- package/dist/style.css +1 -1
- package/dist/useLocalStorageState-KNanBZsO.cjs +1 -0
- package/dist/{useLocalStorageState-DblJQuM7.js → useLocalStorageState-MzPp9GNd.js} +11 -10
- package/dist/{usePermissions-avh3rydq.js → usePermissions-BZKgvDp_.js} +5 -4
- package/dist/usePermissions-DB7RkdYM.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +38 -1
- package/dist/utils.es.js +10 -10
- package/package.json +2 -2
- package/dist/PrimaryButton-DXGul-f9.cjs +0 -1
- package/dist/dateUtils-b-AkAh2Y.cjs +0 -1
- package/dist/searchUtils-Du4JnXdQ.js +0 -7
- package/dist/useLocalStorageState-CxsNjf78.cjs +0 -1
- package/dist/usePermissions-BEKIk6u3.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const v=require("react"),Dt=require("./latinize-
|
|
1
|
+
"use strict";const v=require("react"),Dt=require("./latinize-Dl6DAk4g.cjs");require("zod");require("react-hook-form");const yt=require("react-dom");function Ha(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Y=Ha(v);function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr={exports:{}},Pt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -50,7 +50,7 @@ object-assign
|
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
52
|
*/var $r,so;function ds(){if(so)return $r;so=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $r=o()?Object.assign:function(i,a){for(var s,c=n(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){l=e(s);for(var g=0;g<l.length;g++)r.call(s,l[g])&&(c[l[g]]=s[l[g]])}}return c},$r}var Fr,co;function On(){if(co)return Fr;co=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fr=e,Fr}var Ur,uo;function ri(){return uo||(uo=1,Ur=Function.call.bind(Object.prototype.hasOwnProperty)),Ur}var Br,lo;function ps(){if(lo)return Br;lo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=On(),r={},n=ri();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var f;try{if(typeof i[u]!="function"){var g=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}f=i[u](a,u,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var y=l?l():"";e("Failed "+s+" type: "+f.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Br=o,Br}var zr,fo;function hs(){if(fo)return zr;fo=1;var e=ti(),t=ds(),r=On(),n=ri(),o=ps(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return zr=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(x){var R=x&&(l&&x[l]||x[u]);if(typeof R=="function")return R}var g="<<anonymous>>",y={array:O("array"),bigint:O("bigint"),bool:O("boolean"),func:O("function"),number:O("number"),object:O("object"),string:O("string"),symbol:O("symbol"),any:T(),arrayOf:C,element:_(),elementType:p(),instanceOf:A,node:K(),objectOf:J,oneOf:k,oneOfType:Z,shape:de,exact:V};function m(x,R){return x===R?x!==0||1/x===1/R:x!==x&&R!==R}function h(x,R){this.message=x,this.data=R&&typeof R=="object"?R:{},this.stack=""}h.prototype=Error.prototype;function E(x){if(process.env.NODE_ENV!=="production")var R={},L=0;function $(U,N,I,D,H,B,pe){if(D=D||g,B=B||I,pe!==r){if(c){var b=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 b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=D+":"+I;!R[ge]&&L<3&&(i("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+D+"`. 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."),R[ge]=!0,L++)}}return N[I]==null?U?N[I]===null?new h("The "+H+" `"+B+"` is marked as required "+("in `"+D+"`, but its value is `null`.")):new h("The "+H+" `"+B+"` is marked as required in "+("`"+D+"`, but its value is `undefined`.")):null:x(N,I,D,H,B)}var j=$.bind(null,!1);return j.isRequired=$.bind(null,!0),j}function O(x){function R(L,$,j,U,N,I){var D=L[$],H=ae(D);if(H!==x){var B=ue(D);return new h("Invalid "+U+" `"+N+"` of type "+("`"+B+"` supplied to `"+j+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return E(R)}function T(){return E(a)}function C(x){function R(L,$,j,U,N){if(typeof x!="function")return new h("Property `"+N+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var I=L[$];if(!Array.isArray(I)){var D=ae(I);return new h("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected an array."))}for(var H=0;H<I.length;H++){var B=x(I,H,j,U,N+"["+H+"]",r);if(B instanceof Error)return B}return null}return E(R)}function _(){function x(R,L,$,j,U){var N=R[L];if(!s(N)){var I=ae(N);return new h("Invalid "+j+" `"+U+"` of type "+("`"+I+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return E(x)}function p(){function x(R,L,$,j,U){var N=R[L];if(!e.isValidElementType(N)){var I=ae(N);return new h("Invalid "+j+" `"+U+"` of type "+("`"+I+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return E(x)}function A(x){function R(L,$,j,U,N){if(!(L[$]instanceof x)){var I=x.name||g,D=Ee(L[$]);return new h("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected ")+("instance of `"+I+"`."))}return null}return E(R)}function k(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(L,$,j,U,N){for(var I=L[$],D=0;D<x.length;D++)if(m(I,x[D]))return null;var H=JSON.stringify(x,function(pe,b){var ge=ue(b);return ge==="symbol"?String(b):b});return new h("Invalid "+U+" `"+N+"` of value `"+String(I)+"` "+("supplied to `"+j+"`, expected one of "+H+"."))}return E(R)}function J(x){function R(L,$,j,U,N){if(typeof x!="function")return new h("Property `"+N+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var I=L[$],D=ae(I);if(D!=="object")return new h("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected an object."));for(var H in I)if(n(I,H)){var B=x(I,H,j,U,N+"."+H,r);if(B instanceof Error)return B}return null}return E(R)}function Z(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<x.length;R++){var L=x[R];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(L)+" at index "+R+"."),a}function $(j,U,N,I,D){for(var H=[],B=0;B<x.length;B++){var pe=x[B],b=pe(j,U,N,I,D,r);if(b==null)return null;b.data&&n(b.data,"expectedType")&&H.push(b.data.expectedType)}var ge=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new h("Invalid "+I+" `"+D+"` supplied to "+("`"+N+"`"+ge+"."))}return E($)}function K(){function x(R,L,$,j,U){return X(R[L])?null:new h("Invalid "+j+" `"+U+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return E(x)}function ie(x,R,L,$,j){return new h((x||"React class")+": "+R+" type `"+L+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function de(x){function R(L,$,j,U,N){var I=L[$],D=ae(I);if(D!=="object")return new h("Invalid "+U+" `"+N+"` of type `"+D+"` "+("supplied to `"+j+"`, expected `object`."));for(var H in x){var B=x[H];if(typeof B!="function")return ie(j,U,N,H,ue(B));var pe=B(I,H,j,U,N+"."+H,r);if(pe)return pe}return null}return E(R)}function V(x){function R(L,$,j,U,N){var I=L[$],D=ae(I);if(D!=="object")return new h("Invalid "+U+" `"+N+"` of type `"+D+"` "+("supplied to `"+j+"`, expected `object`."));var H=t({},L[$],x);for(var B in H){var pe=x[B];if(n(x,B)&&typeof pe!="function")return ie(j,U,N,B,ue(pe));if(!pe)return new h("Invalid "+U+" `"+N+"` key `"+B+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(L[$],null," ")+`
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var b=pe(I,B,j,U,N+"."+B,r);if(b)return b}return null}return E(R)}function X(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(X);if(x===null||s(x))return!0;var R=f(x);if(R){var L=R.call(x),$;if(R!==x.entries){for(;!($=L.next()).done;)if(!X($.value))return!1}else for(;!($=L.next()).done;){var j=$.value;if(j&&!X(j[1]))return!1}}else return!1;return!0;default:return!1}}function Q(x,R){return x==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function ae(x){var R=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Q(R,x)?"symbol":R}function ue(x){if(typeof x>"u"||x===null)return""+x;var R=ae(x);if(R==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return R}function Oe(x){var R=ue(x);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Ee(x){return!x.constructor||!x.constructor.name?g:x.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},zr}var Hr,po;function ms(){if(po)return Hr;po=1;var e=On();function t(){}function r(){}return r.resetWarningCache=t,Hr=function(){function n(a,s,c,l,u,f){if(f!==e){var g=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 g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Hr}if(process.env.NODE_ENV!=="production"){var vs=ti(),gs=!0;en.exports=hs()(vs.isElement,gs)}else en.exports=ms()();var ys=en.exports;const z=Or(ys),ho={disabled:!1};var bs=process.env.NODE_ENV!=="production"?z.oneOfType([z.number,z.shape({enter:z.number,exit:z.number,appear:z.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&z.oneOfType([z.string,z.shape({enter:z.string,exit:z.string,active:z.string}),z.shape({enter:z.string,enterDone:z.string,enterActive:z.string,exit:z.string,exitDone:z.string,exitActive:z.string})]);const ni=v.createContext(null);var Es=function(t){return t.scrollTop},It="unmounted",Je="exited",ze="entering",Xe="entered",dr="exiting",We=function(e){Za(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=Je,i.appearStatus=ze):c=Xe:n.unmountOnExit||n.mountOnEnter?c=It:c=Je,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===It?{status:Je}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ze&&a!==Xe&&(i=ze):(a===ze||a===Xe)&&(i=dr)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ze){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:yt.findDOMNode(this);a&&Es(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Je&&this.setState({status:It})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[yt.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),g=s?f.appear:f.enter;if(!o&&!a||ho.disabled){this.safeSetState({status:Xe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:ze},function(){i.props.onEntering(l,u),i.onTransitionEnd(g,function(){i.safeSetState({status:Xe},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:yt.findDOMNode(this);if(!i||ho.disabled){this.safeSetState({status:Je},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:dr},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Je},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:yt.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===It)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Qo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(ni.Provider,{value:null},typeof a=="function"?a(o,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);We.contextType=ni;We.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:z.shape({current:typeof Element>"u"?z.any:function(e,t,r,n,o,i){var a=e[t];return z.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:z.oneOfType([z.func.isRequired,z.element.isRequired]).isRequired,in:z.bool,mountOnEnter:z.bool,unmountOnExit:z.bool,appear:z.bool,enter:z.bool,exit:z.bool,timeout:function(t){var r=bs;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:z.func,onEnter:z.func,onEntering:z.func,onEntered:z.func,onExit:z.func,onExiting:z.func,onExited:z.func}:{};function vt(){}We.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vt,onEntering:vt,onEntered:vt,onExit:vt,onExiting:vt,onExited:vt};We.UNMOUNTED=It;We.EXITED=Je;We.ENTERING=ze;We.ENTERED=Xe;We.EXITING=dr;const Tr=!!(typeof window<"u"&&window.document&&window.document.createElement);var tn=!1,rn=!1;try{var Vr={get passive(){return tn=!0},get once(){return rn=tn=!0}};Tr&&(window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,!0))}catch{}function oi(e,t,r,n){if(n&&typeof n!="boolean"&&!rn){var o=n.once,i=n.capture,a=r;!rn&&o&&(a=r.__once||function s(c){this.removeEventListener(t,s,i),r.call(this,c)},r.__once=a),e.addEventListener(t,a,tn?n:i)}e.addEventListener(t,r,n)}function ii(e,t,r,n){var o=n&&typeof n!="boolean"?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}function Qe(e,t,r,n){return oi(e,t,r,n),function(){ii(e,t,r,n)}}function ws(e,t,r,n){if(n===void 0&&(n=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,r,n),e.dispatchEvent(o)}}function Os(e){var t=wn(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function xs(e,t,r){r===void 0&&(r=5);var n=!1,o=setTimeout(function(){n||ws(e,"transitionend",!0)},t+r),i=Qe(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(o),i()}}function ai(e,t,r,n){r==null&&(r=Os(e)||0);var o=xs(e,r,n),i=Qe(e,"transitionend",t);return function(){o(),i()}}function mo(e,t){const r=wn(e,t)||"",n=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*n}function si(e,t){const r=mo(e,"transitionDuration"),n=mo(e,"transitionDelay"),o=ai(e,i=>{i.target===e&&(o(),t(i))},r+n)}function ci(e){e.offsetHeight}const vo=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Ts(e,t){const r=vo(e),n=vo(t);return o=>{r&&r(o),n&&n(o)}}function rt(e,t){return v.useMemo(()=>Ts(e,t),[e,t])}function pr(e){return e&&"setState"in e?yt.findDOMNode(e):e??null}const ui=v.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:o,onExited:i,addEndListener:a,children:s,childRef:c,...l},u)=>{const f=v.useRef(null),g=rt(f,c),y=A=>{g(pr(A))},m=A=>k=>{A&&f.current&&A(f.current,k)},h=v.useCallback(m(e),[e]),E=v.useCallback(m(t),[t]),O=v.useCallback(m(r),[r]),T=v.useCallback(m(n),[n]),C=v.useCallback(m(o),[o]),_=v.useCallback(m(i),[i]),p=v.useCallback(m(a),[a]);return M.jsx(We,{ref:u,...l,onEnter:h,onEntered:O,onEntering:E,onExit:T,onExited:_,onExiting:C,addEndListener:p,nodeRef:f,children:typeof s=="function"?(A,k)=>s(A,{...k,ref:y}):v.cloneElement(s,{ref:y})})});function Ss(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function ct(e){const t=Ss(e);return v.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function nn(){return v.useState(null)}function xn(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const Cs=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_s=typeof document<"u",hr=_s||Cs?v.useLayoutEffect:v.useEffect,Rs={[ze]:"show",[Xe]:"show"},mr=Y.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:n,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},s=v.useCallback((c,l)=>{ci(c),n==null||n(c,l)},[n]);return M.jsx(ui,{ref:i,addEndListener:si,...a,onEnter:s,childRef:t.ref,children:(c,l)=>Y.cloneElement(t,{...l,className:ce("fade",e,t.props.className,Rs[c],r[c])})})});mr.displayName="Fade";function Ps(e){const t=v.useRef(e);return t.current=e,t}function li(e){const t=Ps(e);v.useEffect(()=>()=>t.current(),[])}const on=2**31-1;function fi(e,t,r){const n=r-Date.now();e.current=n<=on?setTimeout(t,n):setTimeout(()=>fi(e,t,r),on)}function As(){const e=xn(),t=v.useRef();return li(()=>clearTimeout(t.current)),v.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=on?t.current=setTimeout(o,i):fi(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var go=Object.prototype.hasOwnProperty;function yo(e,t,r){for(r of e.keys())if(Lt(r,t))return r}function Lt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Lt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=yo(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=yo(t,o),!o)||!Lt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(go.call(e,r)&&++n&&!go.call(t,r)||!(r in t)||!Lt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Ms(e){const t=xn();return[e[0],v.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var Se="top",Ne="bottom",Ie="right",Ce="left",Tn="auto",Vt=[Se,Ne,Ie,Ce],bt="start",Ut="end",js="clippingParents",di="viewport",Mt="popper",ks="reference",bo=Vt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Ut])},[]),pi=[].concat(Vt,[Tn]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Ut])},[]),Ns="beforeRead",Is="read",Ds="afterRead",Ls="beforeMain",$s="main",Fs="afterMain",Us="beforeWrite",Bs="write",zs="afterWrite",Hs=[Ns,Is,Ds,Ls,$s,Fs,Us,Bs,zs];function Le(e){return e.split("-")[0]}function Pe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ut(e){var t=Pe(e).Element;return e instanceof t||e instanceof Element}function $e(e){var t=Pe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sn(e){if(typeof ShadowRoot>"u")return!1;var t=Pe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var at=Math.max,vr=Math.min,Et=Math.round;function an(){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 hi(){return!/^((?!chrome|android).)*safari/i.test(an())}function wt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&$e(e)&&(o=e.offsetWidth>0&&Et(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Et(n.height)/e.offsetHeight||1);var a=ut(e)?Pe(e):window,s=a.visualViewport,c=!hi()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,u=(n.top+(c&&s?s.offsetTop:0))/i,f=n.width/o,g=n.height/i;return{width:f,height:g,top:u,right:l+f,bottom:u+g,left:l,x:l,y:u}}function Cn(e){var t=wt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function mi(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Sn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tt(e){return e?(e.nodeName||"").toLowerCase():null}function He(e){return Pe(e).getComputedStyle(e)}function Vs(e){return["table","td","th"].indexOf(tt(e))>=0}function nt(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sr(e){return tt(e)==="html"?e:e.assignedSlot||e.parentNode||(Sn(e)?e.host:null)||nt(e)}function Eo(e){return!$e(e)||He(e).position==="fixed"?null:e.offsetParent}function Ws(e){var t=/firefox/i.test(an()),r=/Trident/i.test(an());if(r&&$e(e)){var n=He(e);if(n.position==="fixed")return null}var o=Sr(e);for(Sn(o)&&(o=o.host);$e(o)&&["html","body"].indexOf(tt(o))<0;){var i=He(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wt(e){for(var t=Pe(e),r=Eo(e);r&&Vs(r)&&He(r).position==="static";)r=Eo(r);return r&&(tt(r)==="html"||tt(r)==="body"&&He(r).position==="static")?t:r||Ws(e)||t}function _n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $t(e,t,r){return at(e,vr(t,r))}function Ys(e,t,r){var n=$t(e,t,r);return n>r?r:n}function vi(){return{top:0,right:0,bottom:0,left:0}}function gi(e){return Object.assign({},vi(),e)}function yi(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var qs=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,gi(typeof t!="number"?t:yi(t,Vt))};function Gs(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Le(r.placement),c=_n(s),l=[Ce,Ie].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=qs(o.padding,r),g=Cn(i),y=c==="y"?Se:Ce,m=c==="y"?Ne:Ie,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],E=a[c]-r.rects.reference[c],O=Wt(i),T=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,C=h/2-E/2,_=f[y],p=T-g[u]-f[m],A=T/2-g[u]/2+C,k=$t(_,A,p),J=c;r.modifiersData[n]=(t={},t[J]=k,t.centerOffset=k-A,t)}}function Ks(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||mi(t.elements.popper,o)&&(t.elements.arrow=o))}const Js={name:"arrow",enabled:!0,phase:"main",fn:Gs,effect:Ks,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ot(e){return e.split("-")[1]}var Xs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zs(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Et(r*o)/o||0,y:Et(n*o)/o||0}}function wo(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,g=a.x,y=g===void 0?0:g,m=a.y,h=m===void 0?0:m,E=typeof u=="function"?u({x:y,y:h}):{x:y,y:h};y=E.x,h=E.y;var O=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),C=Ce,_=Se,p=window;if(l){var A=Wt(r),k="clientHeight",J="clientWidth";if(A===Pe(r)&&(A=nt(r),He(A).position!=="static"&&s==="absolute"&&(k="scrollHeight",J="scrollWidth")),A=A,o===Se||(o===Ce||o===Ie)&&i===Ut){_=Ne;var Z=f&&A===p&&p.visualViewport?p.visualViewport.height:A[k];h-=Z-n.height,h*=c?1:-1}if(o===Ce||(o===Se||o===Ne)&&i===Ut){C=Ie;var K=f&&A===p&&p.visualViewport?p.visualViewport.width:A[J];y-=K-n.width,y*=c?1:-1}}var ie=Object.assign({position:s},l&&Xs),de=u===!0?Zs({x:y,y:h},Pe(r)):{x:y,y:h};if(y=de.x,h=de.y,c){var V;return Object.assign({},ie,(V={},V[_]=T?"0":"",V[C]=O?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",V))}return Object.assign({},ie,(t={},t[_]=T?h+"px":"",t[C]=O?y+"px":"",t.transform="",t))}function Qs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,c=s===void 0?!0:s,l={placement:Le(t.placement),variation:Ot(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wo(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wo(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ec={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qs,data:{}};var rr={passive:!0};function tc(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,c=Pe(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",r.update,rr)}),s&&c.addEventListener("resize",r.update,rr),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",r.update,rr)}),s&&c.removeEventListener("resize",r.update,rr)}}const rc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tc,data:{}};var nc={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e){return e.replace(/left|right|bottom|top/g,function(t){return nc[t]})}var oc={start:"end",end:"start"};function Oo(e){return e.replace(/start|end/g,function(t){return oc[t]})}function Rn(e){var t=Pe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Pn(e){return wt(nt(e)).left+Rn(e).scrollLeft}function ic(e,t){var r=Pe(e),n=nt(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=hi();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Pn(e),y:c}}function ac(e){var t,r=nt(e),n=Rn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=at(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=at(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Pn(e),c=-n.scrollTop;return He(o||r).direction==="rtl"&&(s+=at(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function An(e){var t=He(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function bi(e){return["html","body","#document"].indexOf(tt(e))>=0?e.ownerDocument.body:$e(e)&&An(e)?e:bi(Sr(e))}function Ft(e,t){var r;t===void 0&&(t=[]);var n=bi(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Pe(n),a=o?[i].concat(i.visualViewport||[],An(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ft(Sr(a)))}function sn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sc(e,t){var r=wt(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 xo(e,t,r){return t===di?sn(ic(e,r)):ut(t)?sc(t,r):sn(ac(nt(e)))}function cc(e){var t=Ft(Sr(e)),r=["absolute","fixed"].indexOf(He(e).position)>=0,n=r&&$e(e)?Wt(e):e;return ut(n)?t.filter(function(o){return ut(o)&&mi(o,n)&&tt(o)!=="body"}):[]}function uc(e,t,r,n){var o=t==="clippingParents"?cc(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(c,l){var u=xo(e,l,n);return c.top=at(u.top,c.top),c.right=vr(u.right,c.right),c.bottom=vr(u.bottom,c.bottom),c.left=at(u.left,c.left),c},xo(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ei(e){var t=e.reference,r=e.element,n=e.placement,o=n?Le(n):null,i=n?Ot(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Se:c={x:a,y:t.y-r.height};break;case Ne:c={x:a,y:t.y+t.height};break;case Ie:c={x:t.x+t.width,y:s};break;case Ce:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?_n(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case bt:c[l]=c[l]-(t[u]/2-r[u]/2);break;case Ut:c[l]=c[l]+(t[u]/2-r[u]/2);break}}return c}function Bt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,c=s===void 0?js:s,l=r.rootBoundary,u=l===void 0?di:l,f=r.elementContext,g=f===void 0?Mt:f,y=r.altBoundary,m=y===void 0?!1:y,h=r.padding,E=h===void 0?0:h,O=gi(typeof E!="number"?E:yi(E,Vt)),T=g===Mt?ks:Mt,C=e.rects.popper,_=e.elements[m?T:g],p=uc(ut(_)?_:_.contextElement||nt(e.elements.popper),c,u,a),A=wt(e.elements.reference),k=Ei({reference:A,element:C,strategy:"absolute",placement:o}),J=sn(Object.assign({},C,k)),Z=g===Mt?J:A,K={top:p.top-Z.top+O.top,bottom:Z.bottom-p.bottom+O.bottom,left:p.left-Z.left+O.left,right:Z.right-p.right+O.right},ie=e.modifiersData.offset;if(g===Mt&&ie){var de=ie[o];Object.keys(K).forEach(function(V){var X=[Ie,Ne].indexOf(V)>=0?1:-1,Q=[Se,Ne].indexOf(V)>=0?"y":"x";K[V]+=de[Q]*X})}return K}function lc(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?pi:c,u=Ot(n),f=u?s?bo:bo.filter(function(m){return Ot(m)===u}):Vt,g=f.filter(function(m){return l.indexOf(m)>=0});g.length===0&&(g=f);var y=g.reduce(function(m,h){return m[h]=Bt(e,{placement:h,boundary:o,rootBoundary:i,padding:a})[Le(h)],m},{});return Object.keys(y).sort(function(m,h){return y[m]-y[h]})}function fc(e){if(Le(e)===Tn)return[];var t=ir(e);return[Oo(e),t,Oo(t)]}function dc(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,m=y===void 0?!0:y,h=r.allowedAutoPlacements,E=t.options.placement,O=Le(E),T=O===E,C=c||(T||!m?[ir(E)]:fc(E)),_=[E].concat(C).reduce(function(j,U){return j.concat(Le(U)===Tn?lc(t,{placement:U,boundary:u,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:h}):U)},[]),p=t.rects.reference,A=t.rects.popper,k=new Map,J=!0,Z=_[0],K=0;K<_.length;K++){var ie=_[K],de=Le(ie),V=Ot(ie)===bt,X=[Se,Ne].indexOf(de)>=0,Q=X?"width":"height",ae=Bt(t,{placement:ie,boundary:u,rootBoundary:f,altBoundary:g,padding:l}),ue=X?V?Ie:Ce:V?Ne:Se;p[Q]>A[Q]&&(ue=ir(ue));var Oe=ir(ue),Ee=[];if(i&&Ee.push(ae[de]<=0),s&&Ee.push(ae[ue]<=0,ae[Oe]<=0),Ee.every(function(j){return j})){Z=ie,J=!1;break}k.set(ie,Ee)}if(J)for(var x=m?3:1,R=function(U){var N=_.find(function(I){var D=k.get(I);if(D)return D.slice(0,U).every(function(H){return H})});if(N)return Z=N,"break"},L=x;L>0;L--){var $=R(L);if($==="break")break}t.placement!==Z&&(t.modifiersData[n]._skip=!0,t.placement=Z,t.reset=!0)}}const pc={name:"flip",enabled:!0,phase:"main",fn:dc,requiresIfExists:["offset"],data:{_skip:!1}};function To(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 So(e){return[Se,Ie,Ne,Ce].some(function(t){return e[t]>=0})}function hc(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Bt(t,{elementContext:"reference"}),s=Bt(t,{altBoundary:!0}),c=To(a,n),l=To(s,o,i),u=So(c),f=So(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const mc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hc};function vc(e,t,r){var n=Le(e),o=[Ce,Se].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ce,Ie].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function gc(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=pi.reduce(function(u,f){return u[f]=vc(f,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}const yc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gc};function bc(e){var t=e.state,r=e.name;t.modifiersData[r]=Ei({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ec={name:"popperOffsets",enabled:!0,phase:"read",fn:bc,data:{}};function wc(e){return e==="x"?"y":"x"}function Oc(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,f=r.padding,g=r.tether,y=g===void 0?!0:g,m=r.tetherOffset,h=m===void 0?0:m,E=Bt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),O=Le(t.placement),T=Ot(t.placement),C=!T,_=_n(O),p=wc(_),A=t.modifiersData.popperOffsets,k=t.rects.reference,J=t.rects.popper,Z=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,K=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),ie=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,de={x:0,y:0};if(A){if(i){var V,X=_==="y"?Se:Ce,Q=_==="y"?Ne:Ie,ae=_==="y"?"height":"width",ue=A[_],Oe=ue+E[X],Ee=ue-E[Q],x=y?-J[ae]/2:0,R=T===bt?k[ae]:J[ae],L=T===bt?-J[ae]:-k[ae],$=t.elements.arrow,j=y&&$?Cn($):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vi(),N=U[X],I=U[Q],D=$t(0,k[ae],j[ae]),H=C?k[ae]/2-x-D-N-K.mainAxis:R-D-N-K.mainAxis,B=C?-k[ae]/2+x+D+I+K.mainAxis:L+D+I+K.mainAxis,pe=t.elements.arrow&&Wt(t.elements.arrow),b=pe?_==="y"?pe.clientTop||0:pe.clientLeft||0:0,ge=(V=ie==null?void 0:ie[_])!=null?V:0,_e=ue+H-ge-b,Ae=ue+B-ge,Ye=$t(y?vr(Oe,_e):Oe,ue,y?at(Ee,Ae):Ee);A[_]=Ye,de[_]=Ye-ue}if(s){var St,Xt=_==="x"?Se:Ce,ft=_==="x"?Ne:Ie,Ue=A[p],dt=p==="y"?"height":"width",pt=Ue+E[Xt],Zt=Ue-E[ft],Ct=[Se,Ce].indexOf(O)!==-1,_t=(St=ie==null?void 0:ie[p])!=null?St:0,Rt=Ct?pt:Ue-k[dt]-J[dt]-_t+K.altAxis,qe=Ct?Ue+k[dt]+J[dt]-_t-K.altAxis:Zt,Qt=y&&Ct?Ys(Rt,Ue,qe):$t(y?Rt:pt,Ue,y?qe:Zt);A[p]=Qt,de[p]=Qt-Ue}t.modifiersData[n]=de}}const xc={name:"preventOverflow",enabled:!0,phase:"main",fn:Oc,requiresIfExists:["offset"]};function Tc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sc(e){return e===Pe(e)||!$e(e)?Rn(e):Tc(e)}function Cc(e){var t=e.getBoundingClientRect(),r=Et(t.width)/e.offsetWidth||1,n=Et(t.height)/e.offsetHeight||1;return r!==1||n!==1}function _c(e,t,r){r===void 0&&(r=!1);var n=$e(t),o=$e(t)&&Cc(t),i=nt(t),a=wt(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((tt(t)!=="body"||An(i))&&(s=Sc(t)),$e(t)?(c=wt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Pn(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Rc(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&o(c)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Pc(e){var t=Rc(e);return Hs.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Ac(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Mc(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Co={placement:"bottom",modifiers:[],strategy:"absolute"};function _o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jc(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Co:o;return function(s,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Co,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],g=!1,y={state:u,setOptions:function(O){var T=typeof O=="function"?O(u.options):O;h(),u.options=Object.assign({},i,u.options,T),u.scrollParents={reference:ut(s)?Ft(s):s.contextElement?Ft(s.contextElement):[],popper:Ft(c)};var C=Pc(Mc([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(_){return _.enabled}),m(),y.update()},forceUpdate:function(){if(!g){var O=u.elements,T=O.reference,C=O.popper;if(_o(T,C)){u.rects={reference:_c(T,Wt(C),u.options.strategy==="fixed"),popper:Cn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(K){return u.modifiersData[K.name]=Object.assign({},K.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var p=u.orderedModifiers[_],A=p.fn,k=p.options,J=k===void 0?{}:k,Z=p.name;typeof A=="function"&&(u=A({state:u,options:J,name:Z,instance:y})||u)}}}},update:Ac(function(){return new Promise(function(E){y.forceUpdate(),E(u)})}),destroy:function(){h(),g=!0}};if(!_o(s,c))return y;y.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)});function m(){u.orderedModifiers.forEach(function(E){var O=E.name,T=E.options,C=T===void 0?{}:T,_=E.effect;if(typeof _=="function"){var p=_({state:u,name:O,instance:y,options:C}),A=function(){};f.push(p||A)}})}function h(){f.forEach(function(E){return E()}),f=[]}return y}}const kc=jc({defaultModifiers:[mc,Ec,ec,rc,yc,pc,xc,Js]}),Nc=["enabled","placement","strategy","modifiers"];function Ic(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Dc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Lc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,o=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&o==="tooltip"&&"setAttribute"in n){const i=n.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",i?`${i},${r.id}`:r.id)}}},$c=[];function wi(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:a=$c}=r,s=Ic(r,Nc);const c=v.useRef(a),l=v.useRef(),u=v.useCallback(()=>{var E;(E=l.current)==null||E.update()},[]),f=v.useCallback(()=>{var E;(E=l.current)==null||E.forceUpdate()},[]),[g,y]=Ms(v.useState({placement:o,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),m=v.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const O={},T={};Object.keys(E.elements).forEach(C=>{O[C]=E.styles[C],T[C]=E.attributes[C]}),y({state:E,styles:O,attributes:T,update:u,forceUpdate:f,placement:E.placement})}}),[u,f,y]),h=v.useMemo(()=>(Lt(c.current,a)||(c.current=a),c.current),[a]);return v.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:o,strategy:i,modifiers:[...h,m,Dc]})},[i,o,m,n,h]),v.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=kc(e,t,Object.assign({},s,{placement:o,strategy:i,modifiers:[...h,Lc,m]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,y(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function gr(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Fc=process.env.NODE_ENV!=="production",Oi=function(){};if(Fc){var Uc=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};Oi=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Uc.apply(null,[t].concat(r))}}var Bc=Oi;const Mn=Or(Bc),Ro=()=>{};function zc(e){return e.button===0}function Hc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ar=e=>e&&("current"in e?e.current:e),Po={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function xi(e,t=Ro,{disabled:r,clickTrigger:n="click"}={}){const o=v.useRef(!1),i=v.useRef(!1),a=v.useCallback(l=>{const u=ar(e);Mn(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!u||Hc(l)||!zc(l)||!!gr(u,l.target)||i.current,i.current=!1},[e]),s=ct(l=>{const u=ar(e);u&&gr(u,l.target)&&(i.current=!0)}),c=ct(l=>{o.current||t(l)});v.useEffect(()=>{var l,u;if(r||e==null)return;const f=Ht(ar(e)),g=f.defaultView||window;let y=(l=g.event)!=null?l:(u=g.parent)==null?void 0:u.event,m=null;Po[n]&&(m=Qe(f,Po[n],s,!0));const h=Qe(f,n,a,!0),E=Qe(f,n,T=>{if(T===y){y=void 0;return}c(T)});let O=[];return"ontouchstart"in f.documentElement&&(O=[].slice.call(f.body.children).map(T=>Qe(T,"mousemove",Ro))),()=>{m==null||m(),h(),E(),O.forEach(T=>T())}},[e,r,n,a,s,c])}function Vc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function Wc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ti({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,f,g,y;const m=Vc(c.modifiers);return Object.assign({},c,{placement:r,enabled:e,strategy:i?"fixed":c.strategy,modifiers:Wc(Object.assign({},m,{eventListeners:{enabled:t,options:(l=m.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},(u=m.preventOverflow)==null?void 0:u.options):(f=m.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:o},(g=m.offset)==null?void 0:g.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},(y=m.arrow)==null?void 0:y.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}const Si=v.createContext(Tr?window:void 0);Si.Provider;function Ci(){return v.useContext(Si)}const _i=Y.createContext({}),jn=Y.forwardRef(({controlId:e,as:t="div",...r},n)=>{const o=v.useMemo(()=>({controlId:e}),[e]);return M.jsx(_i.Provider,{value:o,children:M.jsx(t,{...r,ref:n})})});jn.displayName="FormGroup";const kn=Y.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:o,...i},a)=>(e=et(e,"form-floating"),M.jsxs(jn,{ref:a,className:ce(t,e),controlId:n,...i,children:[r,M.jsx("label",{htmlFor:n,children:o})]})));kn.displayName="FloatingLabel";const Wr=(e,t)=>Tr?e==null?(t||Ht()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function cn(e,t){const r=Ci(),[n,o]=v.useState(()=>Wr(e,r==null?void 0:r.document));if(!n){const i=Wr(e);i&&o(i)}return v.useEffect(()=>{},[t,n]),v.useEffect(()=>{const i=Wr(e);i!==n&&o(i)},[e,n]),n}function Yc({children:e,in:t,onExited:r,mountOnEnter:n,unmountOnExit:o}){const i=v.useRef(null),a=v.useRef(t),s=ct(r);v.useEffect(()=>{t?a.current=!0:s(i.current)},[t,s]);const c=rt(i,e.ref),l=v.cloneElement(e,{ref:c});return t?l:o||!a.current&&n?null:l}function Ri(e){return e.code==="Escape"||e.keyCode===27}function qc(){const e=Y.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const Gc=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Kc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Jc(e){let{onEnter:t,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:a,addEndListener:s,children:c}=e,l=Kc(e,Gc);const{major:u}=qc(),f=u>=19?c.props.ref:c.ref,g=v.useRef(null),y=rt(g,typeof c=="function"?null:f),m=A=>k=>{A&&g.current&&A(g.current,k)},h=v.useCallback(m(t),[t]),E=v.useCallback(m(r),[r]),O=v.useCallback(m(n),[n]),T=v.useCallback(m(o),[o]),C=v.useCallback(m(i),[i]),_=v.useCallback(m(a),[a]),p=v.useCallback(m(s),[s]);return Object.assign({},l,{nodeRef:g},t&&{onEnter:h},r&&{onEntering:E},n&&{onEntered:O},o&&{onExit:T},i&&{onExiting:C},a&&{onExited:_},s&&{addEndListener:p},{children:typeof c=="function"?(A,k)=>c(A,Object.assign({},k,{ref:y})):v.cloneElement(c,{ref:y})})}const Xc=["component"];function Zc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Qc=Y.forwardRef((e,t)=>{let{component:r}=e,n=Zc(e,Xc);const o=Jc(n);return M.jsx(r,Object.assign({ref:t},o))});function eu({in:e,onTransition:t}){const r=v.useRef(null),n=v.useRef(!0),o=ct(t);return hr(()=>{if(!r.current)return;let i=!1;return o({in:e,element:r.current,initial:n.current,isStale:()=>i}),()=>{i=!0}},[e,o]),hr(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function tu({children:e,in:t,onExited:r,onEntered:n,transition:o}){const[i,a]=v.useState(!t);t&&i&&a(!1);const s=eu({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?n==null||n(l.element,l.initial):(a(!0),r==null||r(l.element)))};Promise.resolve(o(l)).then(u,f=>{throw l.in||a(!0),f})}}),c=rt(s,e.ref);return i&&!t?null:v.cloneElement(e,{ref:c})}function Pi(e,t,r){return e?M.jsx(Qc,Object.assign({},r,{component:e})):t?M.jsx(tu,Object.assign({},r,{transition:t})):M.jsx(Yc,Object.assign({},r))}function un(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const ru=()=>{};function nu(e,t,{disabled:r,clickTrigger:n}={}){const o=t||ru;xi(e,o,{disabled:r,clickTrigger:n});const i=ct(a=>{Ri(a)&&o(a)});v.useEffect(()=>{if(r||e==null)return;const a=Ht(ar(e));let s=(a.defaultView||window).event;const c=Qe(a,"keyup",l=>{if(l===s){s=void 0;return}i(l)});return()=>{c()}},[e,r,i])}const Ai=Y.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=nn(),[f,g]=nn(),y=rt(u,t),m=cn(e.container),h=cn(e.target),[E,O]=v.useState(!e.show),T=wi(h,l,Ti({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));e.show&&E&&O(!1);const C=(...ie)=>{O(!0),e.onExited&&e.onExited(...ie)},_=e.show||!E;if(nu(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!_)return null;const{onExit:p,onExiting:A,onEnter:k,onEntering:J,onEntered:Z}=e;let K=e.children(Object.assign({},T.attributes.popper,{style:T.styles.popper,ref:y}),{popper:T,placement:o,show:!!e.show,arrowProps:Object.assign({},T.attributes.arrow,{style:T.styles.arrow,ref:g})});return K=Pi(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K,onExit:p,onExiting:A,onExited:C,onEnter:k,onEntering:J,onEntered:Z}),m?yt.createPortal(K,m):null});Ai.displayName="Overlay";const Mi=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=et(t,"popover-header"),M.jsx(r,{ref:o,className:ce(e,t),...n})));Mi.displayName="PopoverHeader";const Nn=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=et(t,"popover-body"),M.jsx(r,{ref:o,className:ce(e,t),...n})));Nn.displayName="PopoverBody";function ji(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function ki(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ou=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:s,popper:c,show:l,...u},f)=>{const g=et(e,"popover"),y=En(),[m]=(t==null?void 0:t.split("-"))||[],h=ji(m,y);let E=n;return l&&!s&&(E={...n,...ki(c==null?void 0:c.strategy)}),M.jsxs("div",{ref:f,role:"tooltip",style:E,"x-placement":m,className:ce(r,g,m&&`bs-popover-${h}`),...u,children:[M.jsx("div",{className:"popover-arrow",...a}),i?M.jsx(Nn,{children:o}):o]})}),Ni=Object.assign(ou,{Header:Mi,Body:Nn,POPPER_OFFSET:[0,8]}),Ii=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=et(e,"tooltip");const f=En(),[g]=(t==null?void 0:t.split("-"))||[],y=ji(g,f);let m=n;return c&&!a&&(m={...n,...ki(s==null?void 0:s.strategy)}),M.jsxs("div",{ref:u,style:m,role:"tooltip","x-placement":g,className:ce(r,e,`bs-tooltip-${y}`),...l,children:[M.jsx("div",{className:"tooltip-arrow",...i}),M.jsx("div",{className:`${e}-inner`,children:o})]})});Ii.displayName="Tooltip";const In=Object.assign(Ii,{TOOLTIP_OFFSET:[0,6]});function iu(e){const t=v.useRef(null),r=et(void 0,"popover"),n=et(void 0,"tooltip"),o=v.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(un(t.current,r))return Ni.POPPER_OFFSET;if(un(t.current,n))return In.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function au(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(pr(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(pr(o)))}const Di=Y.forwardRef(({children:e,transition:t=mr,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...a},s)=>{const c=v.useRef({}),[l,u]=v.useState(null),[f,g]=iu(a.offset),y=rt(s,f),m=t===!0?mr:t||void 0,h=ct(E=>{u(E),r==null||r.onFirstUpdate==null||r.onFirstUpdate(E)});return hr(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),v.useEffect(()=>{i||u(null)},[i]),M.jsx(Ai,{...a,ref:y,popperConfig:{...r,modifiers:g.concat(r.modifiers||[]),onFirstUpdate:h},transition:m,rootClose:n,placement:o,show:i,children:(E,{arrowProps:O,popper:T,show:C})=>{var _,p;au(E,O);const A=T==null?void 0:T.placement,k=Object.assign(c.current,{state:T==null?void 0:T.state,scheduleUpdate:T==null?void 0:T.update,placement:A,outOfBoundaries:(T==null||(_=T.state)==null||(p=_.modifiersData.hide)==null?void 0:p.isReferenceHidden)||!1,strategy:r.strategy}),J=!!l;return typeof e=="function"?e({...E,placement:A,show:C,...!t&&C&&{className:"show"},popper:k,arrowProps:O,hasDoneInitialMeasure:J}):Y.cloneElement(e,{...E,placement:A,arrowProps:O,popper:k,hasDoneInitialMeasure:J,className:ce(e.props.className,!t&&C&&"show"),style:{...e.props.style,...E.style}})}})});Di.displayName="Overlay";function su(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Ao(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!gr(o,i)&&e(...t)}z.oneOf(["click","hover","focus"]);const Li=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:o,defaultShow:i=!1,onToggle:a,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const f=v.useRef(null),g=rt(f,r.ref),y=As(),m=v.useRef(""),[h,E]=ei(o,i,a),O=su(s),{onFocus:T,onBlur:C,onClick:_}=typeof r!="function"?Y.Children.only(r).props:{},p=Q=>{g(pr(Q))},A=v.useCallback(()=>{if(y.clear(),m.current="show",!O.show){E(!0);return}y.set(()=>{m.current==="show"&&E(!0)},O.show)},[O.show,E,y]),k=v.useCallback(()=>{if(y.clear(),m.current="hide",!O.hide){E(!1);return}y.set(()=>{m.current==="hide"&&E(!1)},O.hide)},[O.hide,E,y]),J=v.useCallback((...Q)=>{A(),T==null||T(...Q)},[A,T]),Z=v.useCallback((...Q)=>{k(),C==null||C(...Q)},[k,C]),K=v.useCallback((...Q)=>{E(!h),_==null||_(...Q)},[_,E,h]),ie=v.useCallback((...Q)=>{Ao(A,Q,"fromElement")},[A]),de=v.useCallback((...Q)=>{Ao(k,Q,"toElement")},[k]),V=e==null?[]:[].concat(e),X={ref:p};return V.indexOf("click")!==-1&&(X.onClick=K),V.indexOf("focus")!==-1&&(X.onFocus=J,X.onBlur=Z),V.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Mn(V.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),X.onMouseOver=ie,X.onMouseOut=de),M.jsxs(M.Fragment,{children:[typeof r=="function"?r(X):v.cloneElement(r,X),M.jsx(Di,{...u,show:h,onHide:k,flip:l,placement:c,popperConfig:n,target:f.current,children:t})]})};var $i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Mo=v.createContext&&v.createContext($i),cu=["attr","size","title"];function uu(e,t){if(e==null)return{};var r=lu(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lu(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yr.apply(this,arguments)}function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jo(Object(r),!0).forEach(function(n){fu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fu(e,t,r){return t=du(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function du(e){var t=pu(e,"string");return typeof t=="symbol"?t:t+""}function pu(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fi(e){return e&&e.map((t,r)=>v.createElement(t.tag,br({key:r},t.attr),Fi(t.child)))}function he(e){return t=>v.createElement(hu,yr({attr:br({},e.attr)},t),Fi(e.child))}function hu(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=uu(e,cu),s=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),v.createElement("svg",yr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:br(br({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&v.createElement("title",null,i),e.children)};return Mo!==void 0?v.createElement(Mo.Consumer,null,r=>t(r)):t($i)}function mu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function vu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function gu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function yu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function bu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Eu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function wu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Ou(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function xu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Tu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Su(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Cu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function _u(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Ru(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Pu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function Au(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Mu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function ju(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Ui(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function ku(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function Nu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Dn=v.createContext({cookieDomain:"",axiosOptions:{},LinkComponent:{},NavigateComponent:()=>null,language:"",axiosTexts:{},confirmTexts:{},formValidationTexts:{},homeDashboardTexts:{},formSubmitTexts:{},appSearchTexts:{},customSelectTexts:{},errorBoundaryTexts:{},widgetTexts:{}}),Iu=v.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Du=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}});let Lu={data:""},$u=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Lu,Fu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Uu=/\/\*[^]*?\*\/| +/g,ko=/\n+/g,Ze=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+a+";":n+=i[1]=="f"?Ze(a,i):i+"{"+Ze(a,i[1]=="k"?"":t)+"}":typeof a=="object"?n+=Ze(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ze.p?Ze.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Be={},Bi=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Bi(e[r]);return t}return e},Bu=(e,t,r,n,o)=>{let i=Bi(e),a=Be[i]||(Be[i]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(i));if(!Be[a]){let c=i!==e?e:(l=>{let u,f,g=[{}];for(;u=Fu.exec(l.replace(Uu,""));)u[4]?g.shift():u[3]?(f=u[3].replace(ko," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][u[1]]=u[2].replace(ko," ").trim();return g[0]})(e);Be[a]=Ze(o?{["@keyframes "+a]:c}:c,r?"":"."+a)}let s=r&&Be.g?Be.g:null;return r&&(Be.g=Be[a]),((c,l,u,f)=>{f?l.data=l.data.replace(f,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(Be[a],t,n,s),a},zu=(e,t,r)=>e.reduce((n,o,i)=>{let a=t[i];if(a&&a.call){let s=a(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Ze(s,""):s===!1?"":s}return n+o+(a??"")},"");function Cr(e){let t=this||{},r=e.call?e(t.p):e;return Bu(r.unshift?r.raw?zu(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,$u(t.target),t.g,t.o,t.k)}let zi,ln,fn;Cr.bind({g:1});let Ve=Cr.bind({k:1});function Hu(e,t,r,n){Ze.p=t,zi=e,ln=r,fn=n}function ot(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),c=s.className||o.className;r.p=Object.assign({theme:ln&&ln()},s),r.o=/ *go\d+/.test(c),s.className=Cr.apply(r,n)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),fn&&l[0]&&fn(s),zi(l,s)}return o}}var Vu=e=>typeof e=="function",Er=(e,t)=>Vu(e)?e(t):e,Wu=(()=>{let e=0;return()=>(++e).toString()})(),Hi=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Yu=20,sr=new Map,qu=1e3,No=e=>{if(sr.has(e))return;let t=setTimeout(()=>{sr.delete(e),lt({type:4,toastId:e})},qu);sr.set(e,t)},Gu=e=>{let t=sr.get(e);t&&clearTimeout(t)},dn=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Yu)};case 1:return t.toast.id&&Gu(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?dn(e,{type:1,toast:r}):dn(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?No(n):e.toasts.forEach(i=>{No(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},cr=[],ur={toasts:[],pausedAt:void 0},lt=e=>{ur=dn(ur,e),cr.forEach(t=>{t(ur)})},Ku={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ju=(e={})=>{let[t,r]=v.useState(ur);v.useEffect(()=>(cr.push(r),()=>{let o=cr.indexOf(r);o>-1&&cr.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Ku[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:n}},Xu=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Wu()}),Yt=e=>(t,r)=>{let n=Xu(t,e,r);return lt({type:2,toast:n}),n.id},Re=(e,t)=>Yt("blank")(e,t);Re.error=Yt("error");Re.success=Yt("success");Re.loading=Yt("loading");Re.custom=Yt("custom");Re.dismiss=e=>{lt({type:3,toastId:e})};Re.remove=e=>lt({type:4,toastId:e});Re.promise=(e,t,r)=>{let n=Re.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(Re.success(Er(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{Re.error(Er(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var Zu=(e,t)=>{lt({type:1,toast:{id:e,height:t}})},Qu=()=>{lt({type:5,time:Date.now()})},el=e=>{let{toasts:t,pausedAt:r}=Ju(e);v.useEffect(()=>{if(r)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&Re.dismiss(s.id);return}return setTimeout(()=>Re.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,r]);let n=v.useCallback(()=>{r&<({type:6,time:Date.now()})},[r]),o=v.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=a||{},u=t.filter(y=>(y.position||l)===(i.position||l)&&y.height),f=u.findIndex(y=>y.id===i.id),g=u.filter((y,m)=>m<f&&y.visible).length;return u.filter(y=>y.visible).slice(...s?[g+1]:[0,g]).reduce((y,m)=>y+(m.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Zu,startPause:Qu,endPause:n,calculateOffset:o}}},tl=Ve`
|
|
53
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var b=pe(I,B,j,U,N+"."+B,r);if(b)return b}return null}return E(R)}function X(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(X);if(x===null||s(x))return!0;var R=f(x);if(R){var L=R.call(x),$;if(R!==x.entries){for(;!($=L.next()).done;)if(!X($.value))return!1}else for(;!($=L.next()).done;){var j=$.value;if(j&&!X(j[1]))return!1}}else return!1;return!0;default:return!1}}function Q(x,R){return x==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function ae(x){var R=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Q(R,x)?"symbol":R}function ue(x){if(typeof x>"u"||x===null)return""+x;var R=ae(x);if(R==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return R}function Oe(x){var R=ue(x);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Ee(x){return!x.constructor||!x.constructor.name?g:x.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},zr}var Hr,po;function ms(){if(po)return Hr;po=1;var e=On();function t(){}function r(){}return r.resetWarningCache=t,Hr=function(){function n(a,s,c,l,u,f){if(f!==e){var g=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 g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Hr}if(process.env.NODE_ENV!=="production"){var vs=ti(),gs=!0;en.exports=hs()(vs.isElement,gs)}else en.exports=ms()();var ys=en.exports;const z=Or(ys),ho={disabled:!1};var bs=process.env.NODE_ENV!=="production"?z.oneOfType([z.number,z.shape({enter:z.number,exit:z.number,appear:z.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&z.oneOfType([z.string,z.shape({enter:z.string,exit:z.string,active:z.string}),z.shape({enter:z.string,enterDone:z.string,enterActive:z.string,exit:z.string,exitDone:z.string,exitActive:z.string})]);const ni=v.createContext(null);var Es=function(t){return t.scrollTop},It="unmounted",Je="exited",ze="entering",Xe="entered",dr="exiting",We=function(e){Za(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=Je,i.appearStatus=ze):c=Xe:n.unmountOnExit||n.mountOnEnter?c=It:c=Je,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===It?{status:Je}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ze&&a!==Xe&&(i=ze):(a===ze||a===Xe)&&(i=dr)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ze){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:yt.findDOMNode(this);a&&Es(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Je&&this.setState({status:It})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[yt.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),g=s?f.appear:f.enter;if(!o&&!a||ho.disabled){this.safeSetState({status:Xe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:ze},function(){i.props.onEntering(l,u),i.onTransitionEnd(g,function(){i.safeSetState({status:Xe},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:yt.findDOMNode(this);if(!i||ho.disabled){this.safeSetState({status:Je},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:dr},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Je},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:yt.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===It)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Qo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(ni.Provider,{value:null},typeof a=="function"?a(o,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);We.contextType=ni;We.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:z.shape({current:typeof Element>"u"?z.any:function(e,t,r,n,o,i){var a=e[t];return z.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:z.oneOfType([z.func.isRequired,z.element.isRequired]).isRequired,in:z.bool,mountOnEnter:z.bool,unmountOnExit:z.bool,appear:z.bool,enter:z.bool,exit:z.bool,timeout:function(t){var r=bs;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:z.func,onEnter:z.func,onEntering:z.func,onEntered:z.func,onExit:z.func,onExiting:z.func,onExited:z.func}:{};function vt(){}We.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vt,onEntering:vt,onEntered:vt,onExit:vt,onExiting:vt,onExited:vt};We.UNMOUNTED=It;We.EXITED=Je;We.ENTERING=ze;We.ENTERED=Xe;We.EXITING=dr;const Tr=!!(typeof window<"u"&&window.document&&window.document.createElement);var tn=!1,rn=!1;try{var Vr={get passive(){return tn=!0},get once(){return rn=tn=!0}};Tr&&(window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,!0))}catch{}function oi(e,t,r,n){if(n&&typeof n!="boolean"&&!rn){var o=n.once,i=n.capture,a=r;!rn&&o&&(a=r.__once||function s(c){this.removeEventListener(t,s,i),r.call(this,c)},r.__once=a),e.addEventListener(t,a,tn?n:i)}e.addEventListener(t,r,n)}function ii(e,t,r,n){var o=n&&typeof n!="boolean"?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}function Qe(e,t,r,n){return oi(e,t,r,n),function(){ii(e,t,r,n)}}function ws(e,t,r,n){if(n===void 0&&(n=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,r,n),e.dispatchEvent(o)}}function Os(e){var t=wn(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function xs(e,t,r){r===void 0&&(r=5);var n=!1,o=setTimeout(function(){n||ws(e,"transitionend",!0)},t+r),i=Qe(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(o),i()}}function ai(e,t,r,n){r==null&&(r=Os(e)||0);var o=xs(e,r,n),i=Qe(e,"transitionend",t);return function(){o(),i()}}function mo(e,t){const r=wn(e,t)||"",n=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*n}function si(e,t){const r=mo(e,"transitionDuration"),n=mo(e,"transitionDelay"),o=ai(e,i=>{i.target===e&&(o(),t(i))},r+n)}function ci(e){e.offsetHeight}const vo=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Ts(e,t){const r=vo(e),n=vo(t);return o=>{r&&r(o),n&&n(o)}}function rt(e,t){return v.useMemo(()=>Ts(e,t),[e,t])}function pr(e){return e&&"setState"in e?yt.findDOMNode(e):e??null}const ui=v.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:o,onExited:i,addEndListener:a,children:s,childRef:c,...l},u)=>{const f=v.useRef(null),g=rt(f,c),y=A=>{g(pr(A))},m=A=>k=>{A&&f.current&&A(f.current,k)},h=v.useCallback(m(e),[e]),E=v.useCallback(m(t),[t]),O=v.useCallback(m(r),[r]),T=v.useCallback(m(n),[n]),C=v.useCallback(m(o),[o]),_=v.useCallback(m(i),[i]),p=v.useCallback(m(a),[a]);return M.jsx(We,{ref:u,...l,onEnter:h,onEntered:O,onEntering:E,onExit:T,onExited:_,onExiting:C,addEndListener:p,nodeRef:f,children:typeof s=="function"?(A,k)=>s(A,{...k,ref:y}):v.cloneElement(s,{ref:y})})});function Ss(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function ct(e){const t=Ss(e);return v.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function nn(){return v.useState(null)}function xn(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const Cs=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",_s=typeof document<"u",hr=_s||Cs?v.useLayoutEffect:v.useEffect,Rs={[ze]:"show",[Xe]:"show"},mr=Y.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:n,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},s=v.useCallback((c,l)=>{ci(c),n==null||n(c,l)},[n]);return M.jsx(ui,{ref:i,addEndListener:si,...a,onEnter:s,childRef:t.ref,children:(c,l)=>Y.cloneElement(t,{...l,className:ce("fade",e,t.props.className,Rs[c],r[c])})})});mr.displayName="Fade";function Ps(e){const t=v.useRef(e);return t.current=e,t}function li(e){const t=Ps(e);v.useEffect(()=>()=>t.current(),[])}const on=2**31-1;function fi(e,t,r){const n=r-Date.now();e.current=n<=on?setTimeout(t,n):setTimeout(()=>fi(e,t,r),on)}function As(){const e=xn(),t=v.useRef();return li(()=>clearTimeout(t.current)),v.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=on?t.current=setTimeout(o,i):fi(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var go=Object.prototype.hasOwnProperty;function yo(e,t,r){for(r of e.keys())if(Lt(r,t))return r}function Lt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Lt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=yo(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=yo(t,o),!o)||!Lt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(go.call(e,r)&&++n&&!go.call(t,r)||!(r in t)||!Lt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Ms(e){const t=xn();return[e[0],v.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var Se="top",Ne="bottom",Ie="right",Ce="left",Tn="auto",Vt=[Se,Ne,Ie,Ce],bt="start",Ut="end",js="clippingParents",di="viewport",Mt="popper",ks="reference",bo=Vt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Ut])},[]),pi=[].concat(Vt,[Tn]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Ut])},[]),Ns="beforeRead",Is="read",Ds="afterRead",Ls="beforeMain",$s="main",Fs="afterMain",Us="beforeWrite",Bs="write",zs="afterWrite",Hs=[Ns,Is,Ds,Ls,$s,Fs,Us,Bs,zs];function Le(e){return e.split("-")[0]}function Pe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ut(e){var t=Pe(e).Element;return e instanceof t||e instanceof Element}function $e(e){var t=Pe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sn(e){if(typeof ShadowRoot>"u")return!1;var t=Pe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var at=Math.max,vr=Math.min,Et=Math.round;function an(){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 hi(){return!/^((?!chrome|android).)*safari/i.test(an())}function wt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&$e(e)&&(o=e.offsetWidth>0&&Et(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Et(n.height)/e.offsetHeight||1);var a=ut(e)?Pe(e):window,s=a.visualViewport,c=!hi()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,u=(n.top+(c&&s?s.offsetTop:0))/i,f=n.width/o,g=n.height/i;return{width:f,height:g,top:u,right:l+f,bottom:u+g,left:l,x:l,y:u}}function Cn(e){var t=wt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function mi(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Sn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tt(e){return e?(e.nodeName||"").toLowerCase():null}function He(e){return Pe(e).getComputedStyle(e)}function Vs(e){return["table","td","th"].indexOf(tt(e))>=0}function nt(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sr(e){return tt(e)==="html"?e:e.assignedSlot||e.parentNode||(Sn(e)?e.host:null)||nt(e)}function Eo(e){return!$e(e)||He(e).position==="fixed"?null:e.offsetParent}function Ws(e){var t=/firefox/i.test(an()),r=/Trident/i.test(an());if(r&&$e(e)){var n=He(e);if(n.position==="fixed")return null}var o=Sr(e);for(Sn(o)&&(o=o.host);$e(o)&&["html","body"].indexOf(tt(o))<0;){var i=He(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wt(e){for(var t=Pe(e),r=Eo(e);r&&Vs(r)&&He(r).position==="static";)r=Eo(r);return r&&(tt(r)==="html"||tt(r)==="body"&&He(r).position==="static")?t:r||Ws(e)||t}function _n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $t(e,t,r){return at(e,vr(t,r))}function Ys(e,t,r){var n=$t(e,t,r);return n>r?r:n}function vi(){return{top:0,right:0,bottom:0,left:0}}function gi(e){return Object.assign({},vi(),e)}function yi(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var qs=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,gi(typeof t!="number"?t:yi(t,Vt))};function Gs(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Le(r.placement),c=_n(s),l=[Ce,Ie].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=qs(o.padding,r),g=Cn(i),y=c==="y"?Se:Ce,m=c==="y"?Ne:Ie,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],E=a[c]-r.rects.reference[c],O=Wt(i),T=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,C=h/2-E/2,_=f[y],p=T-g[u]-f[m],A=T/2-g[u]/2+C,k=$t(_,A,p),J=c;r.modifiersData[n]=(t={},t[J]=k,t.centerOffset=k-A,t)}}function Ks(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||mi(t.elements.popper,o)&&(t.elements.arrow=o))}const Js={name:"arrow",enabled:!0,phase:"main",fn:Gs,effect:Ks,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ot(e){return e.split("-")[1]}var Xs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zs(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Et(r*o)/o||0,y:Et(n*o)/o||0}}function wo(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,g=a.x,y=g===void 0?0:g,m=a.y,h=m===void 0?0:m,E=typeof u=="function"?u({x:y,y:h}):{x:y,y:h};y=E.x,h=E.y;var O=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),C=Ce,_=Se,p=window;if(l){var A=Wt(r),k="clientHeight",J="clientWidth";if(A===Pe(r)&&(A=nt(r),He(A).position!=="static"&&s==="absolute"&&(k="scrollHeight",J="scrollWidth")),A=A,o===Se||(o===Ce||o===Ie)&&i===Ut){_=Ne;var Z=f&&A===p&&p.visualViewport?p.visualViewport.height:A[k];h-=Z-n.height,h*=c?1:-1}if(o===Ce||(o===Se||o===Ne)&&i===Ut){C=Ie;var K=f&&A===p&&p.visualViewport?p.visualViewport.width:A[J];y-=K-n.width,y*=c?1:-1}}var ie=Object.assign({position:s},l&&Xs),de=u===!0?Zs({x:y,y:h},Pe(r)):{x:y,y:h};if(y=de.x,h=de.y,c){var V;return Object.assign({},ie,(V={},V[_]=T?"0":"",V[C]=O?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+y+"px, "+h+"px)":"translate3d("+y+"px, "+h+"px, 0)",V))}return Object.assign({},ie,(t={},t[_]=T?h+"px":"",t[C]=O?y+"px":"",t.transform="",t))}function Qs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,c=s===void 0?!0:s,l={placement:Le(t.placement),variation:Ot(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wo(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wo(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ec={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qs,data:{}};var rr={passive:!0};function tc(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,c=Pe(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",r.update,rr)}),s&&c.addEventListener("resize",r.update,rr),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",r.update,rr)}),s&&c.removeEventListener("resize",r.update,rr)}}const rc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tc,data:{}};var nc={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e){return e.replace(/left|right|bottom|top/g,function(t){return nc[t]})}var oc={start:"end",end:"start"};function Oo(e){return e.replace(/start|end/g,function(t){return oc[t]})}function Rn(e){var t=Pe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Pn(e){return wt(nt(e)).left+Rn(e).scrollLeft}function ic(e,t){var r=Pe(e),n=nt(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=hi();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Pn(e),y:c}}function ac(e){var t,r=nt(e),n=Rn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=at(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=at(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Pn(e),c=-n.scrollTop;return He(o||r).direction==="rtl"&&(s+=at(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function An(e){var t=He(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function bi(e){return["html","body","#document"].indexOf(tt(e))>=0?e.ownerDocument.body:$e(e)&&An(e)?e:bi(Sr(e))}function Ft(e,t){var r;t===void 0&&(t=[]);var n=bi(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Pe(n),a=o?[i].concat(i.visualViewport||[],An(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ft(Sr(a)))}function sn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sc(e,t){var r=wt(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 xo(e,t,r){return t===di?sn(ic(e,r)):ut(t)?sc(t,r):sn(ac(nt(e)))}function cc(e){var t=Ft(Sr(e)),r=["absolute","fixed"].indexOf(He(e).position)>=0,n=r&&$e(e)?Wt(e):e;return ut(n)?t.filter(function(o){return ut(o)&&mi(o,n)&&tt(o)!=="body"}):[]}function uc(e,t,r,n){var o=t==="clippingParents"?cc(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(c,l){var u=xo(e,l,n);return c.top=at(u.top,c.top),c.right=vr(u.right,c.right),c.bottom=vr(u.bottom,c.bottom),c.left=at(u.left,c.left),c},xo(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ei(e){var t=e.reference,r=e.element,n=e.placement,o=n?Le(n):null,i=n?Ot(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Se:c={x:a,y:t.y-r.height};break;case Ne:c={x:a,y:t.y+t.height};break;case Ie:c={x:t.x+t.width,y:s};break;case Ce:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?_n(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case bt:c[l]=c[l]-(t[u]/2-r[u]/2);break;case Ut:c[l]=c[l]+(t[u]/2-r[u]/2);break}}return c}function Bt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,c=s===void 0?js:s,l=r.rootBoundary,u=l===void 0?di:l,f=r.elementContext,g=f===void 0?Mt:f,y=r.altBoundary,m=y===void 0?!1:y,h=r.padding,E=h===void 0?0:h,O=gi(typeof E!="number"?E:yi(E,Vt)),T=g===Mt?ks:Mt,C=e.rects.popper,_=e.elements[m?T:g],p=uc(ut(_)?_:_.contextElement||nt(e.elements.popper),c,u,a),A=wt(e.elements.reference),k=Ei({reference:A,element:C,strategy:"absolute",placement:o}),J=sn(Object.assign({},C,k)),Z=g===Mt?J:A,K={top:p.top-Z.top+O.top,bottom:Z.bottom-p.bottom+O.bottom,left:p.left-Z.left+O.left,right:Z.right-p.right+O.right},ie=e.modifiersData.offset;if(g===Mt&&ie){var de=ie[o];Object.keys(K).forEach(function(V){var X=[Ie,Ne].indexOf(V)>=0?1:-1,Q=[Se,Ne].indexOf(V)>=0?"y":"x";K[V]+=de[Q]*X})}return K}function lc(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?pi:c,u=Ot(n),f=u?s?bo:bo.filter(function(m){return Ot(m)===u}):Vt,g=f.filter(function(m){return l.indexOf(m)>=0});g.length===0&&(g=f);var y=g.reduce(function(m,h){return m[h]=Bt(e,{placement:h,boundary:o,rootBoundary:i,padding:a})[Le(h)],m},{});return Object.keys(y).sort(function(m,h){return y[m]-y[h]})}function fc(e){if(Le(e)===Tn)return[];var t=ir(e);return[Oo(e),t,Oo(t)]}function dc(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,m=y===void 0?!0:y,h=r.allowedAutoPlacements,E=t.options.placement,O=Le(E),T=O===E,C=c||(T||!m?[ir(E)]:fc(E)),_=[E].concat(C).reduce(function(j,U){return j.concat(Le(U)===Tn?lc(t,{placement:U,boundary:u,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:h}):U)},[]),p=t.rects.reference,A=t.rects.popper,k=new Map,J=!0,Z=_[0],K=0;K<_.length;K++){var ie=_[K],de=Le(ie),V=Ot(ie)===bt,X=[Se,Ne].indexOf(de)>=0,Q=X?"width":"height",ae=Bt(t,{placement:ie,boundary:u,rootBoundary:f,altBoundary:g,padding:l}),ue=X?V?Ie:Ce:V?Ne:Se;p[Q]>A[Q]&&(ue=ir(ue));var Oe=ir(ue),Ee=[];if(i&&Ee.push(ae[de]<=0),s&&Ee.push(ae[ue]<=0,ae[Oe]<=0),Ee.every(function(j){return j})){Z=ie,J=!1;break}k.set(ie,Ee)}if(J)for(var x=m?3:1,R=function(U){var N=_.find(function(I){var D=k.get(I);if(D)return D.slice(0,U).every(function(H){return H})});if(N)return Z=N,"break"},L=x;L>0;L--){var $=R(L);if($==="break")break}t.placement!==Z&&(t.modifiersData[n]._skip=!0,t.placement=Z,t.reset=!0)}}const pc={name:"flip",enabled:!0,phase:"main",fn:dc,requiresIfExists:["offset"],data:{_skip:!1}};function To(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 So(e){return[Se,Ie,Ne,Ce].some(function(t){return e[t]>=0})}function hc(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Bt(t,{elementContext:"reference"}),s=Bt(t,{altBoundary:!0}),c=To(a,n),l=To(s,o,i),u=So(c),f=So(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const mc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hc};function vc(e,t,r){var n=Le(e),o=[Ce,Se].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ce,Ie].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function gc(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=pi.reduce(function(u,f){return u[f]=vc(f,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}const yc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gc};function bc(e){var t=e.state,r=e.name;t.modifiersData[r]=Ei({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ec={name:"popperOffsets",enabled:!0,phase:"read",fn:bc,data:{}};function wc(e){return e==="x"?"y":"x"}function Oc(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,f=r.padding,g=r.tether,y=g===void 0?!0:g,m=r.tetherOffset,h=m===void 0?0:m,E=Bt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),O=Le(t.placement),T=Ot(t.placement),C=!T,_=_n(O),p=wc(_),A=t.modifiersData.popperOffsets,k=t.rects.reference,J=t.rects.popper,Z=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,K=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),ie=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,de={x:0,y:0};if(A){if(i){var V,X=_==="y"?Se:Ce,Q=_==="y"?Ne:Ie,ae=_==="y"?"height":"width",ue=A[_],Oe=ue+E[X],Ee=ue-E[Q],x=y?-J[ae]/2:0,R=T===bt?k[ae]:J[ae],L=T===bt?-J[ae]:-k[ae],$=t.elements.arrow,j=y&&$?Cn($):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vi(),N=U[X],I=U[Q],D=$t(0,k[ae],j[ae]),H=C?k[ae]/2-x-D-N-K.mainAxis:R-D-N-K.mainAxis,B=C?-k[ae]/2+x+D+I+K.mainAxis:L+D+I+K.mainAxis,pe=t.elements.arrow&&Wt(t.elements.arrow),b=pe?_==="y"?pe.clientTop||0:pe.clientLeft||0:0,ge=(V=ie==null?void 0:ie[_])!=null?V:0,_e=ue+H-ge-b,Ae=ue+B-ge,Ye=$t(y?vr(Oe,_e):Oe,ue,y?at(Ee,Ae):Ee);A[_]=Ye,de[_]=Ye-ue}if(s){var St,Xt=_==="x"?Se:Ce,ft=_==="x"?Ne:Ie,Ue=A[p],dt=p==="y"?"height":"width",pt=Ue+E[Xt],Zt=Ue-E[ft],Ct=[Se,Ce].indexOf(O)!==-1,_t=(St=ie==null?void 0:ie[p])!=null?St:0,Rt=Ct?pt:Ue-k[dt]-J[dt]-_t+K.altAxis,qe=Ct?Ue+k[dt]+J[dt]-_t-K.altAxis:Zt,Qt=y&&Ct?Ys(Rt,Ue,qe):$t(y?Rt:pt,Ue,y?qe:Zt);A[p]=Qt,de[p]=Qt-Ue}t.modifiersData[n]=de}}const xc={name:"preventOverflow",enabled:!0,phase:"main",fn:Oc,requiresIfExists:["offset"]};function Tc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sc(e){return e===Pe(e)||!$e(e)?Rn(e):Tc(e)}function Cc(e){var t=e.getBoundingClientRect(),r=Et(t.width)/e.offsetWidth||1,n=Et(t.height)/e.offsetHeight||1;return r!==1||n!==1}function _c(e,t,r){r===void 0&&(r=!1);var n=$e(t),o=$e(t)&&Cc(t),i=nt(t),a=wt(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((tt(t)!=="body"||An(i))&&(s=Sc(t)),$e(t)?(c=wt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Pn(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Rc(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&o(c)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Pc(e){var t=Rc(e);return Hs.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Ac(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Mc(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Co={placement:"bottom",modifiers:[],strategy:"absolute"};function _o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jc(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Co:o;return function(s,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Co,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],g=!1,y={state:u,setOptions:function(O){var T=typeof O=="function"?O(u.options):O;h(),u.options=Object.assign({},i,u.options,T),u.scrollParents={reference:ut(s)?Ft(s):s.contextElement?Ft(s.contextElement):[],popper:Ft(c)};var C=Pc(Mc([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(_){return _.enabled}),m(),y.update()},forceUpdate:function(){if(!g){var O=u.elements,T=O.reference,C=O.popper;if(_o(T,C)){u.rects={reference:_c(T,Wt(C),u.options.strategy==="fixed"),popper:Cn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(K){return u.modifiersData[K.name]=Object.assign({},K.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var p=u.orderedModifiers[_],A=p.fn,k=p.options,J=k===void 0?{}:k,Z=p.name;typeof A=="function"&&(u=A({state:u,options:J,name:Z,instance:y})||u)}}}},update:Ac(function(){return new Promise(function(E){y.forceUpdate(),E(u)})}),destroy:function(){h(),g=!0}};if(!_o(s,c))return y;y.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)});function m(){u.orderedModifiers.forEach(function(E){var O=E.name,T=E.options,C=T===void 0?{}:T,_=E.effect;if(typeof _=="function"){var p=_({state:u,name:O,instance:y,options:C}),A=function(){};f.push(p||A)}})}function h(){f.forEach(function(E){return E()}),f=[]}return y}}const kc=jc({defaultModifiers:[mc,Ec,ec,rc,yc,pc,xc,Js]}),Nc=["enabled","placement","strategy","modifiers"];function Ic(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Dc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Lc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,o=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&o==="tooltip"&&"setAttribute"in n){const i=n.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",i?`${i},${r.id}`:r.id)}}},$c=[];function wi(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:a=$c}=r,s=Ic(r,Nc);const c=v.useRef(a),l=v.useRef(),u=v.useCallback(()=>{var E;(E=l.current)==null||E.update()},[]),f=v.useCallback(()=>{var E;(E=l.current)==null||E.forceUpdate()},[]),[g,y]=Ms(v.useState({placement:o,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),m=v.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const O={},T={};Object.keys(E.elements).forEach(C=>{O[C]=E.styles[C],T[C]=E.attributes[C]}),y({state:E,styles:O,attributes:T,update:u,forceUpdate:f,placement:E.placement})}}),[u,f,y]),h=v.useMemo(()=>(Lt(c.current,a)||(c.current=a),c.current),[a]);return v.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:o,strategy:i,modifiers:[...h,m,Dc]})},[i,o,m,n,h]),v.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=kc(e,t,Object.assign({},s,{placement:o,strategy:i,modifiers:[...h,Lc,m]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,y(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function gr(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Fc=process.env.NODE_ENV!=="production",Oi=function(){};if(Fc){var Uc=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var o=1;o<n;o++)r[o-1]=arguments[o];var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};Oi=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var o=2;o<n;o++)r[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Uc.apply(null,[t].concat(r))}}var Bc=Oi;const Mn=Or(Bc),Ro=()=>{};function zc(e){return e.button===0}function Hc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ar=e=>e&&("current"in e?e.current:e),Po={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function xi(e,t=Ro,{disabled:r,clickTrigger:n="click"}={}){const o=v.useRef(!1),i=v.useRef(!1),a=v.useCallback(l=>{const u=ar(e);Mn(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!u||Hc(l)||!zc(l)||!!gr(u,l.target)||i.current,i.current=!1},[e]),s=ct(l=>{const u=ar(e);u&&gr(u,l.target)&&(i.current=!0)}),c=ct(l=>{o.current||t(l)});v.useEffect(()=>{var l,u;if(r||e==null)return;const f=Ht(ar(e)),g=f.defaultView||window;let y=(l=g.event)!=null?l:(u=g.parent)==null?void 0:u.event,m=null;Po[n]&&(m=Qe(f,Po[n],s,!0));const h=Qe(f,n,a,!0),E=Qe(f,n,T=>{if(T===y){y=void 0;return}c(T)});let O=[];return"ontouchstart"in f.documentElement&&(O=[].slice.call(f.body.children).map(T=>Qe(T,"mousemove",Ro))),()=>{m==null||m(),h(),E(),O.forEach(T=>T())}},[e,r,n,a,s,c])}function Vc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function Wc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ti({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,f,g,y;const m=Vc(c.modifiers);return Object.assign({},c,{placement:r,enabled:e,strategy:i?"fixed":c.strategy,modifiers:Wc(Object.assign({},m,{eventListeners:{enabled:t,options:(l=m.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},(u=m.preventOverflow)==null?void 0:u.options):(f=m.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:o},(g=m.offset)==null?void 0:g.options)},arrow:Object.assign({},m.arrow,{enabled:!!s,options:Object.assign({},(y=m.arrow)==null?void 0:y.options,{element:s})}),flip:Object.assign({enabled:!!n},m.flip)}))})}const Si=v.createContext(Tr?window:void 0);Si.Provider;function Ci(){return v.useContext(Si)}const _i=Y.createContext({}),jn=Y.forwardRef(({controlId:e,as:t="div",...r},n)=>{const o=v.useMemo(()=>({controlId:e}),[e]);return M.jsx(_i.Provider,{value:o,children:M.jsx(t,{...r,ref:n})})});jn.displayName="FormGroup";const kn=Y.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:o,...i},a)=>(e=et(e,"form-floating"),M.jsxs(jn,{ref:a,className:ce(t,e),controlId:n,...i,children:[r,M.jsx("label",{htmlFor:n,children:o})]})));kn.displayName="FloatingLabel";const Wr=(e,t)=>Tr?e==null?(t||Ht()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function cn(e,t){const r=Ci(),[n,o]=v.useState(()=>Wr(e,r==null?void 0:r.document));if(!n){const i=Wr(e);i&&o(i)}return v.useEffect(()=>{},[t,n]),v.useEffect(()=>{const i=Wr(e);i!==n&&o(i)},[e,n]),n}function Yc({children:e,in:t,onExited:r,mountOnEnter:n,unmountOnExit:o}){const i=v.useRef(null),a=v.useRef(t),s=ct(r);v.useEffect(()=>{t?a.current=!0:s(i.current)},[t,s]);const c=rt(i,e.ref),l=v.cloneElement(e,{ref:c});return t?l:o||!a.current&&n?null:l}function Ri(e){return e.code==="Escape"||e.keyCode===27}function qc(){const e=Y.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const Gc=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Kc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Jc(e){let{onEnter:t,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:a,addEndListener:s,children:c}=e,l=Kc(e,Gc);const{major:u}=qc(),f=u>=19?c.props.ref:c.ref,g=v.useRef(null),y=rt(g,typeof c=="function"?null:f),m=A=>k=>{A&&g.current&&A(g.current,k)},h=v.useCallback(m(t),[t]),E=v.useCallback(m(r),[r]),O=v.useCallback(m(n),[n]),T=v.useCallback(m(o),[o]),C=v.useCallback(m(i),[i]),_=v.useCallback(m(a),[a]),p=v.useCallback(m(s),[s]);return Object.assign({},l,{nodeRef:g},t&&{onEnter:h},r&&{onEntering:E},n&&{onEntered:O},o&&{onExit:T},i&&{onExiting:C},a&&{onExited:_},s&&{addEndListener:p},{children:typeof c=="function"?(A,k)=>c(A,Object.assign({},k,{ref:y})):v.cloneElement(c,{ref:y})})}const Xc=["component"];function Zc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Qc=Y.forwardRef((e,t)=>{let{component:r}=e,n=Zc(e,Xc);const o=Jc(n);return M.jsx(r,Object.assign({ref:t},o))});function eu({in:e,onTransition:t}){const r=v.useRef(null),n=v.useRef(!0),o=ct(t);return hr(()=>{if(!r.current)return;let i=!1;return o({in:e,element:r.current,initial:n.current,isStale:()=>i}),()=>{i=!0}},[e,o]),hr(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function tu({children:e,in:t,onExited:r,onEntered:n,transition:o}){const[i,a]=v.useState(!t);t&&i&&a(!1);const s=eu({in:!!t,onTransition:l=>{const u=()=>{l.isStale()||(l.in?n==null||n(l.element,l.initial):(a(!0),r==null||r(l.element)))};Promise.resolve(o(l)).then(u,f=>{throw l.in||a(!0),f})}}),c=rt(s,e.ref);return i&&!t?null:v.cloneElement(e,{ref:c})}function Pi(e,t,r){return e?M.jsx(Qc,Object.assign({},r,{component:e})):t?M.jsx(tu,Object.assign({},r,{transition:t})):M.jsx(Yc,Object.assign({},r))}function un(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const ru=()=>{};function nu(e,t,{disabled:r,clickTrigger:n}={}){const o=t||ru;xi(e,o,{disabled:r,clickTrigger:n});const i=ct(a=>{Ri(a)&&o(a)});v.useEffect(()=>{if(r||e==null)return;const a=Ht(ar(e));let s=(a.defaultView||window).event;const c=Qe(a,"keyup",l=>{if(l===s){s=void 0;return}i(l)});return()=>{c()}},[e,r,i])}const Ai=Y.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=nn(),[f,g]=nn(),y=rt(u,t),m=cn(e.container),h=cn(e.target),[E,O]=v.useState(!e.show),T=wi(h,l,Ti({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));e.show&&E&&O(!1);const C=(...ie)=>{O(!0),e.onExited&&e.onExited(...ie)},_=e.show||!E;if(nu(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!_)return null;const{onExit:p,onExiting:A,onEnter:k,onEntering:J,onEntered:Z}=e;let K=e.children(Object.assign({},T.attributes.popper,{style:T.styles.popper,ref:y}),{popper:T,placement:o,show:!!e.show,arrowProps:Object.assign({},T.attributes.arrow,{style:T.styles.arrow,ref:g})});return K=Pi(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K,onExit:p,onExiting:A,onExited:C,onEnter:k,onEntering:J,onEntered:Z}),m?yt.createPortal(K,m):null});Ai.displayName="Overlay";const Mi=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=et(t,"popover-header"),M.jsx(r,{ref:o,className:ce(e,t),...n})));Mi.displayName="PopoverHeader";const Nn=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=et(t,"popover-body"),M.jsx(r,{ref:o,className:ce(e,t),...n})));Nn.displayName="PopoverBody";function ji(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function ki(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ou=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:s,popper:c,show:l,...u},f)=>{const g=et(e,"popover"),y=En(),[m]=(t==null?void 0:t.split("-"))||[],h=ji(m,y);let E=n;return l&&!s&&(E={...n,...ki(c==null?void 0:c.strategy)}),M.jsxs("div",{ref:f,role:"tooltip",style:E,"x-placement":m,className:ce(r,g,m&&`bs-popover-${h}`),...u,children:[M.jsx("div",{className:"popover-arrow",...a}),i?M.jsx(Nn,{children:o}):o]})}),Ni=Object.assign(ou,{Header:Mi,Body:Nn,POPPER_OFFSET:[0,8]}),Ii=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=et(e,"tooltip");const f=En(),[g]=(t==null?void 0:t.split("-"))||[],y=ji(g,f);let m=n;return c&&!a&&(m={...n,...ki(s==null?void 0:s.strategy)}),M.jsxs("div",{ref:u,style:m,role:"tooltip","x-placement":g,className:ce(r,e,`bs-tooltip-${y}`),...l,children:[M.jsx("div",{className:"tooltip-arrow",...i}),M.jsx("div",{className:`${e}-inner`,children:o})]})});Ii.displayName="Tooltip";const In=Object.assign(Ii,{TOOLTIP_OFFSET:[0,6]});function iu(e){const t=v.useRef(null),r=et(void 0,"popover"),n=et(void 0,"tooltip"),o=v.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(un(t.current,r))return Ni.POPPER_OFFSET;if(un(t.current,n))return In.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function au(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(pr(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(pr(o)))}const Di=Y.forwardRef(({children:e,transition:t=mr,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...a},s)=>{const c=v.useRef({}),[l,u]=v.useState(null),[f,g]=iu(a.offset),y=rt(s,f),m=t===!0?mr:t||void 0,h=ct(E=>{u(E),r==null||r.onFirstUpdate==null||r.onFirstUpdate(E)});return hr(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),v.useEffect(()=>{i||u(null)},[i]),M.jsx(Ai,{...a,ref:y,popperConfig:{...r,modifiers:g.concat(r.modifiers||[]),onFirstUpdate:h},transition:m,rootClose:n,placement:o,show:i,children:(E,{arrowProps:O,popper:T,show:C})=>{var _,p;au(E,O);const A=T==null?void 0:T.placement,k=Object.assign(c.current,{state:T==null?void 0:T.state,scheduleUpdate:T==null?void 0:T.update,placement:A,outOfBoundaries:(T==null||(_=T.state)==null||(p=_.modifiersData.hide)==null?void 0:p.isReferenceHidden)||!1,strategy:r.strategy}),J=!!l;return typeof e=="function"?e({...E,placement:A,show:C,...!t&&C&&{className:"show"},popper:k,arrowProps:O,hasDoneInitialMeasure:J}):Y.cloneElement(e,{...E,placement:A,arrowProps:O,popper:k,hasDoneInitialMeasure:J,className:ce(e.props.className,!t&&C&&"show"),style:{...e.props.style,...E.style}})}})});Di.displayName="Overlay";function su(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Ao(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!gr(o,i)&&e(...t)}z.oneOf(["click","hover","focus"]);const Li=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:o,defaultShow:i=!1,onToggle:a,delay:s,placement:c,flip:l=c&&c.indexOf("auto")!==-1,...u})=>{const f=v.useRef(null),g=rt(f,r.ref),y=As(),m=v.useRef(""),[h,E]=ei(o,i,a),O=su(s),{onFocus:T,onBlur:C,onClick:_}=typeof r!="function"?Y.Children.only(r).props:{},p=Q=>{g(pr(Q))},A=v.useCallback(()=>{if(y.clear(),m.current="show",!O.show){E(!0);return}y.set(()=>{m.current==="show"&&E(!0)},O.show)},[O.show,E,y]),k=v.useCallback(()=>{if(y.clear(),m.current="hide",!O.hide){E(!1);return}y.set(()=>{m.current==="hide"&&E(!1)},O.hide)},[O.hide,E,y]),J=v.useCallback((...Q)=>{A(),T==null||T(...Q)},[A,T]),Z=v.useCallback((...Q)=>{k(),C==null||C(...Q)},[k,C]),K=v.useCallback((...Q)=>{E(!h),_==null||_(...Q)},[_,E,h]),ie=v.useCallback((...Q)=>{Ao(A,Q,"fromElement")},[A]),de=v.useCallback((...Q)=>{Ao(k,Q,"toElement")},[k]),V=e==null?[]:[].concat(e),X={ref:p};return V.indexOf("click")!==-1&&(X.onClick=K),V.indexOf("focus")!==-1&&(X.onFocus=J,X.onBlur=Z),V.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Mn(V.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),X.onMouseOver=ie,X.onMouseOut=de),M.jsxs(M.Fragment,{children:[typeof r=="function"?r(X):v.cloneElement(r,X),M.jsx(Di,{...u,show:h,onHide:k,flip:l,placement:c,popperConfig:n,target:f.current,children:t})]})};var $i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Mo=v.createContext&&v.createContext($i),cu=["attr","size","title"];function uu(e,t){if(e==null)return{};var r=lu(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lu(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yr.apply(this,arguments)}function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jo(Object(r),!0).forEach(function(n){fu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fu(e,t,r){return t=du(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function du(e){var t=pu(e,"string");return typeof t=="symbol"?t:t+""}function pu(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fi(e){return e&&e.map((t,r)=>v.createElement(t.tag,br({key:r},t.attr),Fi(t.child)))}function he(e){return t=>v.createElement(hu,yr({attr:br({},e.attr)},t),Fi(e.child))}function hu(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=uu(e,cu),s=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),v.createElement("svg",yr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:br(br({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&v.createElement("title",null,i),e.children)};return Mo!==void 0?v.createElement(Mo.Consumer,null,r=>t(r)):t($i)}function mu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function vu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function gu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function yu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function bu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function Eu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function wu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function Ou(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function xu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function Tu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function Su(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function Cu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function _u(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function Ru(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function Pu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function Au(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function Mu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function ju(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function Ui(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function ku(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function Nu(e){return he({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const Dn=v.createContext({cookieDomain:"",axiosOptions:{},LinkComponent:{},NavigateComponent:()=>null,language:"",localizationContext:{},axiosTexts:{},confirmTexts:{},formValidationTexts:{},homeDashboardTexts:{},formSubmitTexts:{},appSearchTexts:{},customSelectTexts:{},errorBoundaryTexts:{},widgetTexts:{},texts:{},ProjectIconComponent:{}}),Iu=v.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Du=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}});let Lu={data:""},$u=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Lu,Fu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Uu=/\/\*[^]*?\*\/| +/g,ko=/\n+/g,Ze=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?r=i+" "+a+";":n+=i[1]=="f"?Ze(a,i):i+"{"+Ze(a,i[1]=="k"?"":t)+"}":typeof a=="object"?n+=Ze(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,s):s?s+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ze.p?Ze.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Be={},Bi=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Bi(e[r]);return t}return e},Bu=(e,t,r,n,o)=>{let i=Bi(e),a=Be[i]||(Be[i]=(c=>{let l=0,u=11;for(;l<c.length;)u=101*u+c.charCodeAt(l++)>>>0;return"go"+u})(i));if(!Be[a]){let c=i!==e?e:(l=>{let u,f,g=[{}];for(;u=Fu.exec(l.replace(Uu,""));)u[4]?g.shift():u[3]?(f=u[3].replace(ko," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][u[1]]=u[2].replace(ko," ").trim();return g[0]})(e);Be[a]=Ze(o?{["@keyframes "+a]:c}:c,r?"":"."+a)}let s=r&&Be.g?Be.g:null;return r&&(Be.g=Be[a]),((c,l,u,f)=>{f?l.data=l.data.replace(f,c):l.data.indexOf(c)===-1&&(l.data=u?c+l.data:l.data+c)})(Be[a],t,n,s),a},zu=(e,t,r)=>e.reduce((n,o,i)=>{let a=t[i];if(a&&a.call){let s=a(r),c=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=c?"."+c:s&&typeof s=="object"?s.props?"":Ze(s,""):s===!1?"":s}return n+o+(a??"")},"");function Cr(e){let t=this||{},r=e.call?e(t.p):e;return Bu(r.unshift?r.raw?zu(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,$u(t.target),t.g,t.o,t.k)}let zi,ln,fn;Cr.bind({g:1});let Ve=Cr.bind({k:1});function Hu(e,t,r,n){Ze.p=t,zi=e,ln=r,fn=n}function ot(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),c=s.className||o.className;r.p=Object.assign({theme:ln&&ln()},s),r.o=/ *go\d+/.test(c),s.className=Cr.apply(r,n)+(c?" "+c:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),fn&&l[0]&&fn(s),zi(l,s)}return o}}var Vu=e=>typeof e=="function",Er=(e,t)=>Vu(e)?e(t):e,Wu=(()=>{let e=0;return()=>(++e).toString()})(),Hi=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Yu=20,sr=new Map,qu=1e3,No=e=>{if(sr.has(e))return;let t=setTimeout(()=>{sr.delete(e),lt({type:4,toastId:e})},qu);sr.set(e,t)},Gu=e=>{let t=sr.get(e);t&&clearTimeout(t)},dn=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Yu)};case 1:return t.toast.id&&Gu(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return e.toasts.find(i=>i.id===r.id)?dn(e,{type:1,toast:r}):dn(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?No(n):e.toasts.forEach(i=>{No(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},cr=[],ur={toasts:[],pausedAt:void 0},lt=e=>{ur=dn(ur,e),cr.forEach(t=>{t(ur)})},Ku={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ju=(e={})=>{let[t,r]=v.useState(ur);v.useEffect(()=>(cr.push(r),()=>{let o=cr.indexOf(r);o>-1&&cr.splice(o,1)}),[t]);let n=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||Ku[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:n}},Xu=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Wu()}),Yt=e=>(t,r)=>{let n=Xu(t,e,r);return lt({type:2,toast:n}),n.id},Re=(e,t)=>Yt("blank")(e,t);Re.error=Yt("error");Re.success=Yt("success");Re.loading=Yt("loading");Re.custom=Yt("custom");Re.dismiss=e=>{lt({type:3,toastId:e})};Re.remove=e=>lt({type:4,toastId:e});Re.promise=(e,t,r)=>{let n=Re.loading(t.loading,{...r,...r==null?void 0:r.loading});return e.then(o=>(Re.success(Er(t.success,o),{id:n,...r,...r==null?void 0:r.success}),o)).catch(o=>{Re.error(Er(t.error,o),{id:n,...r,...r==null?void 0:r.error})}),e};var Zu=(e,t)=>{lt({type:1,toast:{id:e,height:t}})},Qu=()=>{lt({type:5,time:Date.now()})},el=e=>{let{toasts:t,pausedAt:r}=Ju(e);v.useEffect(()=>{if(r)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let c=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(c<0){s.visible&&Re.dismiss(s.id);return}return setTimeout(()=>Re.dismiss(s.id),c)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,r]);let n=v.useCallback(()=>{r&<({type:6,time:Date.now()})},[r]),o=v.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:c=8,defaultPosition:l}=a||{},u=t.filter(y=>(y.position||l)===(i.position||l)&&y.height),f=u.findIndex(y=>y.id===i.id),g=u.filter((y,m)=>m<f&&y.visible).length;return u.filter(y=>y.visible).slice(...s?[g+1]:[0,g]).reduce((y,m)=>y+(m.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Zu,startPause:Qu,endPause:n,calculateOffset:o}}},tl=Ve`
|
|
54
54
|
from {
|
|
55
55
|
transform: scale(0) rotate(45deg);
|
|
56
56
|
opacity: 0;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import BaseMessageBoardModel from '../../../models/types/BaseMessageBoardModel';
|
|
3
|
+
type Props<MessageType extends BaseMessageBoardModel> = {
|
|
4
|
+
renderAsNotifPanel?: boolean;
|
|
5
|
+
notifIcon?: ReactNode;
|
|
6
|
+
apiUrls?: {
|
|
7
|
+
apiGet?: string;
|
|
8
|
+
apiDelete?: string;
|
|
9
|
+
};
|
|
10
|
+
getIcon: (message: MessageType) => React.ReactNode | null;
|
|
11
|
+
getLinksTo: (message: MessageType) => string | null;
|
|
12
|
+
};
|
|
13
|
+
declare const MessageBoard: <MessageType extends BaseMessageBoardModel>({ renderAsNotifPanel, notifIcon, apiUrls: { apiGet, apiDelete, }, getIcon, getLinksTo, }: Props<MessageType>) => import("react").JSX.Element;
|
|
14
|
+
export default MessageBoard;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseMessageBoardModel } from '@models/index';
|
|
3
|
+
type Props<MessageType extends BaseMessageBoardModel> = {
|
|
4
|
+
messages: MessageType[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onDeleteMessage: (messageId: number) => void;
|
|
7
|
+
onClickMessage?: () => void;
|
|
8
|
+
getIcon: (message: MessageType) => React.ReactNode | null;
|
|
9
|
+
getLinksTo: (message: MessageType) => string | null;
|
|
10
|
+
};
|
|
11
|
+
declare const MessageList: <MessageType extends BaseMessageBoardModel>({ messages, isLoading, onDeleteMessage, onClickMessage, getIcon, getLinksTo, }: Props<MessageType>) => import("react").JSX.Element;
|
|
12
|
+
export default MessageList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
typeFilter: string | null;
|
|
4
|
+
onChangeTypeFilter: (type: string | null) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const MessageFilters: ({ typeFilter, onChangeTypeFilter }: Props) => import("react").JSX.Element;
|
|
7
|
+
export default MessageFilters;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseMessageBoardModel } from '@models/index';
|
|
3
|
+
type Props<MessageType extends BaseMessageBoardModel> = {
|
|
4
|
+
message: MessageType;
|
|
5
|
+
onDeleteMessage: (id: number) => void;
|
|
6
|
+
onClickMessage?: () => void;
|
|
7
|
+
getIcon: (message: MessageType) => React.ReactNode | null;
|
|
8
|
+
getLinksTo: (message: MessageType) => string | null;
|
|
9
|
+
};
|
|
10
|
+
declare const MessageItem: <MessageType extends BaseMessageBoardModel>({ message, onDeleteMessage, onClickMessage, getIcon, getLinksTo, }: Props<MessageType>) => import("react").JSX.Element;
|
|
11
|
+
export default MessageItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MessageList } from './MessageList/MessageList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MessageBoard } from './MessageBoard/MessageBoard';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
level: 'info' | 'warning' | 'danger' | 'success';
|
|
4
|
+
children: string | React.ReactNode;
|
|
5
|
+
customIcon?: React.ReactNode;
|
|
6
|
+
noIcon?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const AlertItem: ({ level, children, customIcon, noIcon }: Props) => import("react").JSX.Element;
|
|
9
|
+
export default AlertItem;
|
|
@@ -17,6 +17,7 @@ export { default as PhotoLibrary } from './PhotoLibrary/PhotoLibrary';
|
|
|
17
17
|
export { default as Backdrop } from './Backdrop/Backdrop';
|
|
18
18
|
export { default as AuthTemplate } from './AuthTemplate/AuthTemplate';
|
|
19
19
|
export { default as Alert } from './Alert/Alert';
|
|
20
|
+
export { default as AlertItem } from './AlertItem/AlertItem';
|
|
20
21
|
export { default as VersionInfo } from './VersionInfo/VersionInfo';
|
|
21
22
|
export { default as WidgetCard } from './Widget/WidgetCard';
|
|
22
23
|
export { default as WidgetWrapper } from './Widget/WidgetWrapper';
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import { CreateAxiosDefaults } from 'axios';
|
|
3
|
-
import { LinkProps, NavigateProps } from 'react-router-dom';
|
|
4
|
-
import { AppSearchTexts, AxiosTexts, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
1
|
+
import { AppSearchTexts, AxiosTexts, CommonLuminusIcons, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts, ILocalizationContext } from '@models/index';
|
|
5
2
|
import ErrorBoundaryTexts from '@models/texts/ErrorBoundaryTexts';
|
|
3
|
+
import MessageBoardTexts from '@models/texts/MessageBoardTexts';
|
|
6
4
|
import WidgetTexts from '@models/texts/WidgetTexts';
|
|
5
|
+
import { CreateAxiosDefaults } from 'axios';
|
|
6
|
+
import { Context, ReactNode } from 'react';
|
|
7
|
+
import { IconBaseProps } from 'react-icons';
|
|
8
|
+
import { LinkProps, NavigateProps } from 'react-router-dom';
|
|
9
|
+
export type IconComponentType = (props: {
|
|
10
|
+
icon: CommonLuminusIcons;
|
|
11
|
+
className?: string;
|
|
12
|
+
iconProps?: IconBaseProps;
|
|
13
|
+
}) => ReactNode;
|
|
7
14
|
export interface ILuminusComponentsContext {
|
|
8
15
|
cookieDomain: string;
|
|
9
16
|
axiosOptions: CreateAxiosDefaults;
|
|
10
17
|
LinkComponent: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
18
|
NavigateComponent: (props: NavigateProps) => null;
|
|
19
|
+
localizationContext: Context<ILocalizationContext>;
|
|
12
20
|
language: string;
|
|
13
21
|
axiosTexts: AxiosTexts;
|
|
14
22
|
confirmTexts: ConfirmTexts;
|
|
@@ -19,6 +27,10 @@ export interface ILuminusComponentsContext {
|
|
|
19
27
|
customSelectTexts: CustomSelectTexts;
|
|
20
28
|
errorBoundaryTexts: ErrorBoundaryTexts;
|
|
21
29
|
widgetTexts: WidgetTexts;
|
|
30
|
+
texts: {
|
|
31
|
+
messageBoard: MessageBoardTexts;
|
|
32
|
+
};
|
|
33
|
+
ProjectIconComponent: IconComponentType;
|
|
22
34
|
}
|
|
23
|
-
declare const LuminusComponentsContext:
|
|
35
|
+
declare const LuminusComponentsContext: Context<ILuminusComponentsContext>;
|
|
24
36
|
export default LuminusComponentsContext;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { AppSearchTexts, AxiosTexts, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
1
|
+
import { AppSearchTexts, AxiosTexts, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts, ILocalizationContext } from '@models/index';
|
|
3
2
|
import ErrorBoundaryTexts from '@models/texts/ErrorBoundaryTexts';
|
|
3
|
+
import MessageBoardTexts from '@models/texts/MessageBoardTexts';
|
|
4
4
|
import WidgetTexts from '@models/texts/WidgetTexts';
|
|
5
5
|
import { CreateAxiosDefaults } from 'axios';
|
|
6
|
+
import { Context } from 'react';
|
|
6
7
|
import { LinkProps, NavigateProps } from 'react-router-dom';
|
|
8
|
+
import { IconComponentType } from './LuminusComponentsContext';
|
|
7
9
|
type Props = {
|
|
8
10
|
cookieDomain: string;
|
|
9
11
|
axiosOptions: CreateAxiosDefaults;
|
|
@@ -20,6 +22,11 @@ type Props = {
|
|
|
20
22
|
children: React.ReactNode;
|
|
21
23
|
errorBoundaryTexts: ErrorBoundaryTexts;
|
|
22
24
|
widgetTexts: WidgetTexts;
|
|
25
|
+
texts: {
|
|
26
|
+
messageBoard: MessageBoardTexts;
|
|
27
|
+
};
|
|
28
|
+
ProjectIconComponent: IconComponentType;
|
|
29
|
+
localizationContext: Context<ILocalizationContext>;
|
|
23
30
|
};
|
|
24
|
-
declare const LuminusComponentsProvider: ({ cookieDomain, axiosOptions, LinkComponent, NavigateComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, customSelectTexts, errorBoundaryTexts, widgetTexts, children, }: Props) => import("react").JSX.Element;
|
|
31
|
+
declare const LuminusComponentsProvider: ({ cookieDomain, axiosOptions, LinkComponent, NavigateComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, customSelectTexts, errorBoundaryTexts, widgetTexts, texts: { messageBoard }, ProjectIconComponent, localizationContext, children, }: Props) => import("react").JSX.Element;
|
|
25
32
|
export default LuminusComponentsProvider;
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./UserAvatarToggle-DYIBvTYX.cjs"),n=require("react");require("./latinize-DaqzUOla.cjs");require("react-hook-form");const I=require("./useLocalStorageState-CxsNjf78.cjs"),c=require("./PrimaryButton-DXGul-f9.cjs"),A=require("./dateUtils-b-AkAh2Y.cjs"),b=({children:t})=>{const[i,s]=n.useState(!1),[r,o]=n.useState(""),a=n.useCallback(d=>{s(!0),o(d)},[]),u=n.useCallback(()=>{s(!1)},[]),l=n.useMemo(()=>({show:i,text:r,showConfirm:a,hideConfirm:u}),[i,r,a,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:l,children:[e.jsxRuntimeExports.jsx(z,{}),t]})},k=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:i,text:s,onFinish:r}=I.usePrompt(),{options:o}=n.useContext(e.PromptContext),[a,u]=n.useState(o.defaultValue??""),l=n.useCallback(()=>{r(null)},[r]),d=n.useCallback(x=>{x.preventDefault(),!(o.required&&!a)&&r(a)},[r,o.required,a]);n.useEffect(()=>{i===!0&&u(o.defaultValue??"")},[i,o.defaultValue]);const E=n.useMemo(()=>({value:a,onChange:x=>u(x.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return e.jsxRuntimeExports.jsxs(c.Modal,{show:i,size:"sm",centered:!0,onHide:l,children:[e.jsxRuntimeExports.jsx(c.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(c.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs("form",{onSubmit:d,children:[e.jsxRuntimeExports.jsxs(c.Modal.Body,{children:[o.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...E,rows:5}):void 0,o.input==="input"?e.jsxRuntimeExports.jsx(c.FormControl,{...E,type:o.type}):void 0]}),e.jsxRuntimeExports.jsxs(c.Modal.Footer,{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(c.PrimaryButton,{variant:"outlined",color:"secondary",onClick:l,className:"flex-grow-1",children:t.cancel}),e.jsxRuntimeExports.jsx(c.PrimaryButton,{color:"primary",disabled:o.required&&!a,type:"submit",className:"flex-grow-1",children:t.confirm})]})]})]})},O=({children:t})=>{const[i,s]=n.useState(!1),[r,o]=n.useState(""),[a,u]=n.useState({input:"textarea",type:"text"}),l=n.useRef(()=>{}),d=n.useCallback(S=>{o(S),s(!0)},[]),E=n.useCallback(()=>{s(!1)},[]),x=n.useMemo(()=>({isShown:i,text:r,showPrompt:d,hidePrompt:E,resolveRef:l,options:a,setOptions:u}),[i,r,d,E,a]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:x,children:[t,e.jsxRuntimeExports.jsx(k,{})]})},U=({cookieDomain:t,axiosOptions:i,LinkComponent:s,NavigateComponent:r,language:o,axiosTexts:a,confirmTexts:u,formValidationTexts:l,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:x,customSelectTexts:S,errorBoundaryTexts:p,widgetTexts:g,children:f})=>{const y=n.useMemo(()=>({axiosOptions:i,cookieDomain:t,LinkComponent:s,NavigateComponent:r,language:o,axiosTexts:a,confirmTexts:u,formValidationTexts:l,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:x,customSelectTexts:S,errorBoundaryTexts:p,widgetTexts:g}),[i,t,s,r,o,a,u,l,d,E,x,S,p,g]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:y,children:e.jsxRuntimeExports.jsx(b,{children:e.jsxRuntimeExports.jsxs(O,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),f]})})})},w=({children:t})=>{const[i,s]=n.useState(!1),[r]=n.useState(new Set),o=n.useCallback(l=>{r.add(l),s(!0)},[r]),a=n.useCallback(l=>{r.delete(l),r.size===0&&s(!1)},[r]),u=n.useMemo(()=>({isLoading:i,startLoading:o,stopLoading:a}),[i,o,a]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[i&&e.jsxRuntimeExports.jsx(c.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class _{static getInteractionStatusFromEvent(i,s){switch(i.eventType){case c.EventType.LOGIN_START:return e.InteractionStatus.Login;case c.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case c.EventType.ACQUIRE_TOKEN_START:if(i.interactionType===e.InteractionType.Redirect||i.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case c.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case c.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case c.EventType.SSO_SILENT_SUCCESS:case c.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case c.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case c.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case c.EventType.LOGIN_SUCCESS:case c.EventType.LOGIN_FAILURE:case c.EventType.ACQUIRE_TOKEN_SUCCESS:case c.EventType.ACQUIRE_TOKEN_FAILURE:case c.EventType.RESTORE_FROM_BFCACHE:if(i.interactionType===e.InteractionType.Redirect||i.interactionType===e.InteractionType.Popup){if(s&&s!==e.InteractionStatus.Login&&s!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}break}return null}}/*! @azure/msal-react v2.0.16 2024-05-07 */const M="@azure/msal-react",P="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const T={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},D=(t,i)=>{const{type:s,payload:r}=i;let o=t.inProgress;switch(s){case T.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(o=e.InteractionStatus.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case T.EVENT:const u=r.message,l=_.getInteractionStatusFromEvent(u,t.inProgress);l&&(r.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${l}`),o=l);break;default:throw new Error(`Unknown action type: ${s}`)}const a=r.instance.getAllAccounts();return o!==t.inProgress&&!e.accountArraysAreEqual(a,t.accounts)?{...t,inProgress:o,accounts:a}:o!==t.inProgress?{...t,inProgress:o}:e.accountArraysAreEqual(a,t.accounts)?t:{...t,accounts:a}};function G({instance:t,children:i}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,P)},[t]);const s=n.useMemo(()=>t.getLogger().clone(M,P),[t]),[r,o]=n.useReducer(D,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(l=>{o({payload:{instance:t,logger:s,message:l},type:T.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{o({payload:{instance:t,logger:s},type:T.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const a={instance:t,inProgress:r.inProgress,accounts:r.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:a},i)}const q=({children:t})=>{const i=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),{delegation:r,setDelegation:o,setAvailableDelegations:a,refreshAvailableDelegations:u}=n.useContext(e.DelegationContext),{getToken:l}=e.useAuth(),[d,E]=n.useState(null),x=n.useCallback(async()=>{const m=await l();m&&E(m)},[l]);n.useEffect(()=>{x()},[x]);const p=n.useCallback(()=>{const m=localStorage.getItem("user")??null;return m?JSON.parse(m??""):null},[])(),[g,f]=n.useState({state:p?e.LoginState.LOGGED_IN:e.LoginState.LOGGING_IN,user:p}),y=n.useCallback(async m=>{let C=null;return await i.get("/user/detail",m?{headers:{Authorization:`Bearer ${m}`}}:void 0).then(h=>{C=h.data}).catch(()=>{C=null}),C},[i]),j=n.useCallback(()=>{localStorage.removeItem("user"),f({state:e.LoginState.LOGGED_OUT,user:null}),o(null),a(null)},[a,o]),v=n.useCallback(async m=>{f({state:e.LoginState.LOGGING_IN,user:null});const C=await y(m);return C?(f({state:e.LoginState.LOGGED_IN,user:C}),localStorage.setItem("user",JSON.stringify(C)),await u(),!0):(f({state:e.LoginState.LOGIN_FAILED,user:null}),!1)},[y,u]),R=n.useCallback(()=>{j()},[j]);n.useEffect(()=>{if(s){const m=s.addEventCallback(C=>{if(C.eventType===c.EventType.LOGIN_SUCCESS&&C.payload){const h=C.payload;E(h.accessToken)}});return()=>{m&&s.removeEventCallback(m)}}return()=>{}},[s,v,R]);const L=n.useCallback(async m=>{m&&await v(m).catch(()=>{R(),o(null)})},[v,R,o]);n.useEffect(()=>{L(d)},[d,r==null?void 0:r.id,L]);const N=n.useMemo(()=>({user:g.user,userLoginState:g,loginUser:v,logoutUser:R}),[g,v,R]);return e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:N,children:t})},B=({...t})=>{const{cookieDomain:i}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),r=n.useMemo(()=>({useMsal:t.useMsal??!1,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t]);return n.useEffect(()=>{if(t.useMsal){const o=t.msalInstance.addEventCallback(a=>{if(a.eventType===c.EventType.LOGIN_SUCCESS||a.eventType===c.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const u=a.payload,l=u.account;t.msalInstance.setActiveAccount(l);const d=u.accessToken,E=u.expiresOn;s("Authorization",d,{path:"/",secure:!0,sameSite:"none",domain:i,expires:E??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{o&&t.msalInstance.removeEventCallback(o)}}return()=>{}},[t,s,i]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:r,children:t.useMsal?e.jsxRuntimeExports.jsx(G,{instance:t.msalInstance,children:t.children}):t.children})},F=({children:t,relativeEndpoint:i})=>{const[s,r,o]=I.useLocalStorageState("user-delegation",null),{data:a,setData:u,reloadData:l}=I.useGetApiData(i,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),d=n.useRef(null);n.useEffect(()=>{const x=()=>{l(),d.current=window.setTimeout(x,A.msToStartOfNextDay()+5e3)};return x(),()=>{d.current!==null&&window.clearTimeout(d.current)}},[l]),n.useEffect(()=>{const x=()=>{o()};return window.addEventListener("focus",x),()=>{window.removeEventListener("focus",x)}},[o,l]);const E=n.useMemo(()=>({delegation:s,setDelegation:r,availableDelegations:a,setAvailableDelegations:u,refreshAvailableDelegations:l}),[s,r,a,u,l]);return e.jsxRuntimeExports.jsx(e.DelegationContext.Provider,{value:E,children:t})},z=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:i,onCancel:s,text:r,show:o}=I.useConfirm();return e.jsxRuntimeExports.jsxs(c.Modal,{show:o,size:"sm",centered:!0,onHide:s,children:[e.jsxRuntimeExports.jsx(c.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(c.Modal.Title,{children:r})}),e.jsxRuntimeExports.jsx(c.Modal.Body,{children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(c.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx(c.PrimaryButton,{type:"button",color:"primary",onClick:i,className:"w-100 ml",children:t.yes})]})})]})};exports.AuthContext=e.AuthContext;exports.DelegationContext=e.DelegationContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=B;exports.DelegationProvider=F;exports.LoadingProvider=w;exports.LuminusComponentsProvider=U;exports.UserProvider=q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./UserAvatarToggle-J8ZQDJ2r.cjs"),n=require("react");require("./latinize-Dl6DAk4g.cjs");require("zod");require("react-hook-form");const T=require("./useLocalStorageState-KNanBZsO.cjs"),c=require("./PrimaryButton-C3toFFlE.cjs"),A=require("./dateUtils-Dy3knMZB.cjs"),b=({children:t})=>{const[i,s]=n.useState(!1),[r,o]=n.useState(""),a=n.useCallback(d=>{s(!0),o(d)},[]),u=n.useCallback(()=>{s(!1)},[]),l=n.useMemo(()=>({show:i,text:r,showConfirm:a,hideConfirm:u}),[i,r,a,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:l,children:[e.jsxRuntimeExports.jsx(z,{}),t]})},k=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:i,text:s,onFinish:r}=T.usePrompt(),{options:o}=n.useContext(e.PromptContext),[a,u]=n.useState(o.defaultValue??""),l=n.useCallback(()=>{r(null)},[r]),d=n.useCallback(x=>{x.preventDefault(),!(o.required&&!a)&&r(a)},[r,o.required,a]);n.useEffect(()=>{i===!0&&u(o.defaultValue??"")},[i,o.defaultValue]);const E=n.useMemo(()=>({value:a,onChange:x=>u(x.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return e.jsxRuntimeExports.jsxs(c.Modal,{show:i,size:"sm",centered:!0,onHide:l,children:[e.jsxRuntimeExports.jsx(c.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(c.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs("form",{onSubmit:d,children:[e.jsxRuntimeExports.jsxs(c.Modal.Body,{children:[o.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...E,rows:5}):void 0,o.input==="input"?e.jsxRuntimeExports.jsx(c.FormControl,{...E,type:o.type}):void 0]}),e.jsxRuntimeExports.jsxs(c.Modal.Footer,{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(c.PrimaryButton,{variant:"outlined",color:"secondary",onClick:l,className:"flex-grow-1",children:t.cancel}),e.jsxRuntimeExports.jsx(c.PrimaryButton,{color:"primary",disabled:o.required&&!a,type:"submit",className:"flex-grow-1",children:t.confirm})]})]})]})},O=({children:t})=>{const[i,s]=n.useState(!1),[r,o]=n.useState(""),[a,u]=n.useState({input:"textarea",type:"text"}),l=n.useRef(()=>{}),d=n.useCallback(v=>{o(v),s(!0)},[]),E=n.useCallback(()=>{s(!1)},[]),x=n.useMemo(()=>({isShown:i,text:r,showPrompt:d,hidePrompt:E,resolveRef:l,options:a,setOptions:u}),[i,r,d,E,a]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:x,children:[t,e.jsxRuntimeExports.jsx(k,{})]})},U=({cookieDomain:t,axiosOptions:i,LinkComponent:s,NavigateComponent:r,language:o,axiosTexts:a,confirmTexts:u,formValidationTexts:l,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:x,customSelectTexts:v,errorBoundaryTexts:R,widgetTexts:p,texts:{messageBoard:f},ProjectIconComponent:y,localizationContext:I,children:g})=>{const S=n.useMemo(()=>({axiosOptions:i,cookieDomain:t,LinkComponent:s,NavigateComponent:r,language:o,axiosTexts:a,confirmTexts:u,formValidationTexts:l,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:x,customSelectTexts:v,errorBoundaryTexts:R,widgetTexts:p,texts:{messageBoard:f},ProjectIconComponent:y,localizationContext:I}),[i,t,s,r,o,a,u,l,d,E,x,v,R,p,f,y,I]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:S,children:e.jsxRuntimeExports.jsx(b,{children:e.jsxRuntimeExports.jsxs(O,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),g]})})})},w=({children:t})=>{const[i,s]=n.useState(!1),[r]=n.useState(new Set),o=n.useCallback(l=>{r.add(l),s(!0)},[r]),a=n.useCallback(l=>{r.delete(l),r.size===0&&s(!1)},[r]),u=n.useMemo(()=>({isLoading:i,startLoading:o,stopLoading:a}),[i,o,a]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[i&&e.jsxRuntimeExports.jsx(c.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class _{static getInteractionStatusFromEvent(i,s){switch(i.eventType){case c.EventType.LOGIN_START:return e.InteractionStatus.Login;case c.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case c.EventType.ACQUIRE_TOKEN_START:if(i.interactionType===e.InteractionType.Redirect||i.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case c.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case c.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case c.EventType.SSO_SILENT_SUCCESS:case c.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case c.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case c.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case c.EventType.LOGIN_SUCCESS:case c.EventType.LOGIN_FAILURE:case c.EventType.ACQUIRE_TOKEN_SUCCESS:case c.EventType.ACQUIRE_TOKEN_FAILURE:case c.EventType.RESTORE_FROM_BFCACHE:if(i.interactionType===e.InteractionType.Redirect||i.interactionType===e.InteractionType.Popup){if(s&&s!==e.InteractionStatus.Login&&s!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}break}return null}}/*! @azure/msal-react v2.0.16 2024-05-07 */const M="@azure/msal-react",P="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const h={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},D=(t,i)=>{const{type:s,payload:r}=i;let o=t.inProgress;switch(s){case h.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(o=e.InteractionStatus.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case h.EVENT:const u=r.message,l=_.getInteractionStatusFromEvent(u,t.inProgress);l&&(r.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${l}`),o=l);break;default:throw new Error(`Unknown action type: ${s}`)}const a=r.instance.getAllAccounts();return o!==t.inProgress&&!e.accountArraysAreEqual(a,t.accounts)?{...t,inProgress:o,accounts:a}:o!==t.inProgress?{...t,inProgress:o}:e.accountArraysAreEqual(a,t.accounts)?t:{...t,accounts:a}};function G({instance:t,children:i}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,P)},[t]);const s=n.useMemo(()=>t.getLogger().clone(M,P),[t]),[r,o]=n.useReducer(D,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(l=>{o({payload:{instance:t,logger:s,message:l},type:h.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{o({payload:{instance:t,logger:s},type:h.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const a={instance:t,inProgress:r.inProgress,accounts:r.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:a},i)}const q=({children:t})=>{const i=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),{delegation:r,setDelegation:o,setAvailableDelegations:a,refreshAvailableDelegations:u}=n.useContext(e.DelegationContext),{getToken:l}=e.useAuth(),[d,E]=n.useState(null),x=n.useCallback(async()=>{const m=await l();m&&E(m)},[l]);n.useEffect(()=>{x()},[x]);const R=n.useCallback(()=>{const m=localStorage.getItem("user")??null;return m?JSON.parse(m??""):null},[])(),[p,f]=n.useState({state:R?e.LoginState.LOGGED_IN:e.LoginState.LOGGING_IN,user:R}),y=n.useCallback(async m=>{let C=null;return await i.get("/user/detail",m?{headers:{Authorization:`Bearer ${m}`}}:void 0).then(j=>{C=j.data}).catch(()=>{C=null}),C},[i]),I=n.useCallback(()=>{localStorage.removeItem("user"),f({state:e.LoginState.LOGGED_OUT,user:null}),o(null),a(null)},[a,o]),g=n.useCallback(async m=>{f({state:e.LoginState.LOGGING_IN,user:null});const C=await y(m);return C?(f({state:e.LoginState.LOGGED_IN,user:C}),localStorage.setItem("user",JSON.stringify(C)),await u(),!0):(f({state:e.LoginState.LOGIN_FAILED,user:null}),!1)},[y,u]),S=n.useCallback(()=>{I()},[I]);n.useEffect(()=>{if(s){const m=s.addEventCallback(C=>{if(C.eventType===c.EventType.LOGIN_SUCCESS&&C.payload){const j=C.payload;E(j.accessToken)}});return()=>{m&&s.removeEventCallback(m)}}return()=>{}},[s,g,S]);const L=n.useCallback(async m=>{m&&await g(m).catch(()=>{S(),o(null)})},[g,S,o]);n.useEffect(()=>{L(d)},[d,r==null?void 0:r.id,L]);const N=n.useMemo(()=>({user:p.user,userLoginState:p,loginUser:g,logoutUser:S}),[p,g,S]);return e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:N,children:t})},F=({...t})=>{const{cookieDomain:i}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),r=n.useMemo(()=>({useMsal:t.useMsal??!1,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t]);return n.useEffect(()=>{if(t.useMsal){const o=t.msalInstance.addEventCallback(a=>{if(a.eventType===c.EventType.LOGIN_SUCCESS||a.eventType===c.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const u=a.payload,l=u.account;t.msalInstance.setActiveAccount(l);const d=u.accessToken,E=u.expiresOn;s("Authorization",d,{path:"/",secure:!0,sameSite:"none",domain:i,expires:E??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{o&&t.msalInstance.removeEventCallback(o)}}return()=>{}},[t,s,i]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:r,children:t.useMsal?e.jsxRuntimeExports.jsx(G,{instance:t.msalInstance,children:t.children}):t.children})},B=({children:t,relativeEndpoint:i})=>{const[s,r,o]=T.useLocalStorageState("user-delegation",null),{data:a,setData:u,reloadData:l}=T.useGetApiData(i,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),d=n.useRef(null);n.useEffect(()=>{const x=()=>{l(),d.current=window.setTimeout(x,A.msToStartOfNextDay()+5e3)};return x(),()=>{d.current!==null&&window.clearTimeout(d.current)}},[l]),n.useEffect(()=>{const x=()=>{o()};return window.addEventListener("focus",x),()=>{window.removeEventListener("focus",x)}},[o,l]);const E=n.useMemo(()=>({delegation:s,setDelegation:r,availableDelegations:a,setAvailableDelegations:u,refreshAvailableDelegations:l}),[s,r,a,u,l]);return e.jsxRuntimeExports.jsx(e.DelegationContext.Provider,{value:E,children:t})},z=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:i,onCancel:s,text:r,show:o}=T.useConfirm();return e.jsxRuntimeExports.jsxs(c.Modal,{show:o,size:"sm",centered:!0,onHide:s,children:[e.jsxRuntimeExports.jsx(c.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(c.Modal.Title,{children:r})}),e.jsxRuntimeExports.jsx(c.Modal.Body,{children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(c.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx(c.PrimaryButton,{type:"button",color:"primary",onClick:i,className:"w-100 ml",children:t.yes})]})})]})};exports.AuthContext=e.AuthContext;exports.DelegationContext=e.DelegationContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=F;exports.DelegationProvider=B;exports.LoadingProvider=w;exports.LuminusComponentsProvider=U;exports.UserProvider=q;
|