(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode("")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),r=require("react"),m=require("clsx"),ne=require("react-popper"),fe=require("react-dom"),dt=require("@popperjs/core"),ae=require("framer-motion"),me=r.forwardRef(({breakpoint:e,fluid:t,children:s,className:a,tag:n="div",...o},i)=>{const l=m(`${t?"container-fluid":`container${e?"-"+e:""}`}`,a);return c.jsx(n,{className:l,...o,ref:i,children:s})});me.displayName="MDBContainer";const pe=r.forwardRef(({center:e,children:t,className:s,end:a,lg:n,md:o,offsetLg:i,offsetMd:l,offsetSm:u,order:d,size:f,sm:b,start:p,tag:g="div",xl:h,xxl:B,xs:v,...N},M)=>{const R=m(f&&`col-${f}`,v&&`col-xs-${v}`,b&&`col-sm-${b}`,o&&`col-md-${o}`,n&&`col-lg-${n}`,h&&`col-xl-${h}`,B&&`col-xxl-${B}`,!f&&!v&&!b&&!o&&!n&&!h&&!B?"col":"",d&&`order-${d}`,p&&"align-self-start",e&&"align-self-center",a&&"align-self-end",u&&`offset-sm-${u}`,l&&`offset-md-${l}`,i&&`offset-lg-${i}`,s);return c.jsx(g,{className:R,ref:M,...N,children:t})});pe.displayName="MDBCol";const ge=r.forwardRef(({className:e,color:t="primary",pill:s,light:a,dot:n,tag:o="span",children:i,notification:l,...u},d)=>{const f=m("badge",a?t&&`badge-${t}`:t&&`bg-${t}`,n&&"badge-dot",s&&"rounded-pill",l&&"badge-notification",e);return c.jsx(o,{className:f,ref:d,...u,children:i})});ge.displayName="MDBBadge";const ft=({...e})=>{const[t,s]=r.useState(!1),a=m("ripple-wave",t&&"active");return r.useEffect(()=>{const n=setTimeout(()=>{s(!0)},50);return()=>{clearTimeout(n)}},[]),c.jsx("div",{className:a,...e})},mt=(...e)=>{const t=r.useRef();return r.useEffect(()=>{e.forEach(s=>{s&&(typeof s=="function"?s(t.current):s.current=t.current)})},[e]),t},re=r.forwardRef(({className:e,rippleTag:t="div",rippleCentered:s,rippleDuration:a=500,rippleUnbound:n,rippleRadius:o=0,rippleColor:i="dark",children:l,onMouseDown:u,...d},f)=>{const b=r.useRef(null),p=mt(f,b),g="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",h=[0,0,0],B=["primary","secondary","success","danger","warning","info","light","dark"],[v,N]=r.useState([]),[M,R]=r.useState(!1),x=m("ripple","ripple-surface",n&&"ripple-surface-unbound",M&&`ripple-surface-${i}`,e),T=()=>{if(B.find(D=>D===(i==null?void 0:i.toLowerCase())))return R(!0);{const D=I(i).join(",");return`radial-gradient(circle, ${g.split("{{color}}").join(`${D}`)})`}},I=S=>{const D=E=>(E.length<7&&(E=`#${E[1]}${E[1]}${E[2]}${E[2]}${E[3]}${E[3]}`),[parseInt(E.substr(1,2),16),parseInt(E.substr(3,2),16),parseInt(E.substr(5,2),16)]),j=E=>{const $=document.body.appendChild(document.createElement("fictum")),A="rgb(1, 2, 3)";return $.style.color=A,$.style.color!==A||($.style.color=E,$.style.color===A||$.style.color==="")?h:(E=getComputedStyle($).color,document.body.removeChild($),E)},W=E=>(E=E.match(/[.\d]+/g).map($=>+Number($)),E.length=3,E);return S.toLowerCase()==="transparent"?h:S[0]==="#"?D(S):(S.indexOf("rgb")===-1&&(S=j(S)),S.indexOf("rgb")===0?W(S):h)},w=S=>{const{offsetX:D,offsetY:j,height:W,width:E}=S,$=j<=W/2,A=D<=E/2,F=(X,Y)=>Math.sqrt(X**2+Y**2),k=j===W/2&&D===E/2,G={first:$===!0&&A===!1,second:$===!0&&A===!0,third:$===!1&&A===!0,fourth:$===!1&&A===!1},P={topLeft:F(D,j),topRight:F(E-D,j),bottomLeft:F(D,W-j),bottomRight:F(E-D,W-j)};let O=0;return k||G.fourth?O=P.topLeft:G.third?O=P.topRight:G.second?O=P.bottomRight:G.first&&(O=P.bottomLeft),O*2},C=S=>{var O;const D=(O=p.current)==null?void 0:O.getBoundingClientRect(),j=S.clientX-D.left,W=S.clientY-D.top,E=D.height,$=D.width,A={offsetX:s?E/2:j,offsetY:s?$/2:W,height:E,width:$},F={delay:a&&a*.5,duration:a&&a-a*.5},k=w(A),G=o||k/2,P={left:s?`${$/2-G}px`:`${j-G}px`,top:s?`${E/2-G}px`:`${W-G}px`,height:o?`${o*2}px`:`${k}px`,width:o?`${o*2}px`:`${k}px`,transitionDelay:`0s, ${F.delay}ms`,transitionDuration:`${a}ms, ${F.duration}ms`};return M?P:{...P,backgroundImage:`${T()}`}},H=S=>{const D=C(S),j=v.concat(D);N(j),u&&u(S)};return r.useEffect(()=>{const S=setTimeout(()=>{v.length>0&&N(v.splice(1,v.length-1))},a);return()=>{clearTimeout(S)}},[a,v]),c.jsxs(t,{className:x,onMouseDown:S=>H(S),ref:p,...d,children:[l,v.map((S,D)=>c.jsx(ft,{style:S},D))]})});re.displayName="MDBRipple";const Q=r.forwardRef(({className:e,color:t="primary",outline:s,children:a,rounded:n,disabled:o,floating:i,size:l,href:u,block:d,active:f,toggle:b,noRipple:p,tag:g="button",role:h="button",...B},v)=>{const[N,M]=r.useState(f||!1);let R;const x=t&&["light","link"].includes(t)||s?"dark":"light";t!=="none"?s?t?R=`btn-outline-${t}`:R="btn-outline-primary":t?R=`btn-${t}`:R="btn-primary":R="";const T=m(t!=="none"&&"btn",R,n&&"btn-rounded",i&&"btn-floating",l&&`btn-${l}`,`${(u||g!=="button")&&o?"disabled":""}`,d&&"btn-block",N&&"active",e);return u&&g!=="a"&&(g="a"),["hr","img","input"].includes(g)||p?c.jsx(g,{className:T,onClick:b?()=>{M(!N)}:void 0,disabled:o&&g==="button"?!0:void 0,href:u,ref:v,role:h,...B,children:a}):c.jsx(re,{rippleTag:g,rippleColor:x,className:T,onClick:b?()=>{M(!N)}:void 0,disabled:o&&g==="button"?!0:void 0,href:u,ref:v,role:h,...B,children:a})});Q.displayName="MDBBtn";const be=r.forwardRef(({className:e,children:t,shadow:s,toolbar:a,size:n,vertical:o,tag:i="div",role:l="group",...u},d)=>{let f;a?f="btn-toolbar":o?f="btn-group-vertical":f="btn-group";const b=m(f,s&&`shadow-${s}`,n&&`btn-group-${n}`,e);return c.jsx(i,{className:b,ref:d,role:l,...u,children:t})});be.displayName="MDBBtnGroup";const ve=r.forwardRef(({className:e,children:t,tag:s="div",color:a,grow:n,size:o,...i},l)=>{const u=m(`${n?"spinner-grow":"spinner-border"}`,a&&`text-${a}`,`${o?n?"spinner-grow-"+o:"spinner-border-"+o:""}`,e);return c.jsx(s,{className:u,ref:l,...i,children:t})});ve.displayName="MDBSpinner";const he=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",shadow:o,alignment:i,...l},u)=>{const d=m("card",s&&`border border-${s}`,a&&`bg-${a}`,o&&`shadow-${o}`,i&&`text-${i}`,e);return c.jsx(n,{className:d,ref:u,...l,children:t})});he.displayName="MDBCard";const Be=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",...o},i)=>{const l=m("card-header",s&&`border-${s}`,a&&`bg-${a}`,e);return c.jsx(n,{className:l,...o,ref:i,children:t})});Be.displayName="MDBCardHeader";const ye=r.forwardRef(({className:e,children:t,tag:s="p",...a},n)=>{const o=m("card-subtitle",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});ye.displayName="MDBCardSubTitle";const Me=r.forwardRef(({className:e,children:t,tag:s="h5",...a},n)=>{const o=m("card-title",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Me.displayName="MDBCardTitle";const xe=r.forwardRef(({className:e,children:t,tag:s="p",...a},n)=>{const o=m("card-text",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});xe.displayName="MDBCardText";const De=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-body",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});De.displayName="MDBCardBody";const Ne=r.forwardRef(({className:e,children:t,border:s,background:a,tag:n="div",...o},i)=>{const l=m("card-footer",s&&`border-${s}`,a&&`bg-${a}`,e);return c.jsx(n,{className:l,...o,ref:i,children:t})});Ne.displayName="MDBCardFooter";const pt=({className:e,children:t,overlay:s,position:a,fluid:n,...o})=>{const i=m(a&&`card-img-${a}`,n&&"img-fluid",s&&"card-img",e);return c.jsx("img",{className:i,...o,children:t})},we=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-img-overlay",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});we.displayName="MDBCardOverlay";const gt=({className:e,children:t,...s})=>{const a=m("card-link",e);return c.jsx("a",{className:a,...s,children:t})},je=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("card-group",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});je.displayName="MDBCardGroup";const Ee=r.forwardRef(({className:e,tag:t="ul",horizontal:s,horizontalSize:a,light:n,numbered:o,children:i,small:l,...u},d)=>{const f=m("list-group",s&&(a?`list-group-horizontal-${a}`:"list-group-horizontal"),n&&"list-group-light",o&&"list-group-numbered",l&&"list-group-small",e);return c.jsx(t,{className:f,ref:d,...u,children:i})});Ee.displayName="MDBListGroup";const Se=r.forwardRef(({className:e,tag:t="li",active:s,disabled:a,action:n,color:o,children:i,noBorders:l,...u},d)=>{const f=t==="button",b=m("list-group-item",s&&"active",a&&!f&&"disabled",n&&"list-group-item-action",o&&`list-group-item-${o}`,l&&"border-0",e);return c.jsx(t,{className:b,disabled:f&&a,ref:d,...u,children:i})});Se.displayName="MDBListGroupItem";const ee=({children:e,containerRef:t,disablePortal:s})=>{const[a,n]=r.useState(!1);return r.useEffect(()=>{!s&&n(!0)},[s]),s?c.jsx(c.Fragment,{children:e}):a?fe.createPortal(c.jsx(c.Fragment,{children:e}),(t==null?void 0:t.current)||document.body):null},bt=({className:e,children:t,disableMouseDown:s,tag:a=Q,tooltipTag:n="div",options:o,placement:i="top",title:l,wrapperProps:u,wrapperClass:d,onOpen:f,onClose:b,onMouseEnter:p,onMouseLeave:g,type:h,...B})=>{const[v,N]=r.useState(null),[M,R]=r.useState(null),[x,T]=r.useState(!1),[I,w]=r.useState(!1),[C,H]=r.useState(!1),[S,D]=r.useState(!1),j=m("tooltip",C&&"show","fade",e),{styles:W,attributes:E}=ne.usePopper(v,M,{placement:i,...o});r.useEffect(()=>{let k,G;return x||I?(D(!0),k=setTimeout(()=>{H(!0)},4)):(H(!1),G=setTimeout(()=>{D(!1)},300)),()=>{clearTimeout(k),clearTimeout(G)}},[x,I]);const $=k=>{f==null||f(k),!k.defaultPrevented&&T(!0),p==null||p(k)},A=k=>{b==null||b(k),!k.defaultPrevented&&T(!1),g==null||g(k)},F=r.useCallback(k=>{k.target===v?w(!0):w(!1)},[v]);return r.useEffect(()=>{if(!s)return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[F,s]),c.jsxs(c.Fragment,{children:[c.jsx(a,{className:d,onMouseEnter:$,onMouseLeave:A,ref:N,...u,type:h,children:t}),S&&c.jsx(ee,{children:c.jsx(n,{ref:R,className:j,style:W.popper,...E.popper,role:"tooltip",...B,children:c.jsx("div",{className:"tooltip-inner",children:l})})})]})},Te=r.forwardRef(({around:e,between:t,bottom:s,center:a,children:n,className:o,evenly:i,end:l,middle:u,start:d,tag:f="div",top:b,...p},g)=>{const h=m("row",e&&"justify-content-around",t&&"justify-content-between",s&&"align-self-end",a&&"justify-content-center",i&&"justifty-content-evenly",l&&"justify-content-end",u&&"align-self-center",d&&"justify-content-start",b&&"align-self-start",o);return c.jsx(f,{className:h,...p,ref:g,children:n})});Te.displayName="MDBRow";const vt=({animate:e,className:t,icon:s,fab:a,fas:n,fal:o,far:i,flag:l,spin:u,fixed:d,flip:f,list:b,size:p,pull:g,pulse:h,color:B,border:v,rotate:N,inverse:M,stack:R,iconType:x,children:T,...I})=>{let w;l?w="flag":a?w="fab":n?w="fas":i?w="far":o?w="fal":w="fa";const C=m(x?`fa-${x}`:w,e&&`fa-${e}`,l?`flag-${l}`:s&&`fa-${s}`,p&&`fa-${p}`,B&&`text-${B}`,v&&"fa-border",N&&`fa-rotate-${N}`,g&&`fa-pull-${g}`,u&&!e&&"fa-spin",b&&"fa-li",d&&"fa-fw",h&&!e&&"fa-pulse",M&&"fa-inverse",f&&`fa-flip-${f}`,R&&`fa-stack-${R}`,t);return c.jsx("i",{className:C,...I,children:T})},Re=r.forwardRef(({className:e,children:t,tag:s="p",variant:a,color:n,blockquote:o,note:i,noteColor:l,listUnStyled:u,listInLine:d,...f},b)=>{const p=m(a&&a,o&&"blockquote",i&&"note",n&&`text-${n}`,l&&`note-${l}`,u&&"list-unstyled",d&&"list-inline",e);return o&&(s="blockquote"),(u||d)&&(s="ul"),c.jsx(s,{className:p,ref:b,...f,children:t})});Re.displayName="MDBTypography";const Ce=r.forwardRef(({className:e,color:t,uppercase:s,bold:a,children:n,...o},i)=>{const l=m("breadcrumb",a&&"font-weight-bold",t&&`text-${t}`,s&&"text-uppercase",e);return c.jsx("nav",{"aria-label":"breadcrumb",children:c.jsx("ol",{className:l,ref:i,...o,children:n})})});Ce.displayName="MDBBreadcrumb";const Ie=r.forwardRef(({className:e,active:t,current:s="page",children:a,...n},o)=>{const i=m("breadcrumb-item",t&&"active",e);return c.jsx("li",{className:i,ref:o,"aria-current":t&&s,...n,children:a})});Ie.displayName="MDBBreadcrumbItem";const ht=e=>{if(e!==!1)return`navbar-expand-${e}`},ke=r.forwardRef(({className:e,children:t,light:s,dark:a,scrolling:n,fixed:o,sticky:i,scrollingNavbarOffset:l,color:u,transparent:d,expand:f,tag:b="nav",bgColor:p,...g},h)=>{const[B,v]=r.useState(!1),N=m({"navbar-light":s,"navbar-dark":a,"scrolling-navbar":n||l,"top-nav-collapse":B,[`text-${u}`]:u&&d?B:u},o&&`fixed-${o}`,i&&"sticky-top","navbar",f&&ht(f),p&&`bg-${p}`,e),M=r.useCallback(()=>{l&&window.pageYOffset>l?v(!0):v(!1)},[l]);return r.useEffect(()=>((n||l)&&window.addEventListener("scroll",M),()=>{window.removeEventListener("scroll",M)}),[M,n,l]),c.jsx(b,{className:N,role:"navigation",...g,ref:h,children:t})});ke.displayName="MDBNavbar";const $e=r.forwardRef(({children:e,className:t="",disabled:s=!1,active:a=!1,tag:n="a",...o},i)=>{const l=m("nav-link",s?"disabled":a?"active":"",t);return c.jsx(n,{"data-test":"nav-link",className:l,style:{cursor:"pointer"},ref:i,...o,children:e})});$e.displayName="MDBNavbarLink";const Le=r.forwardRef(({className:e,children:t,tag:s="a",...a},n)=>{const o=m("navbar-brand",e);return c.jsx(s,{className:o,ref:n,...a,children:t})});Le.displayName="MDBNavbarBrand";const Ae=r.forwardRef(({children:e,className:t,active:s,text:a,tag:n="li",...o},i)=>{const l=m("nav-item",s&&"active",a&&"navbar-text",t);return c.jsx(n,{...o,className:l,ref:i,children:e})});Ae.displayName="MDBNavbarItem";const Fe=r.forwardRef(({children:e,className:t,right:s,fullWidth:a=!0,left:n,tag:o="ul",...i},l)=>{const u=m("navbar-nav",a&&"w-100",s&&"ms-auto",n&&"me-auto",t);return c.jsx(o,{className:u,ref:l,...i,children:e})});Fe.displayName="MDBNavbarNav";const Oe=r.forwardRef(({children:e,className:t,tag:s="button",...a},n)=>{const o=m("navbar-toggler",t);return c.jsx(s,{...a,className:o,ref:n,children:e})});Oe.displayName="MDBNavbarToggler";const Pe=r.forwardRef(({children:e,bgColor:t,color:s,className:a,...n},o)=>{const i=m(t&&`bg-${t}`,s&&`text-${s}`,a);return c.jsx("footer",{className:i,...n,ref:o,children:e})});Pe.displayName="MDBFooter";const He=r.forwardRef(({children:e,size:t,circle:s,center:a,end:n,start:o,className:i,...l},u)=>{const d=m("pagination",a&&"justify-content-center",s&&"pagination-circle",n&&"justify-content-end",t&&`pagination-${t}`,o&&"justify-content-start",i);return c.jsx("ul",{className:d,...l,ref:u,children:e})});He.displayName="MDBPagination";const We=r.forwardRef(({children:e,className:t,tag:s="a",...a},n)=>{const o=m("page-link",t);return c.jsx(s,{className:o,...a,ref:n,children:e})});We.displayName="MDBPaginationLink";const Ge=r.forwardRef(({children:e,className:t,active:s,disabled:a,...n},o)=>{const i=m("page-item",s&&"active",a&&"disabled",t);return c.jsx("li",{className:i,...n,ref:o,children:e})});Ge.displayName="MDBPaginationItem";const Bt=({className:e,classNameResponsive:t,responsive:s,align:a,borderColor:n,bordered:o,borderless:i,children:l,color:u,hover:d,small:f,striped:b,...p})=>{const g=m("table",a&&`align-${a}`,n&&`border-${n}`,o&&"table-bordered",i&&"table-borderless",u&&`table-${u}`,d&&"table-hover",f&&"table-sm",b&&"table-striped",e),h=r.useMemo(()=>c.jsx("table",{className:g,...p,children:l}),[l,g,p]);if(s){const B=m(typeof s=="string"?`table-responsive-${s}`:"table-responsive",t);return c.jsx("div",{className:B,children:h})}else return h},yt=({className:e,children:t,dark:s,light:a,...n})=>{const o=m(s&&"table-dark",a&&"table-light",e);return c.jsx("thead",{className:o,...n,children:t})},Mt=({className:e,children:t,...s})=>{const a=m(e);return c.jsx("tbody",{className:a,...s,children:t})},oe=r.forwardRef(({animated:e,children:t,className:s,style:a,tag:n="div",valuenow:o,valuemax:i,striped:l,bgColor:u,valuemin:d,width:f,...b},p)=>{const g=m("progress-bar",u&&`bg-${u}`,l&&"progress-bar-striped",e&&"progress-bar-animated",s),h={width:`${f}%`,...a};return c.jsx(n,{className:g,style:h,ref:p,role:"progressbar",...b,"aria-valuenow":Number(f)??o,"aria-valuemin":Number(d),"aria-valuemax":Number(i),children:t})});oe.displayName="MDBProgressBar";const qe=r.forwardRef(({className:e,children:t,tag:s="div",height:a,style:n,...o},i)=>{const l=m("progress",e),u={height:`${a}px`,...n};return c.jsx(s,{className:l,ref:i,style:u,...o,children:r.Children.map(t,d=>{if(!r.isValidElement(d)||d.type!==oe){console.error("Progress component only allows ProgressBar as child");return}else return d})})});qe.displayName="MDBProgress";const xt=e=>{const[t,s]=r.useState(!1),[a,n]=r.useState(null);return r.useEffect(()=>{n(()=>new IntersectionObserver(([o])=>{s(o.isIntersecting)}))},[]),r.useEffect(()=>{if(!(!e.current||!a))return a.observe(e.current),()=>a.disconnect()},[a,e]),t},Xe=(e,t)=>r.useMemo(()=>t!==void 0?t:e,[t,e]),Ye=r.forwardRef(({className:e,size:t,contrast:s,value:a,defaultValue:n,id:o,labelClass:i,wrapperClass:l,wrapperStyle:u,wrapperTag:d="div",label:f,onChange:b,children:p,labelRef:g,labelStyle:h,type:B,onBlur:v,readonly:N=!1,showCounter:M=!1,...R},x)=>{var V;const[T,I]=r.useState(n),w=r.useMemo(()=>a!==void 0?a:T,[a,T]),[C,H]=r.useState(0),[S,D]=r.useState(!1),[j,W]=r.useState(0),E=r.useRef(null),$=xt(E),A=r.useRef(null),F=g||A;r.useImperativeHandle(x,()=>E.current);const k=m("form-outline",s&&"form-white",l),G=m("form-control",S&&"active",B==="date"&&"active",t&&`form-control-${t}`,e),P=m("form-label",i),O=r.useCallback(()=>{var y;(y=F.current)!=null&&y.clientWidth&&H(F.current.clientWidth*.8+8)},[F]),X=y=>{I(y.target.value),M&&W(y.target.value.length),b==null||b(y)},Y=r.useCallback(y=>{E.current&&(D(!!w),v&&v(y))},[w,v]);return r.useEffect(()=>{O()},[(V=F.current)==null?void 0:V.clientWidth,O,$]),r.useEffect(()=>{if(w)return D(!0);D(!1)},[w]),c.jsxs(d,{className:k,style:u,children:[c.jsx("input",{type:B,readOnly:N,className:G,onBlur:Y,onChange:X,onFocus:O,value:a,defaultValue:n,id:o,ref:E,...R}),f&&c.jsx("label",{className:P,style:h,htmlFor:o,ref:F,children:f}),c.jsxs("div",{className:"form-notch",children:[c.jsx("div",{className:"form-notch-leading"}),c.jsx("div",{className:"form-notch-middle",style:{width:C}}),c.jsx("div",{className:"form-notch-trailing"})]}),p,M&&R.maxLength&&c.jsx("div",{className:"form-helper",children:c.jsx("div",{className:"form-counter",children:`${j}/${R.maxLength}`})})]})});Ye.displayName="MDBInput";const te=r.forwardRef(({className:e,inputRef:t,labelClass:s,wrapperClass:a,labelStyle:n,wrapperTag:o="div",wrapperStyle:i,label:l,inline:u,btn:d,id:f,btnColor:b,disableWrapper:p,toggleSwitch:g,...h},B)=>{let v="form-check-input",N="form-check-label";d&&(v="btn-check",b?N=`btn btn-${b}`:N="btn btn-primary");const M=m(l&&!d&&"form-check",u&&!d&&"form-check-inline",g&&"form-switch",a),R=m(v,e),x=m(N,s),T=c.jsxs(c.Fragment,{children:[c.jsx("input",{className:R,id:f,ref:t,...h}),l&&c.jsx("label",{className:x,style:n,htmlFor:f,children:l})]});return c.jsx(c.Fragment,{children:p?T:c.jsx(o,{style:i,className:M,ref:B,children:T})})});te.displayName="InputTemplate";const Dt=({...e})=>c.jsx(te,{type:"checkbox",...e}),Nt=({...e})=>c.jsx(te,{type:"radio",...e});function wt({showCollapse:e,setCollapseHeight:t,refCollapse:s,contentRef:a}){r.useEffect(()=>{e||t("0px")},[e]),r.useEffect(()=>{const n=s.current,o=l=>{if(!n)return;const u=l.contentRect.height,d=window.getComputedStyle(n),f=parseFloat(d.paddingTop)+parseFloat(d.paddingBottom)+parseFloat(d.marginBottom)+parseFloat(d.marginTop),b=`${u+f}px`;t(b)},i=new ResizeObserver(([l])=>{o(l)});return i.observe(a.current),()=>{i.disconnect()}},[])}const _e=({className:e,children:t,open:s=!1,id:a,navbar:n,tag:o="div",collapseRef:i,style:l,onOpen:u,onClose:d,...f})=>{const[b,p]=r.useState(!1),[g,h]=r.useState(void 0),[B,v]=r.useState(!1),N=m(B?"collapsing":"collapse",!B&&b&&"show",n&&"navbar-collapse",e),M=r.useRef(null),R=i??M,x=r.useRef(null),T=r.useCallback(()=>{b&&h(void 0)},[b]);return r.useEffect(()=>(window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}),[T]),wt({showCollapse:b,setCollapseHeight:h,refCollapse:R,contentRef:x}),r.useEffect(()=>{b!==s&&(s?u==null||u():d==null||d(),p(s)),b&&v(!0);const I=setTimeout(()=>{v(!1)},350);return()=>{clearTimeout(I)}},[s,b,u,d]),c.jsx(o,{style:{height:g,...l},id:a,className:N,...f,ref:R,children:c.jsx("div",{ref:x,className:"collapse-content",children:t})})},Ve=r.createContext(null),jt=({children:e,isOpen:t=!1,options:s,animation:a=!0,dropup:n,dropright:o,dropleft:i,onClose:l,onOpen:u})=>{const[d,f]=r.useState(t),[b,p]=r.useState(null),[g,h]=r.useState(null),[B,v]=r.useState(-1);return c.jsx(Ve.Provider,{value:{animation:a,activeIndex:B,isOpenState:d,setReferenceElement:p,setPopperElement:h,setActiveIndex:v,popperElement:g,setIsOpenState:f,referenceElement:b,onClose:l,onOpen:u,dropup:n,options:s,dropright:o,dropleft:i},children:e})},Et=e=>e instanceof HTMLElement,St=e=>e instanceof Node,J=()=>{const e=r.useContext(Ve);if(!e)throw new Error("Missing context data");return e},Tt=()=>{const{isOpenState:e,setIsOpenState:t,setActiveIndex:s,popperElement:a,referenceElement:n,onClose:o}=J(),i=r.useCallback(l=>{e&&(o==null||o(l)),!(!e||!St(l.target)||a&&a.contains(l.target)||n&&n.contains(l.target)||l.defaultPrevented)&&(t(!1),setTimeout(()=>s(-1),300))},[e,t,s,a,n,o]);r.useEffect(()=>(document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)),[i])},Rt=({className:e,tag:t="div",group:s,children:a,dropup:n,dropright:o,dropleft:i,wrapper:l,...u})=>{Tt();const d=m(s?"btn-group":"dropdown",n&&"dropup",o&&"dropend",i&&"dropstart",e);return l?c.jsx(t,{className:d,...u,children:a}):c.jsx(c.Fragment,{children:a})},Ct=({animation:e,onClose:t,onOpen:s,wrapper:a=!0,...n})=>c.jsx(jt,{animation:e,onClose:t,onOpen:s,...n,children:c.jsx(Rt,{wrapper:a,...n})}),It=({childTag:e,children:t,disabled:s,link:a,divider:n,header:o,href:i="#"})=>{const l=m("dropdown-item",s&&"disabled");return a?e?c.jsx(e,{className:l,children:t}):c.jsx("a",{href:i,className:l,children:t}):n?e?c.jsx(e,{className:"dropdown-divider",children:t}):c.jsx("hr",{className:"dropdown-divider"}):o?e?c.jsx(e,{className:"dropdown-header",children:t}):c.jsx("h6",{className:"dropdown-header",children:t}):c.jsx(c.Fragment,{children:t})},kt=({onClick:e,tag:t="li",childTag:s,children:a,style:n,link:o,divider:i,header:l,disabled:u,href:d,preventCloseOnClick:f,...b})=>{const{setIsOpenState:p,onClose:g,setActiveIndex:h}=J(),B=v=>{g==null||g(v),e==null||e(v),!(u||f||v.defaultPrevented)&&(setTimeout(()=>h(-1),300),p(!1))};return c.jsx(t,{style:n,onClick:B,...b,children:c.jsx(It,{link:o,divider:i,header:l,disabled:u,href:d,childTag:s,children:a})})},ue=(e,t,s)=>s==="up"?e<=0?t[t.length-1].props.divider===!0||t[t.length-1].props.disabled===!0:t[e-1].props.divider===!0||t[e-1].props.disabled===!0:e===t.length-1?t[0].props.divider===!0||t[0].props.disabled===!0:t[e+1].props.divider===!0||t[e+1].props.disabled===!0,$t=e=>{const{activeIndex:t,isOpenState:s,setIsOpenState:a,setActiveIndex:n,onClose:o}=J(),i=r.useCallback(l=>{const u=["ArrowUp","ArrowDown","Tab","Enter","Escape"];if(!(!Array.isArray(e)||!u.includes(l.key))){if(Et(document.activeElement)&&document.activeElement.blur(),l.key==="ArrowUp"){l.preventDefault();const d=ue(t,e,"up");if(t===1){n(d?e.length-1:0);return}if(t<=0){n(d?e.length-2:e.length-1);return}n(f=>d?f-2:f-1)}if(l.key==="ArrowDown"||l.key==="Tab"){l.preventDefault();const d=ue(t,e,"down");if(t===e.length-2){n(f=>d?0:f+1);return}if(t===e.length-1){n(d?1:0);return}n(f=>d?f+2:f+1)}if(l.key==="Enter"){const d=document.querySelector('[data-active="true"]'),f=d==null?void 0:d.firstElementChild;if(f)return f.click();if(o==null||o(l),l.defaultPrevented)return;a(!1),setTimeout(()=>n(-1),300)}if(l.key==="Escape"){if(o==null||o(l),l.defaultPrevented)return;a(!1),setTimeout(()=>n(-1),300)}}},[e,a,n,t,o]);r.useEffect(()=>(s&&document.addEventListener("keydown",i),()=>{s&&document.removeEventListener("keydown",i)}),[s,i]),r.useEffect(()=>{const l=document.querySelector('[data-active="true"]'),u=l==null?void 0:l.firstElementChild;return u==null||u.focus(),()=>u==null?void 0:u.blur()},[t])},Lt=()=>{const{isOpenState:e}=J(),[t,s]=r.useState(!1),[a,n]=r.useState(!1),[o,i]=r.useState(e);return r.useEffect(()=>{let l;return e||(n(!0),s(!1),l=setTimeout(()=>{n(!1),i(!1)},300)),e&&(s(!0),n(!1),i(!0),l=setTimeout(()=>{s(!1)},300)),()=>clearTimeout(l)},[e]),{open:o,isFadeIn:t,isFadeOut:a}},At=({className:e,tag:t="ul",children:s,style:a,dark:n,responsive:o="",appendToBody:i=!1,alwaysOpen:l,...u})=>{const{activeIndex:d,setPopperElement:f,isOpenState:b,animation:p,referenceElement:g,popperElement:h,options:B,dropleft:v,dropup:N,dropright:M}=J(),{open:R,isFadeIn:x,isFadeOut:T}=Lt();$t(s);const I=()=>{if(M)return"right-start";if(v)return"left-start";const S=h&&getComputedStyle(h).getPropertyValue("--mdb-position").trim()==="end";return N?S?"top-end":"top-start":S?"bottom-end":"bottom-start"},{styles:w}=ne.usePopper(g,h,{placement:I(),modifiers:[dt.flip],...B}),C=m("dropdown-menu",n&&"dropdown-menu-dark",b&&"show",p&&"animation",x&&"fade-in",T&&"fade-out",o&&`dropdown-menu-${o}`,e);if(!R&&!l)return null;const H=c.jsx(t,{className:C,style:{position:"absolute",zIndex:1e3,...w.popper,...a},ref:f,...u,children:r.Children.map(s,(S,D)=>r.cloneElement(S,{tabIndex:0,"data-active":d===D&&!0,className:m(d===D?"active":"",S.props.className)}))});return c.jsx(ee,{disablePortal:!i,children:H})},Ft=({className:e,tag:t=Q,children:s,onClick:a,split:n,...o})=>{const{setIsOpenState:i,setReferenceElement:l,isOpenState:u,setActiveIndex:d,onClose:f,onOpen:b}=J(),p=m("dropdown-toggle",n&&"dropdown-toggle-split",e),g=h=>{a==null||a(h),u?f==null||f(h):b==null||b(h),!h.defaultPrevented&&(i(B=>!B),setTimeout(()=>d(-1),300))};return c.jsx(t,{onClick:g,ref:l,className:p,"aria-expanded":!!u,...o,children:s})},Ot=({className:e,btnClassName:t,btnChildren:s,children:a,tag:n=Q,onOpen:o,onClose:i,popperTag:l="div",open:u,placement:d="bottom",dismiss:f,options:b,poperStyle:p,onClick:g,disablePortal:h=!1,...B})=>{const[v,N]=r.useState(),[M,R]=r.useState(),{styles:x,attributes:T}=ne.usePopper(v,M,{placement:d,...b}),[I,w]=r.useState(u??!1),C=Xe(I,u),[H,S]=r.useState(!1),[D,j]=r.useState(!1),W=m("popover fade",H&&C&&"show",e),E=A=>{C&&!f?i==null||i():C||o==null||o(),f?(j(!0),w(!0)):w(!C),g&&g(A)},$=r.useCallback(A=>{D&&M&&C&&v&&!v.contains(A.target)&&(w(!1),i==null||i())},[D,C,M,v,i]);return r.useEffect(()=>{const A=setTimeout(()=>{S(C)},150);return()=>{clearTimeout(A)}},[C]),r.useEffect(()=>(C&&document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}),[$,C]),c.jsxs(c.Fragment,{children:[c.jsx(n,{onClick:E,className:t,...B,ref:N,children:s}),(H||C)&&c.jsx(ee,{disablePortal:h,children:c.jsx(l,{className:W,ref:R,style:{...x.popper,...p},...T.popper,children:a})})]})},Pt=({className:e,children:t,tag:s="div",...a})=>{const n=m("popover-body",e);return c.jsx(s,{className:n,...a,children:t})},Ht=({className:e,children:t,tag:s="h3",...a})=>{const n=m("popover-header",e);return c.jsx(s,{className:n,...a,children:t})},Wt=e=>r.useCallback(()=>e==="top"?{top:-50,left:0}:e==="bottom"?{top:50,left:0}:e==="left"?{top:0,left:-50}:e==="right"?{top:0,left:50}:{top:0,left:0},[e])(),Gt=e=>{const t=e instanceof HTMLElement?e:e.current;if(!t)return[];const s=Array.from(t.querySelectorAll("button, a, input, select, textarea, [tabindex]")).map(n=>({element:n,focused:n===document.activeElement}));return s?s.filter(n=>n.element.tabIndex!==-1).sort((n,o)=>n.element.tabIndex===o.element.tabIndex?0:o.element.tabIndex===null?-1:n.element.tabIndex===null?1:n.element.tabIndex-o.element.tabIndex):[]},qt=(e,t,s)=>{let a=e;return t?a=e-1<0?s-1:e-1:a=e+1>=s?0:e+1,a},Xt={opacity:1,top:0,left:0},Yt=({animationDirection:e="top",appendToBody:t,backdrop:s=!0,children:a,className:n,closeOnEsc:o=!0,leaveHiddenModal:i=!1,modalRef:l,onClose:u,onClosePrevented:d,onOpen:f,open:b,defaultOpen:p=!1,staticBackdrop:g,nonInvasive:h=!1,tag:B="div",animationVariants:v={},...N})=>{const[M,R]=r.useState(p),x=Xe(M,b),[T,I]=r.useState(!1),[w,C]=r.useState([]),H=r.useMemo(()=>ae.motion(B),[B]),S=r.useRef(null),D=l||S,j={opacity:0,...Wt(e),...v.initial?v.initial:{}},W={...Xt,...v.animate?v.animate:{}},E={...j,...v.exit?v.exit:{}},$=m("modal",T&&"modal-static",e,"fade",x&&"show",x&&h&&"modal-non-invasive-show",n),A=m("modal-backdrop","fade",x&&"show"),F=r.useCallback(()=>{R(!1),u==null||u()},[u]),k=r.useCallback(()=>{I(!0),d==null||d(),setTimeout(()=>{I(!1)},300)},[d]),G=r.useCallback(O=>{h&&!x||x&&O.target===D.current&&(g?k():F())},[x,D,g,F,h,k]),P=r.useCallback(O=>{if(x&&O.key==="Tab"){O.preventDefault();const X=O.shiftKey,Y=w.findIndex(y=>y.focused),V=qt(Y,X,w.length);C(y=>y==null?void 0:y.map((L,q)=>({...L,focused:q===V}))),w[V].element.focus()}o&&x&&O.key==="Escape"&&(O.preventDefault(),g?k():F())},[x,o,g,F,k,w]);return r.useEffect(()=>{if(!D||!x){C([]);return}C(()=>Gt(D))},[D,x,a]),r.useEffect(()=>{const O=()=>{const Y=document.documentElement.clientWidth;return Math.abs(window.innerWidth-Y)},X=window.innerWidth>document.documentElement.clientWidth&&window.innerWidth>=576;if(x&&X&&!h){const Y=O();document.body.classList.add("modal-open"),document.body.style.overflow="hidden",document.body.style.paddingRight=`${Y}px`}else document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight=""}},[x,h]),r.useEffect(()=>{const O=X=>{X.target.closest(".modal-dialog")||window.addEventListener("mouseup",G,{once:!0})};return window.addEventListener("mousedown",O),window.addEventListener("keydown",P),()=>{window.removeEventListener("mousedown",O),window.removeEventListener("keydown",P)}},[P,G]),c.jsx(ee,{disablePortal:!t,children:c.jsxs(ae.AnimatePresence,{children:[(x||i)&&c.jsxs(c.Fragment,{children:[c.jsx(H,{initial:j,animate:W,exit:E,className:$,ref:D,style:{display:x?"block":"none",pointerEvents:h?"none":"initial"},...N,children:a}),s&&x&&!h&&c.jsx(ae.motion.div,{initial:{opacity:0},animate:{opacity:.5},exit:{opacity:0},onClick:()=>{g?d==null||d():F()},className:A})]}),"),"]})})},Ke=r.forwardRef(({className:e,centered:t,children:s,size:a,scrollable:n,tag:o="div",...i},l)=>{const u=m("modal-dialog",n&&"modal-dialog-scrollable",t&&"modal-dialog-centered",a&&`modal-${a}`,e);return c.jsx(o,{className:u,...i,ref:l,children:s})});Ke.displayName="MDBModalDialog";const Ue=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-content",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Ue.displayName="MDBModalContent";const Je=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-header",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Je.displayName="MDBModalHeader";const Qe=r.forwardRef(({className:e,children:t,tag:s="h5",...a},n)=>{const o=m("modal-title",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Qe.displayName="MDBModalTitle";const Ze=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-body",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});Ze.displayName="MDBModalBody";const ze=r.forwardRef(({className:e,children:t,tag:s="div",...a},n)=>{const o=m("modal-footer",e);return c.jsx(s,{className:o,...a,ref:n,children:t})});ze.displayName="MDBModalFooter";const ce=r.createContext({activeElement:null,setTargets:null}),_t=({container:e=typeof window!==void 0?window:null,className:t,children:s,offset:a=10,...n})=>{const o=m("sticky-top",t),[i,l]=r.useState(null),[u,d]=r.useState([]),f=e instanceof Window,b=r.useCallback(()=>{var N,M,R;if(!u.length)return;const p=f?window.pageYOffset:(N=e==null?void 0:e.current)==null?void 0:N.scrollTop,g=Number(a),h=(M=u[u.length-1])==null?void 0:M.current,B=(R=u[0])==null?void 0:R.current;p+g{var H;const I=(H=u[T+1])==null?void 0:H.current,w=x.current;if(p>w.offsetTop-g&&p<(I==null?void 0:I.offsetTop)-g){l(w);return}}),p>h.offsetTop-g&&l(h)},[a,u,f,e]);return r.useEffect(()=>{const p=f?e:e==null?void 0:e.current;return b(),p==null||p.addEventListener("scroll",b),()=>{p==null||p.removeEventListener("scroll",b)}},[b,e,f]),c.jsx("div",{className:o,...n,children:c.jsx("ul",{className:"nav flex-column nav-pills menu-sidebar",children:c.jsx(ce.Provider,{value:{activeElement:i,setTargets:d},children:s})})})},Vt=({className:e,collapsible:t,targetRef:s,children:a,subsections:n,onClick:o,onActivate:i,...l})=>{var B;const{activeElement:u,setTargets:d}=r.useContext(ce),f=()=>n==null?void 0:n.some(v=>v.current.id===(u==null?void 0:u.id)),b=(u==null?void 0:u.id)===((B=s.current)==null?void 0:B.id),p=b||f();b&&(i==null||i(u==null?void 0:u.id));const g=m("nav-link",t&&"collapsible-scrollspy",p&&"active",e),h=v=>{const N=s==null?void 0:s.current;N==null||N.scrollIntoView({behavior:"smooth"}),o==null||o(v)};return r.useEffect(()=>{d(v=>[...v,s])},[d,s]),c.jsx("li",{className:"nav-item",style:{cursor:"pointer"},children:c.jsx("a",{className:g,onClick:h,...l,children:a})})},Kt=({collapsible:e,className:t,children:s,style:a,...n})=>{const[o,i]=r.useState("0px"),{activeElement:l}=r.useContext(ce),u=m("nav flex-column",t),d=r.useRef(null);r.useEffect(()=>{const b=()=>e==null?void 0:e.some(g=>g.current.id===(l==null?void 0:l.id)),p=d.current;b()?i(`${p==null?void 0:p.scrollHeight}px`):i("0px")},[l,e]);const f={overflow:"hidden",height:o,transition:"height .5s ease",flexWrap:"nowrap",...a};return c.jsx("ul",{className:u,ref:d,style:e?f:a,...n,children:s})},Ut=({...e})=>c.jsx(te,{type:"checkbox",toggleSwitch:!0,...e}),Jt=({value:e,min:t="0",max:s="100",showThumb:a})=>{const n=Number(e),[o,i]=r.useState((n||0-Number(t))*100/(Number(s)-Number(t))),l=m("thumb",a&&"thumb-active");return r.useEffect(()=>{i((Number(e)-Number(t))*100/(Number(s)-Number(t)))},[e,s,t]),c.jsx("span",{className:l,style:{left:`calc(${o}% + (${8-o*.15}px))`},children:c.jsx("span",{className:"thumb-value",children:e})})},Qt=({className:e,defaultValue:t=0,disableTooltip:s,labelId:a,max:n,min:o,onMouseDown:i,onMouseUp:l,onTouchStart:u,onTouchEnd:d,onChange:f,labelClass:b,value:p,label:g,id:h,inputRef:B,...v})=>{const[N,M]=r.useState(t),[R,x]=r.useState(!1),T=m("form-range",e),I=m("form-label",b),w=j=>{x(!0),i&&i(j)},C=j=>{x(!1),l&&l(j)},H=j=>{x(!0),u&&u(j)},S=j=>{x(!1),d&&d(j)},D=j=>{M(j.target.value),f&&f(j)};return c.jsxs(c.Fragment,{children:[g&&c.jsx("label",{className:I,id:a,htmlFor:h,children:g}),c.jsxs("div",{className:"range",children:[c.jsx("input",{type:"range",onMouseDown:w,onMouseUp:C,onTouchStart:H,onTouchEnd:S,onChange:D,className:T,value:p||N,id:h,min:o,max:n,ref:B,...v}),!s&&c.jsx(Jt,{value:p||N,showThumb:R,min:o,max:n})]})]})},et=r.forwardRef(({className:e,labelClass:t,labelStyle:s,inputRef:a,size:n,label:o,id:i,...l},u)=>{const d=m("form-control",`form-control-${n}`,e),f=m("form-label",t),b=r.useRef(null);return r.useImperativeHandle(u,()=>b.current||(a==null?void 0:a.current)),c.jsxs(c.Fragment,{children:[o&&c.jsx("label",{className:f,style:s,htmlFor:i,children:o}),c.jsx("input",{className:d,type:"file",id:i,ref:b,...l})]})});et.displayName="MDBFile";const tt=r.forwardRef(({className:e,children:t,noBorder:s,textBefore:a,textAfter:n,noWrap:o,tag:i="div",textTag:l="span",textClass:u,size:d,textProps:f,...b},p)=>{const g=m("input-group",o&&"flex-nowrap",d&&`input-group-${d}`,e),h=m("input-group-text",s&&"border-0",u),B=v=>c.jsx(c.Fragment,{children:v&&Array.isArray(v)?v.map((N,M)=>c.jsx(l,{className:h,...f,children:N},M)):c.jsx(l,{className:h,...f,children:v})});return c.jsxs(i,{className:g,ref:p,...b,children:[a&&B(a),t,n&&B(n)]})});tt.displayName="MDBInputGroup";const st=r.forwardRef(({className:e,children:t,isValidated:s=!1,onReset:a,onSubmit:n,noValidate:o=!0,...i},l)=>{const[u,d]=r.useState(s),f=m("needs-validation",u&&"was-validated",e),b=g=>{g.preventDefault(),d(!0),n&&n(g)},p=g=>{g.preventDefault(),d(!1),a&&a(g)};return r.useEffect(()=>{d(s)},[s]),c.jsx("form",{className:f,onSubmit:b,onReset:p,ref:l,noValidate:o,...i,children:t})});st.displayName="MDBValidation";const at=r.forwardRef(({className:e,fill:t,pills:s,justify:a,children:n,...o},i)=>{const l=m("nav",s?"nav-pills":"nav-tabs",t&&"nav-fill",a&&"nav-justified",e);return c.jsx("ul",{className:l,ref:i,...o,children:n})});at.displayName="MDBTabs";const nt=r.forwardRef(({className:e,children:t,style:s,tag:a="li",...n},o)=>{const i=m("nav-item",e);return c.jsx(a,{className:i,style:{cursor:"pointer",...s},role:"presentation",ref:o,...n,children:t})});nt.displayName="MDBTabsItem";const rt=r.forwardRef(({className:e,color:t,active:s,onOpen:a,onClose:n,children:o,...i},l)=>{const u=m("nav-link",s&&"active",t&&`bg-${t}`,e);return r.useEffect(()=>{s?a==null||a():n==null||n()},[s]),c.jsx("a",{className:u,ref:l,...i,children:o})});rt.displayName="MDBTabsLink";const ot=r.forwardRef(({className:e,tag:t="div",children:s,...a},n)=>{const o=m("tab-content",e);return c.jsx(t,{className:o,ref:n,...a,children:s})});ot.displayName="MDBTabsContent";const ct=r.forwardRef(({className:e,tag:t="div",open:s,children:a,...n},o)=>{const[i,l]=r.useState(!1),u=m("tab-pane","fade",i&&"show",s&&"active",e);return r.useEffect(()=>{let d;return s?d=setTimeout(()=>{l(!0)},100):l(!1),()=>{clearTimeout(d)}},[s]),c.jsx(t,{className:u,role:"tabpanel",ref:o,...n,children:a})});ct.displayName="MDBTabsPane";const le=r.createContext({active:0}),Zt=({imagesCount:e,to:t})=>{const{active:s}=r.useContext(le);return c.jsx("ol",{className:"carousel-indicators",children:Array.from(Array(e)).map((a,n)=>c.jsx("li",{"data-mdb-target":n,className:m(s===n&&"active"),onClick:()=>t(n)},n))})},zt=({move:e})=>c.jsxs(c.Fragment,{children:[c.jsxs("a",{role:"button",className:"carousel-control-prev",onClick:()=>e("prev"),children:[c.jsx("span",{className:"carousel-control-prev-icon"}),c.jsx("span",{className:"visually-hidden",children:"Previous"})]}),c.jsxs("a",{role:"button",className:"carousel-control-next",onClick:()=>e("next"),children:[c.jsx("span",{className:"carousel-control-next-icon"}),c.jsx("span",{className:"visually-hidden",children:"Next"})]})]}),es=e=>{const t=getComputedStyle(e),s=getComputedStyle(e==null?void 0:e.parentNode);return t.display!=="none"&&s.display!=="none"&&t.visibility!=="hidden"},ts=e=>Array.from(e==null?void 0:e.querySelectorAll(".carousel-item")),ss=e=>e.offsetHeight,as=(e,t,s=!0)=>{if(!s){de(e);return}const a=ns(t);t.addEventListener("transitionend",()=>de(e),{once:!0}),os(t,a)},de=e=>{typeof e=="function"&&e()},ns=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:s}=window.getComputedStyle(e);const a=Number.parseFloat(t),n=Number.parseFloat(s);return!a&&!n?0:(t=t.split(",")[0],s=s.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(s))*1e3)},rs=e=>{e.dispatchEvent(new Event("transitionend"))},os=(e,t)=>{let s=!1;const n=t+5;function o(){s=!0,e.removeEventListener("transitionend",o)}e.addEventListener("transitionend",o),setTimeout(()=>{s||rs(e)},n)},cs=({fade:e=!1,className:t,carouselInnerClassName:s,dark:a,children:n,interval:o=5e3,keyboard:i=!1,touch:l=!0,showControls:u,showIndicators:d,onSlide:f,...b})=>{const p=r.useRef([]),g=r.useRef(null),h=r.useRef(0),B=r.useRef(!1),[v,N]=r.useState(0),[M,R]=r.useState(0),[x,T]=r.useState({initialX:0,initialY:0}),[I,w]=r.useState(!1),C=r.useRef(null),H=m("carousel","slide",e&&"carousel-fade",a&&"carousel-dark",t),S=m("carousel-inner",s),D=r.useCallback((y,L)=>{if(L!==void 0)h.current=L,N(L);else{const q=v===M-1?0:v+1,K=v===0?M-1:v-1;h.current=y==="next"?q:K,N(y==="next"?q:K)}},[v,M]),j=r.useCallback(()=>{g.current&&(clearInterval(g.current),g.current=null)},[]),W=r.useCallback((y,L,q)=>{var ie;if(!p.current||p.current.length<2)return;w(!0);const _=p.current[v],U=Boolean(g.current),Z=y==="next",z=Z?"carousel-item-start":"carousel-item-end",se=Z?"carousel-item-next":"carousel-item-prev";if(L.classList.contains("active")){B.current=!1;return}D(y,q),!(!_||!L)&&(B.current=!0,U&&j(),(ie=C.current)!=null&&ie.classList.contains("slide")?(L.classList.add(se),ss(L),_.classList.add(z),L.classList.add(z),as(()=>{w(!1),L.classList.remove(z,se),L.classList.add("active"),_.classList.remove("active",se,z),B.current=!1},_,!0)):(_.classList.remove("active"),L.classList.add("active"),B.current=!1))},[C,v,D,j]),E=y=>{B.current||(B.current=!0,setTimeout(()=>{B.current=!1},y))},$=r.useCallback(y=>{const L=y==="prev",_=(h.current+(L?-1:1))%M,U=p.current;return _===-1?U[M-1]:U[_]},[M]),A=y=>{const L=h.current,q=y>L?"next":"prev",K=p.current;return{direction:q,nextElement:K[y]}},F=y=>{if(B.current||(E(700),y>M-1||y<0))return;const{direction:L,nextElement:q}=A(y);W(L,q,y)},k=r.useCallback(y=>{if(B.current)return;E(600);const L=$(y);W(y,L)},[$,W]),G=r.useCallback(()=>{const{visibilityState:y,hidden:L}=document;if(y)return L||!es(C.current)?void 0:k("next");k("next")},[C,k]),P=r.useCallback(()=>{var L,q;const y=(q=(L=n==null?void 0:n[v])==null?void 0:L.props)==null?void 0:q.interval;g.current&&(clearInterval(g.current),g.current=null),g.current=setInterval(G,y||o)},[G,o,n,v]),O=y=>{l&&T({initialX:y.touches[0].clientX,initialY:y.touches[0].clientY})},X=y=>{B.current=!0;const{initialX:L,initialY:q}=x;if(!L||!q)return;const K=y.touches[0].clientX,_=y.touches[0].clientY,U=L-K,Z=q-_;Math.abs(U)>Math.abs(Z)&&(U>0?k("prev"):k("next")),T({initialX:0,initialY:0})},Y=()=>{B.current=!1},V=r.useCallback(y=>{switch(y.key){case"ArrowLeft":y.preventDefault(),k("prev");break;case"ArrowRight":y.preventDefault(),k("next");break}},[k]);return r.useEffect(()=>{if(i)return window.addEventListener("keydown",V),()=>{window.removeEventListener("keydown",V)}},[V,i]),r.useEffect(()=>{const y=C.current,L=ts(y);p.current=L,R(L.length)},[C]),r.useEffect(()=>{I&&(f==null||f())},[I,f]),r.useEffect(()=>(P(),()=>{j()}),[P,j]),c.jsx("div",{onTouchStart:O,onTouchMove:X,onTouchEnd:Y,onMouseEnter:j,onMouseLeave:P,className:H,ref:C,...b,children:c.jsx("div",{className:S,children:c.jsxs(le.Provider,{value:{active:v},children:[d&&c.jsx(Zt,{to:F,imagesCount:M}),n,u&&c.jsx(zt,{move:k})]})})})},ls=({className:e,children:t,itemId:s,...a})=>{const{active:n}=r.useContext(le),o=r.useRef(!0),i=r.useRef(null),l=m("carousel-item",e);return r.useEffect(()=>{if(o.current&&n===s-1){const u=i.current;u==null||u.classList.add("active")}o.current=!1},[n,s]),c.jsx("div",{className:l,ref:i,...a,children:t})},is=({className:e,children:t,...s})=>{const a=m("carousel-caption d-none d-md-block",e);return c.jsx("div",{className:a,...s,children:t})},lt=r.createContext({activeItem:0,setActiveItem:null,alwaysOpen:!1,initialActive:0}),it=r.forwardRef(({alwaysOpen:e,borderless:t,className:s,flush:a,active:n,initialActive:o=0,tag:i="div",children:l,onChange:u,...d},f)=>{const b=r.useMemo(()=>typeof n<"u",[n]),p=m("accordion",a&&"accordion-flush",t&&"accordion-borderless",s),[g,h]=r.useState(o);return c.jsx(i,{className:p,ref:f,...d,children:c.jsx(lt.Provider,{value:{activeItem:b?n:g,setActiveItem:h,alwaysOpen:e,initialActive:o,onChange:u},children:l})})});it.displayName="MDBAccordion";const ut=r.forwardRef(({className:e,bodyClassName:t,bodyStyle:s,headerClassName:a,collapseId:n,headerTitle:o,headerStyle:i,btnClassName:l,tag:u="div",children:d,...f},b)=>{const{activeItem:p,setActiveItem:g,alwaysOpen:h,onChange:B}=r.useContext(lt),v=r.useMemo(()=>Array.isArray(p)?p.includes(n):p===n,[p,n]),N=m("accordion-item",e),M=m("accordion-header",a),R=m("accordion-body",t),x=m("accordion-button",!v&&"collapsed",l),T=r.useCallback(I=>{let w=I;Array.isArray(p)?p.includes(I)?w=p.filter(H=>H!==I):w=h?[...p,I]:[I]:(w=p===I?0:I,h&&(w=[w])),B==null||B(w),g(w)},[B,p,g,h]);return c.jsxs(u,{className:N,ref:b,...f,children:[c.jsx("h2",{className:M,style:i,children:c.jsx("button",{onClick:()=>T(n),className:x,type:"button",children:o})}),c.jsx(_e,{id:n.toString(),open:v,children:c.jsx("div",{className:R,style:s,children:d})})]})});ut.displayName="MDBAccordionItem";const us=({className:e,size:t,contrast:s,value:a,defaultValue:n,id:o,labelClass:i,wrapperClass:l,wrapperStyle:u,wrapperTag:d="div",label:f,onChange:b,children:p,labelRef:g,labelStyle:h,inputRef:B,onBlur:v,readonly:N=!1,...M})=>{var G;const R=r.useRef(null),x=r.useRef(null),T=g||R,I=B||x,[w,C]=r.useState(a||n),[H,S]=r.useState(0),[D,j]=r.useState(a!==void 0&&a.length>0||n!==void 0&&n.length>0),W=m("form-outline",s&&"form-white",l),E=m("form-control",D&&"active",t&&`form-control-${t}`,e),$=m("form-label",i);r.useEffect(()=>{var P;T.current&&((P=T.current)==null?void 0:P.clientWidth)!==0&&S(T.current.clientWidth*.8+8)},[T,(G=T.current)==null?void 0:G.clientWidth]);const A=()=>{T.current&&S(T.current.clientWidth*.8+8)};r.useEffect(()=>{a!==void 0&&(a.length>0?j(!0):j(!1))},[a]),r.useEffect(()=>{n!==void 0&&(n.length>0?j(!0):j(!1))},[n]);const F=P=>{C(P.currentTarget.value),b&&b(P)},k=r.useCallback(P=>{w!==void 0&&w.length>0||a!==void 0&&a.length>0?j(!0):j(!1),v&&v(P)},[w,a,v]);return c.jsxs(d,{className:W,style:{...u},children:[c.jsx("textarea",{readOnly:N,className:E,onBlur:k,onChange:F,onFocus:A,defaultValue:n,value:a,id:o,ref:I,...M}),f&&c.jsx("label",{className:$,style:h,htmlFor:o,ref:T,children:f}),c.jsxs("div",{className:"form-notch",children:[c.jsx("div",{className:"form-notch-leading"}),c.jsx("div",{className:"form-notch-middle",style:{width:H}}),c.jsx("div",{className:"form-notch-trailing"})]}),p]})},ds=({children:e,invalid:t,feedback:s="Looks good!",tooltip:a,tag:n="div",...o})=>{const[i,l]=r.useState(null),u=r.useRef(null),d=m(t?`invalid-${a?"tooltip":"feedback"}`:`valid-${a?"tooltip":"feedback"}`);return r.useEffect(()=>{var b,p;const f=(p=(b=u.current)==null?void 0:b.querySelector("input, textarea"))==null?void 0:p.parentElement;f&&l(f)},[]),c.jsxs(n,{ref:u,...o,children:[i&&fe.createPortal(c.jsx("div",{className:d,children:s}),i),e]})},fs=({children:e})=>{const[t,s]=r.useState(!1);return r.useEffect(()=>{s(!0)},[]),c.jsx(c.Fragment,{children:t?e:null})};exports.MDBAccordion=it;exports.MDBAccordionItem=ut;exports.MDBBadge=ge;exports.MDBBreadcrumb=Ce;exports.MDBBreadcrumbItem=Ie;exports.MDBBtn=Q;exports.MDBBtnGroup=be;exports.MDBCard=he;exports.MDBCardBody=De;exports.MDBCardFooter=Ne;exports.MDBCardGroup=je;exports.MDBCardHeader=Be;exports.MDBCardImage=pt;exports.MDBCardLink=gt;exports.MDBCardOverlay=we;exports.MDBCardSubTitle=ye;exports.MDBCardText=xe;exports.MDBCardTitle=Me;exports.MDBCarousel=cs;exports.MDBCarouselCaption=is;exports.MDBCarouselItem=ls;exports.MDBCheckbox=Dt;exports.MDBClientOnly=fs;exports.MDBCol=pe;exports.MDBCollapse=_e;exports.MDBContainer=me;exports.MDBDropdown=Ct;exports.MDBDropdownItem=kt;exports.MDBDropdownMenu=At;exports.MDBDropdownToggle=Ft;exports.MDBFile=et;exports.MDBFooter=Pe;exports.MDBIcon=vt;exports.MDBInput=Ye;exports.MDBInputGroup=tt;exports.MDBListGroup=Ee;exports.MDBListGroupItem=Se;exports.MDBModal=Yt;exports.MDBModalBody=Ze;exports.MDBModalContent=Ue;exports.MDBModalDialog=Ke;exports.MDBModalFooter=ze;exports.MDBModalHeader=Je;exports.MDBModalTitle=Qe;exports.MDBNavbar=ke;exports.MDBNavbarBrand=Le;exports.MDBNavbarItem=Ae;exports.MDBNavbarLink=$e;exports.MDBNavbarNav=Fe;exports.MDBNavbarToggler=Oe;exports.MDBPagination=He;exports.MDBPaginationItem=Ge;exports.MDBPaginationLink=We;exports.MDBPopover=Ot;exports.MDBPopoverBody=Pt;exports.MDBPopoverHeader=Ht;exports.MDBProgress=qe;exports.MDBProgressBar=oe;exports.MDBRadio=Nt;exports.MDBRange=Qt;exports.MDBRipple=re;exports.MDBRow=Te;exports.MDBScrollspy=_t;exports.MDBScrollspyLink=Vt;exports.MDBScrollspySubList=Kt;exports.MDBSpinner=ve;exports.MDBSwitch=Ut;exports.MDBTable=Bt;exports.MDBTableBody=Mt;exports.MDBTableHead=yt;exports.MDBTabs=at;exports.MDBTabsContent=ot;exports.MDBTabsItem=nt;exports.MDBTabsLink=rt;exports.MDBTabsPane=ct;exports.MDBTextArea=us;exports.MDBTooltip=bt;exports.MDBTypography=Re;exports.MDBValidation=st;exports.MDBValidationItem=ds;