import{r as a,aa as vt,ab as Ee,ac as W,ad as q,ae as xt,af as me,ag as qe,j as f,ah as y,ai as ge,aj as yt,ak as De,al as I,am as Rt,an as Tt,ao as $e,ap as X,aq as Z,ar as ke,as as bt,at as Ue,au as Ct}from"./index-CRR9sQ49.js";function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Me(e,t)}function Nt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Me(e,t)}const Ot=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",wt=typeof document<"u",Pe=wt||Ot?a.useLayoutEffect:a.useEffect;var Ze={exports:{}},St="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kt=St,Mt=kt;function Je(){}function Qe(){}Qe.resetWarningCache=Je;var jt=function(){function e(r,o,s,i,l,c){if(c!==Mt){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qe,resetWarningCache:Je};return n.PropTypes=n,n};Ze.exports=jt();var Dt=Ze.exports;const Ce=vt(Dt);function Lt(e){var t=Ee(e);return t&&t.defaultView||window}function At(e,t){return Lt(e).getComputedStyle(e,t)}var Bt=/([A-Z])/g;function Ft(e){return e.replace(Bt,"-$1").toLowerCase()}var It=/^ms-/;function pe(e){return Ft(e).replace(It,"-ms-")}var _t=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Wt(e){return!!(e&&_t.test(e))}function $(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(pe(t))||At(e).getPropertyValue(pe(t));Object.keys(t).forEach(function(o){var s=t[o];!s&&s!==0?e.style.removeProperty(pe(o)):Wt(o)?r+=o+"("+s+") ":n+=pe(o)+": "+s+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const He={disabled:!1},et=W.createContext(null);var $t=function(t){return t.scrollTop},oe="unmounted",F="exited",D="entering",_="entered",je="exiting",O=function(e){Nt(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=F,s.appearStatus=D):c=_:r.unmountOnExit||r.mountOnEnter?c=oe:c=F,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===oe?{status:F}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==D&&i!==_&&(s=D):(i===D||i===_)&&(s=je)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===D){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);i&&$t(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===F&&this.setState({status:oe})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[q.findDOMNode(this),l],u=c[0],h=c[1],E=this.getTimeouts(),m=l?E.appear:E.enter;if(!o&&!i||He.disabled){this.safeSetState({status:_},function(){s.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:D},function(){s.props.onEntering(u,h),s.onTransitionEnd(m,function(){s.safeSetState({status:_},function(){s.props.onEntered(u,h)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:q.findDOMNode(this);if(!s||He.disabled){this.safeSetState({status:F},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:je},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:F},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],h=c[1];this.props.addEndListener(u,h)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===oe)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=xt(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(et.Provider,{value:null},typeof i=="function"?i(o,l):W.cloneElement(W.Children.only(i),l))},t}(W.Component);O.contextType=et;O.propTypes={};function z(){}O.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:z,onEntering:z,onEntered:z,onExit:z,onExiting:z,onExited:z};O.UNMOUNTED=oe;O.EXITED=F;O.ENTERING=D;O.ENTERED=_;O.EXITING=je;function Ut(e){return e.code==="Escape"||e.keyCode===27}function Pt(){const e=a.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function ve(e){if(!e||typeof e=="function")return null;const{major:t}=Pt();return t>=19?e.props.ref:e.ref}function Ht(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function Gt(e){var t=$(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Vt(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||Ht(e,"transitionend",!0)},t+n),s=me(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),s()}}function tt(e,t,n,r){n==null&&(n=Gt(e)||0);var o=Vt(e,n,r),s=me(e,"transitionend",t);return function(){o(),s()}}function Ge(e,t){const n=$(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Kt(e,t){const n=Ge(e,"transitionDuration"),r=Ge(e,"transitionDelay"),o=tt(e,s=>{s.target===e&&(o(),t(s))},n+r)}function Xt(e){e.offsetHeight}function zt(e){return e&&"setState"in e?q.findDOMNode(e):e??null}const nt=W.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:s,addEndListener:i,children:l,childRef:c,...u},h)=>{const E=a.useRef(null),m=qe(E,c),x=b=>{m(zt(b))},v=b=>k=>{b&&E.current&&b(E.current,k)},w=a.useCallback(v(e),[e]),L=a.useCallback(v(t),[t]),R=a.useCallback(v(n),[n]),A=a.useCallback(v(r),[r]),S=a.useCallback(v(o),[o]),T=a.useCallback(v(s),[s]),N=a.useCallback(v(i),[i]);return f.jsx(O,{ref:h,...u,onEnter:w,onEntered:R,onEntering:L,onExit:A,onExited:T,onExiting:S,addEndListener:N,nodeRef:E,children:typeof l=="function"?(b,k)=>l(b,{...k,ref:x}):W.cloneElement(l,{ref:x})})});nt.displayName="TransitionWrapper";const Yt=e=>a.forwardRef((t,n)=>f.jsx("div",{...t,ref:n,className:y(t.className,e)})),qt={[D]:"show",[_]:"show"},Le=a.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},s)=>{const i={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=a.useCallback((c,u)=>{Xt(c),r==null||r(c,u)},[r]);return f.jsx(nt,{ref:s,addEndListener:Kt,...i,onEnter:l,childRef:ve(t),children:(c,u)=>a.cloneElement(t,{...u,className:y("fade",e,t.props.className,qt[c],n[c])})})});Le.displayName="Fade";const Zt={"aria-label":Ce.string,onClick:Ce.func,variant:Ce.oneOf(["white"])},Ae=a.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>f.jsx("button",{ref:o,type:"button",className:y("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Ae.displayName="CloseButton";Ae.propTypes=Zt;function Jt(e){const t=a.useRef(e);return t.current=e,t}function Qt(e){const t=Jt(e);a.useEffect(()=>()=>t.current(),[])}const Ve=e=>!e||typeof e=="function"?e:t=>{e.current=t};function en(e,t){const n=Ve(e),r=Ve(t);return o=>{n&&n(o),r&&r(o)}}function Be(e,t){return a.useMemo(()=>en(e,t),[e,t])}var he;function Ke(e){if((!he&&he!==0||e)&&ge){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),he=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return he}function tn(){return a.useState(null)}function Ne(e){e===void 0&&(e=Ee());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function nn(e){const t=a.useRef(e);return t.current=e,t}function rn(e){const t=nn(e);a.useEffect(()=>()=>t.current(),[])}function on(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Xe=yt("modal-open");class Fe{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return on(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt($(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Xe,""),$(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Xe),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Oe=(e,t)=>ge?e==null?(t||Ee()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function sn(e,t){const n=De(),[r,o]=a.useState(()=>Oe(e,n==null?void 0:n.document));if(!r){const s=Oe(e);s&&o(s)}return a.useEffect(()=>{},[t,r]),a.useEffect(()=>{const s=Oe(e);s!==r&&o(s)},[e,r]),r}function an({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const s=a.useRef(null),i=a.useRef(t),l=I(n);a.useEffect(()=>{t?i.current=!0:l(s.current)},[t,l]);const c=Be(s,ve(e)),u=a.cloneElement(e,{ref:c});return t?u:o||!i.current&&r?null:u}const ln=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function cn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function un(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:s,onExited:i,addEndListener:l,children:c}=e,u=cn(e,ln);const h=a.useRef(null),E=Be(h,ve(c)),m=T=>N=>{T&&h.current&&T(h.current,N)},x=a.useCallback(m(t),[t]),v=a.useCallback(m(n),[n]),w=a.useCallback(m(r),[r]),L=a.useCallback(m(o),[o]),R=a.useCallback(m(s),[s]),A=a.useCallback(m(i),[i]),S=a.useCallback(m(l),[l]);return Object.assign({},u,{nodeRef:h},t&&{onEnter:x},n&&{onEntering:v},r&&{onEntered:w},o&&{onExit:L},s&&{onExiting:R},i&&{onExited:A},l&&{addEndListener:S},{children:typeof c=="function"?(T,N)=>c(T,Object.assign({},N,{ref:E})):a.cloneElement(c,{ref:E})})}const dn=["component"];function fn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const pn=a.forwardRef((e,t)=>{let{component:n}=e,r=fn(e,dn);const o=un(r);return f.jsx(n,Object.assign({ref:t},o))});function hn({in:e,onTransition:t}){const n=a.useRef(null),r=a.useRef(!0),o=I(t);return Pe(()=>{if(!n.current)return;let s=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[e,o]),Pe(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function mn({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[s,i]=a.useState(!t);t&&s&&i(!1);const l=hn({in:!!t,onTransition:u=>{const h=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(i(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(h,E=>{throw u.in||i(!0),E})}}),c=Be(l,ve(e));return s&&!t?null:a.cloneElement(e,{ref:c})}function ze(e,t,n){return e?f.jsx(pn,Object.assign({},n,{component:e})):t?f.jsx(mn,Object.assign({},n,{transition:t})):f.jsx(an,Object.assign({},n))}const En=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function gn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let we;function vn(e){return we||(we=new Fe({ownerDocument:e==null?void 0:e.document})),we}function xn(e){const t=De(),n=e||vn(t),r=a.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:a.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:a.useCallback(o=>{r.current.backdrop=o},[])})}const rt=a.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:s,children:i,backdrop:l=!0,keyboard:c=!0,onBackdropClick:u,onEscapeKeyDown:h,transition:E,runTransition:m,backdropTransition:x,runBackdropTransition:v,autoFocus:w=!0,enforceFocus:L=!0,restoreFocus:R=!0,restoreFocusOptions:A,renderDialog:S,renderBackdrop:T=p=>f.jsx("div",Object.assign({},p)),manager:N,container:b,onShow:k,onHide:J=()=>{},onExit:xe,onExited:Q,onExiting:se,onEnter:ae,onEntering:ie,onEntered:le}=e,ye=gn(e,En);const M=De(),U=sn(b),g=xn(N),Re=Rt(),ce=Tt(n),[B,P]=a.useState(!n),C=a.useRef(null);a.useImperativeHandle(t,()=>g,[g]),ge&&!ce&&n&&(C.current=Ne(M==null?void 0:M.document)),n&&B&&P(!1);const j=I(()=>{if(g.add(),H.current=me(document,"keydown",be),te.current=me(document,"focus",()=>setTimeout(Te),!0),k&&k(),w){var p,fe;const re=Ne((p=(fe=g.dialog)==null?void 0:fe.ownerDocument)!=null?p:M==null?void 0:M.document);g.dialog&&re&&!$e(g.dialog,re)&&(C.current=re,g.dialog.focus())}}),ee=I(()=>{if(g.remove(),H.current==null||H.current(),te.current==null||te.current(),R){var p;(p=C.current)==null||p.focus==null||p.focus(A),C.current=null}});a.useEffect(()=>{!n||!U||j()},[n,U,j]),a.useEffect(()=>{B&&ee()},[B,ee]),rn(()=>{ee()});const Te=I(()=>{if(!L||!Re()||!g.isTopModal())return;const p=Ne(M==null?void 0:M.document);g.dialog&&p&&!$e(g.dialog,p)&&g.dialog.focus()}),ue=I(p=>{p.target===p.currentTarget&&(u==null||u(p),l===!0&&J())}),be=I(p=>{c&&Ut(p)&&g.isTopModal()&&(h==null||h(p),p.defaultPrevented||J())}),te=a.useRef(),H=a.useRef(),de=(...p)=>{P(!0),Q==null||Q(...p)};if(!U)return null;const G=Object.assign({role:r,ref:g.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ye,{style:s,className:o,tabIndex:-1});let ne=S?S(G):f.jsx("div",Object.assign({},G,{children:a.cloneElement(i,{role:"document"})}));ne=ze(E,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:xe,onExiting:se,onExited:de,onEnter:ae,onEntering:ie,onEntered:le,children:ne});let V=null;return l&&(V=T({ref:g.setBackdropRef,onClick:ue}),V=ze(x,v,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:V})),f.jsx(f.Fragment,{children:q.createPortal(f.jsxs(f.Fragment,{children:[V,ne]}),U)})});rt.displayName="Modal";const yn=Object.assign(rt,{Manager:Fe});function Rn(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Tn(e,t){e.classList?e.classList.add(t):Rn(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ye(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ye(e.className,t):e.setAttribute("class",Ye(e.className&&e.className.baseVal||"",t))}const Y={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Cn extends Fe{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,$(n,{[t]:`${parseFloat($(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],$(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Tn(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";X(n,Y.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,t.scrollBarWidth)),X(n,Y.STICKY_CONTENT).forEach(s=>this.adjustAndStore(o,s,-t.scrollBarWidth)),X(n,Y.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(o,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();bn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";X(n,Y.FIXED_CONTENT).forEach(s=>this.restore(r,s)),X(n,Y.STICKY_CONTENT).forEach(s=>this.restore(o,s)),X(n,Y.NAVBAR_TOGGLER).forEach(s=>this.restore(o,s))}}let Se;function Nn(e){return Se||(Se=new Cn(e)),Se}const ot=a.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Z(t,"modal-body"),f.jsx(n,{ref:o,className:y(e,t),...r})));ot.displayName="ModalBody";const st=a.createContext({onHide(){}}),Ie=a.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:s,children:i,scrollable:l,...c},u)=>{e=Z(e,"modal");const h=`${e}-dialog`,E=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return f.jsx("div",{...c,ref:u,className:y(h,t,o&&`${e}-${o}`,r&&`${h}-centered`,l&&`${h}-scrollable`,s&&E),children:f.jsx("div",{className:y(`${e}-content`,n),children:i})})});Ie.displayName="ModalDialog";const at=a.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Z(t,"modal-footer"),f.jsx(n,{ref:o,className:y(e,t),...r})));at.displayName="ModalFooter";const it=a.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...s},i)=>{const l=a.useContext(st),c=ke(()=>{l==null||l.onHide(),r==null||r()});return f.jsxs("div",{ref:i,...s,children:[o,n&&f.jsx(Ae,{"aria-label":e,variant:t,onClick:c})]})});it.displayName="AbstractModalHeader";const lt=a.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},s)=>(e=Z(e,"modal-header"),f.jsx(it,{ref:s,...o,className:y(t,e),closeLabel:n,closeButton:r})));lt.displayName="ModalHeader";const On=Yt("h4"),ct=a.forwardRef(({className:e,bsPrefix:t,as:n=On,...r},o)=>(t=Z(t,"modal-title"),f.jsx(n,{ref:o,className:y(e,t),...r})));ct.displayName="ModalTitle";function wn(e){return f.jsx(Le,{...e,timeout:null})}function Sn(e){return f.jsx(Le,{...e,timeout:null})}const ut=a.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:o,children:s,dialogAs:i=Ie,"data-bs-theme":l,"aria-labelledby":c,"aria-describedby":u,"aria-label":h,show:E=!1,animation:m=!0,backdrop:x=!0,keyboard:v=!0,onEscapeKeyDown:w,onShow:L,onHide:R,container:A,autoFocus:S=!0,enforceFocus:T=!0,restoreFocus:N=!0,restoreFocusOptions:b,onEntered:k,onExit:J,onExiting:xe,onEnter:Q,onEntering:se,onExited:ae,backdropClassName:ie,manager:le,...ye},M)=>{const[U,g]=a.useState({}),[Re,ce]=a.useState(!1),B=a.useRef(!1),P=a.useRef(!1),C=a.useRef(null),[j,ee]=tn(),Te=qe(M,ee),ue=ke(R),be=bt();e=Z(e,"modal");const te=a.useMemo(()=>({onHide:ue}),[ue]);function H(){return le||Nn({isRTL:be})}function de(d){if(!ge)return;const K=H().getScrollbarWidth()>0,We=d.scrollHeight>Ee(d).documentElement.clientHeight;g({paddingRight:K&&!We?Ke():void 0,paddingLeft:!K&&We?Ke():void 0})}const G=ke(()=>{j&&de(j.dialog)});Qt(()=>{Ue(window,"resize",G),C.current==null||C.current()});const ne=()=>{B.current=!0},V=d=>{B.current&&j&&d.target===j.dialog&&(P.current=!0),B.current=!1},p=()=>{ce(!0),C.current=tt(j.dialog,()=>{ce(!1)})},fe=d=>{d.target===d.currentTarget&&p()},re=d=>{if(x==="static"){fe(d);return}if(P.current||d.target!==d.currentTarget){P.current=!1;return}R==null||R()},dt=d=>{v?w==null||w(d):(d.preventDefault(),x==="static"&&p())},ft=(d,K)=>{d&&de(d),Q==null||Q(d,K)},pt=d=>{C.current==null||C.current(),J==null||J(d)},ht=(d,K)=>{se==null||se(d,K),Ct(window,"resize",G)},mt=d=>{d&&(d.style.display=""),ae==null||ae(d),Ue(window,"resize",G)},Et=a.useCallback(d=>f.jsx("div",{...d,className:y(`${e}-backdrop`,ie,!m&&"show")}),[m,ie,e]),_e={...n,...U};_e.display="block";const gt=d=>f.jsx("div",{role:"dialog",...d,style:_e,className:y(t,e,Re&&`${e}-static`,!m&&"show"),onClick:x?re:void 0,onMouseUp:V,"data-bs-theme":l,"aria-label":h,"aria-labelledby":c,"aria-describedby":u,children:f.jsx(i,{...ye,onMouseDown:ne,className:r,contentClassName:o,children:s})});return f.jsx(st.Provider,{value:te,children:f.jsx(yn,{show:E,ref:Te,backdrop:x,container:A,keyboard:!0,autoFocus:S,enforceFocus:T,restoreFocus:N,restoreFocusOptions:b,onEscapeKeyDown:dt,onShow:L,onHide:R,onEnter:ft,onEntering:ht,onEntered:k,onExit:pt,onExiting:xe,onExited:mt,manager:H(),transition:m?wn:void 0,backdropTransition:m?Sn:void 0,renderBackdrop:Et,renderDialog:gt})})});ut.displayName="Modal";const Mn=Object.assign(ut,{Body:ot,Header:lt,Title:ct,Footer:at,Dialog:Ie,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});export{Mn as M};