react-luminus-components 1.2.61 → 1.2.63

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.
@@ -226,7 +226,7 @@ object-assign
226
226
  (c) Sindre Sorhus
227
227
  @license MIT
228
228
  */var $r,fo;function _c(){if(fo)return $r;fo=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,po;function xn(){if(po)return Fr;po=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fr=e,Fr}var Ur,ho;function ui(){return ho||(ho=1,Ur=Function.call.bind(Object.prototype.hasOwnProperty)),Ur}var Br,mo;function Pc(){if(mo)return Br;mo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xn(),r={},n=ui();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(h){f=h}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 v=l?l():"";e("Failed "+s+" type: "+f.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Br=o,Br}var zr,vo;function Ac(){if(vo)return zr;vo=1;var e=ci(),t=_c(),r=xn(),n=ui(),o=Pc(),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(O){var _=O&&(l&&O[l]||O[u]);if(typeof _=="function")return _}var g="<<anonymous>>",v={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:T(),arrayOf:R,element:C(),elementType:p(),instanceOf:A,node:K(),objectOf:J,oneOf:k,oneOfType:Z,shape:le,exact:V};function h(O,_){return O===_?O!==0||1/O===1/_:O!==O&&_!==_}function y(O,_){this.message=O,this.data=_&&typeof _=="object"?_:{},this.stack=""}y.prototype=Error.prototype;function E(O){if(process.env.NODE_ENV!=="production")var _={},L=0;function $(U,N,I,D,H,B,fe){if(D=D||g,B=B||I,fe!==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;!_[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."),_[ge]=!0,L++)}}return N[I]==null?U?N[I]===null?new y("The "+H+" `"+B+"` is marked as required "+("in `"+D+"`, but its value is `null`.")):new y("The "+H+" `"+B+"` is marked as required in "+("`"+D+"`, but its value is `undefined`.")):null:O(N,I,D,H,B)}var j=$.bind(null,!1);return j.isRequired=$.bind(null,!0),j}function S(O){function _(L,$,j,U,N,I){var D=L[$],H=ae(D);if(H!==O){var B=ue(D);return new y("Invalid "+U+" `"+N+"` of type "+("`"+B+"` supplied to `"+j+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return E(_)}function T(){return E(a)}function R(O){function _(L,$,j,U,N){if(typeof O!="function")return new y("Property `"+N+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var I=L[$];if(!Array.isArray(I)){var D=ae(I);return new y("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected an array."))}for(var H=0;H<I.length;H++){var B=O(I,H,j,U,N+"["+H+"]",r);if(B instanceof Error)return B}return null}return E(_)}function C(){function O(_,L,$,j,U){var N=_[L];if(!s(N)){var I=ae(N);return new y("Invalid "+j+" `"+U+"` of type "+("`"+I+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return E(O)}function p(){function O(_,L,$,j,U){var N=_[L];if(!e.isValidElementType(N)){var I=ae(N);return new y("Invalid "+j+" `"+U+"` of type "+("`"+I+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return E(O)}function A(O){function _(L,$,j,U,N){if(!(L[$]instanceof O)){var I=O.name||g,D=we(L[$]);return new y("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected ")+("instance of `"+I+"`."))}return null}return E(_)}function k(O){if(!Array.isArray(O))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 _(L,$,j,U,N){for(var I=L[$],D=0;D<O.length;D++)if(h(I,O[D]))return null;var H=JSON.stringify(O,function(fe,b){var ge=ue(b);return ge==="symbol"?String(b):b});return new y("Invalid "+U+" `"+N+"` of value `"+String(I)+"` "+("supplied to `"+j+"`, expected one of "+H+"."))}return E(_)}function J(O){function _(L,$,j,U,N){if(typeof O!="function")return new y("Property `"+N+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var I=L[$],D=ae(I);if(D!=="object")return new y("Invalid "+U+" `"+N+"` of type "+("`"+D+"` supplied to `"+j+"`, expected an object."));for(var H in I)if(n(I,H)){var B=O(I,H,j,U,N+"."+H,r);if(B instanceof Error)return B}return null}return E(_)}function Z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var _=0;_<O.length;_++){var L=O[_];if(typeof L!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+xe(L)+" at index "+_+"."),a}function $(j,U,N,I,D){for(var H=[],B=0;B<O.length;B++){var fe=O[B],b=fe(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 y("Invalid "+I+" `"+D+"` supplied to "+("`"+N+"`"+ge+"."))}return E($)}function K(){function O(_,L,$,j,U){return X(_[L])?null:new y("Invalid "+j+" `"+U+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return E(O)}function ie(O,_,L,$,j){return new y((O||"React class")+": "+_+" type `"+L+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function le(O){function _(L,$,j,U,N){var I=L[$],D=ae(I);if(D!=="object")return new y("Invalid "+U+" `"+N+"` of type `"+D+"` "+("supplied to `"+j+"`, expected `object`."));for(var H in O){var B=O[H];if(typeof B!="function")return ie(j,U,N,H,ue(B));var fe=B(I,H,j,U,N+"."+H,r);if(fe)return fe}return null}return E(_)}function V(O){function _(L,$,j,U,N){var I=L[$],D=ae(I);if(D!=="object")return new y("Invalid "+U+" `"+N+"` of type `"+D+"` "+("supplied to `"+j+"`, expected `object`."));var H=t({},L[$],O);for(var B in H){var fe=O[B];if(n(O,B)&&typeof fe!="function")return ie(j,U,N,B,ue(fe));if(!fe)return new y("Invalid "+U+" `"+N+"` key `"+B+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(L[$],null," ")+`
229
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var b=fe(I,B,j,U,N+"."+B,r);if(b)return b}return null}return E(_)}function X(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(X);if(O===null||s(O))return!0;var _=f(O);if(_){var L=_.call(O),$;if(_!==O.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(O,_){return O==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function ae(O){var _=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":Q(_,O)?"symbol":_}function ue(O){if(typeof O>"u"||O===null)return""+O;var _=ae(O);if(_==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return _}function xe(O){var _=ue(O);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function we(O){return!O.constructor||!O.constructor.name?g:O.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},zr}var Hr,go;function Mc(){if(go)return Hr;go=1;var e=xn();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 jc=ci(),kc=!0;nn.exports=Ac()(jc.isElement,kc)}else nn.exports=Mc()();var Nc=nn.exports;const z=Or(Nc),yo={disabled:!1};var Ic=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 li=m.createContext(null);var Dc=function(t){return t.scrollTop},Dt="unmounted",Xe="exited",He="entering",Qe="entered",mr="exiting",Ye=function(e){hc(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=Xe,i.appearStatus=He):c=Qe:n.unmountOnExit||n.mountOnEnter?c=Dt:c=Xe,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Dt?{status:Xe}: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!==He&&a!==Qe&&(i=He):(a===He||a===Qe)&&(i=mr)}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===He){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:bt.findDOMNode(this);a&&Dc(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xe&&this.setState({status:Dt})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[bt.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),g=s?f.appear:f.enter;if(!o&&!a||yo.disabled){this.safeSetState({status:Qe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:He},function(){i.props.onEntering(l,u),i.onTransitionEnd(g,function(){i.safeSetState({status:Qe},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:bt.findDOMNode(this);if(!i||yo.disabled){this.safeSetState({status:Xe},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:mr},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Xe},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:bt.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===Dt)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=ai(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(li.Provider,{value:null},typeof a=="function"?a(o,s):m.cloneElement(m.Children.only(a),s))},t}(m.Component);Ye.contextType=li;Ye.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=Ic;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 yt(){}Ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yt,onEntering:yt,onEntered:yt,onExit:yt,onExiting:yt,onExited:yt};Ye.UNMOUNTED=Dt;Ye.EXITED=Xe;Ye.ENTERING=He;Ye.ENTERED=Qe;Ye.EXITING=mr;const Sr=!!(typeof window<"u"&&window.document&&window.document.createElement);var on=!1,an=!1;try{var Vr={get passive(){return on=!0},get once(){return an=on=!0}};Sr&&(window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,!0))}catch{}function fi(e,t,r,n){if(n&&typeof n!="boolean"&&!an){var o=n.once,i=n.capture,a=r;!an&&o&&(a=r.__once||function s(c){this.removeEventListener(t,s,i),r.call(this,c)},r.__once=a),e.addEventListener(t,a,on?n:i)}e.addEventListener(t,r,n)}function di(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 et(e,t,r,n){return fi(e,t,r,n),function(){di(e,t,r,n)}}function Lc(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 $c(e){var t=On(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function Fc(e,t,r){r===void 0&&(r=5);var n=!1,o=setTimeout(function(){n||Lc(e,"transitionend",!0)},t+r),i=et(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(o),i()}}function pi(e,t,r,n){r==null&&(r=$c(e)||0);var o=Fc(e,r,n),i=et(e,"transitionend",t);return function(){o(),i()}}function bo(e,t){const r=On(e,t)||"",n=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*n}function hi(e,t){const r=bo(e,"transitionDuration"),n=bo(e,"transitionDelay"),o=pi(e,i=>{i.target===e&&(o(),t(i))},r+n)}function mi(e){e.offsetHeight}const Eo=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Uc(e,t){const r=Eo(e),n=Eo(t);return o=>{r&&r(o),n&&n(o)}}function ot(e,t){return m.useMemo(()=>Uc(e,t),[e,t])}function vr(e){return e&&"setState"in e?bt.findDOMNode(e):e??null}const vi=m.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:o,onExited:i,addEndListener:a,children:s,childRef:c,...l},u)=>{const f=m.useRef(null),g=ot(f,c),v=A=>{g(vr(A))},h=A=>k=>{A&&f.current&&A(f.current,k)},y=m.useCallback(h(e),[e]),E=m.useCallback(h(t),[t]),S=m.useCallback(h(r),[r]),T=m.useCallback(h(n),[n]),R=m.useCallback(h(o),[o]),C=m.useCallback(h(i),[i]),p=m.useCallback(h(a),[a]);return M.jsx(Ye,{ref:u,...l,onEnter:y,onEntered:S,onEntering:E,onExit:T,onExited:C,onExiting:R,addEndListener:p,nodeRef:f,children:typeof s=="function"?(A,k)=>s(A,{...k,ref:v}):m.cloneElement(s,{ref:v})})});function Bc(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function ut(e){const t=Bc(e);return m.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function sn(){return m.useState(null)}function Tn(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const zc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Hc=typeof document<"u",gr=Hc||zc?m.useLayoutEffect:m.useEffect,Vc={[He]:"show",[Qe]:"show"},yr=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=m.useCallback((c,l)=>{mi(c),n==null||n(c,l)},[n]);return M.jsx(vi,{ref:i,addEndListener:hi,...a,onEnter:s,childRef:t.ref,children:(c,l)=>Y.cloneElement(t,{...l,className:ce("fade",e,t.props.className,Vc[c],r[c])})})});yr.displayName="Fade";function Wc(e){const t=m.useRef(e);return t.current=e,t}function gi(e){const t=Wc(e);m.useEffect(()=>()=>t.current(),[])}const cn=2**31-1;function yi(e,t,r){const n=r-Date.now();e.current=n<=cn?setTimeout(t,n):setTimeout(()=>yi(e,t,r),cn)}function Yc(){const e=Tn(),t=m.useRef();return gi(()=>clearTimeout(t.current)),m.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=cn?t.current=setTimeout(o,i):yi(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var wo=Object.prototype.hasOwnProperty;function Oo(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=Oo(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=Oo(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(wo.call(e,r)&&++n&&!wo.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 qc(e){const t=Tn();return[e[0],m.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var Ce="top",Ie="bottom",De="right",Re="left",Sn="auto",Wt=[Ce,Ie,De,Re],Et="start",Ut="end",Gc="clippingParents",bi="viewport",jt="popper",Kc="reference",xo=Wt.reduce(function(e,t){return e.concat([t+"-"+Et,t+"-"+Ut])},[]),Ei=[].concat(Wt,[Sn]).reduce(function(e,t){return e.concat([t,t+"-"+Et,t+"-"+Ut])},[]),Jc="beforeRead",Xc="read",Zc="afterRead",Qc="beforeMain",eu="main",tu="afterMain",ru="beforeWrite",nu="write",ou="afterWrite",iu=[Jc,Xc,Zc,Qc,eu,tu,ru,nu,ou];function $e(e){return e.split("-")[0]}function Ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lt(e){var t=Ae(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=Ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cn(e){if(typeof ShadowRoot>"u")return!1;var t=Ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var st=Math.max,br=Math.min,wt=Math.round;function un(){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 wi(){return!/^((?!chrome|android).)*safari/i.test(un())}function Ot(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Fe(e)&&(o=e.offsetWidth>0&&wt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wt(n.height)/e.offsetHeight||1);var a=lt(e)?Ae(e):window,s=a.visualViewport,c=!wi()&&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 Rn(e){var t=Ot(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 Oi(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function rt(e){return e?(e.nodeName||"").toLowerCase():null}function We(e){return Ae(e).getComputedStyle(e)}function au(e){return["table","td","th"].indexOf(rt(e))>=0}function it(e){return((lt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cr(e){return rt(e)==="html"?e:e.assignedSlot||e.parentNode||(Cn(e)?e.host:null)||it(e)}function To(e){return!Fe(e)||We(e).position==="fixed"?null:e.offsetParent}function su(e){var t=/firefox/i.test(un()),r=/Trident/i.test(un());if(r&&Fe(e)){var n=We(e);if(n.position==="fixed")return null}var o=Cr(e);for(Cn(o)&&(o=o.host);Fe(o)&&["html","body"].indexOf(rt(o))<0;){var i=We(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 Yt(e){for(var t=Ae(e),r=To(e);r&&au(r)&&We(r).position==="static";)r=To(r);return r&&(rt(r)==="html"||rt(r)==="body"&&We(r).position==="static")?t:r||su(e)||t}function _n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $t(e,t,r){return st(e,br(t,r))}function cu(e,t,r){var n=$t(e,t,r);return n>r?r:n}function xi(){return{top:0,right:0,bottom:0,left:0}}function Ti(e){return Object.assign({},xi(),e)}function Si(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var uu=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ti(typeof t!="number"?t:Si(t,Wt))};function lu(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=$e(r.placement),c=_n(s),l=[Re,De].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=uu(o.padding,r),g=Rn(i),v=c==="y"?Ce:Re,h=c==="y"?Ie:De,y=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],E=a[c]-r.rects.reference[c],S=Yt(i),T=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,R=y/2-E/2,C=f[v],p=T-g[u]-f[h],A=T/2-g[u]/2+R,k=$t(C,A,p),J=c;r.modifiersData[n]=(t={},t[J]=k,t.centerOffset=k-A,t)}}function fu(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)||Oi(t.elements.popper,o)&&(t.elements.arrow=o))}const du={name:"arrow",enabled:!0,phase:"main",fn:lu,effect:fu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xt(e){return e.split("-")[1]}var pu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hu(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:wt(r*o)/o||0,y:wt(n*o)/o||0}}function So(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,v=g===void 0?0:g,h=a.y,y=h===void 0?0:h,E=typeof u=="function"?u({x:v,y}):{x:v,y};v=E.x,y=E.y;var S=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),R=Re,C=Ce,p=window;if(l){var A=Yt(r),k="clientHeight",J="clientWidth";if(A===Ae(r)&&(A=it(r),We(A).position!=="static"&&s==="absolute"&&(k="scrollHeight",J="scrollWidth")),A=A,o===Ce||(o===Re||o===De)&&i===Ut){C=Ie;var Z=f&&A===p&&p.visualViewport?p.visualViewport.height:A[k];y-=Z-n.height,y*=c?1:-1}if(o===Re||(o===Ce||o===Ie)&&i===Ut){R=De;var K=f&&A===p&&p.visualViewport?p.visualViewport.width:A[J];v-=K-n.width,v*=c?1:-1}}var ie=Object.assign({position:s},l&&pu),le=u===!0?hu({x:v,y},Ae(r)):{x:v,y};if(v=le.x,y=le.y,c){var V;return Object.assign({},ie,(V={},V[C]=T?"0":"",V[R]=S?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",V))}return Object.assign({},ie,(t={},t[C]=T?y+"px":"",t[R]=S?v+"px":"",t.transform="",t))}function mu(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:$e(t.placement),variation:xt(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,So(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,So(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 vu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mu,data:{}};var rr={passive:!0};function gu(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=Ae(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 yu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gu,data:{}};var bu={left:"right",right:"left",bottom:"top",top:"bottom"};function cr(e){return e.replace(/left|right|bottom|top/g,function(t){return bu[t]})}var Eu={start:"end",end:"start"};function Co(e){return e.replace(/start|end/g,function(t){return Eu[t]})}function Pn(e){var t=Ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function An(e){return Ot(it(e)).left+Pn(e).scrollLeft}function wu(e,t){var r=Ae(e),n=it(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=wi();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+An(e),y:c}}function Ou(e){var t,r=it(e),n=Pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=st(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=st(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+An(e),c=-n.scrollTop;return We(o||r).direction==="rtl"&&(s+=st(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function Mn(e){var t=We(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ci(e){return["html","body","#document"].indexOf(rt(e))>=0?e.ownerDocument.body:Fe(e)&&Mn(e)?e:Ci(Cr(e))}function Ft(e,t){var r;t===void 0&&(t=[]);var n=Ci(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ae(n),a=o?[i].concat(i.visualViewport||[],Mn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ft(Cr(a)))}function ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xu(e,t){var r=Ot(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 Ro(e,t,r){return t===bi?ln(wu(e,r)):lt(t)?xu(t,r):ln(Ou(it(e)))}function Tu(e){var t=Ft(Cr(e)),r=["absolute","fixed"].indexOf(We(e).position)>=0,n=r&&Fe(e)?Yt(e):e;return lt(n)?t.filter(function(o){return lt(o)&&Oi(o,n)&&rt(o)!=="body"}):[]}function Su(e,t,r,n){var o=t==="clippingParents"?Tu(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(c,l){var u=Ro(e,l,n);return c.top=st(u.top,c.top),c.right=br(u.right,c.right),c.bottom=br(u.bottom,c.bottom),c.left=st(u.left,c.left),c},Ro(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 Ri(e){var t=e.reference,r=e.element,n=e.placement,o=n?$e(n):null,i=n?xt(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Ce:c={x:a,y:t.y-r.height};break;case Ie:c={x:a,y:t.y+t.height};break;case De:c={x:t.x+t.width,y:s};break;case Re: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 Et: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?Gc:s,l=r.rootBoundary,u=l===void 0?bi:l,f=r.elementContext,g=f===void 0?jt:f,v=r.altBoundary,h=v===void 0?!1:v,y=r.padding,E=y===void 0?0:y,S=Ti(typeof E!="number"?E:Si(E,Wt)),T=g===jt?Kc:jt,R=e.rects.popper,C=e.elements[h?T:g],p=Su(lt(C)?C:C.contextElement||it(e.elements.popper),c,u,a),A=Ot(e.elements.reference),k=Ri({reference:A,element:R,strategy:"absolute",placement:o}),J=ln(Object.assign({},R,k)),Z=g===jt?J:A,K={top:p.top-Z.top+S.top,bottom:Z.bottom-p.bottom+S.bottom,left:p.left-Z.left+S.left,right:Z.right-p.right+S.right},ie=e.modifiersData.offset;if(g===jt&&ie){var le=ie[o];Object.keys(K).forEach(function(V){var X=[De,Ie].indexOf(V)>=0?1:-1,Q=[Ce,Ie].indexOf(V)>=0?"y":"x";K[V]+=le[Q]*X})}return K}function Cu(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?Ei:c,u=xt(n),f=u?s?xo:xo.filter(function(h){return xt(h)===u}):Wt,g=f.filter(function(h){return l.indexOf(h)>=0});g.length===0&&(g=f);var v=g.reduce(function(h,y){return h[y]=Bt(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[$e(y)],h},{});return Object.keys(v).sort(function(h,y){return v[h]-v[y]})}function Ru(e){if($e(e)===Sn)return[];var t=cr(e);return[Co(e),t,Co(t)]}function _u(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,v=r.flipVariations,h=v===void 0?!0:v,y=r.allowedAutoPlacements,E=t.options.placement,S=$e(E),T=S===E,R=c||(T||!h?[cr(E)]:Ru(E)),C=[E].concat(R).reduce(function(j,U){return j.concat($e(U)===Sn?Cu(t,{placement:U,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:y}):U)},[]),p=t.rects.reference,A=t.rects.popper,k=new Map,J=!0,Z=C[0],K=0;K<C.length;K++){var ie=C[K],le=$e(ie),V=xt(ie)===Et,X=[Ce,Ie].indexOf(le)>=0,Q=X?"width":"height",ae=Bt(t,{placement:ie,boundary:u,rootBoundary:f,altBoundary:g,padding:l}),ue=X?V?De:Re:V?Ie:Ce;p[Q]>A[Q]&&(ue=cr(ue));var xe=cr(ue),we=[];if(i&&we.push(ae[le]<=0),s&&we.push(ae[ue]<=0,ae[xe]<=0),we.every(function(j){return j})){Z=ie,J=!1;break}k.set(ie,we)}if(J)for(var O=h?3:1,_=function(U){var N=C.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=O;L>0;L--){var $=_(L);if($==="break")break}t.placement!==Z&&(t.modifiersData[n]._skip=!0,t.placement=Z,t.reset=!0)}}const Pu={name:"flip",enabled:!0,phase:"main",fn:_u,requiresIfExists:["offset"],data:{_skip:!1}};function _o(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 Po(e){return[Ce,De,Ie,Re].some(function(t){return e[t]>=0})}function Au(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=_o(a,n),l=_o(s,o,i),u=Po(c),f=Po(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 Mu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Au};function ju(e,t,r){var n=$e(e),o=[Re,Ce].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,[Re,De].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function ku(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=Ei.reduce(function(u,f){return u[f]=ju(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 Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ku};function Iu(e){var t=e.state,r=e.name;t.modifiersData[r]=Ri({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Du={name:"popperOffsets",enabled:!0,phase:"read",fn:Iu,data:{}};function Lu(e){return e==="x"?"y":"x"}function $u(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,v=g===void 0?!0:g,h=r.tetherOffset,y=h===void 0?0:h,E=Bt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),S=$e(t.placement),T=xt(t.placement),R=!T,C=_n(S),p=Lu(C),A=t.modifiersData.popperOffsets,k=t.rects.reference,J=t.rects.popper,Z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,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,le={x:0,y:0};if(A){if(i){var V,X=C==="y"?Ce:Re,Q=C==="y"?Ie:De,ae=C==="y"?"height":"width",ue=A[C],xe=ue+E[X],we=ue-E[Q],O=v?-J[ae]/2:0,_=T===Et?k[ae]:J[ae],L=T===Et?-J[ae]:-k[ae],$=t.elements.arrow,j=v&&$?Rn($):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xi(),N=U[X],I=U[Q],D=$t(0,k[ae],j[ae]),H=R?k[ae]/2-O-D-N-K.mainAxis:_-D-N-K.mainAxis,B=R?-k[ae]/2+O+D+I+K.mainAxis:L+D+I+K.mainAxis,fe=t.elements.arrow&&Yt(t.elements.arrow),b=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,ge=(V=ie==null?void 0:ie[C])!=null?V:0,_e=ue+H-ge-b,Me=ue+B-ge,qe=$t(v?br(xe,_e):xe,ue,v?st(we,Me):we);A[C]=qe,le[C]=qe-ue}if(s){var Ct,Jt=C==="x"?Ce:Re,dt=C==="x"?Ie:De,Be=A[p],pt=p==="y"?"height":"width",ht=Be+E[Jt],Xt=Be-E[dt],Rt=[Ce,Re].indexOf(S)!==-1,_t=(Ct=ie==null?void 0:ie[p])!=null?Ct:0,Pt=Rt?ht:Be-k[pt]-J[pt]-_t+K.altAxis,Ge=Rt?Be+k[pt]+J[pt]-_t-K.altAxis:Xt,Zt=v&&Rt?cu(Pt,Be,Ge):$t(v?Pt:ht,Be,v?Ge:Xt);A[p]=Zt,le[p]=Zt-Be}t.modifiersData[n]=le}}const Fu={name:"preventOverflow",enabled:!0,phase:"main",fn:$u,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bu(e){return e===Ae(e)||!Fe(e)?Pn(e):Uu(e)}function zu(e){var t=e.getBoundingClientRect(),r=wt(t.width)/e.offsetWidth||1,n=wt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Hu(e,t,r){r===void 0&&(r=!1);var n=Fe(t),o=Fe(t)&&zu(t),i=it(t),a=Ot(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((rt(t)!=="body"||Mn(i))&&(s=Bu(t)),Fe(t)?(c=Ot(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=An(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Vu(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 Wu(e){var t=Vu(e);return iu.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Yu(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function qu(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 Ao={placement:"bottom",modifiers:[],strategy:"absolute"};function Mo(){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 Gu(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Ao:o;return function(s,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ao,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],g=!1,v={state:u,setOptions:function(S){var T=typeof S=="function"?S(u.options):S;y(),u.options=Object.assign({},i,u.options,T),u.scrollParents={reference:lt(s)?Ft(s):s.contextElement?Ft(s.contextElement):[],popper:Ft(c)};var R=Wu(qu([].concat(n,u.options.modifiers)));return u.orderedModifiers=R.filter(function(C){return C.enabled}),h(),v.update()},forceUpdate:function(){if(!g){var S=u.elements,T=S.reference,R=S.popper;if(Mo(T,R)){u.rects={reference:Hu(T,Yt(R),u.options.strategy==="fixed"),popper:Rn(R)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(K){return u.modifiersData[K.name]=Object.assign({},K.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var p=u.orderedModifiers[C],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:v})||u)}}}},update:Yu(function(){return new Promise(function(E){v.forceUpdate(),E(u)})}),destroy:function(){y(),g=!0}};if(!Mo(s,c))return v;v.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)});function h(){u.orderedModifiers.forEach(function(E){var S=E.name,T=E.options,R=T===void 0?{}:T,C=E.effect;if(typeof C=="function"){var p=C({state:u,name:S,instance:v,options:R}),A=function(){};f.push(p||A)}})}function y(){f.forEach(function(E){return E()}),f=[]}return v}}const Ku=Gu({defaultModifiers:[Mu,Du,vu,yu,Nu,Pu,Fu,du]}),Ju=["enabled","placement","strategy","modifiers"];function Xu(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 Zu={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Qu={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)}}},el=[];function _i(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:a=el}=r,s=Xu(r,Ju);const c=m.useRef(a),l=m.useRef(),u=m.useCallback(()=>{var E;(E=l.current)==null||E.update()},[]),f=m.useCallback(()=>{var E;(E=l.current)==null||E.forceUpdate()},[]),[g,v]=qc(m.useState({placement:o,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const S={},T={};Object.keys(E.elements).forEach(R=>{S[R]=E.styles[R],T[R]=E.attributes[R]}),v({state:E,styles:S,attributes:T,update:u,forceUpdate:f,placement:E.placement})}}),[u,f,v]),y=m.useMemo(()=>(Lt(c.current,a)||(c.current=a),c.current),[a]);return m.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:o,strategy:i,modifiers:[...y,h,Zu]})},[i,o,h,n,y]),m.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=Ku(e,t,Object.assign({},s,{placement:o,strategy:i,modifiers:[...y,Qu,h]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,v(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function Er(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var tl=process.env.NODE_ENV!=="production",Pi=function(){};if(tl){var rl=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{}};Pi=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||rl.apply(null,[t].concat(r))}}var nl=Pi;const jn=Or(nl),jo=()=>{};function ol(e){return e.button===0}function il(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ur=e=>e&&("current"in e?e.current:e),ko={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ai(e,t=jo,{disabled:r,clickTrigger:n="click"}={}){const o=m.useRef(!1),i=m.useRef(!1),a=m.useCallback(l=>{const u=ur(e);jn(!!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||il(l)||!ol(l)||!!Er(u,l.target)||i.current,i.current=!1},[e]),s=ut(l=>{const u=ur(e);u&&Er(u,l.target)&&(i.current=!0)}),c=ut(l=>{o.current||t(l)});m.useEffect(()=>{var l,u;if(r||e==null)return;const f=Vt(ur(e)),g=f.defaultView||window;let v=(l=g.event)!=null?l:(u=g.parent)==null?void 0:u.event,h=null;ko[n]&&(h=et(f,ko[n],s,!0));const y=et(f,n,a,!0),E=et(f,n,T=>{if(T===v){v=void 0;return}c(T)});let S=[];return"ontouchstart"in f.documentElement&&(S=[].slice.call(f.body.children).map(T=>et(T,"mousemove",jo))),()=>{h==null||h(),y(),E(),S.forEach(T=>T())}},[e,r,n,a,s,c])}function al(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function sl(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Mi({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,f,g,v;const h=al(c.modifiers);return Object.assign({},c,{placement:r,enabled:e,strategy:i?"fixed":c.strategy,modifiers:sl(Object.assign({},h,{eventListeners:{enabled:t,options:(l=h.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},h.preventOverflow,{options:a?Object.assign({padding:a},(u=h.preventOverflow)==null?void 0:u.options):(f=h.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:o},(g=h.offset)==null?void 0:g.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},(v=h.arrow)==null?void 0:v.options,{element:s})}),flip:Object.assign({enabled:!!n},h.flip)}))})}const ji=m.createContext(Sr?window:void 0);ji.Provider;function ki(){return m.useContext(ji)}const Ni=Y.createContext({}),kn=Y.forwardRef(({controlId:e,as:t="div",...r},n)=>{const o=m.useMemo(()=>({controlId:e}),[e]);return M.jsx(Ni.Provider,{value:o,children:M.jsx(t,{...r,ref:n})})});kn.displayName="FormGroup";const Nn=Y.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:o,...i},a)=>(e=tt(e,"form-floating"),M.jsxs(kn,{ref:a,className:ce(t,e),controlId:n,...i,children:[r,M.jsx("label",{htmlFor:n,children:o})]})));Nn.displayName="FloatingLabel";const Wr=(e,t)=>Sr?e==null?(t||Vt()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function fn(e,t){const r=ki(),[n,o]=m.useState(()=>Wr(e,r==null?void 0:r.document));if(!n){const i=Wr(e);i&&o(i)}return m.useEffect(()=>{},[t,n]),m.useEffect(()=>{const i=Wr(e);i!==n&&o(i)},[e,n]),n}function cl({children:e,in:t,onExited:r,mountOnEnter:n,unmountOnExit:o}){const i=m.useRef(null),a=m.useRef(t),s=ut(r);m.useEffect(()=>{t?a.current=!0:s(i.current)},[t,s]);const c=ot(i,e.ref),l=m.cloneElement(e,{ref:c});return t?l:o||!a.current&&n?null:l}function Ii(e){return e.code==="Escape"||e.keyCode===27}function ul(){const e=Y.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const ll=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function fl(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 dl(e){let{onEnter:t,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:a,addEndListener:s,children:c}=e,l=fl(e,ll);const{major:u}=ul(),f=u>=19?c.props.ref:c.ref,g=m.useRef(null),v=ot(g,typeof c=="function"?null:f),h=A=>k=>{A&&g.current&&A(g.current,k)},y=m.useCallback(h(t),[t]),E=m.useCallback(h(r),[r]),S=m.useCallback(h(n),[n]),T=m.useCallback(h(o),[o]),R=m.useCallback(h(i),[i]),C=m.useCallback(h(a),[a]),p=m.useCallback(h(s),[s]);return Object.assign({},l,{nodeRef:g},t&&{onEnter:y},r&&{onEntering:E},n&&{onEntered:S},o&&{onExit:T},i&&{onExiting:R},a&&{onExited:C},s&&{addEndListener:p},{children:typeof c=="function"?(A,k)=>c(A,Object.assign({},k,{ref:v})):m.cloneElement(c,{ref:v})})}const pl=["component"];function hl(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 ml=Y.forwardRef((e,t)=>{let{component:r}=e,n=hl(e,pl);const o=dl(n);return M.jsx(r,Object.assign({ref:t},o))});function vl({in:e,onTransition:t}){const r=m.useRef(null),n=m.useRef(!0),o=ut(t);return gr(()=>{if(!r.current)return;let i=!1;return o({in:e,element:r.current,initial:n.current,isStale:()=>i}),()=>{i=!0}},[e,o]),gr(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function gl({children:e,in:t,onExited:r,onEntered:n,transition:o}){const[i,a]=m.useState(!t);t&&i&&a(!1);const s=vl({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=ot(s,e.ref);return i&&!t?null:m.cloneElement(e,{ref:c})}function Di(e,t,r){return e?M.jsx(ml,Object.assign({},r,{component:e})):t?M.jsx(gl,Object.assign({},r,{transition:t})):M.jsx(cl,Object.assign({},r))}function dn(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const yl=()=>{};function bl(e,t,{disabled:r,clickTrigger:n}={}){const o=t||yl;Ai(e,o,{disabled:r,clickTrigger:n});const i=ut(a=>{Ii(a)&&o(a)});m.useEffect(()=>{if(r||e==null)return;const a=Vt(ur(e));let s=(a.defaultView||window).event;const c=et(a,"keyup",l=>{if(l===s){s=void 0;return}i(l)});return()=>{c()}},[e,r,i])}const Li=Y.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=sn(),[f,g]=sn(),v=ot(u,t),h=fn(e.container),y=fn(e.target),[E,S]=m.useState(!e.show),T=_i(y,l,Mi({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));e.show&&E&&S(!1);const R=(...ie)=>{S(!0),e.onExited&&e.onExited(...ie)},C=e.show||!E;if(bl(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)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:v}),{popper:T,placement:o,show:!!e.show,arrowProps:Object.assign({},T.attributes.arrow,{style:T.styles.arrow,ref:g})});return K=Di(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K,onExit:p,onExiting:A,onExited:R,onEnter:k,onEntering:J,onEntered:Z}),h?bt.createPortal(K,h):null});Li.displayName="Overlay";const $i=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=tt(t,"popover-header"),M.jsx(r,{ref:o,className:ce(e,t),...n})));$i.displayName="PopoverHeader";const In=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=tt(t,"popover-body"),M.jsx(r,{ref:o,className:ce(e,t),...n})));In.displayName="PopoverBody";function Fi(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function Ui(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const El=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=tt(e,"popover"),v=wn(),[h]=(t==null?void 0:t.split("-"))||[],y=Fi(h,v);let E=n;return l&&!s&&(E={...n,...Ui(c==null?void 0:c.strategy)}),M.jsxs("div",{ref:f,role:"tooltip",style:E,"x-placement":h,className:ce(r,g,h&&`bs-popover-${y}`),...u,children:[M.jsx("div",{className:"popover-arrow",...a}),i?M.jsx(In,{children:o}):o]})}),Bi=Object.assign(El,{Header:$i,Body:In,POPPER_OFFSET:[0,8]}),zi=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=tt(e,"tooltip");const f=wn(),[g]=(t==null?void 0:t.split("-"))||[],v=Fi(g,f);let h=n;return c&&!a&&(h={...n,...Ui(s==null?void 0:s.strategy)}),M.jsxs("div",{ref:u,style:h,role:"tooltip","x-placement":g,className:ce(r,e,`bs-tooltip-${v}`),...l,children:[M.jsx("div",{className:"tooltip-arrow",...i}),M.jsx("div",{className:`${e}-inner`,children:o})]})});zi.displayName="Tooltip";const Dn=Object.assign(zi,{TOOLTIP_OFFSET:[0,6]});function wl(e){const t=m.useRef(null),r=tt(void 0,"popover"),n=tt(void 0,"tooltip"),o=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(dn(t.current,r))return Bi.POPPER_OFFSET;if(dn(t.current,n))return Dn.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function Ol(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(vr(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(vr(o)))}const Hi=Y.forwardRef(({children:e,transition:t=yr,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...a},s)=>{const c=m.useRef({}),[l,u]=m.useState(null),[f,g]=wl(a.offset),v=ot(s,f),h=t===!0?yr:t||void 0,y=ut(E=>{u(E),r==null||r.onFirstUpdate==null||r.onFirstUpdate(E)});return gr(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),m.useEffect(()=>{i||u(null)},[i]),M.jsx(Li,{...a,ref:v,popperConfig:{...r,modifiers:g.concat(r.modifiers||[]),onFirstUpdate:y},transition:h,rootClose:n,placement:o,show:i,children:(E,{arrowProps:S,popper:T,show:R})=>{var C,p;Ol(E,S);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||(C=T.state)==null||(p=C.modifiersData.hide)==null?void 0:p.isReferenceHidden)||!1,strategy:r.strategy}),J=!!l;return typeof e=="function"?e({...E,placement:A,show:R,...!t&&R&&{className:"show"},popper:k,arrowProps:S,hasDoneInitialMeasure:J}):Y.cloneElement(e,{...E,placement:A,arrowProps:S,popper:k,hasDoneInitialMeasure:J,className:ce(e.props.className,!t&&R&&"show"),style:{...e.props.style,...E.style}})}})});Hi.displayName="Overlay";function xl(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function No(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!Er(o,i)&&e(...t)}z.oneOf(["click","hover","focus"]);const Vi=({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=m.useRef(null),g=ot(f,r.ref),v=Yc(),h=m.useRef(""),[y,E]=si(o,i,a),S=xl(s),{onFocus:T,onBlur:R,onClick:C}=typeof r!="function"?Y.Children.only(r).props:{},p=Q=>{g(vr(Q))},A=m.useCallback(()=>{if(v.clear(),h.current="show",!S.show){E(!0);return}v.set(()=>{h.current==="show"&&E(!0)},S.show)},[S.show,E,v]),k=m.useCallback(()=>{if(v.clear(),h.current="hide",!S.hide){E(!1);return}v.set(()=>{h.current==="hide"&&E(!1)},S.hide)},[S.hide,E,v]),J=m.useCallback((...Q)=>{A(),T==null||T(...Q)},[A,T]),Z=m.useCallback((...Q)=>{k(),R==null||R(...Q)},[k,R]),K=m.useCallback((...Q)=>{E(!y),C==null||C(...Q)},[C,E,y]),ie=m.useCallback((...Q)=>{No(A,Q,"fromElement")},[A]),le=m.useCallback((...Q)=>{No(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"&&jn(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=le),M.jsxs(M.Fragment,{children:[typeof r=="function"?r(X):m.cloneElement(r,X),M.jsx(Hi,{...u,show:y,onHide:k,flip:l,placement:c,popperConfig:n,target:f.current,children:t})]})},Tl=m.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Sl=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}}),Cl=m.createContext({user:null,loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}});/*! @azure/msal-common v14.10.0 2024-05-07 */const he={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Wi=[he.OPENID_SCOPE,he.PROFILE_SCOPE,he.OFFLINE_ACCESS_SCOPE];[...Wi,he.EMAIL_SCOPE];const Rl={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},_l={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."};/*! @azure/msal-common v14.10.0 2024-05-07 */class Rr extends Error{constructor(t,r,n){const o=r?`${t}: ${r}`:t;super(o),Object.setPrototypeOf(this,Rr.prototype),this.errorCode=t||he.EMPTY_STRING,this.errorMessage=r||he.EMPTY_STRING,this.subError=n||he.EMPTY_STRING,this.name="AuthError"}setCorrelationId(t){this.correlationId=t}}/*! @azure/msal-common v14.10.0 2024-05-07 */var Oe;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Oe||(Oe={}));class wr{constructor(t,r,n){this.level=Oe.Info;const o=()=>{},i=t||wr.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Oe.Info,this.correlationId=i.correlationId||he.EMPTY_STRING,this.packageName=r||he.EMPTY_STRING,this.packageVersion=n||he.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Oe.Info}}clone(t,r,n){return new wr({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},t,r)}logMessage(t,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${Oe[r.logLevel]} - ${t}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(t,r,n){this.localCallback&&this.localCallback(t,r,n)}error(t,r){this.logMessage(t,{logLevel:Oe.Error,containsPii:!1,correlationId:r||he.EMPTY_STRING})}errorPii(t,r){this.logMessage(t,{logLevel:Oe.Error,containsPii:!0,correlationId:r||he.EMPTY_STRING})}warning(t,r){this.logMessage(t,{logLevel:Oe.Warning,containsPii:!1,correlationId:r||he.EMPTY_STRING})}warningPii(t,r){this.logMessage(t,{logLevel:Oe.Warning,containsPii:!0,correlationId:r||he.EMPTY_STRING})}info(t,r){this.logMessage(t,{logLevel:Oe.Info,containsPii:!1,correlationId:r||he.EMPTY_STRING})}infoPii(t,r){this.logMessage(t,{logLevel:Oe.Info,containsPii:!0,correlationId:r||he.EMPTY_STRING})}verbose(t,r){this.logMessage(t,{logLevel:Oe.Verbose,containsPii:!1,correlationId:r||he.EMPTY_STRING})}verbosePii(t,r){this.logMessage(t,{logLevel:Oe.Verbose,containsPii:!0,correlationId:r||he.EMPTY_STRING})}trace(t,r){this.logMessage(t,{logLevel:Oe.Trace,containsPii:!1,correlationId:r||he.EMPTY_STRING})}tracePii(t,r){this.logMessage(t,{logLevel:Oe.Trace,containsPii:!0,correlationId:r||he.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-browser v3.14.0 2024-05-07 */exports.InteractionType=void 0;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(exports.InteractionType||(exports.InteractionType={}));const _r={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},Pl={React:"@azure/msal-react",Angular:"@azure/msal-angular"};/*! @azure/msal-browser v3.14.0 2024-05-07 */const Al="storage_not_supported",ye="stubbed_public_client_application_called",Ml="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.14.0 2024-05-07 */const jl={[Al]:"Given storage configuration option was not supported.",[ye]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[Ml]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class Ln extends Rr{constructor(t,r){super(t,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Ln.prototype)}}function be(e){return new Ln(e,jl[e])}/*! @azure/msal-browser v3.14.0 2024-05-07 */const kl={initialize:()=>Promise.reject(be(ye)),acquireTokenPopup:()=>Promise.reject(be(ye)),acquireTokenRedirect:()=>Promise.reject(be(ye)),acquireTokenSilent:()=>Promise.reject(be(ye)),acquireTokenByCode:()=>Promise.reject(be(ye)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(be(ye)),loginPopup:()=>Promise.reject(be(ye)),loginRedirect:()=>Promise.reject(be(ye)),logout:()=>Promise.reject(be(ye)),logoutRedirect:()=>Promise.reject(be(ye)),logoutPopup:()=>Promise.reject(be(ye)),ssoSilent:()=>Promise.reject(be(ye)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw be(ye)},getLogger:()=>{throw be(ye)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw be(ye)},hydrateCache:()=>Promise.reject(be(ye)),clearCache:()=>Promise.reject(be(ye))};function Yi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nl}=Object.prototype,{getPrototypeOf:$n}=Object,Pr=(e=>t=>{const r=Nl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ue=e=>(e=e.toLowerCase(),t=>Pr(t)===e),Ar=e=>t=>typeof t===e,{isArray:St}=Array,zt=Ar("undefined");function Il(e){return e!==null&&!zt(e)&&e.constructor!==null&&!zt(e.constructor)&&ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qi=Ue("ArrayBuffer");function Dl(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qi(e.buffer),t}const Ll=Ar("string"),ke=Ar("function"),Gi=Ar("number"),Mr=e=>e!==null&&typeof e=="object",$l=e=>e===!0||e===!1,lr=e=>{if(Pr(e)!=="object")return!1;const t=$n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Fl=Ue("Date"),Ul=Ue("File"),Bl=Ue("Blob"),zl=Ue("FileList"),Hl=e=>Mr(e)&&ke(e.pipe),Vl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ke(e.append)&&((t=Pr(e))==="formdata"||t==="object"&&ke(e.toString)&&e.toString()==="[object FormData]"))},Wl=Ue("URLSearchParams"),Yl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),St(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function Ki(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xi=e=>!zt(e)&&e!==Ji;function pn(){const{caseless:e}=Xi(this)&&this||{},t={},r=(n,o)=>{const i=e&&Ki(t,o)||o;lr(t[i])&&lr(n)?t[i]=pn(t[i],n):lr(n)?t[i]=pn({},n):St(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&qt(arguments[n],r);return t}const ql=(e,t,r,{allOwnKeys:n}={})=>(qt(t,(o,i)=>{r&&ke(o)?e[i]=Yi(o,r):e[i]=o},{allOwnKeys:n}),e),Gl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kl=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Jl=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&$n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Xl=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Zl=e=>{if(!e)return null;if(St(e))return e;let t=e.length;if(!Gi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ql=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$n(Uint8Array)),ef=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},tf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},rf=Ue("HTMLFormElement"),nf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Io=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),of=Ue("RegExp"),Zi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qt(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},af=e=>{Zi(e,(t,r)=>{if(ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sf=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return St(e)?n(e):n(String(e).split(t)),r},cf=()=>{},uf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Yr="abcdefghijklmnopqrstuvwxyz",Do="0123456789",Qi={DIGIT:Do,ALPHA:Yr,ALPHA_DIGIT:Yr+Yr.toUpperCase()+Do},lf=(e=16,t=Qi.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function ff(e){return!!(e&&ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const df=e=>{const t=new Array(10),r=(n,o)=>{if(Mr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=St(n)?[]:{};return qt(n,(a,s)=>{const c=r(a,o+1);!zt(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},pf=Ue("AsyncFunction"),hf=e=>e&&(Mr(e)||ke(e))&&ke(e.then)&&ke(e.catch),w={isArray:St,isArrayBuffer:qi,isBuffer:Il,isFormData:Vl,isArrayBufferView:Dl,isString:Ll,isNumber:Gi,isBoolean:$l,isObject:Mr,isPlainObject:lr,isUndefined:zt,isDate:Fl,isFile:Ul,isBlob:Bl,isRegExp:of,isFunction:ke,isStream:Hl,isURLSearchParams:Wl,isTypedArray:Ql,isFileList:zl,forEach:qt,merge:pn,extend:ql,trim:Yl,stripBOM:Gl,inherits:Kl,toFlatObject:Jl,kindOf:Pr,kindOfTest:Ue,endsWith:Xl,toArray:Zl,forEachEntry:ef,matchAll:tf,isHTMLForm:rf,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:Zi,freezeMethods:af,toObjectSet:sf,toCamelCase:nf,noop:cf,toFiniteNumber:uf,findKey:Ki,global:Ji,isContextDefined:Xi,ALPHABET:Qi,generateString:lf,isSpecCompliantForm:ff,toJSONObject:df,isAsyncFn:pf,isThenable:hf};function G(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}w.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ea=G.prototype,ta={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ta[e]={value:e}});Object.defineProperties(G,ta);Object.defineProperty(ea,"isAxiosError",{value:!0});G.from=(e,t,r,n,o,i)=>{const a=Object.create(ea);return w.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),G.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const mf=null;function hn(e){return w.isPlainObject(e)||w.isArray(e)}function ra(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Lo(e,t,r){return e?e.concat(t).map(function(o,i){return o=ra(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function vf(e){return w.isArray(e)&&!e.some(hn)}const gf=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function jr(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,E){return!w.isUndefined(E[y])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!c&&w.isBlob(h))throw new G("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,E){let S=h;if(h&&!E&&typeof h=="object"){if(w.endsWith(y,"{}"))y=n?y:y.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&vf(h)||(w.isFileList(h)||w.endsWith(y,"[]"))&&(S=w.toArray(h)))return y=ra(y),S.forEach(function(R,C){!(w.isUndefined(R)||R===null)&&t.append(a===!0?Lo([y],C,i):a===null?y:y+"[]",l(R))}),!1}return hn(h)?!0:(t.append(Lo(E,y,i),l(h)),!1)}const f=[],g=Object.assign(gf,{defaultVisitor:u,convertValue:l,isVisitable:hn});function v(h,y){if(!w.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(h),w.forEach(h,function(S,T){(!(w.isUndefined(S)||S===null)&&o.call(t,S,w.isString(T)?T.trim():T,y,g))===!0&&v(S,y?y.concat(T):[T])}),f.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return v(e),t}function $o(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fn(e,t){this._pairs=[],e&&jr(e,this,t)}const na=Fn.prototype;na.append=function(t,r){this._pairs.push([t,r])};na.toString=function(t){const r=t?function(n){return t.call(this,n,$o)}:$o;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function yf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oa(e,t,r){if(!t)return e;const n=r&&r.encode||yf,o=r&&r.serialize;let i;if(o?i=o(t,r):i=w.isURLSearchParams(t)?t.toString():new Fn(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ia={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bf=typeof URLSearchParams<"u"?URLSearchParams:Fn,Ef=typeof FormData<"u"?FormData:null,wf=typeof Blob<"u"?Blob:null,Of={isBrowser:!0,classes:{URLSearchParams:bf,FormData:Ef,Blob:wf},protocols:["http","https","file","blob","url","data"]},aa=typeof window<"u"&&typeof document<"u",xf=(e=>aa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Tf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aa,hasStandardBrowserEnv:xf,hasStandardBrowserWebWorkerEnv:Tf},Symbol.toStringTag,{value:"Module"})),Le={...Sf,...Of};function Cf(e,t){return jr(e,new Le.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Le.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Rf(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _f(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function sa(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&w.isArray(o)?o.length:a,c?(w.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!w.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&w.isArray(o[a])&&(o[a]=_f(o[a])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const r={};return w.forEachEntry(e,(n,o)=>{t(Rf(n),o,r,0)}),r}return null}function Pf(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Gt={transitional:ia,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(sa(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Cf(t,this.formSerializer).toString();if((s=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jr(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Pf(t)):t}],transformResponse:[function(t){const r=this.transitional||Gt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?G.from(s,G.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Gt.headers[e]={}});const Af=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mf=e=>{const t={};let r,n,o;return e&&e.split(`
229
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var b=fe(I,B,j,U,N+"."+B,r);if(b)return b}return null}return E(_)}function X(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(X);if(O===null||s(O))return!0;var _=f(O);if(_){var L=_.call(O),$;if(_!==O.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(O,_){return O==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function ae(O){var _=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":Q(_,O)?"symbol":_}function ue(O){if(typeof O>"u"||O===null)return""+O;var _=ae(O);if(_==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return _}function xe(O){var _=ue(O);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function we(O){return!O.constructor||!O.constructor.name?g:O.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},zr}var Hr,go;function Mc(){if(go)return Hr;go=1;var e=xn();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 jc=ci(),kc=!0;nn.exports=Ac()(jc.isElement,kc)}else nn.exports=Mc()();var Nc=nn.exports;const z=Or(Nc),yo={disabled:!1};var Ic=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 li=m.createContext(null);var Dc=function(t){return t.scrollTop},Dt="unmounted",Xe="exited",He="entering",Qe="entered",mr="exiting",Ye=function(e){hc(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=Xe,i.appearStatus=He):c=Qe:n.unmountOnExit||n.mountOnEnter?c=Dt:c=Xe,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Dt?{status:Xe}: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!==He&&a!==Qe&&(i=He):(a===He||a===Qe)&&(i=mr)}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===He){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:bt.findDOMNode(this);a&&Dc(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xe&&this.setState({status:Dt})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[bt.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),g=s?f.appear:f.enter;if(!o&&!a||yo.disabled){this.safeSetState({status:Qe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:He},function(){i.props.onEntering(l,u),i.onTransitionEnd(g,function(){i.safeSetState({status:Qe},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:bt.findDOMNode(this);if(!i||yo.disabled){this.safeSetState({status:Xe},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:mr},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Xe},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:bt.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===Dt)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=ai(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(li.Provider,{value:null},typeof a=="function"?a(o,s):m.cloneElement(m.Children.only(a),s))},t}(m.Component);Ye.contextType=li;Ye.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=Ic;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 yt(){}Ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yt,onEntering:yt,onEntered:yt,onExit:yt,onExiting:yt,onExited:yt};Ye.UNMOUNTED=Dt;Ye.EXITED=Xe;Ye.ENTERING=He;Ye.ENTERED=Qe;Ye.EXITING=mr;const Sr=!!(typeof window<"u"&&window.document&&window.document.createElement);var on=!1,an=!1;try{var Vr={get passive(){return on=!0},get once(){return an=on=!0}};Sr&&(window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,!0))}catch{}function fi(e,t,r,n){if(n&&typeof n!="boolean"&&!an){var o=n.once,i=n.capture,a=r;!an&&o&&(a=r.__once||function s(c){this.removeEventListener(t,s,i),r.call(this,c)},r.__once=a),e.addEventListener(t,a,on?n:i)}e.addEventListener(t,r,n)}function di(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 et(e,t,r,n){return fi(e,t,r,n),function(){di(e,t,r,n)}}function Lc(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 $c(e){var t=On(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function Fc(e,t,r){r===void 0&&(r=5);var n=!1,o=setTimeout(function(){n||Lc(e,"transitionend",!0)},t+r),i=et(e,"transitionend",function(){n=!0},{once:!0});return function(){clearTimeout(o),i()}}function pi(e,t,r,n){r==null&&(r=$c(e)||0);var o=Fc(e,r,n),i=et(e,"transitionend",t);return function(){o(),i()}}function bo(e,t){const r=On(e,t)||"",n=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*n}function hi(e,t){const r=bo(e,"transitionDuration"),n=bo(e,"transitionDelay"),o=pi(e,i=>{i.target===e&&(o(),t(i))},r+n)}function mi(e){e.offsetHeight}const Eo=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Uc(e,t){const r=Eo(e),n=Eo(t);return o=>{r&&r(o),n&&n(o)}}function ot(e,t){return m.useMemo(()=>Uc(e,t),[e,t])}function vr(e){return e&&"setState"in e?bt.findDOMNode(e):e??null}const vi=m.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:n,onExiting:o,onExited:i,addEndListener:a,children:s,childRef:c,...l},u)=>{const f=m.useRef(null),g=ot(f,c),v=A=>{g(vr(A))},h=A=>k=>{A&&f.current&&A(f.current,k)},y=m.useCallback(h(e),[e]),E=m.useCallback(h(t),[t]),S=m.useCallback(h(r),[r]),T=m.useCallback(h(n),[n]),R=m.useCallback(h(o),[o]),C=m.useCallback(h(i),[i]),p=m.useCallback(h(a),[a]);return M.jsx(Ye,{ref:u,...l,onEnter:y,onEntered:S,onEntering:E,onExit:T,onExited:C,onExiting:R,addEndListener:p,nodeRef:f,children:typeof s=="function"?(A,k)=>s(A,{...k,ref:v}):m.cloneElement(s,{ref:v})})});function Bc(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function ut(e){const t=Bc(e);return m.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function sn(){return m.useState(null)}function Tn(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const zc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Hc=typeof document<"u",gr=Hc||zc?m.useLayoutEffect:m.useEffect,Vc={[He]:"show",[Qe]:"show"},yr=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=m.useCallback((c,l)=>{mi(c),n==null||n(c,l)},[n]);return M.jsx(vi,{ref:i,addEndListener:hi,...a,onEnter:s,childRef:t.ref,children:(c,l)=>Y.cloneElement(t,{...l,className:ce("fade",e,t.props.className,Vc[c],r[c])})})});yr.displayName="Fade";function Wc(e){const t=m.useRef(e);return t.current=e,t}function gi(e){const t=Wc(e);m.useEffect(()=>()=>t.current(),[])}const cn=2**31-1;function yi(e,t,r){const n=r-Date.now();e.current=n<=cn?setTimeout(t,n):setTimeout(()=>yi(e,t,r),cn)}function Yc(){const e=Tn(),t=m.useRef();return gi(()=>clearTimeout(t.current)),m.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(o,i=0){e()&&(r(),i<=cn?t.current=setTimeout(o,i):yi(t,o,Date.now()+i))}return{set:n,clear:r,handleRef:t}},[])}var wo=Object.prototype.hasOwnProperty;function Oo(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=Oo(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=Oo(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(wo.call(e,r)&&++n&&!wo.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 qc(e){const t=Tn();return[e[0],m.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var Ce="top",Ie="bottom",De="right",Re="left",Sn="auto",Wt=[Ce,Ie,De,Re],Et="start",Ut="end",Gc="clippingParents",bi="viewport",jt="popper",Kc="reference",xo=Wt.reduce(function(e,t){return e.concat([t+"-"+Et,t+"-"+Ut])},[]),Ei=[].concat(Wt,[Sn]).reduce(function(e,t){return e.concat([t,t+"-"+Et,t+"-"+Ut])},[]),Jc="beforeRead",Xc="read",Zc="afterRead",Qc="beforeMain",eu="main",tu="afterMain",ru="beforeWrite",nu="write",ou="afterWrite",iu=[Jc,Xc,Zc,Qc,eu,tu,ru,nu,ou];function $e(e){return e.split("-")[0]}function Ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lt(e){var t=Ae(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=Ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cn(e){if(typeof ShadowRoot>"u")return!1;var t=Ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var st=Math.max,br=Math.min,wt=Math.round;function un(){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 wi(){return!/^((?!chrome|android).)*safari/i.test(un())}function Ot(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Fe(e)&&(o=e.offsetWidth>0&&wt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wt(n.height)/e.offsetHeight||1);var a=lt(e)?Ae(e):window,s=a.visualViewport,c=!wi()&&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 Rn(e){var t=Ot(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 Oi(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function rt(e){return e?(e.nodeName||"").toLowerCase():null}function We(e){return Ae(e).getComputedStyle(e)}function au(e){return["table","td","th"].indexOf(rt(e))>=0}function it(e){return((lt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cr(e){return rt(e)==="html"?e:e.assignedSlot||e.parentNode||(Cn(e)?e.host:null)||it(e)}function To(e){return!Fe(e)||We(e).position==="fixed"?null:e.offsetParent}function su(e){var t=/firefox/i.test(un()),r=/Trident/i.test(un());if(r&&Fe(e)){var n=We(e);if(n.position==="fixed")return null}var o=Cr(e);for(Cn(o)&&(o=o.host);Fe(o)&&["html","body"].indexOf(rt(o))<0;){var i=We(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 Yt(e){for(var t=Ae(e),r=To(e);r&&au(r)&&We(r).position==="static";)r=To(r);return r&&(rt(r)==="html"||rt(r)==="body"&&We(r).position==="static")?t:r||su(e)||t}function _n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $t(e,t,r){return st(e,br(t,r))}function cu(e,t,r){var n=$t(e,t,r);return n>r?r:n}function xi(){return{top:0,right:0,bottom:0,left:0}}function Ti(e){return Object.assign({},xi(),e)}function Si(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var uu=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ti(typeof t!="number"?t:Si(t,Wt))};function lu(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=$e(r.placement),c=_n(s),l=[Re,De].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=uu(o.padding,r),g=Rn(i),v=c==="y"?Ce:Re,h=c==="y"?Ie:De,y=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],E=a[c]-r.rects.reference[c],S=Yt(i),T=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,R=y/2-E/2,C=f[v],p=T-g[u]-f[h],A=T/2-g[u]/2+R,k=$t(C,A,p),J=c;r.modifiersData[n]=(t={},t[J]=k,t.centerOffset=k-A,t)}}function fu(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)||Oi(t.elements.popper,o)&&(t.elements.arrow=o))}const du={name:"arrow",enabled:!0,phase:"main",fn:lu,effect:fu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xt(e){return e.split("-")[1]}var pu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hu(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:wt(r*o)/o||0,y:wt(n*o)/o||0}}function So(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,v=g===void 0?0:g,h=a.y,y=h===void 0?0:h,E=typeof u=="function"?u({x:v,y}):{x:v,y};v=E.x,y=E.y;var S=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),R=Re,C=Ce,p=window;if(l){var A=Yt(r),k="clientHeight",J="clientWidth";if(A===Ae(r)&&(A=it(r),We(A).position!=="static"&&s==="absolute"&&(k="scrollHeight",J="scrollWidth")),A=A,o===Ce||(o===Re||o===De)&&i===Ut){C=Ie;var Z=f&&A===p&&p.visualViewport?p.visualViewport.height:A[k];y-=Z-n.height,y*=c?1:-1}if(o===Re||(o===Ce||o===Ie)&&i===Ut){R=De;var K=f&&A===p&&p.visualViewport?p.visualViewport.width:A[J];v-=K-n.width,v*=c?1:-1}}var ie=Object.assign({position:s},l&&pu),le=u===!0?hu({x:v,y},Ae(r)):{x:v,y};if(v=le.x,y=le.y,c){var V;return Object.assign({},ie,(V={},V[C]=T?"0":"",V[R]=S?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",V))}return Object.assign({},ie,(t={},t[C]=T?y+"px":"",t[R]=S?v+"px":"",t.transform="",t))}function mu(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:$e(t.placement),variation:xt(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,So(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,So(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 vu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mu,data:{}};var rr={passive:!0};function gu(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=Ae(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 yu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gu,data:{}};var bu={left:"right",right:"left",bottom:"top",top:"bottom"};function cr(e){return e.replace(/left|right|bottom|top/g,function(t){return bu[t]})}var Eu={start:"end",end:"start"};function Co(e){return e.replace(/start|end/g,function(t){return Eu[t]})}function Pn(e){var t=Ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function An(e){return Ot(it(e)).left+Pn(e).scrollLeft}function wu(e,t){var r=Ae(e),n=it(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=wi();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+An(e),y:c}}function Ou(e){var t,r=it(e),n=Pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=st(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=st(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+An(e),c=-n.scrollTop;return We(o||r).direction==="rtl"&&(s+=st(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function Mn(e){var t=We(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ci(e){return["html","body","#document"].indexOf(rt(e))>=0?e.ownerDocument.body:Fe(e)&&Mn(e)?e:Ci(Cr(e))}function Ft(e,t){var r;t===void 0&&(t=[]);var n=Ci(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ae(n),a=o?[i].concat(i.visualViewport||[],Mn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ft(Cr(a)))}function ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xu(e,t){var r=Ot(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 Ro(e,t,r){return t===bi?ln(wu(e,r)):lt(t)?xu(t,r):ln(Ou(it(e)))}function Tu(e){var t=Ft(Cr(e)),r=["absolute","fixed"].indexOf(We(e).position)>=0,n=r&&Fe(e)?Yt(e):e;return lt(n)?t.filter(function(o){return lt(o)&&Oi(o,n)&&rt(o)!=="body"}):[]}function Su(e,t,r,n){var o=t==="clippingParents"?Tu(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(c,l){var u=Ro(e,l,n);return c.top=st(u.top,c.top),c.right=br(u.right,c.right),c.bottom=br(u.bottom,c.bottom),c.left=st(u.left,c.left),c},Ro(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 Ri(e){var t=e.reference,r=e.element,n=e.placement,o=n?$e(n):null,i=n?xt(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Ce:c={x:a,y:t.y-r.height};break;case Ie:c={x:a,y:t.y+t.height};break;case De:c={x:t.x+t.width,y:s};break;case Re: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 Et: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?Gc:s,l=r.rootBoundary,u=l===void 0?bi:l,f=r.elementContext,g=f===void 0?jt:f,v=r.altBoundary,h=v===void 0?!1:v,y=r.padding,E=y===void 0?0:y,S=Ti(typeof E!="number"?E:Si(E,Wt)),T=g===jt?Kc:jt,R=e.rects.popper,C=e.elements[h?T:g],p=Su(lt(C)?C:C.contextElement||it(e.elements.popper),c,u,a),A=Ot(e.elements.reference),k=Ri({reference:A,element:R,strategy:"absolute",placement:o}),J=ln(Object.assign({},R,k)),Z=g===jt?J:A,K={top:p.top-Z.top+S.top,bottom:Z.bottom-p.bottom+S.bottom,left:p.left-Z.left+S.left,right:Z.right-p.right+S.right},ie=e.modifiersData.offset;if(g===jt&&ie){var le=ie[o];Object.keys(K).forEach(function(V){var X=[De,Ie].indexOf(V)>=0?1:-1,Q=[Ce,Ie].indexOf(V)>=0?"y":"x";K[V]+=le[Q]*X})}return K}function Cu(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?Ei:c,u=xt(n),f=u?s?xo:xo.filter(function(h){return xt(h)===u}):Wt,g=f.filter(function(h){return l.indexOf(h)>=0});g.length===0&&(g=f);var v=g.reduce(function(h,y){return h[y]=Bt(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[$e(y)],h},{});return Object.keys(v).sort(function(h,y){return v[h]-v[y]})}function Ru(e){if($e(e)===Sn)return[];var t=cr(e);return[Co(e),t,Co(t)]}function _u(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,v=r.flipVariations,h=v===void 0?!0:v,y=r.allowedAutoPlacements,E=t.options.placement,S=$e(E),T=S===E,R=c||(T||!h?[cr(E)]:Ru(E)),C=[E].concat(R).reduce(function(j,U){return j.concat($e(U)===Sn?Cu(t,{placement:U,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:y}):U)},[]),p=t.rects.reference,A=t.rects.popper,k=new Map,J=!0,Z=C[0],K=0;K<C.length;K++){var ie=C[K],le=$e(ie),V=xt(ie)===Et,X=[Ce,Ie].indexOf(le)>=0,Q=X?"width":"height",ae=Bt(t,{placement:ie,boundary:u,rootBoundary:f,altBoundary:g,padding:l}),ue=X?V?De:Re:V?Ie:Ce;p[Q]>A[Q]&&(ue=cr(ue));var xe=cr(ue),we=[];if(i&&we.push(ae[le]<=0),s&&we.push(ae[ue]<=0,ae[xe]<=0),we.every(function(j){return j})){Z=ie,J=!1;break}k.set(ie,we)}if(J)for(var O=h?3:1,_=function(U){var N=C.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=O;L>0;L--){var $=_(L);if($==="break")break}t.placement!==Z&&(t.modifiersData[n]._skip=!0,t.placement=Z,t.reset=!0)}}const Pu={name:"flip",enabled:!0,phase:"main",fn:_u,requiresIfExists:["offset"],data:{_skip:!1}};function _o(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 Po(e){return[Ce,De,Ie,Re].some(function(t){return e[t]>=0})}function Au(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=_o(a,n),l=_o(s,o,i),u=Po(c),f=Po(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 Mu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Au};function ju(e,t,r){var n=$e(e),o=[Re,Ce].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,[Re,De].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function ku(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=Ei.reduce(function(u,f){return u[f]=ju(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 Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ku};function Iu(e){var t=e.state,r=e.name;t.modifiersData[r]=Ri({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Du={name:"popperOffsets",enabled:!0,phase:"read",fn:Iu,data:{}};function Lu(e){return e==="x"?"y":"x"}function $u(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,v=g===void 0?!0:g,h=r.tetherOffset,y=h===void 0?0:h,E=Bt(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),S=$e(t.placement),T=xt(t.placement),R=!T,C=_n(S),p=Lu(C),A=t.modifiersData.popperOffsets,k=t.rects.reference,J=t.rects.popper,Z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,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,le={x:0,y:0};if(A){if(i){var V,X=C==="y"?Ce:Re,Q=C==="y"?Ie:De,ae=C==="y"?"height":"width",ue=A[C],xe=ue+E[X],we=ue-E[Q],O=v?-J[ae]/2:0,_=T===Et?k[ae]:J[ae],L=T===Et?-J[ae]:-k[ae],$=t.elements.arrow,j=v&&$?Rn($):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xi(),N=U[X],I=U[Q],D=$t(0,k[ae],j[ae]),H=R?k[ae]/2-O-D-N-K.mainAxis:_-D-N-K.mainAxis,B=R?-k[ae]/2+O+D+I+K.mainAxis:L+D+I+K.mainAxis,fe=t.elements.arrow&&Yt(t.elements.arrow),b=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,ge=(V=ie==null?void 0:ie[C])!=null?V:0,_e=ue+H-ge-b,Me=ue+B-ge,qe=$t(v?br(xe,_e):xe,ue,v?st(we,Me):we);A[C]=qe,le[C]=qe-ue}if(s){var Ct,Jt=C==="x"?Ce:Re,dt=C==="x"?Ie:De,Be=A[p],pt=p==="y"?"height":"width",ht=Be+E[Jt],Xt=Be-E[dt],Rt=[Ce,Re].indexOf(S)!==-1,_t=(Ct=ie==null?void 0:ie[p])!=null?Ct:0,Pt=Rt?ht:Be-k[pt]-J[pt]-_t+K.altAxis,Ge=Rt?Be+k[pt]+J[pt]-_t-K.altAxis:Xt,Zt=v&&Rt?cu(Pt,Be,Ge):$t(v?Pt:ht,Be,v?Ge:Xt);A[p]=Zt,le[p]=Zt-Be}t.modifiersData[n]=le}}const Fu={name:"preventOverflow",enabled:!0,phase:"main",fn:$u,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bu(e){return e===Ae(e)||!Fe(e)?Pn(e):Uu(e)}function zu(e){var t=e.getBoundingClientRect(),r=wt(t.width)/e.offsetWidth||1,n=wt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Hu(e,t,r){r===void 0&&(r=!1);var n=Fe(t),o=Fe(t)&&zu(t),i=it(t),a=Ot(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((rt(t)!=="body"||Mn(i))&&(s=Bu(t)),Fe(t)?(c=Ot(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=An(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Vu(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 Wu(e){var t=Vu(e);return iu.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Yu(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function qu(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 Ao={placement:"bottom",modifiers:[],strategy:"absolute"};function Mo(){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 Gu(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Ao:o;return function(s,c,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ao,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],g=!1,v={state:u,setOptions:function(S){var T=typeof S=="function"?S(u.options):S;y(),u.options=Object.assign({},i,u.options,T),u.scrollParents={reference:lt(s)?Ft(s):s.contextElement?Ft(s.contextElement):[],popper:Ft(c)};var R=Wu(qu([].concat(n,u.options.modifiers)));return u.orderedModifiers=R.filter(function(C){return C.enabled}),h(),v.update()},forceUpdate:function(){if(!g){var S=u.elements,T=S.reference,R=S.popper;if(Mo(T,R)){u.rects={reference:Hu(T,Yt(R),u.options.strategy==="fixed"),popper:Rn(R)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(K){return u.modifiersData[K.name]=Object.assign({},K.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var p=u.orderedModifiers[C],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:v})||u)}}}},update:Yu(function(){return new Promise(function(E){v.forceUpdate(),E(u)})}),destroy:function(){y(),g=!0}};if(!Mo(s,c))return v;v.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)});function h(){u.orderedModifiers.forEach(function(E){var S=E.name,T=E.options,R=T===void 0?{}:T,C=E.effect;if(typeof C=="function"){var p=C({state:u,name:S,instance:v,options:R}),A=function(){};f.push(p||A)}})}function y(){f.forEach(function(E){return E()}),f=[]}return v}}const Ku=Gu({defaultModifiers:[Mu,Du,vu,yu,Nu,Pu,Fu,du]}),Ju=["enabled","placement","strategy","modifiers"];function Xu(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 Zu={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Qu={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)}}},el=[];function _i(e,t,r={}){let{enabled:n=!0,placement:o="bottom",strategy:i="absolute",modifiers:a=el}=r,s=Xu(r,Ju);const c=m.useRef(a),l=m.useRef(),u=m.useCallback(()=>{var E;(E=l.current)==null||E.update()},[]),f=m.useCallback(()=>{var E;(E=l.current)==null||E.forceUpdate()},[]),[g,v]=qc(m.useState({placement:o,update:u,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const S={},T={};Object.keys(E.elements).forEach(R=>{S[R]=E.styles[R],T[R]=E.attributes[R]}),v({state:E,styles:S,attributes:T,update:u,forceUpdate:f,placement:E.placement})}}),[u,f,v]),y=m.useMemo(()=>(Lt(c.current,a)||(c.current=a),c.current),[a]);return m.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:o,strategy:i,modifiers:[...y,h,Zu]})},[i,o,h,n,y]),m.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=Ku(e,t,Object.assign({},s,{placement:o,strategy:i,modifiers:[...y,Qu,h]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,v(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function Er(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var tl=process.env.NODE_ENV!=="production",Pi=function(){};if(tl){var rl=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{}};Pi=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||rl.apply(null,[t].concat(r))}}var nl=Pi;const jn=Or(nl),jo=()=>{};function ol(e){return e.button===0}function il(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ur=e=>e&&("current"in e?e.current:e),ko={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ai(e,t=jo,{disabled:r,clickTrigger:n="click"}={}){const o=m.useRef(!1),i=m.useRef(!1),a=m.useCallback(l=>{const u=ur(e);jn(!!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||il(l)||!ol(l)||!!Er(u,l.target)||i.current,i.current=!1},[e]),s=ut(l=>{const u=ur(e);u&&Er(u,l.target)&&(i.current=!0)}),c=ut(l=>{o.current||t(l)});m.useEffect(()=>{var l,u;if(r||e==null)return;const f=Vt(ur(e)),g=f.defaultView||window;let v=(l=g.event)!=null?l:(u=g.parent)==null?void 0:u.event,h=null;ko[n]&&(h=et(f,ko[n],s,!0));const y=et(f,n,a,!0),E=et(f,n,T=>{if(T===v){v=void 0;return}c(T)});let S=[];return"ontouchstart"in f.documentElement&&(S=[].slice.call(f.body.children).map(T=>et(T,"mousemove",jo))),()=>{h==null||h(),y(),E(),S.forEach(T=>T())}},[e,r,n,a,s,c])}function al(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function sl(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Mi({enabled:e,enableEvents:t,placement:r,flip:n,offset:o,fixed:i,containerPadding:a,arrowElement:s,popperConfig:c={}}){var l,u,f,g,v;const h=al(c.modifiers);return Object.assign({},c,{placement:r,enabled:e,strategy:i?"fixed":c.strategy,modifiers:sl(Object.assign({},h,{eventListeners:{enabled:t,options:(l=h.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},h.preventOverflow,{options:a?Object.assign({padding:a},(u=h.preventOverflow)==null?void 0:u.options):(f=h.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:o},(g=h.offset)==null?void 0:g.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},(v=h.arrow)==null?void 0:v.options,{element:s})}),flip:Object.assign({enabled:!!n},h.flip)}))})}const ji=m.createContext(Sr?window:void 0);ji.Provider;function ki(){return m.useContext(ji)}const Ni=Y.createContext({}),kn=Y.forwardRef(({controlId:e,as:t="div",...r},n)=>{const o=m.useMemo(()=>({controlId:e}),[e]);return M.jsx(Ni.Provider,{value:o,children:M.jsx(t,{...r,ref:n})})});kn.displayName="FormGroup";const Nn=Y.forwardRef(({bsPrefix:e,className:t,children:r,controlId:n,label:o,...i},a)=>(e=tt(e,"form-floating"),M.jsxs(kn,{ref:a,className:ce(t,e),controlId:n,...i,children:[r,M.jsx("label",{htmlFor:n,children:o})]})));Nn.displayName="FloatingLabel";const Wr=(e,t)=>Sr?e==null?(t||Vt()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function fn(e,t){const r=ki(),[n,o]=m.useState(()=>Wr(e,r==null?void 0:r.document));if(!n){const i=Wr(e);i&&o(i)}return m.useEffect(()=>{},[t,n]),m.useEffect(()=>{const i=Wr(e);i!==n&&o(i)},[e,n]),n}function cl({children:e,in:t,onExited:r,mountOnEnter:n,unmountOnExit:o}){const i=m.useRef(null),a=m.useRef(t),s=ut(r);m.useEffect(()=>{t?a.current=!0:s(i.current)},[t,s]);const c=ot(i,e.ref),l=m.cloneElement(e,{ref:c});return t?l:o||!a.current&&n?null:l}function Ii(e){return e.code==="Escape"||e.keyCode===27}function ul(){const e=Y.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const ll=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function fl(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 dl(e){let{onEnter:t,onEntering:r,onEntered:n,onExit:o,onExiting:i,onExited:a,addEndListener:s,children:c}=e,l=fl(e,ll);const{major:u}=ul(),f=u>=19?c.props.ref:c.ref,g=m.useRef(null),v=ot(g,typeof c=="function"?null:f),h=A=>k=>{A&&g.current&&A(g.current,k)},y=m.useCallback(h(t),[t]),E=m.useCallback(h(r),[r]),S=m.useCallback(h(n),[n]),T=m.useCallback(h(o),[o]),R=m.useCallback(h(i),[i]),C=m.useCallback(h(a),[a]),p=m.useCallback(h(s),[s]);return Object.assign({},l,{nodeRef:g},t&&{onEnter:y},r&&{onEntering:E},n&&{onEntered:S},o&&{onExit:T},i&&{onExiting:R},a&&{onExited:C},s&&{addEndListener:p},{children:typeof c=="function"?(A,k)=>c(A,Object.assign({},k,{ref:v})):m.cloneElement(c,{ref:v})})}const pl=["component"];function hl(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 ml=Y.forwardRef((e,t)=>{let{component:r}=e,n=hl(e,pl);const o=dl(n);return M.jsx(r,Object.assign({ref:t},o))});function vl({in:e,onTransition:t}){const r=m.useRef(null),n=m.useRef(!0),o=ut(t);return gr(()=>{if(!r.current)return;let i=!1;return o({in:e,element:r.current,initial:n.current,isStale:()=>i}),()=>{i=!0}},[e,o]),gr(()=>(n.current=!1,()=>{n.current=!0}),[]),r}function gl({children:e,in:t,onExited:r,onEntered:n,transition:o}){const[i,a]=m.useState(!t);t&&i&&a(!1);const s=vl({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=ot(s,e.ref);return i&&!t?null:m.cloneElement(e,{ref:c})}function Di(e,t,r){return e?M.jsx(ml,Object.assign({},r,{component:e})):t?M.jsx(gl,Object.assign({},r,{transition:t})):M.jsx(cl,Object.assign({},r))}function dn(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const yl=()=>{};function bl(e,t,{disabled:r,clickTrigger:n}={}){const o=t||yl;Ai(e,o,{disabled:r,clickTrigger:n});const i=ut(a=>{Ii(a)&&o(a)});m.useEffect(()=>{if(r||e==null)return;const a=Vt(ur(e));let s=(a.defaultView||window).event;const c=et(a,"keyup",l=>{if(l===s){s=void 0;return}i(l)});return()=>{c()}},[e,r,i])}const Li=Y.forwardRef((e,t)=>{const{flip:r,offset:n,placement:o,containerPadding:i,popperConfig:a={},transition:s,runTransition:c}=e,[l,u]=sn(),[f,g]=sn(),v=ot(u,t),h=fn(e.container),y=fn(e.target),[E,S]=m.useState(!e.show),T=_i(y,l,Mi({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:r,offset:n,arrowElement:f,popperConfig:a}));e.show&&E&&S(!1);const R=(...ie)=>{S(!0),e.onExited&&e.onExited(...ie)},C=e.show||!E;if(bl(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)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:v}),{popper:T,placement:o,show:!!e.show,arrowProps:Object.assign({},T.attributes.arrow,{style:T.styles.arrow,ref:g})});return K=Di(s,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K,onExit:p,onExiting:A,onExited:R,onEnter:k,onEntering:J,onEntered:Z}),h?bt.createPortal(K,h):null});Li.displayName="Overlay";const $i=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=tt(t,"popover-header"),M.jsx(r,{ref:o,className:ce(e,t),...n})));$i.displayName="PopoverHeader";const In=Y.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},o)=>(t=tt(t,"popover-body"),M.jsx(r,{ref:o,className:ce(e,t),...n})));In.displayName="PopoverBody";function Fi(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function Ui(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const El=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=tt(e,"popover"),v=wn(),[h]=(t==null?void 0:t.split("-"))||[],y=Fi(h,v);let E=n;return l&&!s&&(E={...n,...Ui(c==null?void 0:c.strategy)}),M.jsxs("div",{ref:f,role:"tooltip",style:E,"x-placement":h,className:ce(r,g,h&&`bs-popover-${y}`),...u,children:[M.jsx("div",{className:"popover-arrow",...a}),i?M.jsx(In,{children:o}):o]})}),Bi=Object.assign(El,{Header:$i,Body:In,POPPER_OFFSET:[0,8]}),zi=Y.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:c,...l},u)=>{e=tt(e,"tooltip");const f=wn(),[g]=(t==null?void 0:t.split("-"))||[],v=Fi(g,f);let h=n;return c&&!a&&(h={...n,...Ui(s==null?void 0:s.strategy)}),M.jsxs("div",{ref:u,style:h,role:"tooltip","x-placement":g,className:ce(r,e,`bs-tooltip-${v}`),...l,children:[M.jsx("div",{className:"tooltip-arrow",...i}),M.jsx("div",{className:`${e}-inner`,children:o})]})});zi.displayName="Tooltip";const Dn=Object.assign(zi,{TOOLTIP_OFFSET:[0,6]});function wl(e){const t=m.useRef(null),r=tt(void 0,"popover"),n=tt(void 0,"tooltip"),o=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(dn(t.current,r))return Bi.POPPER_OFFSET;if(dn(t.current,n))return Dn.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[o]]}function Ol(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=o=>r(vr(o))),t.ref=n.__wrapped||(n.__wrapped=o=>n(vr(o)))}const Hi=Y.forwardRef(({children:e,transition:t=yr,popperConfig:r={},rootClose:n=!1,placement:o="top",show:i=!1,...a},s)=>{const c=m.useRef({}),[l,u]=m.useState(null),[f,g]=wl(a.offset),v=ot(s,f),h=t===!0?yr:t||void 0,y=ut(E=>{u(E),r==null||r.onFirstUpdate==null||r.onFirstUpdate(E)});return gr(()=>{l&&a.target&&(c.current.scheduleUpdate==null||c.current.scheduleUpdate())},[l,a.target]),m.useEffect(()=>{i||u(null)},[i]),M.jsx(Li,{...a,ref:v,popperConfig:{...r,modifiers:g.concat(r.modifiers||[]),onFirstUpdate:y},transition:h,rootClose:n,placement:o,show:i,children:(E,{arrowProps:S,popper:T,show:R})=>{var C,p;Ol(E,S);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||(C=T.state)==null||(p=C.modifiersData.hide)==null?void 0:p.isReferenceHidden)||!1,strategy:r.strategy}),J=!!l;return typeof e=="function"?e({...E,placement:A,show:R,...!t&&R&&{className:"show"},popper:k,arrowProps:S,hasDoneInitialMeasure:J}):Y.cloneElement(e,{...E,placement:A,arrowProps:S,popper:k,hasDoneInitialMeasure:J,className:ce(e.props.className,!t&&R&&"show"),style:{...e.props.style,...E.style}})}})});Hi.displayName="Overlay";function xl(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function No(e,t,r){const[n]=t,o=n.currentTarget,i=n.relatedTarget||n.nativeEvent[r];(!i||i!==o)&&!Er(o,i)&&e(...t)}z.oneOf(["click","hover","focus"]);const Vi=({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=m.useRef(null),g=ot(f,r.ref),v=Yc(),h=m.useRef(""),[y,E]=si(o,i,a),S=xl(s),{onFocus:T,onBlur:R,onClick:C}=typeof r!="function"?Y.Children.only(r).props:{},p=Q=>{g(vr(Q))},A=m.useCallback(()=>{if(v.clear(),h.current="show",!S.show){E(!0);return}v.set(()=>{h.current==="show"&&E(!0)},S.show)},[S.show,E,v]),k=m.useCallback(()=>{if(v.clear(),h.current="hide",!S.hide){E(!1);return}v.set(()=>{h.current==="hide"&&E(!1)},S.hide)},[S.hide,E,v]),J=m.useCallback((...Q)=>{A(),T==null||T(...Q)},[A,T]),Z=m.useCallback((...Q)=>{k(),R==null||R(...Q)},[k,R]),K=m.useCallback((...Q)=>{E(!y),C==null||C(...Q)},[C,E,y]),ie=m.useCallback((...Q)=>{No(A,Q,"fromElement")},[A]),le=m.useCallback((...Q)=>{No(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"&&jn(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=le),M.jsxs(M.Fragment,{children:[typeof r=="function"?r(X):m.cloneElement(r,X),M.jsx(Hi,{...u,show:y,onHide:k,flip:l,placement:c,popperConfig:n,target:f.current,children:t})]})},Tl=m.createContext({show:!1,text:"",showConfirm:e=>{},hideConfirm:()=>{}}),Sl=m.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}}),Cl=m.createContext({user:null,loggingInProgress:!1,loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}});/*! @azure/msal-common v14.10.0 2024-05-07 */const he={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Wi=[he.OPENID_SCOPE,he.PROFILE_SCOPE,he.OFFLINE_ACCESS_SCOPE];[...Wi,he.EMAIL_SCOPE];const Rl={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},_l={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."};/*! @azure/msal-common v14.10.0 2024-05-07 */class Rr extends Error{constructor(t,r,n){const o=r?`${t}: ${r}`:t;super(o),Object.setPrototypeOf(this,Rr.prototype),this.errorCode=t||he.EMPTY_STRING,this.errorMessage=r||he.EMPTY_STRING,this.subError=n||he.EMPTY_STRING,this.name="AuthError"}setCorrelationId(t){this.correlationId=t}}/*! @azure/msal-common v14.10.0 2024-05-07 */var Oe;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Oe||(Oe={}));class wr{constructor(t,r,n){this.level=Oe.Info;const o=()=>{},i=t||wr.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Oe.Info,this.correlationId=i.correlationId||he.EMPTY_STRING,this.packageName=r||he.EMPTY_STRING,this.packageVersion=n||he.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Oe.Info}}clone(t,r,n){return new wr({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},t,r)}logMessage(t,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${Oe[r.logLevel]} - ${t}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(t,r,n){this.localCallback&&this.localCallback(t,r,n)}error(t,r){this.logMessage(t,{logLevel:Oe.Error,containsPii:!1,correlationId:r||he.EMPTY_STRING})}errorPii(t,r){this.logMessage(t,{logLevel:Oe.Error,containsPii:!0,correlationId:r||he.EMPTY_STRING})}warning(t,r){this.logMessage(t,{logLevel:Oe.Warning,containsPii:!1,correlationId:r||he.EMPTY_STRING})}warningPii(t,r){this.logMessage(t,{logLevel:Oe.Warning,containsPii:!0,correlationId:r||he.EMPTY_STRING})}info(t,r){this.logMessage(t,{logLevel:Oe.Info,containsPii:!1,correlationId:r||he.EMPTY_STRING})}infoPii(t,r){this.logMessage(t,{logLevel:Oe.Info,containsPii:!0,correlationId:r||he.EMPTY_STRING})}verbose(t,r){this.logMessage(t,{logLevel:Oe.Verbose,containsPii:!1,correlationId:r||he.EMPTY_STRING})}verbosePii(t,r){this.logMessage(t,{logLevel:Oe.Verbose,containsPii:!0,correlationId:r||he.EMPTY_STRING})}trace(t,r){this.logMessage(t,{logLevel:Oe.Trace,containsPii:!1,correlationId:r||he.EMPTY_STRING})}tracePii(t,r){this.logMessage(t,{logLevel:Oe.Trace,containsPii:!0,correlationId:r||he.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-browser v3.14.0 2024-05-07 */exports.InteractionType=void 0;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(exports.InteractionType||(exports.InteractionType={}));const _r={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},Pl={React:"@azure/msal-react",Angular:"@azure/msal-angular"};/*! @azure/msal-browser v3.14.0 2024-05-07 */const Al="storage_not_supported",ye="stubbed_public_client_application_called",Ml="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.14.0 2024-05-07 */const jl={[Al]:"Given storage configuration option was not supported.",[ye]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[Ml]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class Ln extends Rr{constructor(t,r){super(t,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Ln.prototype)}}function be(e){return new Ln(e,jl[e])}/*! @azure/msal-browser v3.14.0 2024-05-07 */const kl={initialize:()=>Promise.reject(be(ye)),acquireTokenPopup:()=>Promise.reject(be(ye)),acquireTokenRedirect:()=>Promise.reject(be(ye)),acquireTokenSilent:()=>Promise.reject(be(ye)),acquireTokenByCode:()=>Promise.reject(be(ye)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(be(ye)),loginPopup:()=>Promise.reject(be(ye)),loginRedirect:()=>Promise.reject(be(ye)),logout:()=>Promise.reject(be(ye)),logoutRedirect:()=>Promise.reject(be(ye)),logoutPopup:()=>Promise.reject(be(ye)),ssoSilent:()=>Promise.reject(be(ye)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw be(ye)},getLogger:()=>{throw be(ye)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw be(ye)},hydrateCache:()=>Promise.reject(be(ye)),clearCache:()=>Promise.reject(be(ye))};function Yi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nl}=Object.prototype,{getPrototypeOf:$n}=Object,Pr=(e=>t=>{const r=Nl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ue=e=>(e=e.toLowerCase(),t=>Pr(t)===e),Ar=e=>t=>typeof t===e,{isArray:St}=Array,zt=Ar("undefined");function Il(e){return e!==null&&!zt(e)&&e.constructor!==null&&!zt(e.constructor)&&ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qi=Ue("ArrayBuffer");function Dl(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qi(e.buffer),t}const Ll=Ar("string"),ke=Ar("function"),Gi=Ar("number"),Mr=e=>e!==null&&typeof e=="object",$l=e=>e===!0||e===!1,lr=e=>{if(Pr(e)!=="object")return!1;const t=$n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Fl=Ue("Date"),Ul=Ue("File"),Bl=Ue("Blob"),zl=Ue("FileList"),Hl=e=>Mr(e)&&ke(e.pipe),Vl=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ke(e.append)&&((t=Pr(e))==="formdata"||t==="object"&&ke(e.toString)&&e.toString()==="[object FormData]"))},Wl=Ue("URLSearchParams"),Yl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),St(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function Ki(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xi=e=>!zt(e)&&e!==Ji;function pn(){const{caseless:e}=Xi(this)&&this||{},t={},r=(n,o)=>{const i=e&&Ki(t,o)||o;lr(t[i])&&lr(n)?t[i]=pn(t[i],n):lr(n)?t[i]=pn({},n):St(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&qt(arguments[n],r);return t}const ql=(e,t,r,{allOwnKeys:n}={})=>(qt(t,(o,i)=>{r&&ke(o)?e[i]=Yi(o,r):e[i]=o},{allOwnKeys:n}),e),Gl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kl=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Jl=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&$n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Xl=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Zl=e=>{if(!e)return null;if(St(e))return e;let t=e.length;if(!Gi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ql=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$n(Uint8Array)),ef=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},tf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},rf=Ue("HTMLFormElement"),nf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Io=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),of=Ue("RegExp"),Zi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qt(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},af=e=>{Zi(e,(t,r)=>{if(ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sf=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return St(e)?n(e):n(String(e).split(t)),r},cf=()=>{},uf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Yr="abcdefghijklmnopqrstuvwxyz",Do="0123456789",Qi={DIGIT:Do,ALPHA:Yr,ALPHA_DIGIT:Yr+Yr.toUpperCase()+Do},lf=(e=16,t=Qi.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function ff(e){return!!(e&&ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const df=e=>{const t=new Array(10),r=(n,o)=>{if(Mr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=St(n)?[]:{};return qt(n,(a,s)=>{const c=r(a,o+1);!zt(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},pf=Ue("AsyncFunction"),hf=e=>e&&(Mr(e)||ke(e))&&ke(e.then)&&ke(e.catch),w={isArray:St,isArrayBuffer:qi,isBuffer:Il,isFormData:Vl,isArrayBufferView:Dl,isString:Ll,isNumber:Gi,isBoolean:$l,isObject:Mr,isPlainObject:lr,isUndefined:zt,isDate:Fl,isFile:Ul,isBlob:Bl,isRegExp:of,isFunction:ke,isStream:Hl,isURLSearchParams:Wl,isTypedArray:Ql,isFileList:zl,forEach:qt,merge:pn,extend:ql,trim:Yl,stripBOM:Gl,inherits:Kl,toFlatObject:Jl,kindOf:Pr,kindOfTest:Ue,endsWith:Xl,toArray:Zl,forEachEntry:ef,matchAll:tf,isHTMLForm:rf,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:Zi,freezeMethods:af,toObjectSet:sf,toCamelCase:nf,noop:cf,toFiniteNumber:uf,findKey:Ki,global:Ji,isContextDefined:Xi,ALPHABET:Qi,generateString:lf,isSpecCompliantForm:ff,toJSONObject:df,isAsyncFn:pf,isThenable:hf};function G(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}w.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ea=G.prototype,ta={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ta[e]={value:e}});Object.defineProperties(G,ta);Object.defineProperty(ea,"isAxiosError",{value:!0});G.from=(e,t,r,n,o,i)=>{const a=Object.create(ea);return w.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),G.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const mf=null;function hn(e){return w.isPlainObject(e)||w.isArray(e)}function ra(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Lo(e,t,r){return e?e.concat(t).map(function(o,i){return o=ra(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function vf(e){return w.isArray(e)&&!e.some(hn)}const gf=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function jr(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,E){return!w.isUndefined(E[y])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!c&&w.isBlob(h))throw new G("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,E){let S=h;if(h&&!E&&typeof h=="object"){if(w.endsWith(y,"{}"))y=n?y:y.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&vf(h)||(w.isFileList(h)||w.endsWith(y,"[]"))&&(S=w.toArray(h)))return y=ra(y),S.forEach(function(R,C){!(w.isUndefined(R)||R===null)&&t.append(a===!0?Lo([y],C,i):a===null?y:y+"[]",l(R))}),!1}return hn(h)?!0:(t.append(Lo(E,y,i),l(h)),!1)}const f=[],g=Object.assign(gf,{defaultVisitor:u,convertValue:l,isVisitable:hn});function v(h,y){if(!w.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(h),w.forEach(h,function(S,T){(!(w.isUndefined(S)||S===null)&&o.call(t,S,w.isString(T)?T.trim():T,y,g))===!0&&v(S,y?y.concat(T):[T])}),f.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return v(e),t}function $o(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fn(e,t){this._pairs=[],e&&jr(e,this,t)}const na=Fn.prototype;na.append=function(t,r){this._pairs.push([t,r])};na.toString=function(t){const r=t?function(n){return t.call(this,n,$o)}:$o;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function yf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oa(e,t,r){if(!t)return e;const n=r&&r.encode||yf,o=r&&r.serialize;let i;if(o?i=o(t,r):i=w.isURLSearchParams(t)?t.toString():new Fn(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ia={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bf=typeof URLSearchParams<"u"?URLSearchParams:Fn,Ef=typeof FormData<"u"?FormData:null,wf=typeof Blob<"u"?Blob:null,Of={isBrowser:!0,classes:{URLSearchParams:bf,FormData:Ef,Blob:wf},protocols:["http","https","file","blob","url","data"]},aa=typeof window<"u"&&typeof document<"u",xf=(e=>aa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Tf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aa,hasStandardBrowserEnv:xf,hasStandardBrowserWebWorkerEnv:Tf},Symbol.toStringTag,{value:"Module"})),Le={...Sf,...Of};function Cf(e,t){return jr(e,new Le.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Le.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Rf(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _f(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function sa(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&w.isArray(o)?o.length:a,c?(w.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!w.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&w.isArray(o[a])&&(o[a]=_f(o[a])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const r={};return w.forEachEntry(e,(n,o)=>{t(Rf(n),o,r,0)}),r}return null}function Pf(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Gt={transitional:ia,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(sa(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Cf(t,this.formSerializer).toString();if((s=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jr(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Pf(t)):t}],transformResponse:[function(t){const r=this.transitional||Gt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?G.from(s,G.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Gt.headers[e]={}});const Af=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mf=e=>{const t={};let r,n,o;return e&&e.split(`
230
230
  `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&Af[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Uo=Symbol("internals");function kt(e){return e&&String(e).trim().toLowerCase()}function fr(e){return e===!1||e==null?e:w.isArray(e)?e.map(fr):String(e)}function jf(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const kf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qr(e,t,r,n,o){if(w.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!w.isString(t)){if(w.isString(n))return t.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(t)}}function Nf(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function If(e,t){const r=w.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class Ne{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,c,l){const u=kt(c);if(!u)throw new Error("header name must be a non-empty string");const f=w.findKey(o,u);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=fr(s))}const a=(s,c)=>w.forEach(s,(l,u)=>i(l,u,c));return w.isPlainObject(t)||t instanceof this.constructor?a(t,r):w.isString(t)&&(t=t.trim())&&!kf(t)?a(Mf(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=kt(t),t){const n=w.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return jf(o);if(w.isFunction(r))return r.call(this,o,n);if(w.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=kt(t),t){const n=w.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||qr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=kt(a),a){const s=w.findKey(n,a);s&&(!r||qr(n,n[s],s,r))&&(delete n[s],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||qr(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return w.forEach(this,(o,i)=>{const a=w.findKey(n,i);if(a){r[a]=fr(o),delete r[i];return}const s=t?Nf(i):String(i).trim();s!==i&&delete r[i],r[s]=fr(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&w.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
231
231
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Uo]=this[Uo]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=kt(a);n[s]||(If(o,a),n[s]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}}Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});w.freezeMethods(Ne);function Gr(e,t){const r=this||Gt,n=t||r,o=Ne.from(n.headers);let i=n.data;return w.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ca(e){return!!(e&&e.__CANCEL__)}function Kt(e,t,r){G.call(this,e??"canceled",G.ERR_CANCELED,t,r),this.name="CanceledError"}w.inherits(Kt,G,{__CANCEL__:!0});function Df(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Lf=Le.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];w.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),w.isString(n)&&a.push("path="+n),w.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $f(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ff(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ua(e,t){return e&&!$f(t)?Ff(e,t):t}const Uf=Le.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=w.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Bf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zf(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,g=0;for(;f!==o;)g+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const v=u&&l-u;return v?Math.round(g*1e3/v):void 0}}function Bo(e,t){let r=0;const n=zf(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s),l=i<=a;r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Hf=typeof XMLHttpRequest<"u",Vf=Hf&&function(e){return new Promise(function(r,n){let o=e.data;const i=Ne.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(w.isFormData(o)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[y,...E]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([y||"multipart/form-data",...E].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+E))}const g=ua(e.baseURL,e.url);f.open(e.method.toUpperCase(),oa(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function v(){if(!f)return;const y=Ne.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};Df(function(R){r(R),l()},function(R){n(R),l()},S),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new G("Request aborted",G.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||ia;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),n(new G(E,S.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,f)),f=null},Le.hasStandardBrowserEnv&&(s&&w.isFunction(s)&&(s=s(e)),s||s!==!1&&Uf(g))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&Lf.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&w.forEach(i.toJSON(),function(E,S){f.setRequestHeader(S,E)}),w.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Bo(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Bo(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{f&&(n(!y||y.type?new Kt(null,e,f):y),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const h=Bf(g);if(h&&Le.protocols.indexOf(h)===-1){n(new G("Unsupported protocol "+h+":",G.ERR_BAD_REQUEST,e));return}f.send(o||null)})},mn={http:mf,xhr:Vf};w.forEach(mn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zo=e=>`- ${e}`,Wf=e=>w.isFunction(e)||e===null||e===!1,la={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Wf(r)&&(n=mn[(a=String(r)).toLowerCase()],n===void 0))throw new G(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
232
232
  `+i.map(zo).join(`
@@ -250,4 +250,4 @@ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var b=fe(I,B,j,U,N+"."+B
250
250
  *
251
251
  * This source code is licensed under the MIT license found in the
252
252
  * LICENSE file in the root directory of this source tree.
253
- */var Go;function cd(){return Go||(Go=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function R(b){return typeof b=="string"||typeof b=="function"||b===n||b===l||b===i||b===o||b===f||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===v||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===E||b.$$typeof===S||b.$$typeof===T||b.$$typeof===y)}function C(b){if(typeof b=="object"&&b!==null){var ge=b.$$typeof;switch(ge){case t:var _e=b.type;switch(_e){case c:case l:case n:case i:case o:case f:return _e;default:var Me=_e&&_e.$$typeof;switch(Me){case s:case u:case h:case v:case a:return Me;default:return ge}}case r:return ge}}}var p=c,A=l,k=s,J=a,Z=t,K=u,ie=n,le=h,V=v,X=r,Q=i,ae=o,ue=f,xe=!1;function we(b){return xe||(xe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(b)||C(b)===c}function O(b){return C(b)===l}function _(b){return C(b)===s}function L(b){return C(b)===a}function $(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function j(b){return C(b)===u}function U(b){return C(b)===n}function N(b){return C(b)===h}function I(b){return C(b)===v}function D(b){return C(b)===r}function H(b){return C(b)===i}function B(b){return C(b)===o}function fe(b){return C(b)===f}oe.AsyncMode=p,oe.ConcurrentMode=A,oe.ContextConsumer=k,oe.ContextProvider=J,oe.Element=Z,oe.ForwardRef=K,oe.Fragment=ie,oe.Lazy=le,oe.Memo=V,oe.Portal=X,oe.Profiler=Q,oe.StrictMode=ae,oe.Suspense=ue,oe.isAsyncMode=we,oe.isConcurrentMode=O,oe.isContextConsumer=_,oe.isContextProvider=L,oe.isElement=$,oe.isForwardRef=j,oe.isFragment=U,oe.isLazy=N,oe.isMemo=I,oe.isPortal=D,oe.isProfiler=H,oe.isStrictMode=B,oe.isSuspense=fe,oe.isValidElementType=R,oe.typeOf=C}()),oe}process.env.NODE_ENV==="production"?yn.exports=sd():yn.exports=cd();var ud=yn.exports,ha=ud,ld={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ma={};ma[ha.ForwardRef]=ld;ma[ha.Memo]=fd;function dd(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function zn(e){const t=m.useContext(ad);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=m.useState(()=>t.getAll({doNotUpdate:!0}));dd()&&m.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});pd(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=m.useMemo(()=>t.set.bind(t),[t]),i=m.useMemo(()=>t.remove.bind(t),[t]),a=m.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function pd(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}const hd=()=>{const{axiosInstance:e,cookieDomain:t}=m.useContext(En),[,r,n]=zn(["Authorization"]),o=m.useCallback(()=>localStorage.getItem("token")??null,[]),i=m.useCallback(()=>{const c=o();return c!==null&&c.length>0},[o]),a=m.useCallback(async(c,l)=>e.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),r("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:qa(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[e,r,t]),s=m.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),n("Authorization")},[n]);return{isAuthenticated:i,login:a,logout:s,getToken:o}};/*! @azure/msal-react v2.0.16 2024-05-07 */const md={instance:kl,inProgress:_r.None,accounts:[],logger:new wr({})},Hn=Y.createContext(md);Hn.Consumer;/*! @azure/msal-react v2.0.16 2024-05-07 */function vd(e,t){return typeof e=="function"?e(t):e}function gd(e,t){if(e.length!==t.length)return!1;const r=[...t];return e.every(n=>{const o=r.shift();return!n||!o?!1:n.homeAccountId===o.homeAccountId&&n.localAccountId===o.localAccountId&&n.username===o.username})}function va(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter(n=>!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId.toLowerCase()!==n.homeAccountId.toLowerCase()||t.localAccountId&&t.localAccountId.toLowerCase()!==n.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.16 2024-05-07 */const Vn=()=>m.useContext(Hn);/*! @azure/msal-react v2.0.16 2024-05-07 */function yd(e,t){return t&&(t.username||t.homeAccountId||t.localAccountId)?!!va(e,t):e.length>0}function ga(e){const{accounts:t,inProgress:r}=Vn();return m.useMemo(()=>r===_r.Startup?!1:yd(t,e),[t,r,e])}const bd=()=>{const[,,e]=zn(["Authorization"]),{storedToken:t,msalScopes:r}=m.useContext(Wn),{instance:n,inProgress:o}=Vn(),i=ga(),a=m.useCallback(()=>t,[t]),s=m.useCallback(()=>i,[i]),c=m.useCallback(async()=>n.loginRedirect({scopes:r}).then(()=>"").catch(()=>null),[n,r]),l=m.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:s,isAuthenticating:!i&&o!==_r.None,login:c,logout:l,getToken:a}},ya=()=>{const{useMsal:e}=m.useContext(Wn),t=hd(),r=bd();return{isAuthenticated:e?r.isAuthenticated:t.isAuthenticated,isAuthenticating:e?r.isAuthenticating:!1,getToken:e?r.getToken:t.getToken,login:e?r.login:t.login,logout:e?r.logout:t.logout}};let or;const Ed=new Uint8Array(16);function wd(){if(!or&&(or=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!or))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return or(Ed)}const Ee=[];for(let e=0;e<256;++e)Ee.push((e+256).toString(16).slice(1));function Od(e,t=0){return Ee[e[t+0]]+Ee[e[t+1]]+Ee[e[t+2]]+Ee[e[t+3]]+"-"+Ee[e[t+4]]+Ee[e[t+5]]+"-"+Ee[e[t+6]]+Ee[e[t+7]]+"-"+Ee[e[t+8]]+Ee[e[t+9]]+"-"+Ee[e[t+10]]+Ee[e[t+11]]+Ee[e[t+12]]+Ee[e[t+13]]+Ee[e[t+14]]+Ee[e[t+15]]}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ko={randomUUID:xd};function Td(e,t,r){if(Ko.randomUUID&&!t&&!e)return Ko.randomUUID();e=e||{};const n=e.random||(e.rng||wd)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Od(n)}const Sd="_toast_1s57i_1",Nt={toast:Sd},Cd=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},ba=()=>({addNotification:(t,r)=>{const n=Td(),o=bn.truncateText(t),i=Cd(r),a=M.jsxs(M.Fragment,{children:[o,M.jsx(ri,{onClick:()=>gt.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(r){case"success":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(vs,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",Nt.toast)});break}case"danger":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(us,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",Nt.toast)});break}case"warning":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(os,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",Nt.toast)});break}case"info":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(ss,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",Nt.toast)});break}case"prompt":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(cs,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",Nt.toast)});break}}}}),Rd=de.CancelToken,_d=e=>{const{authenticated:t=!0,differentBaseUrl:r,silent:n=!1}={...e},{axiosInstance:o,language:i,axiosTexts:a}=m.useContext(En),{addNotification:s}=ba(),{getToken:c}=ya();return m.useEffect(()=>{r&&(o.defaults.baseURL=r),o.interceptors.request.clear(),o.interceptors.response.clear();const l=o.interceptors.request.use(f=>{var g,v,h;return t&&!f.headers.Authorization&&(f.headers.Authorization=`Bearer ${c()}`),(g=f.url)!=null&&g.includes("culture=")?f.url=(v=f.url)==null?void 0:v.replace(/culture=[a-z]{2}/,`culture=${i}`):f.url=`${f.url}${(h=f.url)!=null&&h.includes("?")?"&":"?"}culture=${i}`,f},f=>Promise.reject(f)),u=o.interceptors.response.use(f=>f,f=>{if(de.isCancel(f))return Promise.reject(f);const g=bn.extractErrorsFromResponse(f);if(g.length>0){const v=g.find(h=>h.name.toLowerCase()==="others");return v?(!n&&s(v.errors,"danger"),Promise.reject(f)):(!n&&s(a.validationError,"warning"),Promise.reject(f))}return f.message&&f.message==="Network Error"?(!n&&s(a.networkError,"danger"),Promise.reject(f)):(de.isCancel(f)||!n&&s(a.unexpectedError,"danger"),Promise.reject(f))});return()=>{o.interceptors.request.eject(l),o.interceptors.response.eject(u)}},[o,s,i,c,t,a,r,n]),o},Wn=m.createContext({useMsal:!1,storedToken:null,msalInstance:null,msalScopes:[]}),Pd="_h1_14r4v_1",Ad="_h3_14r4v_8",Md="_h6_14r4v_15",jd="_subtitle_14r4v_22",kd="_body_14r4v_29",Nd="_body2_14r4v_36",Id="_caption_14r4v_43",Dd="_form-label_14r4v_50",Je={h1:Pd,h3:Ad,h6:Md,subtitle:jd,body:kd,body2:Nd,caption:Id,"form-label":"_form-label_14r4v_50",formLabel:Dd},Ld=({variant:e,className:t,children:r})=>{switch(e){case"h1":return M.jsx("h1",{className:ce("luminus-text-primary luminus-h1",Je.h1,t),children:r});case"h3":return M.jsx("h3",{className:ce("luminus-text luminus-h3",Je.h3,t),children:r});case"h6":return M.jsx("h6",{className:ce("luminus-text luminus-h6",Je.h6,t),children:r});case"subtitle":return M.jsx("div",{className:ce("luminus-text luminus-subtitle",Je.subtitle,t),children:r});case"body":return M.jsx("div",{className:ce("luminus-text luminus-body",Je.body,t),children:r});case"body2":return M.jsx("div",{className:ce("luminus-text luminus-body2",Je.body2,t),children:r});case"caption":return M.jsx("div",{className:ce("luminus-text-muted luminus-caption",Je.caption,t),children:r});case"form-label":return M.jsx("div",{className:ce("luminus-text luminus-form-label",Je.formLabel,t),children:r});default:return M.jsx(M.Fragment,{children:r})}},Ea=({variant:e,className:t,children:r})=>M.jsx(Ld,{variant:e,className:t,children:r}),$d="_button_qhwih_1",Fd={button:$d},Ud=m.forwardRef(({color:e="primary",icon:t=M.jsx(ys,{size:21}),text:r,onClick:n,className:o,children:i,...a},s)=>M.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),n(c)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${e} ${o??""}`,Fd.button),...a,children:[t,r]})),Bd="_avatar-icon_1axl6_1",zd={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:Bd},wa=({name:e,fontSize:t,size:r})=>{const n=o=>{let i=0,a;for(a=0;a<o.length;a+=1)i=o.charCodeAt(a)+((i<<5)-i);let s="#";for(a=0;a<3;a+=1){const c=i>>a*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return M.jsx(Vi,{placement:"bottom",overlay:M.jsx(Dn,{children:e}),children:M.jsx("div",{className:ce("luminus-avatar-icon",zd.avatarIcon),style:{backgroundColor:n(e),fontSize:t??void 0,height:r??void 0,width:r??void 0},children:M.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},Hd=m.forwardRef(({userName:e,onClick:t,children:r},n)=>M.jsxs("button",{type:"button",ref:n,onClick:o=>{o.preventDefault(),t(o)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[M.jsx(wa,{name:e}),r]})),Vd="_floating-label_kujtw_1",Wd="_without-label_kujtw_21",Jo={"floating-label":"_floating-label_kujtw_1",floatingLabel:Vd,"without-label":"_without-label_kujtw_21",withoutLabel:Wd},Oa=m.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,isForCheckInput:a,...s},c)=>a?M.jsx(M.Fragment,{children:t}):M.jsx(Nn,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ce(`luminus-floating-label ${r??""}`,Jo.floatingLabel,{[i??""]:i},{[Jo.withoutLabel]:s.withoutLabel}),children:t}));Oa.displayName="FloatingLabelInput";const Yd="_row-label-input_1p53y_1",qd="_label_1p53y_4",Gd="_input-container_1p53y_9",Kd="_invalid-feedback_1p53y_100",Jd="_keep-check-label_1p53y_132",Xd="_is-invalid_1p53y_135",It={"row-label-input":"_row-label-input_1p53y_1",rowLabelInput:Yd,label:qd,"input-container":"_input-container_1p53y_9",inputContainer:Gd,"invalid-feedback":"_invalid-feedback_1p53y_100",invalidFeedback:Kd,"keep-check-label":"_keep-check-label_1p53y_132",keepCheckLabel:Jd,"is-invalid":"_is-invalid_1p53y_135",isInvalid:Xd},xa=m.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,...a},s)=>M.jsxs("div",{ref:s,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":n},{[It.isInvalid]:n},{[r??""]:r},{"d-none":e},It.rowLabelInput),children:[!a.withoutLabel&&M.jsx("label",{className:ce("label col-6",It.label),children:M.jsx(Ea,{variant:"form-label",className:n?"text-danger":"",children:a.label})}),M.jsx("div",{className:ce("input-container",It.inputContainer,{"col-6":!a.withoutLabel},{"col-12":a.withoutLabel},{[It.keepCheckLabel]:o},{[i??""]:i}),children:t})]}));xa.displayName="RowLabelInput";const Ta=m.forwardRef(({children:e,className:t,hidden:r},n)=>M.jsx("div",{ref:n,className:`${r?"d-none":""} ${t}`,children:e}));Ta.displayName="NoInputContainer";exports.AuthContext=Wn;exports.AuthError=Rr;exports.AvatarIcon=wa;exports.CacheAccountType=Rl;exports.ConfirmContext=Tl;exports.Constants=he;exports.ENTERED=Qe;exports.ENTERING=He;exports.EXITED=Xe;exports.EXITING=mr;exports.Fade=yr;exports.FloatingLabel=Nn;exports.FloatingLabelInput=Oa;exports.FormContext=Ni;exports.FormGroup=kn;exports.GenIcon=me;exports.Ie=uc;exports.InteractionStatus=_r;exports.LoadingContext=Sl;exports.LuminusComponentsContext=En;exports.MdCheck=rs;exports.MdClear=ts;exports.MdOutlineAddCircleOutline=ls;exports.MdOutlineArrowOutward=ns;exports.MdOutlineCameraAlt=hs;exports.MdOutlineChevronRight=gs;exports.MdOutlineClose=ri;exports.MdOutlineDelete=is;exports.MdOutlineEdit=ms;exports.MdOutlineExpand=as;exports.MdOutlineFileUpload=fs;exports.MdOutlineKeyboardArrowLeft=ds;exports.MdOutlineKeyboardArrowRight=ps;exports.MdOutlineStar=bs;exports.MsalContext=Hn;exports.NoInputContainer=Ta;exports.OIDC_DEFAULT_SCOPES=Wi;exports.OverlayTrigger=Vi;exports.Popover=Bi;exports.PromptContext=lc;exports.PropTypes=z;exports.RowLabelInput=xa;exports.Separators=_l;exports.SimpleDropdownToggle=Ud;exports.Tooltip=Dn;exports.TransitionWrapper=vi;exports.Typography=Ea;exports.UserAvatarToggle=Hd;exports.UserContext=Cl;exports.WrapperSKU=Pl;exports.accountArraysAreEqual=gd;exports.addEventListener=fi;exports.canUseDOM=Sr;exports.cancelToken=Rd;exports.classNames=ce;exports.constructFrom=Qo;exports.contains=Er;exports.getAccountByIdentifiers=va;exports.getChildrenOrFunction=vd;exports.getDefaultExportFromCjs=Or;exports.hasClass=dn;exports.isEscKey=Ii;exports.jsxRuntimeExports=M;exports.listen=et;exports.mergeOptionsWithPopperConfig=Mi;exports.ownerDocument=Vt;exports.removeEventListener=di;exports.renderTransition=Di;exports.style=On;exports.toDate=Zo;exports.transitionEnd=pi;exports.transitionEndListener=hi;exports.triggerBrowserReflow=mi;exports.useAuth=ya;exports.useAxios=_d;exports.useBootstrapBreakpoints=gc;exports.useBootstrapMinBreakpoint=yc;exports.useBootstrapPrefix=tt;exports.useCallbackRef=sn;exports.useClickOutside=Ai;exports.useCookies=zn;exports.useEventCallback=ut;exports.useIsAuthenticated=ga;exports.useIsRTL=wn;exports.useIsomorphicEffect=gr;exports.useMergedRefs=ot;exports.useMounted=Tn;exports.useMsal=Vn;exports.useNotifications=ba;exports.usePopper=_i;exports.useUncontrolled=pc;exports.useWaitForDOMRef=fn;exports.useWillUnmount=gi;exports.useWindow=ki;exports.warning=jn;
253
+ */var Go;function cd(){return Go||(Go=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function R(b){return typeof b=="string"||typeof b=="function"||b===n||b===l||b===i||b===o||b===f||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===v||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===E||b.$$typeof===S||b.$$typeof===T||b.$$typeof===y)}function C(b){if(typeof b=="object"&&b!==null){var ge=b.$$typeof;switch(ge){case t:var _e=b.type;switch(_e){case c:case l:case n:case i:case o:case f:return _e;default:var Me=_e&&_e.$$typeof;switch(Me){case s:case u:case h:case v:case a:return Me;default:return ge}}case r:return ge}}}var p=c,A=l,k=s,J=a,Z=t,K=u,ie=n,le=h,V=v,X=r,Q=i,ae=o,ue=f,xe=!1;function we(b){return xe||(xe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(b)||C(b)===c}function O(b){return C(b)===l}function _(b){return C(b)===s}function L(b){return C(b)===a}function $(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function j(b){return C(b)===u}function U(b){return C(b)===n}function N(b){return C(b)===h}function I(b){return C(b)===v}function D(b){return C(b)===r}function H(b){return C(b)===i}function B(b){return C(b)===o}function fe(b){return C(b)===f}oe.AsyncMode=p,oe.ConcurrentMode=A,oe.ContextConsumer=k,oe.ContextProvider=J,oe.Element=Z,oe.ForwardRef=K,oe.Fragment=ie,oe.Lazy=le,oe.Memo=V,oe.Portal=X,oe.Profiler=Q,oe.StrictMode=ae,oe.Suspense=ue,oe.isAsyncMode=we,oe.isConcurrentMode=O,oe.isContextConsumer=_,oe.isContextProvider=L,oe.isElement=$,oe.isForwardRef=j,oe.isFragment=U,oe.isLazy=N,oe.isMemo=I,oe.isPortal=D,oe.isProfiler=H,oe.isStrictMode=B,oe.isSuspense=fe,oe.isValidElementType=R,oe.typeOf=C}()),oe}process.env.NODE_ENV==="production"?yn.exports=sd():yn.exports=cd();var ud=yn.exports,ha=ud,ld={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ma={};ma[ha.ForwardRef]=ld;ma[ha.Memo]=fd;function dd(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function zn(e){const t=m.useContext(ad);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=m.useState(()=>t.getAll({doNotUpdate:!0}));dd()&&m.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});pd(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=m.useMemo(()=>t.set.bind(t),[t]),i=m.useMemo(()=>t.remove.bind(t),[t]),a=m.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function pd(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}const hd=()=>{const{axiosInstance:e,cookieDomain:t}=m.useContext(En),[,r,n]=zn(["Authorization"]),o=m.useCallback(()=>localStorage.getItem("token")??null,[]),i=m.useCallback(()=>{const c=o();return c!==null&&c.length>0},[o]),a=m.useCallback(async(c,l)=>e.post("/user/login",{kid:c,password:l}).then(u=>(localStorage.setItem("token",u.data),r("Authorization",u.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:qa(new Date(Date.now()),24)}),u.data)).catch(u=>(console.log(u),null)),[e,r,t]),s=m.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),n("Authorization")},[n]);return{isAuthenticated:i,login:a,logout:s,getToken:o}};/*! @azure/msal-react v2.0.16 2024-05-07 */const md={instance:kl,inProgress:_r.None,accounts:[],logger:new wr({})},Hn=Y.createContext(md);Hn.Consumer;/*! @azure/msal-react v2.0.16 2024-05-07 */function vd(e,t){return typeof e=="function"?e(t):e}function gd(e,t){if(e.length!==t.length)return!1;const r=[...t];return e.every(n=>{const o=r.shift();return!n||!o?!1:n.homeAccountId===o.homeAccountId&&n.localAccountId===o.localAccountId&&n.username===o.username})}function va(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter(n=>!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId.toLowerCase()!==n.homeAccountId.toLowerCase()||t.localAccountId&&t.localAccountId.toLowerCase()!==n.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.16 2024-05-07 */const Vn=()=>m.useContext(Hn);/*! @azure/msal-react v2.0.16 2024-05-07 */function yd(e,t){return t&&(t.username||t.homeAccountId||t.localAccountId)?!!va(e,t):e.length>0}function ga(e){const{accounts:t,inProgress:r}=Vn();return m.useMemo(()=>r===_r.Startup?!1:yd(t,e),[t,r,e])}const bd=()=>{const[,,e]=zn(["Authorization"]),{storedToken:t,msalScopes:r}=m.useContext(Wn),{instance:n,inProgress:o}=Vn(),i=ga(),a=m.useCallback(()=>(console.log("getting token",t),t),[t]),s=m.useCallback(()=>i&&t!==null&&t!==void 0&&t!=="",[i,t]),c=m.useCallback(()=>!s()&&o!==_r.None,[s,o]),l=m.useCallback(async()=>n.loginRedirect({scopes:r}).then(()=>"").catch(()=>null),[n,r]),u=m.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:s,isAuthenticating:c,login:l,logout:u,getToken:a}},ya=()=>{const{useMsal:e}=m.useContext(Wn),t=hd(),r=bd();return{isAuthenticated:e?r.isAuthenticated:t.isAuthenticated,isAuthenticating:e?r.isAuthenticating:()=>!1,getToken:e?r.getToken:t.getToken,login:e?r.login:t.login,logout:e?r.logout:t.logout}};let or;const Ed=new Uint8Array(16);function wd(){if(!or&&(or=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!or))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return or(Ed)}const Ee=[];for(let e=0;e<256;++e)Ee.push((e+256).toString(16).slice(1));function Od(e,t=0){return Ee[e[t+0]]+Ee[e[t+1]]+Ee[e[t+2]]+Ee[e[t+3]]+"-"+Ee[e[t+4]]+Ee[e[t+5]]+"-"+Ee[e[t+6]]+Ee[e[t+7]]+"-"+Ee[e[t+8]]+Ee[e[t+9]]+"-"+Ee[e[t+10]]+Ee[e[t+11]]+Ee[e[t+12]]+Ee[e[t+13]]+Ee[e[t+14]]+Ee[e[t+15]]}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ko={randomUUID:xd};function Td(e,t,r){if(Ko.randomUUID&&!t&&!e)return Ko.randomUUID();e=e||{};const n=e.random||(e.rng||wd)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Od(n)}const Sd="_toast_1s57i_1",Nt={toast:Sd},Cd=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},ba=()=>({addNotification:(t,r)=>{const n=Td(),o=bn.truncateText(t),i=Cd(r),a=M.jsxs(M.Fragment,{children:[o,M.jsx(ri,{onClick:()=>gt.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(r){case"success":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(vs,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",Nt.toast)});break}case"danger":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(us,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",Nt.toast)});break}case"warning":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(os,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",Nt.toast)});break}case"info":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(ss,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",Nt.toast)});break}case"prompt":{gt(a,{id:n,duration:i,position:"top-center",icon:M.jsx(cs,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",Nt.toast)});break}}}}),Rd=de.CancelToken,_d=e=>{const{authenticated:t=!0,differentBaseUrl:r,silent:n=!1}={...e},{axiosInstance:o,language:i,axiosTexts:a}=m.useContext(En),{addNotification:s}=ba(),{getToken:c}=ya();return m.useEffect(()=>{r&&(o.defaults.baseURL=r),o.interceptors.request.clear(),o.interceptors.response.clear();const l=o.interceptors.request.use(f=>{var g,v,h;return t&&!f.headers.Authorization&&(f.headers.Authorization=`Bearer ${c()}`),(g=f.url)!=null&&g.includes("culture=")?f.url=(v=f.url)==null?void 0:v.replace(/culture=[a-z]{2}/,`culture=${i}`):f.url=`${f.url}${(h=f.url)!=null&&h.includes("?")?"&":"?"}culture=${i}`,f},f=>Promise.reject(f)),u=o.interceptors.response.use(f=>f,f=>{if(de.isCancel(f))return Promise.reject(f);const g=bn.extractErrorsFromResponse(f);if(g.length>0){const v=g.find(h=>h.name.toLowerCase()==="others");return v?(!n&&s(v.errors,"danger"),Promise.reject(f)):(!n&&s(a.validationError,"warning"),Promise.reject(f))}return f.message&&f.message==="Network Error"?(!n&&s(a.networkError,"danger"),Promise.reject(f)):(de.isCancel(f)||!n&&s(a.unexpectedError,"danger"),Promise.reject(f))});return()=>{o.interceptors.request.eject(l),o.interceptors.response.eject(u)}},[o,s,i,c,t,a,r,n]),o},Wn=m.createContext({useMsal:!1,storedToken:null,msalInstance:null,msalScopes:[]}),Pd="_h1_14r4v_1",Ad="_h3_14r4v_8",Md="_h6_14r4v_15",jd="_subtitle_14r4v_22",kd="_body_14r4v_29",Nd="_body2_14r4v_36",Id="_caption_14r4v_43",Dd="_form-label_14r4v_50",Je={h1:Pd,h3:Ad,h6:Md,subtitle:jd,body:kd,body2:Nd,caption:Id,"form-label":"_form-label_14r4v_50",formLabel:Dd},Ld=({variant:e,className:t,children:r})=>{switch(e){case"h1":return M.jsx("h1",{className:ce("luminus-text-primary luminus-h1",Je.h1,t),children:r});case"h3":return M.jsx("h3",{className:ce("luminus-text luminus-h3",Je.h3,t),children:r});case"h6":return M.jsx("h6",{className:ce("luminus-text luminus-h6",Je.h6,t),children:r});case"subtitle":return M.jsx("div",{className:ce("luminus-text luminus-subtitle",Je.subtitle,t),children:r});case"body":return M.jsx("div",{className:ce("luminus-text luminus-body",Je.body,t),children:r});case"body2":return M.jsx("div",{className:ce("luminus-text luminus-body2",Je.body2,t),children:r});case"caption":return M.jsx("div",{className:ce("luminus-text-muted luminus-caption",Je.caption,t),children:r});case"form-label":return M.jsx("div",{className:ce("luminus-text luminus-form-label",Je.formLabel,t),children:r});default:return M.jsx(M.Fragment,{children:r})}},Ea=({variant:e,className:t,children:r})=>M.jsx(Ld,{variant:e,className:t,children:r}),$d="_button_qhwih_1",Fd={button:$d},Ud=m.forwardRef(({color:e="primary",icon:t=M.jsx(ys,{size:21}),text:r,onClick:n,className:o,children:i,...a},s)=>M.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),n(c)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${e} ${o??""}`,Fd.button),...a,children:[t,r]})),Bd="_avatar-icon_1axl6_1",zd={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:Bd},wa=({name:e,fontSize:t,size:r})=>{const n=o=>{let i=0,a;for(a=0;a<o.length;a+=1)i=o.charCodeAt(a)+((i<<5)-i);let s="#";for(a=0;a<3;a+=1){const c=i>>a*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return M.jsx(Vi,{placement:"bottom",overlay:M.jsx(Dn,{children:e}),children:M.jsx("div",{className:ce("luminus-avatar-icon",zd.avatarIcon),style:{backgroundColor:n(e),fontSize:t??void 0,height:r??void 0,width:r??void 0},children:M.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},Hd=m.forwardRef(({userName:e,onClick:t,children:r},n)=>M.jsxs("button",{type:"button",ref:n,onClick:o=>{o.preventDefault(),t(o)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[M.jsx(wa,{name:e}),r]})),Vd="_floating-label_kujtw_1",Wd="_without-label_kujtw_21",Jo={"floating-label":"_floating-label_kujtw_1",floatingLabel:Vd,"without-label":"_without-label_kujtw_21",withoutLabel:Wd},Oa=m.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,isForCheckInput:a,...s},c)=>a?M.jsx(M.Fragment,{children:t}):M.jsx(Nn,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ce(`luminus-floating-label ${r??""}`,Jo.floatingLabel,{[i??""]:i},{[Jo.withoutLabel]:s.withoutLabel}),children:t}));Oa.displayName="FloatingLabelInput";const Yd="_row-label-input_1p53y_1",qd="_label_1p53y_4",Gd="_input-container_1p53y_9",Kd="_invalid-feedback_1p53y_100",Jd="_keep-check-label_1p53y_132",Xd="_is-invalid_1p53y_135",It={"row-label-input":"_row-label-input_1p53y_1",rowLabelInput:Yd,label:qd,"input-container":"_input-container_1p53y_9",inputContainer:Gd,"invalid-feedback":"_invalid-feedback_1p53y_100",invalidFeedback:Kd,"keep-check-label":"_keep-check-label_1p53y_132",keepCheckLabel:Jd,"is-invalid":"_is-invalid_1p53y_135",isInvalid:Xd},xa=m.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,...a},s)=>M.jsxs("div",{ref:s,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":n},{[It.isInvalid]:n},{[r??""]:r},{"d-none":e},It.rowLabelInput),children:[!a.withoutLabel&&M.jsx("label",{className:ce("label col-6",It.label),children:M.jsx(Ea,{variant:"form-label",className:n?"text-danger":"",children:a.label})}),M.jsx("div",{className:ce("input-container",It.inputContainer,{"col-6":!a.withoutLabel},{"col-12":a.withoutLabel},{[It.keepCheckLabel]:o},{[i??""]:i}),children:t})]}));xa.displayName="RowLabelInput";const Ta=m.forwardRef(({children:e,className:t,hidden:r},n)=>M.jsx("div",{ref:n,className:`${r?"d-none":""} ${t}`,children:e}));Ta.displayName="NoInputContainer";exports.AuthContext=Wn;exports.AuthError=Rr;exports.AvatarIcon=wa;exports.CacheAccountType=Rl;exports.ConfirmContext=Tl;exports.Constants=he;exports.ENTERED=Qe;exports.ENTERING=He;exports.EXITED=Xe;exports.EXITING=mr;exports.Fade=yr;exports.FloatingLabel=Nn;exports.FloatingLabelInput=Oa;exports.FormContext=Ni;exports.FormGroup=kn;exports.GenIcon=me;exports.Ie=uc;exports.InteractionStatus=_r;exports.LoadingContext=Sl;exports.LuminusComponentsContext=En;exports.MdCheck=rs;exports.MdClear=ts;exports.MdOutlineAddCircleOutline=ls;exports.MdOutlineArrowOutward=ns;exports.MdOutlineCameraAlt=hs;exports.MdOutlineChevronRight=gs;exports.MdOutlineClose=ri;exports.MdOutlineDelete=is;exports.MdOutlineEdit=ms;exports.MdOutlineExpand=as;exports.MdOutlineFileUpload=fs;exports.MdOutlineKeyboardArrowLeft=ds;exports.MdOutlineKeyboardArrowRight=ps;exports.MdOutlineStar=bs;exports.MsalContext=Hn;exports.NoInputContainer=Ta;exports.OIDC_DEFAULT_SCOPES=Wi;exports.OverlayTrigger=Vi;exports.Popover=Bi;exports.PromptContext=lc;exports.PropTypes=z;exports.RowLabelInput=xa;exports.Separators=_l;exports.SimpleDropdownToggle=Ud;exports.Tooltip=Dn;exports.TransitionWrapper=vi;exports.Typography=Ea;exports.UserAvatarToggle=Hd;exports.UserContext=Cl;exports.WrapperSKU=Pl;exports.accountArraysAreEqual=gd;exports.addEventListener=fi;exports.canUseDOM=Sr;exports.cancelToken=Rd;exports.classNames=ce;exports.constructFrom=Qo;exports.contains=Er;exports.getAccountByIdentifiers=va;exports.getChildrenOrFunction=vd;exports.getDefaultExportFromCjs=Or;exports.hasClass=dn;exports.isEscKey=Ii;exports.jsxRuntimeExports=M;exports.listen=et;exports.mergeOptionsWithPopperConfig=Mi;exports.ownerDocument=Vt;exports.removeEventListener=di;exports.renderTransition=Di;exports.style=On;exports.toDate=Zo;exports.transitionEnd=pi;exports.transitionEndListener=hi;exports.triggerBrowserReflow=mi;exports.useAuth=ya;exports.useAxios=_d;exports.useBootstrapBreakpoints=gc;exports.useBootstrapMinBreakpoint=yc;exports.useBootstrapPrefix=tt;exports.useCallbackRef=sn;exports.useClickOutside=Ai;exports.useCookies=zn;exports.useEventCallback=ut;exports.useIsAuthenticated=ga;exports.useIsRTL=wn;exports.useIsomorphicEffect=gr;exports.useMergedRefs=ot;exports.useMounted=Tn;exports.useMsal=Vn;exports.useNotifications=ba;exports.usePopper=_i;exports.useUncontrolled=pc;exports.useWaitForDOMRef=fn;exports.useWillUnmount=gi;exports.useWindow=ki;exports.warning=jn;
@@ -1,4 +1,4 @@
1
- import { j as o, aa as i, ai as t } from "./NoInputContainer-DcILYvcy.js";
1
+ import { j as o, aa as i, ai as t } from "./NoInputContainer-2Ycv-Em1.js";
2
2
  const l = ({ text: s, placement: a, children: r }) => /* @__PURE__ */ o.jsx(i, { placement: a, overlay: /* @__PURE__ */ o.jsx(t, { className: "luminus-tooltip", children: s }), children: r });
3
3
  export {
4
4
  l as S
@@ -1 +1 @@
1
- "use strict";const t=require("./NoInputContainer-BY_zQfe0.cjs"),r=({text:o,placement:e,children:i})=>t.jsxRuntimeExports.jsx(t.OverlayTrigger,{placement:e,overlay:t.jsxRuntimeExports.jsx(t.Tooltip,{className:"luminus-tooltip",children:o}),children:i});exports.SimpleTooltip=r;
1
+ "use strict";const t=require("./NoInputContainer-KFDzvABU.cjs"),r=({text:o,placement:e,children:i})=>t.jsxRuntimeExports.jsx(t.OverlayTrigger,{placement:e,overlay:t.jsxRuntimeExports.jsx(t.Tooltip,{className:"luminus-tooltip",children:o}),children:i});exports.SimpleTooltip=r;
@@ -2,6 +2,7 @@
2
2
  import UserModel from '@models/types/UserModel';
3
3
  interface IUserContext {
4
4
  user: UserModel | null;
5
+ loggingInProgress: boolean;
5
6
  loginUser: (token?: string) => Promise<boolean>;
6
7
  logoutUser: () => void;
7
8
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-BY_zQfe0.cjs"),n=require("react"),f=require("./useConfirm-h5QGRHKF.cjs");require("react-hook-form");const l=require("./EventType-Byay8qD5.cjs"),v=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:r,text:s,onFinish:o}=f.usePrompt(),{options:a}=n.useContext(e.PromptContext),[c,u]=n.useState(a.defaultValue??""),i=n.useCallback(()=>{o(null)},[o]),d=n.useCallback(()=>{o(c)},[o,c]);n.useEffect(()=>{r===!0&&u(a.defaultValue??"")},[r,a.defaultValue]);const E=n.useMemo(()=>({value:c,onChange:C=>u(C.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[c]);return e.jsxRuntimeExports.jsxs(l.Modal,{show:r,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(l.Modal.Header,{children:e.jsxRuntimeExports.jsx(l.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[a.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...E,rows:5}):void 0,a.input==="input"?e.jsxRuntimeExports.jsx("input",{...E,type:a.type}):void 0]}),e.jsxRuntimeExports.jsxs(l.Modal.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:i,children:t.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:d,disabled:a.required&&!c,children:t.confirm})]})]})},y=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),[c,u]=n.useState({input:"textarea",type:"text"}),i=n.useRef(()=>{}),d=n.useCallback(x=>{a(x),s(!0)},[]),E=n.useCallback(()=>{s(!1)},[]),C=n.useMemo(()=>({isShown:r,text:o,showPrompt:d,hidePrompt:E,resolveRef:i,options:c,setOptions:u}),[r,o,d,E,c]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:C,children:[t,e.jsxRuntimeExports.jsx(v,{})]})},T=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),c=n.useCallback(d=>{s(!0),a(d)},[]),u=n.useCallback(()=>{s(!1)},[]),i=n.useMemo(()=>({show:r,text:o,showConfirm:c,hideConfirm:u}),[r,o,c,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(L,{}),t]})},I=({cookieDomain:t,axiosInstance:r,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x,children:m})=>{const p=n.useMemo(()=>({axiosInstance:r,cookieDomain:t,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x}),[r,t,s,o,a,c,u,i,d,E,C,x]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:p,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(y,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),m]})})})},g=({children:t})=>{const[r,s]=n.useState(!1),[o]=n.useState(new Set),a=n.useCallback(i=>{o.add(i),s(!0)},[o]),c=n.useCallback(i=>{o.delete(i),o.size===0&&s(!1)},[o]),u=n.useMemo(()=>({isLoading:r,startLoading:a,stopLoading:c}),[r,a,c]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[r&&e.jsxRuntimeExports.jsx(l.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class h{static getInteractionStatusFromEvent(r,s){switch(r.eventType){case l.EventType.LOGIN_START:return e.InteractionStatus.Login;case l.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case l.EventType.ACQUIRE_TOKEN_START:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case l.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case l.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case l.EventType.SSO_SILENT_SUCCESS:case l.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case l.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case l.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case l.EventType.LOGIN_SUCCESS:case l.EventType.LOGIN_FAILURE:case l.EventType.ACQUIRE_TOKEN_SUCCESS:case l.EventType.ACQUIRE_TOKEN_FAILURE:case l.EventType.RESTORE_FROM_BFCACHE:if(r.interactionType===e.InteractionType.Redirect||r.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 j="@azure/msal-react",S="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const R={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},b=(t,r)=>{const{type:s,payload:o}=r;let a=t.inProgress;switch(s){case R.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(a=e.InteractionStatus.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case R.EVENT:const u=o.message,i=h.getInteractionStatusFromEvent(u,t.inProgress);i&&(o.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${s}`)}const c=o.instance.getAllAccounts();return a!==t.inProgress&&!e.accountArraysAreEqual(c,t.accounts)?{...t,inProgress:a,accounts:c}:a!==t.inProgress?{...t,inProgress:a}:e.accountArraysAreEqual(c,t.accounts)?t:{...t,accounts:c}};function P({instance:t,children:r}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,S)},[t]);const s=n.useMemo(()=>t.getLogger().clone(j,S),[t]),[o,a]=n.useReducer(b,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(i=>{a({payload:{instance:t,logger:s,message:i},type:R.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:s},type:R.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const c={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:c},r)}const k=({children:t})=>{const r=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),o=n.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x):null},[]),[a,c]=n.useState(o()),u=n.useCallback(async x=>{let m=null;return await r.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(p=>{m=p.data}).catch(()=>{m=null}),localStorage.setItem("user",JSON.stringify(m)),m},[r]),i=n.useCallback(()=>{localStorage.removeItem("user")},[]),d=n.useCallback(async x=>{const m=await u(x);return m?(c(m),!0):!1},[u]),E=n.useCallback(()=>{i(),c(null)},[i]),C=n.useMemo(()=>({user:a,loginUser:d,logoutUser:E}),[a,d,E]);return n.useEffect(()=>{c(o())},[o]),n.useEffect(()=>{if(s){const x=s.addEventCallback(m=>{if(m.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&m.payload){const p=m.payload;d(p.accessToken).catch(()=>E())}});return()=>{x&&s.removeEventCallback(x)}}return()=>{}},[s,d,E]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:C,children:t})},N=({...t})=>{const{cookieDomain:r}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),[o,a]=n.useState(null),c=n.useMemo(()=>({useMsal:t.useMsal??!1,storedToken:(o==null?void 0:o.token)??null,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t,o]);return n.useEffect(()=>{if(t.useMsal){const u=t.msalInstance.addEventCallback(i=>{if(i.eventType===l.EventType.LOGIN_SUCCESS||i.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&i.payload){const d=i.payload,E=d.account;t.msalInstance.setActiveAccount(E);const C=d.accessToken,x=d.expiresOn;a({token:C,expiresOn:x})}});return()=>{u&&t.msalInstance.removeEventCallback(u)}}return()=>{}},[t]),n.useEffect(()=>{o&&s("Authorization",o.token,{path:"/",secure:!0,sameSite:"none",domain:r,expires:o.expiresOn??void 0})},[o,r,s]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:c,children:t.useMsal?e.jsxRuntimeExports.jsx(P,{instance:t.msalInstance,children:t.children}):t.children})},L=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:r,onCancel:s,text:o,show:a}=f.useConfirm();return e.jsxRuntimeExports.jsx(l.Modal,{show:a,size:"sm",centered:!0,onHide:s,children:e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(e.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:r,children:t.yes})]})]})})};exports.AuthContext=e.AuthContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=N;exports.LoadingProvider=g;exports.LuminusComponentsProvider=I;exports.UserProvider=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-KFDzvABU.cjs"),n=require("react"),v=require("./useConfirm-B8EHGeWd.cjs");require("react-hook-form");const l=require("./EventType-CPDIBxba.cjs"),y=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:r,text:s,onFinish:o}=v.usePrompt(),{options:a}=n.useContext(e.PromptContext),[c,u]=n.useState(a.defaultValue??""),i=n.useCallback(()=>{o(null)},[o]),d=n.useCallback(()=>{o(c)},[o,c]);n.useEffect(()=>{r===!0&&u(a.defaultValue??"")},[r,a.defaultValue]);const x=n.useMemo(()=>({value:c,onChange:E=>u(E.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[c]);return e.jsxRuntimeExports.jsxs(l.Modal,{show:r,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(l.Modal.Header,{children:e.jsxRuntimeExports.jsx(l.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[a.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...x,rows:5}):void 0,a.input==="input"?e.jsxRuntimeExports.jsx("input",{...x,type:a.type}):void 0]}),e.jsxRuntimeExports.jsxs(l.Modal.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:i,children:t.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:d,disabled:a.required&&!c,children:t.confirm})]})]})},I=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),[c,u]=n.useState({input:"textarea",type:"text"}),i=n.useRef(()=>{}),d=n.useCallback(C=>{a(C),s(!0)},[]),x=n.useCallback(()=>{s(!1)},[]),E=n.useMemo(()=>({isShown:r,text:o,showPrompt:d,hidePrompt:x,resolveRef:i,options:c,setOptions:u}),[r,o,d,x,c]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:E,children:[t,e.jsxRuntimeExports.jsx(y,{})]})},T=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),c=n.useCallback(d=>{s(!0),a(d)},[]),u=n.useCallback(()=>{s(!1)},[]),i=n.useMemo(()=>({show:r,text:o,showConfirm:c,hideConfirm:u}),[r,o,c,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(U,{}),t]})},h=({cookieDomain:t,axiosInstance:r,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:x,appSearchTexts:E,customSelectTexts:C,children:S})=>{const m=n.useMemo(()=>({axiosInstance:r,cookieDomain:t,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:x,appSearchTexts:E,customSelectTexts:C}),[r,t,s,o,a,c,u,i,d,x,E,C]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:m,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(I,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),S]})})})},j=({children:t})=>{const[r,s]=n.useState(!1),[o]=n.useState(new Set),a=n.useCallback(i=>{o.add(i),s(!0)},[o]),c=n.useCallback(i=>{o.delete(i),o.size===0&&s(!1)},[o]),u=n.useMemo(()=>({isLoading:r,startLoading:a,stopLoading:c}),[r,a,c]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[r&&e.jsxRuntimeExports.jsx(l.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class P{static getInteractionStatusFromEvent(r,s){switch(r.eventType){case l.EventType.LOGIN_START:return e.InteractionStatus.Login;case l.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case l.EventType.ACQUIRE_TOKEN_START:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case l.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case l.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case l.EventType.SSO_SILENT_SUCCESS:case l.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case l.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case l.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case l.EventType.LOGIN_SUCCESS:case l.EventType.LOGIN_FAILURE:case l.EventType.ACQUIRE_TOKEN_SUCCESS:case l.EventType.ACQUIRE_TOKEN_FAILURE:case l.EventType.RESTORE_FROM_BFCACHE:if(r.interactionType===e.InteractionType.Redirect||r.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 b="@azure/msal-react",g="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const R={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},k=(t,r)=>{const{type:s,payload:o}=r;let a=t.inProgress;switch(s){case R.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(a=e.InteractionStatus.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case R.EVENT:const u=o.message,i=P.getInteractionStatusFromEvent(u,t.inProgress);i&&(o.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${s}`)}const c=o.instance.getAllAccounts();return a!==t.inProgress&&!e.accountArraysAreEqual(c,t.accounts)?{...t,inProgress:a,accounts:c}:a!==t.inProgress?{...t,inProgress:a}:e.accountArraysAreEqual(c,t.accounts)?t:{...t,accounts:c}};function L({instance:t,children:r}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,g)},[t]);const s=n.useMemo(()=>t.getLogger().clone(b,g),[t]),[o,a]=n.useReducer(k,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(i=>{a({payload:{instance:t,logger:s,message:i},type:R.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:s},type:R.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const c={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:c},r)}const N=({children:t})=>{const r=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),[o,a]=n.useState(!1),c=n.useCallback(()=>{const m=localStorage.getItem("user")??null;return m?JSON.parse(m):null},[]),[u,i]=n.useState(c()),d=n.useCallback(async m=>{let p=null;return await r.get("/user/detail",m?{headers:{Authorization:`Bearer ${m}`}}:void 0).then(f=>{p=f.data}).catch(()=>{p=null}),localStorage.setItem("user",JSON.stringify(p)),p},[r]),x=n.useCallback(()=>{localStorage.removeItem("user")},[]),E=n.useCallback(async m=>{a(!0);const p=await d(m);return a(!1),p?(i(p),!0):!1},[d]),C=n.useCallback(()=>{x(),i(null)},[x]),S=n.useMemo(()=>({user:u,loggingInProgress:o,loginUser:E,logoutUser:C}),[u,E,C,o]);return n.useEffect(()=>{i(c())},[c]),n.useEffect(()=>{if(s){const m=s.addEventCallback(p=>{if(p.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&p.payload){const f=p.payload;E(f.accessToken).catch(()=>C())}});return()=>{m&&s.removeEventCallback(m)}}return()=>{}},[s,E,C]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:S,children:t})},A=({...t})=>{const{cookieDomain:r}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),[o,a]=n.useState(null),c=n.useMemo(()=>({useMsal:t.useMsal??!1,storedToken:(o==null?void 0:o.token)??null,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t,o]);return n.useEffect(()=>{if(t.useMsal){const u=t.msalInstance.addEventCallback(i=>{if(i.eventType===l.EventType.LOGIN_SUCCESS||i.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&i.payload){const d=i.payload,x=d.account;t.msalInstance.setActiveAccount(x);const E=d.accessToken,C=d.expiresOn;a({token:E,expiresOn:C})}});return()=>{u&&t.msalInstance.removeEventCallback(u)}}return()=>{}},[t]),n.useEffect(()=>{o&&s("Authorization",o.token,{path:"/",secure:!0,sameSite:"none",domain:r,expires:o.expiresOn??void 0})},[o,r,s]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:c,children:t.useMsal?e.jsxRuntimeExports.jsx(L,{instance:t.msalInstance,children:t.children}):t.children})},U=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:r,onCancel:s,text:o,show:a}=v.useConfirm();return e.jsxRuntimeExports.jsx(l.Modal,{show:a,size:"sm",centered:!0,onHide:s,children:e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(e.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:r,children:t.yes})]})]})})};exports.AuthContext=e.AuthContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=A;exports.LoadingProvider=j;exports.LuminusComponentsProvider=h;exports.UserProvider=N;